/* ============================================
   UYALI â€“ Premium Errand & Delivery Platform
   Production Stylesheet v2.0
   ============================================ */

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   0. DESIGN TOKENS & CUSTOM PROPERTIES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    /* â”€â”€ Zinc Palette â”€â”€ */
    --zinc-50:  #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;

    /* â”€â”€ Emerald â”€â”€ */
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;

    /* â”€â”€ Indigo â”€â”€ */
    --indigo-50:  #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;

    /* â”€â”€ Amber â”€â”€ */
    --amber-50:  #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-700: #b45309;

    /* â”€â”€ Rose â”€â”€ */
    --rose-50:  #fff1f2;
    --rose-100: #ffe4e6;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;

    /* â”€â”€ Semantic Variables (Light) â”€â”€ */
    --bg-primary:    var(--zinc-100);
    --bg-card:       #ffffff;
    --bg-input:      var(--zinc-100);
    --bg-elevated:   var(--zinc-900);
    --bg-hover:      var(--zinc-50);
    --text-primary:  var(--zinc-900);
    --text-secondary:var(--zinc-600);
    --text-muted:    #6b6b74; /* WCAG AA: 4.8:1 on input grey, 5.3:1 on white */
    --text-on-elevated: #ffffff;
    --border-primary:var(--zinc-300);
    --border-subtle: var(--zinc-200);

    /* â”€â”€ Shadows â”€â”€ */
    --shadow-subtle: 0 4px 30px rgba(0,0,0,0.03);
    --shadow-medium: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-heavy:  0 20px 50px rgba(0,0,0,0.12);
    --shadow-glow-emerald: 0 8px 32px rgba(16,185,129,0.25);

    /* â”€â”€ Radius â”€â”€ */
    --radius-sm:   16px;
    --radius-md:   20px;
    --radius-lg:   24px;
    --radius-xl:   28px;
    --radius-2xl:  34px;
    --radius-3xl:  38px;
    --radius-4xl:  48px;
    --radius-full: 9999px;

    /* â”€â”€ Motion â”€â”€ */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 200ms var(--ease-out);
    --transition-base: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   0b. DARK MODE OVERRIDES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root[data-theme="dark"] {
    --bg-primary:    var(--zinc-950);
    --bg-card:       var(--zinc-900);
    --bg-input:      var(--zinc-800);
    --bg-elevated:   var(--zinc-50);
    --bg-hover:      var(--zinc-800);
    --text-primary:  var(--zinc-50);
    --text-secondary:var(--zinc-400);
    --text-muted:    #8e8e97; /* WCAG AA: 4.6:1 on zinc-800, 5.5:1 on zinc-900 */
    --text-on-elevated: var(--zinc-900);
    --border-primary:var(--zinc-500);
    --border-subtle: var(--zinc-600);

    --shadow-subtle: 0 4px 30px rgba(0,0,0,0.4);
    --shadow-medium: 0 10px 25px rgba(0,0,0,0.5);
    --shadow-heavy:  0 20px 50px rgba(0,0,0,0.6);
}

/* Theme icon swap */
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark  { display: inline-flex; }
[data-theme="dark"]  .theme-icon-dark  { display: none; }
[data-theme="dark"]  .theme-icon-light { display: inline-flex; }


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   LOGIN SCREEN â€“ Flat Split Design
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* App hidden until login */
.app-hidden {
    display: none !important;
}

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    background: #ffffff;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.login-screen.exiting {
    opacity: 0;
    transform: scale(1.01);
    pointer-events: none;
}

/* â”€â”€ LEFT PANEL â”€â”€ */
.login-left {
    width: 44%;
    min-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.login-left-inner {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    animation: loginFadeIn 0.6s ease both;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ Logo â”€â”€ */
.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-logo-icon {
    width: 38px;
    height: 38px;
    background: #18181b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-logo-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}
.login-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #18181b;
    letter-spacing: 0.06em;
}

/* â”€â”€ Role Selector â”€â”€ */
.login-role-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.login-role-label {
    font-size: 13px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.login-role-circles {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}
.login-role-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid #e4e4e7;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #71717a;
    position: relative;
    flex: 1;
    max-width: 120px;
}
.login-role-circle svg {
    width: 22px;
    height: 22px;
}
.login-role-circle-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.login-role-circle:hover {
    border-color: #a1a1aa;
    background: #f4f4f5;
    color: #3f3f46;
}

/* Active states per role â€” flat solid colors */
.login-role-circle.active[data-login-role="explorer"] {
    border-color: #6366f1;
    background: #eef2ff;
    color: #4f46e5;
}
.login-role-circle.active[data-login-role="runner"] {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}
.login-role-circle.active[data-login-role="merchant"] {
    border-color: #8b5cf6;
    background: #f5f3ff;
    color: #7c3aed;
}

/* â”€â”€ Form â”€â”€ */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.login-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.login-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #3f3f46;
    padding-left: 2px;
}
.login-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    background: #fafafa;
    border: 1.5px solid #e4e4e7;
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s ease;
}
.login-field:focus-within {
    border-color: #6366f1;
}
.login-field-icon {
    width: 16px;
    height: 16px;
    color: #a1a1aa;
    flex-shrink: 0;
}
.login-input {
    flex: 1;
    height: 100%;
    background: transparent;
    color: #18181b;
    font-size: 14px;
    font-weight: 400;
    border: none;
    outline: none;
}
.login-input::placeholder {
    color: #a1a1aa;
}

/* â”€â”€ Sign In Button (flat solid) â”€â”€ */
.login-continue-btn {
    width: 100%;
    height: 48px;
    background: #18181b;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}
.login-continue-btn:hover {
    background: #27272a;
}
.login-continue-btn:active {
    transform: scale(0.98);
}
.login-btn-text {
    font-size: 15px;
    font-weight: 700;
    color: white;
}
.login-btn-arrow {
    width: 18px;
    height: 18px;
    color: white;
    transition: transform 0.2s ease;
}
.login-continue-btn:hover .login-btn-arrow {
    transform: translateX(3px);
}

/* Loading state */
.login-continue-btn.loading .login-btn-text,
.login-continue-btn.loading .login-btn-arrow {
    opacity: 0;
}
.login-continue-btn.loading {
    position: relative;
}
.login-continue-btn.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: loginSpin 0.7s linear infinite;
}
@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

/* â”€â”€ Social Login â”€â”€ */
.login-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.login-social-label {
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    position: relative;
    width: 100%;
    text-align: center;
}
.login-social-label::before,
.login-social-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 65px);
    height: 1px;
    background: #e4e4e7;
}
.login-social-label::before { left: 0; }
.login-social-label::after  { right: 0; }

.login-social-circles {
    display: flex;
    align-items: center;
    gap: 16px;
}
.login-social-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #e4e4e7;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #3f3f46;
}
.login-social-circle:hover {
    border-color: #a1a1aa;
    background: #f4f4f5;
}

/* â”€â”€ Sign Up & Legal â”€â”€ */
.login-signup {
    font-size: 13px;
    color: #71717a;
    text-align: center;
}
.login-signup-link {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-signup-link:hover {
    color: #4f46e5;
}

.login-legal {
    font-size: 11px;
    color: #a1a1aa;
    text-align: center;
    line-height: 1.5;
}
.login-legal a {
    color: #71717a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.login-legal a:hover {
    color: #18181b;
}

/* â”€â”€ RIGHT PANEL (Preview) â”€â”€ */
.login-right {
    flex: 1;
    display: flex;
    position: relative;
    background: #f5f5f7;
    border-left: 1px solid #e4e4e7;
    overflow: hidden;
}

.login-preview {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.login-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.login-preview-img.active {
    opacity: 1;
}

/* â”€â”€ Callout Bubbles (flat style) â”€â”€ */
.preview-callouts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.preview-callouts.active {
    opacity: 1;
}

.preview-callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0;
    animation: calloutFloat 3s ease-in-out infinite;
}

.callout-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6366f1;
    flex-shrink: 0;
    position: relative;
}
.callout-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.3);
    animation: dotPing 2s ease-in-out infinite;
}

.callout-line {
    height: 2px;
    background: #6366f1;
    flex-shrink: 0;
    opacity: 0.5;
}

