/* =========================================================
   RIDEMITRA — DESIGN SYSTEM
   Motif: the open road. Dashed rules read as lane markings,
   route pins mark structure, everything measures distance.
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --ink: #12110f;
    --surface: #1c1a17;
    --surface-2: #242019;
    --surface-3: #2e2921;
    --marigold: #ff6a1a;
    --marigold-dim: #c8551b;
    --dawn: #ffb444;
    --mist: #a79e92;
    --mist-dim: #6f675d;
    --paper: #f5f1e8;
    --paper-dim: #d8d1c2;
    --line: rgba(245, 241, 232, 0.09);
    --danger: #ff5c5c;
    --good: #5fd88a;

    --font-display: "Sora", sans-serif;
    --font-body: "Plus Jakarta Sans", sans-serif;

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 26px;

    --shadow-deep: 0 30px 60px -20px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 106, 26, 0.12) 0%, transparent 30%),
        linear-gradient(180deg, #171613 0%, var(--ink) 100%);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body[data-auth="required"] {
    background:
        radial-gradient(100% 80% at 0% 0%, rgba(255, 180, 68, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #181512 0%, var(--ink) 100%);
}

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

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

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--dawn);
    outline-offset: 3px;
}

.container {
    width: min(1160px, 100% - 48px);
    margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.4em;
    letter-spacing: -0.01em;
    color: var(--paper);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p {
    margin: 0 0 1em;
    color: var(--mist);
    max-width: 62ch;
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dawn);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--dawn);
    border-radius: 2px;
}

/* Lane-marking divider: the site's recurring structural device */
.route-rule {
    border: none;
    height: 2px;
    margin: 0;
    background-image: repeating-linear-gradient(
        90deg,
        var(--line) 0 22px,
        transparent 22px 38px
    );
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--marigold);
    color: #1a0f06;
}
.btn-primary:hover { background: var(--dawn); }

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--marigold); color: var(--dawn); }

.btn-secondary {
    background: rgba(255, 180, 68, 0.12);
    color: var(--dawn);
    border-color: rgba(255, 180, 68, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 180, 68, 0.2);
    border-color: var(--dawn);
}

.btn-danger {
    background: rgba(255, 92, 92, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 92, 92, 0.3);
}

.btn-danger:hover { background: rgba(255, 92, 92, 0.18); }

.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   NAVIGATION (marketing pages)
========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: linear-gradient(180deg, var(--ink) 60%, transparent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--paper);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--marigold), var(--dawn));
    display: grid;
    place-items: center;
    color: #1a0f06;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.94rem;
    color: var(--mist);
}

.nav-links a:hover { color: var(--paper); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: var(--paper);
    font-size: 1.1rem;
}

@media (max-width: 860px) {
    .topbar { position: relative; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% - 4px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-s);
        box-shadow: var(--shadow-deep);
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links a { padding: 11px 12px; }
    .nav-toggle { display: grid; place-items: center; }
}

/* =========================================================
   CARDS / GLASS SURFACES
========================================================= */

.card {
    background: linear-gradient(180deg, rgba(28, 26, 23, 0.98) 0%, rgba(22, 20, 18, 0.96) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 26px;
    box-shadow: 0 20px 45px -30px rgba(0,0,0,0.75);
}

.card-quiet {
    background: var(--surface-2);
    border-radius: var(--radius-s);
    padding: 20px;
}

/* =========================================================
   FORMS
========================================================= */

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--paper-dim);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--paper);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--marigold);
    outline: none;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.search-field-row {
    grid-template-columns: 1fr 1fr 1fr auto;
}

@media (max-width: 560px) {
    .field-row,
    .search-field-row { grid-template-columns: 1fr; }
}

.field-hint {
    font-size: 0.8rem;
    color: var(--mist-dim);
    margin-top: 6px;
}

.field-error {
    font-size: 0.85rem;
    color: var(--danger);
    min-height: 1.2em;
}

.password-field { position: relative; }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    background: none;
    border: none;
    color: var(--mist);
    cursor: pointer;
    font-size: 0.85rem;
}

/* =========================================================
   AUTH SHELL (login / signup)
========================================================= */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
}

