/* ===== VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #252535;
    --bg-tertiary: #1e1e2e;
    --bg-glass: rgba(26, 26, 36, 0.7);
    --glass-bg: rgba(26, 26, 36, 0.5);
    --glass-hover: rgba(37, 37, 53, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --accent-green: #00f5a0;
    --accent-green-glow: rgba(0, 245, 160, 0.3);
    --accent-cyan: #00d9f5;
    --accent-orange: #ff6b35;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-pink: #f472b6;
    --accent-yellow: #fbbf24;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 245, 160, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 245, 160, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 245, 160, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.bg-gradient-green { background: linear-gradient(135deg, #00f5a0, #00d9a0); }
.bg-gradient-cyan { background: linear-gradient(135deg, #00d9f5, #00a8f5); }
.bg-gradient-orange { background: linear-gradient(135deg, #ff6b35, #ff8f35); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-gradient-red { background: linear-gradient(135deg, #ef4444, #f87171); }
.bg-gradient-pink { background: linear-gradient(135deg, #f472b6, #f9a8d4); }
.bg-gradient-yellow { background: linear-gradient(135deg, #fbbf24, #fcd34d); }
.bg-gradient-fire { background: linear-gradient(135deg, #ff6b35, #ff4757); }
.bg-gradient-ocean { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.bg-gradient-sunset { background: linear-gradient(135deg, #f472b6, #fbbf24); }
.bg-gradient-forest { background: linear-gradient(135deg, #10b981, #34d399); }
.bg-gradient-gray { background: linear-gradient(135deg, #6b7280, #9ca3af); }

.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 160, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 160, 0.4); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes loadProgress {
    from { width: 0%; }
    to { width: 100%; }
}
@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 245, 160, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 245, 160, 0.4); }
}
@keyframes notifIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
@keyframes pulse-stroke {
    0%, 100% { stroke-width: 8; }
    50% { stroke-width: 12; }
}
@keyframes pulse-text {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes confettiDrop {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(300px) rotate(720deg); }
}

/* SPLASH SCREEN */
.splash-screen {
    position: fixed; inset: 0; background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}
.splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; display: none !important; }
.splash-content { text-align: center; animation: fadeInUp 0.8s ease; z-index: 2; position: relative; }

.splash-logo { 
    width: 140px; height: 140px; 
    margin: 0 auto 32px; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 245, 160, 0.2);
    border-radius: 50%;
    animation: rotateRing 3s linear infinite;
}

.logo-ring.ring-2 {
    inset: 10px;
    border-color: rgba(0, 217, 245, 0.3);
    animation-direction: reverse;
    animation-duration: 2s;
}

.logo-core {
    width: 82px; height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 245, 160, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.logo-core .logo-svg {
    width: 60px; height: 60px;
}

.logo-core i { font-size: 28px; color: var(--bg-primary); }

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.splash-content h1 {
    font-family: var(--font-display); 
    font-size: 2.5rem; 
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    margin-bottom: 8px; 
    letter-spacing: -1px;
}
.splash-tagline { 
    color: var(--text-secondary); 
    font-size: 0.85rem; 
    font-weight: 600; 
    letter-spacing: 6px; 
    text-transform: uppercase; 
    margin-bottom: 40px; 
}
.splash-loader { width: 200px; margin: 0 auto 24px; }
.loader-track {
    height: 3px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar { 
    height: 3px; 
    width: 0%; 
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); 
    border-radius: 2px; 
    animation: loadProgress 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
    box-shadow: 0 0 15px var(--accent-green-glow); 
}
.splash-version { color: var(--text-muted); font-size: 0.75rem; font-weight: 500; font-family: var(--font-mono); }

.splash-bg {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(0, 245, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ONBOARDING */
.onboarding { position: fixed; inset: 0; background: var(--bg-primary); z-index: 90; overflow-y: auto; padding: 0; transition: opacity 0.4s ease, visibility 0.4s ease;}
.onboarding.hidden { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    display: none !important; 
}
.onboarding-container { max-width: 500px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 20px; padding-bottom: 40px; }
.onboarding-header { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.onboarding-back {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.onboarding-back:hover { border-color: var(--accent-green); }
.onboarding-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.onboarding-skip:hover { color: var(--text-primary); }

.progress-dots { display: flex; gap: 8px; }
.progress-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); transition: var(--transition); }
.progress-dots .dot.active { background: var(--accent-green); border-color: var(--accent-green); box-shadow: 0 0 12px var(--accent-green-glow); width: 32px; border-radius: 4px; }
.step { animation: fadeInUp 0.5s ease; flex: 1; display: flex; flex-direction: column; }
.step.hidden { display: none; }
.step-hero { text-align: center; margin-bottom: 32px; }
.step-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 32px rgba(0, 245, 160, 0.2); }
.step-icon i { font-size: 32px; color: var(--bg-primary); }
.step h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.step-desc { color: var(--text-secondary); font-size: 0.95rem; }

.options-grid { display: grid; gap: 12px; }
.options-grid.multi-select { grid-template-columns: repeat(2, 1fr); }
.option-card {
    background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; color: var(--text-primary); cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 16px; text-align: left; font-family: inherit;
    position: relative; overflow: hidden;
}
.option-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 245, 160, 0.05), transparent); opacity: 0; transition: opacity 0.3s ease; }
.option-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.option-card:hover::before { opacity: 1; }
.option-card.selected { border-color: var(--accent-green); background: rgba(0, 245, 160, 0.05); box-shadow: 0 0 25px rgba(0, 245, 160, 0.15); }
.option-card.selected .option-check { opacity: 1; transform: scale(1); }
.option-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.option-icon i { font-size: 20px; color: white; }
.option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.option-title { font-weight: 700; font-size: 1rem; font-family: var(--font-display); }
.option-sub { color: var(--text-muted); font-size: 0.8rem; }
.option-check { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-green); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); flex-shrink: 0; }
.option-check i { font-size: 12px; color: var(--bg-primary); }

.option-chip {
    background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md);
    padding: 14px; color: var(--text-primary); cursor: pointer; transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-family: inherit;
}
.option-chip:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.option-chip.selected { border-color: var(--accent-green); background: rgba(0, 245, 160, 0.05); box-shadow: 0 0 20px rgba(0, 245, 160, 0.1); }
.option-chip i { font-size: 24px; color: var(--accent-green); }
.option-chip span { font-weight: 600; font-size: 0.85rem; }

.preference-section { margin-bottom: 24px; }
.pref-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; }
.pref-title i { color: var(--accent-green); }

