/* ========================================
   Office Eats - Mobile-First Stylesheet
   iOS-inspired clean design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #FF6B35;
    --primary-light: #FF8C5A;
    --primary-dark: #E85520;
    --primary-bg: #FFF4F0;
    --secondary: #2D3748;
    --accent: #48BB78;
    --accent-dark: #38A169;
    --danger: #FC5C65;
    --warning: #FFA500;
    --info: #4ECDC4;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --bg: #F5F5F7;
    --card-bg: #FFFFFF;
    --text: #1C1C1E;
    --text-secondary: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ========================================
   LAYOUT
   ======================================== */
.app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
}

.page-content {
    padding: 16px;
    padding-bottom: 100px;
}

/* ========================================
   TOP APP BAR
   ======================================== */
.app-bar {
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-bar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-bar-title .logo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switch {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   HERO / GREETING
   ======================================== */
.hero-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero-greeting {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.hero-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-date {
    font-size: 13px;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}

.card-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.card-body {
    padding: 16px;
}

/* ========================================
   FOOD ITEMS
   ======================================== */
.food-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-50);
    transition: var(--transition);
}

.food-item:last-child { border-bottom: none; }

.food-item:active { background: var(--gray-50); }

.food-emoji {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    margin-right: 12px;
}

.food-info { flex: 1; }

.food-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

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

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.qty-btn:active {
    background: var(--gray-200);
    transform: scale(0.9);
}

.qty-display {
    min-width: 28px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* ========================================
   STICKY ORDER BAR
   ======================================== */
.order-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.order-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-bar-info {
    flex: 1;
}

.order-bar-count {
    font-size: 13px;
    color: var(--gray-500);
}

.order-bar-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.order-bar-total span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.2px;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,53,0.35);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-success {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(72,187,120,0.3);
}

.btn-success:hover { background: var(--accent-dark); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary-bg); }

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-gray:hover { background: var(--gray-200); }

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}

.form-control::placeholder { color: var(--gray-400); }

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 18px;
    pointer-events: none;
}

.input-group .form-control { padding-left: 44px; }

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.auth-header {
    padding: 60px 32px 32px;
    background: linear-gradient(160deg, var(--primary-bg) 0%, var(--white) 100%);
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255,107,53,0.3);
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--gray-500);
}

.auth-body {
    flex: 1;
    padding: 32px;
}

.auth-footer {
    padding: 24px 32px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-100);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.alert-success {
    background: #D1FAE5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.alert-warning {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: #DBEAFE;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

/* ========================================
   STAT CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-icon.green { background: #D1FAE5; }
.stat-icon.orange { background: #FEF3C7; }
.stat-icon.blue { background: #DBEAFE; }
.stat-icon.red { background: #FEE2E2; }

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ========================================
   LISTS
   ======================================== */
.list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-50);
    gap: 12px;
}

.list-item:last-child { border-bottom: none; }

.list-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.list-info { flex: 1; }

.list-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.list-sub {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 1px;
}

.list-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #D1FAE5; color: #059669; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-danger  { background: #FEE2E2; color: #DC2626; }
.badge-info    { background: #DBEAFE; color: #2563EB; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.section-action {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

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

.empty-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    max-width: 240px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========================================
   MODAL / BOTTOM SHEET
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.modal-overlay.active { display: flex; }

.modal-sheet {
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 24px 40px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* ========================================
   DIVIDER
   ======================================== */
.divider {
    height: 1px;
    background: var(--gray-100);
    margin: 16px 0;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

.divider-text span {
    position: relative;
    background: var(--white);
    padding: 0 12px;
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ========================================
   PAYMENT OPTIONS
   ======================================== */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.payment-opt {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    -webkit-tap-highlight-color: transparent;
}

.payment-opt.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.payment-opt-icon { font-size: 28px; margin-bottom: 8px; }

.payment-opt-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.payment-opt-sub {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ========================================
   ORDER CONFIRMATION
   ======================================== */
.order-confirm-card {
    background: linear-gradient(135deg, var(--accent) 0%, #34D399 100%);
    border-radius: var(--radius-xl);
    padding: 28px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.confirm-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.confirm-subtitle {
    font-size: 14px;
    opacity: 0.85;
}

/* ========================================
   ADMIN NAVIGATION TABS
   ======================================== */
.admin-tabs {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    gap: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    flex: 1;
    min-width: fit-content;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

/* ========================================
   BOTTOM NAV
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 150;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    text-decoration: none;
    color: var(--gray-400);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item.active { color: var(--primary); }

.bottom-nav-icon { font-size: 22px; line-height: 1; }

.bottom-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========================================
   ORDER SUMMARY TABLE
   ======================================== */
.order-table {
    width: 100%;
}

.order-table-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 8px;
}

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

.order-table-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.order-table-qty {
    font-size: 13px;
    color: var(--gray-500);
    width: 32px;
    text-align: center;
}

.order-table-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    min-width: 60px;
    text-align: right;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 4px;
    border-top: 2px solid var(--gray-100);
}

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

.order-total-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* ========================================
   DATE PICKER STYLE
   ======================================== */
input[type="date"],
input[type="number"] {
    -webkit-appearance: none;
    appearance: none;
}

/* ========================================
   PRICE INPUT
   ======================================== */
.price-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input-group .form-control {
    flex: 1;
}

/* ========================================
   FOOD ITEM ROW (Admin)
   ======================================== */
.menu-item-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 10px;
}

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

.menu-item-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.menu-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    min-width: 70px;
    text-align: right;
}

/* ========================================
   QR CODE PAGE
   ======================================== */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.qr-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    width: 100%;
}

.qr-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.qr-sub {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.fade-in { animation: fadeIn 0.3s ease forwards; }

/* Stagger */
.food-item:nth-child(1) { animation-delay: 0s; }
.food-item:nth-child(2) { animation-delay: 0.05s; }
.food-item:nth-child(3) { animation-delay: 0.1s; }
.food-item:nth-child(4) { animation-delay: 0.15s; }
.food-item:nth-child(5) { animation-delay: 0.2s; }
.food-item:nth-child(6) { animation-delay: 0.25s; }

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--accent); }
.text-danger  { color: var(--danger); }
.text-muted   { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 800; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 18px; }
    .payment-options { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 481px) {
    .app-wrapper { box-shadow: 0 0 40px rgba(0,0,0,0.08); }
}

/* Safe area for notched phones */
.page-content { padding-bottom: calc(80px + env(safe-area-inset-bottom, 16px)); }

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }
