/* ================================================================
   ComputerBas Security Walkthrough — walkthrough.css
   ================================================================ */

/* ── Google Fonts loaded via <link> in HTML ── */

:root {
    --wt-bg:        #0d1117;
    --wt-surface:   #161b22;
    --wt-surface2:  #21262d;
    --wt-border:    rgba(255,255,255,0.08);
    --wt-text:      #e6edf3;
    --wt-muted:     #8b949e;
    --wt-accent:    #58a6ff;
    --wt-accent2:   #3fb950;
    --wt-danger:    #f85149;
    --wt-sidebar-w: 300px;
    --wt-topbar-h:  56px;
    --wt-radius:    10px;
    --wt-font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wt-mono:      'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--wt-font);
    background: var(--wt-bg);
    color: var(--wt-text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--wt-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Global Utilities ── */
.hidden          { display: none !important; }
body.no-scroll   { overflow: hidden; }

/* ── Code block: copy button ── */
.wt-pre-relative { position: relative; }

.wt-copy-btn {
    position:   absolute;
    top:        0.5rem;
    right:      0.5rem;
    background: rgba(255,255,255,0.08);
    border:     1px solid rgba(255,255,255,0.15);
    color:      var(--wt-muted);
    font-size:  0.7rem;
    font-family: var(--wt-font);
    padding:    0.2rem 0.6rem;
    border-radius: 4px;
    cursor:     pointer;
    transition: color 0.2s, background 0.2s;
    font-weight: 500;
}
.wt-copy-btn.hover  { color: var(--wt-text);    background: rgba(255,255,255,0.14); }
.wt-copy-btn.copied { color: var(--wt-accent2); background: rgba(255,255,255,0.08); }

/* ── Progress bars (width driven via --bar-width CSS custom property) ── */
.wt-progress-bar,
.wt-topbar-bar { width: var(--bar-width, 0%); }



/* ─────────────────────────────────────────────────────────────────
   INTRO PAGE
───────────────────────────────────────────────────────────────── */
.wt-intro {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wt-intro-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.wt-intro-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%,
            rgba(88,166,255,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%,
            rgba(63,185,80,0.08) 0%, transparent 60%),
        var(--wt-bg);
}

/* Animated particles */
.wt-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: rgba(88,166,255,0.4);
    animation: float-up 12s infinite linear;
}
.particle:nth-child(odd)  { background: rgba(63,185,80,0.3); }
.particle:nth-child(1)    { left: 5%;   animation-delay: 0s;    animation-duration: 14s; }
.particle:nth-child(2)    { left: 12%;  animation-delay: 1s;    animation-duration: 11s; }
.particle:nth-child(3)    { left: 20%;  animation-delay: 2s;    animation-duration: 13s; }
.particle:nth-child(4)    { left: 28%;  animation-delay: 3s;    animation-duration: 10s; }
.particle:nth-child(5)    { left: 36%;  animation-delay: 4s;    animation-duration: 15s; }
.particle:nth-child(6)    { left: 44%;  animation-delay: 0.5s;  animation-duration: 12s; }
.particle:nth-child(7)    { left: 52%;  animation-delay: 1.5s;  animation-duration: 14s; }
.particle:nth-child(8)    { left: 60%;  animation-delay: 2.5s;  animation-duration: 11s; }
.particle:nth-child(9)    { left: 68%;  animation-delay: 3.5s;  animation-duration: 13s; }
.particle:nth-child(10)   { left: 76%;  animation-delay: 4.5s;  animation-duration: 10s; }
.particle:nth-child(11)   { left: 82%;  animation-delay: 0.8s;  animation-duration: 16s; }
.particle:nth-child(12)   { left: 88%;  animation-delay: 2.2s;  animation-duration: 12s; }
.particle:nth-child(13)   { left: 93%;  animation-delay: 3.8s;  animation-duration: 13s; }
.particle:nth-child(14)   { left: 97%;  animation-delay: 1.2s;  animation-duration: 11s; }
.particle:nth-child(n+15) { left: calc(5% * (var(--i, 1))); animation-delay: calc(var(--i, 1) * 0.6s); }

@keyframes float-up {
    from { transform: translateY(100vh) scale(0.5); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    to   { transform: translateY(-20px) scale(1.5); opacity: 0; }
}

.wt-intro-header {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.wt-back-home {
    font-size: 0.9rem;
    color: var(--wt-muted);
    transition: color 0.2s;
}
.wt-back-home:hover { color: var(--wt-text); text-decoration: none; }

.wt-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wt-accent);
    background: rgba(88,166,255,0.12);
    border: 1px solid rgba(88,166,255,0.25);
    padding: 0.3em 0.8em;
    border-radius: 20px;
}

.wt-intro-hero {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    padding: 4rem 2rem 3rem;
}

.wt-shield-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: pulse-shield 3s ease-in-out infinite;
}
@keyframes pulse-shield {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(88,166,255,0)); }
    50%       { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(88,166,255,0.5)); }
}

.wt-intro-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #e6edf3 0%, #58a6ff 50%, #3fb950 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

.wt-intro-sub {
    font-size: 1.15rem;
    color: var(--wt-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.wt-intro-sub strong { color: var(--wt-text); }

/* Stats */
.wt-intro-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.wt-stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.wt-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--wt-accent);
    line-height: 1;
}
.wt-stat-label { font-size: 0.8rem; color: var(--wt-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* CTA buttons */
.wt-intro-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }

.wt-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(31,111,235,0.4);
    text-decoration: none;
}
.wt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(31,111,235,0.55);
    text-decoration: none;
    color: #fff;
}

.wt-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--wt-text);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--wt-border);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.wt-btn-secondary:hover {
    background: var(--wt-surface2);
    border-color: rgba(255,255,255,0.2);
    text-decoration: none;
    color: var(--wt-text);
}

.wt-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--wt-muted);
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.wt-btn-ghost:hover { color: var(--wt-text); border-color: var(--wt-border); text-decoration: none; }

.wt-intro-note { font-size: 0.8rem; color: var(--wt-muted); }

/* Phase overview cards */
.wt-phases-overview {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    padding: 0 2rem 4rem;
}
.wt-phases-overview h2,
.wt-step-list-overview h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--wt-text);
}

.wt-phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.wt-phase-card {
    background: var(--wt-surface);
    border: 1px solid var(--wt-border);
    border-left: 4px solid var(--phase-color, #58a6ff);
    border-radius: var(--wt-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wt-phase-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

.wt-phase-icon { font-size: 2rem; flex-shrink: 0; }

.wt-phase-info h3 { font-size: 0.75rem; color: var(--wt-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.1rem; }
.wt-phase-info strong { font-size: 1rem; display: block; margin-bottom: 0.4rem; }
.wt-phase-info p { font-size: 0.85rem; color: var(--wt-muted); margin-bottom: 0.5rem; }
.wt-phase-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--phase-color, var(--wt-accent));
    background: rgba(255,255,255,0.05);
    padding: 0.15em 0.6em;
    border-radius: 20px;
    border: 1px solid currentColor;
}

/* Step list / table */
.wt-step-list-overview {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 0 2rem 6rem;
}

.wt-steps-table { display: flex; flex-direction: column; gap: 2px; }

.wt-table-phase-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--phase-color, var(--wt-accent));
    padding: 1.2rem 1rem 0.4rem;
    border-top: 1px solid var(--wt-border);
    margin-top: 0.5rem;
}
.wt-table-phase-header:first-child { border-top: none; margin-top: 0; }

.wt-table-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: background 0.15s;
    color: var(--wt-muted);
    font-size: 0.875rem;
}
.wt-table-row:hover { background: var(--wt-surface2); color: var(--wt-text); text-decoration: none; }
.wt-table-row.completed { color: var(--wt-text); }
.wt-table-row.completed .wt-table-check { opacity: 1; color: var(--wt-accent2); }