.callout-bubble {
    padding: 6px 12px;
    background: #18181b;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}
.callout-bubble.left {
    order: -1;
}

@keyframes calloutFloat {
    0%, 100% { opacity: 0.85; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes dotPing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 900px) {
    .login-screen {
        flex-direction: column;
    }
    .login-left {
        width: 100%;
        min-width: unset;
        padding: 32px 24px;
        flex: 1;
    }
    .login-right {
        display: none;
    }
    .login-left-inner {
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 24px 20px;
    }
    .login-left-inner {
        gap: 18px;
    }
    .login-role-circle {
        padding: 10px 12px;
    }
    .login-continue-btn {
        height: 46px;
    }
}



/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   1. GLOBAL RESET & BASE
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    height: 100%;
    font-family: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow: hidden;
    line-height: 1.5;
    transition: background var(--transition-base), color var(--transition-base);
}

::selection {
    background: var(--emerald-400);
    color: var(--zinc-900);
}

button, input, select, textarea {
    font: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--zinc-300);
    border-radius: var(--radius-full);
}
:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--zinc-600);
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   2. TOAST NOTIFICATION SYSTEM
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#toast-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 340px;
    max-width: 440px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.5s var(--ease-spring) forwards;
    transform: translateX(120%);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.toast.exiting {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast.success .toast-icon { background: var(--emerald-100); color: var(--emerald-600); }
.toast.info .toast-icon    { background: var(--indigo-100); color: var(--indigo-600); }
.toast.warning .toast-icon { background: var(--amber-100); color: var(--amber-700); }
.toast.error .toast-icon   { background: var(--rose-100); color: var(--rose-600); }

:root[data-theme="dark"] .toast.success .toast-icon { background: rgba(16,185,129,0.15); }
:root[data-theme="dark"] .toast.info .toast-icon    { background: rgba(99,102,241,0.15); }
:root[data-theme="dark"] .toast.warning .toast-icon { background: rgba(245,158,11,0.15); }
:root[data-theme="dark"] .toast.error .toast-icon   { background: rgba(244,63,94,0.15); }

.toast-content {
    flex: 1;
    min-width: 0;
}
.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.toast-close:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}
.toast-close svg { width: 14px; height: 14px; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    animation: toastProgress 4s linear forwards;
}
.toast.success .toast-progress { background: var(--emerald-500); }
.toast.info .toast-progress    { background: var(--indigo-500); }
.toast.warning .toast-progress { background: var(--amber-500); }
.toast.error .toast-progress   { background: var(--rose-500); }

@keyframes toastSlideIn {
    to { transform: translateX(0); }
}
@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   3. TOP NAVIGATION BAR
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#top-nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    position: relative;
    flex-shrink: 0;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}
.nav-logo {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}
.nav-logo:hover {
    transform: rotate(-8deg) scale(1.05);
}
.nav-logo-icon {
    width: 20px;
    height: 20px;
    color: var(--emerald-400);
    transform: rotate(-45deg);
}
.nav-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* Nav Links (Desktop Pills) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-primary);
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.nav-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.nav-btn.active {
    color: var(--text-primary);
    background: var(--bg-card);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav-btn svg {
    width: 16px;
    height: 16px;
}
.nav-btn-label {
    pointer-events: none;
}

/* Nav Badge (notification dot) */
.nav-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-card);
}

/* Nav Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 2px solid var(--border-primary);
}
.theme-toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(15deg);
}
.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Nav Status Pill */
/* View Mode Indicator */
.nav-viewmode {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 36px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    border: 2px solid var(--border-primary);
    transition: all var(--transition-fast);
}
.nav-viewmode-icon {
    width: 15px;
    height: 15px;
    color: var(--indigo-500);
}
.nav-viewmode-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}
/* View mode color accents */
.nav-viewmode[data-mode="home"] { border-color: var(--indigo-400); }
.nav-viewmode[data-mode="home"] .nav-viewmode-icon { color: var(--indigo-500); }
.nav-viewmode[data-mode="chat"] { border-color: var(--emerald-400); }
.nav-viewmode[data-mode="chat"] .nav-viewmode-icon { color: var(--emerald-500); }
.nav-viewmode[data-mode="runner"] { border-color: #f59e0b; }
.nav-viewmode[data-mode="runner"] .nav-viewmode-icon { color: #f59e0b; }
.nav-viewmode[data-mode="shop"] { border-color: #8b5cf6; }
.nav-viewmode[data-mode="shop"] .nav-viewmode-icon { color: #8b5cf6; }
.nav-viewmode[data-mode="profile"] { border-color: var(--zinc-400); }
.nav-viewmode[data-mode="profile"] .nav-viewmode-icon { color: var(--zinc-500); }

/* â”€â”€ Role Switcher â”€â”€ */
.nav-role-switcher {
    position: relative;
}

.role-switcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.role-switcher-btn:hover {
    border-color: var(--zinc-300);
    color: var(--text-primary);
    background: var(--bg-hover);
}

.role-switcher-icon {
    width: 16px;
    height: 16px;
    transition: color var(--transition-fast);
}
.role-switcher-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.role-switcher-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

/* Role color accents */
.nav-role-switcher[data-role="explorer"] .role-switcher-btn {
    border-color: var(--indigo-400);
}
.nav-role-switcher[data-role="explorer"] .role-switcher-icon {
    color: var(--indigo-500);
}
.nav-role-switcher[data-role="runner"] .role-switcher-btn {
    border-color: #f59e0b;
}
.nav-role-switcher[data-role="runner"] .role-switcher-icon {
    color: #f59e0b;
}
.nav-role-switcher[data-role="merchant"] .role-switcher-btn {
    border-color: #8b5cf6;
}
.nav-role-switcher[data-role="merchant"] .role-switcher-icon {
    color: #8b5cf6;
}

/* Chevron rotation when open */
.nav-role-switcher.open .role-switcher-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.role-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    padding: 8px;
    z-index: 200;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.role-switcher-dropdown.hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    display: block !important;
    visibility: hidden;
}

/* Role Option Buttons */
.role-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    background: transparent;
}
.role-option:hover {
    background: var(--bg-hover);
}
.role-option.active {
    background: var(--bg-input);
    border-color: var(--border-primary);
}

.role-option-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.role-option:hover .role-option-icon {
    transform: scale(1.1);
}

/* Per-role icon colors */
.role-option[data-role="explorer"] .role-option-icon { color: var(--indigo-500); }
.role-option[data-role="runner"] .role-option-icon { color: #f59e0b; }
.role-option[data-role="merchant"] .role-option-icon { color: #8b5cf6; }

.role-option-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: start;
}
.role-option-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.role-option-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Active role checkmark */
.role-option.active::after {
    content: '';
    margin-inline-start: auto;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--emerald-500);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Role-filtered nav: hide buttons that don't match the active role */
.nav-btn.role-hidden,
.mobile-nav-btn.role-hidden {
    display: none !important;
}

/* Nav Profile Button & Dropdown */
.nav-profile-wrap {
    position: relative;
}
.nav-profile-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    background: none;
    padding: 0;
}
.nav-profile-btn:hover {
    border-color: var(--zinc-300);
    transform: scale(1.05);
}
.nav-profile-btn.active {
    border-color: var(--emerald-500);
}
.nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 6px;
    z-index: 100;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.profile-dropdown.hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}
.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}
.profile-dropdown-item:hover {
    background: var(--bg-hover);
}
.profile-dropdown-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.profile-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 8px;
}
.profile-dropdown-item.logout {
    color: var(--rose-500);
}
.profile-dropdown-item.logout .profile-dropdown-icon {
    color: var(--rose-500);
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   4. MOBILE BOTTOM NAV
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--bg-card);
    border-top: 2px solid var(--border-subtle);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: background var(--transition-base), border-color var(--transition-base);
}
.mobile-bottom-nav .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}
.mobile-nav-btn svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}
.mobile-nav-btn.active {
    color: var(--emerald-500);
}
.mobile-nav-btn.active svg {
    transform: scale(1.1);
}
.mobile-nav-badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 16px);
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-card);
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   5. SCREEN STRUCTURE
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#main-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.screen {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.screen.active {
    display: flex;
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   6. SKELETON LOADERS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.skeleton-screen {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.4s ease;
}
.skeleton-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}
.skeleton-split {
    display: flex;
    gap: 24px;
    width: 100%;
    height: 100%;
}
.skeleton-col-sm {
    width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}
.skeleton-col-lg {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.skeleton-block {
    background: linear-gradient(
        110deg,
        var(--bg-input) 8%,
        var(--bg-card) 18%,
        var(--bg-input) 33%
    );
    background-size: 200% 100%;
    border-radius: var(--radius-3xl);
    animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-block.h-16 { height: 80px; }
.skeleton-block.h-20 { height: 100px; }
.skeleton-block.h-48 { height: 240px; }
.skeleton-block.flex-1 { flex: 1; }

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


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   7. HOME SCREEN â€“ SIDEBAR
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#screen-home {
    display: none;
    flex-direction: row;
}
#screen-home.active {
    display: flex;
}

.home-sidebar {
    width: 440px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 2px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.04);
    z-index: 10;
    position: relative;
    transition: background var(--transition-base), border-color var(--transition-base);
}

