/* ========================================
   JobDeutsch – Berufssprachkurs Website
   Modern, professionell, didaktisch
   ======================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --teal: #14b8a6;
    --teal-dark: #0d9488;
    --teal-light: #ccfbf1;
    --navy: #1e3a5f;
    --navy-light: #e0f2fe;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 28px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-teal {
    background: linear-gradient(135deg, var(--teal-light) 0%, #f0fdfa 100%);
}

.section-navy {
    background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
    color: var(--gray-200);
}

.section-navy .section-title,
.section-navy .section-lead,
.section-navy h3,
.section-navy h4 {
    color: var(--white);
}

.section-navy .section-desc {
    color: var(--gray-400);
}

.section-navy .feature-list li > div strong {
    color: var(--white);
}

.section-navy .feature-list li > div p {
    color: var(--gray-400);
}

.section-navy .list-icon {
    background: rgba(255,255,255,0.1);
}

.section-header {
    margin-bottom: 64px;
}

.section-header.center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-navy .section-badge {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.6;
}

.section-lead {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.section-cta {
    margin-top: 48px;
}

.section-cta.center {
    text-align: center;
}

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

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37,99,235,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14,184,196,0.06) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--gray-800);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.app-preview {
    position: relative;
    width: 320px;
}

.app-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 6s ease-in-out infinite;
}

.app-card:nth-child(2) { animation-delay: -2s; }
.app-card:nth-child(3) { animation-delay: -4s; }

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

.card-green { border-left: 4px solid var(--success); }
.card-yellow { border-left: 4px solid var(--warning); }
.card-red { border-left: 4px solid var(--danger); }

.app-card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.app-card-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.app-card-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-left: auto;
    text-align: right;
}

.qr-badge {
    position: absolute;
    bottom: -20px;
    right: -30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: float 5s ease-in-out infinite;
    animation-delay: -1s;
}

.qr-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.qr-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

/* ========================================
   FEATURES GRID
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ========================================
   TWO COLUMN LAYOUT
   ======================================== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.col-content {
    max-width: 540px;
}

.col-visual {
    display: flex;
    justify-content: center;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.list-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-size: 18px;
    flex-shrink: 0;
}

.feature-list li > div strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.feature-list li > div p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.highlight-box {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
    color: var(--gray-700);
    margin-bottom: 32px;
}

.highlight-box strong {
    color: var(--gray-800);
}

/* Teacher Dashboard Preview */
.teacher-dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
}

.dash-title {
    font-weight: 600;
    font-size: 15px;
}

.dash-status {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
}

.dashboard-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
}

.dash-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.dash-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, var(--success) 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.qr-placeholder {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.qr-pattern {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    background: 
        repeating-linear-gradient(0deg, var(--gray-300) 0, var(--gray-300) 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(90deg, var(--gray-300) 0, var(--gray-300) 4px, transparent 4px, transparent 8px);
    border-radius: var(--radius-sm);
}

/* Phone Preview */
.learner-app-preview {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    background: var(--gray-800);
    border-radius: 32px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.phone-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 11px;
    color: var(--gray-400);
}

.phone-body {
    background: var(--gray-50);
    border-radius: 24px;
    padding: 20px;
    min-height: 380px;
}

.phone-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.phone-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.phone-badge {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
}

.phone-points {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.phone-word {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 8px;
}

.phone-synonyms {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 20px;
}

.phone-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-btn {
    padding: 12px;
    border-radius: var(--radius);
    border: none;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-know {
    background: var(--success-light);
    color: var(--success);
}

.btn-dont {
    background: var(--danger-light);
    color: var(--danger);
}

.phone-traffic {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.traffic-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gray-300);
}

.traffic-dot.green.active { background: var(--success); box-shadow: 0 0 8px rgba(16,185,129,0.4); }
.traffic-dot.yellow.active { background: var(--warning); box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.traffic-dot.red { background: var(--danger); box-shadow: 0 0 8px rgba(239,68,68,0.4); }

/* Exam Preview */
.exam-preview {
    width: 100%;
    max-width: 440px;
}

.exam-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.exam-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.exam-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
}

.exam-timer {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 600;
}

.exam-question {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.6;
}

.exam-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.dialog-bubble {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
}

.dialog-ai {
    background: var(--primary-light);
    color: var(--gray-700);
    border-radius: var(--radius) var(--radius) var(--radius) 4px;
}

.dialog-user {
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: var(--radius) var(--radius) 4px var(--radius);
    align-self: flex-end;
}

.dialog-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-500);
}

.dialog-placeholder {
    font-style: italic;
}

.dialog-controls {
    display: flex;
    gap: 10px;
}

.dialog-btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.exam-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exam-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.exam-progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
}

