* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --radius: 1rem;
    --background: oklch(0.16 0.02 260);
    --foreground: oklch(0.98 0.01 80);
    --card: oklch(0.21 0.025 260);
    --card-foreground: oklch(0.98 0.01 80);
    --primary: oklch(0.72 0.2 38);
    --primary-foreground: oklch(0.16 0.02 260);
    --secondary: oklch(0.28 0.04 260);
    --secondary-foreground: oklch(0.98 0.01 80);
    --muted: oklch(0.26 0.03 260);
    --muted-foreground: oklch(0.72 0.02 260);
    --accent: oklch(0.74 0.16 195);
    --success: oklch(0.74 0.17 155);
    --destructive: oklch(0.65 0.24 25);
    --border: oklch(0.3 0.03 260 / 60%);
    --gradient-primary: linear-gradient(135deg, oklch(0.72 0.2 38), oklch(0.8 0.18 55));
    --gradient-hero: linear-gradient(
        180deg,
        oklch(0.16 0.02 260 / 0.1) 0%,
        oklch(0.16 0.02 260 / 0.95) 85%
    );
    --shadow-glow: 0 20px 60px -15px oklch(0.72 0.2 38 / 0.45);
    --shadow-card: 0 8px 30px -10px oklch(0 0 0 / 0.5);
    --shadow-soft: 0 2px 12px -4px oklch(0 0 0 / 0.3);
}
html,
body {
    background: var(--background);
    color: var(--foreground);
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 160% 28% at 50% 20%, oklch(0.72 0.2 38 / 0.2) 0%, transparent 60%),
        radial-gradient(
            ellipse 120% 20% at 50% 16%,
            oklch(0.74 0.16 195 / 0.1) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 100% 35% at 50% 65%,
            oklch(0.21 0.025 260 / 0.6) 0%,
            transparent 60%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            oklch(0.16 0.02 260 / 0.4) 45%,
            oklch(0.12 0.02 260) 100%
        );
    pointer-events: none;
    z-index: 0;
}
h1,
h2,
h3,
h4 {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    letter-spacing: -0.02em;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
}

.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: oklch(0.16 0.02 260 / 0.88);
}
.app-main {
    padding-bottom: 96px;
}

/* ─── Bottom Nav ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 8px 16px 16px;
    z-index: 100;
}
.bottom-nav-inner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 8px;
    box-shadow: var(--shadow-card);
    border: 1px solid oklch(1 0 0 / 0.06);
}
.bottom-nav-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 140% 40% at 50% 0%, oklch(0.72 0.2 38 / 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 100% 30% at 50% 0%, oklch(0.74 0.16 195 / 0.1) 0%, transparent 50%),
        linear-gradient(180deg, oklch(0.21 0.025 260 / 0.7) 0%, oklch(0.16 0.02 260 / 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}
.bottom-nav-inner > * {
    position: relative;
    z-index: 1;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border-radius: 16px;
    transition: all 0.15s;
    color: var(--muted-foreground);
}
.nav-item.active {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}
.nav-icon {
    width: 20px;
    height: 20px;
}
.nav-label {
    font-size: 10px;
    font-weight: 500;
}
.nav-item.active .nav-label {
    font-weight: 600;
}

/* ─── Glass ─── */
.glass {
    background: oklch(0.21 0.025 260 / 0.65);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid oklch(1 0 0 / 0.06);
}

