/* Design System Tokens */
:root {
    --bg-primary: hsl(222, 25%, 8%);
    --bg-secondary: hsl(222, 24%, 12%);
    --bg-tertiary: hsl(222, 22%, 18%);
    --glass-bg: rgba(13, 20, 38, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    
    --text-primary: hsl(210, 38%, 95%);
    --text-secondary: hsl(215, 20%, 72%);
    --text-muted: hsl(215, 15%, 52%);
    
    --accent-blue: hsl(210, 100%, 55%);
    --accent-violet: hsl(263, 85%, 64%);
    --accent-cyan: hsl(186, 100%, 48%);
    --accent-green: hsl(145, 80%, 48%);
    --accent-pink: hsl(330, 85%, 60%);
    --accent-yellow: hsl(45, 90%, 55%);
    --accent-red: hsl(0, 85%, 60%);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', Consolas, Monaco, monospace;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(114, 46, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.dark-theme {
    background-image: 
        radial-gradient(at 0% 0%, hsla(263, 85%, 64%, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(186, 100%, 48%, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-violet);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--accent-blue);
}

/* Layout Utilities */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: var(--transition-smooth);
}
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hidden {
    display: none !important;
}

/* Header & Navigation */
.app-header {
    background: rgba(13, 20, 38, 0.6);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--accent-violet);
    filter: drop-shadow(0 0 8px rgba(114, 46, 255, 0.4));
}

.highlight {
    color: var(--accent-cyan);
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--glass-highlight);
    border-color: var(--glass-border);
}

.nav-btn.active {
    color: var(--text-primary);
    background: rgba(114, 46, 255, 0.15);
    border-color: rgba(114, 46, 255, 0.3);
    box-shadow: 0 0 15px rgba(114, 46, 255, 0.1);
}

.progress-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.badge-label {
    color: var(--text-muted);
}

.badge-percentage {
    color: var(--accent-green);
    font-weight: 700;
}

/* Main Content */
.app-main-content {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
    min-height: calc(100vh - 240px);
}

.main-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.section-header-card {
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out;
}

.section-header-card h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.section-header-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
}

/* Tabs Animation */
.tab-pane {
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* TAB 1: SIMULATOR */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .simulator-layout {
        grid-template-columns: 1fr;
    }
}

.simulator-controls h3, .simulator-viz h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.panel-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.command-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-smooth);
}

.action-btn:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--accent-violet);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(114, 46, 255, 0.1);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(13, 20, 38, 0.2);
}

.action-btn .cmd-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-cyan);
}

.action-btn .cmd-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.reset-btn {
    background: transparent;
    border: 1px dashed var(--accent-red);
    color: var(--accent-red);
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px;
}

.reset-btn:hover {
    background: rgba(255, 65, 108, 0.08) !important;
    border-style: solid;
    transform: none !important;
}

/* Console Box */
.console-box {
    background: #090d16;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.console-header {
    background: #111827;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}
.dot.red { background-color: var(--accent-red); }
.dot.yellow { background-color: var(--accent-yellow); }
.dot.green { background-color: var(--accent-green); }

.console-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.console-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    min-height: 140px;
    max-height: 200px;
    overflow-y: auto;
    color: #e5e7eb;
}

.console-body .line {
    margin-bottom: 6px;
    white-space: pre-wrap;
}

.console-body .line.comment {
    color: var(--text-muted);
}

.console-body .line.prompt {
    color: var(--accent-cyan);
}

.console-body .line.success {
    color: var(--accent-green);
}

.console-body .line.error {
    color: var(--accent-red);
}

.cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: var(--accent-cyan);
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

/* Pipeline Visualization */
.pipeline-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.pipeline-stage {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    transition: var(--transition-smooth);
}

.pipeline-stage.active {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--text-muted);
    transition: var(--transition-smooth);
}

.pipeline-stage.active .stage-dot {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.stage-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.stage-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.stage-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 42px;
    align-items: center;
}

.empty-placeholder {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
}

.file-node {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.file-node.staged {
    background: rgba(114, 46, 255, 0.1);
    border-color: rgba(114, 46, 255, 0.3);
    color: var(--accent-violet);
}

.file-node.committed {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--accent-green);
}

