/* Copy of TaxiHub.App/wwwroot/css/app.css */
/*#if (SampleContent)*/
html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/*#endif*/
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column,
    .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* TaxiHub Premium UI & Map Layout */
:root {
    --taxi-primary: #2c3e50;
    --taxi-accent: #f1c40f;
    /* Taxi Yellow */
    --taxi-text-on-accent: #2c3e50;
    --taxi-bg-light: #f8f9fa;
    --taxi-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --taxi-radius: 16px;
}

body {
    background-color: var(--taxi-bg-light);
    /* overflow: hidden removed to allow scrolling on non-main pages */
}

html,
body {
    background-color: transparent !important;
    /* Ensure browser background is clear */
}

.maui-app,
.maui-app body {
    background-color: transparent !important;
    pointer-events: none;
    /* Let touches fall through to the map */
}

/* Re-enable pointer events for interactive elements */
.controls-view,
.top-row,
.btn,
.input-group,
.navbar,
a,
button,
input,
select,
textarea,
[role="button"],
.pointer-auto {
    pointer-events: auto !important;
}

/* Base Layout Container */

/* Base Layout Container */
.page {
    height: 100vh;
    height: 100dvh;
    /* Mobile viewport height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent body scrolling */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Allow shrinking */
}

.content {
    flex: 1;
    padding: 0 !important;
    /* Override default padding for full screen map */
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    /* Enable vertical scrolling for content only */
    -webkit-overflow-scrolling: touch;
}

/* Rigid Split Layout */
.dashboard-split-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-view {
    position: relative;
    width: 100%;
    height: 60%;
    /* Mobile: Map takes top 60% */
    z-index: 1;
}

.controls-view {
    position: relative;
    width: 100%;
    height: 40%;
    /* Mobile: Controls take bottom 40% */
    background-color: white;
    z-index: 100;

    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);

    overflow-y: auto;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.map-view .map-container {
    width: 100%;
    height: 100%;
}

/* Full-bleed Leaflet map: the placeholder div hosts the Leaflet container and must
   have an explicit, non-zero size or the map renders blank. It sits at the bottom
   of the stack; the floating menu and bottom sheet layer above it. */
#map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#map-placeholder .leaflet-container {
    width: 100%;
    height: 100%;
    background: #e9e7e2; /* neutral tile-loading backdrop instead of white flash */
}
/* Hide Leaflet's default zoom control — it collides with the floating menu button,
   and the minimalist UI relies on pinch/scroll to zoom. */
#map-placeholder .leaflet-control-zoom { display: none; }

.btn-taxi-primary {
    background-color: var(--taxi-accent);
    color: var(--taxi-text-on-accent);
    border: none;
    font-weight: bold;
    border-radius: 50px;
    padding: 12px 24px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner Styles */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-inline {
    padding: 20px;
}

/* Online Status Badge */
.online-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.online-status-badge.online {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.online-status-badge.offline {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.online-dot {
    background-color: #28a745;
}

.status-dot.offline-dot {
    background-color: #dc3545;
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Connection Status in Header */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
}

.connection-status.connected {
    color: #4caf50;
}

.connection-status.disconnected {
    color: #f44336;
}

.connection-status.connecting {
    color: #ff9800;
}

.connection-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.connection-indicator.connected {
    background-color: #4caf50;
    animation: pulse 2s ease-in-out infinite;
}

.connection-indicator.disconnected {
    background-color: #f44336;
}

.connection-indicator.connecting {
    background-color: #ff9800;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.3;
    }
}

/* Button Loading State */
.btn.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 16px;
}

.skeleton-button {
    height: 40px;
    border-radius: 20px;
}

/* Toast/Notification Styles */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
}

.toast {
    min-width: 300px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-success {
    border-left: 4px solid #28a745;
}

.toast.toast-error {
    border-left: 4px solid #dc3545;
}

.toast.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast.toast-warning {
    border-left: 4px solid #ffc107;
}

/* Disabled State Overlay */
.disabled-overlay {
    position: relative;
    pointer-events: none;
    opacity: 0.5;
}

.disabled-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
}

/* ============================================================
   ZEENA — Premium minimalist design language
   High-contrast, geometric, strictly utilitarian.
   ============================================================ */
:root {
    --zeena-ink: #0a0a0a;          /* near-black text / primary */
    --zeena-ink-soft: #1a1a1a;
    --zeena-muted: #6b7280;        /* secondary text */
    --zeena-faint: #9ca3af;
    --zeena-line: #e6e6e6;         /* hairline borders */
    --zeena-fill: #f3f3f3;         /* input / chip fill */
    --zeena-surface: #ffffff;
    --zeena-radius: 8px;
    --zeena-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--zeena-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
    color: var(--zeena-ink);
}

/* Strict type hierarchy: bold, tight headers; small, muted secondary text. */
.zeena-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--zeena-ink);
    margin: 0;
}
.zeena-subtitle {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--zeena-muted);
    letter-spacing: -0.005em;
}
.zeena-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--zeena-faint);
}

/* --- Prominent search field --- */
.zeena-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--zeena-fill);
    border: 1px solid transparent;
    border-radius: var(--zeena-radius);
    padding: 15px 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.zeena-search:focus-within {
    background: #fff;
    border-color: var(--zeena-ink);
}
.zeena-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--zeena-ink);
    letter-spacing: -0.01em;
}
.zeena-search input::placeholder { color: var(--zeena-faint); font-weight: 500; }
.zeena-search .zeena-search-clear {
    border: none;
    background: transparent;
    color: var(--zeena-faint);
    display: inline-flex;
    padding: 0;
    cursor: pointer;
}

/* --- Route input area with connecting line --- */
.route-inputs {
    position: relative;
    padding: 4px 0;
}
/* The thin vertical line linking the pickup circle to the destination pin. */
.route-inputs::before {
    content: "";
    position: absolute;
    left: 11px;                 /* centered under the 24px icon column */
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--zeena-line);
    border-radius: 2px;
}
.route-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    cursor: pointer;
}
.route-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    background: var(--zeena-surface); /* mask the connector behind the icon */
}
.route-body { flex: 1 1 auto; min-width: 0; }
.route-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zeena-faint);
    margin-bottom: 1px;
}
.route-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--zeena-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.route-value.placeholder-text { color: var(--zeena-faint); font-weight: 500; }
.route-row.active .route-value { color: var(--zeena-ink); }
.route-crosshair {
    border: none;
    background: transparent;
    color: var(--zeena-muted);
    padding: 4px;
    display: inline-flex;
    cursor: pointer;
}

/* --- Minimalist quick-action chips (Saved Places) --- */
.zeena-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.zeena-chips::-webkit-scrollbar { display: none; }
.zeena-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 9px 14px;
    border: 1px solid var(--zeena-line);
    border-radius: 999px;
    background: var(--zeena-surface);
    color: var(--zeena-ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.zeena-chip:hover { border-color: var(--zeena-ink); }
.zeena-chip .chip-icon { width: 15px; height: 15px; }

/* --- Search results list --- */
.zeena-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--zeena-line);
    padding: 13px 4px;
    cursor: pointer;
}
.zeena-result:last-child { border-bottom: none; }
.zeena-result:hover { background: var(--zeena-fill); }
.zeena-result .zeena-result-ic {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--zeena-fill);
    display: flex; align-items: center; justify-content: center;
    color: var(--zeena-ink);
}
.zeena-result-title { font-size: 0.9rem; font-weight: 600; color: var(--zeena-ink); }
.zeena-result-sub { font-size: 0.74rem; color: var(--zeena-muted); }

