:root {
    --primary: #1b1d2a;
    --primary-light: #2d2f42;
    --accent: #c8a97e;
    --accent-light: #e8d5b5;
    --green: #34a853;
    --green-dark: #2d9248;
    --bg: #f7f7f8;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tab-bar-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    overscroll-behavior: none;
    position: relative;
}

/* ============ AUTH SCREEN ============ */
.auth-screen {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--primary) 0%, #2a2c3e 50%, var(--primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.auth-header {
    text-align: center;
    padding-top: 80px;
    margin-bottom: 48px;
}

.auth-logo {
    font-size: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(200, 169, 126, 0.3));
}

.auth-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 16px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(200, 169, 126, 0.3));
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
}

.auth-form {
    width: 100%;
    max-width: 360px;
}

.auth-step { animation: fadeUp 0.35s ease; }

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-phone-row {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    margin-bottom: 20px;
    border: 1.5px solid rgba(255,255,255,0.1);
    transition: border-color var(--transition);
}

.auth-phone-row:focus-within {
    border-color: var(--accent);
}

.auth-phone-prefix {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-right: 8px;
    flex-shrink: 0;
}

.auth-phone-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    padding: 14px 0;
    outline: none;
    font-family: var(--font);
    letter-spacing: 0.5px;
}

.auth-phone-input::placeholder { color: rgba(255,255,255,0.3); }

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
    min-height: 50px;
    letter-spacing: 0.2px;
}

.auth-btn:active { transform: scale(0.97); opacity: 0.9; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-hint {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 16px;
    line-height: 1.5;
}

.auth-consent {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 12px;
    line-height: 1.6;
}

.auth-consent a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
}

.auth-code-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-code-digit {
    width: 58px;
    height: 64px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-family: var(--font);
    transition: border-color var(--transition);
    caret-color: var(--accent);
}

.auth-code-digit:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

.auth-code-phone {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

.auth-link {
    display: block;
    text-align: center;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    padding: 8px;
    min-height: 44px;
    line-height: 28px;
}

.auth-error {
    text-align: center;
    font-size: 14px;
    color: #ef4444;
    margin-top: 12px;
}

/* ============ BOTTOM TAB BAR ============ */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--tab-bar-height);
    background: var(--card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border);
    z-index: 500;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    padding: 6px 0;
    min-height: 44px;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.tab-bar-item.active {
    color: var(--accent);
}

.tab-bar-icon {
    font-size: 22px;
    line-height: 1;
}

.tab-bar-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ============ TAB CONTENT ============ */
.tab-content {
    display: none;
    padding-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0));
    min-height: 100vh;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.25s ease;
}

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

/* ============ PAGE HEADERS (Orders, Bonuses, Profile) ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.page-body {
    padding: 16px;
}

.refresh-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.refresh-btn:active { transform: rotate(180deg); }

/* ============ MENU HEADER ============ */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px 20px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.room-badge {
    background: rgba(200, 169, 126, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Search */
.search-wrap { position: relative; }

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 15px;
    outline: none;
    transition: background var(--transition);
    font-family: var(--font);
}

.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus { background: rgba(255,255,255,0.2); }

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 16px;
}

/* ============ CATEGORIES ============ */
.categories {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 102px;
    z-index: 99;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar { display: none; }

.cat-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    white-space: nowrap;
    min-height: 36px;
}

.cat-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cat-btn:active { transform: scale(0.95); }

/* ============ PRODUCTS ============ */
.products { padding: 8px 16px 100px; }

.group-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    align-items: stretch;
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    min-height: 110px;
    max-height: 140px;
}

.product-card:active { transform: scale(0.98); }

.product-img {
    width: 110px;
    height: 110px;
    min-height: 110px;
    max-height: 140px;
    background: #f0ebe3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent);
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    flex: 1;
    padding: 12px 14px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    overflow: hidden;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-weight {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* Add button */
.add-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(27, 29, 42, 0.3);
}

.add-btn:active { transform: scale(0.85); }

/* Quantity in card */
.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    border-radius: 20px;
    padding: 3px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    min-height: 36px;
}

.qty-btn:active { background: rgba(255,255,255,0.3); }

.qty-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
    min-width: 18px;
    text-align: center;
}

