/* ===== XTR FITNESS TOOLS - MOBILE-FIRST DARK THEME ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card2: #1a2236;
    --accent: #00ff87;
    --accent-dim: rgba(0,255,135,0.15);
    --accent-glow: rgba(0,255,135,0.4);
    --text-primary: #f0f4f8;
    --text-secondary: #8a99ad;
    --danger: #ff6b6b;
    --success: #00ff87;
    --border: #1e293b;
    --radius: 14px;
    --radius-sm: 10px;
}
html, body { height: 100%; }
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ===== SCREEN MANAGEMENT ===== */
.screen { display: none; min-height: 100vh; width: 100%; position: relative; }
.screen.active { display: flex; flex-direction: column; }

/* ===== WELCOME SCREEN ===== */
.welcome-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; padding: 32px 24px; text-align: center;
}
.welcome-logo { margin-bottom: 32px; }
.logo-glow {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00c9ff);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 36px; color: #000;
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0,255,135,0.15);
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
    50% { box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(0,255,135,0.2); }
}
.welcome-logo h1 { font-size: 28px; font-weight: 800; letter-spacing: 2px; }
.welcome-logo h1 span { color: var(--accent); }
.welcome-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.motivation-box {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 40px; max-width: 360px; width: 100%;
    position: relative;
}
.motivation-box i { color: var(--accent); font-size: 18px; margin-bottom: 8px; display: block; }
.motivation-box p { font-size: 15px; line-height: 1.6; font-style: italic; color: var(--text-primary); }
.motivation-author { display: block; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.welcome-buttons { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.welcome-footer { margin-top: 32px; font-size: 12px; color: var(--text-secondary); }

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00c9ff);
    color: #000; font-weight: 700; border: none; border-radius: var(--radius-sm);
    padding: 14px 28px; font-size: 15px; cursor: pointer;
    transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
    background: transparent; color: var(--accent); font-weight: 600;
    border: 2px solid var(--accent); border-radius: var(--radius-sm);
    padding: 13px 28px; font-size: 15px; cursor: pointer;
    transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outline:hover { background: var(--accent-dim); }
.btn-large { font-size: 16px; padding: 16px 32px; }
.btn-full { width: 100%; }
.btn-back {
    background: none; border: none; color: var(--text-secondary); font-size: 14px;
    cursor: pointer; display: flex; align-items: center; gap: 6px; margin-bottom: 24px;
    font-family: inherit;
}
.btn-text {
    background: none; border: none; color: var(--text-secondary); font-size: 13px;
    cursor: pointer; margin-top: 20px; font-family: inherit; text-decoration: underline;
}

/* ===== AUTH SCREENS ===== */
.auth-container {
    min-height: 100vh; padding: 48px 24px; display: flex; flex-direction: column;
    max-width: 420px; margin: 0 auto; width: 100%;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-icon {
    font-size: 40px; color: var(--accent); margin-bottom: 12px; display: block;
}
.auth-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.auth-header p { color: var(--text-secondary); font-size: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px; color: var(--text-secondary);
    margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.form-group input, .form-select {
    width: 100%; background: var(--bg-card2); border: 1px solid var(--border);
    color: var(--text-primary); padding: 14px 16px; border-radius: var(--radius-sm);
    font-size: 15px; outline: none; font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-select:focus { border-color: var(--accent); }

/* Schedule Banner Card */
.schedule-banner-card {
    background: linear-gradient(135deg, rgba(0,255,135,0.08), rgba(0,201,255,0.05));
    border: 1px solid rgba(0,255,135,0.25); border-radius: var(--radius);
    padding: 16px; margin-bottom: 20px;
}
.sch-header {
    display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
    margin-bottom: 10px; color: var(--accent);
}
.sch-details { display: flex; flex-direction: column; gap: 6px; }
.sch-item { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.sch-item i { width: 14px; color: var(--text-primary); }
.remember-me { margin-bottom: 20px; }
.checkbox-label {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: 14px; color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer;
}
.form-message {
    padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px;
    margin-bottom: 16px; display: none;
}
.form-message.success { display: block; background: rgba(0,255,135,0.1); color: var(--success); border: 1px solid rgba(0,255,135,0.3); }
.form-message.error { display: block; background: rgba(255,107,107,0.1); color: var(--danger); border: 1px solid rgba(255,107,107,0.3); }

/* ===== DEVICE SELECT ===== */
.device-container {
    min-height: 100vh; padding: 48px 24px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.device-cards { display: flex; gap: 16px; margin-top: 24px; width: 100%; max-width: 360px; }
.device-card {
    flex: 1; background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 28px 16px; text-align: center;
    cursor: pointer; transition: all 0.3s;
}
.device-card:hover, .device-card:active {
    border-color: var(--accent); background: var(--accent-dim);
    transform: translateY(-4px);
}
.device-card i { font-size: 48px; color: var(--accent); margin-bottom: 12px; display: block; }
.device-card h3 { font-size: 18px; margin-bottom: 4px; }
.device-card p { font-size: 12px; color: var(--text-secondary); }

/* ===== PWA GUIDE ===== */
.pwa-container {
    min-height: 100vh; padding: 48px 24px; display: flex; flex-direction: column;
    align-items: center; max-width: 420px; margin: 0 auto; width: 100%;
}
.pwa-steps { width: 100%; margin-top: 20px; }
.pwa-step {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm);
    margin-bottom: 12px; border: 1px solid var(--border);
}
.step-number {
    width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
    background: var(--accent); color: #000; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.pwa-step p { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.pwa-step strong { color: var(--text-primary); }

/* ===== APP TOPBAR ===== */
.app-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--bg-card);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.hamburger-btn {
    background: none; border: none; color: var(--text-primary);
    font-size: 20px; cursor: pointer; padding: 8px; font-family: inherit;
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-user { font-size: 24px; color: var(--accent); }

/* ===== HAMBURGER SIDE MENU ===== */
.menu-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 200;
}
.menu-overlay.open { display: block; }
.side-menu {
    position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
    background: var(--bg-card); z-index: 300; transition: left 0.3s ease;
    display: flex; flex-direction: column; padding: 0;
    border-right: 1px solid var(--border);
}
.side-menu.open { left: 0; }
.menu-header {
    padding: 32px 20px 20px; background: linear-gradient(135deg, #111827, #1a2236);
    border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
}
.menu-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dim);
    border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 20px;
}
.menu-username { font-weight: 600; font-size: 15px; }
.menu-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    color: var(--text-secondary); text-decoration: none; font-size: 14px;
    font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.menu-item:hover, .menu-item.active { color: var(--accent); background: var(--accent-dim); }
.menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.menu-logout { color: var(--danger) !important; }

/* ===== DASHBOARD ===== */
.dashboard-content { padding: 20px 16px; flex: 1; overflow-y: auto; padding-bottom: 40px; }
.dash-greeting h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.dash-greeting p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.dash-stats-row { display: flex; gap: 10px; margin-bottom: 24px; }
.dash-stat-card {
    flex: 1; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 10px; text-align: center;
}
.dash-stat-card i { font-size: 18px; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.dash-stat-card.accent { border-color: rgba(0,255,135,0.3); }
.dash-stat-card.accent i { color: var(--accent); }
.dash-stat-value { display: block; font-size: 20px; font-weight: 700; }
.dash-stat-label { font-size: 11px; color: var(--text-secondary); }
.section-title {
    font-size: 14px; color: var(--text-secondary); font-weight: 600;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}
.section-title i { color: var(--accent); }

/* ===== FEATURE CARDS ===== */
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; cursor: pointer;
    transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateX(4px); }
.feature-card:active { transform: scale(0.98); }
.feature-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
    background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 18px;
}
.feature-info { flex: 1; }
.feature-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.feature-info p { font-size: 12px; color: var(--text-secondary); }
.feature-card > .fa-chevron-right { color: var(--text-secondary); font-size: 14px; }

/* ===== PAGE CONTENT (sub-pages) ===== */
.page-content { padding: 20px 16px; flex: 1; overflow-y: auto; padding-bottom: 40px; }

/* ===== WEIGHT SLOTS ===== */
.weight-slot {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.slot-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.slot-time-badge {
    background: var(--accent-dim); color: var(--accent); padding: 3px 10px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
}
.slot-input-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.slot-input-row input {
    flex: 1; background: var(--bg-card2); border: 1px solid var(--border);
    color: var(--text-primary); padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 18px; font-weight: 600; outline: none; font-family: inherit;
}
.slot-input-row input:focus { border-color: var(--accent); }
.slot-input-row .unit { color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.btn-slot-save {
    background: var(--accent); color: #000; border: none; padding: 12px 18px;
    border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 13px;
    font-family: inherit;
}
.slot-status { font-size: 12px; color: var(--text-secondary); }
.weight-summary {
    background: linear-gradient(135deg, rgba(0,255,135,0.08), rgba(0,201,255,0.06));
    border: 1px solid rgba(0,255,135,0.2); border-radius: var(--radius);
    padding: 20px; text-align: center; margin-top: 8px;
}
.weight-summary h4 { font-size: 12px; color: var(--text-secondary); letter-spacing: 1px; margin-bottom: 8px; }
.big-avg { font-size: 40px; font-weight: 800; color: var(--accent); }
.big-avg small { font-size: 18px; color: var(--text-secondary); }

/* ===== CHART ===== */
.chart-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; height: 300px;
}

/* ===== HABITS ===== */
.habits-progress-bar {
    width: 100%; height: 8px; background: var(--bg-card2);
    border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.habits-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #00c9ff); border-radius: 4px; transition: width 0.4s; }
.habits-percent { font-size: 13px; color: var(--text-secondary); display: block; margin-bottom: 16px; }
.habit-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px;
    cursor: pointer; transition: all 0.2s;
}
.habit-item:active { transform: scale(0.98); }
.habit-item.completed { border-color: rgba(0,255,135,0.3); }
.habit-left { display: flex; align-items: center; gap: 12px; }
.custom-checkbox {
    width: 24px; height: 24px; min-width: 24px; border-radius: 6px;
    border: 2px solid var(--border); display: flex; align-items: center;
    justify-content: center; transition: all 0.2s;
}
.habit-item.completed .custom-checkbox {
    background: var(--accent); border-color: var(--accent); color: #000;
}
.habit-title { font-size: 13px; font-weight: 500; }
.habit-time-badge {
    background: var(--bg-card2); color: var(--text-secondary); padding: 3px 10px;
    border-radius: 20px; font-size: 11px; font-weight: 600;
}

/* ===== WATER ===== */
.water-bar-wrap { margin-bottom: 12px; }
.water-bar {
    width: 100%; height: 12px; background: var(--bg-card2);
    border-radius: 6px; overflow: hidden; margin-bottom: 6px;
}
.water-fill { height: 100%; background: linear-gradient(90deg, #00c9ff, var(--accent)); border-radius: 6px; transition: width 0.4s; }
.water-text { font-size: 13px; color: var(--text-secondary); }

/* ===== WORKOUT ===== */
.workout-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.workout-form input {
    width: 100%; background: var(--bg-card2); border: 1px solid var(--border);
    color: var(--text-primary); padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 14px; outline: none; font-family: inherit;
}
.workout-form input:focus { border-color: var(--accent); }
.workout-row { display: flex; gap: 8px; }
.workout-row input { flex: 1; }
.workout-log-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px;
}
.workout-log-item strong { font-size: 14px; }
.workout-log-item span { font-size: 13px; color: var(--accent); }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border: 1px solid var(--accent);
    color: var(--text-primary); padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; z-index: 9999; transition: bottom 0.4s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5); white-space: nowrap;
}
.toast.show { bottom: 32px; }

/* ===== LIVE WORKOUT WIZARD ===== */
.workout-state-box { width: 100%; }
.workout-start-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 20px; text-align: center;
}
.start-icon { font-size: 48px; color: var(--accent); margin-bottom: 16px; display: block; }
.workout-start-card h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.workout-start-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

.timer-banner {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, rgba(0,255,135,0.15), rgba(0,201,255,0.1));
    border: 1px solid var(--accent); border-radius: var(--radius-sm);
    padding: 12px 16px; margin-bottom: 20px;
}
.timer-left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.timer-clock { font-size: 18px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }

.wizard-step { margin-bottom: 20px; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.step-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.btn-text-sm { background: none; border: none; color: var(--text-secondary); font-size: 12px; cursor: pointer; font-family: inherit; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-btn {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px 12px; color: var(--text-primary); font-size: 14px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.2s;
    font-family: inherit; text-align: left;
}
.cat-btn i { color: var(--accent); font-size: 18px; }
.cat-btn:hover, .cat-btn:active { border-color: var(--accent); background: var(--accent-dim); }

.exercise-select-list { display: flex; flex-direction: column; gap: 8px; }
.ex-option-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 16px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center;
}
.ex-option-card:hover, .ex-option-card:active { border-color: var(--accent); background: var(--accent-dim); }
.ex-option-info h5 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.ex-option-info p { font-size: 11px; color: var(--text-secondary); }
.ex-option-card i { color: var(--accent); font-size: 14px; }

.exercise-info-badge {
    background: var(--bg-card2); border-left: 3px solid var(--accent);
    padding: 10px 14px; border-radius: 6px; font-size: 12px; color: var(--text-secondary);
    margin-bottom: 16px; line-height: 1.4;
}

.session-ex-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center;
}
.session-ex-item strong { font-size: 13px; display: block; }
.session-ex-item span { font-size: 12px; color: var(--accent); }

.summary-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 18px; text-align: center;
}
.summary-badge {
    display: inline-flex; align-items: center; gap: 6px; background: var(--accent-dim);
    color: var(--accent); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.summary-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.summary-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.report-item {
    background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 8px; text-align: center;
}
.report-item i { color: var(--accent); font-size: 16px; margin-bottom: 4px; display: block; }
.report-val { display: block; font-size: 16px; font-weight: 800; }
.report-lbl { font-size: 11px; color: var(--text-secondary); }

.efficiency-box {
    background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; text-align: left; margin-bottom: 20px;
}
.eff-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.eff-top strong { color: var(--accent); font-size: 16px; }
.eff-bar { width: 100%; height: 8px; background: var(--bg-card); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.eff-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #00c9ff); border-radius: 4px; transition: width 0.5s; }
.eff-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

.btn-finish-workout { background: linear-gradient(135deg, #00ff87, #00c9ff); color: #000; font-weight: 800; }

/* ===== MOBILE BOTTOM TAB NAVIGATION BAR ===== */
.bottom-nav-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
    background: var(--bg-card); border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 500; backdrop-filter: blur(10px);
}
.bottom-tab-item {
    background: none; border: none; color: var(--text-secondary);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 11px; font-weight: 500; cursor: pointer; flex: 1;
    height: 100%; font-family: inherit; transition: all 0.2s;
}
.bottom-tab-item i { font-size: 18px; }
.bottom-tab-item.active { color: var(--accent); font-weight: 700; }
.bottom-tab-item.active i { transform: translateY(-2px); }

/* Padding adjustment for pages when bottom nav is visible */
.screen.active .page-content, .screen.active .dashboard-content {
    padding-bottom: 80px !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.screen.active > * { animation: fadeIn 0.3s ease; }


/* ===== NUTRITION & FOOD CARDS STYLES ===== */
.quick-food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.food-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.food-card:hover {
    background: rgba(0, 255, 135, 0.08);
    border-color: rgba(0, 255, 135, 0.3);
    transform: translateY(-2px);
}

.food-icon {
    font-size: 24px;
}

.food-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.food-info strong {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.2;
}

.food-info span {
    font-size: 10px;
    color: #8a99ad;
}

.add-food-btn {
    color: #00ff87;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.food-card:hover .add-food-btn {
    opacity: 1;
}

.meal-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meal-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.meal-item-macros {
    font-size: 11px;
    color: #8a99ad;
    margin-top: 2px;
}

.meal-item-cal {
    font-size: 14px;
    font-weight: 700;
    color: #00ff87;
}

.meal-delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    padding: 4px;
}

/* ===== BADGES & ACHIEVEMENTS STYLES ===== */
.badge-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.badge-item.unlocked {
    background: rgba(0, 255, 135, 0.08);
    border: 1px solid rgba(0, 255, 135, 0.4);
    opacity: 1;
    filter: grayscale(0%);
    box-shadow: 0 4px 12px rgba(0, 255, 135, 0.15);
}

.badge-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.badge-title {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.badge-desc {
    font-size: 8px;
    color: #8a99ad;
    margin-top: 2px;
}

/* ===== AI COACH CHAT BUBBLES ===== */
.chat-msg-user {
    background: linear-gradient(135deg, #00ff87, #00c9ff);
    color: #0b0e17;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
    align-self: flex-end;
    box-shadow: 0 4px 10px rgba(0, 255, 135, 0.1);
}

.chat-msg-bot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f0f4f8;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
    align-self: flex-start;
}