.auth-visual {
    position: relative;
    background:
        radial-gradient(120% 100% at 10% 0%, rgba(255, 106, 26, 0.2) 0%, rgba(28, 26, 23, 0.1) 30%, transparent 55%),
        linear-gradient(180deg, rgba(255, 180, 68, 0.06) 0%, rgba(18, 17, 15, 0) 30%),
        radial-gradient(120% 100% at 10% 0%, #2c2013 0%, var(--ink) 60%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    min-height: 100vh;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 17, 15, 0.15) 100%);
}

.auth-visual .route-rule { position: absolute; left: 0; right: 0; }

.auth-visual-copy,
.auth-visual-stats {
    position: relative;
    z-index: 1;
}

.auth-visual-copy {
    max-width: 480px;
    margin-top: 90px;
}

.auth-visual-copy h2 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    margin-bottom: 12px;
}

.auth-visual-copy p {
    color: var(--paper-dim);
    font-size: 1.04rem;
    max-width: 32ch;
}

.auth-visual-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    min-width: 160px;
    padding: 18px 20px;
    background: rgba(20, 18, 16, 0.45);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    backdrop-filter: blur(8px);
}

.stat-box strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1.2;
    color: var(--paper);
    margin-bottom: 4px;
}

.stat-box span {
    font-size: 0.82rem;
    color: var(--mist);
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-box { width: min(420px, 100%); }

.auth-switch {
    margin-top: 22px;
    font-size: 0.92rem;
    color: var(--mist);
    text-align: center;
}

.auth-switch a { color: var(--dawn); font-weight: 600; }

.forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 18px;
}

.forgot-password-row a {
    color: var(--dawn);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password-row a:hover,
.forgot-password-row a:focus-visible {
    text-decoration: underline;
}

.reset-password-panel {
    position: relative;
    padding: 18px;
    margin: -2px 0 18px;
    border: 1px solid rgba(255, 180, 68, 0.28);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 180, 68, 0.12), rgba(255, 106, 26, 0.04) 48%, rgba(255, 255, 255, 0.03)),
        rgba(18, 17, 15, 0.72);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.reset-password-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.reset-password-icon {
    display: grid;
    position: static;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(255, 180, 68, 0.32);
    border-radius: 10px;
    background: rgba(255, 180, 68, 0.12);
    color: var(--dawn);
    font-size: 13px;
    line-height: 1;
}

.reset-password-icon i {
    display: block;
    position: static;
    margin: 0;
    line-height: 1;
}

.reset-password-heading .reset-password-icon {
    display: grid;
}

.reset-password-heading strong,
.reset-password-heading span {
    display: block;
}

.reset-password-heading strong {
    color: var(--paper);
    font-size: 13px;
}

.reset-password-heading span {
    margin-top: 3px;
    color: var(--mist);
    font-size: 11px;
    line-height: 1.4;
}

.reset-password-panel label {
    display: block;
    margin-bottom: 8px;
    color: var(--paper-dim);
    font-size: 12px;
    font-weight: 600;
}

.reset-password-actions {
    display: flex;
    gap: 8px;
}

