/* ==========================================================================
   NEXUSPLAY SERVERS & TUNNEL - PLAYIT.GG 1:1 LAYOUT & STYLES
   Retro-Modern Pixel Aesthetic with Deep Space Navy, Electric Orange & Cyan
   ========================================================================== */

:root {
    --bg-page: #060c18;
    --bg-card: #0b1426;
    --bg-card-hover: #0f1c36;
    --bg-terminal: #070e1c;
    --border-card: rgba(34, 59, 107, 0.45);
    --border-card-hover: rgba(255, 85, 0, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #8c9bb5;
    --text-muted: #53627e;
    --accent-orange: #ff5500;
    --accent-orange-bright: #ff6a00;
    --accent-cyan: #00d2ff;
    --accent-green: #22c55e;
    --font-pixel: 'Press Start 2P', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base Body Overrides for servers.html */
body.servers-body {
    background-color: var(--bg-page) !important;
    background: radial-gradient(1000px 500px at 50% 0px, rgba(14, 30, 64, 0.6), transparent 70%), var(--bg-page) !important;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

/* Pixel Headings */
.pixel-font {
    font-family: var(--font-pixel);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.pixel-title {
    font-family: var(--font-pixel);
    color: #ffffff;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

.pixel-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Page Wrapper */
.servers-page-wrapper {
    width: 100%;
    margin-top: 60px; /* Header offset */
    padding-bottom: 80px;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.servers-hero {
    position: relative;
    padding: 70px 20px 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(16, 44, 94, 0.45) 0%, rgba(6, 12, 24, 0.95) 75%),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23192f59' fill-opacity='0.15' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.hero-world-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    opacity: 0.12;
    pointer-events: none;
    background-image: radial-gradient(#00d2ff 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.servers-hero h1 {
    font-family: var(--font-pixel);
    font-size: clamp(1.4rem, 3.2vw, 2.5rem);
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.2);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 10px;
    line-height: 1.6;
}

.hero-pricing-badge {
    font-size: 0.88rem;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

/* Orange Retro CTA Button */
.btn-pixel-orange {
    font-family: var(--font-pixel);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background-color: var(--accent-orange);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-pixel-orange:hover {
    background-color: var(--accent-orange-bright);
    color: #ffffff;
    box-shadow: 0 0 35px rgba(255, 85, 0, 0.7);
    transform: translateY(-2px);
}

/* Secondary Hero Links */
.hero-sublinks {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.hero-sublinks a {
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    color: #5d7599;
    text-decoration: none;
    letter-spacing: 0.8px;
    transition: color 0.2s;
}

.hero-sublinks a:hover {
    color: #ffffff;
}

.hero-sublinks .bullet {
    color: #2b3952;
}

/* 4-Stat Row */
.hero-stats-row {
    margin-top: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 110px;
}

.stat-number {
    font-family: var(--font-pixel);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 6px;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. HOW IT WORKS SECTION
   ========================================================================== */
.section-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 70px 20px;
}

.how-it-works-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 860px) {
    .how-it-works-card {
        grid-template-columns: 1fr;
    }
}

/* Terminal Box */
.terminal-window {
    background: var(--bg-terminal);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #091222;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.terminal-body {
    padding: 18px;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #abbcd5;
}

.terminal-body .cmd { color: #00d2ff; }
.terminal-body .comment { color: #53627e; }
.terminal-body .success { color: #22c55e; font-weight: 700; }
.terminal-body .highlight { color: #ff9900; }

/* Visual Routing Flowchart */
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px 0;
}

.flow-node {
    background: #0f1c34;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 14px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.flow-node.proxy {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.15), rgba(15, 28, 52, 0.9));
    border-color: rgba(255, 85, 0, 0.5);
    color: #ff9900;
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.2);
}

.flow-branches {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 36px;
    position: relative;
    gap: 16px;
}

.flow-branches::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 25%;
    right: 25%;
    height: 24px;
    border-top: 2px dashed rgba(0, 210, 255, 0.4);
    border-left: 2px dashed rgba(0, 210, 255, 0.4);
    border-right: 2px dashed rgba(255, 153, 0, 0.4);
}

.branch-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.branch-label {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.label-cyan { color: var(--accent-cyan); }
.label-orange { color: #ff9900; }

.flow-node.host {
    border-color: rgba(0, 210, 255, 0.4);
    background: #0b172a;
}
.flow-node.players {
    border-color: rgba(34, 197, 94, 0.4);
    background: #0b172a;
}

.details-toggle-btn {
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--accent-cyan);
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.2s;
}

.details-toggle-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-cyan);
}

.how-details-drawer {
    display: none;
    margin-top: 20px;
    padding: 18px 24px;
    background: #081020;
    border-radius: 8px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   3. GAMES GRID SECTION
   ========================================================================== */
.games-category-header {
    font-family: var(--font-pixel);
    font-size: 0.72rem;
    color: #4e6587;
    margin: 32px 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.game-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.game-item-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 210, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.game-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.6rem;
    background: rgba(14, 27, 52, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-item-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #d1dced;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Custom port badge */
.port-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-orange);
    padding: 4px 8px;
    background: rgba(255, 85, 0, 0.12);
    border-radius: 4px;
    border: 1px solid rgba(255, 85, 0, 0.3);
}

/* ==========================================================================
   4. WHY CHOOSE SECTION
   ========================================================================== */
.why-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .why-features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.feature-box:hover {
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.feature-box-icon {
    font-size: 1.8rem;
    margin-bottom: 18px;
    display: inline-block;
}

.feature-box-title {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

.feature-box-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.feature-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. RUNS EVERYWHERE SECTION
   ========================================================================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card:hover {
    border-color: var(--accent-orange);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.platform-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.platform-name {
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    color: #cbd5e1;
    text-transform: uppercase;
}

/* ==========================================================================
   6. GLOBAL NETWORK SECTION
   ========================================================================== */
.network-regions-list {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 30px;
}

.region-group {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.region-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.region-group:first-child {
    padding-top: 0;
}

.region-title {
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    color: #4e6587;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
}

.region-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-pill {
    background: #091222;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.city-pill:hover {
    border-color: var(--accent-cyan);
    color: #ffffff;
    background: #0e1a30;
}

.ping-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

.ping-ms {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #22c55e;
    margin-left: 4px;
}

/* ==========================================================================
   7. READY TO PLAY / FOOTER
   ========================================================================== */
.ready-cta-section {
    padding: 70px 20px 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(16, 44, 94, 0.4) 0%, transparent 70%);
}

.ready-cta-section .btn-pixel-orange {
    margin-top: 15px;
    padding: 18px 40px;
    font-size: 0.9rem;
}

.servers-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #697d9c;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Modal for Download & Agent Setup */
.agent-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.agent-modal-box {
    background: #0b1426;
    border: 1px solid var(--border-card-hover);
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.agent-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}
.agent-modal-close:hover {
    color: #ffffff;
}

/* ==========================================================================
   PLAYIT.GG 1:1 HEADERBAR
   Tabs: DOWNLOAD | PRICING | SIGN IN | GET STARTED
   ========================================================================== */
.playit-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 42px;
    background-color: rgba(6, 12, 24, 0.96);
    backdrop-filter: blur(16px);
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playit-nav-left {
    display: flex;
    align-items: center;
}

.playit-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.playit-nav-logo img {
    height: 36px;
    width: auto;
    max-height: 38px;
    object-fit: contain;
}

.playit-nav-logo span {
    color: #ffffff;
}

.playit-nav-logo span.accent {
    color: var(--accent-orange);
}

.playit-nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.playit-nav-tab {
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    color: #92a4c4;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.playit-nav-tab:hover {
    color: #ffffff;
}

.playit-nav-btn {
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 18px;
    border: 1px solid var(--accent-orange);
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.playit-nav-btn:hover {
    background: var(--accent-orange);
    box-shadow: 0 0 18px rgba(255, 85, 0, 0.5);
    color: #ffffff;
}

@media (max-width: 768px) {
    .playit-nav {
        padding: 0 18px;
    }
    .playit-nav-right {
        gap: 14px;
    }
    .playit-nav-tab {
        font-size: 0.58rem;
    }
    .playit-nav-btn {
        font-size: 0.58rem;
        padding: 6px 12px;
    }
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 440px));
    gap: 24px;
    justify-content: center;
    margin-top: 36px;
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    transition: all 0.25s ease;
}

.pricing-card:hover {
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
    border-color: var(--accent-orange);
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.15);
}

.pricing-card-header {
    margin-bottom: 24px;
}

.pricing-badge {
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.pricing-badge.free {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.pricing-badge.premium {
    background: rgba(255, 85, 0, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 85, 0, 0.3);
}

.pricing-title {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.pricing-cost {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pricing-cost span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features-list {
    list-style: none;
    margin: 20px 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-feature-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-feature-item i {
    color: var(--accent-green);
    font-size: 0.85rem;
}

/* ==========================================================================
   DOWNLOAD SCREEN PAGE (1:1 with playit.gg)
   ========================================================================== */
.dl-page-container {
    max-width: 820px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* OS Switcher Tabs */
.os-tabs-nav {
    display: inline-flex;
    background: #070d1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 34px;
}

.os-tab-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.os-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.os-tab-btn.active {
    background: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 85, 0, 0.4);
}

/* Page Section Titles */
.dl-page-title {
    font-family: var(--font-pixel);
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    color: var(--accent-orange);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.dl-page-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.dl-section-header {
    font-family: var(--font-pixel);
    font-size: 0.82rem;
    color: #ff9900;
    margin: 36px 0 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Big Recommended Card */
.dl-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dl-hero-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.dl-card-icon {
    width: 52px;
    height: 52px;
    background: #081122;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.dl-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.dl-card-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dl-btn-orange {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    padding: 12px 24px;
    background: var(--accent-orange);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 18px rgba(255, 85, 0, 0.35);
}

.dl-btn-orange:hover {
    background: var(--accent-orange-bright);
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Row List Cards */
.dl-row-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 16px;
    transition: all 0.2s ease;
}

.dl-row-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 210, 255, 0.35);
}

.dl-row-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.dl-row-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dl-btn-outline {
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    padding: 8px 16px;
    background: #081224;
    border: 1px solid #1e3560;
    color: var(--accent-cyan);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dl-btn-outline:hover {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent-cyan);
    color: #ffffff;
}

/* Terminal & Code Blocks with Copy Button */
.code-box {
    background: #060b16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0;
    font-family: var(--font-mono);
}

.code-box-header {
    background: #091222;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-code-copy {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.72rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.btn-code-copy:hover {
    color: #ffffff;
}

.code-box-body {
    padding: 16px;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Linux Distro Tabs */
.distro-tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.distro-tab-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    background: #070d18;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.distro-tab-btn:hover {
    color: #ffffff;
}

.distro-tab-btn.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
}

/* Notice / Alert Cards */
.alert-box {
    border-radius: 8px;
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.alert-box.blue {
    background: rgba(14, 30, 64, 0.45);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #94a3b8;
}

.alert-box.blue strong {
    color: var(--accent-orange);
    display: block;
    margin-bottom: 6px;
}

.alert-box.red {
    background: rgba(80, 15, 15, 0.35);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #e2e8f0;
}

.alert-box.red strong {
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.alert-box.orange-border {
    background: #091222;
    border: 1px solid rgba(255, 85, 0, 0.45);
    color: #94a3b8;
}

.alert-box.orange-border strong {
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}

/* Version Select Dropdown */
.version-select-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.version-select-box select {
    background: #081224;
    border: 1px solid #1e3560;
    color: #ffffff;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

/* ==========================================================================
   DOCKER SETUP WIZARD (1:1 with playit.gg wizard)
   ========================================================================== */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 36px;
    background: #060c18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-exit-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wizard-exit-link:hover {
    color: var(--accent-orange);
}

.wizard-container {
    max-width: 900px;
    margin: 36px auto 80px;
    padding: 0 24px;
}

.wizard-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.wizard-back-link:hover {
    color: #ffffff;
}

.wizard-card {
    background: #081326;
    border: 1px solid #152646;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.wizard-steps-bar {
    display: flex;
    align-items: center;
    padding: 18px 32px;
    border-bottom: 1px solid #142542;
    background: #071020;
    gap: 36px;
}

.wizard-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #53627e;
    cursor: default;
    transition: all 0.2s ease;
}

.wizard-step-item.clickable {
    cursor: pointer;
}

.wizard-step-item.clickable:hover {
    color: #94a3b8;
}

.wizard-step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #283955;
    color: #53627e;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-step-item.active {
    color: #ffffff;
}

.wizard-step-item.active .wizard-step-badge {
    border-color: #0ea5e9;
    color: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.35);
}

.wizard-step-item.completed {
    color: #cbd5e1;
}

.wizard-step-item.completed .wizard-step-badge {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.wizard-card-body {
    padding: 36px 32px 44px;
    min-height: 260px;
}

.wizard-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.wizard-subtitle {
    font-size: 0.92rem;
    color: #8c9bb5;
    margin-bottom: 32px;
    line-height: 1.5;
}

.wizard-form-group {
    margin-bottom: 24px;
}

.wizard-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.wizard-input-text {
    width: 100%;
    max-width: 440px;
    background: #060c18;
    border: 2px solid #0ea5e9;
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
    transition: all 0.2s ease;
}

.wizard-input-text::placeholder {
    color: #475569;
}

.wizard-input-text:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.wizard-card-footer {
    padding: 18px 32px;
    background: #060d1b;
    border-top: 1px solid #142542;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.btn-wizard-action {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid #1e3558;
    background: #0d1a30;
    color: #475569;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.btn-wizard-action.enabled {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(255, 85, 0, 0.35);
}

.btn-wizard-action.enabled:hover {
    background: var(--accent-orange-bright);
    box-shadow: 0 0 22px rgba(255, 85, 0, 0.55);
    transform: translateY(-1px);
}

.btn-wizard-secondary {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #233758;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wizard-secondary:hover {
    color: #ffffff;
    border-color: #475569;
}

/* Waiting Alert Box (1:1 with playit.gg) */
.wizard-waiting-alert {
    background: #082234;
    border: 1px solid #0e4c6c;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.wizard-waiting-alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.wizard-waiting-alert-desc {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.wizard-waiting-alert-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Docker Commands Boxes (1:1 with playit.gg) */
.wizard-cmd-card {
    background: #060c18;
    border: 1px solid #152646;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.wizard-cmd-header {
    background: #091428;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #142542;
}

.wizard-cmd-header-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.wizard-cmd-copy-btn {
    background: #081122;
    border: 1px solid #1e3558;
    border-radius: 4px;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.wizard-cmd-copy-btn:hover {
    background: #142542;
    border-color: #38bdf8;
    color: #ffffff;
}

.wizard-cmd-body {
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Previous Button (Blue as in screenshot) */
.btn-wizard-blue {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wizard-blue:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Loading status button */
.btn-wizard-loading {
    background: #0c182b;
    border: 1px solid #192d4c;
    color: #5f7596;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 24px;
    border-radius: 4px;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-wizard-loading.ready {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(255, 85, 0, 0.4);
}

.btn-wizard-loading.ready:hover {
    background: var(--accent-orange-bright);
    box-shadow: 0 0 24px rgba(255, 85, 0, 0.65);
    transform: translateY(-1px);
}

/* ==========================================================================
   INTEGRATION CHOICE SCREEN (1:1 with playit.gg integration choice)
   ========================================================================== */
.choice-wizard-card {
    position: relative;
    background: #071020;
    border: 1px solid #152646;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.choice-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(255, 85, 0, 0.16) 0%, rgba(255, 85, 0, 0.05) 35%, transparent 70%);
}

.choice-bg-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.choice-mark {
    position: absolute;
    font-family: var(--font-body);
    font-weight: 800;
    user-select: none;
    line-height: 1;
}

.choice-content {
    position: relative;
    z-index: 2;
    padding: 44px 36px 40px;
}

.choice-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.choice-subtitle {
    font-size: 0.92rem;
    color: #8c9bb5;
    margin-bottom: 32px;
}

.choice-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.choice-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(9, 19, 36, 0.82);
    border: 1px solid #182e52;
    border-radius: 8px;
    padding: 34px 20px 28px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.choice-item-card:hover,
.choice-item-card.active {
    background: rgba(14, 28, 54, 0.95);
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.3);
}

.choice-item-card.active {
    border-color: var(--accent-orange);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 85, 0, 0.35);
}

.choice-item-icon {
    font-size: 2.4rem;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
}

.choice-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.choice-item-desc {
    font-size: 0.82rem;
    color: #8c9bb5;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .choice-cards-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-select {
    width: 100%;
    max-width: 440px;
    background: #060c18;
    border: 2px solid #0ea5e9;
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
    cursor: pointer;
}

.wizard-select option {
    background: #0b1426;
    color: #ffffff;
    padding: 8px;
}

/* ==========================================================================
   SETUP CODE DISPLAY (1:1 with playit.gg third party setup code)
   ========================================================================== */
.setup-code-container {
    background: #060c18;
    border-bottom: 2px solid #00d2ff;
    padding: 24px 20px;
    margin: 36px 0 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
    overflow: hidden;
}

.setup-code-container:hover {
    background: #081122;
    border-bottom-color: var(--accent-orange);
    box-shadow: 0 4px 24px rgba(0, 210, 255, 0.2);
}

.setup-code-display {
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: clamp(3px, 0.7vw, 6px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.setup-code-instructions {
    text-align: center;
    font-size: 0.85rem;
    color: #8c9bb5;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 28px;
}

/* ==========================================================================
   SUPPORT DOCS SCREEN (1:1 with Screenshot 2)
   ========================================================================== */
.docs-header {
    height: 56px;
    background-color: #060c18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.docs-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    color: #ffffff;
}

.docs-logo img {
    height: 32px;
    width: auto;
    max-height: 34px;
    object-fit: contain;
}

.docs-logo .brand {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.docs-logo .brand .accent {
    color: var(--accent-orange, #ff5500);
}

.docs-logo .subbrand {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.2px;
}

.docs-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.docs-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 20px 80px;
}

.docs-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.docs-subtitle {
    font-size: 0.92rem;
    color: #8c9bb5;
    margin: 0 0 26px;
}

.docs-search-wrapper {
    position: relative;
    margin-bottom: 34px;
}

.docs-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}

.docs-search-input {
    width: 100%;
    box-sizing: border-box;
    background-color: #071324;
    border: 1px solid #142845;
    border-radius: 4px;
    padding: 13px 18px 13px 44px;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docs-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.docs-search-input::placeholder {
    color: #64748b;
    letter-spacing: 0.6px;
    font-size: 0.82rem;
}

.docs-section {
    margin-bottom: 32px;
}

.docs-section-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #ff5500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px;
}

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

@media (max-width: 960px) {
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.doc-card {
    background-color: #071324;
    border: 1px solid #10243e;
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.doc-card:hover {
    border-color: #ff5500;
    background-color: #0c1b33;
    transform: translateY(-2px);
}

.doc-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.35;
}

.doc-card-desc {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Reader for Support Docs */
.doc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.doc-modal-container {
    background: #071324;
    border: 1px solid #1a365d;
    border-radius: 8px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
}

.doc-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.doc-modal-close:hover {
    color: #ff5500;
}

.doc-modal-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 85, 0, 0.15);
    border: 1px solid rgba(255, 85, 0, 0.35);
    border-radius: 4px;
    color: #ff5500;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.doc-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.3;
}

.doc-modal-body {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
}

.doc-modal-body pre {
    background: #030812;
    border: 1px solid #142845;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #38bdf8;
    overflow-x: auto;
    margin: 14px 0;
}

/* ==========================================================================
   DOCUMENT DETAIL VIEW SCREEN (Dedicated Page with Left Sidepanel)
   ========================================================================== */
.doc-detail-page {
    background: #070e1a;
    min-height: 100vh;
    color: #cbd5e1;
}

.doc-detail-layout {
    display: flex;
    min-height: calc(100vh - 56px);
    position: relative;
}

/* --- Left Sidepanel (Quick Access to All Docs) --- */
.doc-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #060c18;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 20px 14px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 90;
    transition: transform 0.25s ease;
}

.doc-detail-sidebar::-webkit-scrollbar {
    width: 6px;
}

.doc-detail-sidebar::-webkit-scrollbar-track {
    background: #060c18;
}

.doc-detail-sidebar::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 3px;
}

.doc-sidebar-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
}

.doc-sidebar-back-btn:hover {
    color: #ff5500;
    background: rgba(255, 85, 0, 0.08);
    border-color: rgba(255, 85, 0, 0.3);
}

.doc-sidebar-search-box {
    position: relative;
}

.doc-sidebar-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.8rem;
    pointer-events: none;
}

.doc-sidebar-search-input {
    width: 100%;
    box-sizing: border-box;
    background: #0a1424;
    border: 1px solid #162a4a;
    border-radius: 6px;
    padding: 9px 12px 9px 34px;
    color: #f1f5f9;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.doc-sidebar-search-input:focus {
    border-color: #38bdf8;
}

.doc-sidebar-search-input::placeholder {
    color: #64748b;
    font-size: 0.8rem;
}

.doc-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-sidebar-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff5500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    margin: 0;
    user-select: none;
}

.doc-sidebar-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.doc-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-sidebar-item {
    margin: 0;
}

.doc-sidebar-link {
    display: block;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 0.81rem;
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.35;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
}

.doc-sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.doc-sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 85, 0, 0.12);
    border-left-color: #ff5500;
    font-weight: 600;
}

/* --- Mobile Sidebar Toggle Header Bar --- */
.doc-sidebar-mobile-bar {
    display: none;
    background: #091526;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
}

.doc-mobile-toggle-btn {
    background: #11233d;
    border: 1px solid #1e3a5f;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Main Document Detail View --- */
.doc-detail-main {
    flex: 1;
    min-width: 0;
    padding: 36px 48px 80px;
    max-width: none;
}

.doc-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 20px;
}

.doc-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.doc-breadcrumbs a:hover {
    color: #38bdf8;
}

.doc-breadcrumbs .sep {
    font-size: 0.7rem;
    opacity: 0.5;
}

.doc-breadcrumbs .current {
    color: #94a3b8;
    font-weight: 500;
}

.doc-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-meta-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-badge-category {
    background: rgba(255, 85, 0, 0.15);
    border: 1px solid rgba(255, 85, 0, 0.35);
    color: #ff5500;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.doc-badge-readtime {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doc-badge-verified {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doc-copy-link-btn {
    background: #0f223a;
    border: 1px solid #1a3962;
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.doc-copy-link-btn:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: #142d4d;
}

.doc-detail-h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.25;
}

.doc-detail-lead {
    font-size: 1.02rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Content Blocks */
.doc-section-h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 36px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-section-h2 i {
    color: #ff5500;
    font-size: 1rem;
}

/* Callout Box */
.doc-callout {
    background: #0b1a2f;
    border-left: 4px solid #ff5500;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 24px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.doc-callout.important {
    border-left-color: #ff5500;
    background: rgba(255, 85, 0, 0.08);
}

.doc-callout.tip {
    border-left-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.doc-callout-icon {
    font-size: 1.15rem;
    color: #ff5500;
    margin-top: 2px;
    flex-shrink: 0;
}

.doc-callout.tip .doc-callout-icon {
    color: #38bdf8;
}

.doc-callout-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #e2e8f0;
}

/* Prerequisites Box */
.doc-prereqs-box {
    background: #091629;
    border: 1px solid #132a49;
    border-radius: 6px;
    padding: 18px 22px;
    margin: 20px 0 30px;
}

.doc-prereqs-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-prereqs-title i {
    color: #38bdf8;
}

.doc-prereqs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-prereqs-list li {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-prereqs-list li i {
    color: #4ade80;
    font-size: 0.8rem;
}

/* Steps List */
.doc-steps-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 20px 0 32px;
}

.doc-step-card {
    background: #09172a;
    border: 1px solid #142a49;
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.doc-step-num {
    background: #ff5500;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 85, 0, 0.4);
}

.doc-step-body {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.doc-step-body code {
    background: #030812;
    border: 1px solid #1a365d;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* Code Snippet Box */
.doc-code-box {
    background: #030812;
    border: 1px solid #162c4a;
    border-radius: 6px;
    overflow: hidden;
    margin: 24px 0 32px;
}

.doc-code-header {
    background: #081424;
    border-bottom: 1px solid #162c4a;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
}

.doc-code-file {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-code-copy-btn {
    background: transparent;
    border: 1px solid #1e3a5f;
    color: #cbd5e1;
    font-size: 0.74rem;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.doc-code-copy-btn:hover {
    color: #ff5500;
    border-color: #ff5500;
}

.doc-code-box pre {
    margin: 0;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    color: #f1f5f9;
    overflow-x: auto;
    background: #030812;
}

/* Troubleshooting Checklist */
.doc-trouble-box {
    background: #081426;
    border: 1px solid #162c4d;
    border-radius: 6px;
    padding: 20px 22px;
    margin: 28px 0 36px;
}

.doc-trouble-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-trouble-title i {
    color: #f59e0b;
}

.doc-trouble-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #94a3b8;
}

.doc-trouble-list strong {
    color: #f1f5f9;
}

/* Bottom Pagination & Discord Banner */
.doc-nav-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-page-card {
    background: #081527;
    border: 1px solid #132a49;
    border-radius: 6px;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.15s ease;
}

.doc-page-card:hover {
    border-color: #ff5500;
    background: #0c1c33;
}

.doc-page-card.next {
    text-align: right;
    align-items: flex-end;
}

.doc-page-card-sub {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-page-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.doc-discord-banner {
    margin-top: 36px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(7, 19, 36, 0.8));
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 6px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.doc-discord-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-discord-text i {
    font-size: 2rem;
    color: #5865F2;
}

.doc-discord-btn {
    background: #5865F2;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
}

.doc-discord-btn:hover {
    background: #4752c4;
}

/* --- Right Sidepanel (On This Page & Quick Actions) --- */
.doc-detail-toc {
    width: 280px;
    flex-shrink: 0;
    background: #060c18;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 36px 20px 80px;
    z-index: 80;
}

.doc-detail-toc::-webkit-scrollbar {
    width: 5px;
}

.doc-detail-toc::-webkit-scrollbar-track {
    background: #060c18;
}

.doc-detail-toc::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 3px;
}

.doc-toc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doc-toc-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff5500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-toc-link {
    font-size: 0.81rem;
    color: #8c9bb5;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
    line-height: 1.35;
    display: block;
}

.doc-toc-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.doc-toc-link.active {
    color: #ff5500;
    border-left-color: #ff5500;
    background: rgba(255, 85, 0, 0.08);
    font-weight: 600;
}

.doc-toc-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-toc-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #091526;
    border: 1px solid #142a49;
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.doc-toc-action-btn:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: #0f233d;
}

.doc-toc-action-btn.discord-action {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.3);
    color: #8a96ff;
}

.doc-toc-action-btn.discord-action:hover {
    background: #5865F2;
    color: #ffffff;
}

.doc-toc-section.feedback-box {
    background: #091526;
    border: 1px solid #142a49;
    border-radius: 6px;
    padding: 14px 16px;
}

.doc-feedback-btns {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.doc-feedback-btn {
    flex: 1;
    background: #0f223a;
    border: 1px solid #1e3a5f;
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.doc-feedback-btn:hover {
    color: #ffffff;
    border-color: #ff5500;
    background: rgba(255, 85, 0, 0.1);
}

.doc-feedback-btn.voted {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
}

.doc-feedback-msg {
    font-size: 0.76rem;
    color: #4ade80;
    margin-top: 8px;
    text-align: center;
}

.doc-toc-section.guide-meta-box {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-toc-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
}

.doc-toc-meta-row .meta-label {
    color: #64748b;
}

.doc-toc-meta-row .meta-val {
    color: #cbd5e1;
    font-weight: 500;
}

.doc-toc-meta-row .status-online {
    color: #4ade80;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .doc-detail-toc {
        display: none;
    }
}

@media (max-width: 900px) {
    .doc-sidebar-mobile-bar {
        display: flex;
    }

    .doc-detail-sidebar {
        position: fixed;
        left: 0;
        top: 96px;
        bottom: 0;
        height: auto;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    }

    .doc-detail-sidebar.mobile-open {
        transform: translateX(0);
    }

    .doc-detail-main {
        padding: 24px 20px 60px;
    }

    .doc-nav-pagination {
        grid-template-columns: 1fr;
    }

    .doc-page-card.next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Documentation Prose Body Styling (Scraped Rich Document HTML)
   ========================================================================== */
.doc-prose-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 20px 0 32px;
}

.doc-prose-content h1,
.doc-prose-content h2,
.doc-prose-content h3,
.doc-prose-content h4 {
    color: #f8fafc;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    scroll-margin-top: 90px;
}

.doc-prose-content h1 {
    font-size: 1.45rem;
    border-bottom: 1px solid #142a49;
    padding-bottom: 10px;
}

.doc-prose-content h2 {
    font-size: 1.25rem;
    border-bottom: 1px solid #142a49;
    padding-bottom: 8px;
}

.doc-prose-content h3 {
    font-size: 1.05rem;
    color: #e2e8f0;
}

.doc-prose-content p {
    margin-bottom: 16px;
    color: #cbd5e1;
}

.doc-prose-content a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.doc-prose-content a:hover {
    color: #ff5500;
}

.doc-prose-content strong {
    color: #ffffff;
    font-weight: 600;
}

.doc-prose-content ul,
.doc-prose-content ol {
    margin: 12px 0 20px 24px;
    color: #cbd5e1;
}

.doc-prose-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.doc-prose-content code {
    background: #030812;
    border: 1px solid #1a365d;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.doc-prose-content pre {
    background: #030812 !important;
    border: 1px solid #162c4a;
    border-radius: 8px;
    padding: 16px 18px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 18px 0 24px;
}

.doc-prose-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.doc-prose-content .highlight {
    margin: 18px 0 24px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #162c4a;
}

.doc-prose-content .highlight pre {
    margin: 0;
    border: none;
    border-radius: 0;
}

.doc-prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #162c4a;
    margin: 20px 0;
    display: block;
    background: #09172a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.doc-prose-content iframe {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border: 1px solid #162c4a;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.doc-prose-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.88rem;
    background: #09172a;
    border: 1px solid #162c4a;
    border-radius: 6px;
    overflow: hidden;
}

.doc-prose-content th,
.doc-prose-content td {
    padding: 10px 14px;
    border: 1px solid #142a49;
    text-align: left;
}

.doc-prose-content th {
    background: #0d1e35;
    color: #f8fafc;
    font-weight: 600;
}

.doc-prose-content blockquote {
    border-left: 3px solid #ff5500;
    padding: 10px 16px;
    margin: 16px 0;
    background: rgba(255, 85, 0, 0.05);
    border-radius: 0 6px 6px 0;
    color: #cbd5e1;
}

.doc-prose-content hr {
    border: none;
    border-top: 1px solid #142a49;
    margin: 32px 0;
}


