/* ==================== VARIABLES ==================== */
:root {
    /* Dark blue theme */
    --primary-dark:  #0A0E1A;
    --card-bg:       #1A1D29;
    --primary-blue:  #3B82F6;
    --secondary-blue:#60A5FA;
    --light-blue:    #93C5FD;
    --border-blue:   rgba(59, 130, 246, 0.2);

    /* Legacy variable aliases → mapped to new palette */
    --cream:          #0A0E1A;
    --sage:           #3B82F6;
    --sage-light:     rgba(59, 130, 246, 0.10);
    --deep-green:     #3B82F6;
    --deep-green-dark:#2563EB;
    --gold:           #F59E0B;
    --gold-light:     rgba(245, 158, 11, 0.12);
    --charcoal:       #F1F5F9;
    --white:          #1A1D29;
    --gray-50:        #1E2235;
    --gray-100:       #1E2235;
    --gray-200:       rgba(59, 130, 246, 0.15);
    --gray-400:       rgba(255, 255, 255, 0.40);
    --gray-600:       rgba(255, 255, 255, 0.65);
    --gray-700:       rgba(255, 255, 255, 0.85);
    --red-500:        #EF4444;
    --green-500:      #22C55E;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.3),  0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.5),0 4px 16px rgba(0,0,0,0.3);
    --shadow-xl: 0 24px 80px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 32px rgba(59,130,246,0.4);
    --shadow-gold: 0 0 32px rgba(245,158,11,0.35);

    --radius-sm:   10px;
    --radius-md:   18px;
    --radius-lg:   26px;
    --radius-full: 9999px;

    --transition:      all 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-fast: all 0.15s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--charcoal);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Geometric background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(59,130,246,0.025) 35px, rgba(59,130,246,0.025) 70px);
    z-index: -1;
    pointer-events: none;
}

.font-display { font-family: 'Inter', sans-serif; font-weight: 700; }

.hidden { display: none !important; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-blue); }

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(10, 14, 26, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-blue);
    box-shadow: 0 1px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 500;
}
.navbar.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: var(--shadow-md);
}

/* ==================== HAMBURGER ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 40px; height: 40px;
    border: none; background: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.hamburger:hover { background: rgba(59,130,246,0.15); }
.hamburger-line {
    width: 22px; height: 2px;
    background: var(--secondary-blue);
    border-radius: 1px;
    transition: var(--transition);
}
.hamburger.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 80px 0 0 0;
    background: #0D1120;
    z-index: 400;
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-blue);
    animation: slideInLeft 0.28s ease;
}
.mobile-menu.open { display: flex; }

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white; border: none; cursor: pointer;
    font-weight: 600; letter-spacing: 0.01em;
    position: relative; overflow: hidden;
    transition: var(--transition);
    font-family: inherit;
}
.btn-primary::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.18),transparent);
    transition: left 0.55s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #D97706 100%);
    color: white; border: none; cursor: pointer;
    font-weight: 600; transition: var(--transition);
    position: relative; overflow: hidden; font-family: inherit;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white; cursor: pointer;
    font-weight: 600; transition: var(--transition); font-family: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--gray-600); border: none; cursor: pointer;
    font-weight: 500; transition: var(--transition-fast); font-family: inherit;
}
.btn-ghost:hover { color: var(--secondary-blue); }

/* Loading state */
.btn-loading { pointer-events: none; opacity: 0.75; }
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px; margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== CARDS ==================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-blue);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.4); }

