/* ═══════════════════════════════════════════════════════════
   Proviraj — Client SPA
   Light theme (Manrope + Bricolage Grotesque)
   Desktop: sidebar + main · Mobile: bottom-nav + main
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg:           #f6f7fb;
    --bg-elev:      #ffffff;
    --bg-card:      #ffffff;
    --bg-surface:   #f3f4f9;
    --bg-hover:     #eceef5;
    --border:       #e6e8f0;
    --border-soft:  #eef0f6;

    --text:         #0f1428;
    --text-dim:     #5b6480;
    --text-muted:   #8a92a8;

    --accent:       #6366f1;
    --accent-2:     #8b5cf6;
    --accent-dark:  #4f46e5;
    --accent-soft:  rgba(99, 102, 241, .10);

    --green:        #16a34a;
    --green-bg:     rgba(34, 197, 94, .13);
    --yellow:       #d97706;
    --yellow-bg:    rgba(245, 158, 11, .15);
    --red:          #dc2626;
    --red-bg:       rgba(239, 68, 68, .12);
    --purple:       #7c3aed;
    --purple-bg:    rgba(124, 58, 237, .13);
    --blue-bg:      rgba(99, 102, 241, .10);

    --radius:       18px;
    --radius-sm:    12px;
    --radius-pill:  999px;

    --shadow-sm:    0 1px 3px rgba(15, 20, 40, .06), 0 1px 2px rgba(15, 20, 40, .04);
    --shadow-md:    0 4px 16px -4px rgba(15, 20, 40, .08), 0 2px 6px rgba(15, 20, 40, .04);
    --shadow-lg:    0 24px 48px -16px rgba(15, 20, 40, .16);

    --font:         'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Manrope', sans-serif;

    --sidebar-w:    260px;
    --bottomnav-h:  56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
body {
    background:
            radial-gradient(1200px 700px at 0% 0%, rgba(99,102,241,.06) 0%, transparent 55%),
            radial-gradient(900px 600px at 100% 0%, rgba(139,92,246,.05) 0%, transparent 55%),
            var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

#app { min-height: 100vh; }

/* ─── Splash ─── */
.splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════
   CABINET SHELL — sidebar + main (desktop), bottom-nav (mobile)
   ═══════════════════════════════════════════════════════════ */

.cabinet-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

/* ─── SIDEBAR (desktop only) ─── */
.sidebar {
    position: sticky; top: 0; height: 100vh;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 22px 14px 18px;
    display: flex; flex-direction: column; gap: 16px;
    overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 4px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff;
    box-shadow: 0 6px 16px -4px var(--accent);
}
.brand-text { line-height: 1.15; }
.brand-text b {
    font-family: var(--font-display); font-size: 17px;
    letter-spacing: -.01em; display: block;
}
.brand-text span { font-size: 11px; color: var(--text-muted); font-weight: 700; }

.cta-new {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; font-weight: 700; font-size: 13px;
    box-shadow: 0 8px 20px -8px var(--accent);
    transition: transform .12s, box-shadow .15s;
}
.cta-new:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px var(--accent); }
.cta-new i { font-size: 18px; }

.nav-label {
    font-size: 10px; font-weight: 800;
    color: var(--text-muted); letter-spacing: .12em;
    text-transform: uppercase; padding: 0 8px; margin-top: 6px;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: var(--text-dim);
    transition: background .12s, color .12s;
}
.nav-item i { font-size: 18px; flex-shrink: 0; }
.nav-item span:not(.num) { flex: 1; }
.nav-item .num {
    padding: 2px 8px; background: var(--bg-surface);
    color: var(--text-muted); font-size: 11px; font-weight: 800;
    border-radius: var(--radius-pill);
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
    background: var(--accent-soft); color: var(--accent);
    font-weight: 700;
}
.nav-item.active .num { background: var(--accent); color: #fff; }

.sidebar-foot {
    margin-top: auto; padding-top: 14px;
    display: flex; flex-direction: column; gap: 12px;
    border-top: 1px solid var(--border-soft);
}
.lang-switcher {
    display: flex; gap: 4px; padding: 4px;
    background: var(--bg-surface); border-radius: var(--radius-pill);
}
.lang-switcher button {
    padding: 6px 10px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 800;
    color: var(--text-dim); flex: 1;
    transition: all .12s;
}
.lang-switcher button:hover { color: var(--text); }
.lang-switcher button.active {
    background: var(--bg-card); color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.logout {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.logout:hover { color: var(--red); background: var(--red-bg); }
.logout i { font-size: 18px; }

/* ─── MAIN ─── */
.main { min-width: 0; }

.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 32px;
    background: rgba(246, 247, 251, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}
.search {
    flex: 1; max-width: 480px;
    position: relative;
}
.search i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 16px;
}
.search input {
    width: 100%; padding: 10px 16px 10px 42px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-pill); font-size: 13px; font-weight: 500;
    transition: border-color .12s;
}
.search input:focus { outline: none; border-color: var(--accent); }
.search input::placeholder { color: var(--text-muted); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.tb-icon {
    position: relative; width: 40px; height: 40px;
    border-radius: 12px; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: all .12s;
}
.tb-icon:hover { color: var(--text); border-color: var(--text-muted); }
.tb-icon .dot {
    position: absolute; top: 8px; right: 9px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red); border: 2px solid var(--bg-card);
}

.topbar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 10px 4px 4px; border-radius: var(--radius-pill);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all .12s; cursor: pointer;
}
.topbar-user:hover { border-color: var(--text-muted); }
.topbar-user-meta { line-height: 1.15; }
.topbar-user-meta b { font-size: 13px; font-weight: 700; display: block; }
.topbar-user-meta span { font-size: 11px; color: var(--text-muted); }
.topbar-user .chev { font-size: 16px; color: var(--text-muted); }

.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 12px;
}
.avatar.lg {
    width: 88px; height: 88px; font-size: 30px;
    box-shadow: 0 8px 32px -4px var(--accent);
}

.content { padding: 28px 32px 60px; max-width: 1400px; }

.page { animation: fadeIn .22s ease; }

/* ─── BOTTOM-NAV (mobile only, hidden on desktop) ─── */
.bottomnav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    height: var(--bottomnav-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    justify-content: space-around; align-items: center;
}
.bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 6px 8px; color: var(--text-muted); font-size: 9px; font-weight: 600;
    flex: 1; max-width: 80px; text-align: center;
    line-height: 1.1;
}
.bottomnav a i { font-size: 18px; }
.bottomnav a.active { color: var(--accent); }
.bottomnav a.fab > div {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: -14px; margin-bottom: 2px;
    box-shadow: 0 6px 16px -4px var(--accent);
}
.bottomnav a.fab > div i { color: #fff; font-size: 22px; }
.bottomnav a.fab span { display: none; }

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (titles + breadcrumbs + back)
   ═══════════════════════════════════════════════════════════ */

.page-h {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 24px;
}
.page-h h1 {
    font-family: var(--font-display); font-size: 28px; font-weight: 700;
    letter-spacing: -.02em; line-height: 1.15;
}
.page-h p { font-size: 13px; color: var(--text-dim); font-weight: 500; margin-top: 4px; }
.page-h .crumbs { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.page-h .crumbs a:hover { color: var(--text); }
.page-h .crumbs b { color: var(--text-dim); }
.page-h-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn-back {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text-dim);
    flex-shrink: 0;
}
.btn-back:hover { color: var(--text); border-color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   COMMON UI: buttons, cards, badges, status pills, chips, forms
   ═══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px;
    font-size: 13px; font-weight: 700;
    transition: transform .1s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 8px 24px -10px var(--accent);
}
.btn.primary:hover { box-shadow: 0 12px 28px -10px var(--accent); }
.btn.ghost {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
}
.btn.ghost:hover { border-color: var(--text-muted); background: var(--bg-surface); }
.btn.success {
    background: var(--green); color: #fff;
    box-shadow: 0 6px 16px -8px var(--green);
}
.btn.danger {
    background: var(--red); color: #fff;
    box-shadow: 0 6px 16px -8px var(--red);
}
.btn.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn.w-full { width: 100%; }
.btn i { font-size: 16px; }

.danger-link { color: var(--red) !important; }
.danger-link:hover { background: var(--red-bg) !important; border-color: var(--red) !important; }

.ic-btn {
    width: 32px; height: 32px; border-radius: 10px;
    background: var(--bg-surface); color: var(--text-dim);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.ic-btn:hover { background: var(--bg-hover); color: var(--text); }
.ic-btn-overlay {
    position: absolute; bottom: 4px; right: 4px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-card); font-size: 12px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
    transition: border-color .15s;
}
.card-title {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.card-title i { color: var(--accent); font-size: 18px; }
.card-h {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 12px;
}
.card-h h3 {
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    letter-spacing: -.01em;
}
.card-h a { font-size: 12px; color: var(--accent); font-weight: 700; }

.section-h {
    display: flex; align-items: center; justify-content: space-between;
    margin: 28px 0 14px;
}
.section-h h2 {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    letter-spacing: -.015em;
}
.section-h .more { font-size: 13px; color: var(--accent); font-weight: 700; }

/* Status pills */
.status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 800;
    letter-spacing: .03em;
}
.status-pill i { font-size: 13px; }
.status-pill.confirmed,
.status-pill.created,
.status-pill.booked,
.status-pill.in_progress { background: var(--blue-bg); color: var(--accent); }
.status-pill.in_transit,
.status-pill.in_work     { background: var(--yellow-bg); color: var(--yellow); }
.status-pill.floating,
.status-pill.pending,
.status-pill.pending_moderation { background: var(--purple-bg); color: var(--purple); }
.status-pill.done,
.status-pill.completed,
.status-pill.delivered,
.status-pill.finished    { background: var(--green-bg); color: var(--green); }
.status-pill.cancelled,
.status-pill.rejected    { background: var(--red-bg); color: var(--red); }
.status-pill.big { padding: 8px 18px; font-size: 12px; }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
    border-radius: 8px; font-size: 11px; font-weight: 800;
}
.badge.green  { background: var(--green-bg);  color: var(--green); }
.badge.yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge.red    { background: var(--red-bg);    color: var(--red); }
.badge.blue   { background: var(--blue-bg);   color: var(--accent); }
.badge.purple { background: var(--purple-bg); color: var(--purple); }

/* Filter chips */
.filter-chips {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
    padding: 8px 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 700; color: var(--text-dim);
    transition: all .12s;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.chip:hover { color: var(--text); }
.chip.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; border-color: transparent;
}
.chip .num {
    padding: 1px 7px; background: var(--bg-surface);
    border-radius: var(--radius-pill); font-size: 10px; font-weight: 800;
    color: var(--text-muted);
}
.chip.active .num { background: rgba(255, 255, 255, .2); color: #fff; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 0;
}
.label {
    display: block; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 7px;
}
.input, select, textarea {
    width: 100%; padding: 12px 14px;
    background: var(--bg-surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
    color: var(--text);
    transition: border-color .12s, background .12s;
}
.input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent); background: var(--bg-elev);
}
.input::placeholder, textarea::placeholder { color: var(--text-muted); font-weight: 500; }
textarea { resize: vertical; font-family: inherit; min-height: 80px; }

.input-icon { position: relative; }
.input-icon > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 16px; pointer-events: none;
}
.input-icon .input { padding-left: 40px; }

.counter {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 4px;
}
.counter button {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--bg-card); color: var(--text-dim); font-size: 18px; font-weight: 700;
}
.counter button:hover { background: var(--accent); color: #fff; }
.counter span { font-size: 13px; font-weight: 600; color: var(--text-dim); padding: 0 8px; }
.counter span b { color: var(--text); font-weight: 800; margin-right: 4px; }

.check {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.check input[type=checkbox] {
    width: 18px; height: 18px;
    accent-color: var(--accent);
}

.toggle {
    width: 40px; height: 22px; border-radius: var(--radius-pill);
    background: var(--bg-hover); position: relative;
    cursor: pointer; transition: background .15s;
    flex-shrink: 0;
}
.toggle::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow-sm);
    transition: left .15s;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 21px; }

/* Tabs */
.tabs {
    display: flex; gap: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 4px;
    margin-bottom: 18px; width: fit-content;
}
.tabs button {
    padding: 8px 18px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 700; color: var(--text-dim);
    transition: all .12s;
}
.tabs button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.hero {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 24px; padding: 32px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 255, 255, .6) 100%);
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 24px; position: relative; overflow: hidden;
}
.hero-greeting { position: relative; z-index: 1; }
.hero-eyebrow {
    font-size: 12px; font-weight: 700; color: var(--accent);
    letter-spacing: .03em;
}
.hero-greeting h1 {
    font-family: var(--font-display); font-size: 32px; font-weight: 700;
    line-height: 1.1; letter-spacing: -.02em;
    margin: 8px 0 6px;
}
.hero-greeting h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 18px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero ETA card (right side) */
.hero-eta {
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-radius: var(--radius); padding: 22px;
    overflow: hidden;
}
.hero-eta-glow {
    position: absolute; top: -50%; right: -30%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, transparent 70%);
    pointer-events: none;
}
.eta-row {
    display: flex; justify-content: space-between; align-items: center;
    position: relative; z-index: 1;
}
.eta-label {
    font-size: 11px; font-weight: 700; opacity: .85;
    text-transform: uppercase; letter-spacing: .08em;
}
.hero-eta .status-pill {
    background: rgba(255, 255, 255, .2);
    color: #fff; backdrop-filter: blur(10px);
}
.eta-time {
    font-family: var(--font-display); font-size: 32px; font-weight: 700;
    margin-top: 8px; line-height: 1.1; letter-spacing: -.02em;
    position: relative; z-index: 1;
}
.eta-meta { font-size: 12px; opacity: .85; margin-top: 4px; position: relative; z-index: 1; }
.eta-progress { margin-top: 18px; position: relative; z-index: 1; }
.eta-bar {
    height: 6px; border-radius: 3px;
    background: rgba(255, 255, 255, .2);
    overflow: hidden;
}
.eta-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .6));
    border-radius: 3px;
    transition: width .3s;
}
.eta-stops {
    display: flex; justify-content: space-between;
    margin-top: 12px; gap: 4px;
}
.eta-stops .stop {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 700; opacity: .65;
    text-align: center; flex: 1;
}
.eta-stops .stop i { font-size: 12px; }
.eta-stops .stop.done { opacity: 1; }
.eta-stops .stop.end i { font-size: 14px; color: #fbbf24; }
.eta-stops .stop.end { opacity: 1; }

/* Quick services grid */
.quick-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-bottom: 8px;
}
.quick-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: all .15s;
}
.quick-card:hover {
    border-color: var(--accent); transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.qc-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.qc-icon.ticket   { background: var(--accent-soft); color: var(--accent); }
.qc-icon.parcel   { background: var(--yellow-bg);   color: var(--yellow); }
.qc-icon.transfer { background: var(--green-bg);    color: var(--green); }
.qc-icon.flight   { background: var(--purple-bg);   color: var(--purple); }
.qc-icon.route    { background: var(--blue-bg);     color: var(--accent); }
.qc-meta { flex: 1; line-height: 1.2; }
.qc-meta h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.qc-meta p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.qc-arrow { color: var(--text-muted); font-size: 18px; }

/* Two-col layout: orders (main) + side (info cards) */
.two-col {
    display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
}
.side-col { display: flex; flex-direction: column; gap: 16px; }

/* Stat card */
.stat-card { padding: 22px; }
.stat-label { font-size: 11px; font-weight: 800; letter-spacing: .08em;
    color: var(--text-muted); text-transform: uppercase; }
.stat-value {
    font-family: var(--font-display); font-size: 36px; font-weight: 700;
    margin: 8px 0 4px; letter-spacing: -.02em;
}
.stat-value span { font-size: 14px; color: var(--text-muted); font-weight: 600; }

/* Saved address mini cards (in dashboard side) */
.addr {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
}
.addr:last-child { border-bottom: none; }
.addr > i {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.addr > div { flex: 1; line-height: 1.4; }
.addr b { font-weight: 700; display: block; }
.addr span { color: var(--text-muted); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   ORDERS LIST + ORDER CARDS
   ═══════════════════════════════════════════════════════════ */

.orders-list { display: flex; flex-direction: column; gap: 8px; }

.order-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: all .15s;
    color: inherit; cursor: pointer; margin-bottom: 8px;
    min-width: 0;
}
.order-card:hover {
    border-color: var(--accent); transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}
.oc-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.oc-icon.ticket   { background: var(--accent-soft); color: var(--accent); }
.oc-icon.parcel   { background: var(--yellow-bg);   color: var(--yellow); }
.oc-icon.flight   { background: var(--purple-bg);   color: var(--purple); }
.oc-icon.transfer { background: var(--green-bg);    color: var(--green); }
.oc-body { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.oc-row {
    display: flex; align-items: center; gap: 10px; justify-content: space-between;
    margin-bottom: 6px;
    min-width: 0;
}
.oc-row b {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oc-row .status-pill {
    flex-shrink: 0;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oc-meta {
    display: flex; gap: 12px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted); font-weight: 500;
    min-width: 0;
}
.oc-meta span {
    display: inline-flex; align-items: center; gap: 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.oc-meta i { font-size: 13px; flex-shrink: 0; }
.oc-side {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
    max-width: 120px;
}
.oc-amt {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oc-paid {
    font-size: 11px; color: var(--green); font-weight: 700;
    display: inline-flex; align-items: center; gap: 3px;
    white-space: nowrap;
}
.oc-paid.muted { color: var(--text-muted); }

/* Mobile order-card: tighter spacing, smaller text, allow status to wrap below route */
@media (max-width: 600px) {
    .order-card { padding: 12px 14px; gap: 10px; }
    .oc-icon { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
    .oc-row { flex-wrap: wrap; gap: 6px; }
    .oc-row b { font-size: 13px; }
    .oc-row .status-pill { font-size: 10px; padding: 2px 6px; max-width: 100%; }
    .oc-meta { gap: 8px; font-size: 11px; }
    .oc-side { min-width: 60px; max-width: 95px; }
    .oc-amt { font-size: 15px; }
    .oc-paid { font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   ORDER DETAIL — live card, route, kv-grid, timeline, driver
   ═══════════════════════════════════════════════════════════ */

.detail-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
    min-width: 0;
}
.detail-grid > * { min-width: 0; }

/* Live card with map + stats */
.live-card { padding: 0; overflow: hidden; }
.live-h {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid var(--border-soft);
}
.live-h b { font-family: var(--font-display); font-size: 14px; font-weight: 700; display: block; }
.live-h span { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.live-pulse {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--green); position: relative; flex-shrink: 0;
}
.live-pulse::after {
    content: ''; position: absolute; inset: -6px;
    border-radius: 50%; border: 2px solid var(--green);
    opacity: .5; animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.live-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-soft);
}
.live-stats .ls {
    padding: 16px; text-align: center;
    border-right: 1px solid var(--border-soft);
}
.live-stats .ls:last-child { border-right: none; }
.live-stats .ls span {
    display: block; font-size: 10px; font-weight: 800;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em;
}
.live-stats .ls b {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    margin-top: 4px; display: block;
}

/* Route visualization */
.route-vis {
    display: grid; grid-template-columns: 24px 1fr;
    gap: 16px; margin-bottom: 22px;
}
.rv-pin {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 4px;
}
.rv-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 3px solid var(--bg-card);
}
.rv-dot.start { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.rv-dot.end   { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.rv-line {
    flex: 1; width: 2px; min-height: 40px;
    background: linear-gradient(to bottom, var(--green), var(--accent));
    margin: 4px 0;
}
.rv-cols { display: flex; flex-direction: column; gap: 28px; }
.rv-cols > div { line-height: 1.4; }
.rv-time {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--accent);
}
.rv-cols b {
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    display: block; margin-top: 2px;
}
.rv-cols span { font-size: 12px; color: var(--text-muted); }

/* Key-value grid */
.kv-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    padding-top: 18px; border-top: 1px solid var(--border-soft);
}
.kv {
    display: flex; flex-direction: column; gap: 4px;
    padding: 6px 0;
}
.kv > span {
    font-size: 10px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted);
}
.kv > b { font-size: 13px; font-weight: 700; }
.kv-total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-soft); }
.kv-total b { font-family: var(--font-display); font-size: 16px; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
    width: 2px; background: var(--border);
}
.tl-item { position: relative; padding: 10px 0 14px; }
.tl-item::before {
    content: ''; position: absolute; left: -24px; top: 14px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--border);
}
.tl-item.done::before { background: var(--green); border-color: var(--green); }
.tl-item.active::before {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-label {
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.tl-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Driver card */
.driver-card {
    display: flex; align-items: center; gap: 14px;
    padding: 4px 0;
}
.driver-photo {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-soft), var(--purple-bg));
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
}
.driver-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.driver-card > div:not(.driver-photo) { flex: 1; line-height: 1.4; }
.driver-card b { font-family: var(--font-display); font-size: 14px; font-weight: 700; display: block; }
.driver-card span { font-size: 12px; color: var(--text-muted); }
.driver-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: 14px;
}

/* Price summary */
.price-summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--green) 0%, #10b981 100%);
    color: #fff; border-radius: var(--radius);
    margin-bottom: 16px;
}
.ps-label {
    font-size: 11px; font-weight: 700; opacity: .85;
    text-transform: uppercase; letter-spacing: .08em;
}
.ps-val {
    font-family: var(--font-display); font-size: 26px; font-weight: 700;
    margin-top: 4px;
}
.ps-ic { font-size: 32px; opacity: .8; }