.intensity-slider { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.intensity-slider input[type="range"] { width: 100%; height: 6px; border-radius: 3px; background: var(--bg-hover); outline: none; -webkit-appearance: none; margin-bottom: 12px; }
.intensity-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); cursor: pointer; box-shadow: 0 0 20px var(--accent-green-glow); border: 2px solid white; }
.intensity-labels { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; margin-bottom: 12px; }
.intensity-display { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(0, 245, 160, 0.08); border-radius: var(--radius-md); font-size: 0.85rem; color: var(--accent-green); border: 1px solid rgba(0, 245, 160, 0.15); }
.intensity-display i { font-size: 14px; }

.days-selector { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.day-btn { width: 64px; height: 72px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1.5px solid var(--border); color: var(--text-primary); cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: inherit; }
.day-btn:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.day-btn.selected { background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); border-color: transparent; color: var(--bg-primary); box-shadow: 0 8px 25px rgba(0, 245, 160, 0.3); transform: translateY(-2px); }
.day-number { font-size: 1.5rem; font-weight: 800; font-family: var(--font-display); }
.day-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.days-info { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(59, 130, 246, 0.08); border-radius: var(--radius-md); color: var(--accent-blue); font-size: 0.85rem; border: 1px solid rgba(59, 130, 246, 0.15); }
.days-info i { font-size: 14px; }

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); 
    color: var(--bg-primary);
    border: none; border-radius: var(--radius-md); padding: 18px 32px; font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: var(--transition); font-family: var(--font-display); position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 245, 160, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-glow::after { content: ''; position: absolute; inset: -2px; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); border-radius: calc(var(--radius-md) + 2px); z-index: -1; opacity: 0.4; filter: blur(12px); }
.btn-full { width: 100%; margin-top: 24px; }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-display);
}
.btn-secondary:hover { border-color: var(--accent-green); color: var(--accent-green); }

.danger-btn {
    width: 100%;
    padding: 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-display);
}
.danger-btn:hover { background: rgba(239, 68, 68, 0.2); border-color: var(--accent-red); }

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* APP */
.app {
    position: relative;
    z-index: 50;
    min-height: 100vh;
    padding-bottom: 20px;
    background: var(--bg-primary);
}
.app.hidden { display: none !important; }

/* HYDRATION WIDGET */
.hydration-widget{
    margin: 0 20px 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.hydration-widget:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.hydration-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 18px;
    flex-shrink: 0;
}
.hydration-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.hydration-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.hydration-amount { font-size: 1.1rem; font-weight: 700; font-family: var(--font-mono); color: var(--accent-blue); }
.hydration-progress {
    width: 60px;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}
.hydration-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* TIME BANNER */
.time-banner {
    margin: 0 20px 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.5s ease;
}
.time-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.time-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.time-greeting {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}
.time-suggestion {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.app-header { position: relative; padding: 20px 20px 0; overflow: hidden; }
.header-bg { position: absolute; top: -50%; left: -20%; right: -20%; height: 200%; background: radial-gradient(ellipse at 50% 0%, rgba(0, 245, 160, 0.08) 0%, transparent 70%); pointer-events: none; }
.header-content { display: flex; justify-content: space-between; align-items: flex-start; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.user-greeting { display: flex; flex-direction: column; gap: 4px; }
.greeting-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255, 107, 53, 0.15); border: 1px solid rgba(255, 107, 53, 0.3); border-radius: var(--radius-full); color: var(--accent-orange); font-size: 0.75rem; font-weight: 700; width: fit-content; margin-bottom: 4px; }
.greeting-text { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; }
.greeting-sub { color: var(--text-secondary); font-size: 0.9rem; }
.header-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); color: var(--accent-green); font-size: 1.25rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; position: relative; }
.header-btn:hover { background: var(--bg-hover); border-color: var(--accent-green); box-shadow: 0 0 25px rgba(0, 245, 160, 0.25); }
.header-btn::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; top: 8px; right: 8px; box-shadow: 0 0 8px var(--accent-green); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.stats-section { padding: 20px; max-width: 600px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card { border-radius: var(--radius-lg); padding: 16px; display: flex; align-items: center; gap: 12px; transition: var(--transition); position: relative; overflow: hidden; }
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white; flex-shrink: 0; }
.stat-info { display: flex; flex-direction: column; flex: 1; }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.stat-label { color: var(--text-muted); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-sparkline { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-green), transparent); opacity: 0.3; }

.workout-section { padding: 0 20px 20px; max-width: 600px; margin: 0 auto; }
.section-header { display: flex; justify-content: center; align-items: center; margin-bottom: 12px; }
.section-header h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.section-link { background: none; border: none; color: var(--accent-green); font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; font-family: inherit; transition: var(--transition); }
.section-link:hover { gap: 8px; }
.workout-badge { padding: 4px 10px; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); color: var(--bg-primary); border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.workout-card { border-radius: var(--radius-xl); padding: 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.workout-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.workout-glow { position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(0, 245, 160, 0.1) 0%, transparent 70%); pointer-events: none; }
.workout-image { width: 64px; height: 64px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; }
.workout-image-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.workout-image i { font-size: 28px; color: var(--bg-primary); }
.workout-info { flex: 1; min-width: 0; }
.workout-info h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.workout-info p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 10px; }
.workout-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: rgba(0, 245, 160, 0.1); color: var(--accent-green); padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge.outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.workout-action { flex-shrink: 0; }
.action-ring { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 245, 160, 0.3); transition: var(--transition); }
.action-ring i { font-size: 16px; color: var(--bg-primary); margin-left: 2px; }
.workout-card:hover .action-ring { transform: scale(1.1); box-shadow: 0 6px 25px rgba(0, 245, 160, 0.4); }

.calendar-section { padding: 0 20px 20px; max-width: 600px; margin: 0 auto; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-day { aspect-ratio: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: var(--transition); position: relative; }
.calendar-day:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.calendar-day.active { background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); border-color: transparent; color: var(--bg-primary); box-shadow: 0 4px 15px rgba(0, 245, 160, 0.3); }
.calendar-day.completed { border-color: var(--accent-green); background: rgba(0, 245, 160, 0.08); }
.calendar-day.completed::after { content: ''; position: absolute; bottom: 6px; width: 6px; height: 6px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 8px var(--accent-green); }
.calendar-day span:first-child { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.calendar-day span:last-child { font-size: 1rem; font-weight: 800; font-family: var(--font-display); }

.progress-chart-section { padding: 0 20px 20px; max-width: 600px; margin: 0 auto; }
.chart-card { border-radius: var(--radius-xl); padding: 20px; position: relative; overflow: hidden; }
.chart-card canvas { width: 100% !important; height: auto !important; }

.actions-section { padding: 0 20px 20px; max-width: 600px; margin: 0 auto; }
.actions-section h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px;text-align: center; }
.actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-btn { border-radius: var(--radius-lg); padding: 18px; color: var(--text-primary); cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: inherit; border: 1px solid var(--border); background: var(--bg-card); }
.action-btn:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.action-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white; }
.action-btn span { font-size: 0.85rem; font-weight: 600; }

