/* ═══════════════════════════════════════════════════════════
   NUTRAVA DESIGN SYSTEM — Variables & Base
   ═══════════════════════════════════════════════════════════ */
:root {
    /* ── Gold Accent ── */
    --gold: #C9A84C;
    --gold-light: #E8D48B;
    --gold-dark: #A8862A;
    --gold-bg: rgba(201,168,76,0.06);

    /* ── Black / Dark ── */
    --black: #0A0A0F;
    --black-light: #16161D;
    --black-deep: #050508;
    --charcoal: #111118;
    --dark: #0C0C12;

    /* ── Neutral ── */
    --white: #FFFFFF;
    --offwhite: #FAFAF8;
    --cream: #F5F3ED;
    --gray-100: #F2F2F4;
    --gray-200: #E5E5EA;
    --gray-300: #C7C7CC;
    --gray-400: #8E8E93;
    --gray-500: #636366;
    --gray-600: #3A3A3C;

    /* ── Semantic ── */
    --text: #111118;
    --text-light: #8E8E93;
    --surface: #FFFFFF;
    --border-color: #E5E5EA;

    /* ── Status ── */
    --red: #E53E3E;
    --red-bg: #FFF5F5;
    --green-main: #C9A84C;

    /* ── Elevation ── */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
    --shadow-gold: 0 4px 20px rgba(201,168,76,0.25);

    /* ── Radii ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* ── Motion ── */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── App Typography ── */
    --app-page-title-size: 1.65rem;
    --app-section-subtitle-size: 0.96rem;
    --app-control-font-size: 0.9rem;
    --app-button-font-size: 0.9rem;
    --app-label-font-size: 0.78rem;
    --app-card-title-size: 1rem;
    --app-badge-font-size: 0.68rem;
    --app-chip-font-size: 0.72rem;
    --app-meta-font-size: 0.82rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font);
    color: var(--charcoal);
    background: var(--offwhite);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════
   HEADER — Glassmorphism Premium
   ═══════════════════════════════════════════════════════════ */
.site-header {
    background: rgba(10,10,15,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,168,76,0.18);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title { margin: 0; }
.site-title a {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-menu { display: flex; align-items: center; gap: 8px; }
.user-menu { display: flex; align-items: center; gap: 16px; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.user-name {
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.menu-link {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.menu-link:hover {
    color: var(--gold);
    background: rgba(201,168,76,0.1);
}

.site-header .ph-duotone {
    vertical-align: middle;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — Premium System
   ═══════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.2px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--charcoal);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--charcoal);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--charcoal);
}
.btn-logout {
    background: transparent;
    color: rgba(255,255,255,0.5);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    transition: var(--transition);
}
.btn-logout:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-acceder {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
}
.btn-acceder:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--charcoal);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}
.btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-bg);
}
.btn-danger {
    background: var(--red);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   HERO — Full Premium Landing
   ═══════════════════════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(160deg, var(--black-deep) 0%, var(--charcoal) 40%, var(--black) 100%);
    color: var(--white);
    padding: 120px 40px 100px;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -1px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 18px 44px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201,168,76,0.35);
    color: var(--charcoal);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS — General
   ═══════════════════════════════════════════════════════════ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works */
.how-it-works-section {
    padding: 100px 40px;
    background: var(--white);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.step-card {
    background: var(--gray-100);
    padding: 44px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201,168,76,0.2);
}
.step-number {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 24px;
}
.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--charcoal);
}
.step-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Features */
.features-section {
    padding: 100px 40px;
    background: var(--charcoal);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    background: var(--black-light);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(201,168,76,0.12);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}
/* Phosphor Duotone global inline icon style */
.ph-duotone { color: var(--gold); font-size: 1.1em; vertical-align: -0.1em; }
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--gold);
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}
.feature-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(160deg, var(--black-deep), var(--charcoal), var(--dark));
    color: var(--white);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.1), transparent 70%);
    border-radius: 50%;
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}
.cta-section p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 18px 44px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201,168,76,0.3);
    color: var(--charcoal);
}

