:root {
    --bg-body: #050505;
    --bg-card: #0a0a0a;
    --bg-input: #111111;
    --gold: #d4af37;
    --gold-hover: #b5952f;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: #2a2a2a;
}

[data-theme="light"] {
    --bg-body: #f4f4f4;
    --bg-card: #ffffff;
    --bg-input: #f9f9f9;
    --gold: #b08d1e;
    --gold-hover: #d4af37;
    --text-main: #111111;
    --text-muted: #666666;
    --border: #dddddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, .serif-font {
    font-family: 'Playfair Display', serif;
}

/* --- Utility Classes --- */
.text-gold { color: var(--gold); }
.hidden { display: none !important; }
.hidden-search { display: none !important; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Controls (Lang & Theme) --- */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- Settings Dropdown (mobile/tablet) --- */
.settings-wrapper {
    position: relative;
    display: none;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s ease;
}
.settings-btn i {
    font-size: 1.2rem;
    pointer-events: none;
}
.settings-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}
.settings-btn.active {
    transform: rotate(90deg);
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}
[data-theme="light"] .settings-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.settings-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 10002;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    min-width: 200px;
}
.settings-dropdown.show { display: flex; }

.settings-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 4px;
}

[data-theme="light"] .settings-dropdown {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.settings-dropdown .lang-switcher {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    gap: 5px;
    justify-content: center;
}
.settings-dropdown .theme-switcher {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    justify-content: center;
}
.settings-dropdown .lang-switcher button,
.settings-dropdown .theme-switcher button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: var(--text-muted);
}
.settings-dropdown .lang-switcher button:hover,
.settings-dropdown .theme-switcher button:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.08);
}
.settings-dropdown .lang-switcher button:active,
.settings-dropdown .theme-switcher button:active {
    transform: scale(0.95);
}
.settings-dropdown .lang-switcher button img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
}
[data-theme="light"] .settings-dropdown .lang-switcher button,
[data-theme="light"] .settings-dropdown .theme-switcher button {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.1);
}
[data-theme="light"] .settings-dropdown .lang-switcher button:hover,
[data-theme="light"] .settings-dropdown .theme-switcher button:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

/* Fixed settings for pages without header (index, terms, 404) */
.fixed-settings {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10002;
}

.lang-switcher, .theme-switcher {
    background: rgba(12, 12, 12, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    gap: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

[data-theme="light"] .lang-switcher,
[data-theme="light"] .theme-switcher {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.08);
}

.top-controls button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: var(--text-muted);
}

.top-controls button:hover {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold);
    transform: scale(1.1);
}

.flag-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

/* --- HERO LOGIN SECTION --- */
.hero-login {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.88)), url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?q=80&w=2070&auto=format&fit=crop') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-login .login-subtitle,
.hero-login h1,
.hero-login h1 span {
    color: #ffffff !important;
}

.login-box h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 15px;
    color: var(--gold) !important;
}

.login-box h1 span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    font-size: 2.2rem;
    margin-top: 25px;
}

.logo span {
    white-space: nowrap;
}

.divider {
    width: 50px;
    height: 2px;
    background-color: var(--gold);
    margin: 20px auto;
}

.login-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 40px;
}

.btn-google {
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
}

.btn-google:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    text-align: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Header --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
    background-color: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--gold);
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.05);
}

.nav-item.active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212,175,55,0.08);
}

.logo {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo .serif-font {
    font-size: 1.6rem;
    color: var(--text-main);
}

.logo > span { color: var(--gold); }

.logo img {
    height: 50px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* --- Input & Form Elements --- */
.input-with-btn {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-action-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 45px;
    height: 50px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.input-action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.grid-date-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Phone Input */
.phone-input-group {
    display: flex;
    position: relative;
    width: 100%;
}

.dial-code-container {
    position: relative;
    flex-shrink: 0;
}

.dial-code-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 12px;
    height: 50px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dial-code-btn:hover {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.dial-code-btn img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
}

.dial-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    width: 250px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1100;
    display: none;
    flex-direction: column;
}

.dial-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dial-search-wrapper {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    position: sticky;
    top: 0;
}

.dial-search-wrapper i { color: var(--text-muted); font-size: 0.8rem; }

.dial-search-wrapper input {
    border: none;
    padding: 5px;
    font-size: 0.9rem;
    background: transparent;
}

.dial-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.dial-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.dial-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.dial-item img { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; }
.dial-item .country-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dial-item .dial-value { color: var(--text-muted); }

/* --- User Block --- */
.user-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 140px;
}

.user-name { font-weight: 600; font-size: 0.9rem; }
.user-role { font-size: 0.8rem; color: var(--text-muted); }
.logout-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}
.logout-btn:hover { color: var(--gold); }

