:root {
    --bg-color: #0b0c10;
    --surface-color: #1a1c23;
    --surface-light: #252830;
    --text-primary: #ffffff;
    --text-secondary: #8b92a5;
    --accent-color: #d4af37; /* Luxury Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --panel-glass: #000;
    --panel-border: rgba(212, 175, 55, 0.2);
    --uber-color: #ffffff;
    --united-color: #005DAA;
    --lyft-color: #ff00bf;
    --bottom-nav-height: 80px;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overscroll-behavior: none;
    touch-action: manipulation;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#autocomplete-popup::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #08080c;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
    overscroll-behavior: none;
    touch-action: manipulation;
}

#ws-canvas {
    position: absolute;
    top: -5000px;
    left: -5000px;
    width: 10000px;
    height: 10000px;
    transform-origin: 5000px 5000px;
    will-change: transform;
    cursor: grab;
    /* Three.js style grid */
    background-image:
        linear-gradient(rgba(212,175,55,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.07) 1px, transparent 1px),
        linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
    background-size: 300px 300px, 300px 300px, 60px 60px, 60px 60px;
    background-position: 5000px 5000px;
}
#ws-canvas.panning { cursor: grabbing; }
#ws-canvas > * { pointer-events: auto; }

/* App Store client review mode: desktop shows an iPhone preview, mobile/native fills the device. */
body.app-store-client-mode {
    background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.08), transparent 34%), #000;
    overflow: hidden;
}

body.app-store-client-mode #ws-canvas {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    transform-origin: center center !important;
    cursor: default !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.app-store-client-mode #ws-canvas.panning {
    cursor: default !important;
}

body.app-store-client-mode .production-row {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    gap: 0 !important;
    z-index: 1 !important;
}

body.app-store-client-mode .production-row > h2,
body.app-store-client-mode #node-network,
body.app-store-client-mode .node-network-section,
body.app-store-client-mode #node-toolbar,
body.app-store-client-mode #zoom-controls,
body.app-store-client-mode #spline-preview,
body.app-store-client-mode #nn-splines {
    display: none !important;
}

body.app-store-client-mode #active-iphone-simulator {
    width: 390px !important;
    height: 844px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    border-radius: 40px !important;
    box-shadow: 0 0 0 10px #1c1c1e, 0 0 0 12px #333, 0 20px 40px rgba(0,0,0,0.5) !important;
    overflow: hidden !important;
}

body.app-store-client-mode .app-container {
    width: 100% !important;
    height: 100% !important;
    border-radius: 40px !important;
    overflow: clip !important;
}

body.app-store-client-mode #active-iphone-simulator,
body.app-store-client-mode #ws-canvas,
body.app-store-client-mode .production-row {
    overflow: clip !important;
}

body.app-store-client-mode #active-iphone-simulator,
body.app-store-client-mode .app-container,
body.app-store-client-mode .screen {
    touch-action: manipulation;
}

body.app-store-client-mode input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.app-store-client-mode textarea,
body.app-store-client-mode select {
    font-size: 16px !important;
    line-height: 1.25 !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (max-width: 700px) {
    html,
    body {
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
    }

    body.app-store-client-mode {
        background: #000;
    }

    body.app-store-client-mode {
        --bottom-nav-height: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    body.app-store-client-mode #ws-canvas {
        display: block !important;
    }

    body.app-store-client-mode .production-row {
        position: fixed !important;
        inset: 0 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        display: block !important;
    }

    body.app-store-client-mode #active-iphone-simulator {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.app-store-client-mode #active-iphone-simulator > .dynamic-island {
        display: none !important;
    }

    body.app-store-client-mode .app-container {
        border-radius: 0 !important;
    }
}

.prod-screen {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 100;
    background: rgba(14, 15, 20, 0.98) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-top: 50px !important;
    box-sizing: border-box !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.prod-screen::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.prod-screen.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* Rate Marketplace slides on top of Delivery Plan */
.rate-marketplace-panel.prod-screen {
    z-index: 110;
}



/* --- iPhone Mockup Container --- */
.iphone-mockup {
    width: 390px;
    height: 844px;
    background-color: var(--bg-color);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 10px #1c1c1e, 0 0 0 12px #333, 0 20px 40px rgba(0,0,0,0.5);
}

.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background-color: #000;
    border-radius: 20px;
    z-index: 1000;
}

.app-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* --- Screen Transitions --- */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#loading-screen {
    position: absolute;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.32), rgba(0,0,0,0.06) 42%, rgba(0,0,0,0.25));
    transition: opacity 0.6s ease;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--bottom-nav-height)); /* Leave space for bottom nav */
    background-color: transparent;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    z-index: 10;
    pointer-events: none;
    overflow-x: clip;
}

.screen > * {
    pointer-events: none;
}
.screen > .content-scroll {
    pointer-events: none;
}
.content-scroll > * {
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.screen.active > *,
.screen.active > .content-scroll,
.screen.active .content-scroll > * {
    pointer-events: auto;
}

#home-screen.screen.active {
    pointer-events: none;
}

#home-screen.screen.active .content-scroll {
    pointer-events: none !important;
}

#home-screen.screen.active .app-header,
#home-screen.screen.active .ai-command-wrapper {
    pointer-events: none;
}

#home-screen.screen.active .app-header button,
#home-screen.screen.active .app-header [onclick],
#home-screen.screen.active .booking-card,
#home-screen.screen.active .booking-card *,
#home-screen.screen.active .ai-command-panel,
#home-screen.screen.active .ai-command-panel *,
#home-screen.screen.active .jetslice-guide-panel,
#home-screen.screen.active .jetslice-guide-panel *,
#home-screen.screen.active .autocomplete-popup-container,
#home-screen.screen.active .autocomplete-popup-container *,
#home-screen.screen.active .ai-command-wrapper > div[onwheel],
#home-screen.screen.active .ai-command-wrapper > div[onwheel] *,
#home-screen.screen.active .order-creation-actions,
#home-screen.screen.active .order-creation-actions * {
    pointer-events: auto;
}

.screen#tracking-screen {
    height: 100%; /* Tracking covers everything */
    z-index: 20;
}

.screen-brand-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.screen-brand-mark h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

.screen-brand-mark img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -2px;
}

.profile-brand-header {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
}

.profile-screen-brand {
    justify-self: center;
    align-items: center;
    width: 86px;
}

.profile-screen-brand h2 {
    width: 86px;
    text-align: center;
    font-size: 24px;
}

.profile-screen-brand img {
    width: 76px;
    max-width: 100%;
    margin-top: -1px;
}

.profile-header-back {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.profile-header-back ion-icon {
    font-size: 24px;
}

.profile-header-spacer {
    width: 44px;
    height: 44px;
}

.gold-dining-emoji {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 25px;
    flex: 0 0 38px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.32));
}

.gold-dining-plate {
    position: absolute;
    left: 10px;
    top: 4px;
    width: 17px;
    height: 17px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    box-sizing: border-box;
    background: radial-gradient(circle, rgba(252, 236, 186, 0.5) 0 32%, rgba(212, 175, 55, 0.28) 33% 100%);
}

.gold-dining-fork,
.gold-dining-knife {
    position: absolute;
    top: 3px;
    height: 20px;
    width: 5px;
}

.gold-dining-fork {
    left: 1px;
    border-left: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    border-top: 6px double var(--accent-color);
    border-radius: 2px 2px 3px 3px;
}

.gold-dining-knife {
    right: 2px;
    background: linear-gradient(90deg, var(--accent-color) 0 58%, #fcecba 59% 100%);
    border-radius: 70% 35% 4px 4px;
    transform: skewX(-8deg);
}

/* --- Auth Screen --- */
.auth-back-btn {
    appearance: none;
    position: absolute;
    top: calc(18px + env(safe-area-inset-top, 0px));
    left: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.36);
    background: rgba(212,175,55,0.1);
    color: var(--accent-color);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.auth-back-btn ion-icon {
    font-size: 24px;
}

.auth-back-btn:active {
    transform: scale(0.94);
}

.auth-screen-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
}

.auth-logo-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    animation: none;
    background: none;
    isolation: isolate;
    width: 104px;
}

.auth-logo-word {
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.42);
}

.auth-logo-wing {
    position: relative;
    display: block;
    width: 104px;
    height: 22px;
    margin-top: -2px;
    z-index: 0;
}

.auth-logo-wing::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 2px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(255, 211, 42, 0.72) 0%, rgba(212, 175, 55, 0.28) 44%, rgba(212, 175, 55, 0) 74%);
    filter: blur(9px);
    opacity: 0.2;
    transform: scaleX(0.92);
    animation: authWingGlowPulse 6.8s ease-in-out infinite;
    z-index: -1;
}

.auth-logo-wing img {
    display: block;
    width: 104px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.28));
}

@keyframes authWingGlowPulse {
    0%, 48%, 100% {
        opacity: 0.18;
        transform: scaleX(0.92) scaleY(0.84);
    }
    58% {
        opacity: 0.78;
        transform: scaleX(1.12) scaleY(1.16);
    }
    70% {
        opacity: 0.3;
        transform: scaleX(0.98) scaleY(0.94);
    }
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin: 0 0 44px;
}

.auth-provider-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.auth-provider-btn {
    appearance: none;
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-provider-btn:disabled {
    cursor: default;
    opacity: 0.68;
}

.auth-provider-btn:not(:disabled):active {
    transform: translateY(1px) scale(0.99);
}

.auth-provider-btn.apple,
.auth-provider-btn.google {
    background: #fff;
    color: #111;
    box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

.auth-provider-btn.meta {
    background: linear-gradient(135deg, #fff, #f7f8ff);
    color: #121318;
    box-shadow: 0 4px 15px rgba(255,255,255,0.12);
}

.auth-provider-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.auth-provider-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.google-signin-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.google-signin-button:empty {
    display: none;
}

.auth-error {
    display: none;
    font-size: 12px;
    color: #ff6b6b;
    text-align: center;
    margin: 0 0 12px;
    max-width: 90%;
    line-height: 1.4;
}

.auth-guest-btn {
    background: transparent;
    color: #888;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 16px;
}

.auth-legal {
    font-size: 11px;
    color: #666;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
    margin: 0;
}

.auth-legal span {
    text-decoration: underline;
    cursor: pointer;
    color: #aaa;
}

/* --- Headers --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 24px 20px;
    background: linear-gradient(to bottom, rgba(11,12,16,1) 50%, rgba(11,12,16,0));
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-header.solid {
    background: #000;
    border-bottom: 1px solid var(--border-color);
}
.app-header h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.app-header ion-icon {
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 700px) {
    body.app-store-client-mode .app-header {
        padding-top: calc(env(safe-area-inset-top, 0px) + 24px);
    }

}
.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--surface-light);
    border: 2px solid var(--accent-color);
    background-image: url('https://ui-avatars.com/api/?name=User&background=333&color=fff');
    background-size: cover;
}

/* --- Layout --- */
.content-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior-x: none;
    padding-top: 18vh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
    display: flex;
    flex-direction: column;
}
.content-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}
.content-scroll.padded {
    padding: 24px;
}

/* --- Typography --- */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====== HOME SCREEN ====== */
.hero-section {
    padding: 0 24px 30px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.hero-section.faded {
    opacity: 0;
    transform: translateY(-20px);
}
.hero-section h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 8px 28px rgba(0,0,0,0.85);
    -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    -webkit-mask-size: 200%;
    mask-size: 200%;
    animation: shimmerMask 4s infinite linear;
}
.hero-section h1 span {
    color: var(--accent-color);
}
.hero-section .subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.4;
}

#home-screen #header-action-btn {
    min-height: 44px !important;
    padding: 11px 20px !important;
    border-radius: 24px !important;
    font-size: 15px !important;
    gap: 8px !important;
    font-weight: 700 !important;
}

#home-screen #header-action-btn ion-icon {
    font-size: 21px !important;
}

#home-screen .ai-command-wrapper {
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: -4px !important;
    transform: translateY(18px) !important;
    z-index: 140;
}

#home-screen .ai-command-panel {
    min-height: 58px !important;
    padding: 15px 18px !important;
    border-radius: 16px !important;
    border-width: 1.5px !important;
}

#home-screen .ai-command-panel ion-icon {
    font-size: 24px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    display: inline-flex;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

#home-screen .ai-command-panel .cmd-submit-btn[style*="display: none"] {
    display: none !important;
}

.dev-issue-attachment-input {
    display: none !important;
}

.dev-issue-attach-btn {
    appearance: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

.dev-issue-attach-btn.has-attachment {
    border-color: rgba(212,175,55,0.88);
    background: rgba(212,175,55,0.18);
    box-shadow: 0 0 14px rgba(212,175,55,0.22);
}

#home-screen .ai-command-panel .dev-issue-attach-btn ion-icon {
    margin: 0 !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
}

#home-screen #cmdField {
    font-size: 16px !important;
    line-height: 1.25 !important;
    min-height: 32px !important;
    padding: 4px 0 !important;
}

#home-screen .ai-command-wrapper > div[onwheel] {
    gap: 10px !important;
    margin-top: 16px !important;
    padding-left: 20px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
}