/* --- Ride tier cards --- */
.tier-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--zeena-line);
    border-radius: var(--zeena-radius);
    background: var(--zeena-surface);
    cursor: pointer;
    transition: border-color 0.12s ease;
}
.tier-card + .tier-card { margin-top: 8px; }
.tier-card:hover { border-color: var(--zeena-faint); }
/* Selected: heavy solid black border, no background change. Compensate padding
   for the thicker border so the card doesn't shift. */
.tier-card.selected {
    border: 2px solid #000;
    padding: 13px;
}
.tier-icon { width: 30px; display: flex; justify-content: center; flex-shrink: 0; color: var(--zeena-ink); }
.tier-body { flex: 1 1 auto; min-width: 0; }
.tier-name { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--zeena-ink); }
.tier-desc { font-size: 0.7rem; font-weight: 500; color: var(--zeena-muted); }
.tier-price {
    margin-left: auto;
    text-align: right;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--zeena-ink);
    white-space: nowrap;
}

/* --- Trip summary line --- */
.trip-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.trip-summary .trip-figure { font-size: 0.85rem; font-weight: 700; color: var(--zeena-ink); letter-spacing: -0.01em; }

/* --- Primary CTA: stark black button --- */
.btn-taxi-primary,
.btn-zeena {
    background-color: #000 !important;
    color: #fff !important;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    border-radius: var(--zeena-radius);
    padding: 16px;
    width: 100%;
    box-shadow: none;
    transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn-taxi-primary:hover,
.btn-zeena:hover { background-color: #1a1a1a !important; color: #fff !important; }
.btn-taxi-primary:active,
.btn-zeena:active { transform: scale(0.995); }
.btn-taxi-primary:disabled,
.btn-zeena:disabled { background-color: #cfcfcf !important; color: #fff !important; }

/* Secondary / destructive, kept minimalist */
.btn-zeena-outline {
    background: #fff;
    color: var(--zeena-ink);
    border: 1px solid var(--zeena-line);
    font-weight: 600;
    border-radius: var(--zeena-radius);
    padding: 14px;
    width: 100%;
    transition: border-color 0.15s ease;
}
.btn-zeena-outline:hover { border-color: var(--zeena-ink); color: var(--zeena-ink); }
.btn-zeena-danger {
    background: #fff;
    color: #111;
    border: 1px solid var(--zeena-line);
    font-weight: 600;
    border-radius: var(--zeena-radius);
    padding: 14px;
    width: 100%;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-zeena-danger:hover { border-color: #dc2626; color: #dc2626; }

/* Bottom sheet: cleaner, flatter premium surface */
.bottom-sheet-container {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12) !important;
}

/* ============================================================
   ZEENA — Secondary pages (Settings / Profile / History)
   Stark white, minimal borders, heavy headers, geometric icons.
   ============================================================ */
.secondary-page {
    background: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--zeena-ink);
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

/* Minimal header: back chevron left, centered bold title, pure white. */
.page-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 60px;
    padding: calc(env(safe-area-inset-top, 0px)) 8px 0;
    background: #ffffff;
}
.page-back {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--zeena-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
}
.page-back:hover { background: var(--zeena-fill); }
.page-header-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--zeena-ink);
}
.page-header-spacer { width: 44px; flex-shrink: 0; }

.page-body { padding: 4px 20px 0; }
.page-hero-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 8px 0 2px;
    color: var(--zeena-ink);
}

/* Section eyebrow label */
.zeena-section-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--zeena-faint);
    margin: 30px 0 2px;
}

