/* ═══════════════════════════════════════════════════════════════════
   Code N Curry — Modern Design System
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --accent: #FF6B35;
    --accent-hover: #E85A24;
    --accent-light: #FFF4EE;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --accent-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8F65 100%);
    --accent-gradient-v: linear-gradient(180deg, #FF6B35 0%, #FF8F65 100%);

    --text-primary: #1C1C28;
    --text-secondary: #6E6E80;
    --text-muted: #A0A0B0;

    --bg-page: #F7F7FA;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-input: #F5F5FA;

    --border: #EBEBF0;
    --border-focus: var(--accent);

    --success: #22C55E;
    --success-light: #F0FDF4;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --info: #3B82F6;
    --info-light: #EFF6FF;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-glow: 0 4px 24px var(--accent-glow);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-size: 15px;
}

h1, h2, h3, h4 { line-height: 1.2; }
h1:focus { outline: none; }

a, .btn-link { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ─── Blazor Internals ───────────────────────────────────────────── */
.btn-primary {
    color: #fff;
    background-color: var(--accent);
    border-color: var(--accent-hover);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--accent);
}
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger); }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ─── Loading Screen ─────────────────────────────────────────────── */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}
.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 4px;
}
.loading-logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}
.loading-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

code { color: #c02d76; }
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder { color: var(--bs-secondary-color); text-align: end; }
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder { text-align: start; }

/* ═══════════════════════════════════════════════════════════════════
   Page Header — Gradient with depth
   ═══════════════════════════════════════════════════════════════════ */
.page-header {
    background: var(--accent-gradient);
    color: white;
    padding: 48px 24px 28px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.page-header p {
    font-size: 0.88rem;
    opacity: 0.85;
    margin: 4px 0 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   Cards — Elevated surfaces
   ═══════════════════════════════════════════════════════════════════ */
.card-rounded {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.25s var(--ease-out);
}

/* ═══════════════════════════════════════════════════════════════════
   Search Bar — Floating with icon
   ═══════════════════════════════════════════════════════════════════ */
.search-bar {
    padding: 14px 16px 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-page) 80%, transparent);
}
.search-bar input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.93rem;
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A0A0B0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 16px center;
    outline: none;
    transition: all 0.25s var(--ease-out);
    box-shadow: var(--shadow-xs);
    font-family: inherit;
}
.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm), 0 0 0 3px var(--accent-glow);
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════
   Category Section
   ═══════════════════════════════════════════════════════════════════ */
.category-section {
    padding: 0 16px;
    margin-bottom: 8px;
    animation: fadeInUp 0.4s var(--ease-out) both;
}
.category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 12px;
    padding-left: 4px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-gradient-v);
    border-radius: 2px;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════
   Item Card — Modern elevated card
   ═══════════════════════════════════════════════════════════════════ */
.item-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    transition: all 0.25s var(--ease-out);
}
.item-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.item-info { flex: 1; min-width: 0; }
.item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.item-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.93rem;
    margin-top: 4px;
}
.item-unavailable { opacity: 0.45; pointer-events: none; }
.item-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
    letter-spacing: 0.01em;
}
.badge-out { background: var(--danger-light); color: var(--danger); }
.badge-low { background: var(--warning-light); color: var(--warning); }

/* ─── Size Picker ─────────────────────────────────────────────────── */
.size-picker { margin-top: 8px; }
.size-picker select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}
.size-picker select:focus { border-color: var(--accent); outline: none; }

/* ═══════════════════════════════════════════════════════════════════
   Add / Stepper Buttons
   ═══════════════════════════════════════════════════════════════════ */
.add-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease-out);
    font-family: inherit;
    box-shadow: var(--shadow-glow);
}
.add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
}
.add-btn:active { transform: scale(0.97); }
.add-btn:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}
.stepper button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.stepper button:hover { background: var(--accent-hover); }
.stepper button:active { transform: scale(0.93); }
.stepper button:disabled { background: var(--border); cursor: not-allowed; }
.stepper span {
    padding: 0 14px;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   Cart Page
   ═══════════════════════════════════════════════════════════════════ */
.cart-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s var(--ease-out);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.cart-item-size { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.cart-item-price { color: var(--accent); font-weight: 700; font-size: 0.93rem; margin-top: 4px; }

.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-top: 2px solid var(--border);
    padding-top: 14px;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   Primary Action Button — Bold CTA
   ═══════════════════════════════════════════════════════════════════ */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.25s var(--ease-out);
    font-family: inherit;
    box-shadow: var(--shadow-glow);
    letter-spacing: -0.01em;
    gap: 8px;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
    color: white;
}
.action-btn:active { transform: translateY(0); }
.action-btn:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.action-btn-outline {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.25s var(--ease-out);
    font-family: inherit;
}
.action-btn-outline:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════
   Empty State
   ═══════════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 72px 24px;
    animation: fadeInUp 0.5s var(--ease-out);
}
.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
    animation: float 3s ease-in-out infinite;
}
.empty-state h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.empty-state p { color: var(--text-secondary); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════
   Checkout / Address Cards
   ═══════════════════════════════════════════════════════════════════ */
.address-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}
.address-card:hover { border-color: var(--accent); }
.address-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.address-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.address-name { font-weight: 600; color: var(--text-primary); }
.address-detail { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }

/* ─── Payment Method Cards ────────────────────────────────────────── */
.payment-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 14px;
}
.payment-option:hover { border-color: var(--accent); }
.payment-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.payment-icon { font-size: 1.6rem; }
.payment-label { font-weight: 600; color: var(--text-primary); font-size: 0.93rem; }
.payment-desc { font-size: 0.8rem; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════
   Orders
   ═══════════════════════════════════════════════════════════════════ */
.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.25s var(--ease-out);
    animation: fadeInUp 0.4s var(--ease-out) both;
}
.order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.order-number { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); letter-spacing: -0.01em; }
.order-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.order-status {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-pending     { background: var(--warning-light); color: #D97706; }
.status-confirmed   { background: var(--info-light);    color: #2563EB; }
.status-preparing   { background: #F0FDF4;              color: #16A34A; }
.status-outfordelivery { background: #ECFEFF;           color: #0891B2; }
.status-delivered   { background: var(--success-light);  color: #15803D; }
.status-cancelled   { background: var(--danger-light);   color: #DC2626; }

.order-items { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    color: var(--text-secondary);
}
.order-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 8px;
    font-size: 0.95rem;
}
.order-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.order-meta strong { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════
   Account
   ═══════════════════════════════════════════════════════════════════ */
.account-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.account-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 14px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg-card);
}
.account-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.account-email { font-size: 0.88rem; color: var(--text-secondary); margin-top: 2px; }

.menu-list { padding: 0; margin-top: 4px; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s var(--ease-out);
    border: 1px solid var(--border);
}
.menu-item:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    transform: translateX(4px);
}
.menu-item .icon { font-size: 1.3rem; flex-shrink: 0; }
.menu-item.danger { color: var(--danger); border-color: transparent; }
.menu-item.danger:hover { background: var(--danger-light); transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════════
   Login Page
   ═══════════════════════════════════════════════════════════════════ */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding: 24px;
    text-align: center;
    animation: fadeInUp 0.5s var(--ease-out);
}
.login-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: contain;
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}
.login-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}
.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1rem;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 36px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.25s var(--ease-out);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}
.google-btn:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.google-btn:active { transform: translateY(0); }
.google-btn img { width: 24px; height: 24px; }

/* ═══════════════════════════════════════════════════════════════════
   Form Styles
   ═══════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--bg-input);
    outline: none;
    transition: all 0.2s var(--ease-out);
    box-sizing: border-box;
    font-family: inherit;
    color: var(--text-primary);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════
   Alert / Toast
   ═══════════════════════════════════════════════════════════════════ */
.alert-bar {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s var(--ease-out);
}
.alert-bar.success { background: var(--success-light); color: #15803D; border: 1px solid #BBF7D0; }
.alert-bar.error   { background: var(--danger-light);  color: #DC2626; border: 1px solid #FECACA; }
.alert-bar.warning { background: var(--warning-light); color: #D97706; border: 1px solid #FDE68A; }

/* ─── Store Closed Banner ─────────────────────────────────────────── */
.store-closed-banner {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    text-align: center;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 1px solid #FDE68A;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   Spinner
   ═══════════════════════════════════════════════════════════════════ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner-dark {
    border: 3px solid var(--border);
    border-top-color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Section Title ───────────────────────────────────────────────── */
.section-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 24px 0 12px;
    letter-spacing: -0.01em;
}

/* ─── Notes Input ─────────────────────────────────────────────────── */
.notes-input {
    width: 100%;
    min-height: 80px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    background: var(--bg-input);
    transition: all 0.2s var(--ease-out);
    color: var(--text-primary);
}
.notes-input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════════
   Modal / Overlay
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}
.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s var(--ease-spring);
}

/* ─── Floating Cart Bar ───────────────────────────────────────────── */
.floating-cart-bar {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: 568px;
    margin: 0 auto;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(255,107,53,0.3);
    transition: all 0.25s var(--ease-out);
    animation: slideUp 0.4s var(--ease-spring);
}
.floating-cart-bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255,107,53,0.4);
    color: white;
}

/* ─── Refresh Button (header) ─────────────────────────────────────── */
.refresh-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}
.refresh-btn:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

/* ─── Bottom Tab Bar (global — scoped CSS can't reach inline SVGs) ─ */
.bottom-tabs {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
}

.bottom-tabs .tab-item {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom-tabs .tab-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: stroke-width 0.2s ease;
}

.bottom-tabs .tab-item.active .tab-icon svg {
    stroke-width: 2.2;
}

/* ═══════════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive — Desktop
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .app-main { max-width: 640px; margin: 0 auto; width: 100%; }
    .bottom-tabs {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .floating-cart-bar { max-width: 608px; }
    .page-header { padding-top: 40px; }
}

@media (min-width: 1024px) {
    .app-main { max-width: 720px; }
    .bottom-tabs { max-width: 720px; }
    .floating-cart-bar { max-width: 688px; }
}
