/* ============================================================
   SNOWAY — Hlavný štýl
   ============================================================ */

:root {
    --deep-navy:       #0a1828;
    --navy:            #0d2137;
    --panel:           #142b45;
    --panel-light:     #1a3a5c;
    --ice-blue:        #7ec8e3;
    --ice-blue-light:  #b8e0f0;
    --ice-blue-dark:   #4a90b8;
    --snow-white:      #e8f4fa;
    --text-light:      #a8c5d6;
    --text-muted:      #6b8ba3;
    --success:         #43e97b;
    --error:           #ff6b6b;
    --warning:         #ffc800;
    --shadow:          0 8px 32px rgba(0,0,0,.3);
    --radius:          14px;
    --transition:      all .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 100%);
    color: var(--snow-white);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ============ HEADER ============ */
header {
    background: rgba(10, 24, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(126, 200, 227, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ice-blue-light);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo:hover { transform: scale(1.02); }

.logo-icon { width: 32px; height: 32px; }

.desktop-nav {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    background: rgba(126, 200, 227, 0.15);
    color: var(--ice-blue-light);
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-login {
    color: var(--ice-blue-light);
    border-color: rgba(126, 200, 227, 0.3);
    background: transparent;
}

.btn-login:hover {
    background: rgba(126, 200, 227, 0.1);
    border-color: var(--ice-blue);
}

.btn-register {
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
    font-weight: 700;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 200, 227, 0.4);
}

.btn-dashboard {
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
}

.btn-logout {
    background: rgba(255, 107, 107, 0.15);
    color: #ff9b9b;
    border-color: rgba(255, 107, 107, 0.3);
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.25);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(67, 233, 123, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.user-email {
    color: var(--text-light);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ HAMBURGER ============ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ice-blue-light);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--navy);
    border-top: 1px solid rgba(126, 200, 227, 0.2);
    padding: 16px 24px;
    gap: 16px;
}

.mobile-menu.open { display: flex; }

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
    background: rgba(126, 200, 227, 0.15);
    color: var(--ice-blue-light);
}

/* ============ MAIN ============ */
main {
    flex: 1;
    padding: 40px 24px;
}

.content-panel {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(20, 43, 69, 0.6);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: var(--radius);
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.content-panel h1 {
    font-size: 2rem;
    color: var(--ice-blue-light);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--ice-blue-light), var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-panel p {
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.7;
}

.text-accent { color: var(--ice-blue); font-weight: 700; }

/* ============ FEATURES GRID ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    background: rgba(126, 200, 227, 0.05);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--ice-blue);
    box-shadow: 0 8px 24px rgba(126, 200, 227, 0.15);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: var(--ice-blue-light);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ============ AUTH FORM ============ */
.auth-form-container {
    max-width: 480px;
    margin: 0 auto;
}

.auth-form-container h1 {
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--ice-blue-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 24, 40, 0.7);
    border: 1px solid rgba(126, 200, 227, 0.3);
    border-radius: 10px;
    color: var(--snow-white);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ice-blue);
    background: rgba(10, 24, 40, 0.9);
    box-shadow: 0 0 0 3px rgba(126, 200, 227, 0.15);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-section-title {
    color: var(--ice-blue);
    font-size: 1rem;
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(126, 200, 227, 0.2);
}

/* ============ CONSENT BLOCK ============ */
.consent-block {
    background: rgba(126, 200, 227, 0.05);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.consent-title {
    color: var(--ice-blue-light);
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(126, 200, 227, 0.15);
}

.consent-row {
    margin-bottom: 14px;
}

.consent-row:last-child { margin-bottom: 0; }

.consent-row-optional {
    padding-top: 14px;
    border-top: 1px dashed rgba(126, 200, 227, 0.2);
}

.consent-checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.consent-checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(126, 200, 227, 0.4);
    border-radius: 6px;
    background: rgba(10, 24, 40, 0.7);
    transition: var(--transition);
    position: relative;
    margin-top: 2px;
}