/* ═══════════════════════════════════════════════════════════
   NEW ORDER WIZARD
   ═══════════════════════════════════════════════════════════ */

.step-indicator {
    display: flex; gap: 6px; margin-bottom: 22px;
}
.step-dot {
    height: 6px; border-radius: 3px; flex: 1;
    background: var(--border); transition: all .2s;
}
.step-dot.active {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.step-dot.done { background: var(--green); }

.service-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin-bottom: 24px;
}
.service-card {
    position: relative;
    padding: 22px; background: var(--bg-card);
    border: 1.5px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: all .15s;
    color: inherit; display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card.selected {
    border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-card) 30%);
    box-shadow: var(--shadow-glow);
}
.service-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 14px;
}
.service-card.ticket   .service-icon { background: var(--accent-soft); color: var(--accent); }
.service-card.parcel   .service-icon { background: var(--yellow-bg);   color: var(--yellow); }
.service-card.transfer .service-icon { background: var(--green-bg);    color: var(--green); }
.service-card.flight   .service-icon { background: var(--purple-bg);   color: var(--purple); }
.service-card h3 {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    letter-spacing: -.01em;
}
.service-card > p { font-size: 12px; color: var(--text-dim); font-weight: 500; margin-top: 4px; margin-bottom: 14px; }
.service-card ul { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.service-card li {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-dim); font-weight: 600;
}
.service-card li i { color: var(--green); font-size: 14px; }
.service-from {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    font-size: 12px; color: var(--text-muted); font-weight: 600;
}
.service-from b {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--text); margin-left: 4px;
}