#home-screen .ai-command-wrapper > div[onwheel] > div {
    min-height: 42px !important;
    padding: 10px 16px !important;
    border-radius: 22px !important;
    font-size: 14px !important;
    gap: 7px !important;
}

#home-screen .ai-command-wrapper > div[onwheel] ion-icon {
    font-size: 16px !important;
}

#home-screen .home-command-pill {
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#home-screen .home-command-pill.active {
    background: rgba(212, 175, 55, 0.16) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    box-shadow: 0 0 0 1px rgba(212,175,55,0.22), 0 8px 18px rgba(0,0,0,0.28) !important;
    transform: translateY(-1px);
}

#home-screen .home-command-pill.active ion-icon {
    color: var(--accent-color) !important;
}

#home-screen .home-command-pill.boss-pill.active {
    background: linear-gradient(135deg, #FF4B2B, #FF416C) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.24), 0 6px 18px rgba(255, 65, 108, 0.45) !important;
}

#home-screen .home-command-pill.boss-pill.active ion-icon {
    color: #fff !important;
}

#home-screen .home-command-pill[data-pill-action="top-rated"],
#home-screen .home-command-pill[data-pill-action="top-rated"].active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #000 !important;
    box-shadow: none !important;
}

#home-screen .home-command-pill[data-pill-action="top-rated"] ion-icon,
#home-screen .home-command-pill[data-pill-action="top-rated"].active ion-icon {
    color: #000 !important;
}

#voice-overlay:not(.hidden) {
    pointer-events: auto !important;
}

#voice-overlay .voice-orb {
    cursor: pointer;
    pointer-events: auto;
}

#voice-overlay .voice-cancel-btn {
    position: absolute;
    top: 54px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    background: rgba(0,0,0,0.42);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#voice-overlay .voice-cancel-btn ion-icon {
    font-size: 24px;
}

#search-screen .curated-item button {
    min-height: 38px !important;
    padding: 9px 14px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    flex-shrink: 0;
}

#search-screen .curated-item > ion-icon[onclick] {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#add-more-banner button {
    min-height: 38px !important;
    padding: 9px 14px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
}

#home-screen.pill-toggle-mode .ai-command-wrapper {
    display: block !important;
    position: absolute !important;
    left: 20px;
    right: 20px;
    bottom: calc(var(--bottom-nav-height) + 4px);
    margin: 0 !important;
    transform: none !important;
    z-index: 145;
}

#home-screen.pill-toggle-mode .ai-command-panel {
    display: none !important;
}

#home-screen.pill-toggle-mode .ai-command-wrapper > div[onwheel] {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

.pickup-bar.pill-toggle-space {
    bottom: calc(var(--bottom-nav-height) + 68px);
}

#home-screen.order-draft-mode .app-header,
#home-screen.order-draft-mode .hero-section {
    display: none !important;
}

#home-screen.order-draft-mode .content-scroll {
    padding-top: 0;
    justify-content: flex-end;
}

#home-screen.order-draft-mode .booking-card {
    display: none !important;
}

#home-screen.order-draft-mode {
    --draft-command-bottom: 18px;
    --draft-command-stack-height: 124px;
    --draft-stack-gap: 18px;
}

#home-screen.order-draft-mode .ai-command-wrapper {
    display: block !important;
    position: absolute !important;
    left: 20px;
    right: 20px;
    bottom: var(--draft-command-bottom);
    margin: 0 !important;
    transform: none !important;
    z-index: 90;
}

#home-screen.order-draft-mode .order-creation-actions {
    left: 20px;
    right: 20px;
    bottom: calc(var(--draft-command-bottom) + var(--draft-command-stack-height) + var(--draft-stack-gap));
}

#home-screen.order-draft-mode .ai-command-wrapper > div[onwheel] {
    margin-top: 16px !important;
}

.jetslice-chat-thread {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    pointer-events: auto;
}

.jetslice-chat-thread::-webkit-scrollbar {
    display: none;
}

.home-chat-thread {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 12px);
    max-height: 64vh;
    padding: 2px;
}

.jetslice-guide-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 12px);
    max-height: 64vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(212,175,55,0.36);
    background: rgba(5,5,6,0.9);
    box-shadow: 0 16px 36px rgba(0,0,0,0.46);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 2;
    pointer-events: auto;
}

.jetslice-guide-panel::-webkit-scrollbar {
    display: none;
}