/* Mobile drag handle (hidden on desktop) */
.sheet-drag-handle {
    display: none;
    justify-content: center;
    padding: 12px 0 4px;
    cursor: grab;
}
.drag-bar {
    width: 40px;
    height: 4px;
    background: var(--zinc-300);
    border-radius: var(--radius-full);
}
:root[data-theme="dark"] .drag-bar {
    background: var(--zinc-600);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 28px 0;
}
.sidebar-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.sidebar-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.sidebar-header-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}
.sidebar-header-icon:hover {
    transform: rotate(90deg);
}
.sidebar-header-icon svg {
    width: 18px;
    height: 18px;
}

/* Sidebar Form Container */
.sidebar-form {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar-form::-webkit-scrollbar {
    display: none;
}

/* Form Groups */
.form-group {
    margin-bottom: 28px;
}
.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Form Input Wrap */
.form-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    height: 56px;
    padding: 0 16px;
    transition: all var(--transition-fast);
}
.form-input-wrap:focus-within {
    border-color: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(24,24,27,0.08);
}
:root[data-theme="dark"] .form-input-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(250,250,250,0.08);
}
.form-input-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.form-input {
    flex: 1;
    height: 100%;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
}
.form-input::placeholder {
    color: var(--text-muted);
}
.form-error {
    display: block;
    font-size: 12px;
    color: var(--rose-500);
    margin-top: 6px;
    font-weight: 500;
}

/* Chips */
.form-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.chip {
    height: 36px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.chip:hover {
    border-color: var(--zinc-300);
    color: var(--text-primary);
}
.chip.active {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-color: var(--bg-elevated);
}


/* â”€â”€ Multi-Stop â”€â”€ */
.errand-stop {
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-3xl);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.errand-stop:hover {
    border-color: var(--zinc-300);
}
:root[data-theme="dark"] .errand-stop {
    background: var(--zinc-800);
}
.stop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.stop-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stop-number {
    width: 28px;
    height: 28px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.stop-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.stop-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-500);
    transition: background var(--transition-fast);
}
.stop-remove-btn:hover {
    background: var(--rose-50);
}
:root[data-theme="dark"] .stop-remove-btn:hover {
    background: rgba(244,63,94,0.1);
}
.stop-remove-btn svg { width: 16px; height: 16px; }

/* Add Stop / Add Item Buttons */
.add-stop-btn,
.add-item-btn {
    width: 100%;
    height: 52px;
    border: 2.5px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    margin-bottom: 24px;
}
.add-stop-btn:hover,
.add-item-btn:hover {
    border-color: var(--zinc-400);
    color: var(--text-secondary);
    background: var(--bg-hover);
}
.add-stop-btn svg,
.add-item-btn svg { width: 16px; height: 16px; }
.add-item-btn {
    height: 44px;
    margin-bottom: 0;
    margin-top: 12px;
}


/* â”€â”€ Item Row & Actions â”€â”€ */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.item-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.item-main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.item-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.item-icon-wrap svg,
.item-icon { width: 18px; height: 18px; }
.item-input {
    flex: 1;
    height: 44px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}
.item-input:focus {
    border-color: var(--bg-elevated);
}
.item-input::placeholder {
    color: var(--text-muted);
}

/* Item Actions Row */
.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline-start: 56px;
}
.item-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    border: 2px solid var(--border-subtle);
}
.item-action-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-primary);
}
.item-action-btn svg { width: 14px; height: 14px; }
.item-action-btn.recording {
    background: var(--rose-500);
    color: white;
    border-color: var(--rose-500);
    animation: pulse 1.5s ease infinite;
}

/* Sub-preference select */
.sub-pref-select {
    height: 32px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    -webkit-appearance: none;
}
.sub-pref-select:hover { border-color: var(--zinc-400); }

/* Voice Preview */
.voice-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-inline-start: 56px;
}
.waveform-canvas {
    border-radius: 4px;
}
.voice-play-btn,
.voice-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.voice-play-btn:hover { color: var(--emerald-500); }
.voice-remove-btn:hover { color: var(--rose-500); }
.voice-play-btn svg,
.voice-remove-btn svg { width: 14px; height: 14px; }

/* Image Preview */
.image-preview {
    position: relative;
    width: max-content;
    margin-inline-start: 56px;
}
.preview-thumb {
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.image-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--zinc-900);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.image-remove-btn svg { width: 12px; height: 12px; }


/* â”€â”€ Transport & Pricing â”€â”€ */
.transport-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.transport-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--bg-input);
    border: 2.5px solid var(--border-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}
.transport-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}
.transport-card.active {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-color: var(--bg-elevated);
    box-shadow: var(--shadow-medium);
}
.transport-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
}
.transport-card.active .transport-icon {
    color: var(--emerald-400);
}
.transport-title {
    font-size: 14px;
    font-weight: 700;
}
.transport-desc {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Price Breakdown */
.price-breakdown {
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-top: 24px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
}
.price-row.price-total {
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-primary);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 15px;
}
.price-val {
    font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 28px 28px;
    background: linear-gradient(to top, var(--bg-card) 80%, transparent);
    position: sticky;
    bottom: 0;
}
.checkout-btn {
    width: 100%;
    height: 72px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}
.checkout-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    opacity: 0;
    transition: opacity var(--transition-base);
}
.checkout-btn:not(.disabled):hover::before {
    opacity: 1;
}
.checkout-btn:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-emerald);
}
.checkout-btn.disabled {
    background: var(--zinc-200);
    color: var(--zinc-400);
    pointer-events: none;
}
:root[data-theme="dark"] .checkout-btn.disabled {
    background: var(--zinc-800);
    color: var(--zinc-600);
}
.checkout-info,
.checkout-arrow {
    position: relative;
    z-index: 1;
}
.checkout-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.checkout-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}
.checkout-price {
    font-size: 20px;
    font-weight: 900;
}
.checkout-arrow svg {
    width: 24px;
    height: 24px;
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   7b. HOME SCREEN â€“ MAP AREA
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.home-map {
    flex: 1;
    position: relative;
    background: var(--bg-primary);
}
.leaflet-map-container {
    width: 100%;
    height: 100%;
}

/* â”€â”€ Map Top Controls Container â”€â”€ */
.map-top-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    z-index: 400;
    pointer-events: auto;
}

/* â”€â”€ Locate Me Button (inline in top-controls) â”€â”€ */
.map-locate-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid #3b82f6;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
:root[data-theme="dark"] .map-locate-btn {
    background: rgba(24,24,27,0.88);
}
.map-locate-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-heavy);
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.map-locate-btn:active {
    transform: scale(0.95);
}
.map-locate-btn svg {
    width: 22px;
    height: 22px;
}

/* 5km Radius Circle */
.uyali-radius-circle {
    transition: fill-opacity 0.6s ease, stroke-opacity 0.6s ease;
}
.map-delivery-picker {
    position: relative;
    min-width: 240px;
}
.delivery-picker-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}
:root[data-theme="dark"] .delivery-picker-main {
    background: rgba(24,24,27,0.88);
}
.delivery-picker-main:hover {
    border-color: var(--indigo-400);
    box-shadow: var(--shadow-heavy);
}
.map-delivery-picker.open .delivery-picker-main {
    border-color: var(--indigo-500);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom-color: var(--border-subtle);
}
.delivery-picker-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--indigo-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.delivery-picker-icon svg {
    width: 17px;
    height: 17px;
}
.delivery-picker-info {
    flex: 1;
    min-width: 0;
}
.delivery-picker-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: block;
}
.delivery-picker-address {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.delivery-picker-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.map-delivery-picker.open .delivery-picker-chevron {
    transform: rotate(180deg);
}

/* â”€â”€ Delivery Search Dropdown â”€â”€ */
.delivery-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--indigo-500);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    animation: deliveryDropIn 0.2s ease;
}
:root[data-theme="dark"] .delivery-search-dropdown {
    background: rgba(24,24,27,0.95);
}
@keyframes deliveryDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.delivery-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-subtle);
}
.delivery-search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.delivery-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: Geist, sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}
.delivery-search-input::placeholder {
    color: var(--text-muted);
}
.delivery-search-results {
    max-height: 240px;
    overflow-y: auto;
}
.delivery-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    text-align: start;
    font-family: Geist, sans-serif;
    transition: background var(--transition-fast);
}
.delivery-result-item:last-child {
    border-bottom: none;
}
.delivery-result-item:hover {
    background: var(--bg-input);
}
.delivery-result-item.current-loc {
    background: rgba(59,130,246,0.06);
}
.delivery-result-item.current-loc:hover {
    background: rgba(59,130,246,0.12);
}
.delivery-result-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.delivery-result-icon.current {
    color: #3b82f6;
}
.delivery-result-info {
    flex: 1;
    min-width: 0;
}
.delivery-result-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.delivery-result-sub {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   8. CHAT / ORDERS SCREEN
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#screen-chat {
    flex-direction: column;
}

