/* FitMino Premium Design System */
:root {
    color-scheme: dark;
    --bg: #06080d;
    --bg-elevated: #090d14;
    --surface: rgba(18, 24, 34, 0.82);
    --surface-solid: #111822;
    --card: rgba(22, 29, 40, 0.78);
    --card-strong: rgba(29, 38, 52, 0.92);
    --card-hover: rgba(37, 49, 67, 0.92);
    --border: rgba(255, 255, 255, 0.085);
    --border-strong: rgba(255, 255, 255, 0.16);
    --primary: #7cf7b4;
    --primary-2: #1edb84;
    --primary-deep: #0c8f5a;
    --primary-dim: rgba(124, 247, 180, 0.14);
    --secondary: #88a4ff;
    --secondary-dim: rgba(136, 164, 255, 0.14);
    --danger: #ff5d6c;
    --danger-dim: rgba(255, 93, 108, 0.13);
    --warning: #f8c46b;
    --warning-dim: rgba(248, 196, 107, 0.14);
    --pink: #ff79c6;
    --violet: #b794ff;
    --text: #f7fafc;
    --text-secondary: #aab5c4;
    --text-muted: #6f7b8d;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-height: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: var(--font);
    background:
        radial-gradient(circle at 18% -5%, rgba(124, 247, 180, 0.14), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(136, 164, 255, 0.12), transparent 32%),
        linear-gradient(180deg, #080b12 0%, var(--bg) 48%, #05070b 100%);
    color: var(--text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    padding-top: var(--safe-top);
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

body.no-nav { padding-bottom: var(--safe-bottom); }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 100% 8px;
    opacity: 0.35;
    z-index: -1;
}

a { color: var(--primary); text-decoration: none; }
button, input, select { font: inherit; }

h1 { font-size: 1.72rem; font-weight: 820; letter-spacing: 0; line-height: 1.08; }
h2 { font-size: 1.34rem; font-weight: 760; letter-spacing: 0; line-height: 1.15; }
h3 { font-size: 1.04rem; font-weight: 720; letter-spacing: 0; }

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.brand-mark img { width: 42px; height: 42px; display: block; }
.brand-word { font-weight: 850; font-size: 1.55rem; letter-spacing: 0; }
.brand-word span { color: var(--primary); }

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding: 8px 10px calc(8px + var(--safe-bottom));
    background: rgba(8, 12, 18, 0.72);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.28);
}

.nav-item {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 680;
    padding: 7px 4px;
    border-radius: 18px;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item .material-symbols-rounded { font-size: 1.48rem; }
.nav-item.active {
    color: var(--primary);
    background: linear-gradient(180deg, rgba(124, 247, 180, 0.14), rgba(124, 247, 180, 0.04));
}
.nav-item:active { transform: scale(0.94); }

.nav-item-camera {
    width: 58px;
    height: 58px;
    min-height: 58px;
    justify-self: center;
    border-radius: 22px;
    color: #04100a !important;
    background: linear-gradient(135deg, #c9ffd8, var(--primary) 45%, #25d989);
    box-shadow: 0 12px 34px rgba(30, 219, 132, 0.34), inset 0 1px 0 rgba(255,255,255,0.75);
    margin-top: -28px;
}
.nav-item-camera .material-symbols-rounded { font-size: 1.72rem; font-variation-settings: 'FILL' 1, 'wght' 650, 'GRAD' 0, 'opsz' 24; }
.nav-item-camera span { display: none; }

/* Layout */
.page {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 22px 16px 8px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-top: 8px;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 780;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 10px;
}

/* Cards */
.card,
.premium-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)), var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.premium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 34%, rgba(124,247,180,0.05));
    opacity: 0.75;
}
.premium-card > * { position: relative; }
.card:active, .tap-card:active { transform: scale(0.985); background: var(--card-hover); }

.hero-card {
    padding: 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 12%, rgba(124,247,180,0.20), transparent 38%),
        radial-gradient(circle at 86% 22%, rgba(136,164,255,0.18), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)), rgba(14, 20, 29, 0.92);
}

.glass-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 15px;
    color: var(--text);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    -webkit-tap-highlight-color: transparent;
    font-size: 0.93rem;
    font-weight: 740;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn .material-symbols-rounded { font-size: 1.2rem; }

