/* ============================================
   FLUXFIT - MODERN DARK THEME
   Bold, vibrant, and visually striking
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

:root {
    /* Dark Theme Colors */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-elevated: #1a1a25;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    /* Vibrant Accents */
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.4);
    --accent-orange: #f97316;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-red: #ef4444;

    /* Gradient Combos */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-fire: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --gradient-premium: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(240, 90%, 68%, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, hsla(340, 90%, 60%, 0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, hsla(220, 90%, 50%, 0.1) 0px, transparent 50%);

    /* Text */
    --text-white: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-green: 0 0 40px var(--secondary-glow);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Typography Scale */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background mesh effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FluxFit Animated Logo */
.flux-waves {
    display: flex;
    gap: 3px;
    align-items: center;
}

.wave {
    width: 4px;
    background: white;
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; height: 16px; }
.wave:nth-child(2) { animation-delay: 0.1s; height: 24px; }
.wave:nth-child(3) { animation-delay: 0.2s; height: 20px; }
.wave:nth-child(4) { animation-delay: 0.3s; height: 28px; }
.wave:nth-child(5) { animation-delay: 0.4s; height: 18px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Nav Auth */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login,
.btn-register {
    font-family: var(--font-body);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-login:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-register {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--primary-glow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.premium-status {
    background: var(--gradient-premium);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.btn-my-plan {
    font-family: var(--font-body);
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-my-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-logout {
    font-family: var(--font-body);
    padding: 8px 16px;
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--accent-red);
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: white;
    padding: 18px 42px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 60px var(--primary-glow);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    padding: 18px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    color: var(--text-white);
    border-color: var(--primary);
    background: var(--bg-glass-hover);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.2rem;
}

/* ============================================
   LANDING PAGE SECTIONS
   ============================================ */

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-white);
    letter-spacing: -1px;
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 1px solid var(--border-subtle);
}

.feature-card:hover .feature-icon {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    text-align: center;
    max-width: 320px;
    flex: 1;
    min-width: 260px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.step-number-large {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 16px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-connector {
    color: var(--primary);
    opacity: 0.5;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.author-info strong {
    display: block;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-content h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.form-section h2 {
    font-family: var(--font-display);
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-white);
    letter-spacing: -1px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.nutri-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.nutri-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.form-group-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    margin-top: 48px;
}

.form-group-title:first-of-type {
    margin-top: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
}

.form-group-title h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-dark);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Goal Cards */
.objetivo-group {
    margin-bottom: 32px;
}

.objetivo-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.objetivo-card {
    cursor: pointer;
}

.objetivo-card input {
    display: none;
}

.objetivo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background: var(--bg-card-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.objetivo-card:hover .objetivo-content {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.objetivo-card input:checked + .objetivo-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-glow);
}

.objetivo-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.objetivo-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-white);
    margin-bottom: 6px;
}

.objetivo-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Restrictions Checkboxes */
.restricoes-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 18px;
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.checkbox-label:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 48px;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px var(--primary-glow);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(6px);
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.results-section.hidden {
    display: none;
}

.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card:nth-child(1) { animation-delay: 0s; }
.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.2s; }
.result-card:nth-child(4) { animation-delay: 0.3s; }
.result-card:nth-child(5) { animation-delay: 0.4s; }

.result-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Profile Summary */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.profile-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.profile-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-item .value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nutrition Numbers */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.nutrition-item {
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.nutrition-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
    z-index: 0;
}

.nutrition-item > * {
    position: relative;
    z-index: 1;
}

.nutrition-item {
    background: var(--bg-card-elevated);
}

.nutrition-item .value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-white);
}

.nutrition-item .unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nutrition-item .label {
    font-size: 0.85rem;
    margin-top: 12px;
    color: var(--text-muted);
}

