/* ═══════════════════════════════════════════════
   Pixcastcoffee — Futuristic Dark Theme
   ═══════════════════════════════════════════════ */

:root {
    --gold: #F2A63E;
    --gold-dark: #D4922A;
    --gold-glow: rgba(242, 166, 62, 0.28);
    --gold-dim: rgba(242, 166, 62, 0.10);
    --bg: #08090F;
    --bg-2: #0E1018;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-border-gold: rgba(242, 166, 62, 0.30);
    --text: #EEEAE0;
    --text-dim: rgba(238, 234, 224, 0.50);
    --red: #FF4757;
    --green: #2ED573;
    --cyan: #00D2FF;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 28px var(--gold-glow);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-height: 60px;
    --bottom-nav-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #08090F; }
img { display: block; vertical-align: bottom; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(242,166,62,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(242,166,62,0.03) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 12px var(--gold-glow); }
    50%       { box-shadow: 0 0 28px var(--gold-glow), 0 0 48px rgba(242,166,62,0.12); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ─── Top Nav ─────────────────────────────── */

.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: #08090F;
    box-shadow: 0 1px 0 #08090F, 0 2px 0 #08090F;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.brand { font-weight: 800; font-size: 20px; color: var(--gold); letter-spacing: -0.3px; }
.back-btn { display: flex; align-items: center; color: var(--gold); padding: 6px; }
.page-title { font-weight: 600; font-size: 17px; margin-left: 8px; color: var(--text); }
.nav-left { display: flex; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.cart-btn { position: relative; color: var(--text); display: flex; padding: 8px; }

.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--gold);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ─── Bottom Nav ──────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: rgba(8, 9, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px;
    color: rgba(255,255,255,0.30);
    font-size: 10px; font-weight: 500;
    transition: color 0.2s;
    padding: 6px 14px;
}

.nav-item.active { color: var(--gold); }
.nav-item.active svg { filter: drop-shadow(0 0 5px var(--gold-glow)); }
.nav-item svg { width: 22px; height: 22px; }

/* ─── Hero ────────────────────────────────── */

.hero {
    padding: 36px 20px 28px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(242,166,62,0.07) 0%, transparent 60%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(242,166,62,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 28px; font-weight: 800; margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.4s ease;
}

.hero-sub { font-size: 16px; color: var(--text-dim); animation: fadeUp 0.5s ease; }

/* ─── Sections ────────────────────────────── */

.section { padding: 20px 16px 8px; }
.section-title { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--text); }

/* ─── Featured Scroll ─────────────────────── */

.featured-scroll {
    display: flex; gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.featured-card:active { transform: scale(0.96); border-color: var(--glass-border-gold); }

.featured-img {
    width: 100%; height: 160px;
    background: linear-gradient(135deg, var(--gold-dim), rgba(0,0,0,0.3));
    background-size: cover; background-position: center;
}

.featured-info { padding: 10px 12px; }
.featured-info h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.featured-info p { font-size: 13px; color: var(--gold); font-weight: 700; }

/* ─── Fav Button ──────────────────────────── */

.fav-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.55);
    border: none; border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: transform 0.2s;
    z-index: 2; color: var(--text-dim);
}

.fav-btn:active { transform: scale(1.25); }

/* ─── Category Grid ───────────────────────── */

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.category-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px 16px;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.category-card:active { transform: scale(0.96); border-color: var(--glass-border-gold); background: var(--glass-hover); }
.category-icon { font-size: 32px; }
.category-name { font-size: 13px; font-weight: 600; color: var(--text); text-align: center; }

/* ─── Recommendations ─────────────────────── */

.recs-section { padding: 0 16px 16px; }

.recs-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: var(--gold-dim);
    border: 1px solid var(--glass-border-gold);
    border-radius: 20px;
    font-size: 11px; font-weight: 700; color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 0.4px;
}

/* ─── Category Tabs ───────────────────────── */

.category-tabs, .filter-tabs {
    display: flex; gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar,
.filter-tabs::-webkit-scrollbar { display: none; }

.tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px; font-weight: 600;
    background: var(--glass);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
    white-space: nowrap;
}

.tab.active {
    background: var(--gold); color: #000;
    border-color: var(--gold); font-weight: 800;
    box-shadow: var(--shadow-gold);
}

/* ─── Items List ──────────────────────────── */

.items-list { padding: 0 16px 16px; }

.item-card {
    display: flex;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.item-card:active { transform: scale(0.98); border-color: var(--glass-border-gold); }

.item-img {
    width: 100px; min-height: 100px;
    background: linear-gradient(135deg, var(--gold-dim), rgba(0,0,0,0.2));
    background-size: cover; background-position: center;
    flex-shrink: 0;
}

.item-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.item-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.item-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; line-height: 1.4; }
.item-price { font-size: 15px; font-weight: 700; color: var(--gold); }

/* ─── Item Detail ─────────────────────────── */

.item-detail-img {
    width: 100%; height: 240px;
    background: linear-gradient(135deg, rgba(242,166,62,0.12), rgba(0,0,0,0.4));
    background-size: cover; background-position: center;
}

.item-detail-body { padding: 20px 16px; }
.item-detail-body h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.item-detail-desc { font-size: 15px; color: var(--text-dim); margin-bottom: 8px; }

.item-detail-price {
    font-size: 26px; font-weight: 800; color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--gold-glow);
}