.bottom-spacer { height: 90px; }

.bottom-nav { position: fixed; bottom: 12px; left: 12px; right: 12px; border-radius: var(--radius-xl); display: flex; justify-content: space-around; padding: 8px 0; z-index: 50; border: 1px solid var(--border); }
.nav-indicator { position: absolute; bottom: 0; height: 3px; width: 20%; background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); border-radius: 3px 3px 0 0; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); left: 2.5%; }
.nav-btn { background: none; border: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; cursor: pointer; transition: var(--transition); font-family: inherit; position: relative; flex: 1; }
.nav-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); transition: var(--transition); }
.nav-btn i { font-size: 1.1rem; transition: var(--transition); }
.nav-btn span { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px; }
.nav-btn.active { color: var(--accent-green); }
.nav-btn.active .nav-icon { background: rgba(0, 245, 160, 0.1); }
.nav-btn:hover { color: var(--text-primary); }
/* MODALS */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal:not(.hidden) { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal-content { border-radius: var(--radius-xl) var(--radius-xl) 0 0; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; z-index: 1; }
.modal:not(.hidden) .modal-content { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-secondary); z-index: 10; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal-header h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.back-btn, .close-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.back-btn:hover, .close-btn:hover { background: var(--bg-hover); border-color: var(--accent-green); }

/* ACHIEVEMENT MODAL */
.achievement-content { text-align: center; padding: 40px 20px; }
.achievement-animation { position: relative; margin-bottom: 24px; }
.achievement-icon-large { font-size: 80px; display: block; margin-bottom: 16px; }
.achievement-particles { position: absolute; inset: 0; pointer-events: none; }

/* QR SCANNER */
.qr-content { text-align: center; }
.qr-scanner { padding: 40px 20px; }
.scanner-frame { width: 260px; height: 260px; border-radius: var(--radius-xl); margin: 0 auto 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.scanner-corners { position: absolute; inset: 16px; }
.corner { position: absolute; width: 30px; height: 30px; border-color: var(--accent-green); border-style: solid; border-width: 0; }
.corner-tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.corner-tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.corner-bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.corner-br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.scanner-line { position: absolute; top: 0; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-green), transparent); box-shadow: 0 0 15px var(--accent-green); animation: scanLine 2.5s linear infinite; }
.scanner-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scanner-content i { font-size: 64px; color: var(--accent-green); opacity: 0.8; }
.scanner-content p { color: var(--text-secondary); font-size: 0.9rem; }
.checkin-result { padding: 40px 20px; animation: fadeInUp 0.5s ease; }
.checkin-result.hidden { display: none; }
.success-ring { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; animation: scaleIn 0.5s ease; box-shadow: 0 8px 30px rgba(0, 245, 160, 0.3); }
.success-icon i { font-size: 40px; color: var(--bg-primary); }
.checkin-result h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.checkin-result p { color: var(--text-secondary); margin-bottom: 20px; }
.checkin-stats { display: flex; justify-content: center; gap: 16px; }
.checkin-stat { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(0, 245, 160, 0.08); border-radius: var(--radius-md); color: var(--accent-green); font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(0, 245, 160, 0.15); }

/* SETTINGS */
.settings-list { padding: 20px; }
.setting-group { margin-bottom: 24px; }
.setting-group-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; padding-left: 4px; }
.setting-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; cursor: pointer; transition: var(--transition); }
.setting-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.setting-item.danger:hover { border-color: var(--accent-red); }
.setting-info { display: flex; align-items: center; gap: 12px; }
.setting-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; }
.setting-info div { display: flex; flex-direction: column; }
.setting-info span:first-child { font-weight: 600; font-size: 0.95rem; }
.setting-info small { color: var(--text-muted); font-size: 0.8rem; }

/* TOGGLE SWITCH */
.toggle-switch { position: relative; width: 48px; height: 26px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-hover);
    border-radius: 26px;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent-green); border-color: var(--accent-green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ROUTINE PAGE */
.routine-page { padding-bottom: 20px; background: var(--bg-primary); }
.page-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; background: var(--bg-secondary); }
.page-header h1 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.routine-header-info { display: flex; flex-direction: column; align-items: center; flex: 1; }
.routine-subtitle { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.routine-timer { display: flex; align-items: center; gap: 8px; color: var(--accent-green); font-weight: 700; font-size: 0.9rem; font-family: var(--font-mono); }

.progress-section { padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); position: sticky; top: 65px; z-index: 9; }
.progress-bar-container { height: 6px; background: var(--bg-card); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
#routine-progress { height: 100%; background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); border-radius: 3px; width: 0%; transition: width 0.5s ease; box-shadow: 0 0 15px rgba(0, 245, 160, 0.3); }
.progress-header { display: flex; justify-content: space-between; align-items: center; }
.progress-percent { color: var(--accent-green); font-weight: 700; font-family: var(--font-display); font-size: 0.9rem; }

.exercise-list { padding: 20px; max-width: 600px; margin: 0 auto; }
.exercise-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.exercise-item:hover { border-color: var(--border-hover); transform: translateX(4px); box-shadow: var(--shadow); }
.exercise-item.completed { border-color: var(--accent-green); background: rgba(0, 245, 160, 0.03); }
.exercise-item.completed .exercise-status { background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); color: var(--bg-primary); border-color: transparent; box-shadow: 0 0 15px rgba(0, 245, 160, 0.3); }
.exercise-status { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-hover); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.exercise-status i { font-size: 0.9rem; }
.exercise-thumb { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--bg-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border); }
.exercise-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exercise-thumb .thumb-svg { width: 70%; height: 70%; }
.exercise-thumb i { font-size: 20px; color: var(--text-muted); }
.exercise-details { flex: 1; min-width: 0; }
.exercise-details h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.exercise-details p { color: var(--text-secondary); font-size: 0.8rem; }
.exercise-meta { display: flex; gap: 6px; margin-top: 6px; }
.exercise-arrow { color: var(--text-muted); font-size: 0.9rem; }

/* ROUTINE FOOTER */
.routine-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.routine-footer .btn-secondary { flex: 1; }
.routine-footer .btn-primary { flex: 1; }