.wt-table-num {
    font-size: 0.75rem;
    font-weight: 600;
    width: 2rem;
    flex-shrink: 0;
    color: var(--wt-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.wt-table-title { flex: 1; }
.wt-table-check { font-size: 0.85rem; opacity: 0; transition: opacity 0.2s; }

/* Intro footer */
.wt-intro-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--wt-muted);
    border-top: 1px solid var(--wt-border);
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────
   COMPLETION PAGE
───────────────────────────────────────────────────────────────── */
.wt-done {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wt-done-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%,
            rgba(63,185,80,0.12) 0%, transparent 70%),
        var(--wt-bg);
    z-index: 0;
}
.wt-done-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    padding: 4rem 2rem;
}
.wt-done-trophy {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: trophy-bounce 2s ease-in-out infinite;
}
@keyframes trophy-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(3deg); }
}
.wt-done-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #58a6ff, #3fb950);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.wt-done-sub { font-size: 1.05rem; color: var(--wt-muted); margin-bottom: 2.5rem; line-height: 1.7; }
.wt-done-sub strong { color: var(--wt-text); }

.wt-done-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.wt-done-phase {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: var(--wt-surface);
    border: 1px solid var(--wt-border);
    border-left: 4px solid var(--phase-color, #58a6ff);
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: left;
}
.wt-done-tick { margin-left: auto; color: var(--wt-accent2); font-weight: 700; }

.wt-done-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.wt-reset-btn {
    background: transparent;
    border: 1px solid rgba(248,81,73,0.35);
    color: rgba(248,81,73,0.7);
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.wt-reset-btn:hover { background: rgba(248,81,73,0.1); color: var(--wt-danger); }

/* ─────────────────────────────────────────────────────────────────
   STEP LAYOUT
───────────────────────────────────────────────────────────────── */
.wt-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.wt-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--wt-sidebar-w);
    background: var(--wt-surface);
    border-right: 1px solid var(--wt-border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.wt-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wt-border);
    flex-shrink: 0;
}

.wt-sidebar-logo {
    font-weight: 700;
    font-size: 1rem;
    color: var(--wt-text);
    text-decoration: none;
}
.wt-sidebar-logo:hover { color: var(--wt-accent); text-decoration: none; }

.wt-sidebar-close {
    display: none;
    background: none; border: none;
    color: var(--wt-muted); font-size: 1.1rem;
    cursor: pointer; padding: 0.25rem 0.5rem;
    border-radius: 4px; transition: all 0.2s;
}
.wt-sidebar-close:hover { background: var(--wt-surface2); color: var(--wt-text); }

/* Progress in sidebar */
.wt-sidebar-progress {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wt-border);
    flex-shrink: 0;
}
.wt-progress-label {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--wt-muted);
    margin-bottom: 0.5rem;
}
.wt-progress-bar-wrap {
    height: 4px; background: rgba(255,255,255,0.08);
    border-radius: 2px; overflow: hidden; margin-bottom: 0.4rem;
}
.wt-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1f6feb, #3fb950);
    border-radius: 2px;
    transition: width 0.5s ease;
}
.wt-progress-steps { font-size: 0.7rem; color: var(--wt-muted); }

/* Sidebar nav */
.wt-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0 4rem;
}
.wt-sidebar-nav::-webkit-scrollbar { width: 4px; }
.wt-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.wt-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.wt-nav-phase-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--phase-color, var(--wt-muted));
    border-top: 1px solid var(--wt-border);
    margin-top: 0.4rem;
}
.wt-nav-phase-head:first-child { border-top: none; margin-top: 0; }

.wt-nav-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
    color: var(--wt-muted);
    border-left: 2px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
}
.wt-nav-step:hover {
    background: rgba(255,255,255,0.04);
    color: var(--wt-text);
    text-decoration: none;
    border-left-color: rgba(255,255,255,0.2);
}
.wt-nav-step.active {
    color: var(--wt-accent);
    background: rgba(88,166,255,0.08);
    border-left-color: var(--wt-accent);
    font-weight: 600;
}
.wt-nav-step.completed { color: var(--wt-text); }
.wt-nav-step.completed .wt-nav-check { opacity: 1; }

.wt-nav-num {
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    color: var(--wt-muted);
    width: 1.6rem;
    flex-shrink: 0;
    text-align: right;
}
.wt-nav-step.active .wt-nav-num { color: var(--wt-accent); }

.wt-nav-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-nav-check { font-size: 0.7rem; opacity: 0; color: var(--wt-accent2); transition: opacity 0.2s; flex-shrink: 0; }

/* ── Main content area ── */
.wt-main {
    flex: 1;
    margin-left: var(--wt-sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top bar */
.wt-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--wt-topbar-h);
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--wt-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
}