.exam-progress span {
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
}

/* ========================================
   TABS
   ======================================== */
.tabs {
    margin-top: 48px;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.tab-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.tab-text p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tab-text ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.tab-text ul li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

.tab-text ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.highlight-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 12px 16px;
    border-radius: var(--radius);
    display: inline-block;
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    padding: 6px 14px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
}

/* Tab Visuals */
.flashcard-demo, .vocab-table-demo, .progress-demo, .qr-flow,
.calendar-demo, .audio-demo, .dialog-demo, .games-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flashcard {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    text-align: center;
    border: 2px solid var(--primary-light);
    width: 100%;
    max-width: 320px;
}

.flash-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
}

.flash-word {
    font-size: 28px;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.flash-word strong {
    color: var(--primary);
}

.flash-hint {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.flash-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.vocab-table-demo table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.vocab-table-demo th {
    background: var(--gray-800);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.vocab-table-demo td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.vocab-table-demo tr:last-child td {
    border-bottom: none;
}

.note-icon {
    font-size: 16px;
    cursor: pointer;
}

.progress-chart {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 320px;
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-600);
}

.chart-bar .bar-fill {
    height: 20px;
    border-radius: 10px;
    min-width: 40px;
}

.bar-fill.green { background: linear-gradient(90deg, var(--success), #34d399); }
.bar-fill.yellow { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.bar-fill.red { background: linear-gradient(90deg, var(--danger), #f87171); }

.chart-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.qr-flow {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-step {
    text-align: center;
}

.qr-step-icon {
    font-size: 40px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 8px;
}

.qr-step-icon.qr-big {
    font-size: 48px;
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.qr-step-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    max-width: 100px;
}

.qr-arrow {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.calendar-demo {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 300px;
}

.cal-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 16px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.cal-day {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 6px;
}

.cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    position: relative;
}

.cal-cell.has-event {
    background: var(--gray-100);
    font-weight: 600;
}

.cal-cell.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.event-dot {
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.event-dot.green { background: var(--success); }
.event-dot.yellow { background: var(--warning); }
.event-dot.red { background: var(--danger); }

.audio-demo {
    width: 100%;
    max-width: 320px;
}

.audio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
}

.audio-word {
    font-size: 22px;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.audio-translation {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.audio-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.audio-btn {
    padding: 10px 16px;
    border: 2px solid var(--primary-light);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.audio-btn:hover {
    background: var(--primary-light);
}

.audio-wave {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 30px;
    align-items: flex-end;
}

.audio-wave span {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { height: 60%; animation-delay: 0.15s; }
.audio-wave span:nth-child(6) { height: 90%; animation-delay: 0.25s; }
.audio-wave span:nth-child(7) { height: 45%; animation-delay: 0.05s; }
.audio-wave span:nth-child(8) { height: 75%; animation-delay: 0.35s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1); }
}

.dialog-demo {
    width: 100%;
    max-width: 360px;
}

.dialog-scenario {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    width: 100%;
}

.scenario-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}

.ai-bubble {
    background: var(--teal-light);
    border-radius: var(--radius) var(--radius) var(--radius) 4px;
    color: var(--gray-700);
}

.user-bubble {
    background: var(--gray-100);
    border-radius: var(--radius) var(--radius) 4px var(--radius);
    align-self: flex-end;
    color: var(--gray-600);
}

.games-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 280px;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.game-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.game-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.traffic-inline {
    font-size: 20px;
    vertical-align: middle;
}

.traffic-inline.red { color: var(--danger); }
.traffic-inline.yellow { color: var(--warning); }
.traffic-inline.green { color: var(--success); }

/* ========================================
   MODULE GRID
   ======================================== */
.module-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.module-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.module-card.hidden {
    display: none;
}

.module-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.module-level {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--success);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
}

.module-level.level-b2 {
    background: var(--primary);
}

.module-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
    padding-right: 50px;
}

.module-goal {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.5;
}

.module-skills {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.module-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* ========================================
   COMMUNITY / FORUM
   ======================================== */
.forum-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.forum-cat {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.forum-cat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.forum-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.forum-cat h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.forum-cat p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Duel Section */
.duel-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.duel-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.duel-content > p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.duel-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duel-features li {
    font-size: 15px;
    color: var(--gray-700);
}

.duel-leaderboard {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.lb-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.lb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--gray-50);
    font-size: 14px;
}

.lb-item.lb-top {
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--white) 100%);
    border: 1px solid var(--accent-light);
}

.lb-rank {
    font-size: 18px;
    width: 32px;
    text-align: center;
}

.lb-name {
    flex: 1;
    font-weight: 600;
    color: var(--gray-700);
}

.lb-score {
    font-weight: 700;
    color: var(--accent);
}

/* ========================================
   PRICING
   ======================================== */
.section-pricing {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-card.pricing-highlight {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(37,99,235,0.12);
    transform: scale(1.02);
}

.pricing-card.pricing-highlight:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-free {
    background: var(--success);
    color: var(--white);
}

.pricing-popular {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.pricing-teacher {
    background: var(--teal);
    color: var(--white);
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    text-align: center;
}

.pricing-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    line-height: 1;
}

.pricing-period {
    font-size: 14px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 4px;
}

.pricing-equiv {
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 24px;
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    padding-left: 4px;
}

.points-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.points-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.points-section > p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.points-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.point-item {
    text-align: center;
}

.point-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.point-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.point-reward {
    font-size: 14px;
    color: var(--gray-500);
}

/* ========================================
   NEWSLETTER CTA
   ======================================== */
.section-cta-block {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    padding: 56px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box > p {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: var(--gray-500);
}

.newsletter-input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
}

.form-note {
    font-size: 13px;
    color: var(--gray-500);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand > p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    font-size: 22px;
    padding: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-note {
    font-size: 12px;
    color: var(--gray-500);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .two-col.reverse {
        direction: ltr;
    }
    
    .col-content {
        max-width: 100%;
    }
    
    .col-visual {
        order: -1;
    }
    
    .tab-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forum-categories {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .duel-section {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card.pricing-highlight {
        transform: none;
    }
    
    .pricing-card.pricing-highlight:hover {
        transform: translateY(-4px);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-desktop-extras {
        display: none !important;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-buttons {
        gap: 6px;
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .tab-inner {
        padding: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .qr-flow {
        flex-direction: column;
    }
    
    .qr-arrow {
        transform: rotate(90deg);
    }
    
    .cta-box {
        padding: 36px 24px;
    }
    
    .cta-box h2 {
        font-size: 24px;
    }
    
    .games-demo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .app-preview {
        width: 100%;
        max-width: 280px;
    }
    
    .qr-badge {
        display: none;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .forum-categories {
        grid-template-columns: 1fr;
    }
    
    .duel-leaderboard {
        padding: 20px;
    }
    
    .points-grid {
        flex-direction: column;
        gap: 24px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-cta,
    .section-cta,
    .newsletter-form,
    .footer {
        display: none !important;
    }
    
    .section {
        padding: 24px 0;
        page-break-inside: avoid;
    }
}

/* ========================================
   AUTH MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-400);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 32px;
    margin-top: 16px;
}

.modal-tab {
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -1px;
}

.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.modal-tab:hover {
    color: var(--gray-700);
}

.auth-form {
    display: none;
    padding: 28px 32px 32px;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-error {
    color: var(--danger);
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}

.role-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
}

.role-option:hover {
    border-color: var(--primary);
}

.role-option input {
    width: auto;
    accent-color: var(--primary);
}

.role-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ========================================
   USER MENU
   ======================================== */
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-toggle:hover {
    background: #bfdbfe;
}

.points-badge {
    background: var(--accent);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
}

.user-menu {
    position: absolute;
    top: 72px;
    right: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 220px;
    z-index: 999;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.user-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
}

.user-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* ========================================
   MODULE LOADING & LOCK STATE
   ======================================== */
.loading-modules {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--gray-500);
    font-size: 16px;
}

.module-lock {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 18px;
    opacity: 0.7;
}

.module-user-progress {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-user-progress .progress-bar {
    flex: 1;
    margin-top: 0;
}

.module-user-progress span {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* ========================================
   AUTH-REQUIRED BUTTON STATES
   ======================================== */
.auth-required:hover {
    position: relative;
}

/* ========================================
   FORM SELECT STYLING
   ======================================== */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px !important;
}

/* ========================================
   RESPONSIVE MODAL
   ======================================== */
@media (max-width: 768px) {
    .modal {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        animation: modalSlideUp 0.3s ease;
    }
    
    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .role-select {
        grid-template-columns: 1fr;
    }
    
    .user-menu {
        right: 12px;
        left: 12px;
        top: 68px;
    }
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */
.module-card.hidden {
    display: none;
}

/* QR Code Flow responsive */
@media (max-width: 768px) {
    .qr-flow {
        flex-direction: column;
    }
    
    .qr-arrow {
        transform: rotate(90deg);
    }
}

/* Enhanced feature cards hover */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

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

/* Enhanced pricing cards */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.pricing-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Smooth page transitions */
.section {
    position: relative;
}

/* Better scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