/* Empty & Broadcast States */
.chat-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
}

.empty-icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.empty-icon-box.rotated { transform: rotate(-8deg); }
.empty-icon-box svg,
.empty-icon { width: 32px; height: 32px; }
.empty-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}
.empty-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 340px;
    text-align: center;
}

/* Broadcast Animation */
.broadcast-anim {
    width: 160px;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.broadcast-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--emerald-400);
    border-radius: var(--radius-full);
    animation: broadcastPing 2s var(--ease-out) infinite;
}
.broadcast-ring.ring-2 { animation-delay: 0.8s; }
.broadcast-center {
    width: 72px;
    height: 72px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 2;
}
.broadcast-icon { width: 28px; height: 28px; color: var(--text-on-elevated); }
.broadcast-title { font-size: 24px; font-weight: 900; color: var(--text-primary); }
.broadcast-desc { font-size: 14px; color: var(--text-muted); max-width: 340px; text-align: center; }

@keyframes broadcastPing {
    0%   { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Demo Hint */
.demo-hint {
    border: 2px solid var(--amber-200);
    background: var(--amber-50);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    max-width: 400px;
    margin-top: 8px;
}
:root[data-theme="dark"] .demo-hint {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.2);
}
.demo-hint.compact { padding: 16px 20px; }
.demo-hint-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--amber-700);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
:root[data-theme="dark"] .demo-hint-label { color: var(--amber-400); }
.demo-hint-icon { width: 14px; height: 14px; }
.demo-hint-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* â”€â”€ Active Chat Split Layout â”€â”€ */
.chat-split {
    flex-direction: row;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    height: 100%;
    align-items: stretch;
    justify-content: flex-start;
}

.chat-left {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Runner Status Card */
.runner-status-card {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-subtle);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    transition: background var(--transition-base), border-color var(--transition-base);
}
.runner-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.runner-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.runner-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-card);
}
.runner-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}
.runner-status-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* PIN Display Card */
.pin-display-card {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
    padding: 20px;
    text-align: center;
}
.pin-display-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.pin-lock-icon {
    width: 18px;
    height: 18px;
    color: var(--indigo-500);
}
.pin-digits {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.pin-digit {
    width: 56px;
    height: 72px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    font-size: 32px;
    font-weight: 900;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}
.pin-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Chat Map Card */
.chat-map-card {
    flex: 1;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
    min-height: 200px;
}

/* Chat Right Panel */
.chat-right {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-subtle);
    border: 2px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background var(--transition-base);
}
.chat-header {
    height: 80px;
    border-bottom: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
}
.chat-header-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
}
.escrow-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}
.escrow-badge svg { width: 16px; height: 16px; color: var(--emerald-500); }

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.chat-timestamp-wrap {
    display: flex;
    justify-content: center;
}
.chat-timestamp {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bg-input);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.chat-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.chat-bubble-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.chat-bubble-avatar.faded {
    opacity: 0.4;
}
.chat-bubble {
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    border-bottom-left-radius: 8px;
    padding: 20px;
    max-width: 70%;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Receipt Card */
.receipt-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    border-bottom-left-radius: 8px;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--border-subtle);
    overflow: hidden;
}
.receipt-header {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.receipt-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}
.receipt-scan-icon { width: 18px; height: 18px; color: var(--emerald-400); }
.receipt-body {
    background: var(--bg-input);
    padding: 32px;
}
.receipt-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.receipt-total {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.1;
}
.receipt-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 24px 0;
}
.receipt-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
}
.receipt-val {
    font-weight: 700;
    color: var(--text-primary);
}
.receipt-actions {
    padding: 20px;
    display: flex;
    gap: 16px;
    background: var(--bg-card);
}
.receipt-dispute-btn {
    flex: 1;
    background: var(--bg-input);
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.receipt-dispute-btn:hover {
    background: var(--zinc-200);
}
:root[data-theme="dark"] .receipt-dispute-btn:hover {
    background: var(--zinc-700);
}
.receipt-approve-btn {
    flex: 2;
    background: var(--emerald-500);
    color: white;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(16,185,129,0.3);
    transition: all var(--transition-fast);
}
.receipt-approve-btn:hover {
    background: var(--emerald-600);
    transform: translateY(-1px);
}

/* Completion Card */
.completion-card {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--border-subtle);
    padding: 40px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.completion-icon-box {
    width: 96px;
    height: 96px;
    background: var(--emerald-100);
    color: var(--emerald-600);
    border-radius: var(--radius-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
:root[data-theme="dark"] .completion-icon-box {
    background: rgba(16,185,129,0.12);
}
.completion-icon { width: 40px; height: 40px; }
.completion-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.completion-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.completion-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 24px 0;
}
.tip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.tip-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}
.tip-btn {
    width: 96px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 2.5px solid var(--border-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.tip-btn:hover {
    border-color: var(--bg-elevated);
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    transform: translateY(-2px);
}
.finish-btn {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    padding: 8px 16px;
}
.finish-btn:hover { color: var(--text-secondary); }

/* Chat Input Bar */
.chat-input-bar {
    padding: 20px 24px;
    background: var(--bg-card);
    border-top: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.chat-attach-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.chat-attach-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
}
.chat-attach-btn svg { width: 18px; height: 18px; }
.chat-input {
    flex: 1;
    height: 48px;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}
.chat-input:focus { border-color: var(--bg-elevated); }
.chat-input::placeholder { color: var(--text-muted); }


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   9. RUNNER / EARN SCREEN
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#screen-runner {
    flex-direction: column;
    overflow: hidden;
}
.runner-state {
    width: 100%;
    height: 100%;
}
.runner-split {
    display: flex;
    flex-direction: row;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    height: 100%;
}
.runner-left {
    width: 450px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: none;
}
.runner-left::-webkit-scrollbar { display: none; }

/* Wallet Card */
.wallet-card {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-3xl);
    padding: 32px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.wallet-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 256px;
    height: 256px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-full);
    filter: blur(60px);
    pointer-events: none;
}
.wallet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.wallet-avatar-wrap {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.wallet-user-icon { width: 24px; height: 24px; }

/* Online Toggle */
.online-toggle {
    width: 160px;
    height: 56px;
    border-radius: var(--radius-full);
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: background var(--transition-slow);
}
.online-toggle.online {
    background: var(--emerald-500);
}
.online-toggle.offline {
    background: var(--zinc-800);
}
:root[data-theme="dark"] .online-toggle.offline {
    background: var(--zinc-700);
}
.toggle-handle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform var(--transition-slow);
    position: relative;
}
.online-toggle.online .toggle-handle {
    transform: translateX(104px);
}
.toggle-power-icon {
    width: 18px;
    height: 18px;
    color: var(--emerald-500);
    transition: color var(--transition-slow);
}
.online-toggle.offline .toggle-power-icon {
    color: var(--zinc-400);
}
.toggle-label {
    position: absolute;
    left: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.9);
    transition: opacity var(--transition-slow);
}
.online-toggle.offline .toggle-label {
    left: auto;
    right: 20px;
    opacity: 0.5;
}

/* Wallet Info */
.wallet-info {
    position: relative;
    z-index: 1;
}
.wallet-payout-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 4px;
}
.wallet-balance {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}
.cashout-btn {
    width: 100%;
    height: 56px;
    background: white;
    color: var(--zinc-900);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 800;
    transition: all var(--transition-fast);
}
.cashout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Runner Tab Bar */
.runner-tab-bar {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    padding: 4px;
    border: 2px solid var(--border-subtle);
    flex-shrink: 0;
}
.runner-tab {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.runner-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.runner-tab svg { width: 16px; height: 16px; }

/* Radar Card */
.radar-card {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    transition: background var(--transition-base);
}
.radar-offline {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    opacity: 0.5;
}
.radar-offline-icon { width: 40px; height: 40px; color: var(--text-muted); }
.radar-offline-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.radar-offline-desc { font-size: 14px; color: var(--text-muted); text-align: center; }

.radar-online {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.radar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.radar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.radar-activity-icon { width: 18px; height: 18px; color: var(--emerald-500); }
.radar-scanning-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--emerald-50);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-600);
}
:root[data-theme="dark"] .radar-scanning-badge {
    background: rgba(16,185,129,0.1);
    color: var(--emerald-400);
}
.radar-scanning-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    animation: pulse 2s ease infinite;
}

/* Radar Empty / Gig States */
.radar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.radar-empty-icon { width: 32px; height: 32px; color: var(--text-muted); }
.radar-empty-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.radar-empty-desc { font-size: 13px; color: var(--text-muted); }