.btn-primary {
    width: 100%;
    color: #03100a;
    border: none;
    background: linear-gradient(135deg, #d7ffe2, var(--primary) 48%, var(--primary-2));
    box-shadow: 0 14px 38px rgba(30,219,132,0.24), inset 0 1px 0 rgba(255,255,255,0.8);
}
.btn-secondary { background: rgba(255,255,255,0.07); color: var(--text); }
.btn-danger { background: var(--danger-dim); color: var(--danger); border-color: rgba(255,93,108,0.22); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); box-shadow: none; }
.btn-sm { min-height: 34px; padding: 7px 12px; border-radius: 12px; font-size: 0.8rem; }
.btn-icon { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 15px; }

/* Forms */
.input-group { margin-bottom: 16px; }
.input-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 680;
}

.input {
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-size: 1rem;
}
.input:focus {
    border-color: rgba(124,247,180,0.72);
    background: rgba(255,255,255,0.075);
    box-shadow: 0 0 0 4px rgba(124,247,180,0.10);
}
.input::placeholder { color: rgba(170,181,196,0.55); }
select.input { appearance: none; }
.otp-input { font-size: 1.8rem; font-weight: 820; letter-spacing: 10px; text-align: center; }

/* Dashboard */
.calorie-ring {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 8px auto 18px;
    filter: drop-shadow(0 18px 38px rgba(30,219,132,0.16));
}
.calorie-ring svg { transform: rotate(-90deg); }
.calorie-ring-bg { stroke: rgba(255,255,255,0.08); }
.calorie-ring-fill {
    stroke: url(#calorieGradient);
    transition: stroke-dashoffset 0.9s cubic-bezier(.2,.8,.2,1);
}
.calorie-ring-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}
.calorie-ring-number { font-size: 2.34rem; font-weight: 860; line-height: 1; }
.calorie-ring-label { margin-top: 6px; font-size: 0.78rem; color: var(--text-secondary); }

.macro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.macro-tile {
    padding: 12px;
    border-radius: 17px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border);
}
.macro-tile-label { color: var(--text-secondary); font-size: 0.74rem; font-weight: 680; }
.macro-tile-value { margin-top: 5px; font-weight: 820; font-size: 1rem; }

.macro-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.macro-bar-label { width: 62px; flex-shrink: 0; color: var(--text-secondary); font-size: 0.74rem; font-weight: 680; }
.macro-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; }
.macro-bar-fill { height: 100%; border-radius: 999px; transition: width 0.65s cubic-bezier(.2,.8,.2,1); }
.macro-bar-value { width: 74px; text-align: right; flex-shrink: 0; font-size: 0.75rem; font-weight: 760; color: var(--text-secondary); }
.fill-calories { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.fill-protein { background: linear-gradient(90deg, #6fb7ff, #88a4ff); }
.fill-carbs { background: linear-gradient(90deg, #ffd36f, #f8a85e); }
.fill-fat { background: linear-gradient(90deg, #ff7d87, #ff5d6c); }
.fill-fiber { background: linear-gradient(90deg, #c19bff, #8f74ff); }

.streak-badge, .habit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 760;
    color: var(--warning);
    background: var(--warning-dim);
    border: 1px solid rgba(248,196,107,0.18);
}
.habit-pill.done { color: var(--primary); background: var(--primary-dim); border-color: rgba(124,247,180,0.18); }

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin: 14px 0 4px;
}
.quick-action {
    min-height: 78px;
    border-radius: 20px;
    padding: 10px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 760;
}
.quick-action .material-symbols-rounded { color: var(--primary); font-size: 1.45rem; }

/* Meals */
.meal-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.meal-type-breakfast { background: var(--warning-dim); color: var(--warning); }
.meal-type-lunch { background: var(--primary-dim); color: var(--primary); }
.meal-type-dinner { background: var(--secondary-dim); color: var(--secondary); }
.meal-type-snack { background: rgba(255,121,198,0.14); color: var(--pink); }
.meal-items-list { margin-top: 11px; }
.meal-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.86rem;
}
.meal-item-row:last-child { border-bottom: none; }
.meal-item-name { color: var(--text); font-weight: 680; }
.meal-item-portion { color: var(--text-muted); font-size: 0.74rem; }
.meal-item-cal { color: var(--text-secondary); font-weight: 800; white-space: nowrap; }

/* Supplements and workouts */
.supplement-item, .workout-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 68px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.026)), var(--card);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.supplement-item:active, .workout-card:active { transform: scale(0.985); }
.supplement-item.taken, .workout-card.done {
    border-color: rgba(124,247,180,0.42);
    background: linear-gradient(180deg, rgba(124,247,180,0.14), rgba(124,247,180,0.05)), var(--card);
}
.supplement-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.8px solid var(--border-strong);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #04100a;
    transition: all 0.18s ease;
}
.supplement-item.taken .supplement-check, .workout-card.done .supplement-check {
    border-color: transparent;
    background: linear-gradient(135deg, #d7ffe2, var(--primary));
    box-shadow: 0 8px 22px rgba(30,219,132,0.22);
}
.supplement-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: var(--primary);
}
.supplement-name { font-weight: 760; flex: 1; }
.supplement-meta { margin-top: 4px; color: var(--text-muted); font-size: 0.74rem; }

/* Auth */
.auth-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 22px;
    text-align: center;
}
.auth-shell {
    width: 100%;
    max-width: 388px;
    padding: 22px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.028)), rgba(13,19,28,0.82);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.auth-logo { font-size: 2.4rem; font-weight: 860; margin-bottom: 8px; letter-spacing: 0; }
.auth-logo span { color: var(--primary); }
.auth-tagline { color: var(--text-secondary); font-size: 0.95rem; margin: 12px 0 30px; }
.auth-form { width: 100%; }
.auth-footer { margin-top: 24px; font-size: 0.78rem; color: var(--text-muted); }

/* Loading */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 13, 0.86);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loading-spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.09);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}
.loading-text { margin-top: 16px; color: var(--text-secondary); font-size: 0.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.35s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-day-header { padding: 8px 0; color: var(--text-muted); font-size: 0.64rem; font-weight: 760; text-align: center; text-transform: uppercase; }
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255,255,255,0.035);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 760;
    position: relative;
}
.calendar-day.today { outline: 1.5px solid var(--primary); color: var(--text); }
.calendar-day.has-data::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    bottom: 5px;
}
.calendar-day.goal-partial::after { background: var(--warning); }
.calendar-day.goal-missed::after { background: var(--danger); }
.calendar-day.empty { visibility: hidden; }

