/* ==========================================================================
   Saeta Design System — shared by the passenger account, driver portal,
   admin console and auth screens. Every class is prefixed `sx-` so it never
   collides with the public website theme.
   Brand: Saeta yellow #FFEE02 on deep black, generous white space.
   ========================================================================== */

:root {
    --sx-brand: #ffee02;
    --sx-brand-600: #f2df00;
    --sx-brand-soft: #fffbcc;
    --sx-ink: #0b0b0c;
    --sx-ink-2: #1b1b1f;
    --sx-ink-3: #2a2a30;
    --sx-text: #16161a;
    --sx-muted: #6b6b76;
    --sx-subtle: #9a9aa5;
    --sx-line: #ececf0;
    --sx-line-2: #e2e2e8;
    --sx-bg: #f6f6f4;
    --sx-surface: #ffffff;
    --sx-surface-2: #fafaf9;
    --sx-green: #10b981;
    --sx-green-soft: #e7f8f1;
    --sx-red: #ef4444;
    --sx-red-soft: #fdecec;
    --sx-amber: #f59e0b;
    --sx-amber-soft: #fff5e1;
    --sx-blue: #3b82f6;
    --sx-blue-soft: #eaf1fe;
    --sx-violet: #8b5cf6;
    --sx-violet-soft: #f1ecfe;
    --sx-radius: 16px;
    --sx-radius-sm: 12px;
    --sx-radius-lg: 22px;
    --sx-shadow-sm: 0 1px 2px rgba(16, 16, 20, .05);
    --sx-shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 8px 24px rgba(16, 16, 20, .06);
    --sx-shadow-lg: 0 24px 60px rgba(16, 16, 20, .16);
    --sx-font: "Lexend", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sx-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------------ base */
.sx, .sx * { box-sizing: border-box; }
.sx { font-family: var(--sx-font); color: var(--sx-text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.sx h1, .sx h2, .sx h3, .sx h4, .sx h5, .sx h6 { font-family: var(--sx-font); color: var(--sx-ink); margin: 0; letter-spacing: -.02em; line-height: 1.2; text-transform: none; }
:where(.sx) p { margin: 0; color: inherit; }
:where(.sx) a { color: inherit; text-decoration: none; }
.sx p, .sx li, .sx label, .sx span, .sx div, .sx a, .sx td, .sx th, .sx dt, .sx dd, .sx small, .sx b, .sx strong, .sx input, .sx select, .sx textarea, .sx button, .sx summary { font-family: var(--sx-font); }
.sx p { line-height: 1.55; font-size: inherit; }
.sx button { font-family: inherit; }
.sx img { max-width: 100%; }
.sx-muted { color: var(--sx-muted) !important; }
.sx-subtle { color: var(--sx-subtle) !important; }
.sx-small { font-size: 13px; }
.sx-xs { font-size: 12px; }
.sx-strong { font-weight: 600; }
.sx-mono { font-variant-numeric: tabular-nums; }
.sx-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sx-h1 { font-size: 30px; font-weight: 700; }
.sx-h2 { font-size: 22px; font-weight: 700; }
.sx-h3 { font-size: 17px; font-weight: 600; }
.sx-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sx-muted); }
.sx-hidden { display: none !important; }
.sx-row { display: flex; align-items: center; gap: 12px; }
.sx-row-top { display: flex; align-items: flex-start; gap: 12px; }
.sx-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sx-col { display: flex; flex-direction: column; gap: 12px; }
.sx-grow { flex: 1 1 auto; min-width: 0; }
.sx-wrap { flex-wrap: wrap; }
.sx-gap-4 { gap: 4px; } .sx-gap-8 { gap: 8px; } .sx-gap-16 { gap: 16px; } .sx-gap-24 { gap: 24px; }
.sx-mt-4 { margin-top: 4px; } .sx-mt-8 { margin-top: 8px; } .sx-mt-12 { margin-top: 12px; } .sx-mt-16 { margin-top: 16px; } .sx-mt-24 { margin-top: 24px; } .sx-mt-32 { margin-top: 32px; }
.sx-mb-8 { margin-bottom: 8px; } .sx-mb-16 { margin-bottom: 16px; } .sx-mb-24 { margin-bottom: 24px; }
.sx-grid { display: grid; gap: 20px; }
.sx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx-grid-main { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1200px) { .sx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-grid-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sx-grid-2, .sx-grid-3, .sx-grid-4 { grid-template-columns: 1fr; } .sx-h1 { font-size: 24px; } }

/* ------------------------------------------------------------------ buttons */
.sx-btn {
    --b-bg: var(--sx-ink); --b-fg: #fff; --b-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--b-bd);
    background: var(--b-bg); color: var(--b-fg) !important; font-weight: 600; font-size: 15px; letter-spacing: -.01em;
    cursor: pointer; transition: transform .15s var(--sx-ease), background .15s, box-shadow .15s, opacity .15s; white-space: nowrap;
    text-decoration: none !important; line-height: 1; user-select: none;
}
.sx-btn:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.sx-btn:active { transform: scale(.98); }
.sx-btn:disabled, .sx-btn.is-disabled { opacity: .45; pointer-events: none; }
.sx-btn-accent { --b-bg: var(--sx-brand); --b-fg: var(--sx-ink); }
.sx-btn-accent:hover { filter: none; background: var(--sx-brand-600); }
.sx-btn-light { --b-bg: #f1f1ef; --b-fg: var(--sx-ink); }
.sx-btn-light:hover { filter: none; background: #e8e8e5; box-shadow: none; }
.sx-btn-ghost { --b-bg: transparent; --b-fg: var(--sx-ink); --b-bd: var(--sx-line-2); }
.sx-btn-ghost:hover { filter: none; background: var(--sx-surface-2); box-shadow: none; }
.sx-btn-danger { --b-bg: var(--sx-red); }
.sx-btn-success { --b-bg: var(--sx-green); }
.sx-btn-white { --b-bg: #fff; --b-fg: var(--sx-ink); }
.sx-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.sx-btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.sx-btn-block { width: 100%; }
.sx-btn-icon { width: 42px; padding: 0; }
.sx-btn-icon.sx-btn-sm { width: 36px; }
.sx-btn .sx-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sx-spin .7s linear infinite; }
.sx-btn.is-loading { pointer-events: none; opacity: .8; }
.sx-btn.is-loading > :not(.sx-spin) { opacity: .5; }
@keyframes sx-spin { to { transform: rotate(360deg); } }
.sx-link { color: var(--sx-ink) !important; font-weight: 600; text-decoration: underline !important; text-decoration-color: var(--sx-brand) !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; cursor: pointer; }

/* ------------------------------------------------------------------ cards */
.sx-card { background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); box-shadow: var(--sx-shadow-sm); }
.sx-card-pad { padding: 22px; }
.sx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--sx-line); }
.sx-card-head h3 { font-size: 16px; font-weight: 600; }
.sx-card-body { padding: 22px; }
.sx-card-foot { padding: 14px 22px; border-top: 1px solid var(--sx-line); background: var(--sx-surface-2); border-radius: 0 0 var(--sx-radius) var(--sx-radius); }
.sx-card-dark { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); }
.sx-card-dark h1, .sx-card-dark h2, .sx-card-dark h3, .sx-card-dark h4 { color: #fff; }
.sx-card-brand { background: var(--sx-brand); border-color: var(--sx-brand); color: var(--sx-ink); }
.sx-card-hover { transition: transform .2s var(--sx-ease), box-shadow .2s; }
.sx-card-hover:hover { transform: translateY(-2px); box-shadow: var(--sx-shadow); }

/* stat tiles */
.sx-stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.sx-stat-label { font-size: 13px; color: var(--sx-muted); display: flex; align-items: center; gap: 8px; }
.sx-stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--sx-ink); font-variant-numeric: tabular-nums; }
.sx-stat-foot { font-size: 12px; color: var(--sx-muted); }
.sx-stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--sx-surface-2); color: var(--sx-ink); flex: none; }
.sx-trend-up { color: var(--sx-green); font-weight: 600; }
.sx-trend-down { color: var(--sx-red); font-weight: 600; }