.radar-gig {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s var(--ease-out);
}
.gig-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.gig-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.gig-items-count { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.gig-fee {
    font-size: 24px;
    font-weight: 900;
    color: var(--emerald-500);
}
.gig-accept-btn {
    margin-top: auto;
    width: 100%;
    height: 56px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 800;
    transition: all var(--transition-fast);
}
.gig-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Batch Addon */
.batch-addon {
    animation: fadeIn 0.4s var(--ease-out);
}
.batch-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--indigo-50);
    border: 2px solid var(--indigo-100);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 12px;
}
:root[data-theme="dark"] .batch-banner {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.15);
}
.batch-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.batch-icon { width: 20px; height: 20px; color: var(--indigo-500); }
.batch-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.batch-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.batch-fee { font-size: 18px; font-weight: 900; color: var(--indigo-500); }
.batch-actions {
    display: flex;
    gap: 12px;
}
.batch-decline-btn {
    flex: 1;
    height: 44px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-secondary);
    transition: background var(--transition-fast);
}
.batch-decline-btn:hover { background: var(--zinc-200); }
:root[data-theme="dark"] .batch-decline-btn:hover { background: var(--zinc-700); }
.batch-accept-btn {
    flex: 2;
    height: 44px;
    background: var(--indigo-500);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all var(--transition-fast);
}
.batch-accept-btn:hover { background: var(--indigo-600); }

/* Analytics Panel */
.analytics-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: none;
}
.analytics-panel::-webkit-scrollbar { display: none; }
.analytics-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.analytics-stat {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}
.analytics-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.analytics-stat-val {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px;
}
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.chart-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}
.chart-period-btns {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    padding: 3px;
}
.chart-period {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.chart-period.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Runner Right / Map */
.runner-right {
    flex: 1;
    position: relative;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
}
.runner-right-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 24px;
    background: var(--bg-card);
}
.runner-map-online {
    width: 100%;
    height: 100%;
    position: relative;
}
.runner-map-offline {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 700;
}

/* Heatmap Toggle */
.heatmap-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    z-index: 5;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-fast);
}
.heatmap-toggle:hover {
    color: var(--amber-500);
    background: var(--amber-50);
}
:root[data-theme="dark"] .heatmap-toggle:hover {
    background: rgba(245,158,11,0.1);
}
.heatmap-toggle svg { width: 20px; height: 20px; }

/* Map Gig Overlay (Slide to Accept) */
.map-gig-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 5;
    animation: slideUp 0.5s var(--ease-spring);
    backdrop-filter: blur(16px);
}
:root[data-theme="dark"] .map-gig-overlay {
    background: rgba(24,24,27,0.92);
}
.overlay-payout-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}
.overlay-payout {
    font-size: 36px;
    font-weight: 900;
    color: var(--emerald-500);
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.overlay-store-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.overlay-store-icon { width: 18px; height: 18px; color: var(--text-muted); }
.overlay-store-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.overlay-store-items { font-size: 13px; color: var(--text-muted); }

/* Slide Track */
.slide-track {
    position: relative;
    width: 280px;
    height: 64px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
}
.slide-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-on-elevated);
    opacity: 0.6;
    pointer-events: none;
    letter-spacing: 0.04em;
}
.slide-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: grab;
    z-index: 2;
    transition: none;
}
.slide-handle:active { cursor: grabbing; }
.slide-handle-icon {
    width: 20px;
    height: 20px;
    color: var(--emerald-500);
    animation: slideHint 1.5s ease infinite;
}
.slide-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    z-index: 1;
    pointer-events: none;
}

@keyframes slideHint {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}


/* â”€â”€ Runner Active Mission â”€â”€ */
.mission-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 28px;
    box-shadow: var(--shadow-subtle);
}
.mission-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mission-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.mission-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-600);
    background: var(--emerald-50);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}
:root[data-theme="dark"] .mission-status-badge {
    background: rgba(16,185,129,0.1);
    color: var(--emerald-400);
}
.mission-status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    animation: pulse 2s ease infinite;
}
.mission-store {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.mission-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Mission List Card */
.mission-list-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    flex: 1;
    overflow-y: auto;
}
.mission-list-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.mission-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.mission-item-check {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--border-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.mission-item-check.checked {
    background: var(--emerald-500);
    border-color: var(--emerald-500);
    color: white;
}
.mission-item-check svg { width: 14px; height: 14px; }

/* Upload / Virtual Card Area */
.upload-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.upload-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.upload-btn {
    width: 100%;
    height: 56px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
}
.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.upload-btn svg { width: 18px; height: 18px; }

/* Virtual Card */
.virtual-card {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1.6 / 1;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--zinc-900) 0%, var(--zinc-800) 50%, var(--zinc-700) 100%);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-heavy);
    color: white;
    position: relative;
    overflow: hidden;
}
.virtual-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.vcard-chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    border-radius: 6px;
}
.vcard-logo {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: 0.6;
}
.vcard-number {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}
.vcard-bottom {
    display: flex;
    justify-content: space-between;
}
.vcard-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    margin-bottom: 2px;
}
.vcard-amount {
    font-size: 18px;
    font-weight: 800;
}
.vcard-exp {
    font-size: 14px;
    font-weight: 600;
}

/* PIN Entry Card */
.pin-entry-card {
    max-width: 420px;
    width: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-medium);
}
.pin-entry-icon {
    width: 56px;
    height: 56px;
    background: var(--indigo-50);
    color: var(--indigo-500);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
:root[data-theme="dark"] .pin-entry-icon {
    background: rgba(99,102,241,0.12);
}
.pin-entry-icon svg { width: 24px; height: 24px; }
.pin-entry-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.pin-entry-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pin-input-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.pin-input-digit {
    width: 60px;
    height: 72px;
    background: var(--bg-input);
    border: 2.5px solid var(--border-primary);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}
.pin-input-digit:focus {
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.pin-verify-btn {
    width: 100%;
    height: 56px;
    background: var(--indigo-500);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 800;
    transition: all var(--transition-fast);
}
.pin-verify-btn:hover {
    background: var(--indigo-600);
    transform: translateY(-1px);
}
.pin-error {
    font-size: 13px;
    color: var(--rose-500);
    font-weight: 600;
    margin-top: 12px;
}

/* Verify Card */
.verify-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.verify-icon-box {
    width: 72px;
    height: 72px;
    background: var(--bg-input);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--text-muted);
}
.verify-icon { width: 32px; height: 32px; }
.verify-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.verify-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   10. SHOP TERMINAL SCREEN
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#screen-shop {
    overflow-y: auto;
}
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}
.shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
}
.shop-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.shop-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.shop-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--emerald-50);
    border: 2px solid var(--emerald-100);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-600);
}
:root[data-theme="dark"] .shop-status-badge {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.15);
    color: var(--emerald-400);
}
.shop-status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    animation: pulse 2s ease infinite;
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

/* Shop Orders Card */
.shop-orders-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 28px;
    box-shadow: var(--shadow-subtle);
}
.shop-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.shop-section-icon {
    width: 20px;
    height: 20px;
}
.shop-section-icon.indigo { color: var(--indigo-500); }
.shop-section-icon.emerald { color: var(--emerald-500); }

/* Active Order */
.shop-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.shop-order-id {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--bg-input);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}
.shop-order-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}
.shop-car-icon { width: 16px; height: 16px; }

/* Prep Time */
.prep-time-section {
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.prep-time-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.prep-icon { width: 18px; height: 18px; color: var(--indigo-500); }
.prep-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.prep-label strong {
    color: var(--text-primary);
    font-weight: 800;
}

/* Range Slider */
.prep-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-primary);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}
.prep-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.prep-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--bg-elevated);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
}
.prep-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Shop Pack List */
.shop-pack-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.shop-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.shop-items-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.shop-qr-btn {
    width: 100%;
    height: 52px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.shop-qr-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}
.shop-qr-btn svg { width: 18px; height: 18px; }

/* Shop Empty State */
.shop-empty-order {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}
.shop-empty-icon { width: 40px; height: 40px; color: var(--text-muted); margin-bottom: 16px; }
.shop-empty-title { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.shop-empty-desc { font-size: 14px; color: var(--text-muted); }

/* Stats Column */
.shop-stats-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.shop-revenue-card {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-3xl);
    padding: 28px;
    box-shadow: var(--shadow-heavy);
}
.shop-revenue-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 6px;
}
.shop-revenue-amount {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Merchant Analytics */
.merchant-analytics-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 28px;
    box-shadow: var(--shadow-subtle);
}
.merch-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.merch-stat {
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}
.merch-stat-val {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
}
.merch-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}
.merch-popular-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.merch-popular-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.merch-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.merch-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    width: 120px;
    flex-shrink: 0;
}
.merch-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.merch-bar {
    height: 100%;
    background: var(--emerald-500);
    border-radius: var(--radius-full);
    transition: width 0.8s var(--ease-out);
}
.merch-item-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 28px;
    text-align: right;
}

