/* ================================
   N8N ACADEMY — STYLE.CSS
   Neon Blood Red / Dark Blue / Orange
   Fire & Sigil Aesthetic
   ================================ */

/* === CSS VARIABLES === */
:root {
    --bg-primary: #0a0a12;
    --bg-secondary: #0f0f1a;
    --bg-card: #141425;
    --bg-card-hover: #1a1a30;
    --bg-input: #12122a;
    
    --neon-red: #ff1744;
    --neon-red-glow: rgba(255, 23, 68, 0.4);
    --neon-blue: #0d47a1;
    --neon-dark-blue: #0a1628;
    --neon-orange: #ff6d00;
    --neon-orange-glow: rgba(255, 109, 0, 0.4);
    --gold: #ffab00;
    --gold-dim: #c5930a;
    
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    
    --gradient-fire: linear-gradient(135deg, var(--neon-red), var(--neon-orange), var(--gold));
    --gradient-dark: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    --gradient-card: linear-gradient(145deg, rgba(20,20,40,0.8), rgba(10,10,20,0.9));
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow-red: 0 0 20px var(--neon-red-glow);
    --shadow-glow-orange: 0 0 20px var(--neon-orange-glow);
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', var(--font-body);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
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(--neon-orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
img { max-width: 100%; }
input, textarea, button { font-family: inherit; }

/* === PRELOADER === */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.sigil-loader { text-align: center; }
.sigil-svg { width: 100px; height: 100px; animation: sigil-spin 3s linear infinite; }
.sigil-ring { fill: none; stroke-width: 2; }
.ring-outer { stroke: var(--neon-orange); }
.ring-mid { stroke: var(--gold); opacity: 0.6; }
.sigil-triangle { fill: none; stroke: var(--neon-red); stroke-width: 2; }
.sigil-core { fill: none; stroke: var(--neon-orange); stroke-width: 1.5; }
.sigil-line { stroke: var(--gold); stroke-width: 2; }
.loader-text { margin-top: 16px; color: var(--text-secondary); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
@keyframes sigil-spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* === UTILITIES === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.gradient-text {
    background: var(--gradient-fire);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === PAGES === */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* === NAVBAR === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 109, 0, 0.1);
    padding: 0 24px;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-sigil { width: 36px; height: 36px; }
.logo-text { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.logo-text .accent { color: var(--neon-orange); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--text-primary); }
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px; background: var(--text-primary);
    position: absolute; left: 0; transition: var(--transition);
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    background: var(--bg-secondary); padding: 24px;
    flex-direction: column; gap: 16px;
    border-bottom: 1px solid rgba(255,109,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-secondary); font-size: 16px; padding: 8px 0; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px;
    font-weight: 600; border: none; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-primary {
    background: var(--gradient-fire); color: #fff;
    box-shadow: 0 4px 15px rgba(255,23,68,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-red); }
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid rgba(255,109,0,0.3);
}
.btn-outline:hover { border-color: var(--neon-orange); color: var(--neon-orange); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); }
.btn-google {
    background: #fff; color: #333; border: 1px solid #ddd;
}
.btn-google:hover { background: #f5f5f5; }
.btn-arrow { font-size: 18px; }
.btn.danger { border-color: var(--neon-red); color: var(--neon-red); }
.btn.danger:hover { background: rgba(255,23,68,0.1); }

/* === HERO === */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.particle-field { position: absolute; inset: 0; }
.hero-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,23,68,0.15) 0%, rgba(255,109,0,0.08) 40%, transparent 70%);
    border-radius: 50%; filter: blur(60px);
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(255,109,0,0.1); border: 1px solid rgba(255,109,0,0.2);
    border-radius: 20px; font-size: 14px; font-weight: 500;
    color: var(--neon-orange); margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
    font-weight: 900; line-height: 1.1; margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--neon-orange); }
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,109,0,0.2); }