.jetslice-guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.jetslice-guide-back {
    appearance: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.42);
    background: rgba(212,175,55,0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.jetslice-guide-back ion-icon {
    font-size: 18px;
}

.jetslice-guide-title-wrap {
    min-width: 0;
}

.jetslice-guide-title {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.jetslice-guide-subtitle {
    color: rgba(255,255,255,0.62);
    font-size: 11px;
    line-height: 1.3;
    margin-top: 3px;
}

.jetslice-guide-body {
    display: grid;
    gap: 10px;
}

.jetslice-guide-note {
    color: rgba(255,255,255,0.74);
    font-size: 12px;
    line-height: 1.45;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
}

.jetslice-guide-list-item {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
    color: #fff;
    border-radius: 12px;
    min-height: 48px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.jetslice-guide-list-item strong {
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.jetslice-guide-list-item small {
    display: block;
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    line-height: 1.25;
    margin-top: 3px;
    text-transform: capitalize;
}

.jetslice-guide-list-item ion-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.jetslice-guide-restaurant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
}

.jetslice-guide-restaurant-emoji {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 21px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.22);
    flex-shrink: 0;
}

.jetslice-guide-restaurant-name {
    color: #fff;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 800;
}

.jetslice-guide-restaurant-meta {
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    line-height: 1.25;
    margin-top: 3px;
}

.jetslice-guide-pill-note {
    border: 1px solid rgba(212,175,55,0.24);
    background: rgba(212,175,55,0.08);
    color: rgba(255,255,255,0.74);
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 11px;
    line-height: 1.35;
}

.jetslice-pill-candidate-list {
    display: grid;
    gap: 8px;
}

.jetslice-pill-candidate {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
    color: #fff;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.jetslice-pill-candidate:active {
    transform: scale(0.99);
}

.jetslice-pill-candidate-emoji {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 20px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.2);
    flex-shrink: 0;
}

.jetslice-pill-candidate-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.jetslice-pill-candidate-copy strong {
    font-size: 12px;
    line-height: 1.18;
}

.jetslice-pill-candidate-copy small {
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    line-height: 1.25;
}

.jetslice-pill-menu-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.jetslice-pill-menu-preview span,
.jetslice-pill-menu-preview.muted {
    border-radius: 999px;
    border: 1px solid rgba(212,175,55,0.18);
    background: rgba(0,0,0,0.24);
    color: rgba(255,234,156,0.9);
    padding: 3px 6px;
    font-size: 9px;
    line-height: 1.15;
}

.jetslice-pill-menu-preview b {
    color: #fff;
    font-weight: 800;
}

.jetslice-pill-menu-preview.muted {
    display: inline-flex;
    color: rgba(255,255,255,0.48);
    border-color: rgba(255,255,255,0.1);
}

.jetslice-guide-form {
    display: grid;
    gap: 10px;
}

.jetslice-guide-form label {
    display: grid;
    gap: 5px;
}

.jetslice-guide-form label span {
    color: var(--accent-color);
    font-size: 10px;
    font-weight: 800;
}

.jetslice-guide-form input,
.jetslice-guide-form select {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 9px 11px;
    font-size: 13px;
    outline: none;
}

.jetslice-guide-form select option {
    background: #050506;
    color: #fff;
}

.jetslice-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jetslice-guide-action {
    appearance: none;
    border: 1px solid rgba(212,175,55,0.42);
    background: rgba(212,175,55,0.12);
    color: var(--accent-color);
    border-radius: 999px;
    min-height: 34px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.jetslice-guide-action.primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #050300;
}

.jetslice-guide-action:disabled {
    opacity: 0.66;
    cursor: wait;
}

.jetslice-guide-action ion-icon {
    font-size: 14px;
}

.search-chat-thread {
    max-height: 320px;
    margin-bottom: 12px;
    padding: 0 0 4px;
}

.jetslice-chat-bubble {
    width: fit-content;
    max-width: min(90%, 340px);
    border-radius: 18px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.32;
    overflow-wrap: anywhere;
    box-shadow: 0 10px 28px rgba(0,0,0,0.34);
    animation: fadeIn 0.22s ease;
}

.jetslice-chat-bubble.user {
    align-self: flex-end;
    color: #050300;
    font-weight: 800;
    background: linear-gradient(135deg, #f4d84f 0%, #d4af37 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-bottom-right-radius: 6px;
}

.jetslice-chat-bubble.agent {
    position: relative;
    align-self: flex-start;
    color: rgba(255,255,255,0.92);
    background: rgba(5,5,6,0.82);
    border: 1px solid rgba(212,175,55,0.22);
    border-bottom-left-radius: 6px;
    padding-left: 42px;
    padding-right: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.jetslice-chat-bubble.fallback {
    background: linear-gradient(135deg, rgba(17,15,8,0.92), rgba(5,5,6,0.9));
    border-color: rgba(212,175,55,0.48);
}

.jetslice-chat-bubble.typing {
    color: rgba(255,255,255,0.62);
    padding-left: 12px;
    padding-right: 12px;
}

.jetslice-chat-bubble.typing .jetslice-chat-copy {
    animation: chatThinkingPulse 1.2s ease-in-out infinite;
}

.jetslice-chat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--accent-color);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.jetslice-chat-label ion-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.jetslice-chat-copy {
    color: inherit;
}

.jetslice-chat-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-right: 2px;
}

.jetslice-chat-source {
    max-width: 100%;
    min-height: 24px;
    border: 1px solid rgba(212,175,55,0.32);
    border-radius: 999px;
    background: rgba(212,175,55,0.08);
    color: rgba(244,216,79,0.95);
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jetslice-chat-source:active {
    transform: scale(0.97);
}

.jetslice-chat-addresses {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-right: 2px;
}

.jetslice-chat-address {
    appearance: none;
    width: 100%;
    min-height: 28px;
    border: 1px solid rgba(212,175,55,0.32);
    border-radius: 999px;
    background: rgba(212,175,55,0.08);
    color: rgba(244,216,79,0.95);
    padding: 6px 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    min-width: 0;
}

.jetslice-chat-address ion-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.jetslice-chat-address span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jetslice-chat-address:active {
    transform: scale(0.97);
}

.jetslice-chat-close {
    appearance: none;
    position: absolute;
    top: 7px;
    left: 7px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.32);
    background: rgba(212,175,55,0.08);
    color: rgba(255,255,255,0.72);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.jetslice-chat-close ion-icon {
    font-size: 16px;
}

.jetslice-chat-close:active {
    transform: scale(0.94);
}

.jetslice-chat-close-confirm {
    align-self: flex-start;
    width: fit-content;
    max-width: min(90%, 320px);
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.42);
    background: rgba(5,5,6,0.9);
    box-shadow: 0 10px 28px rgba(0,0,0,0.34);
    padding: 10px 12px;
    color: rgba(255,255,255,0.92);
    animation: fadeIn 0.18s ease;
}

.jetslice-chat-confirm-title {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.jetslice-chat-confirm-copy {
    color: rgba(255,255,255,0.62);
    font-size: 11px;
    line-height: 1.3;
    margin-top: 3px;
}

.jetslice-chat-confirm-actions {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.jetslice-chat-confirm-btn {
    appearance: none;
    border: 1px solid rgba(212,175,55,0.45);
    border-radius: 999px;
    min-height: 30px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.jetslice-chat-confirm-btn.keep {
    background: rgba(212,175,55,0.1);
    color: var(--accent-color);
}

.jetslice-chat-confirm-btn.close {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #050300;
}

.restaurant-custom-chip-row {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 8px 0;
    pointer-events: auto;
}

.restaurant-custom-chip {
    appearance: none;
    min-height: 30px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 219, 92, 0.62);
    background: rgba(5,5,6,0.9);
    color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.38), 0 0 16px rgba(212,175,55,0.18);
    padding: 7px 9px 7px 11px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.restaurant-custom-chip ion-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.restaurant-custom-chip-close {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(212,175,55,0.15);
    color: rgba(255,255,255,0.82);
}

.restaurant-custom-chip:active {
    transform: scale(0.97);
}

.jetslice-chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.jetslice-chat-action {
    appearance: none;
    border: 1px solid rgba(212,175,55,0.45);
    background: rgba(212,175,55,0.12);
    color: var(--accent-color);
    border-radius: 999px;
    min-height: 30px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
}

.jetslice-chat-action ion-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.jetslice-chat-action span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jetslice-chat-action:active {
    transform: scale(0.97);
}

@keyframes chatThinkingPulse {
    0%, 100% { opacity: 0.48; }
    50% { opacity: 1; }
}

.booking-card {
    background-color: rgba(26, 28, 35, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: auto 24px 0 24px;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Collapsed Summary Bar --- */
.booking-summary {
    display: none;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px;
}
.booking-summary .summary-text {
    display: flex;
    flex-direction: column;
}
.booking-summary .summary-route {
    font-weight: 600;
    font-size: 16px;
    color: white;
}
.booking-summary .summary-cargo {
    font-size: 13px;
    color: var(--accent-color);
}
.booking-summary .summary-chevron {
    color: var(--text-secondary);
    font-size: 20px;
    transition: transform 0.3s;
}

/* Collapsed State */
.booking-card.collapsed {
    padding: 16px 24px;
}
.booking-card.collapsed .booking-summary {
    display: flex;
}
.booking-card.collapsed .expandable-form {
    display: none;
}
.booking-card .booking-summary .summary-chevron {
    transform: rotate(180deg);
}
.booking-card.collapsed .booking-summary .summary-chevron {
    transform: rotate(0deg);
}

.route-inputs {
    position: relative;
}
.input-group {
    display: flex;
    align-items: center;
    background-color: var(--surface-light);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    min-width: 0;
}
.input-group .icon {
    font-size: 20px;
    margin-right: 12px;
}
.input-group .icon.origin { color: var(--text-secondary); }
.input-group .icon.dest { color: var(--accent-color); }

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.input-group input::placeholder {
    color: var(--text-secondary);
}

.route-line {
    position: absolute;
    left: 25px;
    top: 36px;
    bottom: 36px;
    width: 2px;
    background: dashed 2px var(--border-color);
}

.distance-warning {
    display: flex;
    align-items: center;
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.distance-warning ion-icon {
    margin-right: 8px;
    font-size: 16px;
}

.package-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 16px 0 18px !important;
    min-width: 0;
}
.package-details .item-select {
    width: 100%;
    flex: 0 0 auto !important;
    min-width: 0;
}
.package-details .item-select:first-child {
    flex: 0 0 auto !important;
}
.package-details .item-select:last-child {
    flex: 0 0 auto !important;
}
.item-select label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    -webkit-mask-size: 200%;
    mask-size: 200%;
    animation: shimmerMask 4s infinite linear;
}
.item-select select,
.item-select input[type="date"] {
    width: 100%;
    background-color: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    appearance: none;
    outline: none;
    font-family: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#cargo-select {
    padding-right: 34px;
}

.primary-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    background: linear-gradient(110deg, #d4af37 20%, #fcecba 45%, #fcecba 55%, #d4af37 80%);
    background-size: 200% 100%;
    animation: goldShimmer 3.5s infinite linear;
    color: #000;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 4px 20px rgba(212,175,55,0.4);
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}
.primary-btn ion-icon {
    margin-left: 8px;
    font-size: 20px;
}
.primary-btn:active {
    transform: scale(0.98);
}

.shimmer-circle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(110deg, #d4af37 20%, #fcecba 45%, #fcecba 55%, #d4af37 80%);
    background-size: 200% 100%;
    animation: goldShimmer 3.5s infinite linear;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 4px 12px rgba(212,175,55,0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.shimmer-circle-btn:hover {
    transform: scale(1.05);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 6px 16px rgba(212,175,55,0.6);
}
.shimmer-circle-btn:active {
    transform: scale(0.95);
}
.shimmer-circle-btn ion-icon {
    color: #000 !important;
    font-size: 16px;
    font-weight: 700;
}
.primary-btn.glow {
    box-shadow: 0 0 20px var(--accent-glow);
}
.primary-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Loading spinner */
.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== LOGISTICS SCREEN ====== */
.logistics-timeline {
    position: relative;
    margin-bottom: 30px;
}
.logistics-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 2px;
    background-color: var(--border-color);
}
.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 24px;
}
.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--surface-color);
    border: 2px solid var(--bg-color);
    font-size: 18px;
    z-index: 2;
}
.timeline-icon.uber { color: var(--uber-color); background: #333; }
.timeline-icon.air { color: #fff; background: var(--united-color); }
.timeline-icon.lyft { color: #fff; background: var(--lyft-color); }
.timeline-icon.service { color: #000; background: var(--accent-color); }

.timeline-content {
    flex: 1;
    padding-left: 16px;
}
.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.timeline-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    -webkit-mask-size: 200%;
    mask-size: 200%;
    animation: shimmerMask 4s infinite linear;
}
.cost-item {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.flight-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    mask-image: linear-gradient(-75deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 70%);
    -webkit-mask-size: 200%;
    mask-size: 200%;
    animation: shimmerMask 4s infinite linear;
}
.badge {
    background-color: rgba(0, 93, 170, 0.2);
    color: #66b2ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.badge.alt {
    background-color: rgba(255, 191, 0, 0.1);
    color: rgba(255, 191, 0, 0.8);
    text-decoration: line-through;
}

.total-cost-card {
    background: linear-gradient(145deg, var(--surface-color), #20222a);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--accent-glow);
}
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.total-row span {
    font-size: 15px;
    color: var(--text-secondary);
}
.total-row h2 {
    font-size: 28px;
    color: var(--accent-color);
}

/* ====== TRACKING SCREEN ====== */
.tracking-bottom-sheet {
    position: absolute;
    bottom: var(--bottom-nav-height);
    left: 0;
    width: 100%;
    background: #000;
    border-top: 1px solid var(--border-color);
    border-radius: 30px 30px 0 0;
    padding: 30px 24px;
    z-index: 5;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    transition: height 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.28s ease, opacity 0.2s ease;
    will-change: height;
    touch-action: none;
    visibility: visible;
    max-height: calc(100% - var(--bottom-nav-height) - 10px) !important;
}
.tracking-bottom-sheet.tracking-sheet-collapsed {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(calc(100% + 28px));
}
.tracking-bottom-sheet.dragging {
    transition: none;
}

.tracking-status-fab {
    position: absolute;
    top: 56px;
    right: 18px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: var(--accent-color);
    color: #050505;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0,0,0,0.42), 0 0 18px rgba(212,175,55,0.34);
    cursor: pointer;
    pointer-events: auto;
}

.tracking-status-fab ion-icon {
    font-size: 15px;
}

.nearby-add-marker-outer {
    position: relative;
    pointer-events: auto;
}

.nearby-add-marker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    background: rgba(8, 8, 9, 0.82);
    border: 1px solid rgba(212,175,55,0.62);
    box-shadow: 0 10px 22px rgba(0,0,0,0.42), 0 0 18px rgba(212,175,55,0.28);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55));
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nearby-add-marker-outer:hover .nearby-add-marker {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 14px 28px rgba(0,0,0,0.48), 0 0 24px rgba(212,175,55,0.42);
}

.nearby-add-marker.pickup {
    width: 52px;
    height: 52px;
    font-size: 31px;
    background: rgba(212,175,55,0.18);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 0 6px rgba(212,175,55,0.12), 0 0 26px rgba(212,175,55,0.58);
}

.nearby-add-marker.airport {
    width: 48px;
    height: 48px;
    font-size: 28px;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.78);
    box-shadow: 0 0 0 5px rgba(255,255,255,0.08), 0 0 22px rgba(212,175,55,0.34);
}
.drag-handle {
    width: 40px;
    height: 5px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin: 0 auto 20px;
    cursor: grab;
    padding: 10px 30px;
    background-clip: content-box;
}
.drag-handle:active {
    cursor: grabbing;
}
.tracking-bottom-sheet h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.tracking-status-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tracking-status-header h3 {
    margin: 0;
    min-width: 0;
}

.tracking-delivery-eta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    max-width: 148px;
    padding: 7px 10px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
}

.tracking-delivery-eta span {
    color: rgba(255,255,255,0.52);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.tracking-delivery-eta strong {
    color: var(--accent-color);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.05;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-status {
    display: flex;
    align-items: center;
    background-color: rgba(212, 175, 55, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.status-indicator.live {
    width: 10px; height: 10px;
    background-color: #00e676;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px #00e676;
}
.live-status span {
    font-size: 14px;
    font-weight: 500;
}

.eta-block {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.eta-item {
    flex: 1;
    background-color: var(--surface-light);
    padding: 16px;
    border-radius: 12px;
}
.eta-item span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.eta-item strong {
    font-size: 18px;
    color: var(--text-primary);
}

.agent-note {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 2px solid var(--accent-color);
}

.secondary-btn {
    width: 100%;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
}

/* ====== BOTTOM NAV ====== */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: #000;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); /* Safe area */
    z-index: 50;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    transition: color 0.2s;
    min-width: 72px;
    min-height: 54px;
    justify-content: center;
    overflow: hidden;
}

.nav-item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-item ion-icon {
    font-size: 26px;
    margin-bottom: 5px;
}
.nav-item.active {
    color: var(--accent-color);
}

.dev-bug-floater {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: 160;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #8fb8ff;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    animation: devBugCrawl 34s ease-in-out infinite;
    transform-style: preserve-3d;
    --bug-leg-swing: 0.9;
    --bug-leg-step-speed: 0.9s;
}

.dev-bug-floater.is-screen-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation-play-state: paused;
}

.dev-bug {
    position: relative;
    width: 34px;
    height: 30px;
    display: block;
    transform-style: preserve-3d;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.82)) drop-shadow(0 0 8px rgba(143,184,255,0.34));
    animation: devBugBodyWobble 1.6s steps(2, end) infinite;
}

.dev-bug-svg {
    width: 42px;
    height: 42px;
    overflow: visible;
    color: #020304;
    fill: currentColor;
    stroke: currentColor;
    animation: none;
    filter:
        drop-shadow(0 0 1.3px rgba(255,255,255,0.88))
        drop-shadow(0 3px 4px rgba(0,0,0,0.76))
        drop-shadow(0 0 8px rgba(143,184,255,0.34));
}

.dev-bug-svg .bug-antenna,
.dev-bug-svg .bug-leg,
.dev-bug-svg .bug-divider {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dev-bug-svg .bug-antenna {
    stroke-width: 9;
}

.dev-bug-svg .bug-leg {
    stroke-width: 10;
    transform-box: fill-box;
    transform-origin: center center;
}

.dev-bug-svg .bug-leg-left {
    transform-origin: right center;
}

.dev-bug-svg .bug-leg-right {
    transform-origin: left center;
}

.dev-bug-svg .bug-leg-a {
    animation: devBugSvgLegA var(--bug-leg-step-speed) steps(2, end) infinite;
}

.dev-bug-svg .bug-leg-b {
    animation: devBugSvgLegB var(--bug-leg-step-speed) steps(2, end) infinite;
    animation-delay: -0.2s;
}

.dev-bug-svg .bug-head,
.dev-bug-svg .bug-thorax,
.dev-bug-svg .bug-abdomen-left,
.dev-bug-svg .bug-abdomen-right {
    stroke: none;
}

.dev-bug-svg .bug-divider {
    stroke: rgba(255,255,255,0.95);
    stroke-width: 6;
}

.dev-bug-floater.is-open .dev-bug-svg {
    color: #050806;
    filter:
        drop-shadow(0 0 1.4px rgba(255,255,255,0.88))
        drop-shadow(0 0 8px rgba(84,236,150,0.46));
}

.dev-bug::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -4px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,0.36);
    filter: blur(3px);
    transform: translateZ(-8px) rotateX(58deg);
}

.dev-bug-body,
.dev-bug-head {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid currentColor;
    box-shadow: inset -4px -5px 8px rgba(0,0,0,0.72), inset 4px 3px 7px rgba(143,184,255,0.28), 0 2px 3px rgba(0,0,0,0.64);
}

.dev-bug-body {
    top: 10px;
    width: 19px;
    height: 17px;
    border-radius: 50% 50% 45% 45%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,0.48), transparent 13%),
        radial-gradient(circle at 36% 32%, rgba(143,184,255,0.38), transparent 30%),
        linear-gradient(145deg, rgba(20,34,55,0.98) 0%, rgba(9,13,23,0.96) 60%, rgba(1,2,5,0.98) 100%);
}

.dev-bug-body::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 2px;
    left: 50%;
    border-left: 1px solid currentColor;
    opacity: 0.65;
}

.dev-bug-head {
    top: 0;
    width: 17px;
    height: 14px;
    border-radius: 48% 48% 54% 54%;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,0.5), transparent 14%),
        radial-gradient(circle at 50% 82%, rgba(143,184,255,0.2), transparent 34%),
        linear-gradient(145deg, rgba(24,42,66,0.99), rgba(3,5,12,0.99));
    z-index: 3;
}

.dev-bug-head::before,
.dev-bug-head::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.dev-bug-head::before {
    left: 4px;
}

.dev-bug-head::after {
    right: 4px;
}

.dev-bug-antenna,
.dev-bug-leg {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center right;
}

.dev-bug-antenna {
    top: -2px;
    width: 13px;
    height: 8px;
    background: transparent;
    border-top: 2px solid currentColor;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.52);
    z-index: 4;
}

.dev-bug-antenna::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    top: -4px;
    box-shadow: 0 0 5px rgba(143,184,255,0.65);
}

.dev-bug-antenna.left {
    left: 5px;
    border-radius: 90% 0 0 0;
    transform: rotate(146deg) translateX(1px);
    animation: devBugAntennaLeft 2.6s ease-in-out infinite;
}

.dev-bug-antenna.left::after {
    left: -2px;
}

.dev-bug-antenna.right {
    right: 5px;
    border-radius: 0 90% 0 0;
    transform-origin: center left;
    transform: rotate(34deg) translateX(-1px);
    animation: devBugAntennaRight 2.6s ease-in-out infinite;
}

.dev-bug-antenna.right::after {
    right: -2px;
}

.dev-bug-leg {
    width: 12px;
    animation: devBugLegs 0.8s steps(2, end) infinite;
}

