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

/* User menu — top right of lab */
#user-menu {
    position: fixed !important;
    top: 10px !important;
    right: 14px !important;
    z-index: 10000 !important;
}

.user-menu-signin-btn {
    background: transparent !important;
    border: 1px solid rgba(0, 255, 213, 0.3) !important;
    color: var(--cyan) !important;
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.user-menu-button {
    background: transparent !important;
    border: 1px solid rgba(0, 255, 213, 0.25) !important;
    color: var(--cyan) !important;
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    gap: 5px !important;
}

.user-menu-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
    background: rgba(0, 255, 213, 0.15) !important;
    color: var(--cyan) !important;
    border: 1px solid rgba(0, 255, 213, 0.3) !important;
}

.user-menu-dropdown {
    background: rgba(5, 8, 18, 0.98) !important;
    border: 1px solid rgba(0, 255, 213, 0.2) !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.user-menu-header {
    border-bottom-color: rgba(0, 255, 213, 0.15) !important;
}

.user-menu-name {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: var(--cyan) !important;
}

.user-menu-email {
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
}

.user-menu-link {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
}

.user-menu-link:hover {
    background: rgba(0, 255, 213, 0.06) !important;
    color: var(--cyan) !important;
}

.user-menu-divider {
    border-top-color: rgba(0, 255, 213, 0.15) !important;
}

.user-menu-logout {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
}

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --cyan: #00ffd5;
    --purple: #6a00ff;
    --accent: #00ff88;
    --nmap-green: #00ff88;
    --bg: #03040a;
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --panel: #071028;
    --text-primary: #e6f7ff;
    --text-light: #e0e0e0;
    --text-muted: #9fb3c6;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4444;
    --border: rgba(0, 255, 213, 0.15);
}

html,
body {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 255, 136, 0.03), transparent 15%),
        radial-gradient(circle at 80% 80%, rgba(106, 0, 255, 0.03), transparent 15%),
        var(--bg-darker);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.lab-container {
    display: flex;
    height: 100vh;
    gap: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-dark) 100%);
    border-right: 1px solid var(--border);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lab-header h1 {
    font-size: 24px;
    background: linear-gradient(135deg, var(--nmap-green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.lab-header .subtitle {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-section h3,
.stats-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nmap-green), var(--cyan));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
}

.stats-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--nmap-green);
}

/* ===== MAIN CONTENT ===== */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chapter Select */
.chapter-select {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.chapter-select h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--nmap-green);
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.chapter-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 213, 0.05));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.chapter-card:hover {
    border-color: var(--nmap-green);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.chapter-card:hover::before {
    left: 100%;
}

.chapter-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.chapter-number {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.chapter-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--nmap-green);
}

.chapter-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.chapter-meta-card {
    display: flex;
    gap: 8px;
    font-size: 11px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.badge.difficulty {
    color: var(--warning);
    background: rgba(255, 170, 0, 0.2);
}

.chapter-card.completed::after {
    content: '\2713';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hide sidebar when chapter is active */
.lab-container.chapter-active .sidebar {
    display: none;
}

/* Active Chapter — fills full viewport */
.active-chapter {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.initially-hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.back-btn:hover {
    transform: translateX(-4px);
}

.sidebar-back-btn {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.sidebar-back-btn:hover {
    color: var(--nmap-green);
}

.chapter-header h2 {
    flex: 1;
    font-size: 22px;
    color: var(--nmap-green);
}

.chapter-meta {
    display: flex;
    gap: 12px;
}

.difficulty {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== TWO-COLUMN BODY ===== */
.chapter-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.chapter-left {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    min-width: 0;
}

.chapter-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    min-width: 0;
    min-height: 0;
}

/* ===== TERMINAL PANEL ===== */
.term-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.term-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.term-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.3s;
}

.term-status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
}

.term-status-dot.connecting {
    background: var(--warning);
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.term-session-info {
    font-size: 11px;
    color: var(--text-muted);
}

.term-session-info.warning {
    color: var(--warning);
}

.term-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0c0c0c;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

/* Lobby state — no session */
.term-lobby {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px 30px;
    text-align: center;
    gap: 20px;
}

.term-lobby-icon {
    font-size: 48px;
    opacity: 0.7;
}

.term-lobby h3 {
    font-size: 16px;
    color: var(--nmap-green);
    font-family: 'Courier New', monospace;
}

.term-lobby p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.term-lobby code {
    background: rgba(0, 255, 136, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--nmap-green);
    font-size: 12px;
}

.term-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--nmap-green), var(--cyan));
    color: #000;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25);
}

.term-launch-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.term-launch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.term-launch-status {
    font-size: 12px;
    color: var(--text-muted);
}