/* COMPLETE MODAL */
#complete-modal .modal-content {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
#particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(0, 245, 160, 0.3);
}
.modal-icon i { font-size: 36px; color: var(--bg-primary); }
#complete-modal h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
#complete-modal > .modal-content > p { color: var(--text-secondary); margin-bottom: 24px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.modal-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.modal-stat .number { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--accent-green); display: block; }
.modal-stat .label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-badges { margin-bottom: 24px; }
.modal-actions { display: flex; justify-content: center; }

/* TOAST */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { font-size: 1.1rem; }

/* EXERCISE PAGE */
.exercise-page { padding-bottom: 100px; background: var(--bg-primary); }
.exercise-content-wrapper { padding: 20px; max-width: 600px; margin: 0 auto; }

.exercise-media-card { 
    width: 100%; 
    aspect-ratio: 16/10; 
    background: var(--bg-card); 
    border-radius: var(--radius-xl); 
    overflow: hidden; 
    margin-bottom: 20px; 
    position: relative; 
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.exercise-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exercise-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,20,0.8) 0%, transparent 50%);
    pointer-events: none;
}
.image-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.media-overlay { position: absolute; bottom: 12px; left: 12px; z-index: 2; }
.muscle-badge { padding: 6px 14px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; color: var(--accent-green); border: 1px solid rgba(0, 245, 160, 0.2); }

.muscle-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.muscle-tag { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.muscle-tag.primary { background: rgba(0, 245, 160, 0.1); border-color: rgba(0, 245, 160, 0.3); color: var(--accent-green); }

/* Exercise Stats */
.exercise-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.exercise-stat {
    padding: 14px 10px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    transition: all var(--transition-fast);
}
.exercise-stat:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}
.exercise-stat i {
    color: var(--accent-green);
    font-size: 16px;
}
.exercise-stat span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Sections */
.instructions-section,
.tips-section,
.weight-section,
.user-input-section,
.rest-timer-section,
.records-section {
    margin-bottom: 24px;
}
.instructions-section h3,
.tips-section h3,
.weight-section h3,
.user-input-section h3,
.rest-timer-section h3,
.records-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.instructions-section h3 i,
.tips-section h3 i,
.weight-section h3 i,
.user-input-section h3 i,
.rest-timer-section h3 i,
.records-section h3 i {
    color: var(--accent-green);
    font-size: 16px;
}
.instructions-section ol {
    padding-left: 24px;
    margin: 0;
}
.instructions-section ol li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 8px;
}
.tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tips-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}
.tips-section ul li:last-child {
    border-bottom: none;
}
.tips-section ul li:hover {
    color: var(--text-primary);
    padding-left: 4px;
}
.tips-section ul li i {
    color: var(--accent-yellow);
    margin-top: 2px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Weight Cards */
.weight-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.weight-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 10px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.weight-card:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.weight-card:active {
    transform: scale(0.97);
}
.weight-icon {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}
.weight-card[data-level="beginner"] .weight-icon { color: var(--accent-green); }
.weight-card[data-level="intermediate"] .weight-icon { color: var(--accent-yellow); }
.weight-card[data-level="advanced"] .weight-icon { color: var(--accent-orange); }
.weight-level {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.weight-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* User Input */
.input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}
.number-input {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}
.number-input:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}
.number-input button {
    width: 36px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.number-input button:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}
.number-input button:active {
    transform: scale(0.9);
}
.number-input input {
    width: 100%;
    min-width: 0;
    padding: 10px 4px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-mono);
    outline: none;
}
.number-input input::-webkit-inner-spin-button,
.number-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Recommended Weight */
.recommended-weight-banner {
    background: rgba(0, 245, 160, 0.06);
    border: 1px dashed rgba(0, 245, 160, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.recommended-weight-banner:hover {
    background: rgba(0, 245, 160, 0.1);
    border-style: solid;
}
.recommended-weight-banner i {
    color: var(--accent-yellow);
    font-size: 16px;
}
.recommended-weight-banner strong {
    color: var(--accent-green);
    font-size: 16px;
    font-family: var(--font-mono);
}
.btn-use-recommended {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: var(--glass-bg);
    border: 1px dashed var(--accent-green);
    border-radius: var(--radius-md);
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-main);
}
.btn-use-recommended:hover {
    background: rgba(0, 245, 160, 0.1);
    border-style: solid;
    transform: translateY(-1px);
}
.btn-use-recommended:active {
    transform: scale(0.98);
}







/* ===== SERIES SECTION ===== */
.series-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 20px;
}
.series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.series-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.series-title i {
    color: var(--accent-green);
}
.series-counter {
    font-size: 14px;
    color: var(--text-secondary);
}
.series-counter strong {
    color: var(--text-primary);
    font-size: 18px;
    font-family: var(--font-mono);
}

/* Series Dots */
.series-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.series-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    font-family: var(--font-mono);
}
.series-dot.active {
    border-color: var(--accent-green);
    background: rgba(0, 245, 160, 0.15);
    color: var(--accent-green);
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 245, 160, 0.2);
    animation: dotPulse 2s ease-in-out infinite;
}
.series-dot.completed {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: var(--bg-primary);
    animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.series-dot.completed i {
    font-size: 14px;
}

/* Circular Timer */
.timer-circular-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
.timer-circular {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}
.timer-circular svg {
    transform: rotate(-90deg);
    width: 160px;
    height: 160px;
}
.timer-circular .bg-circle {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 8;
}
.timer-circular .progress-circle {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease, stroke 0.5s ease;
}
.timer-circular .progress-circle.warning {
    stroke: var(--accent-orange);
}
.timer-circular .progress-circle.danger {
    stroke: var(--accent-red);
    animation: pulse-stroke 0.5s ease-in-out infinite;
}
.timer-circular .timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    text-align: center;
    line-height: 1;
}
.timer-circular .timer-text .timer-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 6px;
    font-family: var(--font-main);
}
.timer-circular .timer-text.warning {
    color: var(--accent-orange);
}
.timer-circular .timer-text.danger {
    color: var(--accent-red);
    animation: pulse-text 0.5s ease-in-out infinite;
}