.dev-bug-leg.l1,
.dev-bug-leg.l2,
.dev-bug-leg.l3 {
    left: 1px;
}

.dev-bug-leg.r1,
.dev-bug-leg.r2,
.dev-bug-leg.r3 {
    right: 1px;
    transform-origin: center left;
    animation-name: devBugLegsReverse;
}

.dev-bug-leg.l1,
.dev-bug-leg.r1 {
    top: 12px;
}

.dev-bug-leg.l2,
.dev-bug-leg.r2 {
    top: 18px;
    animation-delay: 0.2s;
}

.dev-bug-leg.l3,
.dev-bug-leg.r3 {
    top: 24px;
    animation-delay: 0.4s;
}

.dev-bug-leg.l1 {
    transform: rotate(24deg);
}

.dev-bug-leg.l2 {
    transform: rotate(2deg);
}

.dev-bug-leg.l3 {
    transform: rotate(-26deg);
}

.dev-bug-leg.r1 {
    transform: rotate(-24deg);
}

.dev-bug-leg.r2 {
    transform: rotate(-2deg);
}

.dev-bug-leg.r3 {
    transform: rotate(26deg);
}

.dev-bug-floater.is-open {
    color: #54ec96;
    animation-play-state: paused;
    --bug-leg-swing: 0.75;
    --bug-leg-step-speed: 1.08s;
}

.dev-bug-floater.is-seen {
    top: calc(108px + env(safe-area-inset-top, 0px));
    right: 24px;
    left: auto;
    animation: none;
    transform: none;
    --bug-leg-swing: 0;
    --bug-leg-step-speed: 1.6s;
}

.dev-bug-floater.is-seen .dev-bug,
.dev-bug-floater.is-seen .bug-leg {
    animation-play-state: paused;
}

.dev-bug-floater.is-seen .dev-bug-svg,
.dev-bug-floater.is-seen.is-open .dev-bug-svg {
    color: var(--accent-color);
    filter:
        drop-shadow(0 0 1.3px rgba(0,0,0,0.82))
        drop-shadow(0 3px 4px rgba(0,0,0,0.76))
        drop-shadow(0 0 10px rgba(212,175,55,0.58));
}

.dev-bug-floater.is-seen .dev-bug-svg .bug-divider {
    stroke: rgba(0,0,0,0.84);
}

.dev-bug-floater.is-crawling {
    --bug-leg-swing: 2.15;
    --bug-leg-step-speed: 0.34s;
}

.dev-bug-floater.is-crawling .dev-bug {
    animation-duration: 0.52s;
}

@keyframes devBugBodyWobble {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(1px) rotate(3deg);
    }
}

@keyframes devBugSvgLegA {
    0%, 100% {
        transform:
            rotate(calc(-8deg * var(--bug-leg-swing)))
            translate(
                calc(-1px * var(--bug-leg-swing)),
                calc(1px * var(--bug-leg-swing))
            );
    }
    50% {
        transform:
            rotate(calc(16deg * var(--bug-leg-swing)))
            translate(
                calc(3px * var(--bug-leg-swing)),
                calc(-2px * var(--bug-leg-swing))
            );
    }
}

@keyframes devBugSvgLegB {
    0%, 100% {
        transform:
            rotate(calc(8deg * var(--bug-leg-swing)))
            translate(
                calc(1px * var(--bug-leg-swing)),
                calc(-1px * var(--bug-leg-swing))
            );
    }
    50% {
        transform:
            rotate(calc(-16deg * var(--bug-leg-swing)))
            translate(
                calc(-3px * var(--bug-leg-swing)),
                calc(2px * var(--bug-leg-swing))
            );
    }
}

@keyframes devBugLegs {
    0%, 100% {
        margin-left: 0;
    }
    50% {
        margin-left: 3px;
    }
}

@keyframes devBugAntennaLeft {
    0%, 100% { transform: rotate(146deg) translateX(1px); }
    50% { transform: rotate(156deg) translateX(2px); }
}

@keyframes devBugAntennaRight {
    0%, 100% { transform: rotate(34deg) translateX(-1px); }
    50% { transform: rotate(24deg) translateX(-2px); }
}

@keyframes devBugLegsReverse {
    0%, 100% {
        margin-right: 0;
    }
    50% {
        margin-right: 3px;
    }
}

@keyframes devBugCrawl {
    0%, 8% {
        transform: translate3d(-50%, -50%, 0) translate(0, 0) rotate(-8deg);
    }
    14%, 22% {
        transform: translate3d(-50%, -50%, 0) translate(12px, -7px) rotate(-4deg);
    }
    27%, 28.5% {
        transform: translate3d(-50%, -50%, 0) translate(46px, -24px) rotate(8deg);
    }
    34%, 43% {
        transform: translate3d(-50%, -50%, 0) translate(38px, -52px) rotate(2deg);
    }
    49%, 50.5% {
        transform: translate3d(-50%, -50%, 0) translate(-22px, -78px) rotate(-11deg);
    }
    57%, 67% {
        transform: translate3d(-50%, -50%, 0) translate(-34px, -108px) rotate(-6deg);
    }
    73%, 74.5% {
        transform: translate3d(-50%, -50%, 0) translate(34px, -126px) rotate(7deg);
    }
    81%, 91% {
        transform: translate3d(-50%, -50%, 0) translate(52px, -166px) rotate(-5deg);
    }
    100% {
        transform: translate3d(-50%, -50%, 0) translate(0, 0) rotate(-8deg);
    }
}

/* ====== DEV ISSUE CONSOLE ====== */
.dev-console-overlay {
    position: absolute;
    inset: 0;
    z-index: 9980;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 64px 14px var(--dev-console-bottom-gap, calc(var(--bottom-nav-height) + 108px));
    background: transparent;
    pointer-events: none;
}

.dev-console-sheet {
    width: 100%;
    height: 100%;
    min-height: 292px;
    border: 1px solid rgba(212, 175, 55, 0.76);
    border-radius: 18px;
    background: #000;
    box-shadow: 0 20px 70px rgba(0,0,0,0.82), 0 0 0 1px rgba(212,175,55,0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

.dev-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(212,175,55,0.34);
    background: #000;
}

.dev-console-kicker {
    margin: 0 0 3px;
    color: var(--accent-color);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.dev-console-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

.dev-console-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212,175,55,0.48);
    border-radius: 50%;
    background: #000;
    color: var(--accent-color);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 40px;
}

.dev-console-close ion-icon {
    font-size: 22px;
}

.dev-console-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    border-bottom: 1px solid rgba(212,175,55,0.28);
    background: #000;
}

.dev-console-summary span:last-child {
    color: var(--accent-color);
    text-align: right;
}

.dev-console-summary span:last-child.error {
    color: #f4d84f;
}

.dev-issue-log {
    flex: 1 1 auto;
    min-height: 210px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dev-issue-log::-webkit-scrollbar {
    display: none;
}

.dev-issue-empty,
.dev-issue-row {
    border: 1px solid rgba(212,175,55,0.32);
    border-radius: 10px;
    background: #050505;
}

.dev-issue-empty {
    min-height: 116px;
    display: grid;
    place-items: center;
    color: rgba(212,175,55,0.7);
    font-size: 13px;
    text-align: center;
    padding: 18px;
}

.dev-issue-row {
    padding: 12px;
}

.dev-issue-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.dev-issue-level {
    font-size: 10px;
    font-weight: 900;
    color: #ffcf5f;
    text-transform: uppercase;
}

.dev-issue-level.error {
    color: #f4d84f;
}

.dev-issue-level.manual {
    color: var(--accent-color);
}

.dev-issue-time {
    color: rgba(212,175,55,0.52);
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dev-issue-message {
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

.dev-issue-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(212,175,55,0.52);
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bottom-nav .deliver-nav-flight {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 28px;
    margin-bottom: 5px;
    overflow: visible;
}

.bottom-nav .deliver-nav-flight ion-icon {
    font-size: 26px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    will-change: transform, opacity;
}

.bottom-nav .deliver-nav-flight .cloud-particle {
    width: 12px;
    height: 4px;
}

.bottom-nav .deliver-nav-flight.clouds-paused .cloud-particle {
    opacity: 0;
    animation-play-state: paused;
}

.bottom-nav .deliver-nav-flight.is-taking-off ion-icon {
    animation: deliverNavPlaneExit 0.5s cubic-bezier(0.12, 0.88, 0.16, 1) forwards;
}

.bottom-nav .deliver-nav-flight.is-taking-off .cloud-particle {
    opacity: 0;
    animation-play-state: paused;
}

.bottom-nav .deliver-nav-flight.is-resetting ion-icon {
    animation: deliverNavPlaneReset 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes deliverNavPlaneExit {
    0% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
    64% {
        opacity: 1;
        transform: translateX(54px) translateY(-5px) rotate(8deg) scale(1.06);
    }
    100% {
        opacity: 0;
        transform: translateX(108px) translateY(-9px) rotate(11deg) scale(0.92);
    }
}

@keyframes deliverNavPlaneReset {
    0% {
        opacity: 0;
        transform: translateX(-96px) translateY(8px) rotate(-10deg) scale(0.92);
    }
    18% {
        opacity: 1;
    }
    78% {
        opacity: 1;
        transform: translateX(7px) translateY(-1px) rotate(2deg) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
}

.order-creation-actions {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: calc(var(--bottom-nav-height) + 204px);
    z-index: 85;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    background: rgba(5, 5, 6, 0.88);
    box-shadow: 0 18px 38px rgba(0,0,0,0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    animation: fadeIn 0.22s ease;
}

.order-creation-actions.hidden {
    display: none;
}

.order-creation-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-creation-copy strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.15;
}

.order-creation-copy span {
    color: rgba(255,255,255,0.62);
    font-size: 11px;
    line-height: 1.3;
}

.order-creation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.order-creation-btn {
    appearance: none;
    min-height: 38px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.order-creation-btn.cancel {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.82);
}

.order-creation-btn.continue {
    border: 1px solid var(--accent-color);
    background: linear-gradient(135deg, #f4d84f, #d4af37);
    color: #050300;
}

/* ====== RATINGS HEADER ====== */
.ratings-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 65;
    padding: 0 16px;
    padding-top: 52px;
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 1;
}
.ratings-header.hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}
.ratings-header-inner {
    background: rgba(14, 15, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
}
.rating-chip.yelp {
    background: transparent;
    color: #ff6b6b;
}
.rating-chip.uber {
    background: transparent;
    color: #4ade80;
}
.rating-chip.reddit {
    background: transparent;
    color: #ff8b60;
}

/* ====== PICKUP BAR (collapsed) ====== */
.pickup-bar {
    position: absolute;
    top: 56px;
    bottom: calc(var(--bottom-nav-height) + 18px);
    left: 0;
    width: 100%;
    z-index: 60;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 1;
}
.pickup-bar.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.pickup-bar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 0;
    background: #000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.pickup-bar-inner:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

#pickup-sheet-menu-container::-webkit-scrollbar {
    display: none;
}

#pickup-sheet-search-container {
    flex: 0 0 auto;
    justify-content: stretch;
    align-items: center;
}

.pickup-menu-search {
    min-height: 0;
}

.pickup-menu-search-toggle {
    box-shadow: 0 8px 18px rgba(0,0,0,0.26);
}

.pickup-menu-search-toggle.active {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.64);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3), 0 0 16px rgba(212,175,55,0.22);
}

.pickup-menu-search-panel {
    background-color: #000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.pickup-menu-search-icon {
    color: var(--accent-color);
    font-size: 22px;
    margin-right: 12px;
    flex-shrink: 0;
}

.pickup-menu-search-close {
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.08);
    color: rgba(255,255,255,0.75);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
}

.pickup-menu-search-close ion-icon {
    font-size: 18px;
}

.pickup-menu-search-toggle:active,
.pickup-menu-search-close:active {
    transform: scale(0.95);
}

.pickup-sheet-topbar {
    flex: 0 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.pickup-sheet-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pickup-sheet-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.pickup-sheet-icon-btn ion-icon {
    font-size: 21px;
}

.pickup-sheet-title-block {
    min-width: 0;
    text-align: center;
}

.pickup-sheet-title-block h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pickup-sheet-title-block p {
    margin: 3px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pickup-restaurant-meta {
    flex: 0 0 auto;
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.25;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    padding: 7px 10px;
    box-sizing: border-box;
    text-align: center;
}

.pickup-rating-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    color: #ecc354;
    flex-shrink: 0;
}

.pickup-rating-stars ion-icon {
    font-size: 12px;
}

#pickup-sheet-menu-container {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding: 4px 0 8px;
    gap: 10px !important;
}

.pickup-order-footer {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #000;
}

.pickup-order-footer #pickup-order-summary-header {
    flex: 0 0 auto;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
}

.pickup-order-details {
    display: none !important;
}

#pickup-order-summary-header #pickup-eta,
#pickup-order-summary-header #pickup-cost {
    white-space: nowrap;
    flex-shrink: 0;
}

#pickup-order-summary-header #pickup-eta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

#pickup-order-summary-header #pickup-cost {
    max-width: none;
    letter-spacing: -0.2px;
    margin-left: auto;
}

