/* CapitalFlowAcademy - Premium Design System */
/* Professional, Innovative, Trustworthy */

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

:root {
    /* Premium Color Palette */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #4D94FF;
    --primary-glow: rgba(0, 102, 255, 0.4);
    
    /* Accent Colors */
    --accent-gold: #FFB800;
    --accent-emerald: #00C853;
    --accent-purple: #7C3AED;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #FAFBFC;
    --light-gray: #F1F5F9;
    --medium-gray: #E2E8F0;
    --dark-gray: #64748B;
    --slate: #475569;
    
    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    /* Status */
    --success: #10B981;
    --success-light: #D1FAE5;
    --error: #EF4444;
    --warning: #F59E0B;
    
    /* Effects */
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #0052CC 50%, #003D99 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
    --gradient-shine: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--off-white);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-small {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.logo-capital {
    color: var(--text-primary);
}

.logo-flow {
    color: var(--primary);
}

.logo-academy {
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 6px;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}

.logo-icon {
    width: 42px;
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--light-gray);
}

/* Buttons - Premium Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* Hero Section - Premium Dark Design */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 120px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 255, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(0, 200, 83, 0.1), transparent);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.35rem;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero .btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero .btn-outline-light:hover {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--white);
}

/* Trust Badges */
.hero-trust {
    margin-top: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-trust-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Features Section - Premium Cards */
.features {
    padding: 100px 0;
    background: var(--off-white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

/* Pricing Section - Premium */
.pricing {
    padding: 100px 0;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 102, 255, 0.2), transparent);
    pointer-events: none;
}

.pricing .section-title {
    color: var(--white);
}

.pricing .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.price-card {
    background: var(--white);
    max-width: 440px;
    margin: 0 auto;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.price-amount {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 24px 0 8px;
    letter-spacing: -0.03em;
}

.price-amount span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-description {
    color: var(--text-secondary);
    margin: 0 0 32px;
    font-size: 1.05rem;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.price-features li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-primary);
}

.price-features li:last-child {
    border-bottom: none;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Auth Forms - Premium */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--off-white);
}

.auth-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
}

.auth-card h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--off-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: var(--white);
}

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

