/* ============================================================
   HYGIENESCHULUNG – Lebenshilfe Bad Kissingen
   Enhanced with Logo, Larger Icons, Module Illustrations
   ============================================================ */

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

:root {
    --primary: #0077B6;
    --primary-dark: #005f8f;
    --primary-light: #d4eef9;
    --primary-glow: rgba(0,119,182,.2);
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --success: #059669;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --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;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.06);
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
    --transition-bounce: 0.5s cubic-bezier(.34,1.56,.64,1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Logo Styles --- */
.logo-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.logo-img {
    height: 48px;
    width: auto;
}
.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.3px;
}
.header-logo-img {
    height: 32px;
    width: auto;
}
.header-logo-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.footer-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
    opacity: 0.6;
}

/* --- Canvases --- */
#particles-canvas, #confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
#particles-canvas { z-index: 0; }
#confetti-canvas { z-index: 1000; }

/* --- Screens --- */
.screen { display: none; min-height: 100vh; position: relative; z-index: 1; }
.screen.active { display: flex; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(rgba(255,255,255,.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled::after { display: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0096d6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,119,182,.3);
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 20px rgba(0,119,182,.4);
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255,255,255,.8);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover:not(:disabled) {
    background: #fff;
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}
.btn-success {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5,150,105,.3);
}
.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,150,105,.4);
}
.btn-lg { padding: 18px 44px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-glow { animation: btnGlow 3s ease-in-out infinite; }
.btn:disabled.btn-glow { animation: none; }
.btn-arrow { font-size: 1.1em; transition: transform var(--transition); }
.btn:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.btn-icon {
    background: rgba(255,255,255,.7);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gray-600);
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.btn-icon:hover { background: #fff; color: var(--primary); border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.btn-icon.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   WELCOME SCREEN
   ============================================================ */
#welcome-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(160deg, #e6f4fa 0%, #ecfdf5 40%, #fffbeb 80%, #fdf2f8 100%);
    padding: 24px;
}
.welcome-container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1s ease;
}

/* Hero Illustration */
.welcome-hero { margin-bottom: 24px; }
.hero-illustration {
    position: relative;
    width: 160px; height: 160px;
    margin: 0 auto 20px;
}
.hero-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}
.hero-circle-1 {
    width: 160px; height: 160px;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,119,182,.15), rgba(0,119,182,.05));
    animation-delay: 0s;
}
.hero-circle-2 {
    width: 120px; height: 120px;
    top: 20px; left: 20px;
    background: linear-gradient(135deg, rgba(0,119,182,.2), rgba(5,150,105,.1));
    animation-delay: -2s;
}
.hero-circle-3 {
    width: 80px; height: 80px;
    top: 40px; left: 40px;
    background: linear-gradient(135deg, var(--primary), #0096d6);
    box-shadow: 0 8px 30px rgba(0,119,182,.35);
    animation-delay: -4s;
}
.hero-main-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #fff;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-light), #b3dff0);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}
.welcome-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.title-gradient {
    background: linear-gradient(135deg, #005f8f, var(--primary), #0096d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.welcome-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: var(--gray-600);
    font-weight: 500;
}
.welcome-subtitle i { color: var(--primary); }
.welcome-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.8;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.welcome-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.feature-card {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.6);
    padding: 22px 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition-bounce);
    animation: fadeInUp 0.6s ease both;
    animation-delay: var(--delay);
    cursor: default;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), #b3dff0);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-5deg); }
.feature-icon-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--success); }
.feature-icon-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: var(--warning); }
.feature-icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: var(--purple); }
.feature-text { font-size: 0.82rem; }
.feature-text strong { display: block; font-size: 0.95rem; color: var(--gray-800); margin-bottom: 2px; }
.feature-text span { color: var(--gray-500); }