.form-card { padding: 24px; }
.form-extras {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin: 18px 0; padding: 14px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.step-actions {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 18px;
}

/* OTP input row */
.otp-row {
    display: flex; gap: 10px; justify-content: center;
    margin: 18px 0;
}
.otp-row input {
    width: 54px; height: 64px;
    text-align: center; padding: 0;
    font-family: var(--font-display); font-size: 26px; font-weight: 700;
}

/* Review style summary block */
.summary-card .summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.summary-card .summary-row:last-child { border-bottom: none; }
.summary-card .sr-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.summary-card .sr-val { font-size: 13px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   ADDRESSES PAGE
   ═══════════════════════════════════════════════════════════ */

.addr-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.addr-card {
    position: relative; padding: 20px;
}
.addr-h {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.addr-h b {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
}
.addr-h .ic-btn { margin-left: auto; }
.addr-ic {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.addr-ic.home   { background: var(--accent-soft); color: var(--accent); }
.addr-ic.work   { background: var(--yellow-bg);   color: var(--yellow); }
.addr-ic.abroad { background: var(--purple-bg);   color: var(--purple); }
.addr-ic.recipient { background: var(--green-bg); color: var(--green); }
.addr-card > p {
    font-size: 13px; color: var(--text-dim); line-height: 1.5;
    margin-bottom: 14px; font-weight: 500;
}
.addr-foot {
    padding-top: 12px; border-top: 1px solid var(--border-soft);
    font-size: 12px; color: var(--text-muted); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.addr-card.empty {
    border-style: dashed; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; min-height: 180px;
}
.addr-card.empty:hover { border-color: var(--accent); background: var(--accent-soft); }
.empty-ic {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--bg-surface); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 12px;
}
.addr-card.empty:hover .empty-ic { background: var(--accent); color: #fff; }
.addr-card.empty b {
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    margin-bottom: 4px;
}
.addr-card.empty p { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════════════════════ */

.profile-grid {
    display: grid; grid-template-columns: 320px 1fr;
    gap: 18px;
}
.profile-card {
    padding: 28px; text-align: center;
    height: fit-content;
}
.profile-avatar { display: inline-block; position: relative; margin-bottom: 14px; }
.profile-card h2 {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    margin-bottom: 4px;
}
.profile-card .text-dim { font-size: 12px; }
.profile-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-top: 22px; padding-top: 22px;
    border-top: 1px solid var(--border-soft);
}
.profile-stats > div { display: flex; flex-direction: column; gap: 2px; }
.profile-stats b {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
}
.profile-stats span {
    font-size: 10px; color: var(--text-muted); font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
}

.pref-row {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.pref-row:last-child { border-bottom: none; }
.pref-row > div:first-child { flex: 1; line-height: 1.3; }
.pref-row b {
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    display: block; margin-bottom: 2px;
}
.pref-row span { font-size: 12px; color: var(--text-muted); }

.danger-card { border-color: rgba(239, 68, 68, .25); }
.danger-row {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--border-soft);
}
.danger-row:last-child { border-bottom: none; }
.danger-row > div:first-child { flex: 1; line-height: 1.3; }
.danger-row b { font-size: 13px; font-weight: 700; display: block; margin-bottom: 2px; }
.danger-row span { font-size: 12px; color: var(--text-muted); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-dim { color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════
   SUPPORT
   ═══════════════════════════════════════════════════════════ */

.support-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.support-card {
    padding: 22px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: all .15s;
    display: flex; flex-direction: column; gap: 10px;
}
.support-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.support-card.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; border-color: transparent;
}
.sc-ic {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.support-card.primary .sc-ic { background: rgba(255, 255, 255, .15); color: #fff; }
.support-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.support-card p { font-size: 12px; opacity: .85; }

/* ═══════════════════════════════════════════════════════════
   PUBLIC PAGES (login, track, order wizard) — no sidebar
   ═══════════════════════════════════════════════════════════ */

.public-shell {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    padding: 20px; padding-bottom: 40px;
    animation: fadeIn .22s ease;
}
.public-topbar {
    width: 100%; max-width: 540px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 32px;
}
.public-topbar .brand { padding: 0; flex: 1; }
.public-card {
    width: 100%; max-width: 540px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow-md);
}
.public-card .card-title {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 6px;
}
.public-card .subtitle {
    font-size: 13px; color: var(--text-dim);
    margin-bottom: 22px; font-weight: 500;
}
.public-foot {
    width: 100%; max-width: 540px;
    margin-top: 18px; text-align: center;
    font-size: 12px; color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   TOAST + MODAL
   ═══════════════════════════════════════════════════════════ */

.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--text); color: #fff;
    padding: 12px 24px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 700; z-index: 9999;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1),
    opacity .25s ease,
    visibility 0s linear .25s;
    box-shadow: var(--shadow-lg);
    max-width: 90vw; text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1),
    opacity .25s ease,
    visibility 0s linear 0s;
}
.toast.error   { background: var(--red); }
.toast.success { background: var(--green); }
.has-bottomnav .toast { bottom: calc(var(--bottomnav-h) + 24px); }

.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 20, 40, .55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .2s; padding: 16px;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--bg-card); border-radius: var(--radius);
    width: 100%; max-width: 560px;
    padding: 24px; max-height: 85vh; overflow-y: auto;
    transform: scale(.95) translateY(0);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal-content { transform: scale(1); }
@media (max-width: 600px) {
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-content {
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(100%); max-width: 100%;
    }
    .modal-overlay.show .modal-content { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center; padding: 48px 16px; color: var(--text-muted);
}
.empty-state i { font-size: 48px; }
.empty-state p { margin-top: 12px; font-size: 13px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet — sidebar collapses to icons */
@media (max-width: 1100px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col, .detail-grid, .profile-grid { grid-template-columns: 1fr; }
    .service-grid, .addr-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
    .live-stats { grid-template-columns: repeat(2, 1fr); }
    .live-stats .ls:nth-child(2) { border-right: none; }
    .kv-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (≤768px) — hide sidebar, show bottom-nav */
@media (max-width: 768px) {
    .cabinet-shell {
        grid-template-columns: 1fr;
        padding-bottom: var(--bottomnav-h);
    }
    .sidebar { display: none; }
    .bottomnav { display: flex; }

    .topbar { padding: 12px 16px; gap: 8px; }
    .search { display: none; }
    .topbar-user-meta { display: none; }
    .topbar-user { padding: 4px; }

    .content { padding: 18px 16px 24px; }

    /* Compact topbar — show brand-mark on mobile */
    .topbar::before {
        content: 'P';
        width: 36px; height: 36px; border-radius: 11px;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        color: #fff; display: flex; align-items: center; justify-content: center;
        font-family: var(--font-display); font-weight: 800; font-size: 16px;
        flex-shrink: 0;
    }

    .hero { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
    .hero-greeting h1 { font-size: 24px; }
    .eta-time { font-size: 26px; }

    .quick-grid { grid-template-columns: 1fr; }
    .service-grid, .addr-grid, .support-grid { grid-template-columns: 1fr; }
    .form-row, .form-extras { grid-template-columns: 1fr; }
    .live-stats { grid-template-columns: 1fr 1fr; }
    .live-stats .ls { border-right: none; }
    .live-stats .ls:nth-child(odd) { border-right: 1px solid var(--border-soft); }
    .kv-grid { grid-template-columns: 1fr; }

    .page-h h1 { font-size: 22px; }
    .page-h-actions { display: none; }

    .stat-value { font-size: 28px; }
    .profile-card { padding: 22px; }

    /* Force shadowing on light-themed area for header */
    .topbar { box-shadow: 0 1px 0 var(--border-soft); }
}

/* Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.uppercase { text-transform: uppercase; letter-spacing: .08em; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.hidden { display: none !important; }
/* ════════════════════════════════════════════════════════════════════════
 * LOCATION PICKER (Phase 10)
 * Country dropdown + city + address with Google Places autocomplete + history
 * ════════════════════════════════════════════════════════════════════════ */

.lp { position: relative; }

.lp-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: stretch;
}

/* ── Country trigger ──────────────────────────────────────────────────── */
.lp-country { position: relative; }

.lp-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    min-height: 42px;
    padding: 0 10px;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #e2e6f0);
    border-radius: 10px;
    color: var(--ink, #1a1f2e);
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
}
.lp-trigger:hover:not(:disabled) {
    border-color: var(--accent, #6366f1);
}
.lp-trigger:disabled {
    cursor: not-allowed;
    opacity: .85;
}
.lp-trigger .lp-flag { font-size: 18px; line-height: 1; }
.lp-trigger .lp-code {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}
.lp-trigger i { font-size: 16px; color: var(--ink-3, #8a92a6); }

.lp-country.is-locked .lp-trigger {
    background: var(--bg-soft, #f7f8fc);
    border-style: dashed;
}

/* ── Dropdown ─────────────────────────────────────────────────────────── */
.lp-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    min-width: 240px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #e2e6f0);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    padding: 8px;
}

.lp-search {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: var(--bg-soft, #f7f8fc);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.lp-search:focus {
    border-color: var(--accent, #6366f1);
    background: var(--bg-surface, #fff);
}

.lp-section-title {
    padding: 6px 8px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-4, #99a1b2);
}

.lp-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    color: var(--ink, #1a1f2e);
    font-size: 14px;
    transition: background .12s;
}
.lp-option:hover { background: var(--bg-soft, #f0f3fa); }
.lp-option .lp-flag { font-size: 18px; line-height: 1; }
.lp-option .lp-name { flex: 1; }

/* ── City field ───────────────────────────────────────────────────────── */
.lp-city .input { height: 100%; }

/* ── Address field with autocomplete suggestions ──────────────────────── */
.lp-address {
    margin-top: 8px;
    position: relative;
}

.lp-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #e2e6f0);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.lp-sug {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-color, #f0f2f8);
    text-align: left;
    cursor: pointer;
    transition: background .12s;
}
.lp-sug:last-child { border-bottom: 0; }
.lp-sug:hover { background: var(--bg-soft, #f7f8fc); }

.lp-sug i {
    font-size: 16px;
    color: var(--ink-4, #99a1b2);
    flex-shrink: 0;
}
.lp-sug-text {
    flex: 1;
    overflow: hidden;
}
.lp-sug-addr {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #1a1f2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp-sug-meta {
    font-size: 11px;
    color: var(--ink-4, #99a1b2);
    margin-top: 2px;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .lp-trigger .lp-code { display: none; }
    .lp-trigger { min-width: 56px; padding: 0 8px; }
    .lp-dropdown { min-width: 280px; }
}

/* ── Google's pac-container should appear above modals ────────────────── */
.pac-container {
    z-index: 9999 !important;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e6f0);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    font-family: inherit;
    margin-top: 4px;
}
.pac-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}
.pac-item:hover { background: var(--bg-soft, #f7f8fc); }
.pac-item-query { font-weight: 600; color: var(--ink, #1a1f2e); }


/* ════════════════════════════════════════════════════════════════════════
 * ROUTE CALENDAR (Phase 13) — Chip-based date picker
 *   Simple list of available dates as chips, no grid
 * ════════════════════════════════════════════════════════════════════════ */

.rcal { margin-bottom: 16px; }

.rcal-loading {
    display: flex; align-items: center; justify-content: center;
    min-height: 120px;
}

/* ── Header ────────────────────────────────────────────────────────── */

.rcal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.rcal-month {
    font-family: var(--font-display, 'Bricolage Grotesque', system-ui);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink, #1a1f2e);
    letter-spacing: -0.01em;
}
.rcal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid var(--border-color, #e2e6f0);
    border-radius: 50%;
    color: var(--ink-2, #45495a);
    cursor: pointer;
    transition: background .12s, border-color .12s;
    font-size: 18px;
}
.rcal-nav:hover:not(:disabled) {
    background: var(--bg-soft, #f3f5fb);
    border-color: var(--ink-4, #c5c9d4);
}
.rcal-nav:disabled { opacity: .35; cursor: not-allowed; }

/* ── Hint line "Avem rute în aceste zile:" ───────────────────────── */

.rcal-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-3, #8a92a6);
    margin-bottom: 12px;
}
.rcal-hint i { color: var(--green, #10b981); font-size: 16px; }

/* ── Date chips row ───────────────────────────────────────────────── */

.rcal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rcal-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 76px;
    padding: 10px 14px;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #e2e6f0);
    border-radius: 12px;
    color: var(--ink, #1a1f2e);
    cursor: pointer;
    transition: border-color .12s, background .12s, transform .12s;
    user-select: none;
}
.rcal-chip:hover {
    border-color: var(--ink-4, #c5c9d4);
    background: var(--bg-soft, #f7f8fc);
}
.rcal-chip:active { transform: scale(.97); }

.rcal-chip-dow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-4, #99a1b2);
}
.rcal-chip-day {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}
.rcal-chip-meta {
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-3, #8a92a6);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

.rcal-chip.is-selected {
    background: var(--ink, #1a1f2e);
    border-color: var(--ink, #1a1f2e);
    color: #fff;
}
.rcal-chip.is-selected .rcal-chip-dow,
.rcal-chip.is-selected .rcal-chip-meta {
    color: rgba(255, 255, 255, .75);
}

/* ── Empty month ─────────────────────────────────────────────────── */

.rcal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-soft, #f7f8fc);
    border-radius: 12px;
    color: var(--ink-3, #8a92a6);
}
.rcal-empty i {
    font-size: 36px;
    color: var(--ink-4, #c5c9d4);
    margin-bottom: 8px;
}
.rcal-empty p {
    margin: 0 0 12px;
    font-size: 13px;
}
.rcal-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent, #6366f1);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .12s, transform .12s;
}
.rcal-empty-btn:hover { filter: brightness(1.05); }
.rcal-empty-btn:active { transform: scale(.97); }

/* ══════════════════════════════════════════════════════════════════
 * Routes list (когда дата выбрана)
 * ══════════════════════════════════════════════════════════════════ */

.rcal-routes {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color, #eef0f5);
}
.rcal-routes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.rcal-routes-date {
    font-family: var(--font-display, 'Bricolage Grotesque', system-ui);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink, #1a1f2e);
}
.rcal-routes-count {
    font-size: 12px;
    color: var(--ink-4, #99a1b2);
    font-weight: 500;
}

.rcal-route {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #eef0f5);
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .12s;
    margin-bottom: 8px;
}
.rcal-route:hover {
    border-color: var(--ink-4, #c5c9d4);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.rcal-route:active { transform: scale(.99); }
.rcal-route.is-selected {
    border-color: var(--ink, #1a1f2e);
    border-width: 2px;
    padding: 13px 15px;
}

.rcal-route-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 50px;
}
.rcal-route-time i {
    font-size: 18px;
    color: var(--accent, #6366f1);
}
.rcal-route-time span {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink, #1a1f2e);
    font-variant-numeric: tabular-nums;
}

.rcal-route-main { min-width: 0; }
.rcal-route-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink, #1a1f2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.rcal-route-meta {
    font-size: 12px;
    color: var(--ink-3, #8a92a6);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcal-route-side { text-align: right; flex-shrink: 0; }
.rcal-route-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink, #1a1f2e);
    font-variant-numeric: tabular-nums;
}
.rcal-route-seats {
    font-size: 11px;
    color: var(--ink-4, #99a1b2);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════
 * Floating checkbox
 * ══════════════════════════════════════════════════════════════════ */

.rcal-floating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--bg-soft, #f7f8fc);
    border-radius: 10px;
    font-size: 12px;
    color: var(--ink-3, #8a92a6);
    cursor: pointer;
    user-select: none;
}
.rcal-floating input[type="checkbox"] {
    cursor: pointer;
    width: 16px; height: 16px;
    accent-color: var(--accent, #6366f1);
}
.rcal-floating:has(input:checked) {
    background: var(--bg-tint, #eef3ff);
    color: var(--accent, #6366f1);
}
.rcal-body.is-floating { opacity: .35; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
 * Mobile
 * ══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .rcal-chip { min-width: 70px; padding: 9px 12px; }
    .rcal-chip-day { font-size: 14px; }
    .rcal-route { padding: 12px; gap: 10px; }
    .rcal-route-time { min-width: 44px; }
    .rcal-route-time i { font-size: 16px; }
    .rcal-route-time span { font-size: 13px; }
    .rcal-route-price { font-size: 14px; }
}

/* Small fade animation for chips */
@keyframes rcal-fade-in {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}
.rcal-chip { animation: rcal-fade-in .18s ease-out; }

/* ════════════════════════════════════════════════════════════════════════
 * ROUTE DETAILS CARD (Phase 19) — show route info on order detail page
 * ════════════════════════════════════════════════════════════════════════ */
.route-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}
.route-details .route-name {
    font-size: 15px;
    color: var(--ink, #1a1f2e);
    margin-bottom: 4px;
}
.route-details .route-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-3, #8a92a6);
}
.route-details .route-meta i {
    font-size: 14px;
    color: var(--ink-4, #99a1b2);
    flex-shrink: 0;
}
.route-pending-note {
    margin-top: 4px;
    font-size: 12px;
    color: var(--accent, #6366f1);
    font-style: italic;
}
.card-pending {
    background: var(--bg-tint, #eef3ff);
    border-color: var(--accent, #6366f1);
}
.card-floating {
    background: var(--bg-soft, #f7f8fc);
    padding: 12px 14px;
}

/* ════════════════════════════════════════════════════════════════════════
 * LOCATION PICKER PILLS (Phase 21) — always-visible chips with past addresses
 * ════════════════════════════════════════════════════════════════════════ */
.lp-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.lp-pills-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ink-4, #99a1b2);
    font-weight: 600;
    margin-right: 4px;
}
.lp-pills-hint i { font-size: 13px; }
.lp-pill {
    display: inline-block;
    padding: 5px 10px;
    background: var(--bg-soft, #f3f5fb);
    border: 1px solid var(--border-color, #e2e6f0);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink-2, #45495a);
    cursor: pointer;
    transition: border-color .12s, background .12s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.lp-pill:hover {
    border-color: var(--accent, #6366f1);
    background: var(--bg-tint, #eef3ff);
    color: var(--ink, #1a1f2e);
}
.lp-pill.lp-pill-more {
    background: transparent;
    border-style: dashed;
    color: var(--ink-4, #99a1b2);
    cursor: default;
}

/* ════════════════════════════════════════════════════════════════════════
 * SENDER BANNER (Phase 21) — read-only "you send" info on parcel form
 * ════════════════════════════════════════════════════════════════════════ */
.sender-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-tint, #eef3ff);
    border: 1px solid var(--accent-soft, #c7d2fe);
    border-radius: 10px;
    margin-bottom: 12px;
}
.sender-banner-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent, #6366f1);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
}
.sender-banner-body { flex: 1; min-width: 0; }
.sender-banner-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent, #6366f1);
    margin-bottom: 4px;
}
.sender-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--ink-2, #45495a);
}
.sender-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sender-banner-meta i {
    font-size: 13px;
    color: var(--ink-4, #99a1b2);
}

@media (max-width: 600px) {
    .sender-banner { padding: 10px 12px; gap: 10px; }
    .sender-banner-icon { width: 32px; height: 32px; font-size: 14px; }
    .sender-banner-meta { gap: 8px; font-size: 11px; }
    .lp-pill { font-size: 11px; padding: 4px 8px; }
}

/* ════════════════════════════════════════════════════════════════════════
 * PASSENGER-IS-ME TOGGLE (Phase 26) — flight_ticket form prefill toggle
 * ════════════════════════════════════════════════════════════════════════ */
.passenger-self-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-soft, #f7f8fc);
    border: 1px solid var(--border, #e2e6f0);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--ink-2, #45495a);
    cursor: pointer;
    user-select: none;
    transition: background .12s, border-color .12s;
}
.passenger-self-toggle:has(input:checked) {
    background: var(--bg-tint, #eef3ff);
    border-color: var(--accent-soft, #c7d2fe);
    color: var(--accent, #6366f1);
    font-weight: 600;
}
.passenger-self-toggle input[type="checkbox"] {
    cursor: pointer;
    width: 16px; height: 16px;
    accent-color: var(--accent, #6366f1);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
 * DOCUMENTS CARD (Phase 27) — passport upload, payment proof, downloads
 * ════════════════════════════════════════════════════════════════════════ */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.doc-section {
    border: 1px solid var(--border, #eef0f5);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color .12s, opacity .15s;
    background: var(--bg-card, #fff);
    min-width: 0;
    overflow: hidden;
}
.doc-section.is-uploading { opacity: .55; pointer-events: none; }
.doc-section.is-uploading::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, #6366f1), transparent);
    margin-top: 8px;
    animation: doc-loader 1s linear infinite;
}
@keyframes doc-loader {
    from { background-position: -200px 0; }
    to   { background-position: 200px 0; }
}

.doc-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 0;
    flex-wrap: wrap;
}
.doc-section-icon {
    width: 36px; height: 36px;
    background: var(--bg-soft, #f3f5fb);
    color: var(--ink-2, #45495a);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.doc-section-title { flex: 1; min-width: 0; }
.doc-section-title b {
    display: block;
    font-size: 13px;
    color: var(--ink, #1a1f2e);
    line-height: 1.2;
    margin-bottom: 2px;
}
.doc-section-hint {
    display: block;
    font-size: 11px;
    color: var(--ink-3, #8a92a6);
}

.doc-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}
.doc-status i { font-size: 13px; }
.doc-status-uploaded {
    background: var(--green-bg, #ecfdf5);
    color: var(--green, #10b981);
}
.doc-status-awaiting {
    background: var(--bg-soft, #f3f5fb);
    color: var(--ink-3, #8a92a6);
}

.doc-files {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.doc-file {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-soft, #f7f8fc);
    border-radius: 8px;
    transition: background .12s;
    min-width: 0;
    overflow: hidden;
}
.doc-file:hover { background: var(--bg-tint, #eef3ff); }
.doc-file-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink, #1a1f2e);
    font-size: 12px;
    text-decoration: none;
    min-width: 0;
}
.doc-file-link i {
    font-size: 16px;
    color: var(--accent, #6366f1);
    flex-shrink: 0;
}
.doc-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.doc-file-size {
    font-size: 10px;
    color: var(--ink-4, #99a1b2);
    flex-shrink: 0;
}
.doc-file-own {
    background: var(--accent, #6366f1);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}
.doc-file-delete {
    background: transparent;
    border: 0;
    color: var(--ink-4, #99a1b2);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
}
.doc-file-delete:hover {
    color: var(--red, #ef4444);
    background: var(--red-bg, #fef2f2);
}

.doc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    color: var(--accent, #6366f1);
    border: 1px dashed var(--accent, #6366f1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s;
}
.doc-upload-btn:hover {
    background: var(--bg-tint, #eef3ff);
}
.doc-upload-btn i { font-size: 14px; }

/* ── Documents card mobile fixes (Phase 30) ─────────────────────────── */
@media (max-width: 600px) {
    .doc-section { padding: 10px 12px; }

    /* Status pill wraps under title on narrow screens */
    .doc-section-head { gap: 8px; }
    .doc-section-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
    .doc-section-title b { font-size: 12px; }
    .doc-section-hint { font-size: 10px; }
    .doc-status {
        font-size: 10px;
        padding: 3px 6px;
    }
    .doc-status i { font-size: 11px; }

    /* File rows: tighter, allow size/own labels to wrap */
    .doc-file { padding: 5px 8px; gap: 5px; }
    .doc-file-link { font-size: 11px; gap: 6px; flex-wrap: wrap; }
    .doc-file-link i { font-size: 14px; }
    .doc-file-name {
        flex: 1 1 100%;
        min-width: 0;
        word-break: break-all;
        overflow-wrap: anywhere;
        white-space: normal;
        line-height: 1.3;
    }
    .doc-file-size, .doc-file-own { font-size: 9px; }

    /* Upload button full-width on mobile for tap target */
    .doc-upload-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }
}

/* Extra-narrow (≤380px — typical narrow Android) */
@media (max-width: 380px) {
    .doc-section-head .doc-status {
        flex-basis: 100%;
        order: 3;
        align-self: flex-start;
        margin-top: 2px;
    }
}

/* ════════════════════════════════════════════════════════════════════════
 * SELF-OPTIONS (Phase 31) — flight_ticket pickup/dropoff toggles
 * ════════════════════════════════════════════════════════════════════════ */
.self-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.self-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-soft, #f7f8fc);
    border: 1px solid var(--border, #e2e6f0);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink-2, #45495a);
    cursor: pointer;
    user-select: none;
    transition: background .12s, border-color .12s;
}
.self-option:has(input:checked) {
    background: var(--bg-tint, #eef3ff);
    border-color: var(--accent, #6366f1);
    color: var(--accent, #6366f1);
    font-weight: 600;
}
.self-option input[type="checkbox"] {
    cursor: pointer;
    width: 14px; height: 14px;
    accent-color: var(--accent, #6366f1);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
 * FLIGHT DIRECTION BANNER (Phase 32) — shown after route selection
 * ════════════════════════════════════════════════════════════════════════ */
.flight-direction-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-tint, #eef3ff);
    border: 1px solid var(--accent-soft, #c7d2fe);
    border-radius: 10px;
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--accent, #6366f1);
    font-weight: 600;
}
.flight-direction-banner i {
    font-size: 18px;
    flex-shrink: 0;
}

/* ── Locked location picker (read-only country) ─────────────────────── */
.lp-locked .lp-trigger {
    cursor: not-allowed;
    opacity: .75;
    background: var(--bg-soft, #f3f5fb);
}
.lp-locked .lp-trigger::after {
    content: '🔒';
    font-size: 11px;
    margin-left: 4px;
    opacity: .6;
}
.lp-locked .lp-trigger:hover {
    background: var(--bg-soft, #f3f5fb);
    border-color: var(--border, #e2e6f0);
}