/* ─── Options ─────────────────────────────── */

.option-group { margin-bottom: 22px; }

.option-group h3 {
    font-size: 12px; font-weight: 700; margin-bottom: 10px;
    color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.size-options { display: flex; gap: 8px; flex-wrap: wrap; }

.size-btn {
    flex: 1; min-width: 90px;
    padding: 10px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass); color: var(--text);
    text-align: center; transition: all 0.2s;
}

.size-btn.selected { border-color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 12px var(--gold-glow); }
.size-name { display: block; font-size: 13px; font-weight: 600; }
.size-extra { display: block; font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.custom-options { display: flex; flex-direction: column; gap: 6px; }

.custom-option {
    display: flex; align-items: center;
    padding: 12px 14px;
    background: var(--glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    cursor: pointer; transition: all 0.2s;
}

.custom-option:has(input:checked) { border-color: var(--gold); background: var(--gold-dim); }
.custom-option input { margin-right: 10px; accent-color: var(--gold); width: 18px; height: 18px; }
.custom-label { flex: 1; font-size: 14px; color: var(--text); }
.custom-extra { font-size: 12px; color: var(--text-dim); }

/* ─── Quantity ────────────────────────────── */

.qty-control { display: flex; align-items: center; gap: 20px; }

.qty-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--glass-border-gold);
    background: var(--gold-dim); color: var(--gold);
    font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}

.qty-btn:active { background: var(--gold); color: #000; }
.qty-value { font-size: 20px; font-weight: 700; min-width: 30px; text-align: center; color: var(--text); }

/* ─── Primary Buttons ─────────────────────── */

.add-to-cart-btn, .place-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--gold); color: #000;
    border: none; border-radius: 24px;
    font-size: 16px; font-weight: 800;
    margin-top: 20px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px var(--gold-glow);
    letter-spacing: 0.3px;
}

.add-to-cart-btn:active, .place-order-btn:active { transform: scale(0.98); box-shadow: 0 2px 10px var(--gold-glow); }
.place-order-btn:disabled { background: rgba(255,255,255,0.15); color: var(--text-dim); box-shadow: none; }

.browse-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gold); color: #000;
    border: none; border-radius: 24px;
    font-size: 14px; font-weight: 800;
    box-shadow: 0 4px 16px var(--gold-glow);
    transition: all 0.2s;
}

.auth-btn {
    width: 100%; padding: 16px;
    background: var(--gold); color: #000;
    border: none; border-radius: 24px;
    font-size: 16px; font-weight: 800;
    margin-top: 8px;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: all 0.2s;
}

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