/* Completed Orders */
.shop-completed-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 28px;
    box-shadow: var(--shadow-subtle);
}
.shop-completed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shop-completed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.shop-completed-item:hover {
    background: var(--bg-hover);
}
.shop-completed-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-completed-num {
    width: 40px;
    height: 40px;
    background: var(--emerald-50);
    color: var(--emerald-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
:root[data-theme="dark"] .shop-completed-num {
    background: rgba(16,185,129,0.1);
    color: var(--emerald-400);
}
.shop-completed-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.shop-completed-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}
.shop-completed-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   11. PROFILE SCREEN
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#screen-profile {
    overflow-y: auto;
}
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
}
.profile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.profile-page-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.profile-settings-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.profile-settings-btn:hover {
    color: var(--text-primary);
    transform: rotate(45deg);
}
.profile-settings-btn svg { width: 20px; height: 20px; }

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

/* Identity Card */
.profile-identity-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
}
.profile-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
}
.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-medium);
}
.profile-camera-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.profile-camera-overlay:hover {
    transform: scale(1.1);
}
.profile-camera-overlay svg { width: 14px; height: 14px; }
.profile-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.profile-handle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Profile Badges */
.profile-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.profile-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.profile-badge.verified {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 2px solid var(--emerald-100);
}
.profile-badge.trusted {
    background: var(--amber-50);
    color: var(--amber-700);
    border: 2px solid var(--amber-100);
}
:root[data-theme="dark"] .profile-badge.verified {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.15);
    color: var(--emerald-400);
}
:root[data-theme="dark"] .profile-badge.trusted {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.15);
    color: var(--amber-400);
}
.badge-icon { width: 14px; height: 14px; }

/* Profile Stats */
.profile-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.profile-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
}
.profile-stat-val {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
}
.profile-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.profile-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-primary);
}

/* Profile Right Column */
.profile-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Wallet Card */
.profile-wallet-card {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-3xl);
    padding: 28px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}
.profile-wallet-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-full);
    filter: blur(40px);
    pointer-events: none;
}
.profile-wallet-info {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}
.profile-wallet-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 4px;
}
.profile-wallet-amount {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
}
.profile-wallet-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.profile-wallet-btn {
    flex: 1;
    height: 48px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.profile-wallet-btn:hover {
    background: rgba(255,255,255,0.18);
}
.profile-wallet-btn.secondary {
    background: rgba(255,255,255,0.06);
}
.profile-wallet-btn svg { width: 16px; height: 16px; }

/* Profile Menu */
.profile-menu-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 2px solid var(--border-subtle);
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover {
    background: var(--bg-hover);
}
.profile-menu-icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.profile-menu-icon-wrap svg { width: 18px; height: 18px; }
.profile-menu-icon-wrap.logout {
    background: var(--rose-50);
    color: var(--rose-500);
}
:root[data-theme="dark"] .profile-menu-icon-wrap.logout {
    background: rgba(244,63,94,0.1);
}
.profile-menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.profile-menu-item.logout .profile-menu-text {
    color: var(--rose-500);
}
.profile-menu-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   12. MODALS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}
.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-heavy);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s var(--ease-spring);
}
.modal-header {
    padding: 28px 28px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.modal-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
}
.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.modal-close-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.modal-close-btn:hover {
    background: var(--zinc-200);
    color: var(--text-primary);
}
:root[data-theme="dark"] .modal-close-btn:hover {
    background: var(--zinc-700);
}
.modal-close-btn svg { width: 16px; height: 16px; }
.modal-body { padding: 24px 28px; }
.modal-footer {
    padding: 0 28px 28px;
    display: flex;
    gap: 12px;
}
.modal-cancel-btn {
    flex: 1;
    height: 52px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-secondary);
    transition: background var(--transition-fast);
}
.modal-cancel-btn:hover { background: var(--zinc-200); }
:root[data-theme="dark"] .modal-cancel-btn:hover { background: var(--zinc-700); }
.modal-submit-btn {
    flex: 2;
    height: 52px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.modal-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}
.modal-submit-btn svg { width: 16px; height: 16px; }

@keyframes modalSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Dispute Modal */
.dispute-canvas-wrap {
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-input);
}
.dispute-receipt-img {
    width: 100%;
    display: block;
}
.dispute-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}
.dispute-canvas-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px;
    background: var(--bg-input);
}
.dispute-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.dispute-cat-btn {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.dispute-cat-btn.active {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-color: var(--bg-elevated);
}
.dispute-textarea {
    width: 100%;
    height: 100px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    margin-top: 8px;
    transition: border-color var(--transition-fast);
}
.dispute-textarea:focus { border-color: var(--bg-elevated); }
.dispute-textarea::placeholder { color: var(--text-muted); }


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   13. ID VERIFICATION MODAL
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.id-verify-card {
    max-width: 520px;
}
.id-steps {
    padding: 24px 28px 28px;
}

/* Step Indicator */
.id-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}
.id-step-dot {
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    transition: all var(--transition-base);
}
.id-step-dot.active {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-color: var(--bg-elevated);
}
.id-step-dot.completed {
    background: var(--emerald-500);
    color: white;
    border-color: var(--emerald-500);
}
.id-step-line {
    width: 48px;
    height: 2px;
    background: var(--border-primary);
}

/* Step Content */
.id-step-content {
    text-align: center;
}
.id-step-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.id-step-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Upload Zone */
.id-upload-zone {
    border: 2.5px dashed var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.id-upload-zone:hover {
    border-color: var(--zinc-400);
    background: var(--bg-hover);
}
.id-upload-icon { width: 32px; height: 32px; }
.id-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ID Preview */
.id-preview {
    text-align: center;
    margin-bottom: 16px;
}
.id-preview-img {
    max-height: 200px;
    border-radius: var(--radius-lg);
    margin: 0 auto 12px;
    box-shadow: var(--shadow-medium);
}
.id-retake-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Selfie */
.selfie-viewfinder {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--zinc-900);
}
.selfie-outline {
    position: absolute;
    inset: 4px;
    border: 3px solid var(--emerald-400);
    border-radius: var(--radius-full);
    z-index: 2;
    pointer-events: none;
}
#selfie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.selfie-preview {
    text-align: center;
    margin-bottom: 16px;
}
.selfie-preview img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid var(--emerald-400);
}

/* ID Buttons */
.id-next-btn,
.id-submit-btn,
.id-capture-btn,
.id-done-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.id-next-btn {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
}
.id-capture-btn {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    margin-bottom: 12px;
}
.id-submit-btn {
    background: var(--emerald-500);
    color: white;
}
.id-done-btn {
    background: var(--emerald-500);
    color: white;
}
.id-next-btn:hover,
.id-capture-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); }
.id-submit-btn:hover,
.id-done-btn:hover { background: var(--emerald-600); transform: translateY(-1px); }
.id-submit-btn svg { width: 18px; height: 18px; }

/* Review Grid */
.id-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.id-review-item {
    text-align: center;
}
.id-review-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.id-review-thumb {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-primary);
}

/* Processing / Success States */
.id-processing-anim {
    margin: 0 auto 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.id-shield-icon {
    width: 48px;
    height: 48px;
    color: var(--indigo-500);
}
.id-success-icon {
    width: 72px;
    height: 72px;
    color: var(--emerald-500);
    margin: 0 auto 16px;
}
.id-success-icon svg { width: 72px; height: 72px; }


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   14. LIVE SUPPORT CHAT WIDGET
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.support-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    z-index: 40;
    transition: all var(--transition-fast);
}
.support-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.support-fab svg { width: 24px; height: 24px; }

.support-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    z-index: 45;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s var(--ease-spring);
}
.support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    font-size: 14px;
    font-weight: 700;
}
.support-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.support-agent-dot {
    width: 10px;
    height: 10px;
    background: var(--emerald-400);
    border-radius: var(--radius-full);
}
.support-close-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}
.support-close-btn:hover { color: white; }
.support-close-btn svg { width: 16px; height: 16px; }