/* Timer Controls */
.timer-controls-series {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.timer-btn-series {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
}
.timer-btn-series.btn-start {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: var(--bg-primary);
}
.timer-btn-series.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.3);
}
.timer-btn-series.btn-pause {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.timer-btn-series.btn-pause:hover {
    background: var(--glass-hover);
}
.timer-btn-series.btn-reset {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.timer-btn-series.btn-reset:hover {
    background: rgba(239, 68, 68, 0.2);
}
.timer-btn-series.btn-next {
    background: var(--accent-green);
    color: var(--bg-primary);
}
.timer-btn-series.btn-next:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.3);
}
.timer-btn-series:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Series Status */
.series-status {
    text-align: center;
    padding: 12px;
    margin-top: 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 245, 160, 0.05);
    border: 1px solid rgba(0, 245, 160, 0.1);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.series-status .highlight {
    color: var(--accent-green);
    font-weight: 700;
}
.series-status .highlight-warning {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Notification Toast */
.series-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-green);
    border-radius: var(--radius-2xl);
    padding: 32px 40px;
    z-index: 9999;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    min-width: 280px;
}
.series-notification.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}
.series-notification .notif-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    animation: notifIconBounce 0.5s ease;
}
.series-notification .notif-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.series-notification .notif-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.series-notification .notif-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}
.series-notification .notif-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.3);
}

/* Exercise Footer */
.exercise-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 100;
    max-width: 600px;
    margin: 0 auto;
}
.btn-complete {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    border: none;
    border-radius: var(--radius-lg);
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}
.btn-complete::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn-complete:hover::before {
    transform: translateX(100%);
}
.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 160, 0.3);
}
.btn-complete:active {
    transform: scale(0.98);
}
.btn-complete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn-complete:disabled::before {
    display: none;
}

/* Feedback Toasts */
.feedback-toast,
.error-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 15px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    opacity: 0;
    text-align: center;
    max-width: 90%;
}
.feedback-toast {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: var(--bg-primary);
}
.error-toast {
    background: linear-gradient(135deg, var(--accent-red), #f87171);
    color: white;
}
.feedback-toast.show,
.error-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== PROGRESS PAGE ===== */
.progress-page-content {
    padding: 16px 20px 20px;
    max-width: 700px;
    margin: 0 auto;
}
.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.stat-card-large {
    padding: 18px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition-fast);
}
.stat-card-large:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}
.stat-icon-large {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--bg-primary);
    flex-shrink: 0;
}
.stat-info-large {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-number {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1;
}
.stat-label-large {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Container */
.chart-container {
    padding: 20px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}
.chart-legend {
    display: flex;
    gap: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Muscle Bars */
.muscle-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.muscle-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.muscle-bar-label {
    width: 80px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.muscle-bar-track {
    flex: 1;
    height: 8px;
    background: var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}
.muscle-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.muscle-bar-value {
    width: 50px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

/* Records List */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.record-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}
.record-item:hover {
    background: var(--glass-hover);
    transform: translateX(4px);
}
.record-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--bg-primary);
    flex-shrink: 0;
}
.record-item-info {
    flex: 1;
}
.record-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.record-item-date {
    font-size: 11px;
    color: var(--text-muted);
}
.record-item-value {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-yellow);
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.history-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}
.history-item:hover {
    background: var(--glass-hover);
    transform: translateX(4px);
}
.history-item .name {
    font-weight: 600;
    font-size: 14px;
}
.history-item .date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.history-item .check {
    color: var(--accent-green);
    font-size: 18px;
}

/* ===== PROFILE PAGE ===== */
.profile-page-content {
    padding: 16px 20px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.profile-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    cursor: pointer;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--bg-primary);
    transition: all var(--transition-fast);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.2);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 245, 160, 0.3);
}
.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: rgba(0,0,0,0.7);
    border-radius: 0 0 50px 50px;
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.profile-avatar-container:hover .avatar-overlay {
    opacity: 1;
}
.avatar-level-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow-sm);
}
.profile-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-card .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}
.xp-bar-container {
    width: 100%;
    max-width: 200px;
    height: 8px;
    background: var(--glass-border);
    border-radius: 4px;
    margin: 12px auto 0;
    position: relative;
    overflow: hidden;
}
.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.xp-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    font-family: var(--font-mono);
}

/* Section Card */
.section-card {
    padding: 20px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--accent-green);
}

/* Metrics Form */
.metrics-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-group input {
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}
.form-group input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}
.form-group input::placeholder {
    color: var(--text-muted);
}
.metrics-form .btn-primary {
    grid-column: span 2;
    margin-top: 8px;
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.photo-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.photo-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-sm);
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.photo-item:hover img {
    transform: scale(1.1);
}
.photo-item .photo-month {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: rgba(0,0,0,0.7);
    font-size: 10px;
    text-align: center;
    color: var(--text-secondary);
}
.add-photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 8px;
    border-style: dashed;
}
.add-photo-item:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 245, 160, 0.05);
}
.add-photo-item i {
    font-size: 28px;
}
.add-photo-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Stars Rating */
.stars {
    display: flex;
    gap: 8px;
    font-size: 28px;
    cursor: pointer;
    margin: 12px 0;
    justify-content: center;
}
.stars .star {
    color: var(--glass-border);
    transition: all var(--transition-fast);
    cursor: pointer;
}
.stars .star.active {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}
.stars .star:hover {
    color: var(--accent-yellow);
    transform: scale(1.2);
}

/* Rating Comment */
.rating-comment textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-main);
    transition: all var(--transition-fast);
}
.rating-comment textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}
.rating-comment textarea::placeholder {
    color: var(--text-muted);
}