/* === SECTIONS === */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--neon-orange); margin-bottom: 16px;
}
.section-header h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* === FEATURES GRID === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255,109,0,0.08);
    border-radius: var(--radius-md); padding: 32px;
    transition: var(--transition);
}
.feature-card:hover { border-color: rgba(255,109,0,0.2); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* === CURRICULUM === */
.curriculum-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.track { border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,109,0,0.08); }
.track-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.track-beginner { background: linear-gradient(135deg, rgba(76,175,80,0.2), rgba(76,175,80,0.05)); border-bottom: 2px solid #4CAF50; }
.track-intermediate { background: linear-gradient(135deg, rgba(255,109,0,0.2), rgba(255,109,0,0.05)); border-bottom: 2px solid var(--neon-orange); }
.track-expert { background: linear-gradient(135deg, rgba(255,23,68,0.2), rgba(255,23,68,0.05)); border-bottom: 2px solid var(--neon-red); }
.track-level { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.track-range { font-size: 13px; color: var(--text-muted); }
.track-body { background: var(--bg-card); padding: 24px; }
.track-topics li { padding: 8px 0; color: var(--text-secondary); font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.track-topics li:last-child { border-bottom: none; }

/* === PRICING === */
.pricing-card-wrapper { display: flex; justify-content: center; }
.pricing-card {
    position: relative; max-width: 420px; width: 100%;
    background: var(--gradient-card);
    border: 2px solid rgba(255,109,0,0.2);
    border-radius: var(--radius-lg); padding: 48px 40px;
    text-align: center;
}
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-fire); padding: 6px 20px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: #fff;
}
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.price { margin-bottom: 8px; }
.price-amount { font-family: var(--font-display); font-size: 56px; font-weight: 900; color: var(--neon-orange); }
.price-period { font-size: 18px; color: var(--text-muted); }
.price-trial { color: var(--neon-red); font-weight: 600; margin-bottom: 32px; }
.pricing-features { text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 8px 0; font-size: 15px; color: var(--text-secondary); }

/* === FOOTER === */
.footer { padding: 60px 0 30px; border-top: 1px solid rgba(255,109,0,0.08); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; margin-bottom: 40px; flex-wrap: wrap; gap: 24px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 8px; max-width: 300px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--neon-orange); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.03); }
.footer-bottom p { color: var(--text-muted); font-size: 13px; }

/* === AUTH PAGES === */
.auth-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px; position: relative;
    background: var(--gradient-dark);
}
.auth-back {
    position: absolute; top: 24px; left: 24px;
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; font-size: 14px; transition: var(--transition);
}
.auth-back:hover { color: var(--text-primary); }
.auth-card {
    max-width: 420px; width: 100%;
    background: var(--bg-card); border: 1px solid rgba(255,109,0,0.1);
    border-radius: var(--radius-lg); padding: 40px;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-sigil { width: 60px; height: 60px; margin-bottom: 16px; }
.auth-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.auth-header p { color: var(--text-secondary); font-size: 14px; }
.auth-error { background: rgba(255,23,68,0.1); border: 1px solid var(--neon-red); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; color: var(--neon-red); font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; background: var(--bg-input);
    border: 1px solid rgba(255,109,0,0.1); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 15px;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--neon-orange);
    box-shadow: 0 0 0 3px rgba(255,109,0,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.auth-divider span { color: var(--text-muted); font-size: 13px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }

/* === DASHBOARD === */
.dash-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,18,0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,109,0,0.08); padding: 0 24px;
}
.dash-nav-right { display: flex; align-items: center; gap: 16px; }
.user-greeting { color: var(--text-secondary); font-size: 14px; }
.sub-badge {
    font-size: 11px; padding: 3px 10px; border-radius: 20px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.sub-badge.trial { background: rgba(255,109,0,0.15); color: var(--neon-orange); border: 1px solid rgba(255,109,0,0.3); }
.sub-badge.active { background: rgba(76,175,80,0.15); color: #4CAF50; border: 1px solid rgba(76,175,80,0.3); }
.sub-badge.expired { background: rgba(255,23,68,0.15); color: var(--neon-red); border: 1px solid rgba(255,23,68,0.3); }
.sub-badge.admin { background: rgba(255,215,0,0.15); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }

.dash-layout { display: flex; padding-top: 64px; min-height: 100vh; }

/* Sidebar */
.dash-sidebar {
    width: 280px; min-width: 280px;
    background: var(--bg-secondary); padding: 24px;
    border-right: 1px solid rgba(255,109,0,0.06);
    overflow-y: auto; height: calc(100vh - 64px);
    position: sticky; top: 64px;
}
.sidebar-section { margin-bottom: 32px; }
.sidebar-section h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 16px; }
.progress-ring-container { position: relative; width: 100px; height: 100px; margin: 0 auto 12px; }
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: rgba(255,109,0,0.1); stroke-width: 8; }
.progress-ring-fill { fill: none; stroke: var(--neon-orange); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1s ease; }
.progress-percent { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--neon-orange); }
.progress-detail { text-align: center; font-size: 13px; color: var(--text-secondary); }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.qs-item { text-align: center; background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 4px; }
.qs-val { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--neon-orange); }
.qs-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sub-info { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }

/* Main content */
.dash-main { flex: 1; padding: 24px; overflow-x: hidden; }

