/* ========== Orvya — Mobile-First CSS v5 ========== */

:root {
    --primary: #1A1A1A;
    --primary-light: #2A2A2A;
    --accent: #FF6B00;
    --accent-dark: #E55D00;
    --accent-glow: rgba(255,107,0,0.2);
    --energy: #F39C12;
    --danger: #E74C3C;
    --warning: #F1C40F;
    --bg: #111111;
    --bg-card: #1A1A1A;
    --bg-input: #2A2A2A;
    --text: #ECF0F1;
    --text-muted: #95A5A6;
    --text-dark: #7F8C8D;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --nav-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }

/* ========== Screens ========== */
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.screen.has-nav { padding-bottom: var(--nav-height); }

/* ========== LANDING PAGE ========== */
.landing-screen { background: var(--bg); }

/* ========== LANDING NAV ========== */
.landing-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 16px 24px;
    padding-top: max(16px, env(safe-area-inset-top));
}
.landing-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.landing-nav-actions { display: flex; align-items: center; gap: 16px; }
.landing-nav-link { color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.2s; }
.landing-nav-link:hover { color: var(--accent); }
.btn-accent-pill {
    background: var(--accent); color: #fff; border: none;
    padding: 10px 24px; border-radius: 24px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.2s; font-family: 'Inter', sans-serif;
}
.btn-accent-pill:hover { background: var(--accent-dark); }

.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/bg.jpeg') center right / cover no-repeat;
    z-index: 0;
}
.landing-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 0;
}
.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 40%, rgba(17,17,17,0.2) 70%, transparent 100%);
    z-index: 1;
}
.landing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    text-align: left;
}
.landing-logo-row { display: flex; align-items: center; gap: 10px; }
.landing-logo-img { width: 36px; height: 36px; object-fit: contain; }
.landing-logo-text { font-family: 'Futura', 'Futura-Bold', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.landing-headline {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.text-accent { color: var(--accent); }
.landing-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 440px;
}
.landing-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-glass {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
    backdrop-filter: blur(8px);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.btn-glass:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); }
.btn-install-pwa {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 12px; padding: 12px 24px;
    background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
    border-radius: 30px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.btn-install-pwa:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

.landing-section {
    padding: 48px 24px;
    max-width: 800px;
    margin: 0 auto;
}
.landing-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

/* Feature Sections */
.landing-feature-section { padding: 60px 24px; max-width: 800px; margin: 0 auto; }
.landing-feature-section.alt-bg { background: var(--bg-card); max-width: none; padding: 60px 24px; }
.landing-feature-section.alt-bg .feature-content { max-width: 800px; margin: 0 auto; }
.feature-badge {
    display: inline-block;
    background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2);
    color: var(--accent); padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.landing-section-title.left-align { text-align: left; }
.feature-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.feature-desc.center-text { text-align: center; }
.feature-highlights { display: flex; flex-direction: column; gap: 12px; }
.feature-highlight-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.feature-highlight-item i { color: var(--accent); }

/* Challenge Section */
.landing-challenge-section {
    padding: 60px 24px; text-align: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A1A00 50%, #1A1A1A 100%);
    max-width: none;
}
.challenge-section-content { max-width: 600px; margin: 0 auto; }
.challenge-section-badge {
    display: inline-block;
    background: rgba(255,107,0,0.15); border: 1px solid rgba(255,107,0,0.3);
    color: var(--accent); padding: 8px 20px; border-radius: 24px;
    font-size: 14px; font-weight: 700; margin-bottom: 20px;
}
.challenge-preview-cards { display: flex; gap: 16px; justify-content: center; margin-top: 32px; }
.challenge-preview-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,107,0,0.3);
    border-radius: var(--radius); flex: 1; max-width: 150px;
    font-size: 13px; font-weight: 600;
}
.challenge-preview-icon { font-size: 28px; color: var(--accent); }

/* Benefits Grid (legacy) */
.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.2s, border-color 0.2s;
}
.benefit-card:hover { transform: translateY(-2px); border-color: rgba(255,107,0,0.2); }
.benefit-icon-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    color: #fff;
}
.benefit-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* How It Works (legacy) */
.landing-how-section { background: var(--bg-card); border-radius: 0; margin: 0; max-width: none; padding: 48px 24px; }
.how-steps-row { display: flex; flex-direction: column; gap: 20px; max-width: 500px; margin: 0 auto; }
.how-step-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.04);
}
.how-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}
.how-step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.how-step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Testimonials */
.testimonials-row { display: flex; flex-direction: column; gap: 16px; }
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.04);
}
.testimonial-stars { font-size: 14px; margin-bottom: 10px; }
.testimonial-card p { font-size: 14px; line-height: 1.6; color: var(--text); font-style: italic; margin-bottom: 10px; }
.testimonial-author { font-size: 13px; color: var(--accent); font-weight: 600; }