.nutrition-item.protein {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.nutrition-item.protein .value {
    color: #f87171;
}

.nutrition-item.carbs {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-color: rgba(249, 115, 22, 0.3);
}

.nutrition-item.carbs .value {
    color: #fb923c;
}

.nutrition-item.fat {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: rgba(168, 85, 247, 0.3);
}

.nutrition-item.fat .value {
    color: #c084fc;
}

/* ============================================
   MEAL PLAN
   ============================================ */
.meals-container {
    display: grid;
    gap: 16px;
}

.meal-item {
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
}

.meal-item:hover {
    border-color: var(--secondary);
}

.meal-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.meal-header:hover {
    background: var(--bg-glass-hover);
}

.meal-time {
    font-weight: 700;
    color: var(--secondary);
    min-width: 90px;
    font-family: var(--font-display);
}

.meal-time small {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.meal-content {
    flex: 1;
}

.meal-name {
    font-weight: 600;
    color: var(--text-white);
}

.meal-foods {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.meal-calories {
    font-weight: 700;
    color: var(--text-white);
    background: var(--bg-dark);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    border: 1px solid var(--border-subtle);
}

.meal-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow-green);
}

.meal-item.open .meal-toggle {
    transform: rotate(180deg);
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Meal Dropdown */
.meal-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.meal-item.open .meal-dropdown {
    max-height: 600px;
}

.meal-recipes {
    padding: 0 24px 24px;
    display: grid;
    gap: 12px;
}

.recipe-suggestion {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.recipe-suggestion:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    background: var(--bg-card);
}

.recipe-suggestion-icon {
    font-size: 2.2rem;
}

.recipe-suggestion-info {
    flex: 1;
}

.recipe-suggestion-name {
    font-weight: 600;
    color: var(--text-white);
}

.recipe-suggestion-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.recipe-suggestion-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.recipe-suggestion:hover .recipe-suggestion-arrow {
    transform: translateX(4px);
}

/* ============================================
   WORKOUT PLAN - ENHANCED
   ============================================ */
.workout-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.workout-info {
    background: var(--bg-card-elevated) !important;
    border: 1px solid var(--border-subtle);
    grid-column: 1 / -1;
}

.workout-info p {
    color: var(--text-secondary) !important;
}

.workout-info strong {
    color: var(--primary-light);
}

.workout-day {
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-subtle);
}

.workout-day:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.workout-header {
    padding: 28px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.workout-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.workout-header.treino-a {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.workout-header.treino-b {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.workout-header.treino-c {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.workout-header.treino-d {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.workout-header h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    position: relative;
}

.workout-focus {
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
}

.workout-preview {
    padding: 24px;
}

.workout-preview p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.workout-preview-exercises {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workout-preview-exercises span {
    background: var(--bg-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.workout-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: var(--bg-dark);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.workout-day:hover .workout-cta {
    background: var(--primary);
    color: white;
}

/* ============================================
   TIPS SECTION
   ============================================ */
.tips-card {
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.tips-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
}

.tips-card h2 {
    color: var(--text-white);
}

.tips-list {
    list-style: none;
    margin-top: 24px;
}

.tips-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-secondary);
}

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

.tips-list li span {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Secondary Button */
.btn-secondary {
    display: block;
    width: fit-content;
    margin: 48px auto 0;
    padding: 16px 42px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-secondary:hover {
    background: var(--bg-card-elevated);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    overflow-y: auto;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.modal-large {
    max-width: 1100px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Recipe Modal */
.recipe-modal-header {
    background: var(--gradient-success);
    padding: 48px;
    color: white;
    position: relative;
}

.recipe-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.recipe-modal-header h2 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: 8px;
    position: relative;
}

.recipe-modal-header > p {
    opacity: 0.9;
    position: relative;
}

.recipe-modal-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
}

.recipe-modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.recipe-modal-body {
    padding: 48px;
}

.recipe-video {
    margin-bottom: 36px;
}

.recipe-video h3 {
    font-family: var(--font-display);
    margin-bottom: 20px;
    color: var(--text-white);
    font-weight: 700;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-fallback-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    text-align: center;
}

.video-fallback-message p {
    color: var(--text-secondary);
    padding: 20px;
}

.video-fallback-message a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.video-fallback-message a:hover {
    text-decoration: underline;
}

/* YouTube Search Button for Recipes */
.recipe-video-search {
    text-align: center;
    padding: 30px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
}

.btn-youtube-search {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #FF0000;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-youtube-search:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn-youtube-search .youtube-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.recipe-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.recipe-details h3 {
    font-family: var(--font-display);
    margin-bottom: 20px;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
}

.recipe-ingredients ul {
    list-style: none;
}

.recipe-ingredients li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.recipe-ingredients li:before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Amazon affiliate link for ingredients */
.ingredient-text {
    flex: 1;
}

.ingredient-amazon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #FF9900;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.ingredient-amazon-link:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.4);
}

.recipe-instructions ol {
    padding-left: 0;
    list-style: none;
    counter-reset: step;
}

.recipe-instructions li {
    padding: 14px 0;
    color: var(--text-secondary);
    counter-increment: step;
    display: flex;
    gap: 14px;
}

.recipe-instructions li::before {
    content: counter(step);
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.recipe-macros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border-subtle);
}

.macro-card {
    text-align: center;
    padding: 24px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.macro-card .value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
}

.macro-card .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.macro-card.calories .value { color: var(--secondary); }
.macro-card.protein .value { color: #f87171; }
.macro-card.carbs .value { color: #fb923c; }
.macro-card.fat .value { color: #c084fc; }

/* ============================================
   WORKOUT MODAL - ANIMATED EXERCISES
   ============================================ */
.workout-modal-header {
    padding: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.workout-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.workout-modal-header.treino-a { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.workout-modal-header.treino-b { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.workout-modal-header.treino-c { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.workout-modal-header.treino-d { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }

.workout-modal-header h2 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: 6px;
    position: relative;
}

.workout-modal-header p {
    opacity: 0.9;
    position: relative;
}

.workout-modal-body {
    padding: 48px;
}

.exercise-list {
    display: grid;
    gap: 20px;
}

/* Enhanced Exercise Card with Animation */
.exercise-card {
    background: var(--bg-card-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.exercise-card:hover {
    border-color: var(--primary);
}

.exercise-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.exercise-card-header:hover {
    background: var(--bg-glass-hover);
}

.exercise-info h4 {
    font-family: var(--font-display);
    color: var(--text-white);
    margin-bottom: 6px;
    font-weight: 700;
}

.exercise-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.exercise-sets-badge {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
}

/* Exercise Content with Animation */
.exercise-content {
    display: none;
    padding: 0 24px 24px;
}

.exercise-card.open .exercise-content {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exercise-card.open .exercise-card-header {
    background: var(--bg-glass-hover);
}

/* Animation Container */
.exercise-animation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.exercise-svg-wrapper {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    min-height: 300px;
}

/* Exercise Video Demo (3D style animations) */
.exercise-video-demo {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    min-height: 300px;
    overflow: hidden;
}

.exercise-demo-video {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* Fallback when video doesn't load */
.exercise-demo-video:not([src]) {
    display: none;
}

.video-fallback.hidden {
    display: none;
}

.exercise-video-demo .video-fallback {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exercise-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Muscle animation effects */
.muscle-active {
    animation: muscleGlow 1.5s ease-in-out infinite;
}

@keyframes muscleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.9));
    }
}

/* Muscles Info Panel */
.muscles-info {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-subtle);
}

.muscles-info h5 {
    font-family: var(--font-display);
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.muscles-info h5::before {
    content: '💪';
}

.muscle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.muscle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.muscle-item.primary {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.muscle-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.muscle-item.primary .muscle-indicator {
    background: var(--accent-red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

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

.muscle-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.muscle-item.primary .muscle-name {
    color: var(--text-white);
    font-weight: 600;
}

.muscle-badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--accent-red);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Section in Exercise */
.exercise-video {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.exercise-video h5 {
    font-family: var(--font-display);
    color: var(--text-white);
    margin-bottom: 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   AUTH MODAL
   ============================================ */
.modal-auth {
    max-width: 450px;
}

.auth-container {
    padding: 48px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    position: relative;
}

.auth-tab.active {
    color: var(--primary-light);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.auth-form h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-white);
}

.auth-form > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-error {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    display: none;
}

.auth-error.show {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    box-shadow: var(--shadow-glow);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--primary-glow);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Google Sign-In Button */
.btn-google {
    width: 100%;
    padding: 14px 20px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google .google-icon {
    flex-shrink: 0;
}

/* Account Prompt Message */
.account-prompt-message {
    text-align: center;
    padding: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
}

.account-prompt-message .prompt-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.account-prompt-message h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.account-prompt-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   PREMIUM MODAL
   ============================================ */
.modal-premium {
    max-width: 520px;
}

.premium-container {
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
}

.premium-icon {
    font-size: 4.5rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 24px rgba(249, 115, 22, 0.3));
}

.premium-container h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-white);
}

.premium-container > p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.premium-features {
    text-align: left;
    margin-bottom: 36px;
}

.premium-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
}

.premium-feature .feature-icon {
    font-size: 1.6rem;
}

.premium-feature strong {
    display: block;
    color: var(--text-white);
    margin-bottom: 4px;
}

.premium-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.premium-pricing {
    margin-bottom: 28px;
}

.price-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.price-old {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-new {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.price-promo {
    margin-top: 12px;
    color: var(--accent-orange);
    font-weight: 600;
}

.btn-premium {
    width: 100%;
    padding: 18px;
    background: var(--gradient-premium);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.4);
}

.premium-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Premium Badge */
.card-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header-premium h2 {
    margin-bottom: 0;
}

.premium-badge {
    background: var(--gradient-premium);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge.unlocked {
    background: var(--gradient-success);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .nutri-form {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .objetivo-options {
        grid-template-columns: 1fr;
    }

    .restricoes-options {
        grid-template-columns: 1fr;
    }

    .meal-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .meal-calories {
        margin: 12px auto 0;
    }

    .meal-toggle {
        margin: 0 auto;
    }

    .workout-container {
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 28px;
    }

    .recipe-details {
        grid-template-columns: 1fr;
    }

    .recipe-macros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        margin: 16px;
    }

    .recipe-modal-header,
    .workout-modal-header,
    .recipe-modal-body,
    .workout-modal-body {
        padding: 28px;
    }

    .auth-container {
        padding: 32px 24px;
    }

    .premium-container {
        padding: 36px 28px;
    }

    .exercise-animation-container {
        grid-template-columns: 1fr;
    }

    .nav-auth {
        gap: 6px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .btn-my-plan {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .user-info {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .user-name {
        display: none;
    }

    /* Landing page responsive */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary-hero {
        padding: 14px 28px;
    }

    .features-section,
    .how-it-works-section,
    .testimonials-section,
    .cta-section {
        padding: 60px 24px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .step-card {
        max-width: 100%;
    }

    .stats-bar {
        gap: 24px;
        padding: 24px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .cta-content {
        padding: 40px 24px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Focus states */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   PREMIUM BLUR EFFECTS FOR FREE USERS
   ============================================ */
.exercise-name-locked {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.workout-preview-locked .workout-preview-exercises span {
    filter: blur(4px);
    user-select: none;
}

.workout-preview-locked::after {
    content: '🔒 Premium';
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.exercise-info-locked h4 {
    filter: blur(5px);
    user-select: none;
}

.exercise-info-locked span {
    filter: blur(3px);
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   PLAN STATUS & PERSISTENCE
   ============================================ */

/* Form hint for plan duration */
.form-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Plan Status Banner */
.plan-status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease forwards;
}

.plan-status-banner.hidden {
    display: none;
}

.plan-status-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    box-shadow: var(--shadow-glow-green);
}

.plan-status-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 1rem;
}

.plan-status-text strong {
    color: var(--secondary);
}

/* Locked Button State */
.btn-secondary.btn-locked {
    background: var(--bg-card-elevated);
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary.btn-locked:hover {
    transform: none;
    background: var(--bg-card-elevated);
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary.btn-locked .lock-icon {
    font-size: 1.1rem;
}

/* ============================================
   SUPPLEMENTS SECTION
   ============================================ */
.supplements-section {
    margin-top: 40px;
}

.supplements-header {
    text-align: center;
    margin-bottom: 30px;
}

.supplements-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.supplements-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.supplements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.supplement-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.supplement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.supplement-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.supplement-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.supplement-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.supplement-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.supplement-benefits li {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.supplement-timing {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 12px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.supplement-timing strong {
    color: var(--text-secondary);
}

.supplement-link {
    display: block;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    margin-top: auto;
}

.btn-secondary-small {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-small:hover {
    background: var(--primary);
    color: white;
}

/* Anatomical SVG Styles */
.exercise-svg.anatomical {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.exercise-svg .muscle {
    transition: fill 0.3s ease, opacity 0.3s ease;
}

.exercise-svg .body-structure {
    opacity: 0.95;
}

/* ============================================
   NO WORKOUT MESSAGE (for frequency 0)
   ============================================ */
.no-workout-message {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

.no-workout-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-workout-message h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.no-workout-message > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-workout-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.no-workout-tips li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.no-workout-tips li:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.no-workout-tips li span {
    font-size: 1.5rem;
}

/* ============================================
   NO PLAN MESSAGE (for my-plan page)
   ============================================ */
.no-plan-message {
    text-align: center;
    padding: 80px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    margin-top: 80px;
}

.no-plan-message.hidden {
    display: none;
}

.no-plan-icon {
    font-size: 5rem;
    margin-bottom: 24px;
}

.no-plan-message h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.no-plan-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Plan Actions Container */
.plan-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

/* Logo link style */
a.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

a.logo:hover .logo-text {
    opacity: 0.8;
}

/* Button link styles (for nav buttons that are now links) */
a.btn-my-plan {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

a.btn-login,
a.btn-register {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