.menu-item-row .shimmer-circle-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.menu-item-row .shimmer-circle-btn ion-icon {
    font-size: 17px;
}

.menu-item-row {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 12px 12px 13px;
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    column-gap: 10px;
    align-items: start;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.menu-item-row.is-selected {
    background: rgba(212,175,55,0.13);
    border-color: var(--accent-color);
    box-shadow: inset 0 0 0 1px rgba(212,175,55,0.08);
}

.menu-item-main {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    cursor: pointer;
}

.menu-item-emoji {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    line-height: 1;
}

.menu-item-copy {
    min-width: 0;
    max-width: 100%;
    padding-top: 0;
}

.menu-item-title {
    margin: 0 0 4px 0;
    font-size: 14.5px;
    line-height: 1.14;
    color: white;
    font-weight: 800;
    letter-spacing: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: break-word;
}

.menu-item-category {
    color: var(--accent-color);
    font-size: 10.5px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 5px;
}

.menu-item-description {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.28;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
}

.menu-item-actions {
    display: grid;
    grid-template-columns: minmax(42px, auto) auto;
    align-items: center;
    justify-content: end;
    justify-self: end;
    align-self: start;
    gap: 8px;
    min-width: 120px;
    padding-top: 25px;
}

.menu-item-price {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-align: right;
}

.menu-qty-control {
    min-width: 32px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-active-qty-controls {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    min-width: 70px;
    background: rgba(212,175,55,0.15);
    border: 1px solid var(--accent-color);
    border-radius: 18px;
    padding: 1px 5px;
    box-sizing: border-box;
}

.menu-qty-step {
    appearance: none;
    width: 22px;
    height: 26px;
    border: 0;
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.menu-qty-step ion-icon {
    font-size: 14px;
}

.menu-qty-display {
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

@media (max-width: 390px) {
    .menu-item-row {
        grid-template-columns: minmax(0, 1fr) 110px;
        column-gap: 8px;
        padding: 11px 10px 11px 11px;
    }

    .menu-item-actions {
        grid-template-columns: minmax(38px, auto) auto;
        gap: 7px;
        min-width: 110px;
    }

    .menu-item-title {
        font-size: 14px;
    }

    .menu-item-description {
        font-size: 11.5px;
    }
}

/* Order Now Button */
.order-now-btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 38px;
    padding: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: linear-gradient(110deg, #d4af37 20%, #fcecba 45%, #fcecba 55%, #d4af37 80%);
    background-size: 200% 100%;
    animation: goldShimmer 3.5s infinite linear;
    color: #000;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}
.order-now-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
}
.order-now-btn:active {
    transform: scale(0.98);
}
/* --- Dynamic Emoji Marker Animations --- */
@keyframes markerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes flickerFlame {
    0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -4px) scale(1.1); opacity: 1; }
}
@keyframes floatHearts {
    0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
    100% { transform: translate(15px, -25px) scale(1.2); opacity: 0; }
}
@keyframes riseSteam {
    0% { transform: translate(0, 5px) scale(0.8); opacity: 0; }
    50% { opacity: 0.9; }
    100% { transform: translate(-10px, -35px) scale(1.5); opacity: 0; }
}
@keyframes lickTongue {
    0% { transform: translate(15px, 5px) rotate(-20deg) scale(0.5); opacity: 0; }
    50% { transform: translate(5px, -15px) rotate(10deg) scale(1.2); opacity: 1; }
    100% { transform: translate(-5px, 5px) rotate(-20deg) scale(0.5); opacity: 0; }
}

@keyframes textAnimToday {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes textAnimAnywhere {
    0% { transform: scale(0.8); opacity: 0; filter: blur(5px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.anim-today {
    animation: textAnimToday 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-anywhere {
    animation: textAnimAnywhere 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Profile View Background with Gold Flakes */
#profile-screen {
    background-color: #0b0c10;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, #d4af37 100%, transparent), 
        radial-gradient(1.5px 1.5px at 30% 60%, rgba(212,175,55,0.8) 100%, transparent), 
        radial-gradient(1px 1px at 50% 10%, #d4af37 100%, transparent), 
        radial-gradient(2px 2px at 80% 40%, rgba(212,175,55,0.6) 100%, transparent), 
        radial-gradient(1px 1px at 90% 80%, #d4af37 100%, transparent), 
        radial-gradient(1.5px 1.5px at 20% 90%, #d4af37 100%, transparent), 
        radial-gradient(1px 1px at 60% 80%, rgba(212,175,55,0.5) 100%, transparent);
    background-size: 140px 140px;
    animation: goldSnow 30s linear infinite;
}

#profile-screen .profile-scroll {
    pointer-events: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 24px calc(var(--bottom-nav-height) + 48px);
    scroll-padding-bottom: calc(var(--bottom-nav-height) + 48px);
}

#profile-screen .profile-card,
#profile-screen .profile-scroll > div {
    flex: 0 0 auto;
}

.profile-report-bug-btn {
    appearance: none;
    width: 100%;
    min-height: 52px;
    margin: 0 0 24px;
    border: 1px solid rgba(212,175,55,0.42);
    border-radius: 12px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    text-align: left;
}

.profile-report-bug-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    background: rgba(212,175,55,0.12);
    color: var(--accent-color);
}

.profile-report-bug-icon ion-icon {
    font-size: 18px;
}

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

#profile-screen .profile-card [style*="justify-content: space-between"] {
    gap: 12px;
}

#profile-screen .profile-card [style*="justify-content: space-between"] > div:first-child,
#profile-screen .profile-card [style*="justify-content: space-between"] > div:first-child > div:last-child {
    min-width: 0;
}

#profile-screen .profile-card [style*="justify-content: space-between"] > div:first-child > div:last-child > div,
#profile-screen .profile-card [style*="justify-content: space-between"] > div:first-child > div:last-child h3 {
    overflow-wrap: anywhere;
}

#profile-screen .profile-scroll > div:last-child span[onclick] {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
}

#profile-screen .profile-order-history-card {
    position: relative;
    z-index: 2;
    min-height: 78px;
    margin-bottom: 28px !important;
}

#profile-screen .profile-order-history-card > div {
    min-height: 78px;
    box-sizing: border-box;
}

#profile-screen .profile-settings-card {
    margin-top: 8px !important;
}

#profile-screen .profile-wallet-card {
    margin-bottom: 32px !important;
}

.profile-mini-action {
    appearance: none;
    border: 1px solid rgba(212,175,55,0.36);
    border-radius: 10px;
    background: rgba(212,175,55,0.12);
    color: var(--accent-color);
    min-height: 34px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.profile-mini-action ion-icon {
    font-size: 15px;
}

.profile-notification-demo-row {
    gap: 12px;
}

body.profile-compact-mode #profile-screen .profile-scroll {
    padding: 16px 18px calc(var(--bottom-nav-height) + 36px);
}

body.profile-compact-mode #profile-screen .profile-card,
body.profile-compact-mode #profile-screen .profile-order-history-card,
body.profile-compact-mode #profile-screen .profile-settings-card,
body.profile-compact-mode #profile-screen .profile-wallet-card {
    margin-bottom: 14px !important;
    border-radius: 16px !important;
}

body.profile-compact-mode #profile-screen .accordion-item {
    min-height: 38px;
    padding: 7px 0;
    font-size: 13px;
}

body.profile-compact-mode #profile-screen .profile-report-bug-btn {
    min-height: 46px;
    margin-bottom: 16px;
}

body.profile-reduced-motion #profile-screen,
body.profile-reduced-motion #profile-screen *,
body.profile-reduced-motion .jetslice-toast {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

.jetslice-mock-push {
    appearance: none;
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 14px;
    right: 14px;
    z-index: 13000;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04)),
        rgba(9, 10, 12, 0.92);
    color: #fff;
    box-shadow: 0 18px 54px rgba(0,0,0,0.48);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(-128%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.jetslice-mock-push.visible {
    transform: translateY(0);
    opacity: 1;
}

.jetslice-mock-push .jmp-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(212,175,55,0.16);
    color: var(--accent-color);
    flex: 0 0 auto;
}

.jetslice-mock-push.promo .jmp-icon {
    background: rgba(84,131,236,0.17);
    color: #8ab0ff;
}

.jetslice-mock-push.account .jmp-icon {
    background: rgba(84,236,150,0.15);
    color: #54ec96;
}

.jetslice-mock-push .jmp-icon ion-icon {
    font-size: 22px;
}

.jetslice-mock-push .jmp-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.jetslice-mock-push .jmp-copy strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.jetslice-mock-push .jmp-copy span {
    color: rgba(255,255,255,0.76);
    font-size: 12px;
    line-height: 1.32;
}

.jetslice-mock-push .jmp-copy em {
    color: var(--accent-color);
    font-size: 11px;
    line-height: 1.25;
    font-style: normal;
    font-weight: 800;
}

.jetslice-mock-push .jmp-trail {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent-color), rgba(255,255,255,0.84), transparent);
    animation: mockPushTrail 6.2s linear forwards;
}

body.light-theme .jetslice-mock-push {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78)),
        rgba(255,255,255,0.92);
    color: #121212;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 16px 42px rgba(0,0,0,0.16);
}

body.light-theme .jetslice-mock-push .jmp-copy strong {
    color: #121212;
}

body.light-theme .jetslice-mock-push .jmp-copy span {
    color: rgba(18,18,18,0.7);
}

body.profile-reduced-motion .jetslice-mock-push,
body.profile-reduced-motion .jetslice-mock-push * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

@keyframes mockPushTrail {
    from { transform: scaleX(1); opacity: 1; }
    to { transform: scaleX(0); opacity: 0.4; }
}

#orders-screen {
    background-color: #0b0c10;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="10" y="30" font-size="14" opacity="0.3"></text><text x="60" y="80" font-size="12" opacity="0.2"></text></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="40" y="40" font-size="16" opacity="0.15"></text><text x="80" y="20" font-size="12" opacity="0.25"></text></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="20" y="80" font-size="14" opacity="0.2"></text><text x="70" y="50" font-size="12" opacity="0.15"></text></svg>');
    background-size: 200px 200px, 250px 250px, 300px 300px;
    animation: goldSnow 30s linear infinite;
}
@keyframes goldSnow {
    0% { background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px; }
    100% { background-position: 140px 280px, -140px 420px, 0px 560px, 280px 280px, -280px 420px, 140px 560px, -140px 280px; }
}
@keyframes chompChomp {
    0%, 20%   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); transform: scale(1) rotate(0deg); }
    40%, 60%  { clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0% 100%); transform: scale(0.95) rotate(-3deg); }
    80%, 100% { clip-path: polygon(0 0, 100% 0, 45% 50%, 100% 100%, 0% 100%); transform: scale(0.9) rotate(-6deg); }
}
@keyframes crumbsDrop {
    0% { transform: translate(5px, 0) scale(1); opacity: 1; }
    100% { transform: translate(20px, 20px) scale(0.3); opacity: 0; }
}

.emoji-marker-outer {
    position: relative;
}

.emoji-marker.anim-bounce {
    animation: markerBounce 0.6s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

.emoji-marker.anim-flame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    animation: flickerFlame 1.2s infinite alternate;
    z-index: -1;
    pointer-events: none;
}

.emoji-marker.anim-hearts::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 16px;
    animation: floatHearts 1.5s infinite ease-out;
    pointer-events: none;
}

.emoji-marker.anim-tongue::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -15px;
    font-size: 22px;
    animation: lickTongue 1.5s infinite;
    z-index: 5;
    pointer-events: none;
}

.emoji-marker.anim-eat {
    animation: chompChomp 1.5s infinite alternate;
}
.emoji-marker.anim-eat::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -5px;
    font-size: 14px;
    animation: crumbsDrop 0.6s infinite ease-in;
    pointer-events: none;
}

/* --- Emoji Markers --- */
.emoji-marker {
    font-size: 38px;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transition: transform 0.2s;
}
.emoji-marker:hover {
    transform: scale(1.2);
}

.restaurant-search-marker-outer {
    position: relative;
    pointer-events: auto;
    transform: translateY(-8px);
}

.restaurant-search-marker {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(5, 5, 6, 0.86);
    border: 1px solid rgba(255, 219, 92, 0.78);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5), 0 0 22px rgba(212,175,55,0.42);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.restaurant-search-marker-label {
    position: absolute;
    left: 50%;
    bottom: -19px;
    transform: translateX(-50%);
    max-width: 116px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(5, 5, 6, 0.82);
    border: 1px solid rgba(212,175,55,0.42);
    color: #ffe36a;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.42);
}

.restaurant-search-marker-outer:hover .restaurant-search-marker {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 16px 30px rgba(0,0,0,0.56), 0 0 28px rgba(212,175,55,0.58);
}

.address-search-marker-outer {
    position: relative;
    pointer-events: auto;
    transform: translateY(-8px);
}

.address-search-marker {
    width: 46px;
    height: 46px;
    border-radius: 50% 50% 50% 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    background: var(--accent-color);
    border: 1px solid rgba(255,255,255,0.42);
    color: #050300;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5), 0 0 22px rgba(212,175,55,0.46);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.address-search-marker ion-icon {
    transform: rotate(45deg);
    font-size: 23px;
}