/* Hydration Settings */
.hydration-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}
.toggle-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-green);
    cursor: pointer;
}
.interval-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}
.interval-setting input {
    width: 60px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    font-family: var(--font-mono);
}
.hydration-today-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.hydration-today-info {
    display: flex;
    flex-direction: column;
}
.hydration-label-small {
    font-size: 12px;
    color: var(--text-secondary);
}
.hydration-amount-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    line-height: 1;
}
.hydration-unit {
    font-size: 12px;
    color: var(--text-secondary);
}
.hydration-history-chart {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: flex-end;
    height: 60px;
}
.hydration-bar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.hydration-bar-track {
    width: 100%;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.hydration-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--accent-blue), var(--accent-green));
    border-radius: 4px;
    transition: height 0.5s ease;
}
.hydration-bar-label {
    font-size: 10px;
    color: var(--text-muted);
}
.hydration-bar-value {
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ===== SKELETON LOADERS ===== */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skeleton-item {
    height: 72px;
    background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-hover) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .options-grid.multi-select {
        grid-template-columns: repeat(2, 1fr);
    }
    .days-selector {
        flex-wrap: wrap;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics-form {
        grid-template-columns: 1fr;
    }
    .metrics-form .btn-primary {
        grid-column: span 1;
    }
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exercise-stats-row {
        grid-template-columns: 1fr;
    }
    .exercise-stat {
        flex-direction: row;
        padding: 10px 14px;
    }
    .weight-cards {
        grid-template-columns: 1fr;
    }
    .input-grid {
        grid-template-columns: 1fr;
    }
    .timer-circular {
        width: 130px;
        height: 130px;
    }
    .timer-circular svg {
        width: 130px;
        height: 130px;
    }
    .timer-circular .timer-text {
        font-size: 28px;
    }
    .series-dot {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    .timer-btn-series {
        padding: 8px 12px;
        font-size: 12px;
    }
    .series-notification {
        padding: 24px 20px;
    }
    .series-notification .notif-title {
        font-size: 18px;
    }
    .modal-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .modal-stat .number {
        font-size: 20px;
    }
    .routine-footer {
        padding: 12px 16px;
        gap: 8px;
    }
    .btn-primary {
        padding: 14px;
        font-size: 14px;
    }
    .btn-secondary {
        padding: 14px;
        font-size: 12px;
    }
    .exercise-footer {
        padding: 12px 16px;
    }
    .btn-complete {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .exercise-stats-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .weight-cards {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .input-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .splash-content h1 {
        font-size: 26px;
    }
    .step-hero h2 {
        font-size: 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(0, 245, 160, 0.3);
    color: var(--text-primary);
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: var(--bg-dark);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .form-group {
    position: relative;
}

.login-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
    box-sizing: border-box;
}

.login-input:focus {
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

.login-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.password-toggle {
    position: absolute;
    right: 12px;
    bottom: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.login-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.login-footer span {
    color: var(--text-muted);
    font-size: 14px;
}

.login-footer .btn-text {
    color: var(--accent-green);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.login-footer .btn-text:hover {
    text-decoration: underline;
}

/* Activación */
.activation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.activation-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.activation-info {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

#activation-form .form-group {
    margin-bottom: 16px;
}

#activation-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

#activation-form input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    box-sizing: border-box;
}

#activation-form input:focus {
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

/* ===== BOTONES ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-dark);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 160, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary.btn-full {
    width: 100%;
}

.btn-primary.btn-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 160, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 160, 0.4); }
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-green);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text:hover {
    text-decoration: underline;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--text-primary);
}

.hidden {
    display: none !important;
}

/* ============================================================
   ROUTINE CUSTOMIZER - ESTILOS DEFINITIVOS
   ============================================================ */

/* Contenedor principal */
.routine-selector-container {
    padding: 16px;
    margin: 0 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    display: block;
    width: auto;
    max-width: 100%;
}

.routine-selector-container.hidden {
    display: none !important;
}

.selector-header {
    text-align: center;
    padding: 16px 0 8px;
}

.selector-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.selector-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== GRID DE ENFOQUES - FIX ===== */
.focus-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Cards de enfoque */
.focus-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.focus-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
    box-shadow: 0 4px 20px rgba(0, 245, 160, 0.1);
}

.focus-card.selected {
    border-color: var(--accent-green);
    background: rgba(0, 245, 160, 0.08);
    box-shadow: 0 0 30px rgba(0, 245, 160, 0.12);
}

.focus-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 1.2rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.focus-card.selected .focus-card-icon {
    transform: scale(1.1);
}

.focus-card-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.focus-card-desc {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.2;
}

.focus-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-green);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.focus-card.selected .focus-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ===== OPCIONES ===== */
.selector-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 0 16px 12px;
    width: 100%;
    box-sizing: border-box;
}

.option-group {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    border: 1px solid var(--border-color);
}

.option-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.days-options,
.level-options {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.day-option,
.level-option {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.day-option:hover,
.level-option:hover {
    border-color: var(--accent-green);
}

.day-option.selected,
.level-option.selected {
    background: var(--accent-green);
    color: var(--bg-dark);
    border-color: var(--accent-green);
}

/* Slider */
.option-group .slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group input[type="range"] {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
    -webkit-appearance: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.3);
}

.option-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    border: none;
}

#exercises-count {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
    color: var(--accent-green);
    font-family: var(--font-mono);
}

/* Botón generar */
#generate-routine-btn {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
}

/* Vista previa */
.routine-preview {
    margin: 0 16px 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.routine-preview.hidden {
    display: none !important;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.preview-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.preview-badge {
    background: rgba(0, 245, 160, 0.15);
    color: var(--accent-green);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.preview-days {
    max-height: 180px;
    overflow-y: auto;
}

.preview-day {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.preview-day:last-child {
    border-bottom: none;
}

.preview-day .day-name {
    font-weight: 500;
    color: var(--text-primary);
}

.preview-day .day-count {
    color: var(--text-muted);
}

.preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.preview-actions .btn-secondary,
.preview-actions .btn-primary {
    flex: 1;
    padding: 10px;
    font-size: 0.8rem;
}

/* ===== RUTINAS FAMOSAS ===== */
.famous-routines-section,
.saved-routines-section {
    margin: 16px 16px 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.famous-routines-section h3,
.saved-routines-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.famous-routines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.famous-routine-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.famous-routine-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 245, 160, 0.08);
}

.famous-routine-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--text-primary);
}

.famous-routine-card p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.famous-routine-card .routine-meta {
    display: flex;
    gap: 6px;
    font-size: 0.65rem;
}

.famous-routine-card .routine-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-muted);
}

/* ===== RUTINAS GUARDADAS ===== */
.saved-routines-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saved-routine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.saved-routine-item:hover {
    border-color: var(--border-hover);
}

.saved-routine-item.active {
    border-color: var(--accent-green);
    background: rgba(0, 245, 160, 0.04);
}

.saved-routine-item .routine-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.saved-routine-item .routine-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.saved-routine-item .routine-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.saved-routine-item .routine-actions button {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.saved-routine-item .routine-actions .activate-btn {
    background: var(--accent-green);
    color: var(--bg-dark);
}

.saved-routine-item .routine-actions .activate-btn:hover {
    transform: scale(1.05);
}

.saved-routine-item .routine-actions .delete-btn {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.saved-routine-item .routine-actions .delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

.active-badge {
    color: var(--accent-green);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-routines {
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
    font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    .focus-selector-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
        padding: 8px 12px;
    }

    .selector-options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 12px 8px;
    }

    .famous-routines-grid {
        grid-template-columns: 1fr 1fr;
    }

    .routine-selector-container {
        margin: 0 12px 16px;
        padding: 12px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .focus-selector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
        padding: 8px 10px;
    }

    .focus-card {
        padding: 10px 6px;
        min-height: 70px;
    }

    .focus-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .focus-card-label {
        font-size: 0.7rem;
    }

    .focus-card-desc {
        font-size: 0.55rem;
    }

    .selector-options {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 10px 8px;
    }

    .option-group {
        padding: 10px 12px;
    }

    .day-option,
    .level-option {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .famous-routines-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .famous-routine-card {
        padding: 10px 12px;
    }

    .famous-routine-card h4 {
        font-size: 0.75rem;
    }

    .saved-routine-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }

    .saved-routine-item .routine-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .preview-actions {
        flex-direction: column;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .focus-selector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px;
        padding: 6px 8px;
    }

    .focus-card {
        padding: 8px 4px;
        min-height: 60px;
    }

    .focus-card-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .focus-card-label {
        font-size: 0.6rem;
    }

    .focus-card-desc {
        display: none;
    }
}

/* ============================================================
   BOTÓN DE TOUR GUIADO - FLOTANTE
   ============================================================ */

.tour-launch-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    border: none;
    border-radius: 50px;
    color: #0f0f1a;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 245, 160, 0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-main);
    animation: tourBtnFloat 3s ease-in-out infinite;
}

.tour-launch-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 245, 160, 0.5);
}