/* Flush list rows */
.zeena-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 2px;
    border-bottom: 1px solid #eee;
}
.zeena-row:last-child { border-bottom: none; }
.zeena-row-label { font-size: 0.95rem; font-weight: 600; color: var(--zeena-ink); }
.zeena-row-value {
    margin-left: auto;
    color: var(--zeena-muted);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.zeena-row.clickable { cursor: pointer; }
.zeena-row.clickable:hover { background: #fafafa; }
.zeena-row .chev { margin-left: auto; color: var(--zeena-faint); display: inline-flex; }

/* Developer section (Settings, dev builds only): connection-state dot next to the value. */
.debug-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #9ca3af; }
.debug-dot.ok { background: #16a34a; }
.debug-dot.warn { background: #d97706; }
.debug-dot.err { background: #dc2626; }

/* Minimalist toggle switch */
.zeena-switch { position: relative; display: inline-block; width: 46px; height: 28px; flex-shrink: 0; margin-left: auto; }
.zeena-switch input { opacity: 0; width: 0; height: 0; }
.zeena-switch .track {
    position: absolute; inset: 0; cursor: pointer;
    background: #e2e2e2; border-radius: 999px; transition: background 0.18s ease;
}
.zeena-switch .track::before {
    content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform 0.18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.zeena-switch input:checked + .track { background: #0a0a0a; }
.zeena-switch input:checked + .track::before { transform: translateX(18px); }

/* Segmented control */
.zeena-seg { display: inline-flex; margin-left: auto; background: var(--zeena-fill); border-radius: 8px; padding: 3px; }
.zeena-seg button {
    border: none; background: transparent; padding: 6px 16px; border-radius: 6px;
    font-size: 0.82rem; font-weight: 600; color: var(--zeena-muted); cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.zeena-seg button.active { background: #0a0a0a; color: #fff; }

/* Minimalist select */
.zeena-select {
    margin-left: auto; border: none; background: var(--zeena-fill);
    border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; font-weight: 600;
    color: var(--zeena-ink); cursor: pointer;
}

/* Flush fields (profile): label small caps, large dark input, thin bottom rule */
.zeena-field { padding: 14px 0; border-bottom: 1px solid #eee; }
.zeena-field-label {
    display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--zeena-faint); margin-bottom: 6px;
}
.zeena-field-row { display: flex; align-items: center; gap: 10px; }
.zeena-field input {
    flex: 1 1 auto; width: 100%; border: none; background: transparent; outline: none;
    font-size: 1.05rem; font-weight: 600; color: var(--zeena-ink); padding: 0;
}
.zeena-field-action {
    border: none; background: transparent; color: var(--zeena-muted);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    cursor: pointer;
}
.zeena-field-action:hover { color: var(--zeena-ink); }

/* History rows */
.history-row {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 2px; border-bottom: 1px solid #eee;
}
.history-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
    background: var(--zeena-fill); display: flex; align-items: center; justify-content: center;
    color: var(--zeena-ink);
}
.history-body { flex: 1 1 auto; min-width: 0; }
.history-date { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zeena-faint); margin-bottom: 2px; }
.history-dest { font-size: 0.95rem; font-weight: 600; color: var(--zeena-ink); }
.history-price { margin-left: auto; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--zeena-ink); white-space: nowrap; }

/* Minimal stat cards */
.zeena-stats { display: flex; gap: 12px; margin-top: 6px; }
.zeena-stat { flex: 1; border: 1px solid var(--zeena-line); border-radius: 12px; padding: 16px; }
.zeena-stat-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--zeena-ink); line-height: 1.1; }
.zeena-stat-label { font-size: 0.72rem; font-weight: 500; color: var(--zeena-muted); }

/* Profile avatar */
.zeena-avatar {
    width: 84px; height: 84px; border-radius: 50%; background: var(--zeena-ink);
    color: #fff; display: flex; align-items: center; justify-content: center; margin: 8px auto 12px;
}
.zeena-role-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--zeena-ink); background: var(--zeena-fill); padding: 4px 10px; border-radius: 999px;
}

/* Empty state */
.zeena-empty { text-align: center; padding: 64px 20px; color: var(--zeena-muted); }
.zeena-empty .zeena-empty-title { font-weight: 700; color: var(--zeena-ink); margin-top: 12px; }

/* ============================================================
   DRIVER PING — full-screen exclusive ride offer (cascade dispatch)
   ============================================================ */
.ping-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    animation: ping-fade 0.18s ease;
    padding: 16px;
}
@keyframes ping-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (min-width: 560px) {
    .ping-overlay { align-items: center; }
}

.ping-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 22px;
    padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.4);
    animation: zeena-slide-in-up 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zeena-slide-in-up {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Shrinking countdown bar */
.ping-progress-track {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #ececec;
    overflow: hidden;
    margin-bottom: 20px;
}
.ping-progress-bar {
    height: 100%;
    background: #000;
    border-radius: 3px;
    transition: width 0.2s linear;
}

.ping-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ping-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--zeena-muted);
}
.ping-timer {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #000;
    font-variant-numeric: tabular-nums;
}
.ping-timer small { font-size: 0.8rem; font-weight: 700; color: var(--zeena-muted); }