/* ─── Layout ─── */
.px-5 {
    padding-left: 20px;
    padding-right: 20px;
}
.pt-12 {
    padding-top: 48px;
}
.pt-4 {
    padding-top: 16px;
}
.pb-4 {
    padding-bottom: 16px;
}
.mt-1 {
    margin-top: 4px;
}
.mt-2 {
    margin-top: 8px;
}
.mt-3 {
    margin-top: 12px;
}
.mt-4 {
    margin-top: 16px;
}
.mt-5 {
    margin-top: 20px;
}
.mt-6 {
    margin-top: 24px;
}
.mt-7 {
    margin-top: 28px;
}
.mb-1 {
    margin-bottom: 4px;
}
.mb-2 {
    margin-bottom: 8px;
}
.mb-3 {
    margin-bottom: 12px;
}
.mb-4 {
    margin-bottom: 16px;
}
.mb-5 {
    margin-bottom: 20px;
}
.mb-6 {
    margin-bottom: 24px;
}
.mb-8 {
    margin-bottom: 32px;
}
.space-y-2 > * + * {
    margin-top: 8px;
}
.space-y-3 > * + * {
    margin-top: 12px;
}
.space-y-4 > * + * {
    margin-top: 16px;
}
.space-y-5 > * + * {
    margin-top: 20px;
}
.space-y-6 > * + * {
    margin-top: 24px;
}
.gap-1 {
    gap: 4px;
}
.gap-2 {
    gap: 8px;
}
.gap-3 {
    gap: 12px;
}
.gap-4 {
    gap: 16px;
}
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.items-center {
    align-items: center;
}
.items-start {
    align-items: flex-start;
}
.justify-between {
    justify-content: space-between;
}
.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: flex-end;
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.grid {
    display: grid;
}
.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}
.grid-cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.grid-cols-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.hidden {
    display: none;
}
.w-full {
    width: 100%;
}
.w-8 {
    width: 32px;
}
.w-9 {
    width: 36px;
}
.w-10 {
    width: 40px;
}
.w-12 {
    width: 48px;
}
.w-14 {
    width: 56px;
}
.w-16 {
    width: 64px;
}
.h-8 {
    height: 32px;
}
.h-9 {
    height: 36px;
}
.h-10 {
    height: 40px;
}
.h-12 {
    height: 48px;
}
.h-14 {
    height: 56px;
}
.h-16 {
    height: 64px;
}
.min-w-0 {
    min-width: 0;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.block {
    display: block;
}
.inline {
    display: inline;
}
.inline-flex {
    display: inline-flex;
}
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}
.fixed {
    position: fixed;
}
.inset-0 {
    inset: 0;
}
.top-0 {
    top: 0;
}
.right-0 {
    right: 0;
}
.z-10 {
    z-index: 10;
}
.z-40 {
    z-index: 40;
}
.z-50 {
    z-index: 50;
}
.object-cover {
    object-fit: cover;
}
.overflow-hidden {
    overflow: hidden;
}
.shrink-0 {
    flex-shrink: 0;
}
.flex-1 {
    flex: 1;
}
.-mt-6 {
    margin-top: -24px;
}
.-mt-8 {
    margin-top: -32px;
}

/* ─── Typography ─── */
.text-xs {
    font-size: 12px;
}
.text-sm {
    font-size: 14px;
}
.text-base {
    font-size: 16px;
}
.text-lg {
    font-size: 18px;
}
.text-xl {
    font-size: 20px;
}
.text-2xl {
    font-size: 24px;
}
.text-3xl {
    font-size: 30px;
}
.text-4xl {
    font-size: 36px;
}
.text-7xl {
    font-size: 72px;
}
.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.font-medium {
    font-weight: 500;
}
.leading-tight {
    line-height: 1.25;
}
.tracking-tight {
    letter-spacing: -0.02em;
}
.tracking-widest {
    letter-spacing: 0.2em;
}
.uppercase {
    text-transform: uppercase;
}
.capitalize {
    text-transform: capitalize;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}
.text-primary {
    color: var(--primary);
}
.text-muted-foreground {
    color: var(--muted-foreground);
}
.text-destructive {
    color: var(--destructive);
}
.text-success {
    color: var(--success);
}
.text-primary-foreground {
    color: var(--primary-foreground);
}
.text-foreground {
    color: var(--foreground);
}
.bg-card {
    background: var(--card);
}
.bg-background {
    background: var(--background);
}
.bg-secondary {
    background: var(--secondary);
}
.bg-muted {
    background: var(--muted);
}
.bg-destructive\/15 {
    background: oklch(0.65 0.24 25 / 0.15);
}
.bg-success\/15 {
    background: oklch(0.74 0.17 155 / 0.15);
}
.bg-primary\/15 {
    background: oklch(0.72 0.2 38 / 0.15);
}
.border {
    border: 1px solid var(--border);
}
.border-b {
    border-bottom: 1px solid var(--border);
}
.border-t {
    border-top: 1px solid var(--border);
}
.rounded-2xl {
    border-radius: 16px;
}
.rounded-xl {
    border-radius: 12px;
}
.rounded-lg {
    border-radius: 8px;
}
.rounded-full {
    border-radius: 9999px;
}
.rounded-3xl {
    border-radius: 24px;
}
.rounded-\[2rem\] {
    border-radius: 2rem;
}
.shadow-soft {
    box-shadow: var(--shadow-soft);
}
.shadow-card {
    box-shadow: var(--shadow-card);
}
.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 0 0 2rem 2rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../assets/logo.jpg") center / contain no-repeat;
    background-color: var(--background);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}
.hero-content {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    background: oklch(0.21 0.025 260 / 0.65);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.hero-location svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}
.hero-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-logo svg {
    width: 28px;
    height: 28px;
}
.hero-logo img {
    height: 28px;
    width: auto;
    display: block;
}
.hero-logo-text {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-notif {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: oklch(0.21 0.025 260 / 0.65);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
}
.hero-notif .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--primary);
}

.hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

/* ─── Search ─── */
.search-wrap {
    padding: 0 20px;
    margin-top: -24px;
    position: relative;
    z-index: 10;
}
.search-box {
    background: oklch(0.21 0.025 260 / 0.65);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--foreground);
    font-family: inherit;
}
.search-box input::placeholder {
    color: var(--muted-foreground);
}
.search-box svg {
    width: 16px;
    height: 16px;
    color: var(--muted-foreground);
}
.search-ai {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

/* ─── Services Grid ─── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 16px;
    font-weight: 600;
}
.section-header button {
    font-size: 12px;
    color: var(--muted-foreground);
    background: none;
    border: none;
    cursor: pointer;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
    padding: 0;
}
.service-btn:active {
    transform: scale(0.95);
}
.service-btn.selected .service-icon {
    ring: 2px solid var(--primary);
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: var(--shadow-soft);
}
.service-icon.selected {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.service-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--foreground);
}
.service-icon.empty {
    background: var(--secondary);
}

/* ─── Promo Banner ─── */
.promo-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-glow);
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
}
.promo-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
    line-height: 1.25;
    color: var(--primary-foreground);
}
.promo-card p {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.8;
    color: var(--primary-foreground);
}

/* ─── Store Card ─── */
.store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.store-card {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.1s;
    cursor: pointer;
}
.store-card:active {
    transform: scale(0.99);
}
.store-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--secondary);
}
.store-info {
    flex: 1;
    min-width: 0;
}
.store-name {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.store-meta {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
}
.store-category {
    font-size: 12px;
    color: var(--muted-foreground);
    margin-top: 2px;
}
.store-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-foreground);
}

/* ─── Notifications ─── */
.notif-dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 288px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    z-index: 50;
    box-shadow: var(--shadow-glow);
}
.notif-item {
    padding: 8px 0;
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-title {
    font-size: 14px;
    font-weight: 500;
}
.notif-body {
    font-size: 12px;
    color: var(--muted-foreground);
}
.notif-time {
    font-size: 10px;
    color: var(--muted-foreground);
    opacity: 0.6;
    margin-top: 2px;
}

/* ─── Cards ─── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

/* ─── Tables ─── */
.table-wrap {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
    white-space: nowrap;
}
th {
    font-weight: 600;
    color: var(--muted-foreground);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
tr:hover td {
    background: oklch(1 0 0 / 0.02);
}

/* ─── Badges ─── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.badge.onway,
.badge.Onway {
    background: #fef3c7;
    color: #d97706;
}
.badge.preparing,
.badge.Preparing {
    background: #dbeafe;
    color: #2563eb;
}
.badge.delivered,
.badge.Delivered {
    background: #dcfce7;
    color: #16a34a;
}
.badge.pending,
.badge.Pending {
    background: #f3e8ff;
    color: #9333ea;
}
.badge.confirmed,
.badge.Confirmed {
    background: #dbeafe;
    color: #2563eb;
}
.badge.cancelled,
.badge.Cancelled {
    background: #fef2f2;
    color: #dc2626;
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: var(--card);
    color: var(--foreground);
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
}
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap input {
    padding-left: 40px;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted-foreground);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    font-family: inherit;
}
.btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}
.btn-block {
    width: 100%;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}
.btn-danger {
    background: oklch(0.65 0.24 25 / 0.15);
    color: var(--destructive);
}

/* ─── Modal / Bottom Sheet ─── */
.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    display: none;
}
.sheet-overlay.open {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.sheet {
    background: var(--card);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    padding-bottom: 96px;
    max-height: 80vh;
    overflow-y: auto;
}
.sheet-handle {
    width: 48px;
    height: 4px;
    background: var(--muted);
    border-radius: 9999px;
    margin: 0 auto 16px;
}
.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.sheet-header h2 {
    font-size: 18px;
    font-weight: 700;
}
.sheet-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

/* ─── Wallet ─── */
.wallet-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-glow);
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}
.wallet-card .glow {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(40px);
}
.wallet-card .label {
    font-size: 12px;
    opacity: 0.8;
}
.wallet-card .balance {
    font-size: 36px;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -0.02em;
}
.wallet-card .balance .cents {
    font-size: 20px;
    opacity: 0.7;
}
.wallet-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(8px);
}
.wallet-btn.primary {
    background: rgba(0, 0, 0, 0.25);
    color: var(--primary-foreground);
}
.wallet-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-foreground);
}

/* ─── Stat ─── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

/* ─── Menu Items ─── */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}
.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--secondary);
    display: grid;
    place-items: center;
    font-size: 20px;
}
.menu-info {
    flex: 1;
    min-width: 0;
}
.menu-name {
    font-size: 14px;
    font-weight: 500;
}
.menu-price {
    font-size: 12px;
    color: var(--muted-foreground);
    margin-top: 2px;
}