.address-search-marker-label {
    position: absolute;
    left: 50%;
    bottom: -21px;
    transform: translateX(-50%);
    max-width: 128px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(5, 5, 6, 0.86);
    border: 1px solid rgba(212,175,55,0.42);
    color: #ffe36a;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.42);
}

.address-search-marker-outer:hover .address-search-marker {
    transform: translateY(-3px) scale(1.06) rotate(-45deg);
    box-shadow: 0 16px 30px rgba(0,0,0,0.56), 0 0 28px rgba(212,175,55,0.62);
}

.emoji-marker.colorado-chile-marker {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
}

/* --- Custom Mapbox Popup --- */

.mapboxgl-popup-content {
    background: rgba(26, 28, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: white;
    max-width: 250px;
    font-family: 'Inter', sans-serif;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: rgba(26, 28, 35, 0.95);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sound { 0% { height: 3px; } 50% { height: 14px; } 100% { height: 3px; } }

/* Route loading overlay animations */
@keyframes flyBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

.route-loading-item {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}

.route-loading-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.route-loading-ring-track,
.route-loading-ring-fill {
    fill: none;
    stroke-width: 6;
    transform-origin: 66px 66px;
}

.route-loading-ring-track {
    stroke: rgba(212,175,55,0.16);
}

.route-loading-ring-fill {
    stroke: #d4af37;
    stroke-linecap: round;
    stroke-dasharray: 32 100;
    animation: routeRingSpin 2.4s linear infinite, routeRingShimmer 6.2s ease-in-out infinite;
}

.route-loading-emoji {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.24) 68%, transparent 70%);
    font-size: 54px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.route-unavailable-overlay {
    position: absolute;
    inset: 0;
    z-index: 510;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0,0,0,0.32), rgba(0,0,0,0.08) 52%, transparent 78%);
}

.route-unavailable-panel {
    position: relative;
    width: min(300px, 86%);
    min-height: 142px;
    border: 1px solid rgba(212,175,55,0.42);
    border-radius: 14px;
    background: rgba(13, 14, 18, 0.9);
    box-shadow: 0 18px 48px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px 20px;
    text-align: center;
    animation: fadeIn 0.2s ease;
    pointer-events: auto;
}

.route-unavailable-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.28);
    background: rgba(0,0,0,0.28);
    color: rgba(255,255,255,0.78);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    z-index: 3;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.route-unavailable-close:hover {
    background: rgba(212,175,55,0.14);
    border-color: rgba(212,175,55,0.52);
    color: #fff;
    transform: scale(1.04);
}

.route-unavailable-close ion-icon {
    font-size: 19px;
}

.route-unavailable-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.12);
    color: var(--accent-color);
    font-size: 24px;
}

.route-unavailable-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: 0;
}

@keyframes routeRingSpin {
    to { stroke-dashoffset: -100; }
}

@keyframes routeRingShimmer {
    0%, 72%, 100% {
        stroke: #d4af37;
        filter: drop-shadow(0 0 5px rgba(212,175,55,0.45));
        opacity: 0.9;
    }
    78% {
        stroke: #fff2a8;
        filter: drop-shadow(0 0 16px rgba(252,236,186,0.95));
        opacity: 1;
    }
    84% {
        stroke: #e9c84f;
        filter: drop-shadow(0 0 10px rgba(212,175,55,0.72));
        opacity: 0.95;
    }
}

/* ---- BASE: shared loading-text container ---- */
.loading-text-container {
    position: relative;
    width: 120px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== PIZZA  - Classic Steam Rising ====== */
@keyframes steamRise {
    0% { opacity: 0.9; transform: translateY(0) translateX(var(--sx, 0px)) scale(0.7); }
    40% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-65px) translateX(var(--ex, 8px)) scale(0.4); }
}
.steam-word {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    pointer-events: none;
    animation: steamRise 2.2s ease-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
    --sx: calc((var(--i) - 1.5) * 8px);
    --ex: calc((var(--i) - 1.5) * 14px);
}

/* ====== ROCKET  - Jet Exhaust Blast (text shoots DOWN like fire) ====== */
@keyframes exhaustBlast {
    0% { opacity: 0; transform: translateY(0) translateX(var(--ex-x, 0px)) scale(1); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translateY(80px) translateX(var(--ex-drift, 5px)) scale(0.3); filter: blur(2px); }
}
.exhaust-word {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    animation: exhaustBlast 1.6s ease-in infinite;
    animation-delay: calc(var(--i) * 0.35s);
    --ex-x: calc((var(--i) - 1.5) * 6px);
    --ex-drift: calc((var(--i) - 1.5) * 12px);
    background: linear-gradient(180deg, #ffcc00 0%, #ff6600 40%, #ff2200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(255,100,0,0.6));
}

/* ====== CHAMPAGNE  - Fizz Bubbles Rising ====== */
@keyframes fizzBubble {
    0% { opacity: 0; transform: translateY(10px) translateX(var(--bx, 0px)) scale(0.5); }
    20% { opacity: 1; transform: translateY(0) scale(0.9); }
    60% { opacity: 0.8; transform: translateY(-30px) translateX(calc(var(--bx) * 1.5)) scale(1.1); }
    100% { opacity: 0; transform: translateY(-70px) translateX(calc(var(--bx) * 2)) scale(0.3); }
}
.fizz-word {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    animation: fizzBubble 2.8s ease-out infinite;
    animation-delay: calc(var(--i) * 0.6s);
    --bx: calc((var(--i) - 1.5) * 10px);
    text-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.fizz-word::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255,215,0,0.6);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255,215,0,0.4);
}

/* ====== GLOBE  - Orbital Text ====== */
@keyframes orbitSpin {
    0% { transform: rotate(0deg) translateX(38px) rotate(0deg); opacity: 0.8; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg) translateX(38px) rotate(-360deg); opacity: 0.8; }
}
.orbit-word {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -18px;
    font-size: 8px;
    font-weight: 700;
    color: rgba(100, 200, 255, 0.9);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    animation: orbitSpin 3s linear infinite;
    animation-delay: calc(var(--i) * 0.75s);
    text-shadow: 0 0 6px rgba(100,200,255,0.5);
}

/* ====== BURGER  - Cheese Drip ====== */
@keyframes cheeseDrip {
    0% { opacity: 0; transform: translateY(-8px) scaleY(0.3); }
    15% { opacity: 1; transform: translateY(0) scaleY(1); }
    60% { opacity: 0.9; transform: translateY(25px) scaleY(1.6) scaleX(0.85); }
    80% { opacity: 0.4; transform: translateY(45px) scaleY(2) scaleX(0.6); }
    100% { opacity: 0; transform: translateY(60px) scaleY(2.2) scaleX(0.4); }
}
.drip-word {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    color: #ffcc33;
    text-shadow: 0 2px 4px rgba(255,180,0,0.5);
    animation: cheeseDrip 2.5s ease-in infinite;
    animation-delay: calc(var(--i) * 0.5s);
    transform-origin: top center;
}

/* ====== SUSHI  - Chopstick Slide-In ====== */
@keyframes chopstickLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    30% { opacity: 1; transform: translateX(-2px); }
    50% { opacity: 1; transform: translateX(0); }
    80% { opacity: 0.5; transform: translateX(-3px); }
    100% { opacity: 0; transform: translateX(-50px); }
}
@keyframes chopstickRight {
    0% { opacity: 0; transform: translateX(50px); }
    30% { opacity: 1; transform: translateX(2px); }
    50% { opacity: 1; transform: translateX(0); }
    80% { opacity: 0.5; transform: translateX(3px); }
    100% { opacity: 0; transform: translateX(50px); }
}
.chopstick-word-left {
    position: absolute;
    bottom: 28px;
    left: 50%;
    margin-left: -30px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    animation: chopstickLeft 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.2s);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.chopstick-word-right {
    position: absolute;
    bottom: 18px;
    left: 50%;
    margin-left: -30px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,200,150,0.8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    animation: chopstickRight 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.2s);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ====== AIRPLANE  - Contrail / Skywriting ====== */
@keyframes contrailWrite {
    0% { opacity: 0; transform: translateX(-40px) scaleX(0.2); filter: blur(3px); }
    30% { opacity: 1; transform: translateX(0) scaleX(1); filter: blur(0); }
    70% { opacity: 0.8; transform: translateX(0) scaleX(1); filter: blur(0); }
    100% { opacity: 0; transform: translateX(0) scaleX(1); filter: blur(4px); }
}
.contrail-word {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 3px;
    text-transform: uppercase;
    pointer-events: none;
    animation: contrailWrite 2.8s ease-out infinite;
    animation-delay: calc(var(--i) * 0.6s);
    text-shadow: 0 0 12px rgba(255,255,255,0.3);
}

/* ====== PACKAGE  - Unbox Pop ====== */
@keyframes unboxPop {
    0% { opacity: 0; transform: translateY(20px) scale(0.3) rotateX(40deg); }
    30% { opacity: 1; transform: translateY(-5px) scale(1.15) rotateX(-5deg); }
    50% { opacity: 1; transform: translateY(-15px) scale(1) rotateX(0); }
    70% { opacity: 0.6; transform: translateY(-30px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-50px) scale(0.4); }
}
.unbox-word {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: rgba(200,170,120,0.9);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    animation: unboxPop 2s ease-out infinite;
    animation-delay: calc(var(--i) * 0.45s);
    text-shadow: 0 2px 6px rgba(160,120,60,0.5);
}

/* ====== FORK & KNIFE  - Carve / Etch Stroke ====== */
@keyframes carveStroke {
    0% { opacity: 0; transform: scaleX(0); filter: blur(2px); }
    20% { opacity: 0.5; transform: scaleX(0.5); filter: blur(1px); }
    50% { opacity: 1; transform: scaleX(1); filter: blur(0); }
    80% { opacity: 0.6; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0.8); filter: blur(2px); }
}
.carve-word {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: rgba(192,192,192,0.85);
    letter-spacing: 3px;
    text-transform: uppercase;
    pointer-events: none;
    transform-origin: left center;
    animation: carveStroke 2.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
    text-shadow: 0 0 3px rgba(212,175,55,0.4);
    border-bottom: 1px solid rgba(212,175,55,0.3);
    padding-bottom: 2px;
}

/* ====== CHEF  - Knife Chop (letters appear one-by-one) ====== */
@keyframes chopReveal {
    0% { opacity: 0; transform: translateY(-10px) rotate(-15deg); }
    15% { opacity: 1; transform: translateY(2px) rotate(2deg); }
    30% { transform: translateY(0) rotate(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-5px); }
}
.chop-letter {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: chopReveal 2s ease-out infinite;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.chop-word-container {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

body.light-theme {
    --bg-color: #f7f7f8;
    --surface-color: #ffffff;
    --surface-light: #f0f0f5;
    --text-primary: #121212;
    --text-secondary: #6e6e73;
    --accent-color: #b58b00; /* Darker Gold for contrast */
    --border-color: rgba(0, 0, 0, 0.1);
    --panel-glass: rgba(255, 255, 255, 0.95);
}
:root {
    --panel-glass: rgba(18, 18, 18, 0.95);
    --panel-border: rgba(212, 175, 55, 0.4);
}
body.light-theme {
    --panel-border: rgba(181, 139, 0, 0.3);
}

body.light-theme .app-container {
    background: #f7f7f8;
}

body.light-theme .app-header {
    background: linear-gradient(to bottom, rgba(247,247,248,0.98) 50%, rgba(247,247,248,0));
}

body.light-theme .app-header.solid,
body.light-theme #home-screen .ai-command-panel,
body.light-theme .profile-report-bug-btn,
body.light-theme #profile-screen .profile-card,
body.light-theme #profile-screen .profile-scroll > div[style*="background: #000"],
body.light-theme #profile-screen .profile-scroll > div[style*="background:#000"] {
    background: rgba(255,255,255,0.94) !important;
    color: var(--text-primary) !important;
    border-color: var(--panel-border) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.10) !important;
}

body.light-theme #profile-screen {
    background-color: #f7f7f8;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(181,139,0,0.42) 100%, transparent),
        radial-gradient(1.5px 1.5px at 30% 60%, rgba(181,139,0,0.28) 100%, transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(181,139,0,0.32) 100%, transparent),
        radial-gradient(2px 2px at 80% 40%, rgba(181,139,0,0.2) 100%, transparent);
}

body.light-theme #profile-screen [style*="color: white"],
body.light-theme #profile-screen h3,
body.light-theme #profile-screen .profile-card [style*="color: white"] {
    color: var(--text-primary) !important;
}

body.light-theme #profile-screen [style*="color: #888"],
body.light-theme #profile-screen [style*="color:#888"],
body.light-theme #profile-screen [style*="color: #aaa"],
body.light-theme #profile-screen [style*="color:#aaa"] {
    color: var(--text-secondary) !important;
}

body.light-theme .accordion-content {
    background: rgba(0,0,0,0.03);
}

body.light-theme .accordion-content.expanded,
body.light-theme .accordion-item {
    border-color: rgba(0,0,0,0.08);
}

body.light-theme .accordion-item input[type="text"],
body.light-theme .accordion-item select {
    background: rgba(255,255,255,0.92);
    border-color: rgba(0,0,0,0.12);
    color: var(--text-primary);
}