/* Footer */
.site-footer {
    padding: 40px;
    background: var(--black-deep);
    color: rgba(255,255,255,0.35);
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-links {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.78rem;
}
.footer-links a:hover { color: var(--gold); }
.footer-sep { margin: 0 10px; color: rgba(255,255,255,0.2); }

/* Legal pages */
.legal-page { max-width: 800px; margin: 0 auto; padding: 40px 24px 60px; }
.legal-page h1 { font-size: 1.6rem; margin-bottom: 8px; color: var(--text); }
.legal-page .legal-date { color: var(--text-light); font-size: 0.85rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.15rem; margin-top: 32px; margin-bottom: 12px; color: var(--text); border-bottom: 1px solid var(--gray-200); padding-bottom: 6px; }
.legal-page h3 { font-size: 1rem; margin-top: 20px; margin-bottom: 8px; color: var(--text); }
.legal-page p, .legal-page li { font-size: 0.9rem; line-height: 1.7; color: var(--gray-500); }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--gold-dark); text-decoration: underline; }
.legal-page a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   LOGIN / REGISTER
   ═══════════════════════════════════════════════════════════ */
.login-section {
    background: linear-gradient(160deg, var(--black-deep), var(--charcoal));
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}
.login-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
    border-radius: 50%;
}
.login-container { width: 100%; max-width: 480px; position: relative; z-index: 1; }
.login-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
}
.login-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-align: center;
}
.login-subtitle {
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 36px;
    font-size: 0.9rem;
}
.login-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 32px;
}
.tab-button {
    background: none;
    border: none;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font);
}
.tab-button.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content form { display: flex; flex-direction: column; gap: 16px; }
.tab-content label { font-size: 0.9rem; }

/* Form Elements */
.form-input, .form-select,
.tab-content input[type="text"],
.tab-content input[type="email"],
.tab-content input[type="password"],
.tab-content input[type="number"],
.tab-content select,
.nutrava-register-form input,
.nutrava-register-form select,
.profile-form input,
.profile-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: var(--app-control-font-size);
    transition: var(--transition);
    background: var(--white);
    color: var(--charcoal);
}
.form-input:focus, .form-select:focus,
.tab-content input:focus,
.tab-content select:focus,
.nutrava-register-form input:focus,
.nutrava-register-form select:focus,
.profile-form input:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}
.form-input:disabled,
.profile-form input:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--charcoal);
    font-size: var(--app-label-font-size);
}
.form-group { margin-bottom: 20px; }
.diet-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.diet-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--charcoal);
}
.diet-checkboxes input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-section-title {
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}
.nutrava-register-form h3 {
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}
.nutrava-register-form { display: flex; flex-direction: column; gap: 14px; }
.nutrava-register-form button,
.btn-submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font);
    transition: var(--transition);
    margin-top: 8px;
}
.nutrava-register-form button:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.error-message {
    background: var(--red-bg);
    border: 1px solid #FED7D7;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    color: var(--red);
    font-size: 0.9rem;
}
.error-message p { margin: 6px 0; }
.btn-register-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    font-size: 0.9rem;
}