.support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.support-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.support-bubble.agent {
    background: var(--bg-input);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.support-bubble.user {
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.support-quick-actions {
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.support-quick-btn {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.support-quick-btn:hover {
    border-color: var(--bg-elevated);
    color: var(--text-primary);
}

.support-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 2px solid var(--border-subtle);
}
.support-input {
    flex: 1;
    height: 40px;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}
.support-input:focus { border-color: var(--bg-elevated); }
.support-input::placeholder { color: var(--text-muted); }
.support-send-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    color: var(--text-on-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.support-send-btn:hover { transform: scale(1.05); }
.support-send-btn svg { width: 16px; height: 16px; }


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   15. GLOBAL ANIMATIONS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 1.5s linear infinite;
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   16. LEAFLET MAP OVERRIDES & CUSTOM MARKERS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€ Base Leaflet Fixes â”€â”€ */
.leaflet-control-attribution {
    display: none !important;
}
.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-subtle) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}
.leaflet-control-zoom a {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--border-subtle) !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
.leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

/* Ensure map containers don't swallow clicks from overlaying elements */
.home-map {
    z-index: 1;
}
.map-deliver-widget {
    z-index: 400;
    pointer-events: auto;
}
.map-gig-overlay {
    z-index: 400;
    pointer-events: auto;
}
.heatmap-toggle {
    z-index: 400;
    pointer-events: auto;
}

/* â”€â”€ Leaflet Popup Overrides â”€â”€ */
.leaflet-popup {
    z-index: 600 !important;
}
.leaflet-popup-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4 !important;
}
.leaflet-popup-tip-container {
    display: block;
}
.leaflet-popup-tip {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-subtle) !important;
    border-top: none !important;
    border-left: none !important;
    box-shadow: none !important;
}