body.light-theme #home-screen .home-command-pill:not([data-pill-action="top-rated"]):not(.boss-pill) {
    background: rgba(255,255,255,0.92) !important;
    border-color: rgba(0,0,0,0.10) !important;
    color: var(--text-primary) !important;
}

body.light-theme #home-screen .home-command-pill:not([data-pill-action="top-rated"]):not(.boss-pill) ion-icon {
    color: var(--text-secondary) !important;
}

body.light-theme #cmdField,
body.light-theme #menu-search-input {
    color: var(--text-primary) !important;
}

body.light-theme #cmdField::placeholder,
body.light-theme #menu-search-input::placeholder {
    color: rgba(18,18,18,0.56);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ====== DELIVERY PLAN PANEL (Desktop Sidebar) ====== */
.delivery-plan-panel {
    width: 100%;
    height: 100%;
    background: rgba(14, 15, 20, 0.96);
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.delivery-plan-panel.awaiting {
    opacity: 0.4;
    pointer-events: none;
}
.delivery-plan-panel.active {
    opacity: 1;
    pointer-events: auto;
}

/* Panel Header */
.dpp-header {
    padding: 28px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.dpp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.dpp-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    margin: 0;
}
.dpp-header .dpp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.dpp-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(212,175,55,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 18px rgba(212,175,55,0.9); transform: scale(1.3); }
}
.dpp-route-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dpp-route-label .arrow {
    color: var(--accent-color);
    font-size: 14px;
}

/* Panel Scrollable Content */
.dpp-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dpp-content::-webkit-scrollbar {
    display: none;
}

/* Section Title */
.dpp-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    margin-top: 0;
}

/* Step Timeline */
.dpp-timeline {
    position: relative;
    margin-bottom: 24px;
}
.dpp-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 17px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color) 0%, rgba(212,175,55,0.15) 100%);
}
.dpp-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
    animation: fadeInStep 0.4s ease forwards;
    opacity: 0;
}
.dpp-step:nth-child(1) { animation-delay: 0.1s; }
.dpp-step:nth-child(2) { animation-delay: 0.25s; }
.dpp-step:nth-child(3) { animation-delay: 0.4s; }
.dpp-step:nth-child(4) { animation-delay: 0.55s; }
.dpp-step:nth-child(5) { animation-delay: 0.7s; }
.dpp-step:nth-child(6) { animation-delay: 0.85s; }
@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.dpp-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 16px;
    z-index: 2;
    border: 2px solid rgba(14,15,20,1);
}
.dpp-step-icon.pickup { background: #1a1a2e; color: var(--accent-color); }
.dpp-step-icon.rideshare { background: #333; color: #fff; }
.dpp-step-icon.flight { background: var(--united-color); color: #fff; }
.dpp-step-icon.lyft { background: var(--lyft-color); color: #fff; }
.dpp-step-icon.concierge { background: var(--accent-color); color: #000; }
.dpp-step-icon.dropoff { background: #1db954; color: #fff; }
.dpp-step-icon.food { background: #ff9500; color: #fff; }
.dpp-step-icon.return { background: #5856d6; color: #fff; }

.dpp-step-body {
    flex: 1;
    min-width: 0;
}
.dpp-step-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 3px;
}
.dpp-step-body p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 6px;
    line-height: 1.4;
}
.dpp-step-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dpp-step-expanded {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: var(--text-secondary);
    animation: fadeInStep 0.2s ease forwards;
}
.dpp-step-expanded > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}
.dpp-step.expanded .dpp-step-expanded {
    display: block;
}
.dpp-step h4 ion-icon[name="chevron-down-outline"] {
    transition: transform 0.3s ease;
}
.dpp-step.expanded h4 ion-icon[name="chevron-down-outline"] {
    transform: rotate(180deg);
}
/* Sub-bullet expand within Logistics & Transit */
.sub-expanded .sub-detail {
    display: block !important;
}
.sub-expanded > div:first-child ion-icon[name="chevron-down-outline"] {
    transform: rotate(180deg);
}
.dpp-step-expanded > .dpp-expanded-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 28px;
    margin-bottom: 6px;
}
.dpp-step-expanded > .dpp-expanded-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.dpp-expanded-row .row-label {
    min-width: 0;
    color: rgba(255,255,255,0.88);
    line-height: 1.3;
}
.dpp-expanded-row .row-value {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}
.dpp-step-expanded > .dpp-sub-panel {
    display: block;
    margin-bottom: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
}
.dpp-sub-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}
.dpp-sub-title {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    color: #fff;
    font-weight: 650;
    line-height: 1.25;
}
.dpp-sub-title-text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.dpp-sub-title ion-icon[name="chevron-down-outline"] {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 10px;
    opacity: 0.45;
}
.dpp-sub-cost {
    color: #fff;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.dpp-sub-detail {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 12px;
    color: var(--text-secondary);
}
.dpp-detail-row {
    display: grid;
    grid-template-columns: minmax(86px, 0.9fr) minmax(98px, 1.1fr);
    align-items: start;
    gap: 14px;
    min-height: 22px;
    padding: 2px 0;
}
.dpp-detail-label {
    min-width: 0;
    color: rgba(255,255,255,0.54);
    line-height: 1.25;
}
.dpp-detail-value {
    min-width: 0;
    color: rgba(255,255,255,0.82);
    text-align: right;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.dpp-detail-value.accent,
.dpp-detail-link {
    color: var(--accent-color);
    font-weight: 700;
}
.dpp-detail-value.success {
    color: #34c759;
    font-weight: 700;
}
.dpp-detail-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dpp-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}
.dpp-meta-chip.cost {
    color: #fff;
    font-weight: 700;
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.2);
}
.dpp-meta-chip.time {
    color: #4ade80;
    background: rgba(74,222,128,0.08);
    border-color: rgba(74,222,128,0.15);
}

/* Transport Options */
.dpp-transport-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.dpp-transport-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.dpp-transport-card:hover {
    background: rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.2);
}
.dpp-transport-card.selected {
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.35);
}
.dpp-transport-card.selected::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 12px;
    border: 1px solid var(--accent-color);
    pointer-events: none;
    opacity: 0.5;
}
.dpp-tc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.dpp-tc-body {
    flex: 1;
    min-width: 0;
}
.dpp-tc-body h5 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
}
.dpp-tc-body span {
    font-size: 11px;
    color: var(--text-secondary);
}
.dpp-tc-price {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.dpp-tc-price.best {
    color: var(--accent-color);
}

/* Cost Summary */
.dpp-cost-summary {
    background: linear-gradient(145deg, rgba(26,28,35,0.9), rgba(20,22,30,0.95));
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
.dpp-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.dpp-cost-row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dpp-cost-row .label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dpp-cost-row .label ion-icon {
    font-size: 16px;
    color: var(--text-secondary);
}
.dpp-cost-row .value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.dpp-cost-row.total {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid rgba(212,175,55,0.2);
}
.dpp-cost-row.total .label {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.dpp-cost-row.total .value {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

/* Stats Bar */
.dpp-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.dpp-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}
.dpp-stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}
.dpp-stat .stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.dpp-stat.highlight {
    background: rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.15);
}
.dpp-stat.highlight .stat-value {
    color: var(--accent-color);
}

/* Awaiting State */
.dpp-awaiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    padding: 40px;
    text-align: center;
}
.dpp-awaiting-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseOrb 3s infinite ease-in-out;
}
.dpp-awaiting-orb ion-icon {
    font-size: 32px;
    color: rgba(212,175,55,0.5);
}
.dpp-awaiting h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}
.dpp-awaiting p {
    font-size: 12px;
    color: rgba(139,146,165,0.6);
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

/* Panel Footer */
.dpp-footer {
    padding: 24px 24px 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
@keyframes goldShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dpp-footer-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    background: linear-gradient(110deg, #d4af37 20%, #fcecba 45%, #fcecba 55%, #d4af37 80%);
    background-size: 200% 100%;
    animation: goldShimmer 3.5s infinite linear;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.2s;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 4px 20px rgba(212,175,55,0.4);
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}
.dpp-footer-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 30px rgba(212,175,55,0.4);
}
.dpp-footer-btn:active {
    transform: scale(0.98);
}
.dpp-footer-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.schedule-instead-btn {
    gap: 6px !important;
}

.schedule-swap-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.32);
    color: var(--accent-color);
    flex-shrink: 0;
}

.schedule-swap-icon ion-icon {
    font-size: 12px;
    color: var(--accent-color);
    stroke-width: 44px;
}

/* Shimmer loading effect for awaiting data */
@keyframes shimmerMask {
    to { 
        -webkit-mask-position: 200% center; 
        mask-position: 200% center;
    }
}

/* ====== RATE MARKETPLACE PANEL ====== */
.rate-marketplace-panel {
    width: 100%;
    height: 100%;
    background: rgba(14, 15, 20, 0.96);
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: 'Inter', sans-serif;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.rate-marketplace-panel.awaiting {
    opacity: 0.4;
    pointer-events: none;
}
.rate-marketplace-panel.active {
    opacity: 1;
    pointer-events: auto;
}

/* RMP Header */
.rmp-header {
    padding: 28px 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.rmp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.rmp-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    margin: 0;
}
.rmp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.rmp-route-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rmp-route-label .arrow {
    color: var(--accent-color);
    font-size: 14px;
}

/* Tabs */
.rmp-tabs {
    display: flex;
    gap: 0;
    margin: 0 -24px;
}
.rmp-tab {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}
.rmp-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}
.rmp-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.rmp-tab ion-icon {
    font-size: 15px;
}

/* RMP Content */
.rmp-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.rmp-content::-webkit-scrollbar {
    display: none;
}
.rmp-awaiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    padding: 40px;
    text-align: center;
}
.rmp-awaiting h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}
.rmp-awaiting p {
    font-size: 12px;
    color: rgba(139,146,165,0.6);
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

/* Tab Content */
.rmp-tab-content {
    display: none;
}
.rmp-tab-content.active {
    display: block;
}

/* Section Headers (for rides) */
.rmp-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding: 0 2px;
}
.rmp-section-header ion-icon {
    font-size: 13px;
    color: var(--accent-color);
}

/* Provider List */
.rmp-provider-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---- Flight Provider Card ---- */
.rmp-flight-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.rmp-flight-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}
.rmp-flight-card.selected {
    background: rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.3);
}
.rmp-flight-card.best-deal::before {
    content: 'BEST DEAL';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: #000;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 0 14px 0 8px;
    letter-spacing: 0.5px;
}
.rmp-fc-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.rmp-fc-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    font-weight: 800;
    color: #fff;
}
.rmp-fc-airline {
    flex: 1;
    min-width: 0;
}
.rmp-fc-airline h5 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1px;
}
.rmp-fc-airline span {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rmp-fc-price {
    text-align: right;
    flex-shrink: 0;
}
.rmp-fc-price .amount {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.1;
}
.rmp-fc-price .per {
    font-size: 10px;
    color: var(--text-secondary);
}
.rmp-fc-price.best .amount {
    color: var(--accent-color);
}

/* Flight route bar */
.rmp-fc-route {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 0;
}
.rmp-fc-code {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    width: 42px;
}
.rmp-fc-code.dest {
    text-align: right;
}
.rmp-fc-route-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 8px;
}
.rmp-fc-route-line .duration {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.rmp-fc-route-line .line {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.12);
    position: relative;
    border-radius: 1px;
}
.rmp-fc-route-line .line::before,
.rmp-fc-route-line .line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: -2px;
}
.rmp-fc-route-line .line::before {
    left: 0;
    background: var(--accent-color);
}
.rmp-fc-route-line .line::after {
    right: 0;
    background: #4ade80;
}
.rmp-fc-route-line .stops {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.rmp-fc-route-line .stops.nonstop {
    color: #4ade80;
    font-weight: 600;
}

/* Flight meta row */
.rmp-fc-meta {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.rmp-fc-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}
.rmp-fc-tag.source {
    color: #60a5fa;
    background: rgba(96,165,250,0.08);
    border-color: rgba(96,165,250,0.15);
}

/* ---- Ride Provider Card ---- */
.rmp-ride-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.rmp-ride-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}
.rmp-ride-card.selected {
    background: rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.3);
}
.rmp-rc-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.rmp-rc-info {
    flex: 1;
    min-width: 0;
}
.rmp-rc-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rmp-rc-info h5 .surge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}
.rmp-rc-info .vehicle {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
}
.rmp-rc-info .eta {
    font-size: 10px;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
}
.rmp-rc-right {
    text-align: right;
    flex-shrink: 0;
}
.rmp-rc-right .price {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.1;
}
.rmp-rc-right .price.best {
    color: var(--accent-color);
}
.rmp-rc-right .scheduled {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* RMP Footer */
.rmp-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.rmp-savings {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4ade80;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(74,222,128,0.06);
    border: 1px solid rgba(74,222,128,0.12);
    border-radius: 10px;
}
.rmp-savings ion-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Premium Physical 3D Gold Extractor Classes */
.gold-3d-text {
    background: linear-gradient(110deg, #d4af37 20%, #fcecba 45%, #fcecba 55%, #d4af37 80%);
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShimmer 3.5s infinite linear;
    filter: drop-shadow(0 2px 4px rgba(212,175,55,0.4));
}
.gold-3d-btn {
    background: linear-gradient(110deg, #d4af37 20%, #fcecba 45%, #fcecba 55%, #d4af37 80%) !important;
    background-size: 200% 100% !important;
    animation: goldShimmer 3.5s infinite linear !important;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 4px 15px rgba(212,175,55,0.4) !important;
    color: #000 !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}
.gold-3d-border {
    position: relative;
    border-color: transparent !important;
    background-clip: padding-box;
}
.gold-3d-border::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    margin: -1px; /* border-width */
    border-radius: inherit;
    background: linear-gradient(110deg, #d4af37 20%, #fcecba 45%, #fcecba 55%, #d4af37 80%);
    background-size: 200% 100%;
    animation: goldShimmer 3.5s infinite linear;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.4);
}
/* Plane Flying Animation with Clouds */
.plane-flying-container {
    position: relative;
    overflow: hidden;
}
.cloud-particle {
    position: absolute;
    right: -15px;
    width: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    animation: flyLeft 1.2s linear infinite;
    z-index: 0;
}
@keyframes flyLeft {
    from { right: -15px; }
    to { right: 50px; }
}

/* No Active Mission State */
body.no-active-mission .active-mission-group {
    display: none !important;
}
body.no-active-mission .re-orders-list .curated-item {
    background: linear-gradient(135deg, #d4af37 0%, #fcecba 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
    color: #000 !important;
}
body.no-active-mission .re-orders-list .curated-item h4,
body.no-active-mission .re-orders-list .curated-item p {
    color: #000 !important;
}
body.no-active-mission .re-orders-list .curated-item .emoji-badge {
    background: rgba(0,0,0,0.1) !important;
}
body.no-active-mission .re-orders-list .curated-item ion-icon {
    color: #000 !important;
}

/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    padding: 0 16px;
}
.accordion-content.expanded {
    max-height: 300px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.accordion-item {
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-item input[type="text"],
.accordion-item select {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    text-align: right;
    font-size: 13px;
    min-height: 38px;
    padding: 8px 10px;
    width: 50%;
}
.accordion-item input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.accordion-item span[onclick],
.accordion-item span[style*="cursor: pointer"] {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    line-height: 1.2;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.toggle-switch .slider {
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.16);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle-switch .slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 1px;
    top: 1px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.28);
    transition: transform 0.18s ease;
}

.toggle-switch input:checked + .slider {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
}

.theme-toggle-btn {
    width: 52px !important;
    height: 32px !important;
    border-radius: 999px !important;
    flex-shrink: 0;
}

.theme-toggle-btn > div {
    width: 24px !important;
    height: 24px !important;
    top: 4px !important;
}

/* ====== SCHEDULE PANEL: DATE CHIPS ====== */
.rmp-date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    text-align: center;
}
.rmp-date-chip:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.2);
}
.rmp-date-chip.active {
    background: rgba(212,175,55,0.15);
    border-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(212,175,55,0.2);
}
.rdc-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 5px;
}
.rmp-date-chip.active .rdc-label {
    color: var(--accent-color);
}
.rdc-day {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}
.rmp-date-chip.active .rdc-day {
    color: var(--accent-color);
}