/* ── Social Login ─────────────────────────────────────── */
.social-login {
    margin-top: 24px;
}
.social-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.social-divider span {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
}
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid;
}
.social-btn svg {
    flex-shrink: 0;
}
.social-btn span {
    line-height: 1;
}
.social-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none !important;
    pointer-events: none;
}
.social-google {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043;
}
.social-google:hover {
    background: #f7f8f8;
    border-color: #c6c9cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.social-facebook {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}
.social-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    box-shadow: 0 2px 8px rgba(24,119,242,0.3);
}
.social-facebook svg path {
    fill: #fff;
}
.social-apple {
    background: #000;
    border-color: #000;
    color: #fff;
}
.social-apple:hover {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-back:hover {
    background: var(--gold);
    color: var(--charcoal);
}

/* ═══════════════════════════════════════════════════════════
   PLAN SELECTION
   ═══════════════════════════════════════════════════════════ */
.plan-selection-section {
    padding: 80px 40px;
    background: var(--cream);
    min-height: 80vh;
}
.page-title {
    font-size: var(--app-page-title-size);
    font-weight: 800;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: var(--app-section-subtitle-size);
    margin-bottom: 50px;
}

.planner-section,
.calendar-section,
.foods-page-section,
.plan-selection-section,
.dashboard-section {
    font-size: 1rem;
}

.calendar-section .page-title,
.dashboard-section .page-title,
.foods-page .foods-header h1,
.plan-selection-section .wizard-header h1,
.planner-section .planner-header h1 {
    font-size: var(--app-page-title-size);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.dashboard-section .subtitle,
.plan-selection-section .wizard-header .subtitle {
    font-size: var(--app-section-subtitle-size);
}
.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}
.option-card {
    background: var(--white);
    padding: 44px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.option-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.option-card.recommended {
    border-color: var(--gold);
    background: linear-gradient(180deg, var(--white) 0%, rgba(201,168,76,0.04) 100%);
}
.option-card.recommended::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: 16px;
    right: -28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 4px 40px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    transform: rotate(45deg);
}
.option-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}
.option-card h3 {
    color: var(--charcoal);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.option-card p {
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 0.9rem;
}
.btn-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    color: var(--gold);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-option:hover {
    background: var(--gold);
    color: var(--charcoal);
}
.btn-recommended {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
}
.btn-recommended:hover {
    box-shadow: var(--shadow-gold);
    color: var(--charcoal);
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD & PLAN BUILDER
   ═══════════════════════════════════════════════════════════ */
.dashboard-section {
    padding: 60px 40px;
    background: var(--offwhite);
    min-height: 80vh;
}
.plan-builder {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 700px;
}
.plan-builder h2 {
    color: var(--charcoal);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.plan-builder > p {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 0.9rem;
}
.meals-selector h3 {
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 20px;
}
.meals-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.meal-option {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.meal-option:hover {
    border-color: var(--gold);
    background: var(--gold-bg);
}
.meal-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--gold);
}
.meal-option span {
    font-weight: 500;
    color: var(--charcoal);
}
.btn-continue {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 14px 40px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font);
    transition: var(--transition);
}
.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Goals & Activity selectors */
.goals-selector, .activities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.goal-option, .activity-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.goal-option:hover, .activity-option:hover {
    border-color: var(--gold);
    background: var(--gold-bg);
}
.goal-option input, .activity-option input[type="checkbox"] {
    accent-color: var(--gold);
    width: 20px;
    height: 20px;
}
.activity-option input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    margin-left: auto;
}
.macro-sliders {
    margin-bottom: 32px;
}
.macro-sliders label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-600);
}
.macro-sliders input[type="range"] {
    width: 100%;
    margin-bottom: 20px;
    accent-color: var(--gold);
    height: 6px;
}

/* Profile Summary */
.profile-summary {
    background: var(--gray-100);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}
