@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&family=Bebas+Neue&family=Permanent+Marker&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --max-width: 1400px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px rgba(var(--accent-rgb), 0.3);
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-base);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); }
.logo-icon {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem; font-family: var(--font-heading);
}
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); letter-spacing: var(--logo-spacing, -0.02em); }
.logo-text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.9rem;
    font-weight: 500; color: var(--text-secondary); transition: all var(--transition-fast);
}
.nav a:hover { color: var(--text-primary); background: var(--bg-tertiary); }

.nav-cta {
    background: var(--accent) !important; color: var(--btn-text) !important;
    font-weight: 600 !important; padding: 10px 24px !important;
    border-radius: var(--radius-xl) !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: var(--hero-bg);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative; z-index: 2; max-width: 800px;
    padding: 80px 0;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: var(--radius-xl);
    background: var(--badge-bg); color: var(--accent);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
    border: 1px solid var(--badge-border);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800; line-height: 0.95; margin-bottom: 24px;
    color: var(--text-primary); letter-spacing: var(--heading-spacing, -0.03em);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline {
    -webkit-text-stroke: 2px var(--accent);
    color: transparent;
}

.hero-description {
    font-size: 1.2rem; color: var(--text-secondary);
    max-width: 560px; margin-bottom: 40px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--btn-radius, var(--radius-xl));
    font-size: 1rem; font-weight: 600; cursor: pointer;
    border: none; transition: all var(--transition-base);
    text-transform: var(--btn-transform, none);
    letter-spacing: var(--btn-spacing, 0);
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--accent); color: var(--btn-text);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover); transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.4);
}
.btn-secondary {
    background: var(--bg-tertiary); color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-secondary); border-color: var(--accent); }
.btn-outline {
    background: transparent; color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--btn-text); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-icon { width: 20px; height: 20px; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg-secondary); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; margin-bottom: 16px; letter-spacing: var(--heading-spacing, -0.02em);
}
.section-header h2 .accent { color: var(--accent); }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* ===== FEATURES ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--card-radius, var(--radius-lg)); padding: 40px 32px;
    transition: all var(--transition-base); position: relative; overflow: hidden;
}
.feature-card:hover {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: rgba(var(--accent-rgb), 0.1); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 700; margin-bottom: 12px;
}
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    padding: 60px 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800; color: var(--accent); line-height: 1;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.team-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--card-radius, var(--radius-lg)); overflow: hidden;
    transition: all var(--transition-base);
}
.team-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.team-photo {
    height: 320px; background: var(--bg-tertiary); position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--accent); overflow: hidden;
}
.team-photo::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 100px; background: linear-gradient(transparent, var(--card-bg));
}
.team-info { padding: 32px; }
.team-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.team-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.team-bio { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.pricing-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--card-radius, var(--radius-lg)); padding: 40px 32px;
    position: relative; transition: all var(--transition-base);
}
.pricing-card.popular {
    border-color: var(--accent); transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}
.pricing-card.popular::before {
    content: 'POPULAIRE'; position: absolute; top: -1px; left: 50%;
    transform: translateX(-50%); background: var(--accent); color: var(--btn-text);
    padding: 6px 24px; border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
}
.pricing-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 800; line-height: 1;
    margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-period { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 32px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
    padding: 10px 0; border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem; display: flex; align-items: center; gap: 12px;
}
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== TESTIMONIAL / CTA ===== */
.cta-section {
    text-align: center; padding: 120px 0; position: relative; overflow: hidden;
    background: var(--cta-bg);
}
.cta-section h2 {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; margin-bottom: 20px;
}
.cta-section p { color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; margin: 0 auto 40px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-secondary); margin-top: 16px; font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: var(--text-secondary); padding: 4px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border-color); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 0.85rem;
}

/* ===== PROGRAMS GRID (Netflix style) ===== */
.programs-row { margin-bottom: 48px; }
.programs-row-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.programs-row-header h3 {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
}
.programs-row-header a { color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.programs-scroll {
    display: flex; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 16px;
    scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-tertiary);
}
.programs-scroll::-webkit-scrollbar { height: 4px; }
.programs-scroll::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: 2px; }
.programs-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.program-card {
    flex: 0 0 320px; scroll-snap-align: start;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--card-radius, var(--radius-lg));
    overflow: hidden; cursor: pointer;
    transition: all var(--transition-base);
}
.program-card:hover {
    border-color: var(--accent); transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.program-thumb {
    height: 180px; position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; overflow: hidden;
}
.program-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, var(--card-bg));
}
.program-level {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
    padding: 4px 12px; border-radius: var(--radius-xl);
    font-size: 0.75rem; font-weight: 600; color: #fff;
}
.program-card-body { padding: 20px; }
.program-card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.program-card-sub { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 12px; }
.program-card-meta {
    display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted);
}
.program-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== PROGRAM DETAIL ===== */
.program-hero {
    min-height: 60vh; display: flex; align-items: flex-end;
    padding: 80px 0 60px; position: relative;
    padding-top: calc(var(--header-height) + 40px);
}
.program-hero-bg {
    position: absolute; inset: 0;
    background: var(--hero-bg);
}
.program-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(transparent, var(--bg-primary) 90%);
}
.program-hero-content { position: relative; z-index: 2; }
.program-meta-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.program-meta-badges span {
    padding: 6px 16px; border-radius: var(--radius-xl);
    background: rgba(var(--accent-rgb), 0.15); color: var(--accent);
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.program-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 40px 0 80px; }
.module-list { list-style: none; }
.module-item {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); margin-bottom: 12px;
    transition: all var(--transition-fast); cursor: pointer;
}
.module-item:hover { border-color: var(--accent); background: var(--bg-tertiary); }
.module-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.1); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.module-info h4 { font-weight: 600; margin-bottom: 2px; }
.module-info p { font-size: 0.85rem; color: var(--text-secondary); }