/* Tabs */
.tab-nav { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 4px; }
.tab-btn {
    padding: 10px 20px; background: transparent; border: none;
    color: var(--text-secondary); font-size: 14px; font-weight: 600;
    cursor: pointer; border-radius: 6px; transition: var(--transition); flex: 1;
}
.tab-btn.active { background: var(--bg-card); color: var(--neon-orange); box-shadow: var(--shadow-sm); }
.tab-btn:hover:not(.active) { color: var(--text-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Module Grid */
.modules-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.modules-header h2 { font-size: 20px; font-weight: 700; }
.module-filters { display: flex; gap: 8px; }
.filter-btn {
    padding: 6px 16px; background: var(--bg-card); border: 1px solid rgba(255,109,0,0.08);
    border-radius: 20px; color: var(--text-secondary); font-size: 13px;
    cursor: pointer; transition: var(--transition);
}
.filter-btn.active { background: rgba(255,109,0,0.1); border-color: var(--neon-orange); color: var(--neon-orange); }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.module-card {
    background: var(--bg-card); border: 1px solid rgba(255,109,0,0.06);
    border-radius: var(--radius-md); padding: 20px; cursor: pointer;
    transition: var(--transition); position: relative; overflow: hidden;
}
.module-card:hover { border-color: rgba(255,109,0,0.15); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.module-card .mc-number {
    font-family: var(--font-display); font-size: 11px; font-weight: 700;
    color: var(--text-muted); margin-bottom: 8px; letter-spacing: 1px;
}
.module-card .mc-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.module-card .mc-meta { font-size: 12px; color: var(--text-muted); }
.module-card .mc-level {
    position: absolute; top: 0; right: 0;
    padding: 4px 12px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 0 var(--radius-md) 0 var(--radius-sm);
}
.mc-level.beginner { background: rgba(76,175,80,0.15); color: #4CAF50; }
.mc-level.intermediate { background: rgba(255,109,0,0.15); color: var(--neon-orange); }
.mc-level.expert { background: rgba(255,23,68,0.15); color: var(--neon-red); }
.module-card .mc-progress {
    height: 3px; background: rgba(255,109,0,0.1);
    border-radius: 2px; margin-top: 12px; overflow: hidden;
}
.module-card .mc-progress-fill { height: 100%; background: var(--gradient-fire); border-radius: 2px; transition: width 0.5s; }
.module-card.completed { border-color: rgba(76,175,80,0.3); }
.module-card.completed::after {
    content: '✓'; position: absolute; top: 12px; left: 12px;
    width: 20px; height: 20px; background: #4CAF50;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #fff;
}

/* === WORKFLOW CANVAS === */
.canvas-header { margin-bottom: 16px; }
.canvas-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.canvas-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn {
    padding: 8px 14px; background: var(--bg-card);
    border: 1px solid rgba(255,109,0,0.08); border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 13px; cursor: pointer;
    transition: var(--transition);
}
.tool-btn:hover { border-color: var(--neon-orange); color: var(--neon-orange); }
.workflow-canvas {
    position: relative; height: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,109,0,0.06);
    border-radius: var(--radius-md); overflow: hidden;
    background-image: radial-gradient(circle, rgba(255,109,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}
.canvas-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.canvas-svg line { stroke: var(--neon-orange); stroke-width: 2; opacity: 0.6; }
.canvas-nodes { position: absolute; inset: 0; z-index: 2; }
.canvas-node {
    position: absolute; min-width: 140px; padding: 12px 16px;
    background: var(--bg-card); border: 2px solid rgba(255,109,0,0.2);
    border-radius: var(--radius-sm); cursor: grab;
    transition: box-shadow 0.2s; user-select: none;
}
.canvas-node:hover, .canvas-node.selected { border-color: var(--neon-orange); box-shadow: var(--shadow-glow-orange); }
.canvas-node .cn-icon { font-size: 18px; margin-bottom: 4px; }
.canvas-node .cn-label { font-size: 13px; font-weight: 600; }
.canvas-node .cn-type { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.canvas-node .cn-port {
    position: absolute; width: 10px; height: 10px;
    background: var(--neon-orange); border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.canvas-node .cn-port-in { left: -5px; top: 50%; transform: translateY(-50%); }
.canvas-node .cn-port-out { right: -5px; top: 50%; transform: translateY(-50%); }
.canvas-empty {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; z-index: 0;
}
.canvas-empty p { color: var(--text-muted); font-size: 16px; }
.canvas-hint { font-size: 13px !important; margin-top: 8px; }

/* === CAPSTONE === */
.capstone-container { max-width: 600px; }
.capstone-header { margin-bottom: 32px; }
.capstone-header h2 { font-size: 24px; margin-bottom: 8px; }
.capstone-header p { color: var(--text-secondary); }
.capstone-locked { text-align: center; padding: 48px 24px; background: var(--bg-card); border-radius: var(--radius-md); }
.lock-icon { font-size: 48px; margin-bottom: 16px; }
.capstone-locked h3 { font-size: 18px; margin-bottom: 8px; }
.capstone-locked p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.capstone-progress-bar { height: 6px; background: rgba(255,109,0,0.1); border-radius: 3px; overflow: hidden; max-width: 300px; margin: 0 auto; }
.capstone-bar-fill { height: 100%; background: var(--gradient-fire); border-radius: 3px; transition: width 0.5s; }
.capstone-unlocked { padding: 32px; background: var(--bg-card); border: 2px solid rgba(76,175,80,0.3); border-radius: var(--radius-md); }
.capstone-unlocked h3 { margin-bottom: 24px; }
.capstone-unlocked .form-group { margin-bottom: 20px; }

/* === MODAL === */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-content {
    position: relative; max-width: 700px; width: 100%; max-height: 85vh;
    background: var(--bg-card); border: 1px solid rgba(255,109,0,0.1);
    border-radius: var(--radius-lg); padding: 40px; overflow-y: auto;
}
.modal-sm { max-width: 440px; }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--text-muted);
    font-size: 20px; cursor: pointer; transition: var(--transition);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

/* Module Detail */
.module-detail-header { margin-bottom: 24px; }
.module-detail-header .md-number { font-size: 12px; font-weight: 700; color: var(--neon-orange); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.module-detail-header h2 { font-size: 22px; margin-bottom: 8px; }
.module-detail-header p { color: var(--text-secondary); font-size: 14px; }
.lesson-list { margin-bottom: 24px; }
.lesson-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; margin-bottom: 4px;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition);
}
.lesson-item:hover { background: rgba(255,109,0,0.05); }
.lesson-item.completed { opacity: 0.6; }
.lesson-check {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid rgba(255,109,0,0.2); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 12px; transition: var(--transition);
}
.lesson-item.completed .lesson-check { background: #4CAF50; border-color: #4CAF50; color: #fff; }
.lesson-text { font-size: 14px; }
.lesson-num { color: var(--text-muted); font-size: 12px; margin-right: 4px; }
.quiz-section {
    background: rgba(255,109,0,0.05); border: 1px solid rgba(255,109,0,0.1);
    border-radius: var(--radius-md); padding: 24px; margin-top: 24px;
}
.quiz-section h3 { font-size: 16px; margin-bottom: 16px; }
.quiz-question { margin-bottom: 20px; }
.quiz-question p { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.quiz-option {
    display: block; width: 100%; text-align: left;
    padding: 10px 16px; margin-bottom: 6px;
    background: var(--bg-card); border: 1px solid rgba(255,109,0,0.08);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; cursor: pointer; transition: var(--transition);
}
.quiz-option:hover { border-color: var(--neon-orange); }
.quiz-option.correct { background: rgba(76,175,80,0.15); border-color: #4CAF50; color: #4CAF50; }
.quiz-option.wrong { background: rgba(255,23,68,0.1); border-color: var(--neon-red); color: var(--neon-red); }
.quiz-result { margin-top: 20px; padding: 16px; border-radius: var(--radius-sm); text-align: center; font-weight: 600; }
.quiz-result.pass { background: rgba(76,175,80,0.1); color: #4CAF50; }
.quiz-result.fail { background: rgba(255,23,68,0.1); color: var(--neon-red); }

/* === PAYWALL === */
.paywall-body { text-align: center; }
.paywall-icon { font-size: 48px; margin-bottom: 16px; }
.paywall-body h2 { font-size: 22px; margin-bottom: 8px; }
.paywall-body > p { color: var(--text-secondary); margin-bottom: 24px; }
.paywall-features { text-align: left; margin-bottom: 24px; }
.paywall-features li { padding: 6px 0; font-size: 14px; color: var(--text-secondary); }
.paywall-note { color: var(--text-muted); font-size: 12px; margin-top: 16px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .dash-layout { flex-direction: column; }
    .dash-sidebar { width: 100%; min-width: 100%; height: auto; position: relative; top: 0; }
    .hero-stats { gap: 16px; }
    .stat-divider { display: none; }
    .hero-title { font-size: 28px; }
    .tab-nav { overflow-x: auto; }
    .modules-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .curriculum-tracks { grid-template-columns: 1fr; }
    .dash-nav-right { gap: 8px; }
    .user-greeting { display: none; }
    .auth-card { padding: 28px 20px; }
    .pricing-card { padding: 40px 24px; }
    .modal-content { padding: 24px; }
}