/* ------------------------------------------------------------------ badges */
.sx-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f0f0ee; color: var(--sx-ink-3); white-space: nowrap; }
.sx-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.sx-badge.no-dot::before { display: none; }
.sx-badge-success { background: var(--sx-green-soft); color: #047857; }
.sx-badge-danger { background: var(--sx-red-soft); color: #b91c1c; }
.sx-badge-warning { background: var(--sx-amber-soft); color: #b45309; }
.sx-badge-info { background: var(--sx-blue-soft); color: #1d4ed8; }
.sx-badge-primary { background: var(--sx-ink); color: var(--sx-brand); }
.sx-badge-brand { background: var(--sx-brand); color: var(--sx-ink); }
.sx-badge-violet { background: var(--sx-violet-soft); color: #6d28d9; }
.sx-pulse::before { animation: sx-pulse 1.4s infinite; }
@keyframes sx-pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sx-line-2); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s; color: var(--sx-ink); white-space: nowrap; }
.sx-chip:hover { border-color: var(--sx-ink); }
.sx-chip.is-active { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); }
.sx-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--sx-subtle); flex: none; }
.sx-dot-green { background: var(--sx-green); } .sx-dot-red { background: var(--sx-red); } .sx-dot-amber { background: var(--sx-amber); } .sx-dot-brand { background: var(--sx-brand); }