/* Name Input */
.name-input-group {
    max-width: 440px;
    margin: 0 auto 24px;
    text-align: left;
}
.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: color var(--transition);
    z-index: 1;
}
.input-icon-wrap input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--gray-800);
    transition: all var(--transition);
    outline: none;
    background: rgba(255,255,255,.9);
}
.input-icon-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.input-icon-wrap:focus-within .input-icon { color: var(--primary); }
.input-icon-wrap input::placeholder { color: var(--gray-400); }
.input-hint {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.welcome-footer {
    font-size: 0.73rem;
    color: var(--gray-400);
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================================
   TRAINING SCREEN
   ============================================================ */
#training-screen {
    flex-direction: column;
    background: linear-gradient(180deg, var(--gray-50) 0%, #e6f4fa 100%);
}
.training-header {
    position: sticky;
    top: 0; z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,.6);
    gap: 16px;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-center { flex: 1; max-width: 400px; }
.header-right { display: flex; gap: 8px; flex-shrink: 0; }

/* Progress */
.progress-container { display: flex; align-items: center; gap: 12px; }
.progress-bar {
    flex: 1; height: 10px;
    background: var(--gray-200);
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #0096d6, var(--primary));
    background-size: 200% 100%;
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(.4,0,.2,1);
    width: 0;
    position: relative;
    animation: shimmer 3s ease-in-out infinite;
}
.progress-fill-quiz {
    background: linear-gradient(90deg, var(--purple), #a78bfa, var(--purple));
    background-size: 200% 100%;
}
.progress-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}
.progress-text { font-size: 0.75rem; color: var(--gray-500); white-space: nowrap; font-weight: 600; }

.training-content {
    flex: 1;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 130px;
}

/* ─── Module Hero Banner ─── */
.module-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 28px;
    padding: 36px 32px;
    min-height: 180px;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.5s ease;
}
.module-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary), #0096d6);
    z-index: 0;
}
.module-hero-content {
    position: relative; z-index: 2;
    color: #fff;
    flex: 1;
}
.module-hero .module-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(4px);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.module-hero .module-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.module-hero-icon {
    position: relative; z-index: 2;
    font-size: 5rem;
    color: rgba(255,255,255,.25);
    margin-left: 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}