.program-sidebar {
    position: sticky; top: calc(var(--header-height) + 24px);
}
.sidebar-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--card-radius, var(--radius-lg)); padding: 32px;
}
.sidebar-card .btn { width: 100%; justify-content: center; margin-top: 24px; }
.sidebar-stat {
    display: flex; justify-content: space-between; padding: 12px 0;
    border-bottom: 1px solid var(--border-color); font-size: 0.9rem;
}
.sidebar-stat span:first-child { color: var(--text-secondary); }
.sidebar-stat span:last-child { font-weight: 600; }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: var(--header-height) 24px 24px;
    background: var(--bg-primary);
}
.auth-card {
    width: 100%; max-width: 440px; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: var(--card-radius, var(--radius-lg));
    padding: 48px 40px;
}
.auth-card h1 {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    margin-bottom: 8px; text-align: center;
}
.auth-card .subtitle {
    text-align: center; color: var(--text-secondary); margin-bottom: 32px; font-size: 0.95rem;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px;
    color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
    border: 1px solid var(--border-color); background: var(--bg-tertiary);
    color: var(--text-primary); font-size: 1rem; font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1); }
.form-input::placeholder { color: var(--text-muted); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-error { background: rgba(255,68,68,0.1); border: 1px solid rgba(255,68,68,0.3); color: #ff4444; padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 0.9rem; }
.auth-demo-info { background: rgba(var(--accent-rgb),0.08); border: 1px solid rgba(var(--accent-rgb),0.2); color: var(--accent); padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 0.85rem; line-height: 1.5; }

/* ===== MEMBER DASHBOARD ===== */
.dashboard { padding-top: calc(var(--header-height) + 40px); padding-bottom: 80px; min-height: 100vh; }
.dashboard-welcome {
    margin-bottom: 48px; padding: 40px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--card-radius, var(--radius-lg));
    position: relative; overflow: hidden;
}
.dashboard-welcome::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.dashboard-welcome h1 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 8px; }
.dashboard-welcome p { color: var(--text-secondary); }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.dash-stat {
    background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 20px; text-align: center;
}
.dash-stat-value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.dash-stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.category-filter {
    display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 20px; border-radius: var(--radius-xl);
    background: var(--bg-tertiary); border: 1px solid var(--border-color);
    color: var(--text-secondary); cursor: pointer; font-size: 0.875rem;
    font-weight: 500; transition: all var(--transition-fast); font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent); color: var(--btn-text); border-color: var(--accent);
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.theme-switcher-toggle {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent); color: var(--btn-text); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); transition: all var(--transition-base);
    font-size: 1.2rem;
}
.theme-switcher-toggle:hover { transform: scale(1.1); }
.theme-options {
    display: none; flex-direction: column; gap: 6px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 12px;
    box-shadow: var(--shadow-lg);
}
.theme-options.active { display: flex; }
.theme-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: none; border: 1px solid transparent; cursor: pointer;
    color: var(--text-primary); font-size: 0.875rem; font-weight: 500;
    white-space: nowrap; transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.theme-option:hover { background: var(--bg-tertiary); }
.theme-option.active { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.theme-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }

/* ===== SUBSCRIPTION BADGE ===== */
.sub-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: var(--radius-xl);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.sub-badge.active { background: rgba(0,200,83,0.15); color: #00C853; }
.sub-badge.inactive { background: rgba(255,68,68,0.15); color: #FF4444; }

/* ===== VIDEO PLAYER PLACEHOLDER ===== */
.video-player {
    aspect-ratio: 16/9; background: var(--bg-tertiary);
    border-radius: var(--card-radius, var(--radius-lg)); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; cursor: pointer;
    margin-bottom: 32px;
}
.video-player::before {
    content: '▶'; width: 72px; height: 72px; border-radius: 50%;
    background: var(--accent); color: var(--btn-text);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; transition: transform var(--transition-base);
    padding-left: 4px;
}
.video-player:hover::before { transform: scale(1.1); }

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
}
.gallery-item {
    border-radius: var(--card-radius, var(--radius-lg));
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.gallery-large { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.gallery-large { grid-column: span 1; }
}

/* ===== BILLING TOGGLE ===== */
.billing-toggle {
    display: inline-flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}
.billing-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}
.billing-btn.active {
    background: var(--accent);
    color: #000;
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    white-space: nowrap;
}
.pricing-card { position: relative; }
@media (max-width: 640px) {
    .pricing-grid-2col { grid-template-columns: 1fr !important; }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .program-detail-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--header-bg); backdrop-filter: blur(20px); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-color); }
    .nav.active { display: flex; }
    .menu-toggle { display: flex; }
    .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .hero-content { padding: 40px 0; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .auth-card { padding: 32px 24px; }
    .program-card { flex: 0 0 280px; }
    .dashboard-welcome { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
}