/* ============ CART BAR ============ */
.cart-bar {
    position: fixed;
    bottom: calc(var(--tab-bar-height) + 10px + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 32px);
    max-width: 448px;
    background: var(--green);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 400;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(52, 168, 83, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    min-height: 50px;
}

.cart-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cart-bar:active { transform: translateX(-50%) scale(0.97); }

.cart-bar-left { display: flex; align-items: center; gap: 10px; }

.cart-badge {
    background: rgba(255,255,255,0.25);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.cart-label { font-size: 15px; font-weight: 600; }
.cart-total { font-size: 17px; font-weight: 700; }

/* ============ CART MODAL ============ */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.visible { opacity: 1; visibility: visible; }

.cart-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border-radius: 20px 20px 0 0;
    z-index: 601;
    max-height: 85vh;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.cart-modal.visible { transform: translateX(-50%) translateY(0); }

.cart-handle {
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 10px auto 0;
}

.cart-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 { font-size: 20px; font-weight: 700; }

.cart-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    border: none;
    background: var(--bg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.cart-close:active { background: var(--border); }

.cart-items { padding: 0 20px; }

.cart-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 15px; font-weight: 500; }
.cart-item-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.cart-item-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
}

.cart-qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--card);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    min-height: 40px;
}

.cart-qty-btn:active { transform: scale(0.9); }
.cart-qty-btn.remove { color: #ef4444; }

.cart-qty-val { font-size: 15px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price { font-size: 15px; font-weight: 700; white-space: nowrap; min-width: 70px; text-align: right; }

.cart-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
}

.cart-summary { margin-bottom: 16px; }

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.cart-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.pay-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    background: var(--green);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
    letter-spacing: 0.2px;
    min-height: 52px;
}

.pay-btn:active { transform: scale(0.98); }
.pay-btn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

/* ============ SKELETON ============ */
.skeleton { padding: 16px; }

.skeleton-card {
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.skeleton-img {
    width: 110px;
    height: 110px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-body {
    flex: 1;
    padding: 14px 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; height: 18px; margin-top: auto; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============ ITEM DETAIL MODAL ============ */
.detail-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 700;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.detail-overlay.visible { opacity: 1; visibility: visible; }

.detail-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border-radius: 20px 20px 0 0;
    z-index: 701;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-modal.visible { transform: translateX(-50%) translateY(0); }

.detail-img {
    width: 100%;
    height: 220px;
    background: #f0ebe3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--accent);
    position: relative;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.detail-body { padding: 20px; }
.detail-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.detail-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }

.detail-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.detail-meta span { display: flex; align-items: center; gap: 4px; }

.detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border);
}

.detail-price { font-size: 22px; font-weight: 700; color: var(--primary); }

.detail-add-btn {
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    min-height: 44px;
}

.detail-add-btn:active { transform: scale(0.95); }

/* ============ CONFIRMATION OVERLAY ============ */
.confirmation-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 450;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
}

.confirm-card {
    background: var(--card);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    width: 100%;
    animation: fadeUp 0.5s ease;
}

.confirm-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(52, 168, 83, 0.3);
}