.profile-summary p {
    margin-bottom: 8px;
    color: var(--gray-600);
}
.profile-summary strong {
    color: var(--charcoal);
}
.recommendation {
    background: var(--gold-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    border: 1px solid rgba(201,168,76,0.15);
}
.recommendation ul {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}
.recommendation li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(201,168,76,0.08);
    color: var(--gray-600);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */
.profile-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.profile-wrapper #reconfigure-plan,
.profile-wrapper #weight-tracking,
.profile-wrapper #change-password,
.profile-wrapper #delete-account {
    border: none !important;
    border-top: 1px solid var(--border-color) !important;
    outline: none;
    box-shadow: none;
}
.dashboard-section *:not(.profile-wrapper) {
    border-color: var(--border-color, #E5E5EA);
}
.profile-header {
    text-align: center;
    margin-bottom: 40px;
}
.profile-header h2 {
    color: var(--charcoal);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.profile-form h3 {
    color: var(--gold-dark);
    margin-top: 32px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-save {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font);
    margin-top: 24px;
    transition: var(--transition);
}
.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
#profile-message {
    margin-bottom: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
}
#profile-message.success {
    background: var(--gold-bg);
    color: var(--gold-dark);
    border: 1px solid rgba(201,168,76,0.2);
    display: block;
}
#profile-message.error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid #FED7D7;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 40px; }
}
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 12px 20px;
    }
    .menu-toggle {
        display: flex;
    }
    .header-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding-top: 16px;
        border-top: 1px solid rgba(201,168,76,0.12);
        margin-top: 12px;
    }
    .header-menu.open {
        display: flex;
    }
    .user-menu {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .user-name {
        padding: 8px 0;
    }
    .menu-link, .btn-acceder, .btn-logout {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    .hero-section { padding: 80px 20px 60px; min-height: auto; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .how-it-works-section, .features-section, .cta-section {
        padding: 60px 20px;
    }
    .container { padding: 0 8px; }
    .plan-options { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .profile-wrapper { padding: 16px 8px; max-width: 100%; border-radius: 0; border: 0; box-shadow: none; }
    .login-section { padding: 24px 16px; }
    .login-container { max-width: 100%; }
    .login-box { padding: 28px 20px; }
    .page-title { font-size: 1.8rem; }
    .dashboard-section { padding: 20px 4px; }
    .plan-builder { padding: 24px; }
    .site-footer { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .login-tabs { flex-wrap: wrap; }
    .tab-button { padding: 10px 16px; font-size: 0.8rem; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px 8px; }
    .stat-value { font-size: 1.4rem; }
    .stat-label { font-size: 0.65rem; }
    .page-title { font-size: 1.4rem; margin-bottom: 16px; }
    .profile-header { margin-bottom: 20px; }
    .profile-header h2 { font-size: 1.2rem; }
    .profile-header .subtitle { font-size: 0.8rem; }
    .profile-wrapper { padding: 12px 4px; border: 0; box-shadow: none; }
    .container { padding: 0 4px; }
    .dashboard-section { padding: 16px 2px; }
    .diet-options { grid-template-columns: 1fr; }
    .rec-grid { grid-template-columns: 1fr; }
    .macro-cards { grid-template-columns: 1fr; }
    .login-section { padding: 16px 12px; }
    .login-box { padding: 24px 16px; border-radius: var(--radius-lg); }
    .login-title { font-size: 1.6rem; }
    .btn-submit { font-size: 0.9rem; padding: 12px; }
    .tab-button { flex: 1; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   PROFILE STATS CARDS
   ═══════════════════════════════════════════════════════════ */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
}
.stat-card.highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-color: var(--gold);
}
.stat-card.highlight .stat-label,
.stat-card.highlight .stat-unit {
    color: rgba(255,255,255,0.85);
}
.stat-card.highlight .stat-value {
    color: #fff;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
}
.stat-unit {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}
.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════
   DIET SELECTION CARDS (page-elegir-plan)
   ═══════════════════════════════════════════════════════════ */
.diet-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.diet-card {
    background: var(--surface);
    border: 2px solid rgba(201, 168, 76, 0.15);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.diet-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.diet-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, rgba(201,168,76,0.02) 100%);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}
.diet-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.diet-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.diet-card h3 {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 12px;
}
.diet-macros {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.diet-macros span {
    background: rgba(201,168,76,0.1);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.diet-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}
.diet-features {
    list-style: none;
    padding: 0;
    text-align: left;
}
.diet-features li {
    font-size: 0.8rem;
    color: var(--text);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.diet-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}
.diet-action {
    text-align: center;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════════
   RECOMMENDATION PAGE (page-plan-recomendado)
   ═══════════════════════════════════════════════════════════ */
.recommendation-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.rec-profile-summary,
.rec-calculations,
.rec-macros {
    background: var(--surface);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}
.rec-profile-summary h3,
.rec-calculations h3,
.rec-macros h3 {
    color: var(--gold-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.rec-item {
    text-align: center;
}
.rec-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.rec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
}
.calc-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.calc-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: rgba(201, 168, 76, 0.04);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}
.calc-step.highlight {
    background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.04) 100%);
    border-left-color: var(--gold-dark);
}
.calc-name {
    font-weight: 600;
    color: var(--charcoal);
}
.calc-result {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-dark);
}
.calc-step small {
    flex-basis: 100%;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}
.macro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.macro-card {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.15);
}
.macro-card .macro-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.macro-card .macro-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.macro-card .macro-grams {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--charcoal);
}
.macro-card small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}
.macro-card.protein { border-color: rgba(231, 76, 60, 0.3); background: rgba(231, 76, 60, 0.05); }
.macro-card.carbs { border-color: rgba(52, 152, 219, 0.3); background: rgba(52, 152, 219, 0.05); }
.macro-card.fat { border-color: rgba(243, 156, 18, 0.3); background: rgba(243, 156, 18, 0.05); }
.rec-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    background: transparent;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(201,168,76,0.1);
}