/* â”€â”€ Marker Wrapper (removes Leaflet default icon styles) â”€â”€ */
.uyali-marker-wrapper {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* â”€â”€ Runner Marker â”€â”€ */
.uyali-runner-marker {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.uyali-marker-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--bg-card);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 2px var(--marker-accent, #10b981);
    position: relative;
    z-index: 2;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.uyali-marker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.uyali-runner-marker:hover .uyali-marker-avatar {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3), 0 0 0 3px var(--marker-accent, #10b981);
}

/* Vehicle Badge */
.uyali-marker-vehicle-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: var(--bg-card);
    border: 2px solid var(--marker-accent, #10b981);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: var(--marker-accent, #10b981);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.uyali-marker-vehicle-badge svg {
    width: 13px;
    height: 13px;
}

/* Marker Pulse */
.uyali-marker-pulse {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: var(--marker-accent, #10b981);
    opacity: 0.2;
    animation: uyaliMarkerPulse 2.5s ease-out infinite;
    z-index: 1;
}
@keyframes uyaliMarkerPulse {
    0%   { transform: scale(0.8); opacity: 0.3; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* â”€â”€ User Location Marker (Arrowhead) â”€â”€ */
.uyali-user-marker {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uyali-user-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 3px 8px rgba(59,130,246,0.5));
    transition: transform 0.3s ease;
}
.uyali-user-arrow svg {
    width: 30px;
    height: 30px;
}
.uyali-user-marker:hover .uyali-user-arrow {
    transform: scale(1.15);
}
.uyali-user-pulse {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 3px solid #3b82f6;
    opacity: 0.4;
    animation: uyaliUserPulse 2.2s ease-out infinite;
    z-index: 1;
}
.uyali-user-pulse-2 {
    animation-delay: 0.8s;
}
@keyframes uyaliUserPulse {
    0%   { transform: scale(0.5); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* â”€â”€ Store Marker â”€â”€ */
.uyali-store-marker {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo-500);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* â”€â”€ Rich Popup â”€â”€ */
.uyali-popup-container .leaflet-popup-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
}

.uyali-popup {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-width: 220px;
}
:root[data-theme="dark"] .uyali-popup {
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.uyali-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    position: relative;
}
.uyali-popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-subtle);
    flex-shrink: 0;
}
.uyali-popup-user-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.uyali-popup-info {
    flex: 1;
    min-width: 0;
}
.uyali-popup-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.uyali-popup-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}
.uyali-popup-stars {
    font-size: 13px;
}
.uyali-popup-rating-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.uyali-popup-trips {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.uyali-popup-status-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 2px rgba(16,185,129,0.3);
}

.uyali-popup-details {
    padding: 0 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 2px solid var(--border-subtle);
    padding-top: 12px;
    margin: 0 12px;
    margin-bottom: 4px;
}
.uyali-popup-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.uyali-popup-detail-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uyali-popup-detail-icon svg {
    width: 14px;
    height: 14px;
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   17. RESPONSIVE BREAKPOINTS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Tablet & Below (â‰¤1024px) */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .runner-split {
        flex-direction: column;
        padding: 16px;
    }
    .runner-left {
        width: 100%;
    }
    .chat-split {
        flex-direction: column;
        padding: 16px;
    }
    .chat-left {
        width: 100%;
        flex-direction: row;
        gap: 16px;
    }
    .chat-map-card {
        min-height: 160px;
    }
}

/* Mobile (â‰¤768px) */
@media (max-width: 768px) {
    /* Show mobile nav, hide desktop nav */
    .mobile-bottom-nav {
        display: flex;
    }
    .nav-links {
        display: none;
    }
    .nav-viewmode {
        display: none;
    }

    /* Adjust main content for mobile bottom nav */
    #main-content {
        padding-bottom: 72px;
    }

    /* Top nav simplify */
    #top-nav {
        height: 60px;
        padding: 0 16px;
    }
    .nav-title {
        font-size: 18px;
    }
    .role-switcher-label {
        display: none;
    }
    .role-switcher-btn {
        height: 38px;
        padding: 0 12px;
    }
    .role-switcher-dropdown {
        min-width: 220px;
    }

    /* Home Screen: Sidebar becomes bottom sheet */
    #screen-home.active {
        flex-direction: column-reverse;
    }
    .home-sidebar {
        width: 100%;
        height: 60%;
        border-right: none;
        border-top: 2px solid var(--border-subtle);
        border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
    }
    .sheet-drag-handle {
        display: flex;
    }
    .sidebar-header {
        padding: 16px 20px 0;
    }
    .sidebar-title {
        font-size: 22px;
    }
    .sidebar-form {
        padding: 16px 20px;
    }
    .sidebar-footer {
        padding: 12px 20px 20px;
    }
    .checkout-btn {
        height: 60px;
    }
    .home-map {
        height: 40%;
    }

    /* Chat screen mobile */
    .chat-split {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    .chat-left {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .chat-map-card {
        height: 160px;
        min-height: 120px;
    }
    .chat-header {
        height: 60px;
        padding: 0 16px;
    }
    .chat-messages {
        padding: 16px;
    }

    /* Runner mobile */
    .runner-split {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    .runner-left {
        width: 100%;
        gap: 12px;
    }
    .wallet-card {
        padding: 24px;
    }
    .wallet-balance {
        font-size: 40px;
    }
    .runner-right {
        min-height: 280px;
    }

    /* Map overlay */
    .map-gig-overlay {
        flex-direction: column;
        gap: 16px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 20px;
    }
    .slide-track {
        width: 100%;
    }

    /* Shop */
    .shop-container {
        padding: 16px;
    }
    .shop-title {
        font-size: 22px;
    }
    .shop-grid {
        grid-template-columns: 1fr;
    }

    /* Profile */
    .profile-container {
        padding: 16px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-page-title {
        font-size: 22px;
    }

    /* Toast mobile */
    #toast-container {
        left: 0;
        right: 0;
        padding: 12px;
    }
    .toast {
        min-width: 0;
        max-width: 100%;
    }

    /* Support chat */
    .support-panel {
        bottom: 84px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    .support-fab {
        bottom: 84px;
        right: 16px;
    }
}

/* Small Mobile (â‰¤480px) */
@media (max-width: 480px) {
    .errand-stop {
        padding: 16px;
    }
    .transport-grid {
        grid-template-columns: 1fr;
    }
    .pin-digits {
        gap: 8px;
    }
    .pin-digit {
        width: 48px;
        height: 60px;
        font-size: 26px;
    }
    .pin-input-digit {
        width: 48px;
        height: 60px;
        font-size: 24px;
    }
    .receipt-card {
        max-width: 100%;
    }
    .receipt-total {
        font-size: 36px;
    }
    .tip-buttons {
        gap: 10px;
    }
    .tip-btn {
        width: 72px;
        height: 52px;
        font-size: 16px;
    }
    .completion-card {
        padding: 24px;
    }
    .virtual-card {
        max-width: 100%;
        padding: 20px;
    }
    .wallet-balance {
        font-size: 32px;
    }
    .online-toggle {
        width: 120px;
        height: 48px;
    }
    .online-toggle.online .toggle-handle {
        transform: translateX(68px);
    }
    .toggle-handle {
        width: 34px;
        height: 34px;
    }
    .id-review-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   2026-10-28 mobile phone layout correction
   Keeps desktop/original visual direction, but compacts overlays,
   profile cards and the home split for real ~360-430px phone viewports.
   ============================================================ */
@media (max-width: 768px) {
    html,
    body,
    #app {
        height: 100dvh;
        min-height: 0;
    }

    #top-nav {
        height: calc(60px + env(safe-area-inset-top, 0px));
        padding: env(safe-area-inset-top, 0px) 12px 0;
        gap: 8px;
    }
    .nav-brand {
        gap: 10px;
        min-width: 0;
    }
    .nav-logo {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
    .nav-logo-icon {
        width: 18px;
        height: 18px;
    }
    .nav-title {
        font-size: 18px;
    }
    .nav-right {
        gap: 8px;
        min-width: 0;
    }
    .theme-toggle-btn,
    .role-switcher-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 14px;
    }
    .nav-profile-btn {
        width: 44px;
        height: 44px;
    }

    .role-switcher-dropdown {
        min-width: 0;
        width: min(196px, calc(100vw - 24px));
        top: calc(100% + 6px);
        right: 0;
        padding: 6px;
        border-radius: 18px;
    }
    .role-option {
        gap: 9px;
        min-height: 52px;
        padding: 10px;
        border-width: 1.5px;
        border-radius: 14px;
    }
    .role-option-icon {
        width: 18px;
        height: 18px;
    }
    .role-option-name {
        font-size: 13px;
    }
    .role-option-desc {
        font-size: 10.5px;
        line-height: 1.25;
        max-width: 132px;
    }

    .mobile-bottom-nav {
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mobile-bottom-nav .mobile-nav-btn {
        gap: 3px;
        min-height: 62px;
        font-size: 11px;
    }
    .mobile-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    #main-content {
        /* Screens are absolutely positioned. Reserve the nav in the flex
           frame; padding alone leaves their buttons behind the fixed nav. */
        padding-bottom: 0;
        margin-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* Keep the delivery area visible while giving the shopping list enough
       space to read and edit. The footer remains outside the scrolling form. */
    #screen-home.active {
        flex-direction: column-reverse;
    }
    .home-map {
        flex: 1 1 28%;
        height: auto;
        min-height: 0;
    }
    .home-sidebar {
        flex: 0 0 72%;
        width: 100%;
        height: 72%;
        max-height: 72%;
        min-height: 0;
        border-right: none;
        border-top: 2px solid var(--border-subtle);
        border-radius: 26px 26px 0 0;
        box-shadow: 0 -8px 28px rgba(0,0,0,0.10);
    }
    .home-sidebar.expanded {
        flex-basis: 86%;
        height: 86%;
        max-height: 86%;
    }
    .sheet-drag-handle {
        padding: 8px 0 2px;
    }
    .sidebar-header {
        padding: 8px 16px 0;
        align-items: center;
        flex-shrink: 0;
        gap: 12px;
    }
    .sidebar-title {
        font-size: 20px;
        line-height: 1.15;
    }
    .sidebar-subtitle {
        font-size: 13px;
        line-height: 1.4;
        margin-top: 2px;
    }
    .sidebar-header-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    .sidebar-header-icon svg {
        width: 16px;
        height: 16px;
    }
    .sidebar-form {
        min-height: 0;
        padding: 16px;
        scroll-padding: 16px;
        overscroll-behavior: contain;
    }
    .form-group {
        margin-bottom: 18px;
    }
    .transport-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .transport-card {
        padding: 12px 8px;
        border-radius: 18px;
        border-width: 2px;
    }
    .transport-icon {
        width: 23px;
        height: 23px;
        margin-bottom: 5px;
    }
    .transport-title {
        font-size: 13px;
    }
    .transport-desc {
        font-size: 10.5px;
        line-height: 1.25;
    }
    .price-breakdown {
        padding: 12px 14px;
        margin-top: 16px;
        border-radius: 18px;
    }
    .price-row {
        font-size: 12.5px;
        padding: 5px 0;
    }
    .price-row.price-total {
        font-size: 13.5px;
        padding-top: 9px;
        margin-top: 6px;
    }
    .sidebar-footer {
        position: relative;
        flex-shrink: 0;
        padding: 10px 16px 12px;
        border-top: 1px solid var(--border-subtle);
        background: var(--bg-card);
    }
    .checkout-btn {
        height: 52px;
        padding: 0 16px;
        border-radius: 18px;
        font-size: 14px;
    }

    /* Map controls should fit beside each other without swallowing the map. */
    .map-top-controls {
        top: 10px;
        left: 10px;
        right: 10px;
        gap: 8px;
    }
    .map-delivery-picker {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }
    .delivery-picker-main {
        gap: 9px;
        min-height: 48px;
        padding: 8px 10px;
        border-radius: 18px;
    }
    .map-delivery-picker.open .delivery-picker-main {
        border-radius: 18px 18px 0 0;
    }
    .delivery-picker-icon {
        width: 30px;
        height: 30px;
        border-radius: 12px;
    }
    .delivery-picker-icon svg {
        width: 15px;
        height: 15px;
    }
    .delivery-picker-label {
        font-size: 9px;
    }
    .delivery-picker-address {
        font-size: 12.5px;
    }
    .delivery-picker-chevron {
        width: 16px;
        height: 16px;
    }
    .map-locate-btn {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
    .map-locate-btn svg {
        width: 20px;
        height: 20px;
    }
    .delivery-search-dropdown {
        border-radius: 0 0 18px 18px;
    }
    .delivery-search-bar {
        gap: 8px;
        padding: 9px 11px;
    }
    .delivery-search-input {
        font-size: 12.5px;
        min-width: 0;
    }
    .delivery-search-results {
        max-height: min(180px, 30vh);
    }
    .delivery-result-item {
        gap: 9px;
        padding: 9px 11px;
    }
    .delivery-result-name {
        font-size: 12.5px;
    }
    .delivery-result-sub {
        font-size: 10.5px;
    }

    /* Compact profile for one phone viewport instead of desktop-sized cards
       stacked vertically. */
    .profile-container {
        max-width: none;
        padding: 14px 14px calc(22px + env(safe-area-inset-bottom, 0));
    }
    .profile-top-bar {
        margin-bottom: 14px;
    }
    .profile-page-title {
        font-size: 20px;
    }
    .profile-settings-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .profile-identity-card {
        padding: 20px 16px 16px;
        border-radius: 26px;
    }
    .profile-avatar-wrap {
        width: 76px;
        height: 76px;
        margin-bottom: 12px;
    }
    .profile-camera-overlay {
        width: 28px;
        height: 28px;
    }
    .profile-name {
        font-size: 19px;
    }
    .profile-handle {
        font-size: 12.5px;
        margin-bottom: 11px;
    }
    .profile-badges {
        gap: 6px;
        margin-bottom: 12px;
    }
    .profile-badge {
        gap: 5px;
        padding: 5px 10px;
        font-size: 10.5px;
        border-width: 1.5px;
    }
    .badge-icon {
        width: 12px;
        height: 12px;
    }
    .profile-stat {
        padding: 8px 4px;
    }
    .profile-stat-val {
        font-size: 19px;
    }
    .profile-stat-label {
        font-size: 9.5px;
    }
    .profile-stat-divider {
        height: 28px;
    }
    .profile-right-col {
        gap: 14px;
    }
    .profile-wallet-card {
        padding: 18px;
        border-radius: 26px;
    }
    .profile-wallet-info {
        margin-bottom: 12px;
    }
    .profile-wallet-label {
        font-size: 11px;
    }
    .profile-wallet-amount {
        font-size: 30px;
        letter-spacing: -0.5px;
    }
    .profile-wallet-actions {
        gap: 8px;
    }
    .profile-wallet-btn {
        height: 42px;
        gap: 6px;
        border-radius: 13px;
        font-size: 11.5px;
        color: var(--text-on-elevated);
    }
    .profile-menu-card {
        border-radius: 26px;
    }
    .profile-menu-item {
        gap: 11px;
        padding: 13px 16px;
    }
    .profile-menu-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }
    .profile-menu-text {
        font-size: 13.5px;
    }

    /* Dark mode flips --bg-elevated to a light card. Its wallet actions need
       dark controls, not white-on-white translucent buttons. */
    :root[data-theme="dark"] .profile-wallet-btn {
        color: var(--text-on-elevated);
        background: rgba(9, 9, 11, 0.08);
        border-color: rgba(9, 9, 11, 0.18);
    }
    :root[data-theme="dark"] .profile-wallet-btn.secondary {
        background: rgba(9, 9, 11, 0.045);
    }
    :root[data-theme="dark"] .profile-wallet-btn:hover {
        background: rgba(9, 9, 11, 0.13);
    }
}

@media (max-width: 480px) {
    /* Keep both transport choices visible side-by-side on phones. The earlier
       stylesheet made each card full width, which was the oversized view seen
       in the mobile screenshots. */
    .transport-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .role-switcher-dropdown {
        width: min(188px, calc(100vw - 20px));
    }
}

@media (max-width: 768px) {
    .home-map {
        z-index: 11;
        overflow: visible;
    }
    .home-sidebar {
        z-index: 10;
    }
    .profile-container {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0));
    }
}