.consent-checkbox-label input[type="checkbox"]:checked ~ .consent-checkmark {
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    border-color: var(--ice-blue);
}

.consent-checkbox-label input[type="checkbox"]:checked ~ .consent-checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--navy);
    font-weight: 900;
    font-size: 0.9rem;
}

.consent-checkbox-label input[type="checkbox"]:focus ~ .consent-checkmark {
    box-shadow: 0 0 0 3px rgba(126, 200, 227, 0.25);
}

.consent-text {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}

.consent-text a {
    color: var(--ice-blue);
    text-decoration: underline;
}

.consent-text a:hover { color: var(--ice-blue-light); }

.consent-required {
    color: var(--error);
    font-weight: 700;
    margin-left: 2px;
}

/* ============ BUTTONS ============ */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 200, 227, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small {
    width: auto;
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ============ ALERTS ============ */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 14px 0;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--error);
    color: #ff9b9b;
}

.alert-success {
    background: rgba(67, 233, 123, 0.1);
    border-color: var(--success);
    color: #8ef0b5;
}

.alert-warning {
    background: rgba(255, 200, 0, 0.1);
    border-color: var(--warning);
    color: #ffdd77;
}

/* ============ FOOTER ============ */
footer {
    background: rgba(10, 24, 40, 0.8);
    border-top: 1px solid rgba(126, 200, 227, 0.15);
    padding: 20px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

footer span { color: var(--ice-blue); font-weight: 700; }

footer a { color: var(--ice-blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============ DASHBOARD ============ */
.secondary-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(126, 200, 227, 0.15);
}

.secondary-menu .sec-btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    text-align: center;
    justify-content: center;
    font-size: 0.88rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

@media (min-width: 992px) {
    .secondary-menu {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 601px) {
    .secondary-menu {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sec-btn {
    padding: 8px 16px;
    background: rgba(126, 200, 227, 0.08);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
    font-family: inherit;
}

.sec-btn:hover {
    background: rgba(126, 200, 227, 0.15);
    color: var(--ice-blue-light);
}

.sec-btn.active {
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
    border-color: transparent;
    font-weight: 700;
}

.section-title {
    color: var(--ice-blue-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--ice-blue-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(126,200,227,.15);
}

.section-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    background: rgba(126, 200, 227, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(126, 200, 227, 0.2);
}

/* Settings rows */
.settings-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(126, 200, 227, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.settings-row span { color: var(--text-muted); }
.settings-row strong { color: var(--snow-white); }

/* ============ SETTINGS BLOCKS (super admin) ============ */
.settings-block {
    background: rgba(126, 200, 227, 0.05);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-block-title {
    color: var(--ice-blue-light);
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(126, 200, 227, 0.15);
}

/* ============ MAP ============ */
.map-container {
    width: 100%;
    height: 440px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(126, 200, 227, 0.2);
}

#map { width: 100%; height: 100%; }

.map-info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.map-stat {
    background: rgba(126, 200, 227, 0.08);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
}

.map-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.map-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ice-blue);
}

/* ============ DASHBOARD LAYOUT ============ */
.dashboard-layout {
    display: grid;
    gap: 20px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: rgba(126, 200, 227, 0.05);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: 12px;
    padding: 18px;
}

.sidebar-card h3 {
    color: var(--ice-blue-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.driver-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(126, 200, 227, 0.1);
}

.driver-row:last-child { border-bottom: none; }

.driver-info { flex: 1; }
.driver-name { color: var(--snow-white); font-size: 0.88rem; }
.driver-time { color: var(--text-muted); font-size: 0.75rem; }

.progress-item { margin-bottom: 12px; }
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
}
.progress-track {
    height: 6px;
    background: rgba(126, 200, 227, 0.15);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ice-blue-dark), var(--success));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ============ GPS CONTROLS ============ */
.gps-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0;
}

.btn-gps-start,
.btn-gps-stop {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-gps-start {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: var(--navy);
}

.btn-gps-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
}

.btn-gps-stop {
    background: rgba(255, 107, 107, 0.15);
    color: #ff9b9b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-gps-start:disabled,
.btn-gps-stop:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gps-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(126, 200, 227, 0.08);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.gps-status.active { color: var(--success); }

/* ============ NOTES ============ */
.note-item {
    background: rgba(126, 200, 227, 0.05);
    border: 1px solid rgba(126, 200, 227, 0.15);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.note-item h4 {
    color: var(--ice-blue-light);
    margin-bottom: 8px;
    font-size: 1rem;
}

.note-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.note-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ============ EMPLOYEES ============ */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.employee-card {
    background: rgba(126, 200, 227, 0.05);
    border: 1px solid rgba(126, 200, 227, 0.15);
    border-radius: 12px;
    padding: 18px;
}

.employee-card h4 {
    color: var(--ice-blue-light);
    font-size: 1rem;
    margin-bottom: 10px;
}

.employee-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.badge-active {
    background: rgba(67, 233, 123, 0.15);
    color: var(--success);
}

.badge-pending {
    background: rgba(255, 200, 0, 0.15);
    color: var(--warning);
}

/* ============ STATS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(126, 200, 227, 0.08);
    border: 1px solid rgba(126, 200, 227, 0.2);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ice-blue);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ OASIS ============ */
.oasis-header { text-align: center; margin-bottom: 40px; }
.oasis-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--ice-blue-light), var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.oasis-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.oasis-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.oasis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.oasis-card {
    background: rgba(20, 43, 69, 0.8);
    border: 1px solid rgba(126, 200, 227, 0.25);
    border-radius: 18px;
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

.oasis-card:hover {
    transform: translateY(-4px);
    border-color: var(--ice-blue);
    box-shadow: 0 12px 40px rgba(126, 200, 227, 0.15);
}

.oasis-featured {
    border-color: var(--ice-blue);
    box-shadow: 0 0 40px rgba(126, 200, 227, 0.2);
}

.oasis-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.oasis-trial-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: var(--navy);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
}

.oasis-card-header { text-align: center; margin-bottom: 20px; }

.oasis-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(126, 200, 227, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.oasis-icon-featured {
    background: rgba(126, 200, 227, 0.2);
}

.oasis-icon { font-size: 2rem; }

.oasis-name {
    color: var(--ice-blue-light);
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.oasis-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.oasis-price-block {
    text-align: center;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid rgba(126, 200, 227, 0.15);
    border-bottom: 1px solid rgba(126, 200, 227, 0.15);
}

.oasis-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.oasis-price-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--ice-blue);
    line-height: 1;
}

.oasis-price-currency {
    font-size: 1.5rem;
    color: var(--ice-blue);
    font-weight: 700;
}

.oasis-price-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.oasis-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

.oasis-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.oasis-features li {
    padding: 8px 0 8px 26px;
    color: var(--text-light);
    font-size: 0.88rem;
    position: relative;
}

.oasis-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
}

.oasis-trial-info {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(67, 233, 123, 0.08);
    border: 1px solid rgba(67, 233, 123, 0.2);
    border-radius: 12px;
    margin: 16px 0;
    font-size: 0.82rem;
}

.oasis-trial-info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.oasis-trial-info strong { color: var(--success); }

.oasis-trial-info p {
    color: var(--text-light);
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.oasis-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.oasis-trial-btn,
.oasis-buy-btn {
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.oasis-trial-btn {
    background: rgba(67, 233, 123, 0.15);
    color: var(--success);
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.oasis-trial-btn:hover {
    background: rgba(67, 233, 123, 0.25);
}

.oasis-buy-btn {
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
}

.oasis-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 200, 227, 0.4);
}

.oasis-buy-featured {
    background: linear-gradient(135deg, #ffc800, #ff9500);
}

.oasis-info-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(126, 200, 227, 0.15);
}

.oasis-info-bottom p { margin: 8px 0; }

.oasis-info-card {
    background: rgba(67, 233, 123, 0.08);
    border: 1px solid rgba(67, 233, 123, 0.25);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.oasis-info-icon { font-size: 2.5rem; margin-bottom: 10px; }
.oasis-info-name { color: var(--success); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.oasis-info-meta { color: var(--text-muted); font-size: 0.85rem; }

/* ============ CHECKOUT MODAL ============ */
.checkout-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.checkout-overlay.open { display: flex; }

.checkout-modal {
    background: var(--panel);
    border: 1px solid rgba(126, 200, 227, 0.3);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow);
}

.checkout-modal h2 {
    color: var(--ice-blue-light);
    margin-bottom: 20px;
}

.checkout-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(126, 200, 227, 0.1);
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.checkout-close:hover { background: rgba(255, 107, 107, 0.2); color: #ff9b9b; }

.checkout-summary {
    background: rgba(126, 200, 227, 0.05);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkout-summary-row strong { color: var(--snow-white); }

.checkout-summary-row.total {
    border-top: 1px solid rgba(126, 200, 227, 0.2);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 1.05rem;
}

.checkout-summary-row.total strong { color: var(--ice-blue); font-size: 1.2rem; }

.checkout-warning {
    background: rgba(255, 200, 0, 0.1);
    border-left: 4px solid var(--warning);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #ffdd77;
    margin-bottom: 16px;
    line-height: 1.6;
}

.checkout-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.92rem;
    font-family: inherit;
}

.btn-cancel {
    background: rgba(126, 200, 227, 0.1);
    color: var(--text-light);
}

.btn-cancel:hover:not(:disabled) { background: rgba(126, 200, 227, 0.2); }

.btn-confirm {
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
}

.btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 200, 227, 0.4);
}

.btn-cancel:disabled,
.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============ PAYMENT FORM ============ */
.payment-form { margin-top: 16px; }

.payment-security-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
    text-align: center;
}

.card-number-wrap { position: relative; }

.card-brand {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--ice-blue);
    background: rgba(126, 200, 227, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.saved-card-display {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(67, 233, 123, 0.08);
    border: 1px solid rgba(67, 233, 123, 0.25);
    border-radius: 12px;
    margin-bottom: 16px;
}

.saved-card-icon { font-size: 1.8rem; }
.saved-card-info { flex: 1; }
.saved-card-brand { color: var(--snow-white); font-weight: 700; font-size: 0.95rem; }
.saved-card-holder { color: var(--text-light); font-size: 0.85rem; margin-top: 2px; }
.saved-card-expiry { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }

.saved-card-change {
    padding: 6px 14px;
    background: rgba(126, 200, 227, 0.1);
    border: 1px solid rgba(126, 200, 227, 0.3);
    border-radius: 8px;
    color: var(--ice-blue);
    cursor: pointer;
    font-size: 0.82rem;
    transition: var(--transition);
    font-family: inherit;
}

.saved-card-change:hover { background: rgba(126, 200, 227, 0.2); }

/* ============ LEGAL ============ */
.legal-panel { max-width: 900px; margin: 0 auto; }
.legal-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid rgba(126,200,227,.3); }
.legal-header h1 { color: var(--ice-blue-light); margin-bottom: 8px; }
.legal-meta { color: var(--text-muted); font-size: .9rem; }
.legal-version-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: rgba(126,200,227,.15); color: var(--ice-blue);
    font-size: .8rem; font-weight: 700; margin-left: 8px;
}
.legal-toc {
    background: rgba(126,200,227,.05); border: 1px solid rgba(126,200,227,.2);
    border-radius: 12px; padding: 24px; margin-bottom: 32px;
}
.legal-toc h3 { color: var(--ice-blue-light); margin-bottom: 16px; }
.legal-toc ol { padding-left: 24px; line-height: 2; }
.legal-toc a { color: var(--ice-blue); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-content section {
    margin-bottom: 40px; padding-bottom: 32px;
    border-bottom: 1px solid rgba(126,200,227,.15);
}
.legal-content h2 {
    color: var(--ice-blue-light); font-size: 1.4rem; margin-bottom: 16px;
    padding-top: 16px;
}
.legal-content h3 { color: var(--ice-blue); font-size: 1.1rem; margin: 20px 0 12px; }
.legal-content p, .legal-content li { line-height: 1.8; color: var(--text-light); }
.legal-content ul, .legal-content ol { padding-left: 28px; margin: 12px 0; }
.legal-content strong { color: var(--snow-white); }
.legal-content a { color: var(--ice-blue); }
.legal-table {
    width: 100%; border-collapse: collapse; margin: 16px 0;
    background: rgba(10,24,40,.5); border-radius: 8px; overflow: hidden;
}
.legal-table th {
    background: rgba(126,200,227,.15); padding: 12px;
    text-align: left; color: var(--ice-blue-light); font-size: .9rem;
}
.legal-table td { padding: 12px; border-top: 1px solid rgba(126,200,227,.1); font-size: .9rem; }
.legal-table code { background: rgba(126,200,227,.15); padding: 2px 6px; border-radius: 4px; color: var(--ice-blue); }
.legal-warning {
    background: rgba(255,200,0,.1); border-left: 4px solid #ffc800;
    padding: 16px 20px; border-radius: 8px; margin: 20px 0;
}
.legal-warning strong { color: #ffc800; }
.legal-info {
    background: rgba(67,233,123,.1); border-left: 4px solid #43e97b;
    padding: 16px 20px; border-radius: 8px; margin: 20px 0;
}
.legal-info strong { color: #43e97b; }
.legal-footer {
    margin-top: 48px; padding-top: 24px;
    border-top: 2px solid rgba(126,200,227,.3); text-align: center;
}
.consent-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-top: 32px;
}
.consent-actions a {
    display: inline-block; text-decoration: none; padding: 14px 36px;
    border-radius: 12px; font-weight: 700; transition: all .2s;
}
.btn-agree {
    background: linear-gradient(135deg,#4a90b8,#7ec8e3); color: #0d2137;
}
.btn-agree:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(126,200,227,.4); }
.btn-disagree {
    background: rgba(220,70,70,.15); color: #ff9b9b;
    border: 1px solid rgba(220,70,70,.4);
}
.btn-disagree:hover { background: rgba(220,70,70,.25); }

/* ============ LOADER ============ */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(126, 200, 227, 0.2);
    border-top-color: var(--ice-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   WORK SESSION (Pracovná zóna vodiča)
   ============================================================ */
.work-session-bar {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(126,200,227,.05);
    border: 1px solid rgba(126,200,227,.2);
    border-radius: 14px;
    margin-bottom: 16px;
}

.btn-work-start {
    padding: 14px 32px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: var(--navy);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-work-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67,233,123,.4);
}

.btn-work-start:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-work-stop {
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-work-stop:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,107,.4);
}

.btn-work-stop:disabled { opacity: 0.5; cursor: not-allowed; }

.work-timer {
    margin-left: auto;
    text-align: right;
    padding: 8px 20px;
    background: rgba(10,24,40,.5);
    border-radius: 12px;
}

.work-timer-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.work-timer-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--success);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.work-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.active-route-info {
    background: rgba(126,200,227,.05);
    border: 1px solid rgba(126,200,227,.2);
    border-radius: 12px;
    padding: 18px;
}

.active-route-card { display: flex; flex-direction: column; gap: 14px; }

.active-route-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.active-route-stats {
    padding-top: 12px;
    border-top: 1px solid rgba(126,200,227,.15);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================================
   ROUTE MAPS LIST
   ============================================================ */
.route-maps-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px;
    background: rgba(126,200,227,.05);
    border: 1px solid rgba(126,200,227,.2);
    border-radius: 12px;
}

.route-maps-toolbar .btn-new-route {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: inherit;
}

.route-maps-toolbar .btn-new-route:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126,200,227,.4);
}

.btn-new-route {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--ice-blue-dark), var(--ice-blue));
    color: var(--navy);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-new-route:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126,200,227,.4);
}