.ping-payout {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #000;
    line-height: 1;
}
.ping-payout-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--zeena-muted);
    margin-top: 4px;
    margin-bottom: 22px;
}

.ping-route { margin-bottom: 20px; }
.ping-route-row { display: flex; align-items: flex-start; gap: 12px; }
.ping-route-row + .ping-route-row { margin-top: 14px; }
.ping-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 3px;
    flex-shrink: 0;
}
.ping-dot.pickup { background: #16a34a; }
.ping-dot.dropoff { background: #000; }
.ping-route-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zeena-faint);
}
.ping-route-value { font-size: 0.98rem; font-weight: 600; color: var(--zeena-ink); }

.ping-meta {
    display: flex;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.ping-meta-item { flex: 1; text-align: center; }
.ping-meta-item strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--zeena-ink);
}
.ping-meta-item span { font-size: 0.7rem; color: var(--zeena-muted); }

.ping-actions { display: flex; flex-direction: column; gap: 10px; }
.ping-accept {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #000;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.ping-accept:hover:not(:disabled) { background: #1a1a1a; }
.ping-accept:active:not(:disabled) { transform: scale(0.995); }
.ping-accept:disabled { background: #cfcfcf; cursor: not-allowed; }
.ping-decline {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--zeena-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.ping-decline:hover:not(:disabled) { color: var(--zeena-ink); }

/* ============================================================
   DRIVER EARNINGS — week nav, native CSS bar chart, stats, tier
   ============================================================ */
.earn-weeknav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 20px;
}
.earn-weekbtn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--zeena-line);
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zeena-ink);
    cursor: pointer;
}
.earn-weekbtn:hover:not(:disabled) { background: var(--zeena-fill); }
.earn-weekbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.earn-weeklabel { font-size: 0.95rem; font-weight: 700; color: var(--zeena-ink); }

.earn-headline { margin-bottom: 22px; }
.earn-headline-value { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--zeena-ink); line-height: 1; }
.earn-headline-label { font-size: 0.85rem; font-weight: 500; color: var(--zeena-muted); margin-top: 4px; }