/* ------------------------------------------------------------------ forms */
.sx-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.sx-label { font-size: 13px; font-weight: 600; color: var(--sx-ink-3); }
.sx-input, .sx-select, .sx-textarea {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--sx-line-2);
    background: #fff; font: inherit; font-size: 15px; color: var(--sx-ink); outline: none; transition: border .15s, box-shadow .15s;
    appearance: none; -webkit-appearance: none; box-shadow: none;
}
.sx-textarea { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.sx-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316161a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.sx-input:focus, .sx-select:focus, .sx-textarea:focus { border-color: var(--sx-ink); box-shadow: 0 0 0 4px rgba(11, 11, 12, .06); }
.sx-input::placeholder, .sx-textarea::placeholder { color: #a6a6ae; }
.sx-input.is-invalid, .sx-select.is-invalid, .sx-textarea.is-invalid { border-color: var(--sx-red); }
.sx-error { font-size: 12.5px; color: var(--sx-red); font-weight: 500; }
.sx-hint { font-size: 12.5px; color: var(--sx-muted); }
.sx-input-group { position: relative; }
.sx-input-group > i, .sx-input-group > .sx-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--sx-muted); pointer-events: none; font-size: 15px; }
.sx-input-group > .sx-input { padding-left: 44px; }
.sx-input-group > .sx-input-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.sx-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--sx-ink-3); }
.sx-check input { width: 18px; height: 18px; accent-color: var(--sx-ink); margin-top: 2px; flex: none; }
.sx-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.sx-switch input { opacity: 0; width: 0; height: 0; }
.sx-switch span { position: absolute; inset: 0; background: #d9d9de; border-radius: 99px; transition: .2s; cursor: pointer; }
.sx-switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s var(--sx-ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sx-switch input:checked + span { background: var(--sx-ink); }
.sx-switch input:checked + span::before { transform: translateX(20px); background: var(--sx-brand); }

/* segmented control */
.sx-segment { display: inline-flex; padding: 4px; background: #efefec; border-radius: 12px; gap: 2px; }
.sx-segment button, .sx-segment a { border: 0; background: transparent; height: 36px; padding: 0 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--sx-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.sx-segment .is-active { background: #fff; color: var(--sx-ink); box-shadow: var(--sx-shadow-sm); }
.sx-segment-block { display: flex; }
.sx-segment-block > * { flex: 1; justify-content: center; }

/* tabs */
.sx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--sx-line); overflow-x: auto; scrollbar-width: none; }
.sx-tabs a, .sx-tabs button { border: 0; background: none; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--sx-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sx-tabs .is-active { color: var(--sx-ink); border-bottom-color: var(--sx-ink); }
.sx-tabs .sx-count { background: #efefec; color: var(--sx-ink-3); border-radius: 99px; padding: 1px 8px; font-size: 12px; }
.sx-tabs .is-active .sx-count { background: var(--sx-brand); color: var(--sx-ink); }

/* OTP */
.sx-otp { display: flex; gap: 12px; justify-content: center; }
.sx-otp input { width: 60px; height: 64px; text-align: center; font-size: 26px; font-weight: 700; border-radius: 14px; border: 1.5px solid var(--sx-line-2); outline: none; transition: .15s; background: #fff; color: var(--sx-ink); }
.sx-otp input:focus { border-color: var(--sx-ink); box-shadow: 0 0 0 4px rgba(255, 238, 2, .5); }

/* ------------------------------------------------------------------ tables & lists */
.sx-table-wrap { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sx-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--sx-muted); padding: 12px 16px; border-bottom: 1px solid var(--sx-line); background: var(--sx-surface-2); white-space: nowrap; }
.sx-table td { padding: 14px 16px; border-bottom: 1px solid var(--sx-line); vertical-align: middle; color: var(--sx-text); }
.sx-table tr:last-child td { border-bottom: 0; }
.sx-table tbody tr { transition: background .12s; }
.sx-table tbody tr:hover { background: #fbfbfa; }
.sx-table tr[data-href] { cursor: pointer; }
.sx-list > * { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sx-line); }
.sx-list > *:last-child { border-bottom: 0; }
.sx-list-pad > * { padding: 14px 22px; }
.sx-kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.sx-kv dt { color: var(--sx-muted); font-weight: 400; }
.sx-kv dd { margin: 0; text-align: right; font-weight: 600; color: var(--sx-ink); }
.sx-kv .sx-kv-total { padding-top: 12px; border-top: 1px dashed var(--sx-line-2); font-size: 16px; }

/* avatar */
.sx-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: #eee; }
.sx-avatar-sm { width: 32px; height: 32px; }
.sx-avatar-lg { width: 64px; height: 64px; }
.sx-avatar-xl { width: 92px; height: 92px; }

/* icons */
.sx-icon-box { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sx-surface-2); color: var(--sx-ink); font-size: 18px; flex: none; }
.sx-icon-box.is-brand { background: var(--sx-brand); }
.sx-icon-box.is-dark { background: var(--sx-ink); color: var(--sx-brand); }
.sx-icon-box.is-green { background: var(--sx-green-soft); color: var(--sx-green); }
.sx-icon-box.is-red { background: var(--sx-red-soft); color: var(--sx-red); }
.sx-icon-box.is-blue { background: var(--sx-blue-soft); color: var(--sx-blue); }
.sx-icon-box.is-amber { background: var(--sx-amber-soft); color: var(--sx-amber); }
.sx-icon-box.is-violet { background: var(--sx-violet-soft); color: var(--sx-violet); }

/* route (pickup → dropoff) */
.sx-route { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 26px; }
.sx-route::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(to bottom, #cfcfd6 0 4px, transparent 4px 8px); }
.sx-route-stop { position: relative; }
.sx-route-stop::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--sx-ink); }
.sx-route-stop.is-drop::before { border-radius: 3px; background: var(--sx-ink); border-color: var(--sx-ink); box-shadow: inset 0 0 0 3px #fff; }
.sx-route-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sx-subtle); font-weight: 600; }
.sx-route-addr { font-size: 14.5px; font-weight: 500; color: var(--sx-ink); }

/* timeline */
.sx-timeline { position: relative; padding-left: 22px; }
.sx-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--sx-line); }
.sx-timeline-item { position: relative; padding-bottom: 16px; }
.sx-timeline-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--sx-ink); }
.sx-timeline-item.is-muted::before { border-color: #cfcfd6; }
.sx-timeline-item:last-child { padding-bottom: 0; }

/* stepper */
.sx-steps { display: flex; gap: 8px; }
.sx-step { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sx-step-bar { height: 5px; border-radius: 99px; background: #e6e6e3; overflow: hidden; }
.sx-step.is-done .sx-step-bar { background: var(--sx-ink); }
.sx-step.is-current .sx-step-bar { background: linear-gradient(90deg, var(--sx-ink) 50%, #e6e6e3 50%); }
.sx-step-label { font-size: 12.5px; font-weight: 600; color: var(--sx-muted); }
.sx-step.is-done .sx-step-label, .sx-step.is-current .sx-step-label { color: var(--sx-ink); }

/* progress */
.sx-progress { height: 8px; border-radius: 99px; background: #ececea; overflow: hidden; }
.sx-progress > span { display: block; height: 100%; background: var(--sx-ink); border-radius: inherit; transition: width .4s var(--sx-ease); }

/* empty state */
.sx-empty { text-align: center; padding: 48px 24px; color: var(--sx-muted); }
.sx-empty .sx-empty-icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 28px; background: var(--sx-surface-2); color: var(--sx-ink); border: 1px solid var(--sx-line); }
.sx-empty h4 { font-size: 17px; margin-bottom: 6px; }

/* skeleton */
.sx-skel { background: linear-gradient(90deg, #f0f0ee 25%, #f7f7f5 50%, #f0f0ee 75%); background-size: 200% 100%; animation: sx-skel 1.2s infinite; border-radius: 8px; }
@keyframes sx-skel { to { background-position: -200% 0; } }

/* alerts */
.sx-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; background: var(--sx-surface-2); border: 1px solid var(--sx-line); }
.sx-alert i { margin-top: 2px; }
.sx-alert-warning { background: var(--sx-amber-soft); border-color: #fde3b0; color: #7c4a03; }
.sx-alert-danger { background: var(--sx-red-soft); border-color: #f9caca; color: #8f1d1d; }
.sx-alert-success { background: var(--sx-green-soft); border-color: #bdebd8; color: #065f46; }
.sx-alert-info { background: var(--sx-blue-soft); border-color: #cddcfb; color: #1e3a8a; }
.sx-alert-brand { background: var(--sx-brand-soft); border-color: #f5ea80; color: var(--sx-ink); }

/* ------------------------------------------------------------------ toast */
.sx-toasts { position: fixed; top: 20px; right: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.sx-toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--sx-ink); color: #fff; padding: 14px 16px; border-radius: 16px; box-shadow: var(--sx-shadow-lg); font-family: var(--sx-font); font-size: 14px; animation: sx-toast-in .35s var(--sx-ease); cursor: pointer; }
.sx-toast.is-leaving { animation: sx-toast-out .25s ease forwards; }
.sx-toast-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; color: var(--sx-brand); }
.sx-toast.is-success .sx-toast-icon { color: #34d399; }
.sx-toast.is-error .sx-toast-icon { color: #f87171; }
.sx-toast-title { font-weight: 600; color: #fff; }
.sx-toast-body { color: rgba(255, 255, 255, .72); font-size: 13px; margin-top: 2px; }
@keyframes sx-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes sx-toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ------------------------------------------------------------------ modal */
.sx-modal { position: fixed; inset: 0; z-index: 99990; display: none; align-items: center; justify-content: center; padding: 20px; }
.sx-modal.is-open { display: flex; }
.sx-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, .55); backdrop-filter: blur(3px); animation: sx-fade .2s; }
.sx-modal-dialog { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: var(--sx-shadow-lg); animation: sx-pop .3s var(--sx-ease); font-family: var(--sx-font); }
.sx-modal-dialog.is-wide { width: min(760px, 100%); }
.sx-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; }
.sx-modal-head h3 { font-size: 19px; font-weight: 700; }
.sx-modal-body { padding: 18px 24px 24px; }
.sx-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 24px; }
.sx-modal-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f1ef; cursor: pointer; display: grid; place-items: center; color: var(--sx-ink); }
@keyframes sx-fade { from { opacity: 0; } }
@keyframes sx-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 640px) {
    .sx-modal { align-items: flex-end; padding: 0; }
    .sx-modal-dialog { border-radius: 22px 22px 0 0; width: 100%; animation: sx-sheet .35s var(--sx-ease); }
    @keyframes sx-sheet { from { transform: translateY(100%); } }
}

/* dropdown */
.sx-dropdown { position: relative; }
.sx-dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--sx-line); border-radius: 16px; box-shadow: var(--sx-shadow-lg); padding: 8px; z-index: 1000; display: none; animation: sx-pop .2s var(--sx-ease); }
.sx-dropdown.is-open .sx-dropdown-menu { display: block; }
.sx-dropdown-menu a, .sx-dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--sx-ink); border: 0; background: none; cursor: pointer; text-align: left; font-weight: 500; }
.sx-dropdown-menu a:hover, .sx-dropdown-menu button:hover { background: var(--sx-surface-2); }
.sx-dropdown-menu i { width: 18px; text-align: center; color: var(--sx-muted); }
.sx-dropdown-sep { height: 1px; background: var(--sx-line); margin: 6px 4px; }

/* notification panel */
.sx-notif-panel { width: 380px; padding: 0; max-height: 520px; display: none; flex-direction: column; }
.sx-dropdown.is-open .sx-notif-panel { display: flex; }
.sx-notif-list { overflow-y: auto; max-height: 420px; }
.sx-notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--sx-line); cursor: pointer; transition: background .12s; }
.sx-notif:hover { background: var(--sx-surface-2); }
.sx-notif.is-unread { background: #fffde6; }
.sx-notif-title { font-size: 14px; font-weight: 600; color: var(--sx-ink); }
.sx-notif-body { font-size: 13px; color: var(--sx-muted); margin-top: 2px; }
.sx-notif-time { font-size: 11.5px; color: var(--sx-subtle); margin-top: 4px; }
.sx-bell { position: relative; }
.sx-bell-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--sx-red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
@media (max-width: 640px) { .sx-notif-panel { width: calc(100vw - 24px); position: fixed; left: 12px; right: 12px; top: 70px; } }

/* ------------------------------------------------------------------ map */
.sx-map { width: 100%; height: 100%; min-height: 320px; border-radius: var(--sx-radius); background: #e9ece8; overflow: hidden; position: relative; }
.sx-map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sx-muted); font-size: 14px; text-align: center; padding: 20px; }
.sx-map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06); }
.sx-map .leaflet-container { font-family: var(--sx-font); background: #eceeea; }
.sx-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75); }
.sx-map .leaflet-control-zoom a { border-radius: 10px !important; border: 0 !important; box-shadow: var(--sx-shadow); color: var(--sx-ink); }
.sx-map .leaflet-control-zoom { border: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.sx-car-marker { width: 38px; height: 38px; display: grid; place-items: center; }

/* places autocomplete */
.sx-ac { position: relative; }
.sx-ac-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--sx-line); border-radius: 16px; box-shadow: var(--sx-shadow-lg); z-index: 1100; overflow: hidden; display: none; max-height: 340px; overflow-y: auto; }
.sx-ac-menu.is-open { display: block; }
.sx-ac-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--sx-line); }
.sx-ac-item:last-child { border-bottom: 0; }
.sx-ac-item:hover, .sx-ac-item.is-active { background: var(--sx-surface-2); }
.sx-ac-item i { width: 34px; height: 34px; border-radius: 10px; background: #f1f1ef; display: grid; place-items: center; color: var(--sx-ink); flex: none; font-size: 14px; }
.sx-ac-title { font-size: 14px; font-weight: 600; color: var(--sx-ink); }
.sx-ac-sub { font-size: 12.5px; color: var(--sx-muted); }

/* ride type option */
.sx-ride-opt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 2px solid transparent; background: var(--sx-surface-2); cursor: pointer; transition: .15s var(--sx-ease); position: relative; }
.sx-ride-opt:hover { background: #f3f3f1; }
.sx-ride-opt.is-selected { border-color: var(--sx-ink); background: #fff; box-shadow: var(--sx-shadow); }
.sx-ride-opt img { width: 78px; height: 48px; object-fit: contain; flex: none; }
.sx-ride-opt-name { font-weight: 600; font-size: 15px; color: var(--sx-ink); display: flex; align-items: center; gap: 8px; }
.sx-ride-opt-meta { font-size: 12.5px; color: var(--sx-muted); }
.sx-ride-opt-price { font-weight: 700; font-size: 17px; color: var(--sx-ink); text-align: right; font-variant-numeric: tabular-nums; }
.sx-ride-opt-old { font-size: 12px; color: var(--sx-subtle); text-decoration: line-through; }

/* service tiles */
.sx-service { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--sx-surface); border: 1px solid var(--sx-line); cursor: pointer; transition: .2s var(--sx-ease); position: relative; overflow: hidden; }
.sx-service:hover { transform: translateY(-2px); box-shadow: var(--sx-shadow); }
.sx-service.is-selected { border-color: var(--sx-ink); box-shadow: inset 0 0 0 1px var(--sx-ink); }
.sx-service .sx-icon-box { background: var(--sx-brand); }

/* ------------------------------------------------------------------ app shell (driver + admin) */
.sx-shell { min-height: 100vh; background: var(--sx-bg); display: flex; }
.sx-side { width: 268px; flex: none; background: var(--sx-ink); color: #c9c9cf; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1001; transition: transform .3s var(--sx-ease); }
.sx-side-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; }
.sx-side-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--sx-brand); display: grid; place-items: center; color: var(--sx-ink); font-weight: 800; font-size: 18px; }
.sx-side-title { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .02em; line-height: 1.1; }
.sx-side-sub { font-size: 11.5px; color: #8b8b94; letter-spacing: .04em; text-transform: uppercase; }
.sx-side-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.sx-side-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6c6c75; padding: 18px 12px 8px; font-weight: 600; }
.sx-side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #c9c9cf !important; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; margin-bottom: 2px; position: relative; }
.sx-side-link i { width: 20px; text-align: center; font-size: 15px; color: #8b8b94; transition: color .15s; }
.sx-side-link:hover { background: var(--sx-ink-2); color: #fff !important; }
.sx-side-link:hover i { color: #fff; }
.sx-side-link.is-active { background: var(--sx-brand); color: var(--sx-ink) !important; font-weight: 600; }
.sx-side-link.is-active i { color: var(--sx-ink); }
.sx-side-link .sx-side-count { margin-left: auto; background: var(--sx-red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.sx-side-link.is-active .sx-side-count { background: var(--sx-ink); color: var(--sx-brand); }
.sx-side-foot { padding: 14px; border-top: 1px solid #1f1f24; }
.sx-side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.sx-side-user:hover { background: var(--sx-ink-2); }
.sx-side-user .sx-avatar { border: 2px solid #2a2a30; }
.sx-main { flex: 1; min-width: 0; margin-left: 268px; display: flex; flex-direction: column; min-height: 100vh; }
.sx-top { height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: rgba(246, 246, 244, .85); backdrop-filter: saturate(180%) blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid transparent; transition: border-color .2s; }
.sx-top.is-scrolled { border-bottom-color: var(--sx-line); }
.sx-top-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--sx-ink); }
.sx-main:has(.sx-page-head) .sx-top-title { opacity: 0; pointer-events: none; }
.sx-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sx-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--sx-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--sx-ink); font-size: 16px; transition: .15s; position: relative; }
.sx-icon-btn:hover { border-color: var(--sx-ink); }
.sx-content { padding: 8px 32px 40px; flex: 1; }
.sx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 24px; flex-wrap: wrap; }
.sx-page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.sx-page-head p { color: var(--sx-muted); margin-top: 4px; }
.sx-burger { display: none; }
.sx-search { position: relative; width: min(420px, 40vw); }
.sx-search input { height: 44px; border-radius: 12px; border: 1px solid var(--sx-line); background: #fff; padding: 0 16px 0 42px; width: 100%; font: inherit; font-size: 14px; outline: none; }
.sx-search input:focus { border-color: var(--sx-ink); }
.sx-search > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--sx-muted); }
.sx-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: inherit; font-size: 11px; background: #f1f1ef; border-radius: 6px; padding: 2px 7px; color: var(--sx-muted); border: 1px solid var(--sx-line); }
.sx-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 16px; border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-lg); z-index: 1100; display: none; overflow: hidden; }
.sx-search-results.is-open { display: block; }
.sx-search-results a { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--sx-line); }
.sx-search-results a:hover, .sx-search-results a.is-active { background: var(--sx-surface-2); }
.sx-overlay { display: none; }
@media (max-width: 1080px) {
    .sx-side { transform: translateX(-100%); }
    .sx-shell.is-nav-open .sx-side { transform: none; box-shadow: var(--sx-shadow-lg); }
    .sx-shell.is-nav-open .sx-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1000; }
    .sx-main { margin-left: 0; }
    .sx-burger { display: grid; }
    .sx-top { padding: 0 16px; }
    .sx-content { padding: 8px 16px 32px; }
    .sx-search { display: none; }
}