.reset-password-actions input {
    width: 100%;
    min-width: 0;
    flex: 1;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: rgba(36, 32, 25, 0.9);
    color: var(--paper);
    font: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reset-password-actions input::placeholder {
    color: var(--mist-dim);
}

.reset-password-actions input:focus {
    border-color: var(--dawn);
    box-shadow: 0 0 0 3px rgba(255, 180, 68, 0.1);
}

.reset-password-actions .btn {
    flex: 0 0 auto;
    padding: 0 14px;
}

@media (max-width: 480px) {
    .reset-password-actions {
        flex-direction: column;
    }

    .reset-password-actions .btn {
        min-height: 44px;
    }
}

.reset-cancel {
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mist);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.booking-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.booking-request-card p {
    margin: 2px 0 8px;
}

.booking-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-request-actions .btn {
    padding: 9px 15px;
    font-size: 0.82rem;
}

.notification-actions {
    margin-top: 10px;
}

.notification-page-card {
    max-width: 820px;
}

.notification-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.notification-page-heading h3 {
    margin: 0;
}

.notification-page-heading p {
    margin: 4px 0 0;
}

.notification-page-icon {
    color: var(--dawn);
    font-size: 1.35rem;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.notification-message {
    margin: 0;
    color: var(--paper);
    font-size: 0.9rem;
}

.notification-delete {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(255, 92, 92, 0.2);
    border-radius: 9px;
    background: rgba(255, 92, 92, 0.08);
    color: var(--danger);
    cursor: pointer;
}

.notification-delete:hover {
    background: rgba(255, 92, 92, 0.16);
}

.notification-delete:disabled {
    cursor: wait;
    opacity: 0.55;
}

@media (max-width: 560px) {
    .booking-request-card {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-request-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   APP SHELL (dashboard / find-ride / offer-ride / account)
========================================================= */

.app-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
}

.side-nav {
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 900px) {
    .side-nav {
        position: fixed;
        inset: 0 30% 0 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }
    .side-nav.open { transform: translateX(0); }
}

.side-nav .brand { padding: 6px 10px 22px; }

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: var(--radius-s);
    color: var(--mist);
    font-weight: 600;
    font-size: 0.94rem;
}

.side-link i { width: 18px; text-align: center; }

.side-link:hover { color: var(--paper); background: var(--surface-2); }

.side-link.active {
    color: var(--ink);
    background: var(--marigold);
}

.side-foot {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

@media (max-width: 760px) {
    .settings-grid { grid-template-columns: 1fr; }
}

.settings-card {
    background: linear-gradient(180deg, rgba(28, 26, 23, 0.96) 0%, rgba(19, 17, 15, 0.94) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 24px;
    box-shadow: 0 15px 35px -30px rgba(0,0,0,0.9);
}

.settings-card h3 {
    margin: 0 0 16px;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.settings-card > p,
.settings-card .field-hint,
.settings-card small,
.switch-row small,
.option-item small,
.action-item small {
    line-height: 1.5;
}

.account-grid,
.settings-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 760px) {
    .account-grid,
    .settings-sections { grid-template-columns: 1fr; }
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.user-summary .avatar-circle {
    width: 62px;
    height: 62px;
    font-size: 1.4rem;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    color: var(--mist);
    font-size: 0.78rem;
}

.option-list,
.action-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.option-item,
.action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: rgba(255,255,255,0.02);
}

.option-item small,
.action-item small {
    color: var(--mist-dim);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--mist);
}

.status-tag.active {
    background: rgba(95, 216, 138, 0.13);
    border-color: rgba(95, 216, 138, 0.35);
    color: var(--good);
}

.status-tag.pending {
    background: rgba(255, 180, 68, 0.12);
    border-color: rgba(255, 180, 68, 0.28);
    color: var(--dawn);
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.switch-row:last-child { border-bottom: none; }

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: 0.2s ease;
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: var(--paper);
    transition: 0.2s ease;
}

.switch input:checked + .slider {
    background: rgba(255, 106, 26, 0.28);
    border-color: rgba(255, 106, 26, 0.5);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
    background: var(--marigold);
}

.app-main {
    padding: 26px 32px 60px;
    max-width: 1040px;
    width: min(1040px, 100%);
    margin: 0 auto;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--paper);
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .mobile-menu-btn { display: grid; place-items: center; }
    .app-main { padding: 20px 18px 60px; }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 45;
}
.sidebar-overlay.active { display: block; }

.avatar-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--marigold), var(--dawn));
    color: #1a0f06;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.notif-btn {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--paper);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--marigold);
    color: #1a0f06;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-wrap { position: relative; }

.notif-panel {
    position: absolute;
    right: 0;
    top: 52px;
    width: 320px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 16px;
    box-shadow: var(--shadow-deep);
    display: none;
    z-index: 60;
}

.notif-panel.open { display: block; }

/* =========================================================
   STAT / RIDE / BOOKING CARDS
========================================================= */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .stat-grid { grid-template-columns: 1fr; }
}

.stat-card {
    background: linear-gradient(180deg, rgba(28, 26, 23, 0.96) 0%, rgba(19, 17, 15, 0.94) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 22px;
    box-shadow: 0 18px 36px -28px rgba(0,0,0,0.8);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--dawn);
}