.tour-launch-btn .btn-icon {
    font-size: 1.3rem;
}

.tour-launch-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.tour-launch-btn .btn-text .title {
    font-size: 0.85rem;
    font-weight: 700;
    color:#fff;
}

.tour-launch-btn .btn-text .sub {
    font-size: 0.6rem;
    opacity: 0.7;
    font-weight: 500;
    color: #fff;
}

@keyframes tourBtnFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Responsive */
@media (max-width: 480px) {
    .tour-launch-btn {
        bottom: 90px;
        right: 12px;
        padding: 10px 14px;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .tour-launch-btn .btn-text .sub {
        display: none;
    }
    
    .tour-launch-btn .btn-icon {
        font-size: 1.1rem;
    }
}

/* ============================================================
   MODO CLARO / OSCURO (LIGHT/DARK MODE)
   ============================================================ */

/* Variables por defecto (modo oscuro) */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #252535;
    --bg-tertiary: #1e1e2e;
    --bg-glass: rgba(26, 26, 36, 0.7);
    --glass-bg: rgba(26, 26, 36, 0.5);
    --glass-hover: rgba(37, 37, 53, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --border-color: rgba(255, 255, 255, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Modo claro */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e8e8ec;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f2;
    --bg-tertiary: #f0f0f4;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Ajustes para tarjetas en modo claro */
[data-theme="light"] .glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .admin-stat-card,
[data-theme="light"] .admin-card,
[data-theme="light"] .setting-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .admin-table thead {
    background: var(--bg-secondary);
}

[data-theme="light"] .admin-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .admin-table td strong {
    color: var(--text-primary);
}

[data-theme="light"] .sidebar-gym {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}

[data-theme="light"] .nav-item:hover {
    background: var(--bg-card);
}

[data-theme="light"] .nav-item.active {
    background: rgba(0, 245, 160, 0.08);
}

[data-theme="light"] .option-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .focus-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
}

[data-theme="light"] .focus-card:hover {
    border-color: var(--accent-green);
}

[data-theme="light"] .focus-card.selected {
    background: rgba(0, 245, 160, 0.05);
}

[data-theme="light"] .day-option,
[data-theme="light"] .level-option {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .day-option.selected,
[data-theme="light"] .level-option.selected {
    background: var(--accent-green);
    color: var(--bg-dark);
}

[data-theme="light"] .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .input-wrapper input,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .input-wrapper input:focus,
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

[data-theme="light"] .toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .qr-image-container {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}

[data-theme="light"] .qr-data-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .scan-item:hover {
    background: var(--bg-card);
}

[data-theme="light"] .settings-list .setting-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .settings-list .setting-item:hover {
    border-color: var(--border-hover);
}

[data-theme="light"] .setting-item.danger:hover {
    border-color: var(--accent-red);
}

[data-theme="light"] .bottom-nav {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .nav-btn {
    color: var(--text-muted);
}

[data-theme="light"] .nav-btn.active {
    color: var(--accent-green);
}

[data-theme="light"] .nav-btn:hover {
    color: var(--text-primary);
}

/* ============================================================
   BOTÓN DE CAMBIO DE TEMA
   ============================================================ */

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
    transform: rotate(20deg);
}

.theme-toggle-btn .sun-icon {
    display: none;
}

.theme-toggle-btn .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: none;
}

/* Animación de transición */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   HYDRATION MODAL - ESTILOS COMPLETOS
   ============================================================ */

.hydration-modal-content {
    padding: 16px 20px 20px;
    max-height: 75vh;
    overflow-y: auto;
}

.hydration-modal-content::-webkit-scrollbar {
    width: 4px;
}

.hydration-modal-content::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.hydration-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 2px;
}

/* ===== Resumen del día ===== */
.hydration-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.hydration-summary-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hydration-today-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hydration-today-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
}

.hydration-today-unit {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.hydration-goal-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 100px;
    margin: 12px 0 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hydration-goal-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(0, 245, 160, 0.15);
}

.hydration-goal-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.hydration-remaining {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 245, 160, 0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 245, 160, 0.08);
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.hydration-remaining i {
    color: var(--accent-yellow);
}

.hydration-remaining strong {
    color: var(--accent-green);
}

/* ===== Recomendación ===== */
.hydration-tip-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.hydration-tip-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.15);
    flex-shrink: 0;
}

.hydration-tip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hydration-tip-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.hydration-tip-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Botones rápidos ===== */
.hydration-quick-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.hydration-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.hydration-quick-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.hydration-quick-btn:active {
    transform: scale(0.95);
}

.hydration-quick-btn .btn-icon {
    font-size: 24px;
}

.hydration-quick-btn .btn-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.hydration-quick-btn .btn-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.hydration-quick-btn.custom {
    border-style: dashed;
    border-color: var(--border-hover);
}

.hydration-quick-btn.custom .btn-amount {
    font-size: 13px;
    color: var(--accent-green);
}

/* ===== Input personalizado ===== */
.custom-hydration-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-input-group {
    display: flex;
    gap: 10px;
}

.custom-input-group input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
}

.custom-input-group input:focus {
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

.custom-input-group button {
    padding: 10px 20px;
    white-space: nowrap;
}

/* ===== Historial ===== */
.hydration-history-section {
    margin-bottom: 16px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-count {
    font-size: 12px;
    color: var(--text-muted);
}

.hydration-log-list {
    max-height: 200px;
    overflow-y: auto;
}

.hydration-log-list::-webkit-scrollbar {
    width: 3px;
}

.hydration-log-list::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 2px;
}

.empty-history {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.empty-history i {
    font-size: 32px;
    opacity: 0.3;
    display: block;
    margin-bottom: 8px;
}

.empty-history p {
    font-size: 14px;
}

.empty-history small {
    font-size: 12px;
}

.hydration-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.hydration-log-item .log-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hydration-log-item .log-icon {
    font-size: 20px;
}

.hydration-log-item .log-amount {
    font-weight: 700;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
}

.hydration-log-item .log-time {
    font-size: 12px;
    color: var(--text-muted);
}

.hydration-log-item .log-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    transition: var(--transition);
}

.hydration-log-item .log-delete:hover {
    color: var(--accent-red);
    transform: scale(1.2);
}

/* ===== Info section ===== */
.hydration-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hydration-info-section details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: pointer;
}