/* ─── Cart ────────────────────────────────── */

.cart-page { padding: 16px; }
.loading { text-align: center; padding: 40px; color: var(--text-dim); }

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item-info h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.cart-item-details { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.cart-item-right { display: flex; align-items: center; gap: 12px; }
.cart-item-price { font-weight: 700; color: var(--gold); }

.cart-remove {
    background: rgba(255,71,87,0.12);
    border: 1px solid rgba(255,71,87,0.25);
    font-size: 16px; color: var(--red);
    padding: 6px 10px; border-radius: 8px;
    transition: background 0.2s;
}

/* ─── Schedule Section ────────────────────── */

.schedule-section {
    margin-top: 16px; padding: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.schedule-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.schedule-toggle input[type=checkbox] { accent-color: var(--gold); width: 18px; height: 18px; }
.schedule-toggle label { font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.schedule-time-input { margin-top: 12px; display: none; }
.schedule-time-input.visible { display: block; }
.schedule-time-input p { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }

.time-input {
    width: 100%; padding: 12px 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border-gold);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 15px; font-family: inherit;
    color-scheme: dark;
}

.time-input:focus { outline: none; border-color: var(--gold); }

/* ─── Order Summary ───────────────────────── */

.order-summary {
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px; margin-top: 16px;
}

.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-dim); }

.summary-row.total {
    border-top: 1px solid var(--glass-border);
    padding-top: 10px; margin-top: 4px;
    font-size: 17px; font-weight: 800; color: var(--text);
}

/* ─── Pickup Section ──────────────────────── */

.pickup-section { margin-top: 16px; }

.pickup-section label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--text-dim); margin-bottom: 4px; margin-top: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.pickup-section input, .pickup-section textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
    background: var(--glass); color: var(--text);
    transition: border-color 0.2s;
}

.pickup-section input:focus, .pickup-section textarea:focus { outline: none; border-color: var(--gold); }

/* ─── Order Status Tracker ────────────────── */

.order-detail-page { padding: 16px; }

.status-tracker {
    background: var(--glass); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 24px 16px;
    margin-bottom: 16px; animation: fadeUp 0.4s ease;
}

.status-bar { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

.status-step { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.28; transition: opacity 0.4s; }
.status-step.active { opacity: 1; }
.status-step.current .status-dot { animation: glow 2s ease-in-out infinite; }

.status-dot {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 50%; transition: all 0.3s;
}

.status-step.active .status-dot {
    background: var(--gold); border-color: var(--gold); color: #000;
    box-shadow: 0 0 16px var(--gold-glow);
}

.status-label { font-size: 9px; font-weight: 700; text-align: center; max-width: 60px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px; }
.status-step.active .status-label { color: var(--gold); }

.status-line { width: 20px; height: 2px; background: var(--glass-border); margin: 0 4px; margin-bottom: 26px; border-radius: 2px; transition: background 0.4s; }
.status-line.active { background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }

.status-message { text-align: center; font-size: 14px; color: var(--gold); font-weight: 600; padding: 8px 12px; background: var(--gold-dim); border-radius: 10px; animation: fadeUp 0.4s ease; }

/* ─── QR Code ─────────────────────────────── */

.qr-section {
    background: var(--glass);
    border: 1px solid var(--glass-border-gold);
    border-radius: var(--radius); padding: 24px;
    text-align: center; margin-bottom: 16px;
    animation: fadeUp 0.4s ease;
}

.qr-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.qr-section p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }

.qr-wrap {
    display: inline-block; padding: 12px;
    background: white; border-radius: 12px;
    box-shadow: 0 0 24px var(--gold-glow);
}

/* ─── Order Items ─────────────────────────── */

.order-items-section {
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 16px; margin-bottom: 12px; animation: fadeUp 0.45s ease;
}

.order-items-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px; }

.order-item-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--glass-border); color: var(--text); }
.order-item-row small { color: var(--text-dim); }