.error-message {
    background: #FEF2F2;
    color: var(--error);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard - Premium */
.dashboard {
    padding: 48px 0;
    background: var(--off-white);
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    background: var(--white);
    padding: 36px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.dashboard-header h1 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.progress-bar-container {
    margin-top: 24px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    height: 14px;
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Modules Grid - Premium */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.module-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.module-card.completed {
    border-color: var(--success);
}

.module-card.completed .module-number-badge {
    background: var(--success);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--off-white);
    border-bottom: 1px solid var(--border-color);
}

.module-number-badge {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.completed-badge {
    width: 28px;
    height: 28px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.module-body {
    padding: 20px;
}

.module-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.module-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.module-footer {
    padding: 0 20px 20px;
}

.module-card .btn {
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Dashboard Subtitle */
.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
}

/* CTA Banner (shows when course completed) */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cta-banner-content h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.cta-banner-content p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-banner .btn-secondary {
    background: transparent;
    border: 1px solid white;
    color: white;
}

/* Modules List View */
.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.module-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--white);
    text-decoration: none;
    transition: background 0.2s ease;
}

.module-list-item:hover {
    background: var(--off-white);
}

.module-list-item.completed {
    background: #f0fdf4;
}

.module-list-item.completed:hover {
    background: #dcfce7;
}

.module-list-number {
    width: 40px;
    height: 40px;
    background: var(--off-white);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.module-list-item.completed .module-list-number {
    background: var(--success);
    color: white;
}

.module-list-content {
    flex: 1;
    min-width: 0;
}

.module-list-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.module-list-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-list-status {
    flex-shrink: 0;
}

.status-completed {
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Dashboard Links */
.dashboard-links {
    margin-top: 32px;
}

.dashboard-links h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.links-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-item:hover {
    border-color: var(--primary);
    background: var(--off-white);
}

.link-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.link-arrow {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.link-item:hover .link-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Modules Section */
.modules-section {
    margin-bottom: 24px;
}

/* Module Page - Premium */
.module-page {
    padding: 48px 0;
    background: var(--off-white);
}

.module-content {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.module-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: var(--text-primary);
}

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

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
}

.module-info {
    padding: 48px;
}

.module-info h1 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.module-info h2 {
    color: var(--primary);
    font-size: 1.35rem;
    margin: 36px 0 16px;
    font-weight: 600;
}

.module-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.learning-points {
    list-style: none;
    margin: 24px 0;
}

.learning-points li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-primary);
    font-size: 1rem;
}

.learning-points li:last-child {
    border-bottom: none;
}

.learning-points .point-icon {
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.module-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.module-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Payment Page */
.payment-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.payment-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.payment-card h1 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.payment-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.payment-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.payment-amount span {
    font-size: 1.2rem;
    color: var(--text-muted);
}

#card-element {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

#card-errors {
    color: #c0392b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.payment-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
}

.payment-info svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 16px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--off-white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--off-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.faq-item {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Community Links Section */
.community-section {
    padding: 80px 0;
    background: var(--white);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.community-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.community-icon.telegram {
    background: #0088cc;
}

.community-icon.youtube {
    background: #FF0000;
}

.community-icon.whatsapp {
    background: #25D366;
}

.community-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.community-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.community-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================ */

/* Large Tablets and Small Desktops */
@media (max-width: 992px) {
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }
    
    .pricing {
        padding: 60px 0;
    }
    
    .price-card {
        padding: 40px 30px;
    }
    
    .price-amount {
        font-size: 3.5rem;
    }
    
    .dashboard-header {
        padding: 25px;
    }
    
    .module-info {
        padding: 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .nav {
        flex-direction: column;
        gap: 15px;
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    /* Hero */
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Features */
    .features {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-card h3 {
        font-size: 1.15rem;
    }
    
    /* Pricing */
    .pricing {
        padding: 50px 0;
    }
    
    .price-card {
        padding: 35px 25px;
        margin: 0 15px;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .price-amount span {
        font-size: 1.2rem;
    }
    
    /* Auth Pages */
    .auth-page {
        padding: 30px 15px;
    }
    
    .auth-card,
    .payment-card {
        padding: 30px 20px;
    }
    
    .auth-card h1,
    .payment-card h1 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .payment-amount {
        font-size: 2.5rem;
    }
    
    /* Dashboard */
    .dashboard {
        padding: 25px 0;
    }
    
    .dashboard-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .dashboard-header h1 {
        font-size: 1.4rem;
    }
    
    .progress-label {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .modules-grid {
        gap: 20px;
    }
    
    .module-header {
        padding: 20px;
    }
    
    .module-header h3 {
        font-size: 1.1rem;
    }
    
    .module-body {
        padding: 20px;
    }
    
    .module-description {
        font-size: 0.9rem;
    }
    
    /* Module Page */
    .module-page {
        padding: 25px 0;
    }
    
    .module-info {
        padding: 25px 20px;
    }
    
    .module-info h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .module-info h2 {
        font-size: 1.15rem;
    }
    
    .learning-points li {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .module-actions {
        flex-direction: column;
    }
    
    .module-actions .btn {
        width: 100%;
    }
    
    .module-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .module-nav .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Community Section */
    .community-section {
        padding: 50px 0;
    }
    
    .community-grid {
        gap: 15px;
    }
    
    .community-card {
        padding: 20px;
    }
    
    .community-icon {
        width: 45px;
        height: 45px;
    }
    
    .community-info h3 {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-links a {
        margin: 0;
        font-size: 0.85rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    /* Pricing */
    .price-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .price-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    /* Auth */
    .auth-card,
    .payment-card {
        padding: 25px 18px;
    }
    
    .auth-card h1,
    .payment-card h1 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Dashboard */
    .dashboard-header h1 {
        font-size: 1.25rem;
    }
    
    .dashboard-header p {
        font-size: 0.9rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    /* Module Page */
    .module-info h1 {
        font-size: 1.25rem;
    }
    
    .video-placeholder {
        font-size: 1rem;
    }
    
    /* Community */
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .community-card {
        padding: 18px;
        gap: 15px;
    }
    
    .community-icon {
        width: 40px;
        height: 40px;
    }
    
    .community-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* Footer */
    .footer p {
        font-size: 0.85rem;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
    }
}

/* Dashboard Responsive - Mobile */
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-banner-actions .btn {
        width: 100%;
    }
    
    .module-list-item {
        padding: 16px;
        gap: 12px;
    }
    
    .module-list-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .module-list-content p {
        display: none;
    }
    
    .links-row {
        flex-direction: column;
    }
    
    .link-item {
        justify-content: space-between;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .price-amount {
        font-size: 2.2rem;
    }
    
    .auth-card h1,
    .payment-card h1 {
        font-size: 1.2rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.15rem;
    }
    
    .module-info h1 {
        font-size: 1.15rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .module-card:hover {
        transform: none;
    }
    
    .community-card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }
    
    .nav-links a {
        padding: 8px 4px;
    }
    
    .footer-links a {
        padding: 8px;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Success Animation */
.success-animation {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-animation.show {
    display: block;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

/* Quiz Section Styles */
.quiz-section {
    margin-top: 48px;
    padding: 32px;
    background: var(--off-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.quiz-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.quiz-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.quiz-question {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quiz-question h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--off-white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.quiz-option:hover {
    background: #e8f4fc;
    border-color: var(--primary);
}

.quiz-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.quiz-option .option-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.quiz-option.correct {
    background: #d4edda;
    border-color: var(--success);
}

.quiz-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.quiz-feedback {
    margin-top: 12px;
    font-weight: 600;
}

.feedback-correct {
    color: var(--success);
}

.feedback-incorrect {
    color: #dc3545;
}

.quiz-result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-perfect {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.result-good {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.result-retry {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Module CTA Section (Module 8) */
.module-cta-section {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    text-align: center;
}

.module-cta-section h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.cta-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 16px;
}

/* Responsive Quiz */
@media (max-width: 768px) {
    .quiz-section {
        padding: 20px;
        margin-top: 32px;
    }
    
    .quiz-question {
        padding: 16px;
    }
    
    .quiz-option {
        padding: 12px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

.success-checkmark svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

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

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Base */
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Navigation - Mobile Menu */
    .nav {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-capital,
    .logo-flow,
    .logo-academy {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    /* Hero Section */
    .hero {
        padding: 40px 0 50px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Features */
    .features {
        padding: 50px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    /* Pricing */
    .pricing {
        padding: 50px 0;
    }
    
    .price-card {
        padding: 32px 24px;
        margin: 0;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .price-features li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    /* Auth Pages */
    .auth-page {
        padding: 24px 0;
        min-height: calc(100vh - 140px);
    }
    
    .auth-card,
    .payment-card {
        padding: 24px 20px;
        margin: 0 8px;
        border-radius: 16px;
    }
    
    .auth-card h1,
    .payment-card h1 {
        font-size: 1.35rem;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    /* Dashboard */
    .dashboard {
        padding: 24px 0;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-subtitle {
        font-size: 0.9rem;
    }
    
    .progress-bar-container {
        margin-bottom: 24px;
    }
    
    /* Module List */
    .modules-list {
        border-radius: 12px;
    }
    
    .module-list-item {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .module-list-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .module-list-content h3 {
        font-size: 0.95rem;
    }
    
    .module-list-content p {
        display: none;
    }
    
    .module-list-status {
        font-size: 0.8rem;
    }
    
    .status-completed,
    .status-pending {
        font-size: 0.8rem;
    }
    
    /* Dashboard Links */
    .dashboard-links {
        margin-top: 24px;
    }
    
    .dashboard-links h3 {
        font-size: 0.85rem;
    }
    
    .links-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .link-item {
        padding: 14px 16px;
        justify-content: space-between;
    }
    
    /* CTA Banner */
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }
    
    .cta-banner-content h3 {
        font-size: 1.1rem;
    }
    
    .cta-banner-content p {
        font-size: 0.9rem;
    }
    
    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .cta-banner-actions .btn {
        width: 100%;
    }
    
    /* Module Page */
    .module-page {
        padding: 24px 0;
    }
    
    .module-content {
        border-radius: 16px;
    }
    
    .module-info {
        padding: 24px 20px;
    }
    
    .module-info h1 {
        font-size: 1.35rem;
    }
    
    .module-info h2 {
        font-size: 1.15rem;
        margin: 24px 0 12px;
    }
    
    .module-info p {
        font-size: 0.95rem;
    }
    
    .learning-points li {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    
    .point-icon {
        font-size: 1rem;
    }
    
    /* Module Actions */
    .module-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .module-actions .btn {
        width: 100%;
    }
    
    .module-nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }
    
    .module-nav .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Quiz Section */
    .quiz-section {
        padding: 20px 16px;
        margin-top: 32px;
    }
    
    .quiz-section h2 {
        font-size: 1.25rem;
    }
    
    .quiz-intro {
        font-size: 0.9rem;
    }
    
    .quiz-question {
        padding: 16px;
    }
    
    .quiz-question h3 {
        font-size: 1rem;
    }
    
    .quiz-option {
        padding: 12px 14px;
    }
    
    .quiz-option .option-text {
        font-size: 0.9rem;
    }
    
    .quiz-result {
        font-size: 1rem;
        padding: 16px;
    }
    
    /* Module 8 CTA */
    .module-cta-section {
        padding: 24px 20px;
        margin-top: 32px;
    }
    
    .module-cta-section h2 {
        font-size: 1.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-large {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        justify-content: center;
    }
    
    .cta-note {
        font-size: 0.85rem;
    }
    
    /* Community Section */
    .community-section {
        padding: 50px 0;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .community-card {
        padding: 16px;
        gap: 14px;
    }
    
    .community-icon {
        width: 44px;
        height: 44px;
    }
    
    .community-info h3 {
        font-size: 1rem;
    }
    
    .community-info p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 32px 0;
    }
    
    .footer-social {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .footer-social a {
        width: 42px;
        height: 42px;
    }
    
    .footer p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        margin: 0;
    }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Navigation */
    .nav {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-capital,
    .logo-flow,
    .logo-academy {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 4px;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    /* Hero */
    .hero {
        padding: 32px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.35rem;
    }
    
    /* Features */
    .feature-card {
        padding: 20px 16px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    /* Pricing */
    .price-card {
        padding: 28px 20px;
    }
    
    .price-amount {
        font-size: 2.2rem;
    }
    
    /* Auth */
    .auth-card,
    .payment-card {
        padding: 20px 16px;
    }
    
    .auth-card h1,
    .payment-card h1 {
        font-size: 1.25rem;
    }
    
    /* Dashboard */
    .dashboard-header h1 {
        font-size: 1.35rem;
    }
    
    .module-list-item {
        padding: 12px 14px;
    }
    
    .module-list-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .module-list-content h3 {
        font-size: 0.9rem;
    }
    
    /* Module Page */
    .module-info {
        padding: 20px 16px;
    }
    
    .module-info h1 {
        font-size: 1.25rem;
    }
    
    .module-info h2 {
        font-size: 1.1rem;
    }
    
    /* Quiz */
    .quiz-section {
        padding: 16px 14px;
    }
    
    .quiz-question {
        padding: 14px;
    }
    
    .quiz-option {
        padding: 10px 12px;
    }
    
    /* Footer */
    .footer-social a {
        width: 38px;
        height: 38px;
    }
    
    .footer-social svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra Small Phones (max-width: 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.35rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .auth-card h1,
    .payment-card h1 {
        font-size: 1.15rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.2rem;
    }
    
    .module-info h1 {
        font-size: 1.15rem;
    }
    
    .module-list-content h3 {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 24px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .auth-page {
        padding: 16px 0;
    }
}