.module-hero-deco {
    position: absolute; inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.deco-circle-1 { width: 200px; height: 200px; top: -60px; right: -40px; }
.deco-circle-2 { width: 120px; height: 120px; bottom: -30px; right: 60px; }
.deco-circle-3 { width: 80px; height: 80px; top: 20px; right: 180px; background: rgba(255,255,255,.05); }

/* Module hero color themes */
.module-hero[data-theme="green"] .module-hero-bg { background: linear-gradient(135deg, #059669, #10b981); }
.module-hero[data-theme="purple"] .module-hero-bg { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.module-hero[data-theme="amber"] .module-hero-bg { background: linear-gradient(135deg, #d97706, #f59e0b); }
.module-hero[data-theme="red"] .module-hero-bg { background: linear-gradient(135deg, #dc2626, #ef4444); }
.module-hero[data-theme="teal"] .module-hero-bg { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.module-hero[data-theme="indigo"] .module-hero-bg { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.module-hero[data-theme="rose"] .module-hero-bg { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.module-hero[data-theme="cyan"] .module-hero-bg { background: linear-gradient(135deg, #0891b2, #06b6d4); }

/* ─── Slide Content ─── */
.slide-content { animation: fadeInSlide 0.5s ease; }
.slide-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.slide-content h3 i { font-size: 1.4rem; color: var(--primary); }
.slide-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.75;
}
.slide-content ul, .slide-content ol {
    margin-bottom: 16px;
    padding-left: 0;
    list-style: none;
}
.slide-content li {
    position: relative;
    padding: 10px 0 10px 36px;
    color: var(--gray-700);
    line-height: 1.6;
    animation: slideInItem 0.4s ease both;
}
.slide-content li:nth-child(1) { animation-delay: .05s; }
.slide-content li:nth-child(2) { animation-delay: .1s; }
.slide-content li:nth-child(3) { animation-delay: .15s; }
.slide-content li:nth-child(4) { animation-delay: .2s; }
.slide-content li:nth-child(5) { animation-delay: .25s; }
.slide-content li:nth-child(6) { animation-delay: .3s; }
.slide-content li:nth-child(7) { animation-delay: .35s; }
.slide-content li:nth-child(8) { animation-delay: .4s; }
.slide-content li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0; top: 10px;
    color: var(--success);
    font-size: 1.1rem;
}

/* Content Cards */
.content-card {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.6);
    border-left: 5px solid var(--primary);
    animation: slideUp 0.5s ease both;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.content-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 70%);
    pointer-events: none;
}
.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.content-card.card-success { border-left-color: var(--success); }
.content-card.card-success::before { background: radial-gradient(circle at top right, rgba(5,150,105,.1), transparent 70%); }
.content-card.card-warning { border-left-color: var(--warning); }
.content-card.card-warning::before { background: radial-gradient(circle at top right, rgba(217,119,6,.1), transparent 70%); }
.content-card.card-danger { border-left-color: var(--danger); }
.content-card.card-danger::before { background: radial-gradient(circle at top right, rgba(220,38,38,.1), transparent 70%); }
.content-card.card-why { border-left-color: var(--primary); background: linear-gradient(135deg, var(--primary-light), rgba(255,255,255,.9)); }
.content-card.card-why::before { background: radial-gradient(circle at top right, rgba(0,119,182,.08), transparent 70%); }
.content-card.card-why h4 { color: var(--primary-dark); }

.content-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-800);
}
.content-card h4 i { font-size: 1.3rem; }

.slide-content .content-card:nth-child(1) { animation-delay: .05s; }
.slide-content .content-card:nth-child(2) { animation-delay: .15s; }
.slide-content .content-card:nth-child(3) { animation-delay: .25s; }
.slide-content .content-card:nth-child(4) { animation-delay: .35s; }

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, var(--primary-light), #b3dff0);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.92rem;
    color: var(--primary-dark);
    line-height: 1.7;
    border: 1px solid rgba(0,119,182,.1);
    animation: slideUp 0.5s ease both;
}
.info-box.info-warning { background: linear-gradient(135deg, #fef3c7, #fde68a40); color: #92400e; border-color: rgba(217,119,6,.15); }
.info-box.info-danger { background: linear-gradient(135deg, #fee2e2, #fca5a540); color: #991b1b; border-color: rgba(220,38,38,.15); }
.info-box.info-success { background: linear-gradient(135deg, #d1fae5, #a7f3d040); color: #065f46; border-color: rgba(5,150,105,.15); }
.info-box-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 1px; }
.info-box-icon i { font-size: 1.6rem; }

/* Steps */
.steps { counter-reset: step; }
.steps .step {
    position: relative;
    padding: 14px 0 14px 60px;
    color: var(--gray-700);
    animation: slideInItem 0.4s ease both;
}
.steps .step:nth-child(1) { animation-delay: .1s; }
.steps .step:nth-child(2) { animation-delay: .2s; }
.steps .step:nth-child(3) { animation-delay: .3s; }
.steps .step:nth-child(4) { animation-delay: .4s; }
.steps .step:nth-child(5) { animation-delay: .5s; }
.steps .step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: 10px;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), #0096d6);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0,119,182,.3);
}

/* Big number */
.big-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #0096d6);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    width: 110px; height: 110px;
    border-radius: 50%;
    margin: 0 auto 14px;
    box-shadow: 0 8px 30px rgba(0,119,182,.35);
    animation: pulseNumber 2s ease-in-out infinite;
    position: relative;
}
.big-number::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px dashed rgba(0,119,182,.25);
    animation: rotateRing 12s linear infinite;
}

/* Slide Nav */
.slide-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226,232,240,.6);
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.slide-dots { display: flex; gap: 8px; align-items: center; }
.slide-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all var(--transition-bounce);
}
.slide-dot.active {
    background: linear-gradient(135deg, var(--primary), #0096d6);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--primary-glow);
}
.slide-dot.completed { background: var(--success); }

/* ============================================================
   QUIZ SCREEN
   ============================================================ */
#quiz-screen {
    flex-direction: column;
    background: linear-gradient(160deg, #f5f3ff 0%, #eef2ff 50%, #ecfdf5 100%);
}
.quiz-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.quiz-card {
    max-width: 720px;
    width: 100%;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.6);
}
.quiz-card-decoration {
    position: absolute;
    top: 0; right: 0;
    width: 220px; height: 220px;
    background: radial-gradient(circle at top right, rgba(124,58,237,.07), transparent 70%);
    pointer-events: none;
}
.quiz-question-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quiz-question-number i { font-size: 1.2rem; }
.quiz-question {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 30px;
    line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
    color: var(--gray-700);
    background: rgba(255,255,255,.7);
}
.quiz-option:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.quiz-option .option-letter {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all var(--transition);
}
.quiz-option:hover:not(.disabled) .option-letter {
    background: linear-gradient(135deg, var(--primary), #0096d6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,119,182,.3);
}
.quiz-option.correct {
    border-color: var(--success);
    background: var(--success-light);
    animation: correctPop 0.4s ease;
}
.quiz-option.correct .option-letter {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: #fff;
}
.quiz-option.incorrect {
    border-color: var(--danger);
    background: var(--danger-light);
    animation: shake 0.5s ease;
}
.quiz-option.incorrect .option-letter {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    color: #fff;
}
.quiz-option.disabled { cursor: default; opacity: 0.6; }
.quiz-option.disabled.correct { opacity: 1; }

.quiz-feedback {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: 0.92rem;
    line-height: 1.7;
    animation: fadeInUp 0.3s ease;
}
.quiz-feedback.feedback-correct {
    background: linear-gradient(135deg, #d1fae5, #a7f3d040);
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.quiz-feedback.feedback-incorrect {
    background: linear-gradient(135deg, #fee2e2, #fca5a540);
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.quiz-feedback i { margin-right: 4px; }
.quiz-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-600);
    background: rgba(255,255,255,.8);
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 6px;
}
.quiz-score i { color: var(--success); }

/* ============================================================
   RESULTS SCREEN
   ============================================================ */
#results-screen {
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: linear-gradient(160deg, #e6f4fa 0%, #ecfdf5 40%, #fffbeb 80%, #fdf2f8 100%);
}
.results-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 10;
}
.results-icon { font-size: 5.5rem; margin-bottom: 16px; animation: bounceIn 0.8s ease; }
.results-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.results-title.title-pass {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.results-title.title-fail { color: var(--gray-700); }
.results-message {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.results-score-card {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 32px;
    text-align: left;
    border: 1px solid rgba(255,255,255,.6);
}
.score-circle {
    position: relative;
    width: 140px; height: 140px;
    flex-shrink: 0;
}
.score-circle svg { transform: rotate(-90deg); }
.score-bg { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.score-ring {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(0 0 8px rgba(0,119,182,.3));
}
.score-ring.success { stroke: var(--success); filter: drop-shadow(0 0 8px rgba(5,150,105,.4)); }
.score-ring.fail { stroke: var(--danger); filter: drop-shadow(0 0 8px rgba(220,38,38,.3)); }
.score-percent {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
}
.score-details p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 6px; }
.score-required {
    font-size: 0.8rem !important;
    color: var(--gray-400) !important;
    display: flex; align-items: center; gap: 6px;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.results-footer {
    font-size: 0.73rem;
    color: var(--gray-400);
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInItem { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulseNumber {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0,119,182,.35); }
    50% { transform: scale(1.06); box-shadow: 0 12px 32px rgba(0,119,182,.45); }
}
@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes progressShine { 0% { left: -100%; } 60%, 100% { left: 200%; } }
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(0,119,182,.3); }
    50% { box-shadow: 0 4px 24px rgba(0,119,182,.5), 0 0 40px rgba(0,119,182,.15); }
}
@keyframes correctPop { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.08); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
    .welcome-title { font-size: 2rem; }
    .welcome-features { grid-template-columns: 1fr 1fr; }
    .training-content { padding: 16px 16px 110px; }
    .module-hero { padding: 24px 20px; min-height: 140px; }
    .module-hero .module-title { font-size: 1.3rem; }
    .module-hero-icon { font-size: 3.5rem; }
    .quiz-card { padding: 28px; border-radius: var(--radius-lg); }
    .quiz-question { font-size: 1.1rem; }
    .results-score-card { flex-direction: column; text-align: center; }
    .training-header { padding: 8px 16px; gap: 8px; }
    .header-logo-img { height: 24px; }
    .header-logo-text { display: none; }
    .slide-nav { padding: 12px 16px; }
    .logo-img { height: 36px; }
}

/* Info box on welcome screen */
.info-box-welcome {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 0 auto 24px;
    max-width: 540px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-700);
}
.info-box-welcome i.fa-circle-info {
    color: var(--primary);
    margin-right: 4px;
}

@media (max-width: 420px) {
    .welcome-title { font-size: 1.6rem; }
    .welcome-features { gap: 8px; }
    .feature-card { padding: 14px 10px; }
    .btn-lg { padding: 15px 30px; font-size: 1rem; }
    .hero-illustration { width: 120px; height: 120px; }
    .hero-main-icon { font-size: 2.5rem; }
}