.route-maps-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.route-map-item {
    background: rgba(126,200,227,.05);
    border: 2px solid rgba(126,200,227,.15);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.route-map-item:hover {
    border-color: rgba(126,200,227,.4);
    transform: translateY(-2px);
}

.route-map-item.selected {
    border-color: var(--ice-blue);
    background: rgba(126,200,227,.1);
    box-shadow: 0 0 0 3px rgba(126,200,227,.15);
}

.route-map-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.route-map-item-header h4 {
    color: var(--ice-blue-light);
    font-size: 1rem;
    margin: 0;
}

.route-map-item-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* Akcie pod zoznamom */
.route-maps-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(126,200,227,.15);
}

.route-maps-actions .sec-btn {
    padding: 10px 22px;
    font-size: 0.88rem;
    min-width: 130px;
}

.route-maps-actions .sec-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Empty state + akcie */
.route-maps-empty-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 8px 0;
}

.route-maps-empty-wrap .route-maps-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
    justify-content: center;
}

/* ============================================================
   ROUTE EDITOR MODAL (zachované pre create-map.html a spätnú kompatibilitu)
   ============================================================ */
.route-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.route-modal-overlay.open { display: flex; }

.route-modal {
    background: var(--panel);
    border: 1px solid rgba(126,200,227,.3);
    border-radius: 16px;
    padding: 32px;
    max-width: 900px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow);
}