.card-glass {
    background: rgba(26, 29, 41, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

/* ==================== HERO ==================== */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(140deg, #060914 0%, #0A0E1A 30%, #0F1625 60%, #1A1D29 100%);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
}
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 55%, rgba(59,130,246,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(96,165,250,0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 65% 85%, rgba(37,99,235,0.20) 0%, transparent 50%);
}
.hero-bg::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 130px;
    background: linear-gradient(to top, var(--primary-dark), transparent);
}
@keyframes gradientShift {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-content { position: relative; z-index: 10; color: white; text-align: center; }

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 400px; height: 400px; background: var(--primary-blue); top: -100px; left: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: var(--secondary-blue); bottom: 50px; right: -80px; animation-delay: -4s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ==================== TRUST BADGES ==================== */
.trust-badge {
    display: inline-flex;
    align-items: center; gap: 6px;
    padding: 7px 18px;
    background: rgba(59,130,246,0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.95);
    transition: var(--transition-fast);
}
.trust-badge:hover { background: rgba(59,130,246,0.2); }

/* ==================== SECTION TAG ==================== */
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(59,130,246,0.12);
    color: var(--secondary-blue);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    border: 1px solid rgba(59,130,246,0.2);
}

/* ==================== STAT COUNTER ==================== */
.stat-number {
    font-size: 52px; font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-card {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(37,99,235,0.04) 100%);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-blue);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ==================== FEATURES ==================== */
.feature-icon {
    width: 66px; height: 66px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.08));
    border: 1px solid var(--border-blue);
    transition: var(--transition);
    flex-shrink: 0;
}
.card:hover .feature-icon { transform: scale(1.1) rotate(4deg); }

/* ==================== HOW IT WORKS ==================== */
.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    font-size: 20px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-blue);
    transition: var(--transition);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute; top: 16px; left: 26px;
    font-size: 90px;
    font-family: 'Inter', sans-serif;
    color: var(--primary-blue); opacity: 0.15; line-height: 1;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(59,130,246,0.2); }
.star { color: var(--gold); }

/* ==================== PRICING ==================== */
.pricing-popular {
    border: 2px solid var(--primary-blue) !important;
    position: relative;
    box-shadow: 0 0 40px rgba(59,130,246,0.2);
}
.pricing-badge {
    position: absolute; top: -15px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 5px 22px;
    border-radius: var(--radius-full);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--shadow-glow);
}

/* ==================== FAQ ==================== */
.faq-item {
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
    transition: var(--transition);
    background: var(--card-bg);
}
.faq-item.open { border-color: var(--primary-blue); box-shadow: 0 0 20px rgba(59,130,246,0.1); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; cursor: pointer;
    font-weight: 600; font-size: 15px;
    transition: var(--transition-fast);
    user-select: none; border: none; background: none;
    width: 100%; text-align: left; font-family: inherit;
    color: rgba(255,255,255,0.9);
}
.faq-question:hover { background: rgba(59,130,246,0.05); color: var(--secondary-blue); }
.faq-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59,130,246,0.12);
    color: var(--secondary-blue);
    font-size: 20px; font-weight: 300;
    flex-shrink: 0; transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--primary-blue); color: white; transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1), padding 0.28s ease;
    padding: 0 24px; color: var(--gray-600); font-size: 15px; line-height: 1.7;
    background: rgba(59,130,246,0.03);
}
.faq-item.open .faq-answer { max-height: 320px; padding: 16px 24px 22px; }

/* ==================== FOOTER ==================== */
.footer { background: #060914; color: rgba(255,255,255,0.55); border-top: 1px solid var(--border-blue); }
.footer-link {
    color: rgba(255,255,255,0.40);
    text-decoration: none; font-size: 13px;
    transition: var(--transition-fast);
    display: block; margin-bottom: 8px;
}
.footer-link:hover { color: var(--secondary-blue); }
.footer-social {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(59,130,246,0.10);
    border: 1px solid var(--border-blue);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none; font-size: 16px;
    transition: var(--transition-fast);
}
.footer-social:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

/* ==================== FORMS ==================== */
.form-input {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
    transition: var(--transition-fast);
    background: var(--card-bg); color: #ffffff; outline: none;
}
.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input.valid   { border-color: var(--green-500); }
.form-input.invalid { border-color: var(--red-500); }
.form-group { position: relative; }
.form-icon {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px; pointer-events: none;
    transition: var(--transition-fast);
}

/* ==================== QUESTIONNAIRE ==================== */
.question-option {
    display: flex; align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition-fast);
    margin-bottom: 10px; background: var(--card-bg); user-select: none;
    color: rgba(255,255,255,0.85);
}
.question-option:hover { border-color: var(--primary-blue); background: rgba(59,130,246,0.08); transform: translateX(4px); }
.question-option:has(input:checked) {
    border-color: var(--primary-blue);
    background: rgba(59,130,246,0.12);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}