.wt-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none; border: none;
    cursor: pointer; padding: 0.5rem; border-radius: 6px;
    transition: background 0.2s;
}
.wt-menu-btn:hover { background: var(--wt-surface2); }
.wt-menu-btn span {
    display: block; width: 20px; height: 2px;
    background: var(--wt-text); border-radius: 1px; transition: all 0.2s;
}

.wt-topbar-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.wt-topbar-bar-wrap {
    flex: 1; height: 3px; background: rgba(255,255,255,0.08);
    border-radius: 2px; overflow: hidden;
}
.wt-topbar-bar {
    height: 100%;
    background: linear-gradient(90deg, #1f6feb, #3fb950);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.wt-topbar-label { font-size: 0.75rem; color: var(--wt-muted); white-space: nowrap; }

.wt-topbar-home {
    font-size: 0.8rem; color: var(--wt-muted);
    white-space: nowrap; transition: color 0.2s;
}
.wt-topbar-home:hover { color: var(--wt-text); text-decoration: none; }

/* Step header */
.wt-step-header {
    padding: 2.5rem 2.5rem 0;
    max-width: 900px;
}

.wt-step-phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--phase-color, var(--wt-accent));
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--phase-color, var(--wt-accent));
    padding: 0.25em 0.75em;
    border-radius: 20px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.wt-step-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--wt-text);
    margin-bottom: 1rem;
}
.wt-step-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wt-muted);
    margin-bottom: 0.35rem;
}

.wt-step-why {
    font-size: 0.9rem;
    color: var(--wt-muted);
    background: rgba(88,166,255,0.06);
    border-left: 3px solid rgba(88,166,255,0.4);
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.wt-step-why strong { color: var(--wt-accent); }

/* Completion toggle */
.wt-complete-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--wt-border);
    background: var(--wt-surface2);
    transition: all 0.2s;
    margin-bottom: 0;
    user-select: none;
}
.wt-complete-toggle:hover { border-color: rgba(63,185,80,0.4); background: rgba(63,185,80,0.05); }
.wt-complete-toggle.is-done {
    border-color: rgba(63,185,80,0.6);
    background: rgba(63,185,80,0.1);
}
.wt-complete-cb { display: none; }
.wt-complete-label { font-size: 0.85rem; color: var(--wt-muted); }
.wt-complete-checkmark {
    font-size: 0.85rem;
    color: var(--wt-accent2);
    opacity: 0.3;
    transition: opacity 0.2s;
}
.wt-complete-toggle.is-done .wt-complete-checkmark { opacity: 1; }
.wt-complete-toggle.is-done .wt-complete-label { color: var(--wt-accent2); }

/* Manual content */
.wt-manual-content {
    flex: 1;
    padding: 2rem 2.5rem 1.5rem;
    max-width: 900px;
}

.wt-manual-content h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--wt-text);
    border-bottom: 1px solid var(--wt-border);
    padding-bottom: 0.75rem;
}
.wt-manual-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--wt-text);
}
.wt-manual-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #c9d1d9;
}
.wt-manual-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wt-muted);
    margin: 1.25rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wt-manual-content p {
    margin-bottom: 1rem;
    color: #c9d1d9;
    line-height: 1.75;
}
.wt-manual-content a { color: var(--wt-accent); }
.wt-manual-content a:hover { text-decoration: underline; }
.wt-manual-content ul,
.wt-manual-content ol {
    margin: 0.75rem 0 1rem 1.5rem;
    color: #c9d1d9;
}
.wt-manual-content li { margin-bottom: 0.4rem; line-height: 1.65; }