.order-total-row { display: flex; justify-content: space-between; padding-top: 12px; font-size: 17px; font-weight: 800; color: var(--text); }

.pickup-info { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; font-size: 14px; line-height: 2; color: var(--text-dim); animation: fadeUp 0.5s ease; }
.pickup-info strong { color: var(--text); }

/* ─── Orders List ─────────────────────────── */

.orders-list { padding: 0 16px; }

.order-card {
    display: block;
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 10px;
    transition: border-color 0.2s;
}

.order-card:active { border-color: var(--glass-border-gold); }
.order-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-number { font-weight: 700; font-size: 15px; color: var(--text); }

.order-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
.status-received  { background: rgba(242,166,62,0.15); color: var(--gold); }
.status-preparing { background: rgba(0,210,255,0.12);  color: var(--cyan); }
.status-ready     { background: rgba(46,213,115,0.15); color: var(--green); box-shadow: 0 0 8px rgba(46,213,115,0.2); animation: statusPulse 2s infinite; }
.status-picked_up { background: rgba(255,255,255,0.07); color: var(--text-dim); }
.status-cancelled { background: rgba(255,71,87,0.12);  color: var(--red); }

.order-card-items { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.order-card-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.order-date  { color: var(--text-dim); }
.order-total { font-weight: 700; color: var(--gold); }

.reorder-btn {
    padding: 6px 14px;
    background: var(--gold-dim); border: 1px solid var(--glass-border-gold);
    border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--gold);
    cursor: pointer; transition: all 0.2s;
}

.reorder-btn:active { background: var(--gold); color: #000; }

/* ─── Auth Pages ──────────────────────────── */

.auth-page { display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; }

.auth-card { width: 100%; max-width: 380px; text-align: center; animation: fadeUp 0.4s ease; }
.auth-logo { font-size: 48px; margin-bottom: 12px; }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.auth-sub { color: var(--text-dim); margin-bottom: 24px; }
.auth-form { text-align: left; }

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--text-dim); margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.form-group input {
    width: 100%; padding: 14px;
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
    background: var(--glass); color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus { outline: none; border-color: var(--gold); }
.auth-switch { margin-top: 20px; font-size: 14px; color: var(--text-dim); }
.auth-switch a { color: var(--gold); font-weight: 600; }

/* ─── Promo Banner ────────────────────────── */

.promo-banner {
    background: linear-gradient(135deg, rgba(242,166,62,0.10), rgba(242,166,62,0.04));
    border: 1px solid var(--glass-border-gold); border-radius: var(--radius); padding: 20px;
}

.promo-text h3 { font-size: 17px; margin-bottom: 4px; color: var(--text); }
.promo-text p  { font-size: 14px; color: var(--text-dim); }

/* ─── Account Drawer ──────────────────────── */

.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 200; opacity: 0; pointer-events: none;
    transition: opacity 0.3s; backdrop-filter: blur(4px);
}

.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(12, 14, 22, 0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: 20px 20px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 70vh; overflow-y: auto;
}

.drawer.open { transform: translateY(0); }

.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--glass-border); }
.drawer-header h2 { font-size: 20px; color: var(--text); }
.drawer-close { background: var(--glass); border: 1px solid var(--glass-border); font-size: 18px; color: var(--text-dim); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.drawer-body { padding: 20px; }

.reward-card {
    background: linear-gradient(135deg, rgba(242,166,62,0.14), rgba(242,166,62,0.05));
    border: 1px solid var(--glass-border-gold); border-radius: var(--radius);
    padding: 20px; text-align: center; margin-bottom: 20px;
    position: relative; overflow: hidden;
}

.reward-card::after { content: '✦'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 40px; color: var(--gold); opacity: 0.12; }
.reward-stars { font-size: 40px; font-weight: 900; color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }
.reward-label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.reward-tier {
    display: inline-block; margin-top: 6px;
    padding: 3px 10px;
    background: var(--gold-dim); border: 1px solid var(--glass-border-gold);
    border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--gold);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.drawer-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--glass-border); font-size: 15px; font-weight: 500; color: var(--text); }