/* Testimonials V2 — White section, split layout */
.landing-testimonials-section-v2 { background: #fff; padding: 60px 20px; }
.landing-testimonials-section-v2 .landing-section-title { color: #111; }
.testimonial-v2-card { display: flex; flex-direction: column; gap: 24px; background: #fafafa; border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.testimonial-v2-left { flex: 1; }
.testimonial-v2-stars { margin-bottom: 12px; font-size: 18px; }
.testimonial-v2-text { font-size: 15px; line-height: 1.7; color: #333; font-style: italic; margin-bottom: 16px; }
.testimonial-v2-author { display: flex; align-items: center; gap: 10px; }
.testimonial-v2-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-v2-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.testimonial-v2-author-info { display: flex; flex-direction: column; }
.testimonial-v2-name { font-size: 14px; font-weight: 700; color: #111; }
.testimonial-v2-label { font-size: 12px; color: #888; }
.testimonial-v2-right { display: flex; justify-content: center; }
.testimonial-v2-photos { display: flex; align-items: center; gap: 8px; }
.testimonial-v2-photo-wrapper { text-align: center; }
.testimonial-v2-photo { width: 130px; height: 170px; object-fit: cover; border-radius: 12px; }
.testimonial-v2-photo-label { display: block; font-size: 11px; color: #888; margin-top: 4px; font-weight: 600; }
.testimonial-v2-arrow { width: 36px; height: 36px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }

/* Analysis Section — Phone + Chart */
.landing-analysis-section { background: #0a0a0a; padding: 60px 20px; overflow: hidden; max-width: none; }
.analysis-layout { display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 900px; margin: 0 auto; }
.analysis-left { flex: 0 0 auto; }
/* Phone mockup with CSS */
.phone-mockup { width: 200px; background: #000; border: 3px solid #333; border-radius: 28px; padding: 8px 6px 12px; position: relative; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.phone-notch { width: 60px; height: 6px; background: #222; border-radius: 3px; margin: 0 auto 6px; }
.phone-screen { position: relative; overflow: hidden; border-radius: 4px; }
.phone-screen-img { width: 100%; display: block; }

/* Scan HUD overlay */
.scan-overlay { position: absolute; inset: 0; pointer-events: none; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,107,0,0.6), transparent); top: 30%; animation: scanMove 3s ease-in-out infinite; }
@keyframes scanMove { 0%,100% { top: 20%; opacity: 0.4; } 50% { top: 75%; opacity: 0.8; } }
.scan-data { display: flex; justify-content: space-between; padding: 4px 8px; font-size: 9px; color: rgba(255,107,0,0.8); font-family: monospace; }
.scan-data strong { color: rgba(255,255,255,0.9); }
.scan-data-top { position: absolute; top: 4px; left: 0; right: 0; }
.scan-data-bottom { position: absolute; bottom: 4px; left: 0; right: 0; justify-content: center; }
.scan-crosshair { position: absolute; display: flex; align-items: center; gap: 4px; }
.scan-crosshair-chest { top: 28%; right: 8px; }
.scan-crosshair-waist { top: 45%; right: 8px; }
.scan-crosshair-hip { top: 55%; right: 8px; }
.scan-dot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255,107,0,0.8); background: rgba(255,107,0,0.3); }
.scan-label { font-size: 7px; color: rgba(255,107,0,0.8); font-family: monospace; white-space: nowrap; }
.scan-corner { position: absolute; width: 14px; height: 14px; border-color: rgba(255,107,0,0.4); border-style: solid; border-width: 0; }
.scan-corner-tl { top: 6px; left: 6px; border-top-width: 1px; border-left-width: 1px; }
.scan-corner-tr { top: 6px; right: 6px; border-top-width: 1px; border-right-width: 1px; }
.scan-corner-bl { bottom: 6px; left: 6px; border-bottom-width: 1px; border-left-width: 1px; }
.scan-corner-br { bottom: 6px; right: 6px; border-bottom-width: 1px; border-right-width: 1px; }
.analysis-right { flex: 1; text-align: center; }
.analysis-title { font-size: 32px; font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 16px; letter-spacing: 1px; }
.analysis-desc { font-size: 15px; line-height: 1.6; color: #aaa; margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }
.analysis-chart { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 16px; max-width: 360px; margin: 0 auto; }
.analysis-svg { width: 100%; height: auto; }

/* Meal Plan Section */
.landing-meal-section { background: #0d0d0a; padding: 60px 20px; max-width: none; }
.meal-section-title { font-size: 32px; font-weight: 900; line-height: 1.1; color: #fff; text-align: center; margin-bottom: 32px; letter-spacing: 1px; }
.meal-layout { display: flex; flex-direction: column; gap: 24px; max-width: 800px; margin: 0 auto; align-items: center; }
.meal-left { flex: 0 0 auto; }
.meal-photo-card { position: relative; width: 260px; border-radius: 16px; overflow: hidden; }
.meal-photo-img { width: 100%; display: block; }
.meal-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.meal-photo-label { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.meal-photo-sub { font-size: 12px; color: #aaa; }
.meal-right { flex: 1; width: 100%; max-width: 400px; }
.meal-schedule-card { background: rgba(255,255,255,0.05); border-radius: 16px; padding: 20px; }
.meal-schedule-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.meal-schedule-title { font-size: 16px; font-weight: 700; color: #fff; }
.meal-schedule-link { font-size: 13px; color: var(--accent); }
.meal-schedule-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; transition: background 0.2s; }
.meal-schedule-item.active { background: rgba(255,107,0,0.15); }
.meal-schedule-time { font-size: 13px; color: #ccc; min-width: 50px; line-height: 1.3; }
.meal-schedule-time strong { color: #fff; font-size: 14px; }
.meal-schedule-time small { color: #888; font-size: 11px; }
.meal-schedule-icon { font-size: 22px; }
.meal-schedule-name { font-size: 14px; color: #ddd; font-weight: 500; }

/* Workout Section */
.landing-workout-section { background: #111; padding: 60px 20px; max-width: none; }
.workout-layout { display: flex; flex-direction: column; gap: 32px; max-width: 900px; margin: 0 auto; align-items: center; }
.workout-left { text-align: center; }
.workout-title { font-size: 32px; font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 16px; letter-spacing: 1px; }
.workout-desc { font-size: 15px; line-height: 1.6; color: #aaa; margin-bottom: 24px; max-width: 340px; margin-left: auto; margin-right: auto; }
.workout-mode-row { display: flex; gap: 16px; justify-content: center; }
.workout-mode-card { display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,107,0,0.3); border-radius: 14px; padding: 20px 28px; min-width: 100px; }
.workout-mode-card i { font-size: 28px; color: var(--accent); }
.workout-mode-card span { font-size: 14px; font-weight: 600; color: #fff; }
.workout-right { flex: 1; width: 100%; max-width: 480px; }
.workout-video-mockup { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,107,0,0.2); }
.workout-video-img { width: 100%; display: block; }
.workout-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; box-shadow: 0 4px 20px rgba(255,107,0,0.4); }
.workout-video-bar { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(0,0,0,0.7); color: #fff; }
.workout-progress-track { flex: 1; height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.workout-progress-fill { width: 35%; height: 100%; background: var(--accent); border-radius: 2px; }
.workout-video-time { font-size: 11px; color: #aaa; }

/* Challenge 90 Days — Hero style */
.landing-challenge-section { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 60px 20px; max-width: none; }
.challenge-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.challenge-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%); }
.challenge-hero-content { position: relative; z-index: 2; text-align: center; max-width: 600px; }
.challenge-hero-title { font-size: 32px; font-weight: 900; line-height: 1.15; color: #fff; margin-bottom: 16px; letter-spacing: 1px; }
.challenge-hero-desc { font-size: 15px; line-height: 1.6; color: #ccc; margin-bottom: 24px; }

/* Challenge90 page banner */
.challenge90-banner { position: relative; height: 120px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.challenge90-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.challenge90-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); }
.challenge90-banner-text { position: relative; z-index: 2; display: flex; align-items: center; height: 100%; padding: 0 24px; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }

/* Profile action buttons with orange icons */
.profile-action-btn { text-align: left; display: flex; align-items: center; gap: 10px; }
.profile-action-icon { color: var(--accent); font-size: 16px; width: 20px; text-align: center; }

/* Final CTA */
/* FAQ Section */
.landing-faq-section {
    padding: 60px 24px;
    max-width: none;
    background: #0e0e0e;
}
.landing-faq-section .landing-section-title {
    color: #fff;
    margin-bottom: 32px;
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    gap: 16px;
}
.faq-question i {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}
.faq-question:hover {
    color: var(--accent);
}
.faq-answer {
    padding: 0 0 18px;
}
.faq-answer p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.landing-footer {
    background: #080808;
    padding: 48px 24px 0;
    max-width: none;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-brand {
    flex: 1 1 300px;
    min-width: 250px;
}
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}
.footer-links {
    flex: 0 1 160px;
}
.footer-links h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-social { text-align: center; margin-top: 24px; }
.footer-social-link { color: var(--accent); font-size: 16px; text-decoration: none; transition: opacity 0.2s; }
.footer-social-link:hover { opacity: 0.8; }
.footer-social-link i { margin-right: 6px; font-size: 20px; vertical-align: middle; }
.footer-bottom {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Contact Page */
.contact-screen {
    min-height: 100vh;
    background: var(--bg);
    padding: 0 16px 40px;
}
.contact-header {
    text-align: center;
    padding: 60px 0 24px;
    position: relative;
}
.contact-back {
    position: absolute;
    left: 0;
    top: 60px;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
}
.contact-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.contact-header p {
    color: var(--text-muted);
    margin-top: 8px;
}
.contact-form-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
}
.contact-form-card .form-group {
    margin-bottom: 16px;
}
.contact-form-card label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.contact-form-card .form-input {
    width: 100%;
    background: var(--primary-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}
.contact-form-card select.form-input {
    appearance: auto;
}
.contact-form-card textarea.form-input {
    resize: vertical;
    min-height: 100px;
}
.contact-form-card .form-input:focus {
    border-color: var(--accent);
}
.contact-success {
    max-width: 400px;
    margin: 60px auto 0;
    text-align: center;
}
.contact-success-icon {
    font-size: 56px;
    color: #4CAF50;
    margin-bottom: 16px;
}
.contact-success h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}
.contact-success p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.landing-final-cta {
    text-align: center; padding: 60px 24px 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--primary) 100%);
    max-width: none;
}
.landing-final-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.landing-final-cta p { color: var(--text-muted); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }
.landing-disclaimer { font-size: 12px; color: var(--text-dark); margin-top: 16px; }

/* ========== Login / Register ========== */
.login-screen, .register-screen { justify-content: center; padding: 24px; }
.login-content, .register-content { max-width: 400px; width: 100%; margin: 0 auto; }
.login-header, .register-header { text-align: center; margin-bottom: 32px; }
.login-icon { font-size: 48px; margin-bottom: 12px; }
.login-header h1, .register-header h1 { font-size: 28px; font-weight: 800; }
.login-header p, .register-header p { color: var(--text-muted); margin-top: 4px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-select {
    width: 100%; padding: 14px 16px; background: var(--bg-input); border: 1px solid transparent;
    border-radius: var(--radius-sm); color: var(--text); font-size: 16px; outline: none; transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}
.form-group input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 60px; width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: inherit; outline: none; }
.form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2395A5A6' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-select option { background: var(--bg-card); color: var(--text); }
.checkbox-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.terms-stack { display: flex; flex-direction: column; gap: 8px; }
.terms-accept { margin-bottom: 2px; }
.terms-link { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; padding-left: 26px; }
.terms-link i { margin-right: 6px; width: 16px; text-align: center; }
.terms-link:hover { text-decoration: underline; }

.login-footer, .register-footer { text-align: center; margin-top: 24px; }
.login-footer a, .register-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ========== Buttons ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-back { background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: 8px; }
.btn-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 8px; transition: color 0.2s; }
.btn-close:hover { color: var(--text); }
.btn-registered { background: rgba(255,107,0,0.15); border: 1px solid var(--accent); color: var(--accent); cursor: default; }
.btn-youtube { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.3); color: var(--accent); font-size: 12px; padding: 6px 10px; border-radius: 6px; }
.btn-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; font-weight: 500; font-size: 15px; }
.btn-google:hover { background: #f7f8f8; border-color: #c6c6c6; }
.btn-google:disabled { opacity: 0.5; }
.btn-google svg { flex-shrink: 0; }
.divider-or { display: flex; align-items: center; margin: 16px 0; gap: 12px; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-or span { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 24px; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Notification settings */
.notif-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.notif-toggle-row:last-child { border-bottom: none; }
.notif-time-row { padding: 4px 0 10px 0; }
.notif-time-row input[type=time] { background: var(--primary-light); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: var(--radius-sm); font-size: 14px; }
.notif-options { margin-top: 4px; }
.notif-denied-msg { padding: 8px 0; }

/* ========== Alerts ========== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 16px; font-size: 14px; text-align: center; }
.alert-error { background: rgba(231,76,60,0.15); color: #E74C3C; border: 1px solid rgba(231,76,60,0.3); }
.alert-success { background: rgba(255,107,0,0.15); color: var(--accent); border: 1px solid rgba(255,107,0,0.3); }

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-content {
    background: var(--bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    animation: slideUp 0.3s ease;
}
.modal-content.modal-large { max-width: 520px; max-height: 90vh; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.terms-body h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: var(--accent); }
.terms-body h3:first-child { margin-top: 0; }
.terms-body p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.modal-youtube { max-width: 640px; }
.youtube-iframe { width: 100%; aspect-ratio: 16/9; border-radius: 8px; }
.youtube-hint { font-size: 13px; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ========== Dashboard ========== */
.dashboard-screen { padding-bottom: var(--nav-height); }

.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); }
.greeting { font-size: 20px; font-weight: 700; }
.plan-badge-mini { background: rgba(255,255,255,0.15); color: #fff; padding: 3px 10px; border-radius: 16px; font-size: 11px; font-weight: 600; cursor: pointer; margin-right: 6px; }
.plan-badge-mini.premium { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a2e; }
.level-badge { background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.level-badge.large { font-size: 14px; padding: 6px 16px; }

/* XP Card */
.xp-card { margin: 0 20px 20px; background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.xp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.xp-label { font-size: 18px; font-weight: 700; }
.xp-next { font-size: 12px; color: var(--text-muted); }
.progress-bar { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.progress-bar.small { height: 6px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #FF8C33); border-radius: 5px; transition: width 0.5s ease; min-width: 2%; }
.xp-footer { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--text-muted); }

/* 90-Day Challenge Dashboard Card */
.challenge90-dashboard-card {
    background: linear-gradient(135deg, #1B2838, #243456);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    border: 1px solid rgba(255,107,0,0.2);
    transition: transform 0.2s;
}
.challenge90-dashboard-card:active { transform: scale(0.98); }
.challenge90-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.challenge90-title { font-size: 16px; font-weight: 700; }
.challenge90-day { font-size: 14px; color: var(--accent); font-weight: 700; }
.challenge90-fill { background: linear-gradient(90deg, #F39C12, #E74C3C, var(--accent)); }
.challenge90-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* Next Actions */
.next-actions-list { display: flex; flex-direction: column; gap: 8px; }
.next-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border-left: 3px solid var(--accent);
    transition: background 0.2s;
}
.next-action-card:active { background: var(--primary-light); }
.next-action-icon { font-size: 24px; }
.next-action-info { flex: 1; min-width: 0; }
.next-action-title { display: block; font-size: 14px; font-weight: 600; }
.next-action-desc { display: block; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-action-arrow { color: var(--text-dark); font-size: 12px; }

/* Sections */
.section { padding: 0 20px; margin-bottom: 24px; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

/* Action Grid */
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.action-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; background: var(--bg-card); border-radius: var(--radius-sm); cursor: pointer; transition: transform 0.2s, background 0.2s; }
.action-card:active { transform: scale(0.95); background: var(--primary-light); }
.action-icon { font-size: 28px; }
.action-icon-flat { color: var(--accent); font-size: 24px; }
.action-card span { font-size: 12px; font-weight: 600; }
.action-card small { font-size: 11px; color: var(--accent); }

/* Challenge List */
.challenge-card { background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.challenge-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.challenge-name { font-size: 14px; font-weight: 600; }
.challenge-reward { font-size: 12px; color: var(--accent); font-weight: 600; }
.empty-state { color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px; }

/* Bottom Navigation */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-height); background: var(--primary); display: flex; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,0.05); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; font-size: 10px; }
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--accent); }

/* ========== Screen Header ========== */
.screen-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); }
.screen-header h2 { font-size: 20px; font-weight: 700; }
.screen-body { flex: 1; padding: 0 20px 20px; overflow-y: auto; }

/* ========== Onboarding ========== */
.onboarding-screen { justify-content: center; padding: 24px; }
.onboarding-content { max-width: 440px; width: 100%; margin: 0 auto; }
.onboarding-progress { margin-bottom: 32px; }
.onboarding-progress-bar { height: 6px; background: var(--bg-card); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.onboarding-step-label { font-size: 13px; color: var(--text-muted); }
.onboarding-step { animation: fadeInUp 0.3s ease; }
.onboarding-step h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.step-desc { color: var(--text-muted); margin-bottom: 24px; }
.step-hint { color: var(--text-dark); font-size: 13px; text-align: center; margin-top: 16px; font-style: italic; }

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-list.horizontal { flex-direction: row; }
.option-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-card); border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.option-card.active { border-color: var(--accent); background: rgba(255,107,0,0.1); }
.option-card.small { flex: 1; flex-direction: column; text-align: center; padding: 12px 8px; font-size: 13px; }
.option-icon { font-size: 24px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.duration-selector { display: flex; flex-wrap: wrap; gap: 8px; }

.onboarding-actions { display: flex; gap: 12px; margin-top: 32px; }
.onboarding-actions .btn { flex: 1; }

/* Meal Routine */
.meal-routine-list { display: flex; flex-direction: column; gap: 12px; }
.meal-routine-item { background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px 16px; }
.meal-routine-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.toggle-label input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.time-input { background: var(--bg-input); border: 1px solid transparent; border-radius: 8px; color: var(--text); padding: 8px 12px; font-size: 15px; font-family: 'Inter', sans-serif; outline: none; width: 110px; }
.time-input:focus { border-color: var(--accent); }
.time-input.full-width { width: 100%; max-width: 100%; box-sizing: border-box; }

/* Training Days Grid */
.training-days-grid { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.day-toggle { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 2px solid transparent; border-radius: 50%; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.day-toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Body Photos Grid */
.body-photos-grid { display: flex; gap: 12px; }
.body-photo-box { flex: 1; text-align: center; min-width: 0; }
.body-photo-box label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }

/* AI Goal Card */
.goal-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255,107,0,0.2);
}
.goal-icon { font-size: 40px; text-align: center; margin-bottom: 16px; }
.goal-main { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.goal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.goal-detail-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.goal-detail-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.goal-detail-value { display: block; font-size: 18px; font-weight: 800; color: var(--accent); }
.goal-tip {
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.goal-tip i { color: var(--energy); margin-right: 6px; }

/* Generating Plans Step */
.generating-step { text-align: center; padding: 40px 0; }
.generating-animation { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.generating-icon { color: var(--accent); margin-bottom: 8px; }
.generating-step h2 { font-size: 22px; }
.motivational-msg { color: var(--text-muted); font-size: 15px; min-height: 24px; transition: opacity 0.3s; }
.generating-progress { width: 100%; max-width: 300px; }
.generating-fill { transition: width 0.3s ease; }

/* Plans Preview */
.plan-preview-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; }
.plan-preview-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.plan-preview-list { display: flex; flex-direction: column; gap: 8px; }
.plan-preview-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.plan-preview-item:last-child { border-bottom: none; }
.plan-time { font-size: 14px; font-weight: 700; color: var(--accent); min-width: 60px; }
.plan-meal-name { font-size: 14px; }
.plan-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: var(--accent); text-align: center; }

/* 90-Day Challenge Offer */
.challenge-offer-body, .challenge-onboard-offer { text-align: center; }
.challenge-hero-icon { font-size: 56px; margin-bottom: 16px; }
.challenge-offer-body h3, .challenge-onboard-offer h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.challenge-offer-body p, .challenge-onboard-offer .step-desc { color: var(--text-muted); margin-bottom: 20px; }
.challenge-benefits-list { text-align: left; margin-bottom: 24px; }
.challenge-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.challenge-benefit i { color: var(--accent); width: 20px; text-align: center; }

/* 90-Day Challenge Screen */
.challenge90-status-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.challenge90-big-day { font-size: 48px; font-weight: 800; color: var(--accent); }
.challenge90-big-day span { font-size: 20px; color: var(--text-muted); font-weight: 600; }
.challenge90-dates { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }

.checkpoint-timeline { display: flex; flex-direction: column; gap: 0; }
.checkpoint-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-left: 3px solid var(--text-dark);
    margin-left: 10px;
}
.checkpoint-item.done { border-left-color: var(--accent); }
.checkpoint-item.current { border-left-color: var(--energy); background: rgba(243,156,18,0.05); }
.checkpoint-marker { font-size: 18px; color: var(--text-dark); }
.checkpoint-item.done .checkpoint-marker { color: var(--accent); }
.checkpoint-item.current .checkpoint-marker { color: var(--energy); }
.checkpoint-info { flex: 1; }
.checkpoint-day { display: block; font-size: 15px; font-weight: 700; }
.checkpoint-status { display: block; font-size: 13px; color: var(--text-muted); }

/* ========== Chip ========== */
.chip { padding: 8px 16px; background: var(--bg-card); border: 1px solid transparent; border-radius: 20px; color: var(--text); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ========== Meal Screen ========== */
.registering-meal-info { text-align: center; margin-bottom: 16px; padding: 12px; background: var(--bg-card); border-radius: var(--radius-sm); border-left: 4px solid var(--accent); }
.reg-meal-time { font-size: 18px; font-weight: 800; color: var(--accent); display: block; }
.reg-meal-name { font-size: 15px; color: var(--text-muted); }

.photo-upload-area { width: 100%; aspect-ratio: 4/3; background: var(--bg-card); border: 2px dashed var(--text-dark); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 20px; overflow: hidden; }
.photo-upload-area.small { aspect-ratio: 3/4; max-height: 280px; }
.photo-placeholder { text-align: center; color: var(--text-muted); }
.photo-placeholder p { margin-top: 12px; font-size: 14px; }
.meal-preview { width: 100%; height: 100%; object-fit: cover; }

.meal-analysis { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; border-left: 3px solid var(--accent); }
.meal-analysis h3 { font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.analysis-content { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ========== Body Analysis formatted text ========== */
.analysis-formatted { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.analysis-formatted strong, .analysis-formatted b { color: var(--text); font-weight: 600; }
.analysis-formatted p { margin-bottom: 8px; }
.body-analysis-result { max-height: 50vh; overflow-y: auto; }

/* Body Analysis Extras */
.section-divider { text-align: center; margin: 24px 0 16px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }
.section-divider span { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.extras-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

/* Measures Grid */
.measures-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.measure-field label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.measure-field input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.measure-field input:focus { border-color: var(--accent); }
.measure-category { margin-top: 16px; }
.measure-category h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--accent); }

/* ========== Coach Chat ========== */
.chat-container { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.assistant { align-self: flex-start; }
.msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-msg.user .msg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant .msg-bubble { background: var(--bg-card); color: var(--text); border-bottom-left-radius: 4px; }

.chat-input { display: flex; gap: 8px; padding: 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--primary); }
.chat-input input { flex: 1; padding: 12px 16px; background: var(--bg-input); border: none; border-radius: 24px; color: var(--text); font-size: 14px; outline: none; }
.chat-input button { width: 44px; height: 44px; background: var(--accent); border: none; border-radius: 50%; color: #fff; font-size: 16px; cursor: pointer; }
.chat-input button:disabled { opacity: 0.5; }

/* ========== Profile ========== */
.profile-card { text-align: center; padding: 32px 20px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 24px; }
.profile-avatar { width: 80px; height: 80px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: #fff; margin: 0 auto 16px; }
.profile-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.profile-stat { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; }
.profile-data { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.data-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.data-row:last-child { border-bottom: none; }
.data-row span:first-child { color: var(--text-muted); }

/* ========== Daily Meal Plan ========== */
.daily-plan-title { text-align: center; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--accent); padding: 12px; background: var(--bg-card); border-radius: var(--radius-sm); }
.daily-meal-list { display: flex; flex-direction: column; gap: 12px; }
.daily-meal-item { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px; border-left: 4px solid var(--primary-light); transition: border-color 0.2s; }
.daily-meal-item.is-next { border-left-color: var(--accent); box-shadow: 0 0 12px rgba(255,107,0,0.15); }
.daily-meal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.daily-meal-time { font-size: 16px; font-weight: 800; color: var(--accent); min-width: 50px; }
.daily-meal-name { font-size: 15px; font-weight: 700; text-transform: uppercase; flex: 1; }
.daily-meal-cals { font-size: 12px; color: var(--text-muted); background: var(--bg); padding: 2px 8px; border-radius: 10px; }
.daily-meal-foods { margin-bottom: 10px; }
.daily-food-item { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.daily-food-item:last-child { border-bottom: none; }
.food-name { color: var(--text); }
.food-qty { color: var(--text-muted); font-weight: 500; min-width: 70px; text-align: right; }
.daily-meal-actions { display: flex; justify-content: flex-end; }
.daily-total { text-align: center; margin-top: 16px; padding: 14px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-size: 15px; }

/* ========== Workout Plan ========== */
.empty-state-box { text-align: center; padding: 40px 20px; }
.empty-state-box p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }
.loading-box { text-align: center; padding: 60px 20px; color: var(--accent); }
.loading-box p { margin-top: 16px; color: var(--text-muted); }

.plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.plan-date { font-size: 13px; color: var(--text-muted); }

.workout-day-card { background: var(--bg-card); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.workout-day-card.rest-day { opacity: 0.6; }
.day-title { padding: 14px 16px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.day-title i { font-size: 12px; color: var(--text-muted); }

.exercises-list { padding: 0 16px 16px; }
.exercise-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 8px; }
.exercise-item:last-child { border-bottom: none; }
.exercise-main { flex: 1; min-width: 0; }
.exercise-name { font-size: 14px; font-weight: 500; display: block; }
.exercise-detail { font-size: 13px; color: var(--accent); font-weight: 600; }
.exercise-weight { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.workout-meta { display: flex; gap: 16px; padding-top: 10px; font-size: 13px; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); margin-top: 8px; }

/* Adjust form */
.adjust-form { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px; }
.adjust-form h3 { font-size: 15px; margin-bottom: 12px; }
.adjust-actions { display: flex; gap: 8px; margin-top: 12px; }
.adjust-feedback { margin-top: 12px; padding: 12px; background: rgba(255,107,0,0.08); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); font-size: 14px; line-height: 1.6; }

/* ========== Water Screen ========== */
.water-screen-body { display: flex; flex-direction: column; align-items: center; }
.water-goal-card { width: 100%; text-align: center; background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.water-progress-ring { width: 140px; height: 140px; border-radius: 50%; background: var(--bg); margin: 0 auto 16px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 3px solid rgba(52,152,219,0.3); }
.water-progress-fill { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(52,152,219,0.6), rgba(52,152,219,0.3)); transition: height 0.5s ease; }
.water-progress-text { position: relative; z-index: 1; text-align: center; }
.water-current { display: block; font-size: 28px; font-weight: 800; }
.water-unit { font-size: 14px; color: var(--text-muted); }
.water-goal-info { margin-bottom: 4px; }
.water-cups-text { display: block; font-size: 15px; font-weight: 600; }
.water-ml-text { display: block; font-size: 13px; color: var(--text-muted); }
.water-fill { background: linear-gradient(90deg, #3498DB, #2980B9); }
.water-cup-selector { width: 100%; margin-bottom: 16px; }
.water-cup-selector label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; text-align: center; }
.water-register-btn { max-width: 100%; }
.water-visual-big { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.water-drop { font-size: 24px; opacity: 0.3; transition: opacity 0.3s; }
.water-drop.filled { opacity: 1; }

/* ========== Progress ========== */
.progress-section { margin-bottom: 28px; }

.level-timeline { display: flex; flex-wrap: wrap; gap: 8px; }
.level-node { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; min-width: 70px; }
.level-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--text-dark); }
.level-node.reached .level-dot { background: var(--accent); border-color: var(--accent); }
.level-node.current .level-dot { background: var(--accent); border-color: #fff; box-shadow: 0 0 8px var(--accent); }
.level-name { font-size: 11px; font-weight: 600; text-align: center; }
.level-pts { font-size: 10px; color: var(--text-muted); }

.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding: 10px 0; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bar-fill { width: 100%; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s ease; }
.bar-label { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.bar-value { font-size: 10px; color: var(--accent); position: absolute; top: -16px; }

.stat-row { display: flex; gap: 12px; }
.stat-box { flex: 1; text-align: center; background: var(--bg-card); border-radius: var(--radius-sm); padding: 20px 12px; }
.stat-number { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.weight-list { background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; }
.weight-entry { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.weight-entry:last-child { border-bottom: none; }
.weight-date { color: var(--text-muted); }
.weight-value { font-weight: 600; }

/* ========== Animations ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ========== Responsive ========== */
@media (min-width: 768px) {
    .screen { max-width: 480px; margin: 0 auto; }
    .landing-screen { max-width: none; }
    .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
    .benefit-grid { grid-template-columns: repeat(4, 1fr); }
    .how-steps-row { flex-direction: row; max-width: 700px; }
    .how-step-card { flex: 1; flex-direction: column; text-align: center; }
    .testimonials-row { flex-direction: row; }
    .testimonial-card { flex: 1; }
    .testimonial-v2-card { flex-direction: row; align-items: center; }
    .testimonial-v2-left { flex: 1; }
    .testimonial-v2-right { flex: 0 0 auto; }
    .testimonial-v2-photo { width: 160px; height: 210px; }
    .analysis-layout { flex-direction: row; align-items: center; }
    .analysis-right { text-align: left; }
    .analysis-desc { margin-left: 0; }
    .analysis-chart { margin: 0; }
    .phone-mockup { width: 240px; }
    .meal-layout { flex-direction: row; align-items: flex-start; }
    .meal-photo-card { width: 300px; }
    .workout-layout { flex-direction: row; align-items: center; }
    .workout-left { text-align: left; }
    .workout-desc { margin-left: 0; }
    .workout-mode-row { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .landing-hero {
        min-height: auto;
        padding: 0;
        align-items: stretch;
        flex-direction: column;
    }
    .landing-hero-bg {
        position: relative;
        flex: 0 0 38vh;
        background-position: 100% 20%;
    }
    .landing-hero-video {
        position: relative;
        flex: 0 0 38vh;
        object-position: 70% 20%;
    }
    .landing-hero-overlay {
        background: linear-gradient(180deg, transparent 0%, transparent 25%, rgba(17,17,17,0.6) 35%, rgba(17,17,17,1) 48%, rgba(17,17,17,1) 100%);
    }
    .landing-hero-content {
        position: relative;
        text-align: center;
        max-width: 100%;
        padding: 0 24px 24px;
        margin-top: -6vh;
        z-index: 2;
    }
    .landing-headline { font-size: 26px; }
    .landing-subtitle { font-size: 15px; }
    .landing-cta-row { justify-content: center; }
    .challenge-preview-cards { flex-direction: column; align-items: center; }
}

@media (max-width: 360px) {
    .benefit-grid { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Goal Adjust */
.goal-adjust { margin-top: 16px; }
.goal-adjust .step-hint { margin-bottom: 8px; }
.adjust-input { width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: inherit; resize: vertical; outline: none; }
.adjust-input:focus { border-color: var(--accent); }


/* Checkin History */
.checkin-history-list { display: flex; flex-direction: column; gap: 12px; }
.checkin-history-item { background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 16px; }
.checkin-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.checkin-history-photos { display: flex; gap: 8px; }
.checkin-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }

/* Pricing */
.landing-pricing-section { padding: 60px 24px; max-width: none; background: var(--bg-card); text-align: center; }
.pricing-cards { display: flex; gap: 16px; justify-content: center; max-width: 700px; margin: 24px auto 0; flex-wrap: wrap; }
.pricing-card { flex: 1; min-width: 260px; max-width: 320px; background: var(--bg); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(255,255,255,0.06); text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 30px rgba(255,107,0,0.15); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pricing-card-header { margin-bottom: 20px; }
.pricing-card-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 800; }
.pricing-price span { font-size: 20px; }
.pricing-price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.pricing-savings { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 20px; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; gap: 10px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i { color: var(--accent); font-size: 12px; }

/* Level Current Card */
.level-current-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; }
.level-current-info { display: flex; justify-content: space-between; align-items: center; }
.level-current-name { font-size: 20px; font-weight: 800; color: var(--accent); }
.level-current-xp { font-size: 14px; color: var(--text-muted); }
.level-next-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.level-next-info strong { color: var(--text); }

/* Photo Timeline */
.photo-timeline { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.photo-timeline-item { flex: 0 0 auto; text-align: center; }
.photo-timeline-img { width: 80px; height: 100px; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255,255,255,0.1); }
.photo-timeline-date { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Weight Chart */
.weight-chart-container { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px; }

/* Profile Photo */
.profile-avatar-wrapper { position: relative; display: inline-block; cursor: pointer; }
.profile-avatar-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.profile-avatar-edit { position: absolute; bottom: 0; right: 0; background: var(--accent); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; border: 2px solid var(--bg); }
.profile-goal-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; border-left: 3px solid var(--accent); }
.goal-details-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--accent); }

/* Wizard Step Indicator */
.wizard-step-indicator { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: all 0.3s; }
.step-dot.active { background: var(--accent); width: 28px; border-radius: 5px; }
.step-dot.done { background: var(--accent); opacity: 0.5; }

/* Analysis Result Box */
.analysis-result-box { background: var(--bg-card); border-radius: var(--radius); padding: 16px; font-size: 14px; line-height: 1.6; color: var(--text-muted); border-left: 3px solid var(--accent); }
.analysis-photos-preview { display: flex; gap: 8px; margin-bottom: 16px; }
.analysis-thumb { width: 70px; height: 93px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.measures-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.measure-pill { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2); border-radius: 20px; padding: 4px 12px; font-size: 13px; color: var(--accent); }
.btn-link { background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 8px; }
.btn-link:hover { color: var(--text); }

/* Version Footer */
.version-footer { text-align: center; font-size: 11px; color: rgba(255,255,255,0.2); padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 80px); letter-spacing: 0.5px; }

/* === Feedback Animations === */

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}
.confetti-particle {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* XP Popup */
.xp-popup {
    position: fixed;
    transform: translateX(-50%);
    color: #FFD700;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 10001;
    animation: xp-float 1.5s ease-out forwards;
}
@keyframes xp-float {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(0.5); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-40px) scale(1.2); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-80px) scale(0.8); }
}

/* Button pulse on success */
.btn-pulse {
    animation: btn-pulse 0.3s ease;
}
@keyframes btn-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === Upgrade Modal === */
.upgrade-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.upgrade-modal {
    background: var(--bg-card, #1a1a2e); border-radius: 20px;
    padding: 32px 24px; max-width: 380px; width: 100%;
    text-align: center; position: relative;
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.upgrade-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; color: var(--text-muted, #888);
    font-size: 18px; cursor: pointer;
}
.upgrade-icon { font-size: 48px; margin-bottom: 12px; }
.upgrade-title {
    font-size: 24px; font-weight: 800; color: #FFD700; margin-bottom: 8px;
}
.upgrade-reason {
    color: var(--text-muted, #aaa); font-size: 14px; margin-bottom: 20px; line-height: 1.5;
}
.upgrade-features { text-align: left; margin-bottom: 20px; }
.upgrade-feature {
    padding: 8px 0; font-size: 14px; color: var(--text, #eee);
}
.upgrade-feature i { color: #00C853; margin-right: 10px; width: 16px; }
.upgrade-price { margin-bottom: 16px; }
.upgrade-price-value { font-size: 36px; font-weight: 900; color: #FFD700; }
.upgrade-price-period { font-size: 16px; color: var(--text-muted, #aaa); }
.upgrade-btn {
    background: linear-gradient(135deg, #FFD700, #FF6B00) !important;
    color: #000 !important; font-weight: 800; font-size: 16px;
    padding: 14px !important; border: none !important;
}
.upgrade-current {
    margin-top: 12px; font-size: 12px; color: var(--text-muted, #888);
}
.premium-badge {
    display: inline-block; background: linear-gradient(135deg, #FFD700, #FF6B00);
    color: #000; font-size: 10px; font-weight: 800; padding: 2px 8px;
    border-radius: 10px; margin-left: 6px; vertical-align: middle;
}
.premium-lock-overlay {
    position: relative; opacity: 0.5; pointer-events: none;
}
.premium-lock-label {
    color: #FFD700; font-size: 11px; font-weight: 700;
}

/* === Locked action card === */
.action-card.action-locked {
    opacity: 0.5;
    position: relative;
}
.action-icon.icon-locked {
    filter: grayscale(100%);
    opacity: 0.4;
}
/* Profile plan badge */
.profile-plan-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted, #aaa);
}
.profile-plan-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FF6B00);
    color: #000;
}

/* ========== Plans Page ========== */
.plans-container { display: flex; flex-direction: column; gap: 16px; }
.plan-card {
    background: var(--card-bg, #1e1e1e); border-radius: 16px; padding: 24px;
    border: 2px solid transparent; position: relative;
}
.plan-card.plan-active { border-color: var(--accent, #00C853); }
.plan-card.plan-premium { border-color: #FFD700; }
.plan-card.plan-premium.plan-active { border-color: #FFD700; box-shadow: 0 0 20px rgba(255,215,0,0.2); }
.plan-badge {
    position: absolute; top: -10px; right: 16px;
    background: var(--accent, #00C853); color: #000; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 12px;
}
.premium-badge { background: linear-gradient(135deg, #FFD700, #FF6B00); }
.plan-header { text-align: center; margin-bottom: 16px; }
.plan-header h3 { font-size: 20px; margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.price-value { font-size: 28px; font-weight: 800; }
.premium-price { color: #FFD700; }
.price-period { font-size: 14px; color: var(--text-muted, #aaa); }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; }
.plan-features li { padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.plan-features li i.fa-check { color: var(--accent, #00C853); }
.plan-features li i.fa-times { color: var(--text-muted, #666); }
.plan-features .feature-disabled { color: var(--text-muted, #666); }
.btn-premium { background: linear-gradient(135deg, #FFD700, #FF6B00) !important; color: #000 !important; font-weight: 700; }
.plans-footer { text-align: center; color: var(--text-muted, #aaa); font-size: 13px; margin-top: 16px; }
/* Coupon */
.coupon-section { margin-bottom: 20px; }
.coupon-card { background: rgba(30,30,30,0.9); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 16px; }
.coupon-card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.coupon-card-title i { margin-right: 8px; color: var(--primary, #F26B1D); }
.coupon-input-row { display: flex; gap: 8px; align-items: center; }
.coupon-input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.coupon-input::placeholder { text-transform: none; letter-spacing: 0; color: rgba(255,255,255,0.35); }
.coupon-input:focus { border-color: var(--primary, #F26B1D); outline: none; }
.coupon-btn { padding: 12px 22px; border-radius: 10px; background: #F26B1D; color: #fff; border: none; font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; letter-spacing: 0.3px; }
.coupon-btn:disabled { opacity: 0.35; cursor: default; }
.coupon-btn-clear { background: rgba(231,76,60,0.8) !important; }
.coupon-result { margin-top: 10px; font-size: 13px; padding: 8px 12px; border-radius: 8px; }
.coupon-success { color: #2ecc71; background: rgba(46,204,113,0.1); }
.coupon-duration-note { font-size: 11px; opacity: 0.8; }
.coupon-error { color: #e74c3c; background: rgba(231,76,60,0.1); }
.price-old { text-decoration: line-through; opacity: 0.5; font-size: 14px; margin-right: 6px; }
.price-after { text-align: center; font-size: 12px; color: var(--text-muted, #aaa); margin-top: 2px; opacity: 0.7; }

.sandbox-badge { text-align: center; margin-bottom: 12px; }
.sandbox-badge span { background: #ff9800; color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.plans-payment-info { text-align: center; margin-top: 20px; color: var(--text-muted, #aaa); font-size: 13px; }
.plans-payment-info p { margin: 4px 0; }
.plans-payment-info i { margin: 0 4px; }

/* CPF Section */
.cpf-section { margin-bottom: 20px; }
.cpf-card { background: var(--card-bg, rgba(30,30,30,0.9)); border: 1px solid var(--border-color, rgba(255,255,255,0.1)); border-radius: 16px; padding: 20px; }
.cpf-card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary, #fff); }
.cpf-card-title i { margin-right: 8px; color: var(--primary, #F26B1D); }
.cpf-field { margin-bottom: 12px; }
.cpf-field label { display: block; font-size: 13px; color: var(--text-muted, #aaa); margin-bottom: 6px; }
.cpf-input { width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: #fff; font-size: 16px; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.cpf-input:focus { border-color: var(--primary, #F26B1D); }
.cpf-input::placeholder { color: rgba(255,255,255,0.3); }
.cpf-error { color: #FF4B4B; font-size: 13px; margin-top: 4px; }
.cpf-note { font-size: 12px; color: var(--text-muted, #888); margin-top: 8px; }
.cpf-note i { margin-right: 4px; color: #58CC02; }

@media (min-width: 600px) { .plans-container { flex-direction: row; } .plan-card { flex: 1; } }

/* Plan Status Card */
.plan-status-card { background: var(--card-bg, #1E1E1E); border-radius: 16px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border, #333); }
.plan-status-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.plan-status-icon { font-size: 36px; }
.plan-status-info h3 { margin: 0; font-size: 18px; color: var(--text, #fff); }
.plan-status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-top: 4px; }
.status-active { background: rgba(0,200,83,0.15); color: #00C853; }
.status-canceled { background: rgba(255,82,82,0.15); color: #FF5252; }
.status-pending { background: rgba(255,193,7,0.15); color: #FFC107; }
.plan-status-details { border-top: 1px solid var(--border, #333); padding-top: 12px; }
.plan-status-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.plan-status-row span:first-child { color: var(--text-muted, #aaa); }
.plan-status-row span:last-child { color: var(--text, #fff); font-weight: 500; }
.text-warning { color: #FFC107 !important; }
.plan-management-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-management-note { text-align: center; color: var(--text-muted, #aaa); font-size: 13px; margin-top: 8px; }
.btn-danger-outline { color: #FF5252 !important; border-color: #FF5252 !important; }
.btn-danger-outline:hover { background: rgba(255,82,82,0.1); }
.reactivate-section { background: var(--card-bg, #1E1E1E); border-radius: 16px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--accent, #00C853); }
.reactivate-section h3 { margin: 0 0 8px; color: var(--text, #fff); }
.reactivate-note { color: var(--text-muted, #aaa); font-size: 14px; margin-bottom: 16px; }
.reactivate-options { display: flex; flex-direction: column; gap: 10px; }

/* ========== Coach — Mode Selection ========== */
.coach-select-screen { padding-bottom: 80px; }
.coach-select-content { padding: 24px 16px; text-align: center; }
.coach-avatar-preview { margin: 20px auto; }
.coach-avatar-img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--accent); padding: 8px; background: rgba(242,107,29,0.1); }
.coach-select-title { font-family: 'Futura', sans-serif; font-size: 22px; letter-spacing: 1px; margin: 16px 0 4px; }
.coach-select-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.coach-mode-cards { display: flex; flex-direction: column; gap: 12px; }
.coach-mode-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 18px;
    cursor: pointer; transition: all 0.2s;
}
.coach-mode-card:active { transform: scale(0.98); }
.coach-mode-card.mode-locked { opacity: 0.5; }
.coach-mode-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(242,107,29,0.15); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.coach-mode-info { flex: 1; text-align: left; }
.coach-mode-name { display: block; font-weight: 700; font-size: 16px; }
.coach-mode-desc { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.coach-mode-card > .fa-chevron-right { color: var(--text-muted); font-size: 14px; }

/* ========== Coach — Call Screen ========== */
.coach-call-screen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; }
.call-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%); }
.call-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }

.call-avatar { position: relative; margin-bottom: 20px; }
.call-avatar-img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid rgba(242,107,29,0.3); padding: 4px; transition: border-color 0.3s; }
.call-avatar-img.avatar-speaking { border-color: var(--accent); }
.call-pulse {
    position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%; border: 2px solid var(--accent);
    animation: callPulse 1.5s ease-out infinite;
}
@keyframes callPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

.call-name { font-family: 'Futura', sans-serif; font-size: 24px; letter-spacing: 2px; color: #fff; margin: 0 0 4px; }
.call-status { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

.call-transcript {
    background: rgba(255,255,255,0.05); border-radius: 12px;
    padding: 12px 16px; max-width: 90%; max-height: 120px;
    overflow-y: auto; margin-bottom: 30px; min-height: 48px;
}
.transcript-text { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.5; margin: 0; }

.call-controls { display: flex; gap: 32px; align-items: center; margin-top: auto; padding-bottom: 40px; }
.call-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 64px; height: 64px; border-radius: 50%;
    font-size: 20px; cursor: pointer; transition: all 0.2s;
    justify-content: center;
}
.call-btn span { font-size: 10px; margin-top: 2px; }
.call-btn:active { transform: scale(0.95); }
.call-btn-active { background: rgba(242,107,29,0.3); color: var(--accent); }
.call-btn-end { background: #e53935; width: 72px; height: 72px; font-size: 24px; }
.call-btn-end:active { background: #c62828; }

/* ========== Coach — Video Avatar ========== */
.coach-video-screen .call-content { padding-top: 0; }
.video-avatar-container {
    width: 100%; max-width: 400px; height: 50vh; min-height: 340px;
    border-radius: 16px; overflow: hidden;
    background: #0a0a0a; position: relative;
    margin-bottom: 12px;
}
.video-avatar-container canvas { width: 100% !important; height: 100% !important; }
.video-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); }

/* Dashboard Banners */
.dashboard-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    height: 120px;
}
.dashboard-banner .banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.dashboard-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.25));
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}
.dashboard-banner .banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dashboard-banner .banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.dashboard-banner .banner-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
}
.dashboard-banner .banner-arrow {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}
.dashboard-banner .banner-badge {
    flex-shrink: 0;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
}
.challenge-banner .banner-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
}
.coach-banner .banner-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

/* Terms & Privacy Tabs */
.terms-tabs { display:flex; gap:0; border-bottom:1px solid var(--border); margin:0 16px 16px; }
.terms-tab { flex:1; padding:10px 16px; background:none; border:none; color:var(--text-muted); font-size:14px; font-weight:600; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; }
.terms-tab.active { color:var(--accent); border-bottom-color:var(--accent); }
.terms-body h3 { color:var(--accent); margin-top:20px; margin-bottom:8px; font-size:15px; }
.terms-body h4 { color:var(--accent); margin-top:16px; margin-bottom:6px; font-size:14px; }
.terms-body p, .terms-body li { color:var(--text-muted); font-size:13px; line-height:1.6; }
.terms-body ul { padding-left:20px; margin:8px 0; }

/* Affiliate Dashboard */
.affiliate-code-row { display:flex; align-items:center; gap:8px; margin-bottom:16px; }
.affiliate-code { font-family:monospace; font-size:20px; font-weight:700; color:var(--primary); letter-spacing:2px; flex:1; }
.affiliate-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.affiliate-stat { text-align:center; background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:12px 8px; }
.affiliate-stat-value { display:block; font-size:18px; font-weight:700; color:var(--text); }
.affiliate-stat-label { display:block; font-size:11px; color:var(--text-muted); margin-top:4px; }

/* ========== Checkout Page ========== */
.checkout-page { background: var(--bg); }

.checkout-plan-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,107,0,0.1);
}
.plan-summary-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.plan-summary-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,107,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-summary-info { flex: 1; }
.plan-summary-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}
.plan-summary-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 14px;
}
.price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}
.price-period {
    font-size: 14px;
    color: var(--text-muted);
}
.price-after {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.plan-summary-trial {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,107,0,0.1);
    border-radius: 8px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.checkout-billing {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.billing-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.billing-form { display: flex; flex-direction: column; gap: 16px; }
.billing-field { display: flex; flex-direction: column; gap: 4px; }
.billing-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.billing-input {
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text);
    font-family: inherit;
}
.billing-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.billing-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    overflow: hidden;
}
.billing-row .billing-field, .billing-row .billing-input { min-width: 0; }
.billing-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

.checkout-payment-tabs {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.payment-tabs-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.payment-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-tab:hover {
    border-color: var(--accent);
    color: var(--text);
}
.payment-tab.active {
    background: rgba(255,107,0,0.1);
    border-color: var(--accent);
    color: var(--accent);
}
.payment-tab i { font-size: 18px; }

.checkout-card-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.card-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}
.card-field:last-child { margin-bottom: 0; }
.card-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-input {
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}
.card-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.card-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    overflow: hidden;
}
.card-row .card-field, .card-row .card-input { min-width: 0; }
.card-input, .billing-input { box-sizing: border-box; }

.checkout-btn {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: all 0.2s;
}
.checkout-btn:hover:not(:disabled) {
    background: var(--accent-dark);
    transform: translateY(-1px);
}
.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-pix-result, .checkout-boleto-result {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}
.pix-qr-section h3, .boleto-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
}
.pix-qr-code {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
.pix-qr-code img {
    max-width: 200px;
    border-radius: 10px;
    background: white;
    padding: 10px;
}
.pix-copy-section, .boleto-copy-section {
    margin: 20px 0;
}
.pix-copy-section label, .boleto-copy-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.pix-payload-container, .boleto-line-container {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pix-payload, .boleto-line {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: var(--text);
    word-break: break-all;
}
.pix-status, .boleto-due-date {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}
.pix-expiry {
    font-size: 12px;
    color: var(--warning);
    margin-top: 8px;
}
.copy-success {
    margin-top: 12px;
    color: #27ae60;
    font-size: 14px;
    font-weight: 600;
}

.checkout-success {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 20px;
    margin-bottom: 20px;
    text-align: center;
}
.success-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 16px;
}
.checkout-success h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.checkout-success p {
    margin: 0 0 16px;
    color: var(--text-muted);
}
.success-countdown {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.checkout-free-banner {
    background: linear-gradient(135deg, rgba(88,204,2,0.15), rgba(255,215,0,0.15));
    border: 1px solid rgba(88,204,2,0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.checkout-free-banner .free-banner-icon {
    font-size: 28px;
}
.checkout-free-banner .free-banner-text {
    font-size: 14px;
    color: #58CC02;
    font-weight: 600;
}
.checkout-footer {
    text-align: center;
    padding: 20px 0;
}
.checkout-footer p {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.checkout-note {
    font-size: 11px !important;
    color: var(--text-dark) !important;
}