/* Onboarding */
.onboarding-step { display: none; animation: fadeIn 0.28s ease; }
.onboarding-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.goal-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    background: rgba(255,255,255,0.045);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.goal-option.selected { border-color: rgba(124,247,180,0.62); background: var(--primary-dim); }
.goal-option-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,0.06);
    color: var(--primary);
    font-size: 1.45rem;
}
.goal-option-title { font-weight: 780; }
.goal-option-desc { margin-top: 3px; color: var(--text-secondary); font-size: 0.8rem; }
.step-dot { width: 100%; height: 5px; background: rgba(255,255,255,0.08); border-radius: 999px; transition: background 0.3s; }
.step-dot.active { background: linear-gradient(90deg, var(--primary), var(--secondary)); }

/* Analysis */
.camera-area {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 28px;
    border: 1.5px dashed rgba(124,247,180,0.28);
    background:
        radial-gradient(circle at 50% 20%, rgba(124,247,180,0.16), transparent 44%),
        rgba(255,255,255,0.045);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.camera-area .material-symbols-rounded, .camera-area i { font-size: 2.65rem; color: var(--primary); }
.camera-area p { color: var(--text-secondary); font-size: 0.92rem; font-weight: 680; }
.camera-area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.analysis-result { animation: fadeIn 0.32s ease; }

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 760;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border);
}
.chip-primary { background: var(--primary-dim); color: var(--primary); border-color: rgba(124,247,180,0.16); }

/* Quick add */
.quick-add-grid {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.quick-add-grid::-webkit-scrollbar { display: none; }
.quick-add-item {
    min-width: 142px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    cursor: pointer;
}
.quick-add-cal { color: var(--text-muted); font-size: 0.72rem; margin-top: 4px; }

/* Bottom sheets and toast */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,0.50);
    backdrop-filter: blur(12px);
    padding: 16px;
}
.sheet:not(.hidden) { display: flex; }
.sheet-panel {
    width: 100%;
    max-width: 500px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    border-radius: 30px 30px 22px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03)), #0d131c;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    animation: sheetUp 0.22s ease;
}
.sheet-handle { width: 44px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.18); margin: 0 auto 14px; }
@keyframes sheetUp { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    background: rgba(15,22,32,0.94);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    z-index: 10000;
    opacity: 0;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-soft);
    max-width: 90%;
    text-align: center;
    backdrop-filter: blur(16px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(124,247,180,0.36); }
.toast.error { border-color: rgba(255,93,108,0.36); }

/* Utility */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 780; }
.w-full { width: 100%; }
.hidden { display: none !important; }

@media (min-width: 768px) {
    .page { max-width: 560px; padding: 28px 20px 14px; }
    .bottom-nav {
        max-width: 560px;
        left: 50%;
        right: auto;
        width: calc(100% - 32px);
        transform: translateX(-50%);
        border: 1px solid var(--border);
        border-bottom: none;
        border-radius: 28px 28px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