.logout-link { color: var(--red) !important; }

/* ─── Flash Messages ──────────────────────── */

.flash-container { padding: 8px 16px; }
.flash { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 8px; }
.flash-error   { background: rgba(255,71,87,0.12); color: var(--red); border: 1px solid rgba(255,71,87,0.25); }
.flash-success { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--glass-border-gold); }

/* ─── Toast ───────────────────────────────── */

.toast {
    position: fixed; bottom: 90px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(12, 14, 22, 0.96);
    border: 1px solid var(--glass-border-gold);
    color: var(--text); padding: 12px 24px; border-radius: 24px;
    font-size: 14px; font-weight: 600;
    z-index: 300; opacity: 0; transition: all 0.3s ease;
    pointer-events: none; white-space: nowrap;
    backdrop-filter: blur(16px); box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Empty State ─────────────────────────── */

.empty-state { text-align: center; padding: 48px 20px; animation: fadeUp 0.4s ease; }
.empty-icon { font-size: 56px; margin-bottom: 14px; }
.empty-state h2 { font-size: 18px; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }

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

.page-header { padding: 20px 16px 8px; }
.page-header h1 { font-size: 26px; font-weight: 800; color: var(--text); }

/* ─── Admin ───────────────────────────────── */

.admin-page { padding: 0 16px 16px; }

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

.stat-card { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px 12px; text-align: center; animation: fadeUp 0.35s ease; }
.stat-value { font-size: 20px; font-weight: 800; color: var(--gold); text-shadow: 0 0 12px var(--gold-glow); }
.stat-label { font-size: 10px; color: var(--text-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.3px; }

.admin-section { margin-bottom: 20px; }
.admin-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); text-transform: uppercase; letter-spacing: 0.4px; }

.admin-order-card { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; animation: fadeUp 0.35s ease; }
.admin-order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.admin-order-header strong { color: var(--text); }
.order-time { font-size: 12px; color: var(--text-dim); margin-left: 8px; }
.admin-order-items { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.admin-item-line { padding: 2px 0; color: var(--text); }
.admin-order-notes { font-style: italic; color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.admin-order-actions { display: flex; gap: 8px; margin-top: 8px; }
.admin-order-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-weight: 700; color: var(--text); }

.action-btn { padding: 8px 16px; border: none; border-radius: 20px; font-size: 13px; font-weight: 700; color: #000; background: var(--gold); box-shadow: 0 4px 12px var(--gold-glow); transition: all 0.2s; }
.action-btn:active { transform: scale(0.97); }
.action-btn.preparing { background: var(--cyan); box-shadow: 0 4px 12px rgba(0,210,255,0.3); }
.action-btn.ready     { background: var(--gold); }
.action-btn.picked-up { background: rgba(255,255,255,0.15); color: var(--text); box-shadow: none; }

.admin-nav { display: flex; gap: 10px; margin-top: 20px; }
.admin-nav-link { flex: 1; padding: 14px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); text-align: center; font-weight: 700; font-size: 14px; color: var(--text); transition: border-color 0.2s; }
.admin-nav-link:active { border-color: var(--glass-border-gold); }

/* ─── Analytics ───────────────────────────── */

.analytics-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; animation: fadeUp 0.4s ease; }
.analytics-card h3 { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }

/* ─── Admin Menu ──────────────────────────── */

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-input { padding: 10px 12px; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--glass); color: var(--text); }
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input-sm { width: 60px; }
.admin-items-list { margin-bottom: 12px; }
.admin-menu-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
.admin-menu-item.unavailable { opacity: 0.4; }
.admin-item-info { font-size: 14px; color: var(--text); }
.admin-item-info strong { margin-right: 8px; }
.small-btn { padding: 4px 10px; font-size: 12px; border: 1px solid var(--glass-border); border-radius: 12px; background: var(--glass); color: var(--text); cursor: pointer; }
.add-item-form { margin-top: 8px; }
.add-item-form summary { font-size: 14px; font-weight: 600; color: var(--gold); cursor: pointer; padding: 8px 0; }
.form-stack { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.form-stack label { font-size: 13px; color: var(--text-dim); }

/* ─── Desktop nav — hidden by default ───── */

.desktop-nav-links { display: none; }

/* ─── Utilities ───────────────────────────── */

@media (min-width: 480px) {
    .main-content { max-width: 480px; margin: 0 auto; }
    body { background: #050508; }
    .bottom-nav, .top-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
}

/* ─── Tablet (768px+) ────────────────────── */

@media (min-width: 768px) {
    .main-content { max-width: 768px; }
    .bottom-nav, .top-nav { max-width: 768px; }

    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .featured-card { flex: 0 0 200px; }

    .items-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .item-card { margin-bottom: 0; }

    .hero h1 { font-size: 34px; }
    .hero { padding: 40px 24px 32px; }

    .admin-stats { grid-template-columns: repeat(4, 1fr); }

    .auth-page { padding: 60px 16px; }
    .auth-card { max-width: 440px; }
}

/* ─── Desktop (1024px+) ──────────────────── */

@media (min-width: 1024px) {
    :root {
        --nav-height: 70px;
    }

    body { padding-bottom: 24px; }

    .main-content { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
    .top-nav { max-width: 1100px; left: 50%; transform: translateX(-50%); padding: 0 24px; }
    .bottom-nav { display: none; }

    /* Desktop nav links */
    .desktop-nav-links { display: flex; gap: 4px; align-items: center; }
    .desktop-nav-links a {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-dim);
        transition: all 0.2s;
    }
    .desktop-nav-links a:hover { color: var(--text); background: var(--glass); }
    .desktop-nav-links a.active { color: var(--gold); background: var(--gold-dim); }

    /* Grids */
    .category-grid { grid-template-columns: repeat(6, 1fr); }
    .items-list { grid-template-columns: repeat(3, 1fr); }
    .admin-stats { grid-template-columns: repeat(5, 1fr); }

    /* Hover states (pointer devices) */
    .item-card:hover { transform: translateY(-2px); border-color: var(--glass-border-gold); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
    .category-card:hover { transform: translateY(-2px); border-color: var(--glass-border-gold); background: var(--glass-hover); }
    .featured-card:hover { transform: scale(0.98); border-color: var(--glass-border-gold); }
    .order-card:hover { border-color: var(--glass-border-gold); }
    .admin-nav-link:hover { border-color: var(--glass-border-gold); }
    .add-to-cart-btn:hover, .place-order-btn:hover { transform: scale(1.01); box-shadow: 0 6px 28px var(--gold-glow); }
    .action-btn:hover { transform: scale(1.02); }
    .reorder-btn:hover { background: var(--gold); color: #000; }
    .browse-btn:hover { transform: scale(1.02); box-shadow: 0 6px 20px var(--gold-glow); }

    /* Hero */
    .hero h1 { font-size: 42px; }
    .hero { padding: 52px 0 40px; }
    .hero-sub { font-size: 18px; }

    /* Item detail */
    .item-detail-img { height: 340px; }

    /* Admin */
    .admin-page { padding: 0 0 24px; }
    .admin-order-card { transition: border-color 0.2s; }
    .admin-order-card:hover { border-color: var(--glass-border-gold); }

    /* Auth */
    .auth-page { padding: 80px 16px; }
    .auth-card { max-width: 460px; }

    /* Toast position */
    .toast { bottom: 32px; }
}

/* ─── Logo white-edge fix ─────────────────── */
.hero > img {
    display: block;
    margin: 0 auto 12px;
    border: 3px solid var(--bg);
}
.top-nav .brand img {
    display: block;
    border: 2px solid #08090F;
}