/* ─── Quantity ─── */
.qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: var(--secondary);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.1s;
}
.qty-btn:active {
    transform: scale(0.9);
}
.qty-btn.primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}
.qty-num {
    font-size: 14px;
    font-weight: 600;
    width: 20px;
    text-align: center;
}

/* ─── Floating Cart ─── */
.cart-bar {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 448px;
    z-index: 40;
}
.cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    font-family: inherit;
}
.cart-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ─── Tracking ─── */
.track-map {
    position: relative;
    height: 44vh;
    overflow: hidden;
}
.track-map-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, oklch(0.72 0.2 38 / 0.25), transparent 50%),
        radial-gradient(circle at 70% 70%, oklch(0.74 0.16 195 / 0.2), transparent 55%),
        oklch(0.21 0.025 260);
}
.track-back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: oklch(0.21 0.025 260 / 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid oklch(1 0 0 / 0.06);
    display: grid;
    place-items: center;
}
.track-body {
    margin-top: -32px;
    position: relative;
    background: var(--background);
    border-radius: 2rem 2rem 0 0;
    padding: 20px;
    padding-bottom: 128px;
}

/* ─── Timeline ─── */
.timeline {
    position: relative;
}
.timeline-line {
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}
.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}
.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    z-index: 10;
}
.timeline-dot.done {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}
.timeline-dot.active {
    background: oklch(0.72 0.2 38 / 0.2);
    outline: 2px solid var(--primary);
}
.timeline-dot.pending {
    background: var(--muted);
}
.timeline-label {
    font-size: 14px;
}
.timeline-label.done,
.timeline-label.active {
    color: var(--foreground);
    font-weight: 500;
}
.timeline-label.pending {
    color: var(--muted-foreground);
}
.timeline-time {
    font-size: 12px;
    color: var(--muted-foreground);
}

/* ─── Rider Card ─── */
.rider-card {
    background: oklch(0.21 0.025 260 / 0.65);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rider-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: var(--gradient-primary);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-foreground);
}

/* ─── Login / Register ─── */
.auth-page {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
}

/* ─── Buttons Grid ─── */
.amount-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.amount-btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    background: var(--secondary);
    color: var(--foreground);
}
.amount-btn.selected {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

/* ─── Payment ─── */
.payment-confirm {
    background: var(--secondary);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

/* ─── Profile ─── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}
.menu-group-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-foreground);
    margin-bottom: 8px;
    padding: 0 4px;
}
.menu-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}
.menu-group .menu-group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    color: var(--foreground);
    text-align: left;
    font-family: inherit;
}
.menu-group .menu-group-item:last-child {
    border-bottom: none;
}
.menu-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--secondary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.menu-group-icon svg {
    width: 16px;
    height: 16px;
}

/* ─── Toggle ─── */
.toggle {
    width: 48px;
    height: 24px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
    flex-shrink: 0;
}
.toggle.on {
    background: var(--gradient-primary);
}
.toggle.off {
    background: var(--muted);
}
.toggle-knob {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 2px;
    transition: transform 0.15s;
}
.toggle.on .toggle-knob {
    transform: translateX(24px);
}
.toggle.off .toggle-knob {
    transform: translateX(2px);
}

/* ─── Order Card ─── */
.order-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    display: block;
    transition: transform 0.1s;
}
.order-card:active {
    transform: scale(0.99);
}
.progress-bar {
    height: 4px;
    background: var(--muted);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 12px;
}
.progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--gradient-primary);
}

/* ─── Prompts ─── */
.empty-state {
    text-align: center;
    padding: 48px 0;
}
.empty-state p {
    color: var(--muted-foreground);
    font-size: 14px;
    margin-top: 8px;
}

/* ─── Auth Guest Banner ─── */
.guest-banner {
    background: oklch(0.21 0.025 260 / 0.65);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 0 20px 20px;
}
.guest-banner p {
    font-size: 14px;
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

/* ─── Loading ─── */
.loading {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid oklch(1 0 0 / 0.1);
    border-top-color: var(--primary);
    border-radius: 9999px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Alert ─── */
.alert {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert.error {
    background: oklch(0.65 0.24 25 / 0.15);
    color: var(--destructive);
    border: 1px solid oklch(0.65 0.24 25 / 0.3);
}
.alert.success {
    background: oklch(0.74 0.17 155 / 0.15);
    color: var(--success);
    border: 1px solid oklch(0.74 0.17 155 / 0.3);
}
.alert.info {
    background: oklch(0.74 0.16 195 / 0.15);
    color: var(--accent);
    border: 1px solid oklch(0.74 0.16 195 / 0.3);
}