/* --- Number Controls --- */
.number-control {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 50px;
}

.number-control:hover { border-color: rgba(212, 175, 55, 0.5); }
.number-control:focus-within { border-color: var(--gold); box-shadow: 0 0 15px rgba(212, 175, 55, 0.15); }

.number-control input[type="number"] {
    border: none;
    background: transparent;
    text-align: center;
    padding: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    -moz-appearance: textfield;
}

.number-control input::-webkit-outer-spin-button,
.number-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-main);
    width: 50px;
    height: 100%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="light"] .ctrl-btn { background: rgba(0, 0, 0, 0.03); }
.ctrl-btn:hover { background-color: var(--gold); color: #000; }
.ctrl-btn:active { transform: scale(0.95); }

/* --- Booking / Dashboard Layout --- */
.booking-section {
    padding: 50px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: background-color 0.3s, border-color 0.3s;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Capacity Bubble */
.capacity-bubble {
    position: absolute;
    background: #ff4444;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.capacity-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ff4444 transparent transparent transparent;
}

.capacity-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-row {
    display: flex;
    gap: 12px;
}

.option-btn {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.03); }
.option-btn:active { transform: scale(0.98); }

.option-btn.active {
    background-color: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.vehicle-btn {
    flex-direction: column;
    padding: 15px;
    height: auto;
}

.vehicle-info-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vehicle-name { font-weight: 600; font-size: 1rem; }
.vehicle-desc { font-size: 0.75rem; color: var(--text-muted); }
.option-btn.active .vehicle-desc { color: rgba(0,0,0,0.55); }

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.warning-text {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.map-card { padding: 20px; }

input, textarea, select {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    padding: 13px 15px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

textarea { height: 100px; resize: none; }

.btn-submit {
    width: 100%;
    background-color: var(--gold);
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background-color: var(--gold-hover);
    transform: translateY(-1px);
}

.btn-submit:active { transform: translateY(0); }

.empty-bookings {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px 0;
    text-align: center;
}

/* --- Booking Items --- */
.booking-item {
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: transform 0.2s, border-color 0.2s;
}

[data-theme="light"] .booking-item { background: rgba(0,0,0,0.02); }

.booking-item:hover {
    transform: translateY(-2px);
    border-color: rgba(212,175,55,0.4);
}

.booking-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.booking-details {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

/* --- Status Badges --- */
.status-pending {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-assigned {
    background: rgba(0, 123, 255, 0.15);
    color: #4d9fff;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-waiting_for_client {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-driving_to_destination {
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-completed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-no-show {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* --- Driver Progress Steps --- */
.driver-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 15px 0;
    padding: 12px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 80px;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step.done:not(:last-child)::after {
    background: var(--gold);
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 1;
    transition: all 0.3s;
}

.progress-step.done .step-dot {
    border-color: var(--gold);
    background: var(--gold);
    color: #000;
}

.progress-step.active .step-dot {
    border-color: var(--gold);
    background: rgba(212,175,55,0.2);
    color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}

.step-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.progress-step.done .step-label,
.progress-step.active .step-label {
    color: var(--gold);
    font-weight: 600;
}

.driver-action-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-driver {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-driver-primary {
    background: var(--gold);
    color: #000;
}

.btn-driver-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
}

.btn-driver-danger {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
}

.btn-driver-danger:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-1px);
}

.btn-driver-success {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.3);
}

.btn-driver-success:hover {
    background: #2ecc71;
    color: #000;
    transform: translateY(-1px);
}

/* --- Admin --- */
#admin-users-list .card,
#admin-reviews-list .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#admin-users-list .card:hover,
#admin-reviews-list .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.review-stars { font-size: 0.9rem; }

.btn-cancel-small {
    background: transparent;
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 7px 14px;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel-small:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
}

/* --- Destinations Gallery --- */
.destinations-section { padding: 70px 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.city-card {
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-card);
    cursor: pointer;
}

.city-card .image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.city-card img.active { opacity: 1; }

.city-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.city-info h3 { font-size: 1.3rem; color: white; }
.city-info p { color: var(--gold); font-size: 0.85rem; margin-top: 4px; }

.btn-learn {
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.btn-learn:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.modal.show { display: flex; }

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 620px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-arrow {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.modal-header h2 { margin: 0; color: var(--gold); }

.close-modal {
    color: var(--text-muted);
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 4px;
}

.close-modal:hover { color: var(--text-main); }

/* --- Auth Modal --- */
.auth-panel { display: block; }

.auth-panel.hidden { display: none !important; }

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--gold);
}

[data-theme="light"] .auth-input {
    background: #f5f5f5;
    border-color: #ddd;
    color: #111;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.input-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.error-msg {
    display: none;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #ff6b6b;
    font-weight: 500;
}

.error-msg.show {
    display: block;
}

.auth-input.error {
    border-color: #ff6b6b !important;
    background: rgba(255,107,107,0.05) !important;
}

.btn-submit:disabled,
.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth modal mobile responsiveness */
@media (max-width: 480px) {
    #authModal .modal-body {
        padding: 16px;
    }
    #authModal .modal-header {
        padding: 16px 16px 8px;
    }
    #authModal .form-group {
        margin-bottom: 12px;
    }
    .auth-input {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;
    }
    #authModal .btn-submit,
    #authModal .btn-google {
        min-height: 44px;
        font-size: 0.95rem;
    }
    .auth-switch {
        font-size: 0.8rem;
    }
}

.modal-body { padding: 28px; }

.modal-gallery {
    position: relative;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-image-wrapper {
    flex: 1;
    position: relative;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-arrow {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-arrow:hover { background: var(--gold); color: black; }

.img-index {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-body p {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1rem;
}

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--border);
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- Reviews Section --- */
.reviews-section {
    padding: 70px 0;
    background-color: var(--bg-body);
}

/* Reviews Carousel */
#reviews-grid {
    /* container handled by JS */
}

.reviews-carousel-outer {
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.reviews-carousel-outer:active { cursor: grabbing; }

.reviews-track {
    display: flex;
    gap: 25px;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.reviews-track .review-card {
    flex: 0 0 calc(33.333% - 17px);
    min-width: calc(33.333% - 17px);
}

@media (max-width: 1024px) {
    .reviews-track .review-card {
        flex: 0 0 calc(50% - 13px);
        min-width: calc(50% - 13px);
    }
}

@media (max-width: 680px) {
    .reviews-track .review-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--gold);
    width: 26px;
    border-radius: 4px;
}

.review-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-header strong {
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

.review-stars { color: var(--gold); font-size: 0.85rem; }

.review-text {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.93rem;
    flex-grow: 1;
}

.review-date {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    text-align: right;
}

[data-theme="light"] .review-date { color: rgba(0,0,0,0.3); }

.rating-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 8px 0;
}

.rating-selector i {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.8rem;
}

.rating-selector i:hover { transform: scale(1.25); }

/* --- Footer --- */
footer {
    background-color: var(--bg-card);
    padding: 70px 0 30px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    transition: background-color 0.3s;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo img { height: 50px; width: auto; }

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
}

.footer-logo-text span {
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.footer-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.88rem;
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin-bottom: 22px;
    color: var(--text-main);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

.contact-row {
    display: flex;
    gap: 12px;
    margin-bottom: 13px;
    color: var(--text-muted);
    font-size: 0.88rem;
    align-items: center;
}
.contact-row i { color: var(--gold); }

.copyright {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .top-controls button {
        width: 34px;
        height: 34px;
    }
    .user-block { margin-right: 80px; }
}

@media (max-width: 768px) {
    .user-block { margin-right: 0; }

    .top-controls { display: none !important; }
    .settings-wrapper { display: flex !important; align-items: center; flex-shrink: 0; }

    .settings-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .settings-dropdown {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: auto !important;
        bottom: auto !important;
        touch-action: manipulation;
    }

    .logo span { display: none; }
    .logo img { height: 36px; }

    .lang-switcher button, .theme-switcher button {
        width: 44px;
        height: 44px;
    }

    .grid-3, .input-grid, .dashboard-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-login { height: 100dvh; }

    .section-header h1 { font-size: 2.2rem; }

    .nav-links { display: none; }

    .grid-date-time { grid-template-columns: 1fr 1fr; }

    .grid-4 { grid-template-columns: repeat(3, 1fr); }

    footer { padding: 50px 0 20px; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .btn-row { flex-direction: column; }
    .card { padding: 20px; }
}

/* ==============================================
   BOOKING FORM RESPONSIVENESS
   ============================================== */
@media (max-width: 768px) {
    .booking-form-centered {
        max-width: 100%;
        padding: 0 10px;
    }
    .booking-form-card {
        padding: 18px;
    }
    .map-in-form {
        height: 160px;
    }
    /* Vehicle selection: 2x2 grid on tablet */
    .vehicle-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .vehicle-row .vehicle-btn {
        min-width: 0;
        padding: 12px 8px;
    }
    .vehicle-name { font-size: 0.9rem; }
    .vehicle-desc { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    /* Stack date/time vertically on small screens */
    .grid-date-time {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    /* Phone input: shrink dial code button */
    .dial-code-btn {
        padding: 0 8px;
        gap: 5px;
    }
    .dial-code-btn img {
        width: 16px;
        height: 16px;
    }
    #selected-dial-code {
        font-size: 0.85rem;
    }
    /* Inputs slightly smaller */
    input, textarea, select {
        padding: 11px 12px;
        font-size: 0.9rem;
    }
    /* Section header smaller */
    .booking-section .section-header h1 {
        font-size: 1.8rem;
    }
    .booking-section .section-header p {
        font-size: 0.9rem;
    }
    /* Number controls more compact */
    .number-control {
        max-width: 100%;
    }
    .ctrl-btn {
        width: 38px;
        height: 38px;
    }
    /* Travel status buttons stacked */
    #status-select.btn-row {
        flex-direction: column;
    }
    #status-select .option-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    /* Form group labels smaller */
    .form-group .label {
        font-size: 0.8rem;
    }
    /* Hide decorative action buttons on small screens - native pickers have built-in icons */
    .input-action-btn {
        display: none;
    }
    .input-with-btn input[type="date"],
    .input-with-btn input[type="time"] {
        border-radius: 6px;
    }
}

/* ==============================================
   MELHORIAS ADICIONAIS - VANITYSIGN
   ============================================== */

/* --- BOOKING FORM IMPROVEMENTS --- */
.booking-form-centered {
    max-width: 820px;
    margin: 0 auto;
}

.booking-form-card {
    position: relative;
    max-height: none !important;
    overflow: visible !important;
}

/* Map integrated inside the booking form */
.map-in-form-group {
    margin-bottom: 20px;
}

.map-in-form {
    height: 200px;
    border-radius: 10px;
    background: #111;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
    overflow: hidden;
}

/* Override Leaflet control z-index so they never appear above the sticky header */
.leaflet-top,
.leaflet-bottom {
    z-index: 500 !important;
}

/* --- Field hint (?) button & tooltip --- */
.label-with-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.label-with-hint .label {
    margin-bottom: 0;
}

.field-hint-btn {
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.field-hint-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,175,55,0.08);
}

.hint-popup {
    position: fixed;
    z-index: 99999;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    max-width: 260px;
    line-height: 1.55;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
    font-family: 'Inter', sans-serif;
}

.hint-popup.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Children notice --- */
.children-notice {
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.8rem;
    color: var(--gold);
    margin-top: 8px;
    display: none;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.children-notice.show { display: flex; }

/* --- Luggage 3-col grid --- */
.luggage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .luggage-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Notes button --- */
.btn-notes {
    background: transparent;
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--gold);
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.73rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-notes:hover {
    background: rgba(212,175,55,0.1);
    border-color: var(--gold);
}

/* --- Notes modal content --- */
.notes-modal-body {
    padding: 24px 28px;
    white-space: pre-wrap;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    min-height: 80px;
}

.map-in-form:hover {
    border-color: rgba(212, 175, 55, 0.35);
}

/* --- DASHBOARD IMPROVEMENTS --- */
.dashboard-search-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.dashboard-search-bar:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding-left: 45px !important;
}

.history-toggle-btn {
    white-space: nowrap;
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.history-toggle-btn.active {
    background: var(--gold) !important;
    color: #000 !important;
    border-color: var(--gold) !important;
}

.dashboard-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.dashboard-col-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.dashboard-col-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.col-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

/* --- DRIVER FLOW LEGEND --- */
.driver-flow-legend {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    min-width: 100px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.flow-step i {
    font-size: 1.3rem;
    color: var(--gold);
}

.flow-step span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.flow-arrow {
    color: var(--gold);
    font-size: 1rem;
    opacity: 0.6;
}

.flow-help {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.flow-help-icon {
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: help;
    transition: color 0.3s;
}
.flow-help-icon:hover { color: var(--gold); }

.flow-tooltip {
    display: none;
    position: absolute;
    bottom: 36px;
    right: 0;
    width: 280px;
    background: rgba(12,12,12,0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 16px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-main);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 10000;
}
.flow-help:hover .flow-tooltip { display: block; }
[data-theme="light"] .flow-tooltip {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* --- IMPROVED BOOKING ACTIONS --- */
.booking-actions {
    margin-top: 10px;
    text-align: right;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .dashboard-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-search-bar {
        flex-direction: column;
        gap: 12px;
    }

    .history-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .driver-flow-legend {
        flex-direction: column;
        gap: 10px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .flow-step {
        width: 100%;
        max-width: 200px;
    }

    .booking-item { padding: 14px; }
    .booking-main { flex-direction: column; align-items: flex-start; gap: 6px; }
    .booking-details { font-size: 0.78rem; }
    .booking-actions { flex-direction: column; width: 100%; }
    .booking-actions button { width: 100%; justify-content: center; }

    .cal-grid { gap: 1px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cal-day { min-height: 50px; padding: 3px; }
    .cal-day-num { font-size: 0.65rem; }
    .cal-bubble { font-size: 0.45rem; padding: 1px 2px; }
    .cal-legend { gap: 10px; font-size: 0.68rem; }
    .cal-nav h3 { font-size: 0.95rem; }
    .cal-day-name { font-size: 0.6rem; letter-spacing: 0; }
}

@media (max-width: 480px) {
    .col-title {
        font-size: 1rem;
    }

    .dashboard-col-card {
        padding: 18px;
    }
}

/* --- ENHANCED TRANSITIONS --- */
.booking-item,
.card,
.review-card,
.city-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- LOADING STATES --- */
.loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loading-placeholder i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--gold);
    animation: pulse 2s infinite;
}

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

/* --- IMPROVED FORM VALIDATION --- */
input:invalid, textarea:invalid {
    border-color: rgba(255, 68, 68, 0.5);
}

input:valid, textarea:valid {
    border-color: var(--border);
}

input:focus:invalid, textarea:focus:invalid {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* ==============================================
   FLEET MANAGEMENT (cars.html)
   ============================================== */
.fleet-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.fleet-tab {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fleet-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.fleet-tab.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.car-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.car-card-header strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.car-plate {
    background: rgba(212,175,55,0.15);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.car-card-details {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.car-card-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==============================================
   CALENDAR
   ============================================== */
.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    align-items: center;
}

.cal-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    min-width: 0;
}

.cal-day-name {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.cal-day {
    min-height: 80px;
    padding: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

[data-theme="light"] .cal-day {
    background: rgba(0,0,0,0.02);
}

.cal-day:hover {
    border-color: rgba(212,175,55,0.4);
    background: rgba(212,175,55,0.05);
}

.cal-day.empty {
    background: transparent;
    cursor: default;
}

.cal-day.empty:hover {
    border-color: transparent;
    background: transparent;
}

.cal-day.today {
    border-color: var(--gold);
    background: rgba(212,175,55,0.08);
}

.cal-day-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cal-day.today .cal-day-num {
    color: var(--gold);
}

.cal-day-bubbles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-bubble {
    font-size: 0.55rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.cal-bubble-green {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}

.cal-bubble-blue {
    background: rgba(77,159,255,0.2);
    color: #4d9fff;
}

.cal-bubble-yellow {
    background: rgba(212,175,55,0.2);
    color: var(--gold);
}

.cal-bubble-red {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}

@media (max-width: 600px) {
    .cal-day {
        min-height: 60px;
        padding: 4px;
    }
    .cal-day-num {
        font-size: 0.7rem;
    }
    .cal-bubble {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
}

/* --- ACCESSIBILITY IMPROVEMENTS --- */
.btn-submit:focus,
.btn-google:focus,
.btn-learn:focus,
.option-btn:focus,
.ctrl-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Skip focus on mouse users, show only for keyboard navigation */
.btn-submit:focus:not(:focus-visible),
.btn-google:focus:not(:focus-visible),
.btn-learn:focus:not(:focus-visible) {
    outline: none;
}

/* --- PRINT STYLES --- */
@media print {
    .top-controls,
    header,
    footer,
    .btn-submit,
    .btn-cancel-small,
    .booking-actions {
        display: none !important;
    }

    .booking-item,
    .card {
        page-break-inside: avoid;
    }
}