/* Bar chart: 7 equal columns, bars grow from a fixed-height track. */
.earn-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    align-items: end;
    margin-bottom: 26px;
}
.earn-chart-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.earn-bar-track {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.earn-bar {
    width: 66%;
    max-width: 34px;
    min-height: 3px;
    background: #0a0a0a;
    border-radius: 6px 6px 3px 3px;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.earn-bar.empty { background: #e6e6e6; }
.earn-chart-daylabel { font-size: 0.68rem; font-weight: 600; color: var(--zeena-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Stats grid */
.earn-stats { display: flex; gap: 12px; margin-bottom: 6px; }
.earn-stat { flex: 1; border: 1px solid var(--zeena-line); border-radius: 12px; padding: 16px 12px; text-align: center; }
.earn-stat-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--zeena-ink); line-height: 1.1; }
.earn-stat-label { font-size: 0.72rem; font-weight: 500; color: var(--zeena-muted); margin-top: 2px; }

/* Tier progression */
.earn-tier { border: 1px solid var(--zeena-line); border-radius: 14px; padding: 18px; }
.earn-tier-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.earn-tier-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--zeena-ink); }
.earn-tier-points { font-size: 0.8rem; font-weight: 600; color: var(--zeena-muted); }
.earn-tier-track { width: 100%; height: 8px; background: var(--zeena-fill); border-radius: 999px; overflow: hidden; }
.earn-tier-fill { height: 100%; background: #0a0a0a; border-radius: 999px; transition: width 0.4s ease; }
.earn-tier-caption { font-size: 0.78rem; font-weight: 500; color: var(--zeena-muted); margin-top: 8px; }

/* ============================================================
   DRIVER COMPLIANCE — documents page + status chips
   ============================================================ */
.doc-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 8px 0 6px;
    border: 1px solid var(--zeena-line);
    color: var(--zeena-ink);
}
.doc-summary.ok { border-color: #bbe5c8; background: #f2fbf5; color: #14532d; }
.doc-summary.warn { border-color: #f3ddb0; background: #fdf8ec; color: #713f12; }
.doc-summary.err { border-color: #f2c1c1; background: #fdf1f1; color: #7f1d1d; }

.doc-sub { font-size: 0.74rem; color: var(--zeena-muted); margin-top: 2px; }
.doc-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.doc-chip {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--zeena-fill);
    color: var(--zeena-muted);
}
.doc-chip.ok { background: #e5f6ea; color: #166534; }
.doc-chip.warn { background: #fdf3d9; color: #854d0e; }
.doc-chip.err { background: #fbe4e4; color: #991b1b; }
.doc-upload {
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.doc-upload:hover:not(:disabled) { background: #000; color: #fff; }
.doc-upload:disabled { opacity: 0.4; cursor: not-allowed; }

/* "Cannot go online" blocker card (DriverState.Blocked) — locked palette. */
.blocker-card {
    background-color: #3b1a1a;
    color: #ff6b6b;
    border-radius: 14px;
    padding: 18px;
    margin: 4px 0 12px;
}
.blocker-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.blocker-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ff9d9d; /* softer tint for body copy, headline stays #ff6b6b */
    margin: 0 0 12px;
}
.blocker-actions-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.blocker-list {
    margin: 0 0 14px;
    padding-left: 18px;
    font-size: 0.88rem;
    font-weight: 600;
}
.blocker-list li + li { margin-top: 4px; }
.blocker-cta {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #ff6b6b;
    color: #3b1a1a;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.blocker-cta:hover { filter: brightness(1.08); }

/* ============================================================
   POST-RIDE — rating stars + tipping sheet (PassengerState.RideCompleted)
   ============================================================ */
.postride { text-align: center; padding: 8px 4px 4px; }
.postride-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--zeena-ink);
    margin: 0 0 4px;
}
.postride-sub { font-size: 0.9rem; color: var(--zeena-muted); margin: 0 0 18px; }

.postride-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; }
.postride-star {
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    color: #c9c9c9;           /* empty: light outline */
    transition: color 0.12s ease, transform 0.08s ease;
}
.postride-star.filled { color: #000; }  /* filled: solid black */
.postride-star:active { transform: scale(0.92); }

.postride-tip-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--zeena-faint);
    margin-bottom: 10px;
}
.postride-tips { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.tip-pill {
    border: 1px solid var(--zeena-line);
    background: #fff;
    color: var(--zeena-ink);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.tip-pill:hover { border-color: var(--zeena-faint); }
.tip-pill.active { background: #000; border-color: #000; color: #fff; }

.postride-custom-tip {
    width: 60%;
    margin: 0 auto 12px;
    display: block;
    padding: 10px 2px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--zeena-ink);
    outline: none;
    -webkit-appearance: none;
}
.postride-custom-tip::placeholder { color: #b3b3b3; font-weight: 400; }

.postride-submit { margin-top: 8px; }
.postride-skip {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: none;
    background: transparent;
    color: var(--zeena-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
}
.postride-skip:hover:not(:disabled) { color: var(--zeena-ink); }