/* ====== SCHEDULE PANEL: TIME SLOTS ====== */
.rmp-time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rmp-time-slot:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
}
.rmp-time-slot.selected {
    background: rgba(212,175,55,0.1);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(212,175,55,0.15);
}
.rst-time {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.rmp-time-slot.selected .rst-time {
    color: var(--accent-color);
}
.rst-label {
    font-size: 11px;
    color: var(--text-secondary);
}
.rst-price {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}
.rmp-time-slot.selected .rst-price {
    color: var(--accent-color);
}

/* ====== SCHEDULE PANEL: PLAN SUMMARY ====== */
#rmp-plan-summary {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 18px;
    margin-top: 4px;
    animation: fadeInStep 0.3s ease forwards;
}
#rmp-plan-summary .dpp-section-title {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    margin: 0 0 12px 0;
}

/* ====================================================================
   ZOOM CONTROLS
   ==================================================================== */
#zoom-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(20,20,20,0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
#zoom-controls button {
    width: 36px; height: 36px;
    border: none; border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff; font-size: 18px; font-weight: 700;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.15s;
    font-family: 'Inter', sans-serif;
}
#zoom-controls button:hover { background: rgba(212,175,55,0.2); color: var(--accent-color); }
#zoom-controls .zoom-pct {
    font-size: 9px; color: #888; text-align: center;
    padding: 2px 0; font-weight: 600; letter-spacing: 0.5px;
}

/* ====================================================================
   NODE NETWORK VISUALIZATION
   ==================================================================== */
.node-network-section {
    position: absolute;
    top: 0; left: 0;
    width: 10000px;
    height: 10000px;
    pointer-events: none;
    z-index: 1;
}
.node-network-section > * { pointer-events: auto; }

/* Column headers in node network */
.nn-col-label {
    position: absolute;
    top: -8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.4);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.nn-title {
    text-align: center;
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 0; left: 0; right: 0;
    pointer-events: none;
    z-index: 10;
}
.nn-title h2 {
    font-size: 22px; font-weight: 700; color: #fff;
    letter-spacing: -0.5px; margin: 0 0 4px;
}
.nn-title h2 span {
    background: linear-gradient(135deg, #d4af37, #fcecba, #d4af37);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nn-title p {
    font-size: 12px; color: #666; margin: 0; font-weight: 400;
}

/* SVG spline layer */
.nn-spline-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
.nn-spline {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.nn-spline.flow {
    stroke-dasharray: 8 6;
    animation: nnDashFlow 1.8s linear infinite;
}
@keyframes nnDashFlow {
    to { stroke-dashoffset: -28; }
}

/* Animated particle on spline */
.nn-particle {
    r: 3;
    fill: #d4af37;
    filter: drop-shadow(0 0 4px rgba(212,175,55,0.8));
}

/* Node cards */
.nn-node {
    position: absolute;
    background: rgba(18,18,22,0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 155px;
    z-index: 5;
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    transition: all 0.25s ease;
    cursor: pointer;
}
.nn-node.expanded {
    width: 220px;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,175,55,0.5);
    background: rgba(18,18,22,0.98);
}
.nn-details {
    display: none;
    font-size: 10.5px;
    color: #999;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    line-height: 1.5;
}
.nn-node.expanded .nn-details {
    display: block;
    animation: fadeInDetails 0.3s ease forwards;
}
@keyframes fadeInDetails {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.nn-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.6);
}
.nn-node-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.nn-status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-left: auto;
}
.nn-status-dot.complete {
    background: #00ff88;
    box-shadow: 0 0 6px rgba(0,255,136,0.6);
}
.nn-status-dot.incomplete {
    background: #ff3366;
    box-shadow: 0 0 6px rgba(255,51,102,0.6);
}
.nn-status-dot.pending {
    background: #ffcc00;
    box-shadow: 0 0 6px rgba(255,204,0,0.6);
}
.nn-node-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nn-node-icon ion-icon { font-size: 16px; }
.nn-node-title {
    font-size: 12px; font-weight: 700; color: #fff;
    line-height: 1.2;
}
.nn-node-sub {
    font-size: 10px; color: #666;
    line-height: 1.3; margin-top: 2px;
}

/* Port dots on nodes */
.nn-port {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid;
    background: #111;
    z-index: 6;
}
.nn-port.left { left: -6px; top: 50%; transform: translateY(-50%); }
.nn-port.right { right: -6px; top: 50%; transform: translateY(-50%); }
.nn-port.top { top: -6px; left: 50%; transform: translateX(-50%); }
.nn-port.bottom { bottom: -6px; left: 50%; transform: translateX(-50%); }

/* Phone anchor labels */
.nn-phone-anchor {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.3);
}
.nn-phone-anchor ion-icon { font-size: 16px; }

/* Color themes for nodes */
.nn-node[data-theme="blue"] { border-color: rgba(66,153,225,0.3); }
.nn-node[data-theme="blue"]:hover { border-color: rgba(66,153,225,0.6); }
.nn-node[data-theme="blue"] .nn-node-icon { background: rgba(66,153,225,0.15); }
.nn-node[data-theme="blue"] .nn-node-icon ion-icon { color: #63b3ed; }
.nn-node[data-theme="blue"] .nn-port { border-color: #63b3ed; }

.nn-node[data-theme="purple"] { border-color: rgba(159,122,234,0.3); }
.nn-node[data-theme="purple"]:hover { border-color: rgba(159,122,234,0.6); }
.nn-node[data-theme="purple"] .nn-node-icon { background: rgba(159,122,234,0.15); }
.nn-node[data-theme="purple"] .nn-node-icon ion-icon { color: #b794f4; }
.nn-node[data-theme="purple"] .nn-port { border-color: #b794f4; }

.nn-node[data-theme="gold"] { border-color: rgba(212,175,55,0.3); }
.nn-node[data-theme="gold"]:hover { border-color: rgba(212,175,55,0.6); }
.nn-node[data-theme="gold"] .nn-node-icon { background: rgba(212,175,55,0.15); }
.nn-node[data-theme="gold"] .nn-node-icon ion-icon { color: #d4af37; }
.nn-node[data-theme="gold"] .nn-port { border-color: #d4af37; }

.nn-node[data-theme="green"] { border-color: rgba(72,187,120,0.3); }
.nn-node[data-theme="green"]:hover { border-color: rgba(72,187,120,0.6); }
.nn-node[data-theme="green"] .nn-node-icon { background: rgba(72,187,120,0.15); }
.nn-node[data-theme="green"] .nn-node-icon ion-icon { color: #68d391; }
.nn-node[data-theme="green"] .nn-port { border-color: #68d391; }

.nn-node[data-theme="orange"] { border-color: rgba(252,129,74,0.3); }
.nn-node[data-theme="orange"]:hover { border-color: rgba(252,129,74,0.6); }
.nn-node[data-theme="orange"] .nn-node-icon { background: rgba(252,129,74,0.15); }
.nn-node[data-theme="orange"] .nn-node-icon ion-icon { color: #fc814a; }
.nn-node[data-theme="orange"] .nn-port { border-color: #fc814a; }

.nn-node[data-theme="cyan"] { border-color: rgba(56,189,248,0.3); }
.nn-node[data-theme="cyan"]:hover { border-color: rgba(56,189,248,0.6); }
.nn-node[data-theme="cyan"] .nn-node-icon { background: rgba(56,189,248,0.15); }
.nn-node[data-theme="cyan"] .nn-node-icon ion-icon { color: #38bdf8; }
.nn-node[data-theme="cyan"] .nn-port { border-color: #38bdf8; }

.nn-node[data-theme="red"] { border-color: rgba(245,101,101,0.3); }
.nn-node[data-theme="red"]:hover { border-color: rgba(245,101,101,0.6); }
.nn-node[data-theme="red"] .nn-node-icon { background: rgba(245,101,101,0.15); }
.nn-node[data-theme="red"] .nn-node-icon ion-icon { color: #fc8181; }
.nn-node[data-theme="red"] .nn-port { border-color: #fc8181; }

/* Port interaction */
.nn-port { cursor: crosshair; transition: transform 0.15s, background 0.15s; }
.nn-port:hover { transform: scale(1.8) !important; background: currentColor !important; }
.nn-port.left:hover { transform: translateY(-50%) scale(1.8) !important; }
.nn-port.right:hover { transform: translateY(-50%) scale(1.8) !important; }
.nn-port.top:hover { transform: translateX(-50%) scale(1.8) !important; }
.nn-port.bottom:hover { transform: translateX(-50%) scale(1.8) !important; }

/* Bigger hit area for ports */
.nn-port::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}

/* Dragging state - disable transitions and hover effects */
.nn-node.dragging {
    transition: none !important;
    transform: none !important;
    z-index: 50 !important;
    box-shadow: 0 12px 48px rgba(212,175,55,0.3) !important;
}
.nn-node.dragging:hover { transform: none !important; }

/* ====================================================================
   NODE TOOLBAR
   ==================================================================== */
#node-toolbar {
    position: fixed;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    z-index: 99999;
    background: rgba(14,14,18,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    width: 140px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
}
#node-toolbar::-webkit-scrollbar { display: none; }

.nt-header {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 10px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
}
.nt-header ion-icon { font-size: 14px; }

.nt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nt-item ion-icon { font-size: 15px; flex-shrink: 0; }
.nt-item:hover {
    background: rgba(212,175,55,0.12);
    color: #fff;
}
.nt-item:active { transform: scale(0.97); }

.nt-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 8px;
}

.nt-clear { color: #ff6b6b; }
.nt-clear:hover { background: rgba(255,107,107,0.12); color: #ff6b6b; }

/* Architecture Toggle */
#node-network, #nn-splines {
    transition: opacity 0.3s ease;
}
body.arch-hidden #node-network {
    opacity: 0;
    pointer-events: none;
}

.jetslice-toast {
    position: absolute;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, 16px);
    width: min(320px, calc(100% - 40px));
    z-index: 12000;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(12, 12, 14, 0.94);
    color: #fff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.jetslice-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.jetslice-toast.error {
    border-color: rgba(255, 69, 58, 0.45);
    background: rgba(35, 15, 16, 0.96);
}