.question-option input { margin-right: 14px; accent-color: var(--primary-blue); flex-shrink: 0; }

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    border-radius: var(--radius-full);
    position: relative; overflow: hidden;
}
.progress-bar::after {
    content: '';
    position: absolute; top: 0; left: -100%; right: 0; bottom: 0;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { to { left: 100%; } }

/* ==================== BADGES ==================== */
.badge-premium { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; }
.badge-free    { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.badge {
    display: inline-flex; align-items: center;
    padding: 5px 14px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}

/* ==================== DASHBOARD SIDEBAR ==================== */
.dashboard-layout { display: flex; min-height: calc(100vh - 80px); }

.sidebar {
    width: 255px; flex-shrink: 0;
    background: #0D1120;
    border-right: 1px solid var(--border-blue);
    padding: 28px 14px;
    position: sticky; top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 0 10px 24px;
    border-bottom: 1px solid var(--border-blue);
    margin-bottom: 16px;
}
.sidebar-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer; font-weight: 500; font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition-fast);
    border: none; background: none; width: 100%; text-align: left;
    margin-bottom: 3px; font-family: inherit;
}
.sidebar-nav-item:hover { background: rgba(59,130,246,0.10); color: var(--secondary-blue); }
.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(37,99,235,0.08));
    color: var(--secondary-blue); font-weight: 700;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-blue);
}
.sidebar-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-divider { border: none; border-top: 1px solid var(--border-blue); margin: 12px 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; }

.dashboard-content { flex: 1; padding: 32px; overflow-x: hidden; background: var(--primary-dark); }

/* Mobile dashboard tabs */
.dashboard-tabs-mobile {
    display: none;
    overflow-x: auto; gap: 6px;
    padding: 12px 16px;
    background: #0D1120;
    border-bottom: 1px solid var(--border-blue);
    -webkit-overflow-scrolling: touch;
}
.dashboard-tabs-mobile::-webkit-scrollbar { display: none; }
.tab-btn-mobile {
    flex-shrink: 0; padding: 8px 16px;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-full);
    background: transparent; cursor: pointer;
    font-size: 13px; font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition-fast); font-family: inherit;
    white-space: nowrap;
}
.tab-btn-mobile.active {
    border-color: var(--primary-blue);
    background: var(--primary-blue); color: white;
}
.tab-btn { background: none; border: none; cursor: pointer; transition: var(--transition-fast); font-family: inherit; }

/* ==================== EXERCISE CARD ==================== */
.exercise-card {
    border-left: 3px solid var(--primary-blue);
    background: rgba(59,130,246,0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px; transition: var(--transition-fast);
}
.exercise-card:hover { background: rgba(59,130,246,0.10); border-left-color: var(--secondary-blue); box-shadow: var(--shadow-sm); }

/* ==================== TOAST SYSTEM ==================== */
.toast-container {
    position: fixed; top: 96px; right: 24px;
    z-index: 9999; display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: #1E2235;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
    max-width: 380px; min-width: 280px;
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
    border: 1px solid var(--border-blue);
    border-left: 4px solid var(--primary-blue);
    font-size: 14px; font-weight: 500;
}
.toast.toast-success { border-left-color: var(--green-500); }
.toast.toast-error   { border-left-color: var(--red-500); }
.toast.toast-info    { border-left-color: var(--primary-blue); }
.toast.toast-warning { border-left-color: var(--gold); }
.toast.hiding { animation: toastOut 0.28s ease forwards; }
.toast-icon    { font-size: 20px; flex-shrink: 0; }
.toast-msg     { flex: 1; color: rgba(255,255,255,0.9); }
.toast-close   { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--gray-400); transition: var(--transition-fast); line-height: 1; padding: 2px; }
.toast-close:hover { color: rgba(255,255,255,0.9); }