.confirm-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.confirm-text { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; }
.confirm-payment { margin-top: 8px; color: var(--accent) !important; }
.confirm-order-id { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ============ ORDER CARDS ============ */
.order-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.order-card-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-card-room {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge.yellow { background: #fef3c7; color: #92400e; }
.status-badge.green { background: #d1fae5; color: #065f46; }
.status-badge.gray { background: #f3f4f6; color: #6b7280; }
.status-badge.red { background: #fee2e2; color: #991b1b; }

.order-items-list {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-bottom: 10px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 3px 0;
}

.order-item-row span:first-child {
    flex: 1;
    margin-right: 8px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.bonus-earned {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(200,169,126,0.15), rgba(200,169,126,0.08));
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

/* ============ BONUS SECTION ============ */
.bonus-card {
    background: linear-gradient(135deg, var(--primary) 0%, #3a3d56 100%);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(200,169,126,0.2), transparent 70%);
    border-radius: 50%;
}

.bonus-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(200,169,126,0.1), transparent 70%);
    border-radius: 50%;
}

.bonus-points {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.bonus-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.bonus-rate {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1;
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.promo-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.promo-info { flex: 1; }

.promo-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.promo-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.promo-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============ PROFILE ============ */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 8px auto 20px;
    box-shadow: var(--shadow-md);
}

.profile-field {
    margin-bottom: 16px;
}

.profile-field-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.profile-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    min-height: 48px;
}

.profile-input:focus { border-color: var(--accent); }

.profile-input.readonly {
    background: var(--bg);
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.profile-stat {
    flex: 1;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
}

.profile-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-save-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
    margin-bottom: 12px;
    min-height: 50px;
}

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

.logout-btn {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #ef4444;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #ef4444;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
    min-height: 50px;
}

.logout-btn:active { background: #fef2f2; }

/* ============ CONTACT LINKS ============ */
.profile-contact-links {
    display: flex;
    gap: 10px;
    margin: 24px 0 0;
}

.contact-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.contact-link:active { background: #f9fafb; }

.contact-icon {
    font-size: 16px;
}

/* ============ LEGAL LINKS ============ */
.legal-links {
    margin: 16px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.legal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.legal-link:last-child { border-bottom: none; }

.legal-link:active { background: #f9fafb; }

.legal-link::after {
    content: '\203A';
    font-size: 18px;
    color: #d1d5db;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-muted);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 15px; line-height: 1.5; }

/* ============ LOADING SPINNER ============ */
.spinner-wrap {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.pop-in { animation: popIn 0.3s ease; }

@keyframes cartPulse {
    0% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(0) scale(1.03); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

.cart-pulse { animation: cartPulse 0.3s ease; }

/* ============ SUCCESS MESSAGE ============ */
.save-success {
    text-align: center;
    font-size: 14px;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 12px;
    animation: fadeUp 0.3s ease;
}

/* ============ MASCOT — ANIMATED SVG НЕОЗУМЧИК ============ */

/* Контейнер маскота */
.neo-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* === ХВОСТ — плавное виляние с инерцией === */
.neo-tail {
    animation: neoTailWag 2.2s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes neoTailWag {
    0%   { transform: rotate(-5deg) scaleX(1); }
    15%  { transform: rotate(15deg) scaleX(0.95); }
    30%  { transform: rotate(-8deg) scaleX(1.02); }
    50%  { transform: rotate(12deg) scaleX(0.97); }
    65%  { transform: rotate(-3deg) scaleX(1); }
    80%  { transform: rotate(8deg) scaleX(0.98); }
    100% { transform: rotate(-5deg) scaleX(1); }
}

/* === ТЕЛО — дыхание + лёгкое покачивание === */
.neo-body {
    animation: neoBreath 3.5s ease-in-out infinite;
}
@keyframes neoBreath {
    0%, 100% { transform: scaleY(1) scaleX(1) translateY(0); }
    30%      { transform: scaleY(1.025) scaleX(0.985) translateY(-1px); }
    60%      { transform: scaleY(0.99) scaleX(1.01) translateY(0.5px); }
}

/* === ГОЛОВА — живое покачивание, как будто осматривается === */
.neo-head {
    animation: neoHeadTilt 5s ease-in-out infinite;
}
@keyframes neoHeadTilt {
    0%, 100% { transform: rotate(0deg) translateY(0) translateX(0); }
    15%      { transform: rotate(2.5deg) translateY(-1.5px) translateX(1px); }
    35%      { transform: rotate(-1deg) translateY(0.5px) translateX(-0.5px); }
    55%      { transform: rotate(-3deg) translateY(-1px) translateX(-1.5px); }
    75%      { transform: rotate(1.5deg) translateY(0) translateX(0.5px); }
}

/* === УШИ — подёргиваются независимо, реагируют на звуки === */
.neo-ear-left {
    animation: neoEarTwitchL 5s ease-in-out infinite;
}
.neo-ear-right {
    animation: neoEarTwitchR 6s ease-in-out infinite;
}
@keyframes neoEarTwitchL {
    0%, 70%, 100% { transform: rotate(0deg) scaleY(1); }
    72%           { transform: rotate(-15deg) scaleY(0.92); }
    76%           { transform: rotate(5deg) scaleY(1.03); }
    80%           { transform: rotate(-8deg) scaleY(0.96); }
    85%           { transform: rotate(2deg) scaleY(1); }
    /* Второй дёрг */
    40%, 42%      { transform: rotate(-6deg) scaleY(0.95); }
    44%           { transform: rotate(0deg) scaleY(1); }
}
@keyframes neoEarTwitchR {
    0%, 55%, 100% { transform: rotate(0deg) scaleY(1); }
    57%           { transform: rotate(14deg) scaleY(0.93); }
    61%           { transform: rotate(-4deg) scaleY(1.02); }
    65%           { transform: rotate(6deg) scaleY(0.97); }
    70%           { transform: rotate(0deg) scaleY(1); }
    /* Второй дёрг */
    25%, 27%      { transform: rotate(5deg) scaleY(0.96); }
    29%           { transform: rotate(0deg) scaleY(1); }
}

/* === ГЛАЗА — двойное моргание (как настоящий кот) === */
/* Моргание реализовано через SVG <animate> в mascot.js */

/* === ЯЗЫЧОК — облизывание реализовано через SVG <animateTransform> в mascot.js === */

/* === УСЫ — шевелятся от дыхания, волнообразно === */
.neo-whisker-l1 { animation: neoWhiskerL 3s ease-in-out infinite; transform-origin: right center; }
.neo-whisker-l2 { animation: neoWhiskerL 3s ease-in-out infinite 0.2s; transform-origin: right center; }
.neo-whisker-l3 { animation: neoWhiskerL 3s ease-in-out infinite 0.4s; transform-origin: right center; }
.neo-whisker-r1 { animation: neoWhiskerR 3s ease-in-out infinite 0.1s; transform-origin: left center; }
.neo-whisker-r2 { animation: neoWhiskerR 3s ease-in-out infinite 0.3s; transform-origin: left center; }
.neo-whisker-r3 { animation: neoWhiskerR 3s ease-in-out infinite 0.5s; transform-origin: left center; }

@keyframes neoWhiskerL {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    30%      { transform: rotate(-4deg) translateY(-0.5px); }
    60%      { transform: rotate(2deg) translateY(0.3px); }
}
@keyframes neoWhiskerR {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    30%      { transform: rotate(4deg) translateY(-0.5px); }
    60%      { transform: rotate(-2deg) translateY(0.3px); }
}

/* === БАНТИК — покачивается от движения тела === */
.neo-bowtie {
    animation: neoBowtie 3.5s ease-in-out infinite;
}
@keyframes neoBowtie {
    0%, 100% { transform: rotate(0deg) scale(1) translateY(0); }
    20%      { transform: rotate(4deg) scale(1.03) translateY(-0.5px); }
    50%      { transform: rotate(-2deg) scale(0.98) translateY(0.5px); }
    75%      { transform: rotate(-4deg) scale(1.02) translateY(-0.3px); }
}

/* === КЛЮЧИК — маятник с затуханием === */
.neo-key {
    animation: neoKeySwing 3s ease-in-out infinite;
}
@keyframes neoKeySwing {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    15%      { transform: rotate(8deg) translateX(1px); }
    35%      { transform: rotate(-6deg) translateX(-0.8px); }
    55%      { transform: rotate(4deg) translateX(0.5px); }
    75%      { transform: rotate(-3deg) translateX(-0.3px); }
}

/* === ЛАПКИ — натуральный шаг: поднял-переставил-опустил === */
.neo-leg-front-left {
    animation: neoLegFL 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.neo-leg-front-right {
    animation: neoLegFR 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.neo-leg-back-left {
    animation: neoLegBL 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.neo-leg-back-right {
    animation: neoLegBR 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}

/* Диагональный шаг: верхняя часть (бедро/плечо) качается от бедра */
/* Передняя левая + задняя правая — одна фаза */
@keyframes neoLegFL {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(12deg); }
    35%      { transform: rotate(8deg); }
    50%      { transform: rotate(0deg); }
    65%      { transform: rotate(-6deg); }
    85%      { transform: rotate(-10deg); }
}
@keyframes neoLegBR {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(-8deg); }
    35%      { transform: rotate(-5deg); }
    50%      { transform: rotate(0deg); }
    65%      { transform: rotate(5deg); }
    85%      { transform: rotate(8deg); }
}
/* Передняя правая + задняя левая — противофаза */
@keyframes neoLegFR {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(-10deg); }
    35%      { transform: rotate(-6deg); }
    50%      { transform: rotate(0deg); }
    65%      { transform: rotate(8deg); }
    85%      { transform: rotate(12deg); }
}
@keyframes neoLegBL {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(8deg); }
    35%      { transform: rotate(5deg); }
    50%      { transform: rotate(0deg); }
    65%      { transform: rotate(-5deg); }
    85%      { transform: rotate(-8deg); }
}

/* Нижняя часть лапок — сгибается в колене/локте (противофаза к верхней) */
.neo-forearm-left {
    animation: neoForearmL 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.neo-forearm-right {
    animation: neoForearmR 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.neo-shin-back-left {
    animation: neoShinBL 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.neo-shin-back-right {
    animation: neoShinBR 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}

/* Когда плечо идёт вперёд — предплечье подгибается назад (и наоборот) */
@keyframes neoForearmL {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(-18deg); }   /* нога поднята → стопа подгибается */
    30%      { transform: rotate(-8deg); }
    50%      { transform: rotate(0deg); }      /* на земле */
    65%      { transform: rotate(5deg); }      /* отталкивание */
    85%      { transform: rotate(8deg); }
}
@keyframes neoForearmR {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(8deg); }
    35%      { transform: rotate(5deg); }
    50%      { transform: rotate(0deg); }
    65%      { transform: rotate(-18deg); }
    80%      { transform: rotate(-8deg); }
}
@keyframes neoShinBL {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(6deg); }
    35%      { transform: rotate(3deg); }
    50%      { transform: rotate(0deg); }
    65%      { transform: rotate(-15deg); }
    80%      { transform: rotate(-6deg); }
}
@keyframes neoShinBR {
    0%, 100% { transform: rotate(0deg); }
    15%      { transform: rotate(-15deg); }
    30%      { transform: rotate(-6deg); }
    50%      { transform: rotate(0deg); }
    65%      { transform: rotate(6deg); }
    85%      { transform: rotate(3deg); }
}

/* === ТЕНЬ НА ПОЛУ — сжимается/расширяется с дыханием === */
.neo-floor-shadow {
    animation: neoShadowPulse 3.5s ease-in-out infinite;
}
@keyframes neoShadowPulse {
    0%, 100% { rx: 50; ry: 7; opacity: 0.08; }
    30%      { rx: 47; ry: 6; opacity: 0.06; }
    60%      { rx: 52; ry: 8; opacity: 0.1; }
}

/* === АУРА высоких уровней === */
.neo-aura {
    animation: neoAuraPulse 2s ease-in-out infinite;
}
@keyframes neoAuraPulse {
    0%, 100% { r: 80; opacity: 0.15; }
    50%      { r: 90; opacity: 0.25; }
}

/* === КОРОНА — мерцание (уровень 6) === */
.neo-crown {
    animation: neoCrownGlow 2s ease-in-out infinite;
}
@keyframes neoCrownGlow {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.3); }
}

/* === ЗВЁЗДЫ — мерцание (уровень 6) === */
.neo-star-1 { animation: neoStarPulse 2s ease-in-out infinite; }
.neo-star-2 { animation: neoStarPulse 2.5s ease-in-out infinite 0.3s; }
.neo-star-3 { animation: neoStarPulse 2s ease-in-out infinite 0.7s; }
@keyframes neoStarPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.3); opacity: 1; }
}

/* === ЛОЖКА — помешивает (уровень 3+) === */
.neo-spoon {
    animation: neoSpoonStir 2s ease-in-out infinite;
}
@keyframes neoSpoonStir {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(-8deg); }
}

/* === ПОЛОВНИК — двигается (уровень 4+) === */
.neo-ladle {
    animation: neoLadleMove 2.5s ease-in-out infinite;
}
@keyframes neoLadleMove {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(6deg); }
}

/* === ШЕФСКИЕ УСЫ — подкручиваются === */
.neo-chef-mustache {
    animation: neoMustache 3s ease-in-out infinite;
}
@keyframes neoMustache {
    0%, 100% { transform: scaleX(1); }
    50%      { transform: scaleX(1.05); }
}

/* --- Hero card with dark gradient --- */
.mascot-hero-card {
    background: linear-gradient(145deg, #1b1d2a 0%, #2d2f42 60%, #3a3d55 100%);
    border-radius: 20px;
    margin: 12px 16px 16px;
    padding: 28px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(27,29,42,0.35), 0 2px 8px rgba(0,0,0,0.18);
}
/* Floating particles */
.mascot-hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(1.5px 1.5px at 15% 20%, rgba(200,169,126,0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 75% 30%, rgba(232,213,181,0.25) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 70%, rgba(200,169,126,0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 65%, rgba(232,213,181,0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 85%, rgba(200,169,126,0.25) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 60% 15%, rgba(255,255,255,0.12) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 80%, rgba(200,169,126,0.2) 50%, transparent 50%);
    animation: particlesDrift 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes particlesDrift {
    0% { transform: translateY(0) translateX(0); opacity: 0.7; }
    50% { opacity: 1; }
    100% { transform: translateY(-6px) translateX(4px); opacity: 0.7; }
}
/* Subtle gradient shimmer overlay */
.mascot-hero-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(200,169,126,0.04) 25%, transparent 50%);
    animation: heroRotate 12s linear infinite;
    pointer-events: none;
}
@keyframes heroRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mascot-level-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(200,169,126,0.7);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* Mascot avatar */
.mascot-avatar {
    display: inline-block;
    position: relative;
    margin-bottom: 16px;
    z-index: 1;
    animation: mascotFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(200,169,126,0.3));
    width: 200px !important;
    height: 240px !important;
}
@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Level badge pill */
.mascot-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #c8a97e, #e8d5b5);
    color: #1b1d2a;
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 12px rgba(200,169,126,0.4);
    letter-spacing: 0.3px;
}
.mascot-level-badge .level-num {
    background: rgba(27,29,42,0.2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.mascot-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* XP progress bar */
.xp-bar-wrap {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    height: 24px;
    overflow: hidden;
    margin: 0 8px 8px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(200,169,126,0.15);
}
.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c8a97e, #e8d5b5, #c8a97e);
    background-size: 200% 100%;
    border-radius: 14px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 16px rgba(200,169,126,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
    animation: xpShimmer 2.5s ease-in-out infinite;
    border-radius: 14px;
}
@keyframes xpShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
.xp-text {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.xp-next-level {
    font-size: 11px;
    color: rgba(200,169,126,0.6);
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Streak badge */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,69,0,0.15));
    color: #ff8c5a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,107,53,0.25);
}

/* --- Stats row: 3 glass cards --- */
.mascot-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 16px;
}
.mascot-stat-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mascot-stat-card:active {
    transform: scale(0.97);
}
.mascot-stat-icon {
    font-size: 22px;
    margin-bottom: 6px;
}
.mascot-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.mascot-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Bonus points premium card --- */
.bonus-premium-card {
    margin: 0 16px 16px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #fffdf8, #fff9f0);
    border: 1.5px solid rgba(200,169,126,0.3);
    box-shadow: 0 4px 20px rgba(200,169,126,0.12), 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.bonus-premium-card::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(200,169,126,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.bonus-premium-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #c8a97e, #e8d5b5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(200,169,126,0.3);
}
.bonus-premium-info {
    flex: 1;
}
.bonus-premium-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.bonus-premium-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.bonus-premium-value span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Achievements section premium --- */
.achievements-section {
    padding: 0 16px;
    margin-bottom: 16px;
}
.achievements-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.achievements-title::before {
    content: '';
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #c8a97e, #e8d5b5);
}
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.achievement-item {
    text-align: center;
    padding: 16px 8px 12px;
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.achievement-item.earned {
    background: linear-gradient(145deg, #fffdf8, #fff8ec);
    border-color: rgba(200,169,126,0.2);
    box-shadow: 0 2px 12px rgba(200,169,126,0.1), 0 1px 4px rgba(0,0,0,0.04);
}
.achievement-item.earned::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8a97e, #e8d5b5);
}
.achievement-item.locked {
    opacity: 0.45;
    filter: grayscale(0.8);
}
.achievement-item.locked .achievement-emoji {
    position: relative;
}
.achievement-item.locked .achievement-emoji::after {
    content: '\1F512';
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 12px;
    filter: none;
}
.achievement-emoji {
    font-size: 32px;
    margin-bottom: 8px;
    display: inline-block;
    position: relative;
}
.achievement-name {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
    font-weight: 500;
}
.achievement-xp {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    margin-top: 4px;
}

/* Level up overlay */
.levelup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.levelup-card {
    background: linear-gradient(160deg, #1b1d2a, #2d2f42);
    border-radius: 28px;
    padding: 36px 28px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 40px rgba(200,169,126,0.15);
    animation: levelUpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(200,169,126,0.2);
    position: relative;
    overflow: hidden;
}
.levelup-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8a97e, #e8d5b5, #c8a97e);
}
@keyframes levelUpPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.levelup-title {
    font-size: 24px;
    font-weight: 700;
    color: #e8d5b5;
    margin: 16px 0 8px;
}
.levelup-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.levelup-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #c8a97e, #e8d5b5);
    color: #1b1d2a;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: 0 4px 16px rgba(200,169,126,0.35);
    transition: transform 0.2s ease;
}
.levelup-btn:active {
    transform: scale(0.96);
}
/* Confetti animation */
.confetti {
    position: fixed;
    top: -10px;
    z-index: 501;
    animation: confettiFall 3s ease-in forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   DESKTOP LAYOUT (>= 769px)
   ============================================================ */

/* Hidden on mobile */
.desktop-topbar, .desktop-sidebar, .desktop-search-wrap { display: none; }
.desktop-menu-layout { display: contents; }

@media (min-width: 1024px) {
    /* --- Reset mobile constraints --- */
    body { max-width: none; margin: 0; }

    /* --- Desktop top bar --- */
    .desktop-topbar {
        display: block;
        background: #fff;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 200;
    }
    .desktop-topbar-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 32px;
        height: 72px;
        display: flex;
        align-items: center;
        gap: 32px;
    }
    .desktop-logo-link { flex-shrink: 0; }
    .desktop-logo-img {
        height: 48px;
        width: auto;
        object-fit: contain;
    }
    .desktop-nav { flex: 1; }
    .desktop-nav-link {
        color: var(--text);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 8px;
        transition: background 0.15s;
    }
    .desktop-nav-link:hover { background: var(--bg); }
    .desktop-nav-link.active { color: var(--accent); font-weight: 600; }
    .desktop-contacts { text-align: right; flex-shrink: 0; }
    .desktop-phone a {
        color: var(--text);
        text-decoration: none;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }
    .desktop-hours {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 2px;
    }
    .desktop-topbar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }
    .desktop-room-badge {
        font-size: 13px;
        padding: 6px 14px;
    }
    .desktop-cart-btn {
        position: relative;
        background: none;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        padding: 10px;
        cursor: pointer;
        color: var(--text);
        transition: all 0.15s;
    }
    .desktop-cart-btn:hover { border-color: var(--accent); color: var(--accent); }
    .desktop-cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: var(--green);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    /* --- Hide mobile elements --- */
    .header { display: none; }
    .categories { display: none !important; }
    .tab-bar { display: none; }
    .cart-bar { display: none; }

    /* --- Tab content reset --- */
    .tab-content { padding-bottom: 0; min-height: auto; }
    #tabMenu.active { display: block; }
    #appScreen { max-width: 1280px; margin: 0 auto; }

    /* --- Desktop menu layout: sidebar + main --- */
    .desktop-menu-layout {
        display: flex !important;
        gap: 0;
        min-height: calc(100vh - 72px);
    }

    /* --- Left sidebar --- */
    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        width: 220px;
        flex-shrink: 0;
        background: #fff;
        border-right: 1px solid var(--border);
        position: sticky;
        top: 72px;
        height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 16px 0;
    }
    .desktop-search-wrap {
        display: block;
        position: relative;
        padding: 0 16px;
        margin-bottom: 16px;
    }
    .desktop-search-input {
        width: 100%;
        padding: 10px 16px 10px 36px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        background: var(--bg);
        font-size: 14px;
        font-family: var(--font);
        color: var(--text);
        outline: none;
        transition: border-color 0.15s;
    }
    .desktop-search-input:focus { border-color: var(--accent); }
    .desktop-search-wrap .search-icon {
        position: absolute;
        left: 26px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        opacity: 0.4;
    }
    .desktop-categories {
        display: flex;
        flex-direction: column;
    }
    .desktop-cat-link {
        display: block;
        padding: 10px 24px;
        color: var(--text);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border-left: 3px solid transparent;
        transition: all 0.15s;
    }
    .desktop-cat-link:hover { background: var(--bg); color: var(--text); }
    .desktop-cat-link.active {
        color: var(--text);
        font-weight: 600;
        border-left-color: #f5c518;
        background: rgba(245, 197, 24, 0.06);
    }

    /* --- Main content area --- */
    .desktop-main {
        flex: 1;
        min-width: 0;
        padding: 0;
    }

    /* --- Products: vertical card grid --- */
    .products {
        padding: 24px 32px 40px;
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .group-title {
        grid-column: 1 / -1;
        font-size: 24px;
        margin: 8px 0 4px;
    }

    /* --- Product card: vertical layout --- */
    .product-card {
        flex-direction: column;
        max-height: none;
        min-height: auto;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
    .product-card:active { transform: none; }

    .product-img {
        width: 100%;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .product-body {
        padding: 16px;
        flex: 1;
    }

    .product-name {
        font-size: 14px;
        font-weight: 500;
        min-height: 36px;
        margin-bottom: 8px;
    }

    .product-desc { display: none; }
    .product-weight { display: none; }

    .product-bottom {
        margin-top: auto;
    }

    .product-price {
        font-size: 18px;
        font-weight: 700;
    }

    /* --- Add button: yellow "В корзину" style --- */
    .add-btn {
        width: auto;
        height: auto;
        border-radius: 8px;
        background: #f5c518;
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
        padding: 8px 16px;
        box-shadow: none;
        min-width: 90px;
    }
    .add-btn::after { content: "В корзину"; }
    .add-btn { font-size: 0; } /* hide the + text */
    .add-btn::after { font-size: 13px; }
    .add-btn:hover {
        background: #e6b800;
        transform: none;
        box-shadow: 0 2px 8px rgba(245,197,24,0.3);
    }

    /* Qty control on desktop */
    .qty-control {
        background: #f5c518;
        border-radius: 8px;
        padding: 2px;
    }
    .qty-btn {
        background: rgba(0,0,0,0.08);
        color: var(--text);
        width: 32px;
        height: 32px;
    }
    .qty-value { color: var(--text); font-size: 14px; }

    /* --- Detail modal: centered --- */
    .detail-modal {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
        visibility: hidden;
        border-radius: 16px;
        max-width: 520px;
        max-height: 80vh;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    }
    .detail-modal.visible {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
    .detail-img { height: 280px; border-radius: 16px 16px 0 0; }

    /* --- Cart modal: centered --- */
    .cart-modal {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
        visibility: hidden;
        border-radius: 16px;
        max-width: 520px;
        max-height: 80vh;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    }
    .cart-modal.visible {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
    .cart-handle { display: none; }

    /* --- Confirmation overlay desktop --- */
    .confirmation-overlay { max-width: none; }

    /* --- Skeleton desktop --- */
    .skeleton {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 24px 32px;
    }
    .skeleton-card {
        flex-direction: column;
    }
    .skeleton-img {
        width: 100%;
        height: 200px;
    }

    /* --- Page headers (orders, bonuses, profile) --- */
    .page-header {
        border-radius: 0;
    }

    /* --- Other tabs --- */
    #tabOrders.active, #tabBonuses.active, #tabProfile.active {
        display: block;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* ============ STOP-LIST ============ */
.product-stopped { pointer-events: none; }
.product-stopped .product-img { position: relative; }
.stopped-badge {
    position: absolute;
    top: 50%;
    left: -8%;
    right: -8%;
    transform: translateY(-50%) rotate(-18deg);
    background: rgba(220, 38, 38, 0.88);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 6px 0;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
/* ============ MODIFIERS ============ */
.detail-modifiers { padding: 0 20px 12px; }
.mod-group { margin-bottom: 14px; }
.mod-group-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.mod-required { color: #dc2626; }
.mod-options { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-option {
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}
.mod-option:hover { border-color: var(--accent); }
.mod-option.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.btn-disabled-mods {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-muted) !important;
    color: #fff !important;
}
.add-btn-disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; background: #999 !important; color: #fff !important; }