/* Connected state — terminal iframe */
.term-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #0c0c0c;
}

.term-disconnect-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(5, 8, 18, 0.85);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--danger);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.term-disconnect-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--danger);
}

/* ===== BOTTOM BAR ===== */
.bottom-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 13px;
}

.bottom-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.bottom-bar-title strong {
    background: linear-gradient(135deg, var(--nmap-green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bottom-bar-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-bar-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 300px;
}

.bottom-bar-progress .progress-bar {
    flex: 1;
}

.bottom-bar-progress .progress-text {
    white-space: nowrap;
}

.bottom-bar-stats {
    color: var(--text-muted);
    white-space: nowrap;
}

.bottom-bar-stats strong {
    color: var(--nmap-green);
}

/* ===== EXPLANATION SECTION ===== */
.explanation {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--nmap-green);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.explanation h3 {
    color: var(--nmap-green);
    margin-bottom: 12px;
}

.explanation p {
    margin-bottom: 12px;
}

.explanation code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--nmap-green);
}

.explanation ul,
.explanation ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.explanation li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.explanation .tool-highlight {
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.explanation .tool-highlight strong {
    color: var(--nmap-green);
}

.explanation .callout {
    background: rgba(0, 255, 213, 0.06);
    border-left: 3px solid var(--cyan);
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: 13px;
}

.explanation .warning-callout {
    background: rgba(255, 170, 0, 0.06);
    border-left: 3px solid var(--warning);
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: 13px;
}

/* ===== CHALLENGE / QUIZ SECTION ===== */
.challenge-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 213, 0.05));
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.challenge-section h3 {
    color: var(--accent);
    margin-bottom: 8px;
}

.explore-task {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(0, 255, 136, 0.06);
    border: 1px dashed rgba(0, 255, 136, 0.25);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
}

.explore-task::before {
    content: '\1F50D ';
}

.explore-task code {
    background: rgba(0, 255, 136, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--nmap-green);
    font-size: 12px;
}

.quiz-question {
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--text-light);
}

.quiz-option:hover {
    background: rgba(0, 255, 136, 0.06);
    border-color: rgba(0, 255, 136, 0.3);
}

.quiz-option.selected {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--nmap-green);
    color: var(--text-primary);
}

.quiz-option.correct {
    background: rgba(0, 255, 136, 0.12);
    border-color: var(--success);
    color: var(--success);
}

.quiz-option.incorrect {
    background: rgba(255, 68, 68, 0.08);
    border-color: var(--danger);
    color: var(--danger);
    opacity: 0.7;
}

.quiz-option-letter {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.quiz-option.correct .quiz-option-letter {
    background: var(--success);
    color: var(--bg-darker);
}

.quiz-option.incorrect .quiz-option-letter {
    background: var(--danger);
    color: #fff;
}

.quiz-feedback {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback.correct {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success);
}

.quiz-feedback.incorrect {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--danger);
}

.challenge-status {
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.challenge-status.success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nmap-green), var(--cyan));
    color: var(--bg-darker);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chapter-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===== SUPER USER GATE ===== */
.tier-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 40px;
    background: var(--bg-darker);
}

.tier-gate-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.tier-gate h2 {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}

.tier-gate p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tier-gate-cta {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.tier-gate-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.35);
}

.tier-gate-back {
    display: block;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}

.tier-gate-back:hover {
    color: var(--nmap-green);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .lab-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        gap: 20px;
    }

    .chapter-select {
        padding: 20px;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chapter-meta {
        width: 100%;
    }

    .chapter-body {
        flex-direction: column;
    }

    .chapter-right {
        border-left: none;
        border-top: 1px solid var(--border);
        min-height: 300px;
    }

    .bottom-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ===== COMPLETION MODAL ===== */
.completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.completion-content {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    border: 2px solid var(--nmap-green);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
}

.completion-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.completion-content h2 {
    color: var(--nmap-green);
    font-size: 32px;
    margin-bottom: 15px;
}

.completion-message {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 30px;
}

.completion-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
}

.completion-stats .stat-item {
    flex: 1;
    background: rgba(0, 255, 136, 0.08);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--nmap-green);
}

.completion-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.completion-btn {
    background: linear-gradient(135deg, var(--nmap-green), var(--cyan));
    color: #000;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.completion-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .completion-content {
        padding: 30px 20px;
    }

    .completion-icon {
        font-size: 60px;
    }

    .completion-content h2 {
        font-size: 24px;
    }

    .completion-message {
        font-size: 16px;
    }

    .completion-stats {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .chapter-select {
        padding: 12px;
    }

    .chapter-header {
        padding: 10px 16px;
    }
}