@keyframes toastIn  { from { opacity:0; transform: translateX(100%) scale(0.9); } to { opacity:1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(110%); } }

/* ==================== MODAL ==================== */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    background: #1E2235;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-lg);
    padding: 44px; max-width: 440px; width: 100%;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.26s cubic-bezier(0.34,1.56,0.64,1);
    color: rgba(255,255,255,0.9);
}

/* ==================== SUCCESS PAGE ==================== */
.success-icon {
    width: 110px; height: 110px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; margin: 0 auto 32px;
    animation: scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: var(--shadow-glow);
}
.countdown-ring {
    width: 60px; height: 60px; border-radius: 50%;
    border: 3px solid rgba(59,130,246,0.2);
    border-top-color: var(--primary-blue);
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle; margin-left: 8px;
}

/* ==================== SKELETON ==================== */
.skeleton {
    background: linear-gradient(90deg, #1E2235 25%, #252840 50%, #1E2235 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp  { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn   { from { opacity:0; transform:scale(0.88); } to { opacity:1; transform:scale(1); } }
@keyframes slideInLeft  { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(30px); }  to { opacity:1; transform:translateX(0); } }
@keyframes pulseGlow { 0%,100% { box-shadow:0 0 20px rgba(59,130,246,0.3); } 50% { box-shadow:0 0 50px rgba(59,130,246,0.6); } }

.fade-in-up         { animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards; }
.fade-in-up-delay-1 { animation: fadeInUp 0.7s 0.15s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in-up-delay-2 { animation: fadeInUp 0.7s 0.30s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in-up-delay-3 { animation: fadeInUp 0.7s 0.45s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in-up-delay-4 { animation: fadeInUp 0.7s 0.60s cubic-bezier(0.4,0,0.2,1) both; }

.scroll-reveal { opacity:0; transform:translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.scroll-reveal.revealed { opacity:1; transform:translateY(0); }
.scroll-reveal.delay-1 { transition-delay: 0.10s; }
.scroll-reveal.delay-2 { transition-delay: 0.20s; }
.scroll-reveal.delay-3 { transition-delay: 0.30s; }
.scroll-reveal.delay-4 { transition-delay: 0.40s; }

/* ==================== TAILWIND DARK OVERRIDES ==================== */
/* Background overrides */
.bg-white, .bg-gray-50, .bg-gray-100 { background-color: var(--card-bg) !important; }
.bg-gray-200 { background-color: rgba(59,130,246,0.12) !important; }

/* Text overrides */
.text-gray-900, .text-gray-800 { color: rgba(255,255,255,0.95) !important; }
.text-gray-700                 { color: rgba(255,255,255,0.85) !important; }
.text-gray-600, .text-gray-500 { color: rgba(255,255,255,0.65) !important; }
.text-gray-400                 { color: rgba(255,255,255,0.45) !important; }

/* Border overrides */
.border-gray-200, .border-gray-100, .border-gray-300 {
    border-color: var(--border-blue) !important;
}

/* Divide overrides */
.divide-gray-200 > * + * { border-color: var(--border-blue) !important; }

/* Green text → blue */
.text-green-600, .text-green-700, .text-green-800 { color: var(--secondary-blue) !important; }

/* Input overrides */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], select, textarea {
    background-color: var(--card-bg) !important;
    color: rgba(255,255,255,0.9) !important;
    border-color: var(--border-blue) !important;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35) !important; }
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue) !important;
    outline: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-desktop { display: none; }
    .sidebar { display: none; }
    .dashboard-layout { flex-direction: column; }
    .dashboard-content { padding: 16px; }
    .dashboard-tabs-mobile { display: flex; }
    .modal-box { padding: 28px; }
    .toast-container { right: 12px; left: 12px; }
    .toast { min-width: unset; max-width: none; }
    .hero-section { min-height: 80vh; }
    .hero-bg::after { display: none; }
    input, select, textarea { font-size: 16px !important; }
    .card { padding: 20px !important; }
    .dashboard-tabs-mobile {
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: 6px;
    }
    .dashboard-tabs-mobile::-webkit-scrollbar { display: none; }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .pricing-popular .pricing-badge { font-size: 10px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem !important; line-height: 1.15; }
    .hero-content p  { font-size: 1rem !important; }
    .hero-content .flex { flex-direction: column !important; }
    .hero-content button { width: 100% !important; justify-content: center; }
    .tab-btn-mobile { padding: 8px 10px; font-size: 11px; white-space: nowrap; }
}
@media (min-width: 769px) { .dashboard-tabs-mobile { display: none; } }

@media (max-width: 480px) {
    .btn-commencer, header button, .nav-buttons a {
        padding: 6px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    header, .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .logo, header img { max-width: 120px !important; }
}

html, body { max-width: 100%; overflow-x: hidden; }
body, html { overflow-x: hidden; width: 100%; }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
}
.nav-buttons { display: flex; align-items: center; gap: 8px; }

/* ==================== LOGOS ==================== */
.logo-header {
    height: 38px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo-header:hover { transform: scale(1.05); opacity: 0.9; }

.auth-logo {
    height: 56px;
    width: auto;
    margin: 0 auto 24px;
    display: block;
}

.footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.8;
}

.sidebar-logo-img {
    height: 28px;
    width: auto;
}

/* ==================== RECIPE CARDS ==================== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0 36px;
}

.day-section { margin-bottom: 48px; }

.day-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59,130,246,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipe-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-blue);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.45);
}

.recipe-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #0D1120;
}
.recipe-image {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.recipe-card:hover .recipe-image { transform: scale(1.08); }

.recipe-badge {
    position: absolute;
    top: 10px; right: 10px;
}
.badge-meal-type {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(59,130,246,0.85);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.badge-calories {
    background: rgba(10,14,26,0.88);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59,130,246,0.3);
}

.recipe-content {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recipe-title {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}
.recipe-macros {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.macro-item {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    background: rgba(59,130,246,0.08);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(59,130,246,0.12);
}
.recipe-portion {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-top: auto;
}
.recipe-dessert {
    font-size: 0.82rem;
    color: var(--secondary-blue);
}

@media (max-width: 768px) {
    .recipes-grid { grid-template-columns: 1fr; gap: 14px; }
    .recipe-image-container { height: 160px; }
}

/* ==================== PREVIEW PAGE ==================== */
.preview-locked-container {
    position: relative;
    margin-top: 40px;
    min-height: 400px;
}
.preview-locked-blur {
    filter: blur(10px);
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
}
.preview-unlock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 32px;
    background: linear-gradient(180deg, rgba(10,14,26,0.7) 0%, rgba(10,14,26,0.97) 40%, rgba(10,14,26,0.97) 100%);
}
.preview-unlock-card {
    background: linear-gradient(135deg, #1A1D29 0%, #0A0E1A 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 28px;
    padding: 48px 40px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(59,130,246,0.35);
    animation: fadeUp 0.5s ease-out;
}
.preview-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.preview-benefit {
    background: rgba(59,130,246,0.1);
    border-left: 3px solid var(--primary-blue);
    border-radius: 8px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.preview-macro-card {
    background: var(--card-bg);
    border: 1px solid var(--border-blue);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
}
.preview-macro-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}
.preview-macro-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== POST-PAYMENT MODAL ==================== */
.post-payment-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(10,14,26,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}
.post-payment-card {
    background: linear-gradient(135deg, #1A1D29 0%, #0A0E1A 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 28px;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(59,130,246,0.45);
    animation: fadeUp 0.5s ease-out;
}
@keyframes ppBounce {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-18px); }
    70%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .preview-unlock-card, .post-payment-card { padding: 32px 20px; border-radius: 20px; }
    .preview-unlock-card h2 { font-size: 1.4rem !important; }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100px); }
}
/* ==================== MODAL SUPPRESSION COMPTE ==================== */
#deleteAccountModal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.dac-overlay {
    position: absolute; inset: 0;
    background: rgba(10,14,26,0.92);
    backdrop-filter: blur(8px);
}
.dac-card {
    position: relative;
    background: linear-gradient(135deg,#1A1D29 0%,#0A0E1A 100%);
    border: 2px solid rgba(239,68,68,0.3);
    border-radius: 24px; padding: 40px;
    max-width: 480px; width: 90%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: ppBounce 0.3s ease;
}
.dac-title {
    color: #fff; font-size: 1.4rem; font-weight: 700;
    text-align: center; margin: 0 0 24px;
}
.dac-warning {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 12px; padding: 18px 20px;
    display: flex; gap: 14px; margin-bottom: 24px;
    font-size: 0.9rem;
}
.dac-warning span { font-size: 1.4rem; flex-shrink: 0; }
.dac-warning strong { color: #ef4444; display: block; margin-bottom: 6px; }
.dac-warning p  { color: rgba(255,255,255,0.8); margin: 4px 0; }
.dac-warning ul { margin: 8px 0 0 16px; padding: 0; color: rgba(255,255,255,0.65); }
.dac-warning li { margin: 3px 0; }
.dac-field { margin-bottom: 24px; }
.dac-field label {
    display: block; color: rgba(255,255,255,0.9);
    font-size: 0.9rem; font-weight: 500; margin-bottom: 8px;
}
.dac-field input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 12px 16px;
    color: #fff; font-size: 1rem;
    transition: border-color 0.2s;
}
.dac-field input:focus { outline: none; border-color: #3B82F6; }
.dac-error { color: #ef4444; font-size: 0.85rem; margin-top: 8px; }
.dac-actions { display: flex; gap: 12px; }
.dac-btn-cancel {
    flex: 1; background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8); padding: 12px;
    border-radius: 10px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.dac-btn-cancel:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); }
.dac-btn-delete {
    flex: 1; background: #ef4444; border: none;
    color: #fff; padding: 12px;
    border-radius: 10px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.dac-btn-delete:hover:not(:disabled) { background: #dc2626; }
.dac-btn-delete:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 480px) {
    .dac-card { padding: 24px; }
    .dac-actions { flex-direction: column; }
}
/* ==================== NOTICE ABONNEMENT ANNULÉ ==================== */
.sub-cancelled-notice {
    background: rgba(251,191,36,0.1);
    border: 2px solid rgba(251,191,36,0.35);
    border-radius: 16px; padding: 20px 24px;
    display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.sub-cancelled-notice > span { font-size: 1.6rem; flex-shrink: 0; }
.sub-cancelled-notice strong { color: #fbbf24; display: block; margin-bottom: 6px; font-size: 1.05rem; }
.sub-cancelled-notice p  { color: rgba(255,255,255,0.8); margin: 4px 0; line-height: 1.5; }
.sub-notice-after { color: rgba(255,255,255,0.5) !important; font-size: 0.85rem !important; }
/* Account deletion section — neutral, non-alarming */
.account-deletion-section {
    opacity: 0.7;
    transition: opacity 0.2s;
}
.account-deletion-section:hover {
    opacity: 1;
}