/* ── Global modal overlay (hidden by default, shown with .active) ── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.active { display: flex; }

/* ── Upgrade Modal ── */
#nutrava-upgrade-modal { display: none; position: fixed; inset: 0; z-index: 10000; }
#nutrava-upgrade-modal.active { display: flex; justify-content: center; align-items: center; }
#nutrava-upgrade-modal .nutrava-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.upgrade-modal-content { position: relative; background: #fff; border-radius: 16px; padding: 32px 28px; max-width: 420px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: upgradeSlideIn 0.3s ease; }
@keyframes upgradeSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.upgrade-modal-content .modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; }
.upgrade-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upgrade-title { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; }
.upgrade-msg { color: #555; font-size: 0.9rem; margin: 0 0 20px; }
.upgrade-features { text-align: left; margin: 0 auto 24px; max-width: 300px; }
.upgrade-feature { padding: 6px 0; font-size: 0.88rem; color: #333; }
.upgrade-feature .check { color: #4CAF50; font-weight: 700; margin-right: 8px; }
.upgrade-prices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.btn-upgrade { padding: 14px 20px; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-upgrade:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-upgrade-annual { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.btn-upgrade-monthly { background: #f0f0f0; color: #333; }
.btn-upgrade small { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.85; }
.upgrade-note { font-size: 0.78rem; color: #888; margin: 0; }

/* ── AI Usage Badge ── */
.ai-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; background: #e8f5e9; color: #2e7d32; margin-left: 12px; }
.ai-badge-orange { background: #fff3e0; color: #e65100; }
.ai-badge-red { background: #ffebee; color: #c62828; }

/* ── PRO Badge ── */
.pro-badge { margin-left: 4px; font-size: 0.85em; }
.pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Site Title highlight override ── */
.site-title a .highlight {
    -webkit-text-fill-color: var(--green-main);
    background: none;
}

/* ── Premium nav link ── */
.menu-premium {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}
.menu-premium:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--gold-dark), #8a6e1e);
    transform: translateY(-1px);
}

/* ── Premium Profile Section ── */
.premium-profile-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}
.premium-profile-active {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.premium-profile-badge {
    font-size: 1rem; font-weight: 700; color: var(--green-main);
}
.premium-profile-link {
    font-size: 0.85rem; color: var(--green-main); text-decoration: none; font-weight: 600;
}
.premium-profile-cta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.premium-profile-info { display: flex; flex-direction: column; gap: 2px; }
.premium-profile-free { font-weight: 700; color: var(--gray-700); }
.premium-profile-limits { font-size: 0.8rem; color: var(--gray-500); }
.btn-upgrade-sm {
    display: inline-block; padding: 8px 18px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff; border-radius: var(--radius-lg); font-weight: 700; font-size: 0.85rem;
    text-decoration: none; border: none; cursor: pointer;
}
.btn-upgrade-sm:hover { opacity: 0.9; }

/* ── Premium CTA Banner ── */
.premium-cta-banner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 1px solid var(--green-main);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    margin: 24px 0;
}
.premium-cta-banner span:first-child { font-size: 1.5rem; }
.premium-cta-banner div { flex: 1; min-width: 180px; }

/* ── Premium Page ── */
.premium-page { max-width: 800px; margin: 0 auto; padding: 24px 16px; }
.premium-hero { text-align: center; margin-bottom: 32px; }
.premium-hero h1 { font-size: 2rem; font-weight: 800; color: var(--charcoal); }
.premium-hero .highlight { color: var(--green-main); }
/* Ensure premium page content doesn't get clipped by parent theme */
.page-template-page-premium .wp-block-post-content,
.page-template-page-premium .entry-content,
.page-template-page-premium main,
.page-template-page-premium article { overflow: visible !important; }
.premium-subtitle { color: var(--gray-600); font-size: 1.1rem; margin-top: 8px; }

.premium-success-banner,
.premium-cancel-banner { text-align: center; padding: 24px; border-radius: var(--radius-xl); margin-bottom: 24px; }
.premium-success-banner { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.premium-success-banner .success-icon { font-size: 2.5rem; }
.premium-success-banner h2 { margin: 8px 0 4px; }
.premium-cancel-banner { background: var(--gray-100); color: var(--gray-700); }

.premium-status-card {
    text-align: center; padding: 32px; background: var(--white);
    border: 2px solid var(--green-main); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.premium-status-card .status-badge { font-size: 1.3rem; font-weight: 700; color: var(--green-main); margin-bottom: 12px; }
.premium-status-card .grace-warning { color: #e65100; font-weight: 600; margin: 8px 0; }

.pricing-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; padding-top: 20px; overflow: visible; }
.pricing-card {
    flex: 1; min-width: 220px; max-width: 320px; padding: 32px 24px 28px;
    border-radius: var(--radius-xl); background: var(--white);
    border: 2px solid var(--gray-200); text-align: center; position: relative;
    box-shadow: var(--shadow-sm); overflow: visible;
}
.pricing-card-annual { border-color: var(--green-main); box-shadow: var(--shadow-lg); overflow: visible; }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--green-main); color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
    z-index: 1;
}
.pricing-card h3 { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 8px; }
.pricing-card .price { font-size: 2rem; font-weight: 800; color: var(--charcoal); }
.pricing-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--gray-500); }
.pricing-card .price-detail { font-size: 0.85rem; color: var(--gray-500); margin: 4px 0 16px; }

.btn-upgrade {
    display: inline-block; width: 100%; padding: 12px; border: none; border-radius: var(--radius-lg);
    font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform 0.15s, opacity 0.15s;
}
.btn-upgrade:active { transform: scale(0.97); }
.btn-upgrade:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-upgrade-annual { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.btn-upgrade-annual:hover { background: linear-gradient(135deg, var(--gold-dark), #8a6e1e); color: #fff; }
.btn-upgrade-monthly { background: var(--gray-100); color: var(--charcoal); border: 1px solid var(--gray-300); }
.btn-upgrade-monthly:hover { background: var(--gray-200); color: var(--charcoal); }

.coupon-section { text-align: center; margin-bottom: 32px; }
.coupon-section label { font-size: 0.9rem; color: var(--gray-600); }
.coupon-row { margin-top: 6px; }
#coupon-input {
    padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-md);
    font-size: 0.95rem; width: 200px; text-align: center;
}

.comparison-table { margin-bottom: 32px; }
.comparison-table h2 { text-align: center; font-size: 1.2rem; margin-bottom: 16px; }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th { background: var(--gray-100); padding: 10px 12px; text-align: left; font-weight: 700; }
.comparison-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); }
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) { text-align: center; width: 90px; }
.comparison-table .premium-col { color: var(--green-main); font-weight: 700; }

.faq-section { margin-bottom: 32px; }
.faq-section h2 { text-align: center; font-size: 1.2rem; margin-bottom: 16px; }
.faq-section details {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    margin-bottom: 8px; overflow: hidden;
}
.faq-section summary {
    padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-section summary::after { content: '+'; font-size: 1.2rem; color: var(--gray-400); }
.faq-section details[open] summary::after { content: '−'; }
.faq-section details p { padding: 0 16px 14px; color: var(--gray-600); line-height: 1.5; margin: 0; }

.btn-premium-action {
    display: inline-block; padding: 10px 24px; border: 2px solid var(--green-main);
    border-radius: var(--radius-lg); color: var(--green-main) !important; font-weight: 700;
    background: transparent; cursor: pointer; font-size: 0.95rem;
    text-decoration: none;
}
.btn-premium-action:hover { background: var(--green-main) !important; color: #fff !important; }

.btn-danger-outline {
    display: inline-block; padding: 10px 24px; border: 2px solid var(--red);
    border-radius: var(--radius-lg); color: var(--red); font-weight: 700;
    background: transparent; cursor: pointer; font-size: 0.95rem;
}
.btn-danger-outline:hover { background: var(--red); color: #fff; }

.premium-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.cancel-pending-info { color: #e65100; font-weight: 600; margin: 12px 0; }
.expiry-info { color: var(--gray-600); margin: 12px 0; }

/* ── Premium Stats ── */
.premium-stats-section { margin: 32px 0; }
.premium-stats-section h2 { text-align: center; font-size: 1.2rem; margin-bottom: 20px; color: var(--charcoal); }
.premium-stats-section h3 { font-size: 1rem; margin: 24px 0 12px; color: var(--gray-600); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-card {
    display: flex; flex-direction: column; align-items: center; padding: 20px 12px;
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; text-align: center; }
.stats-table { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); }
.stats-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 10px 16px; font-size: 0.85rem; }
.stats-row:nth-child(even) { background: var(--gray-50); }
.stats-header { background: var(--primary) !important; color: white; font-weight: 600; font-size: 0.8rem; }
.stats-highlight { margin-top: 16px; text-align: center; font-size: 0.9rem; color: var(--gray-600); }

/* ── Premium Features Grid ── */
.premium-features-grid { margin: 32px 0; }
.premium-features-grid h2 { text-align: center; font-size: 1.2rem; margin-bottom: 20px; color: var(--charcoal); }
.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px; background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.feature-item .feature-icon { font-size: 1.5rem; flex-shrink: 0; color: var(--gold); }
.feature-item strong { display: block; font-size: 0.95rem; color: var(--charcoal); margin-bottom: 2px; }
.feature-item p { margin: 0; font-size: 0.82rem; color: var(--gray-600); line-height: 1.4; }

/* ── Profile premium section refined ── */
.btn-manage-sm {
    display: inline-block; padding: 6px 14px;
    border: 1.5px solid var(--green-main); border-radius: var(--radius-lg);
    color: var(--green-main); font-weight: 600; font-size: 0.82rem;
    text-decoration: none;
}
.btn-manage-sm:hover { background: var(--green-main); color: #fff; }
.premium-profile-expiry { font-size: 0.8rem; color: var(--gray-500); }
.premium-profile-expiry.cancel { color: #e65100; }

@media (max-width: 500px) {
    .pricing-cards { flex-direction: column; align-items: center; }
    .pricing-card { max-width: 100%; }
    .premium-hero h1 { font-size: 1.5rem; }
    .features-list { grid-template-columns: 1fr; }
    .premium-actions { flex-direction: column; align-items: center; }
}

/* ── Confirm modal (global, works on all pages) ── */
#nutrava-confirm-modal { z-index: 10010; }
#nutrava-confirm-modal .modal,
#nutrava-confirm-modal .quantity-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
#nutrava-confirm-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}
#nutrava-confirm-modal .modal-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}
#nutrava-confirm-modal .quantity-form {
    padding: 20px 24px;
}
#nutrava-confirm-msg { color: var(--gray-600); margin: 0 0 18px; line-height: 1.5; font-size: 0.9rem; }
.modal-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 768px) {
    .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px 10px; }
    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; letter-spacing: 0.5px; }
    .rec-grid { grid-template-columns: repeat(2, 1fr); }
    .macro-cards { grid-template-columns: 1fr; }
    .calc-step { flex-direction: column; align-items: flex-start; }
    .rec-actions { flex-direction: column; }
    .rec-actions a { text-align: center; }
}