.file-node.pushed {
    background: rgba(255, 65, 108, 0.1);
    border-color: rgba(255, 65, 108, 0.3);
    color: var(--accent-pink);
}

.interactive-explainer {
    background: rgba(114, 46, 255, 0.05);
    border: 1px solid rgba(114, 46, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.inline-code {
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    color: var(--accent-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* TAB 2: VISUAL GUIDES */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

@media (max-width: 480px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

.guide-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.guide-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #090d16;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.guide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.guide-card:hover .guide-image {
    transform: scale(1.05);
}

.zoom-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(9, 13, 22, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-smooth);
}

.guide-card:hover .zoom-overlay {
    opacity: 1;
}

.guide-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guide-tag {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.guide-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.guide-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px;
    width: 100%;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.read-btn:hover {
    background: rgba(114, 46, 255, 0.15);
    border-color: var(--accent-violet);
}

/* TAB 3: BEST PRACTICES */
.practices-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .practices-layout {
        grid-template-columns: 1fr;
    }
}

.practices-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.practice-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-bubble.cyan {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.icon-bubble.violet {
    background: rgba(114, 46, 255, 0.1);
    color: var(--accent-violet);
    border: 1px solid rgba(114, 46, 255, 0.2);
}

.icon-bubble.pink {
    background: rgba(255, 65, 108, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 65, 108, 0.2);
}

.item-content h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.item-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Cheat Sheet Column */
.practices-cheatsheet h3 {
    margin-bottom: 4px;
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
}

.cheatsheet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.cheat-card {
    background: rgba(13, 20, 38, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-fast);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.cheat-card:hover {
    background: rgba(13, 20, 38, 0.5);
    border-color: var(--glass-border);
}

.cheat-card .cheat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cheat-card .cheat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cheat-card .cheat-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.cheat-card .cheat-copy-btn:hover {
    color: var(--accent-cyan);
}

.cheat-card .cheat-code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: #090d16;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-violet);
    word-break: break-all;
}

/* TAB 4: QUIZ */
.quiz-container {
    max-width: 680px;
    margin: 0 auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-start-screen {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.quiz-badge-preview {
    color: var(--accent-violet);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 15px rgba(114, 46, 255, 0.3));
    margin-bottom: 10px;
}

.badge-icon {
    width: 100%;
    height: 100%;
}

.badge-icon.animated {
    animation: float 3s ease-in-out infinite;
}

.start-quiz-btn, .retry-quiz-btn {
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-blue) 100%);
    border: none;
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(114, 46, 255, 0.3);
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.start-quiz-btn:hover, .retry-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 46, 255, 0.5);
}

/* Active Quiz View */
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 24px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.quiz-header-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.question-container {
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.35rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

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

.option-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover:not(.locked) {
    background: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.15);
}

.option-btn.correct {
    background: rgba(0, 230, 118, 0.08) !important;
    border-color: var(--accent-green) !important;
    color: var(--accent-green) !important;
}

.option-btn.incorrect {
    background: rgba(255, 65, 108, 0.08) !important;
    border-color: var(--accent-red) !important;
    color: var(--accent-red) !important;
}

.option-btn.locked {
    cursor: not-allowed;
}

.next-question-btn {
    align-self: flex-end;
    background: var(--text-primary);
    border: none;
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.next-question-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

/* Quiz Result Screen */
.quiz-result-screen {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.result-icon-container {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.badge-earned-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.4));
    animation: scalePulse 2s ease-in-out infinite;
}

.result-score-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin: 8px 0;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-inner {
    padding: 10px;
}

.modal-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--accent-cyan);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.modal-inner h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.modal-inner p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.modal-inner ol, .modal-inner ul {
    margin-left: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-inner li {
    margin-bottom: 6px;
}

/* Fullscreen image viewer */
.image-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.full-screen-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.image-caption {
    margin-top: 14px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
.app-footer {
    border-top: 1px solid var(--glass-border);
    background: #090d16;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes blink {
    50% { opacity: 0; }
}

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

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-scale {
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