.hydration-info-section details summary {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hydration-info-section details summary::-webkit-details-marker {
    display: none;
}

.hydration-info-section details summary::after {
    content: '▶';
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.hydration-info-section details[open] summary::after {
    transform: rotate(90deg);
}

.hydration-info-section .info-content {
    padding-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hydration-info-section .info-content ul {
    padding-left: 20px;
    margin: 4px 0;
}

.hydration-info-section .info-content strong {
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .hydration-quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .hydration-summary-header {
        flex-wrap: wrap;
    }

    .hydration-today-amount {
        font-size: 28px;
    }

    .custom-input-group {
        flex-wrap: wrap;
    }

    .custom-input-group button {
        width: 100%;
    }

    .hydration-tip-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   NUTRITION MODAL - ESTILOS MEJORADOS
   ============================================================ */

.nutrition-modal-content {
    padding: 16px 20px 20px;
    max-height: 75vh;
    overflow-y: auto;
}

.nutrition-modal-content::-webkit-scrollbar {
    width: 4px;
}

.nutrition-modal-content::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.nutrition-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 2px;
}

/* ===== Resumen del día ===== */
.nutrition-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.nutrition-summary-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.calorie-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.calorie-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.calorie-circle .calorie-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.calorie-text span {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
}

.calorie-text small {
    font-size: 11px;
    color: var(--text-muted);
}

.calorie-stats {
    display: flex;
    gap: 20px;
}

.calorie-stat {
    text-align: center;
}

.calorie-stat .stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.calorie-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Macros ===== */
.macros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.macro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}

.macro-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    color: #fff;
}

.macro-icon.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.macro-icon.bg-gradient-yellow { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.macro-icon.bg-gradient-orange { background: linear-gradient(135deg, #f97316, #fb923c); }

.macro-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.macro-name {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.macro-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.macro-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    margin: 8px 0 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.macro-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.macro-goal {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Recomendación ===== */
.nutrition-tip-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.nutrition-tip-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.15);
    flex-shrink: 0;
}

.nutrition-tip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nutrition-tip-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.nutrition-tip-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Agregar comida ===== */
.add-food-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.add-food-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.food-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
}

.food-inputs .form-group {
    margin-bottom: 0;
}

.food-inputs .form-group label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.food-inputs input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.food-inputs input:focus {
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.1);
}

/* ===== Comidas rápidas ===== */
.quick-foods-section {
    margin-bottom: 16px;
}

.quick-foods-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.quick-foods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.quick-food-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.quick-food-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.quick-food-btn i {
    font-size: 20px;
    color: var(--accent-green);
}

.quick-food-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-food-btn small {
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== Historial de comidas ===== */
.food-history-section {
    margin-bottom: 16px;
}

.food-history-section .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.food-history-section .history-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.food-history-section .history-count {
    font-size: 12px;
    color: var(--text-muted);
}

.food-list {
    max-height: 250px;
    overflow-y: auto;
}

.food-list::-webkit-scrollbar {
    width: 3px;
}

.food-list::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 2px;
}

.food-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
    animation: slideIn 0.3s ease;
}

.food-item .food-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.food-item .food-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.food-item .food-macros {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.food-item .food-macros span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.food-item .food-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    transition: var(--transition);
}

.food-item .food-delete:hover {
    color: var(--accent-red);
    transform: scale(1.2);
}

/* ===== Info section ===== */
.nutrition-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nutrition-info-section details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: pointer;
}

.nutrition-info-section details summary {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nutrition-info-section details summary::-webkit-details-marker {
    display: none;
}

.nutrition-info-section details summary::after {
    content: '▶';
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.nutrition-info-section details[open] summary::after {
    transform: rotate(90deg);
}

.nutrition-info-section .info-content {
    padding-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.nutrition-info-section .info-content ul {
    padding-left: 20px;
    margin: 4px 0;
}

.nutrition-info-section .info-content strong {
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .nutrition-summary-header {
        flex-direction: column;
        gap: 16px;
    }

    .calorie-stats {
        gap: 16px;
    }

    .macros-grid {
        grid-template-columns: 1fr;
    }

    .food-inputs {
        grid-template-columns: 1fr 1fr;
    }

    .food-inputs .form-group:first-child {
        grid-column: 1 / -1;
    }

    .food-inputs .form-group:last-child {
        grid-column: 1 / -1;
    }

    .calorie-stat .stat-value {
        font-size: 18px;
    }

    .quick-foods-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .food-item {
        flex-wrap: wrap;
        gap: 4px;
    }

    .food-item .food-macros {
        flex-wrap: wrap;
    }

    .nutrition-tip-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   NUEVOS ESTILOS - MEJORAS PROFESIONALES
   ============================================================ */

/* ===== OFFLINE INDICATOR ===== */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--accent-red);
    color: #fff;
    padding: 8px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 16px rgba(239, 68, 68, 0.3);
}

.offline-indicator.show {
    transform: translateY(0);
}

.offline-indicator.hidden {
    display: none;
}

/* ===== FOOTER PROFESIONAL ===== */
.app-footer {
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-logo {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.footer-version {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.footer-links {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-divider {
    color: var(--border);
    margin: 0 6px;
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== BOTÓN DE CONTACTO ===== */
.btn-contact-gym {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 16px auto;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    max-width: 300px;
    width: 100%;
}

.btn-contact-gym:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 245, 160, 0.3);
}

/* ===== BOTÓN MODO DEMO ===== */
.btn-demo-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-demo-mode:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 245, 160, 0.05);
}

.btn-demo-mode.active {
    border-color: var(--accent-green);
    background: rgba(0, 245, 160, 0.1);
    color: var(--accent-green);
}

/* ===== INDICADOR DE CARGA MEJORADO ===== */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== BADGE DE ESTADO ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(0, 245, 160, 0.1);
    color: var(--accent-green);
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* ===== RESPONSIVE PARA FOOTER ===== */
@media (max-width: 480px) {
    .footer-links {
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-links a {
        padding: 4px 8px;
    }
    
    .btn-contact-gym {
        font-size: 14px;
        padding: 10px 16px;
    }
}