.wt-manual-content code {
    font-family: var(--wt-mono);
    font-size: 0.85em;
    background: rgba(255,255,255,0.07);
    color: #f0a500;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}

.wt-manual-content pre {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin: 1.25rem 0;
    overflow-x: auto;
    position: relative;
}
.wt-manual-content pre code {
    display: block;
    padding: 1.25rem 1.5rem;
    background: none;
    color: #e6edf3;
    font-size: 0.875rem;
    line-height: 1.65;
    border: none;
    border-radius: 0;
}

.wt-manual-content blockquote {
    border-left: 3px solid var(--wt-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    background: rgba(88,166,255,0.06);
    border-radius: 0 6px 6px 0;
    color: var(--wt-muted);
    font-style: italic;
}

.wt-manual-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.wt-manual-content th,
.wt-manual-content td {
    padding: 0.65rem 1rem;
    border: 1px solid var(--wt-border);
    text-align: left;
}
.wt-manual-content th { background: var(--wt-surface2); font-weight: 600; }
.wt-manual-content tr:hover { background: rgba(255,255,255,0.02); }

.wt-manual-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid var(--wt-border);
}

.wt-manual-content hr {
    border: none;
    border-top: 1px solid var(--wt-border);
    margin: 2rem 0;
}

.wt-missing {
    background: rgba(248,81,73,0.1);
    border: 1px solid rgba(248,81,73,0.3);
    color: var(--wt-danger);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Bottom navigation */
.wt-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem 3rem;
    max-width: 900px;
    width: 100%;
    gap: 1rem;
    border-top: 1px solid var(--wt-border);
    margin-top: 2rem;
}

.wt-nav-prev,
.wt-nav-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--wt-border);
    transition: all 0.2s;
    color: var(--wt-muted);
    text-decoration: none;
}
.wt-nav-prev:hover,
.wt-nav-next:hover {
    background: var(--wt-surface2);
    border-color: rgba(255,255,255,0.2);
    color: var(--wt-text);
    text-decoration: none;
}
.wt-nav-next {
    background: rgba(31,111,235,0.1);
    border-color: rgba(31,111,235,0.4);
    color: var(--wt-accent);
}
.wt-nav-next:hover {
    background: rgba(31,111,235,0.2);
    border-color: var(--wt-accent);
    color: var(--wt-accent);
}
.wt-nav-disabled { visibility: hidden; }

.wt-bottom-complete {
    flex: 1;
    display: flex;
    justify-content: center;
}
.wt-bottom-complete-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--wt-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--wt-border);
    background: var(--wt-surface2);
    transition: all 0.2s;
    user-select: none;
}
.wt-bottom-complete-label:hover { border-color: rgba(63,185,80,0.4); }
.wt-bottom-complete-label input { display: none; }

/* ── Mini map ── */
.wt-minimap {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
    background: rgba(13,17,23,0.8);
    border-radius: 8px;
    border: 1px solid var(--wt-border);
    backdrop-filter: blur(8px);
}
.wt-minimap-dot {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}
.wt-minimap-dot:hover {
    background: var(--phase-color, rgba(255,255,255,0.5));
    transform: scale(1.5);
}
.wt-minimap-dot.current {
    background: var(--phase-color, var(--wt-accent));
    transform: scale(1.3);
    box-shadow: 0 0 6px var(--phase-color, var(--wt-accent));
}
.wt-minimap-dot.completed { background: rgba(63,185,80,0.5); }

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .wt-sidebar {
        transform: translateX(-100%);
    }
    .wt-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,0.5);
    }
    .wt-sidebar-close { display: block; }

    .wt-main { margin-left: 0; }
    .wt-menu-btn { display: flex; }

    .wt-step-header,
    .wt-manual-content,
    .wt-bottom-nav {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .wt-minimap { display: none; }

    .wt-topbar { padding: 0 1rem; }
}

@media (max-width: 600px) {
    .wt-intro-stats { gap: 1.5rem; }
    .wt-phases-grid { grid-template-columns: 1fr; }
    .wt-bottom-nav { flex-wrap: wrap; }
    .wt-nav-prev, .wt-nav-next { font-size: 0.8rem; padding: 0.55rem 1rem; }
    .wt-done-links { flex-direction: column; align-items: center; }
}

/* Overlay for sidebar on mobile */
.wt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
}
.wt-overlay.visible { display: block; }

/* Easter Egg Footer */
.easter-egg-footer-text { text-align: center; color: var(--text-muted, #888); margin-top: 2rem; margin-bottom: 1rem; font-size: 0.85rem; }
#easter-egg-heart { display: inline-block; color: #ff4b4b; cursor: pointer; transition: transform 0.2s ease; user-select: none;  animation: heartbeat 2s infinite; }
@keyframes heartbeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }
.easter-egg-spin { animation: spin-heart 2s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
@keyframes spin-heart { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