.stat-card .stat-label {
    color: var(--mist);
    font-size: 0.88rem;
}

.ride-card {
    background: linear-gradient(180deg, rgba(28, 26, 23, 0.96) 0%, rgba(19, 17, 15, 0.94) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 14px;
    box-shadow: 0 15px 35px -30px rgba(0,0,0,0.9);
}

@media (max-width: 640px) {
    .ride-card { grid-template-columns: 1fr; }
}

.route-line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.route-point { display: flex; flex-direction: column; }
.route-point small { color: var(--mist-dim); font-size: 0.72rem; }
.route-point strong { font-family: var(--font-display); font-size: 1.05rem; }

.route-arrow { color: var(--marigold); }

.ride-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--mist);
}

.ride-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.book-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-controls label {
    color: var(--mist);
    font-size: 0.78rem;
}

.seat-count {
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface-2);
    color: var(--paper);
    font: inherit;
}

.delete-ride-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .ride-side { align-items: flex-start; text-align: left; }
    .book-controls { flex-wrap: wrap; }
}

.ride-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--paper);
}
.ride-price span { font-size: 0.78rem; color: var(--mist); font-weight: 500; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--mist);
}

.pill-good { background: rgba(95, 216, 138, 0.15); color: var(--good); }

.empty-state {
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-m);
}

.empty-state i { font-size: 2rem; color: var(--marigold); margin-bottom: 14px; }

/* =========================================================
   TOASTS
========================================================= */

#rmToast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 340px;
    padding: 14px 18px;
    border-radius: var(--radius-s);
    color: #1a0f06;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-deep);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.25s ease;
}

/* =========================================================
   LANDING PAGE SPECIFIC
========================================================= */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 40px 0 90px;
    min-height: 78vh;
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 10px; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1160px); }
    .topbar { padding: 14px 0; gap: 10px; }
    .brand { font-size: 1.05rem; }
    .brand-mark { width: 30px; height: 30px; }
    .nav-actions { gap: 7px; }
    .nav-actions .btn { padding: 10px 12px; font-size: 0.78rem; }
    .hero { padding: 20px 0 52px; gap: 28px; }
    h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
    .hero-copy p.lede { font-size: 1rem; }
    .hero-ctas { gap: 10px; margin: 22px 0 28px; }
    .hero-ctas .btn { flex: 1 1 140px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .hero-stats div strong { font-size: 1.15rem; }
    .hero-stats div span { display: block; font-size: 0.7rem; line-height: 1.35; }
    .hero-stage { border-radius: var(--radius-m); }
    section { padding: 48px 0; }
    .section-head { margin-bottom: 28px; }
    .step, .feature-card { padding: 20px; }
    .cta-band { padding: 28px 20px; border-radius: var(--radius-m); }
    .creator-band { align-items: flex-start; gap: 16px; }
    .creator-band + div { width: 100%; }
    .creator-band + div .btn { flex: 1; }
    footer { padding: 28px 0; }
}

.hero-copy p.lede {
    font-size: 1.12rem;
    color: var(--paper-dim);
}

.hero-ctas { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.hero-stats div strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--dawn);
}
.hero-stats div span { font-size: 0.8rem; color: var(--mist); }

.hero-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: radial-gradient(120% 100% at 70% 20%, #2a1f12 0%, var(--ink) 65%);
}

.hero-stage canvas { width: 100%; height: 100%; display: block; }

.hero-stage-caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    font-size: 0.78rem;
    color: var(--mist);
    background: rgba(18,17,15,0.6);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

section {
    padding: 70px 0;
}

.section-head {
    max-width: 560px;
    margin-bottom: 44px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 820px) {
    .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 26px;
}

.feature-card i {
    color: var(--marigold);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

@media (max-width: 820px) {
    .steps { grid-template-columns: 1fr; }
}

.step {
    padding: 26px;
    position: relative;
}

.step-index {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--marigold-dim);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.cta-band {
    background: linear-gradient(120deg, #2c2013, var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.creator-band {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.creator-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--marigold), var(--dawn));
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    color: #1a0f06;
    flex-shrink: 0;
}

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tag {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--mist);
}

footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--mist-dim);
    font-size: 0.85rem;
}