.route-modal h2 {
    color: var(--ice-blue-light);
    margin-bottom: 24px;
    padding-right: 40px;
}

.map-editor-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
    background: rgba(10,24,40,.5);
    border-radius: 10px;
}

.btn-draw-toggle {
    padding: 10px 18px;
    background: rgba(229,57,53,.15);
    color: #ff9b9b;
    border: 1px solid rgba(229,57,53,.4);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
    font-family: inherit;
}

.btn-draw-toggle:hover { background: rgba(229,57,53,.25); }

.btn-draw-toggle.active {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border-color: #e53935;
    box-shadow: 0 0 20px rgba(229,57,53,.4);
}

.map-editor-stats {
    margin-left: auto;
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.map-editor-stats strong { color: var(--ice-blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .desktop-nav,
    .desktop-auth {
        display: none;
    }
    .hamburger { display: flex; }
    .dashboard-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
    .content-panel { padding: 24px 18px; }
    .content-panel h1 { font-size: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .oasis-grid { grid-template-columns: 1fr; }
    .checkout-modal { padding: 24px; }
    .oasis-header h1 { font-size: 2rem; }
    .oasis-price-value { font-size: 2.4rem; }
    .oasis-trial-info { flex-direction: column; }
    .work-session-bar { flex-direction: column; align-items: stretch; }
    .work-timer { margin-left: 0; text-align: center; }
    .route-modal { padding: 20px; }
    .map-editor-toolbar { flex-direction: column; align-items: stretch; }
    .map-editor-stats { margin-left: 0; justify-content: space-between; }

    /* Sekundárne menu na jeden stĺpec na mobile */
    .secondary-menu {
        grid-template-columns: 1fr !important;
    }
    .route-maps-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .route-maps-toolbar .btn-new-route {
        width: 100%;
    }
    .route-maps-actions {
        flex-direction: column;
    }
    .route-maps-actions .sec-btn {
        width: 100%;
    }
}

/* ============ ROUTE INFO SUMMARY (v modali) ============ */
.route-info-summary {
    background: rgba(126,200,227,.05);
    border: 1px solid rgba(126,200,227,.2);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.route-info-item {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(126,200,227,.08);
}

.route-info-item:last-child {
    border-bottom: none;
}

.route-info-label {
    color: var(--text-muted);
    min-width: 160px;
    flex-shrink: 0;
}

.route-info-value {
    color: var(--snow-white);
    flex: 1;
}

/* Toolbar pre kreslenie (zobrazí sa len po kliknutí na "Zvýrazniť trasu") */
.map-editor-toolbar-drawing {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(126,200,227,.15);
}