/* ------------------------------------------------------------------ passenger account (inside website layout) */
.sx-account { background: var(--sx-bg); padding: 40px 0 64px; }
.sx-account-wrap { width: min(1320px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.sx-account-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.sx-account-user { padding: 20px; display: flex; align-items: center; gap: 14px; }
.sx-account-nav { padding: 8px; }
.sx-account-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--sx-ink-3) !important; transition: .15s; }
.sx-account-nav a i { width: 20px; text-align: center; color: var(--sx-muted); }
.sx-account-nav a:hover { background: var(--sx-surface-2); }
.sx-account-nav a.is-active { background: var(--sx-ink); color: #fff !important; }
.sx-account-nav a.is-active i { color: var(--sx-brand); }
.sx-account-nav .sx-badge { margin-left: auto; height: 22px; }
.sx-book-cta { padding: 20px; background: var(--sx-brand); border-radius: var(--sx-radius); border: 0; position: relative; overflow: hidden; }
.sx-book-cta::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.sx-account-main { min-width: 0; }
.sx-mobile-tabs { display: none; }
@media (max-width: 992px) {
    .sx-account { padding-top: 20px; }
    .sx-account-wrap { grid-template-columns: 1fr; }
    .sx-account-side { position: static; }
    .sx-account-side .sx-account-nav, .sx-account-side .sx-account-user { display: none; }
    .sx-mobile-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
}

/* hero greeting */
.sx-hero { border-radius: var(--sx-radius-lg); background: var(--sx-ink); color: #fff; padding: 32px; position: relative; overflow: hidden; }
.sx-hero h1 { color: #fff; font-size: 30px; }
.sx-hero p { color: rgba(255, 255, 255, .7); }
.sx-hero-art { position: absolute; right: -10px; bottom: -14px; width: 340px; max-width: 45%; opacity: .95; pointer-events: none; }
.sx-hero-glow { position: absolute; width: 380px; height: 380px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(255, 238, 2, .35), transparent 65%); pointer-events: none; }
@media (max-width: 760px) { .sx-hero { padding: 24px; } .sx-hero-art { display: none; } }

/* where-to search box */
.sx-whereto { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 10px 10px 10px 18px; color: var(--sx-ink); box-shadow: var(--sx-shadow); cursor: pointer; transition: .2s; }
.sx-whereto:hover { transform: translateY(-1px); }
.sx-whereto-text { flex: 1; font-size: 17px; font-weight: 600; color: var(--sx-ink); }

/* ------------------------------------------------------------------ booking console */
.sx-booking { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 20px; min-height: 680px; }
.sx-booking-panel { display: flex; flex-direction: column; max-height: calc(100vh - 140px); min-height: 640px; }
.sx-booking-scroll { overflow-y: auto; padding: 20px; flex: 1; }
.sx-booking-foot { padding: 16px 20px; border-top: 1px solid var(--sx-line); background: #fff; border-radius: 0 0 var(--sx-radius) var(--sx-radius); }
.sx-booking-map { position: sticky; top: 110px; height: calc(100vh - 140px); min-height: 640px; }
.sx-booking-map .sx-map { height: 100%; }
.sx-locbox { position: relative; border-radius: 16px; background: var(--sx-surface-2); border: 1px solid var(--sx-line); padding: 6px; }
.sx-locbox .sx-input { border: 0; background: transparent; height: 46px; padding-left: 40px; box-shadow: none !important; }
.sx-locbox .sx-loc-row { position: relative; }
.sx-locbox .sx-loc-row + .sx-loc-row { border-top: 1px solid var(--sx-line); }
.sx-loc-pin { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; border: 3.5px solid var(--sx-ink); background: #fff; z-index: 2; }
.sx-loc-pin.is-drop { border-radius: 3px; background: var(--sx-ink); box-shadow: inset 0 0 0 2.5px #fff; }
.sx-loc-swap { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 3; }
@media (max-width: 1100px) {
    .sx-booking { grid-template-columns: 1fr; }
    .sx-booking-map { position: relative; top: 0; height: 320px; min-height: 320px; order: -1; }
    .sx-booking-panel { max-height: none; min-height: 0; }
}

/* live trip card */
.sx-trip-status { padding: 22px; background: var(--sx-ink); color: #fff; border-radius: var(--sx-radius) var(--sx-radius) 0 0; }
.sx-trip-status h2 { color: #fff; font-size: 22px; }
.sx-eta { font-size: 13px; color: var(--sx-brand); font-weight: 600; }
.sx-searching { position: relative; width: 120px; height: 120px; margin: 10px auto 18px; }
.sx-searching span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sx-brand); animation: sx-ripple 2.2s infinite; opacity: 0; }
.sx-searching span:nth-child(2) { animation-delay: .7s; }
.sx-searching span:nth-child(3) { animation-delay: 1.4s; }
.sx-searching i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: var(--sx-ink); }
.sx-searching i::before { width: 64px; height: 64px; border-radius: 50%; background: var(--sx-brand); display: grid; place-items: center; }
@keyframes sx-ripple { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.sx-pin-code { display: inline-flex; gap: 6px; }
.sx-pin-code span { width: 34px; height: 40px; border-radius: 10px; background: var(--sx-brand); color: var(--sx-ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.sx-plate { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--sx-surface-2); border: 1px solid var(--sx-line-2); font-weight: 700; letter-spacing: .08em; font-size: 13px; color: var(--sx-ink); }

/* rating stars */
.sx-stars { display: flex; gap: 8px; justify-content: center; }
.sx-stars button { border: 0; background: none; font-size: 34px; color: #dcdce0; cursor: pointer; transition: transform .15s, color .15s; padding: 0; }
.sx-stars button.is-on { color: #fbbf24; }
.sx-stars button:hover { transform: scale(1.12); }
.sx-tip-options { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* chat */
.sx-chat { display: flex; flex-direction: column; height: 420px; }
.sx-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--sx-surface-2); }
.sx-bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; background: #fff; border: 1px solid var(--sx-line); align-self: flex-start; }
.sx-bubble.is-mine { align-self: flex-end; background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); border-bottom-right-radius: 6px; }
.sx-bubble:not(.is-mine) { border-bottom-left-radius: 6px; }
.sx-bubble small { display: block; font-size: 10.5px; opacity: .6; margin-top: 4px; }
.sx-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--sx-line); background: #fff; }

/* ------------------------------------------------------------------ auth */
.sx-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.sx-auth-art { position: relative; background: var(--sx-ink); color: #fff; padding: 48px; display: flex; flex-direction: column; overflow: hidden; }
.sx-auth-art::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -220px; background: radial-gradient(circle, rgba(255, 238, 2, .28), transparent 62%); }
.sx-auth-art h1 { color: #fff; font-size: 44px; line-height: 1.08; letter-spacing: -.04em; max-width: 520px; position: relative; }
.sx-auth-art h1 em { font-style: normal; color: var(--sx-brand); }
.sx-auth-art p { color: rgba(255, 255, 255, .66); font-size: 16px; max-width: 460px; margin-top: 16px; position: relative; }
.sx-auth-car { position: absolute; right: -60px; bottom: 60px; width: min(620px, 80%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.sx-auth-feats { margin-top: auto; display: flex; gap: 28px; position: relative; flex-wrap: wrap; }
.sx-auth-feat { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .8); }
.sx-auth-feat i { color: var(--sx-brand); }
.sx-auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.sx-auth-card { width: min(440px, 100%); }
.sx-auth-card h2 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.sx-auth-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .1em; font-size: 18px; position: relative; }
.sx-auth-logo span { width: 40px; height: 40px; border-radius: 12px; background: var(--sx-brand); color: var(--sx-ink); display: grid; place-items: center; letter-spacing: 0; }
.sx-divider { display: flex; align-items: center; gap: 14px; color: var(--sx-subtle); font-size: 12.5px; margin: 22px 0; }
.sx-divider::before, .sx-divider::after { content: ""; flex: 1; height: 1px; background: var(--sx-line); }
@media (max-width: 960px) { .sx-auth { grid-template-columns: 1fr; } .sx-auth-art { display: none; } }

/* ------------------------------------------------------------------ driver console */
.sx-online-toggle { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--sx-line); font-weight: 700; cursor: pointer; transition: .2s; user-select: none; color: var(--sx-ink); }
.sx-online-toggle.is-online { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); }
.sx-online-knob { width: 32px; height: 32px; border-radius: 50%; background: #e4e4e8; display: grid; place-items: center; transition: .2s; color: var(--sx-muted); }
.sx-online-toggle.is-online .sx-online-knob { background: var(--sx-brand); color: var(--sx-ink); }
.sx-console { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; }
.sx-console-map { height: calc(100vh - 200px); min-height: 560px; }
@media (max-width: 1200px) { .sx-console { grid-template-columns: 1fr; } .sx-console-map { height: 380px; min-height: 380px; } }
.sx-offer { position: fixed; z-index: 99980; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; animation: sx-offer-in .45s var(--sx-ease); font-family: var(--sx-font); }
@keyframes sx-offer-in { from { transform: translate(-50%, 40px); opacity: 0; } }
.sx-offer-top { background: var(--sx-ink); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.sx-offer-timer { position: relative; width: 54px; height: 54px; flex: none; }
.sx-offer-timer svg { transform: rotate(-90deg); }
.sx-offer-timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; color: var(--sx-brand); }
.sx-offer-fare { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #fff; }

/* earnings bars */
.sx-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.sx-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.sx-bar-fill { width: 100%; max-width: 46px; border-radius: 10px 10px 6px 6px; background: #ececea; transition: height .5s var(--sx-ease), background .2s; position: relative; min-height: 4px; }
.sx-bar:hover .sx-bar-fill, .sx-bar.is-active .sx-bar-fill { background: var(--sx-ink); }
.sx-bar.is-active .sx-bar-fill { background: var(--sx-brand); box-shadow: inset 0 0 0 2px var(--sx-ink); }
.sx-bar-label { font-size: 11.5px; color: var(--sx-muted); white-space: nowrap; }
.sx-bar-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--sx-ink); color: #fff; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: .15s; pointer-events: none; }
.sx-bar:hover .sx-bar-tip { opacity: 1; }

/* uploads */
.sx-upload { border: 1.5px dashed var(--sx-line-2); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: .15s; background: #fff; position: relative; }
.sx-upload:hover { border-color: var(--sx-ink); background: var(--sx-surface-2); }
.sx-upload.is-done { border-style: solid; border-color: #bdebd8; background: #f6fdf9; }
.sx-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sx-upload-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--sx-surface-2); display: grid; place-items: center; flex: none; color: var(--sx-muted); font-size: 20px; overflow: hidden; }
.sx-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* pagination (Laravel default markup) */
.sx-pagination nav { display: flex; justify-content: center; }
.sx-pagination .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.sx-pagination .page-link, .sx-pagination .page-item span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--sx-line); background: #fff; color: var(--sx-ink); font-size: 14px; font-weight: 500; }
.sx-pagination .page-item.active .page-link, .sx-pagination .page-item.active span { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); }
.sx-pagination .page-item.disabled span { opacity: .45; }
.sx-pagination p.small, .sx-pagination .hidden { display: none; }
.sx-pagination .d-none.flex-sm-fill { display: flex !important; flex-direction: column; align-items: center; gap: 10px; }
.sx-pagination .d-flex.justify-content-between.flex-fill.d-sm-none { display: none !important; }

/* misc */
.sx-divider-line { height: 1px; background: var(--sx-line); margin: 18px 0; }
.sx-kbd { font-size: 11px; border: 1px solid var(--sx-line); border-radius: 6px; padding: 1px 6px; background: #fff; }
.sx-fade-in { animation: sx-fade-up .45s var(--sx-ease) both; }
@keyframes sx-fade-up { from { opacity: 0; transform: translateY(8px); } }
.sx-doc-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--sx-line); background: var(--sx-surface-2); }
.sx-receipt { max-width: 640px; margin: 0 auto; }
@media print {
    .sx-account-side, .main-header, .main-footer, .sx-no-print, header, footer { display: none !important; }
    .sx-account-wrap { display: block; }
    .sx-account { background: #fff; padding: 0; }
}

/* admin: collapsible website-content group */
.sx-side-cms > summary { list-style: none; cursor: pointer; }
.sx-side-cms > summary::-webkit-details-marker { display: none; }
.sx-side-cms[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.sx-side-link.is-current { color: #fff !important; }
.sx-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sx-filters .sx-input, .sx-filters .sx-select { height: 42px; font-size: 14px; width: auto; min-width: 150px; }
.sx-mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.sx-mini-bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; position: relative; min-width: 0; }
.sx-mini-bars span.b { width: 100%; border-radius: 8px 8px 4px 4px; background: #ececea; min-height: 3px; transition: height .5s var(--sx-ease); }
.sx-mini-bars > div:hover span.b { background: var(--sx-ink); }
.sx-mini-bars > div:last-child span.b { background: var(--sx-brand); box-shadow: inset 0 0 0 2px var(--sx-ink); }
.sx-mini-bars small { font-size: 10.5px; color: var(--sx-muted); white-space: nowrap; }
.sx-mini-bars .tip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--sx-ink); color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .15s; }
.sx-mini-bars > div:hover .tip { opacity: 1; }
.sx-donut { width: 140px; height: 140px; border-radius: 50%; position: relative; flex: none; }
.sx-donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; }
.sx-donut b { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-size: 22px; }
.sx-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.sx-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.sx-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sx-doc { border: 1px solid var(--sx-line); border-radius: 14px; overflow: hidden; background: #fff; display: block; }
.sx-doc-img { aspect-ratio: 4/3; background: var(--sx-surface-2) center/cover no-repeat; display: grid; place-items: center; color: var(--sx-subtle); font-size: 28px; }
.sx-doc-cap { padding: 10px 12px; font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.sx-live-list { max-height: calc(100vh - 230px); overflow-y: auto; }
