        :root {
            --primary: #008FD0;
            --primary-hover: #0077b0;
            --primary-light: rgba(0, 143, 208, 0.12);
            --accent: #10b981;
            --accent-purple: #8b5cf6;
            --accent-amber: #f59e0b;
            --dark-bg: #090e17;
            --dark-surface: #0f172a;
            --card-bg: #141f33;
            --card-border: #1e2e4a;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --border: #243552;
            --gradient-accent: linear-gradient(135deg, #008FD0 0%, #10b981 100%);
            --gradient-card: linear-gradient(180deg, rgba(20, 31, 51, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
        }

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

        html, body {
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--dark-bg);
            color: var(--text-main);
            line-height: 1.65;
        }

        /* Top Announcement */
        .top-banner {
            background: linear-gradient(90deg, #0284c7 0%, #0d9488 100%);
            color: white;
            font-size: 0.84rem;
            font-weight: 500;
            text-align: center;
            padding: 7px 14px;
            line-height: 1.4;
        }

        .top-banner a {
            color: #fff;
            text-decoration: underline;
            font-weight: 700;
            margin-left: 4px;
        }

        .banner-desktop { display: inline; }
        .banner-mobile { display: none; }

        /* Desktop Navigation */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 6%;
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(16px);
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(9, 14, 23, 0.92);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.35rem;
            font-weight: 800;
            color: #fff;
            text-decoration: none;
            letter-spacing: -0.02em;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .logo img {
            height: 36px;
            width: auto;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .logo-badge {
            background: var(--gradient-accent);
            color: white;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 22px;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.92rem;
            transition: color 0.2s ease;
            white-space: nowrap;
        }

        .nav-links a:hover {
            color: #fff;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .btn-mhrgl {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(0, 143, 208, 0.15);
            border: 1px solid rgba(0, 143, 208, 0.4);
            color: #38bdf8;
            padding: 8px 14px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.86rem;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-mhrgl:hover {
            background: rgba(0, 143, 208, 0.25);
            border-color: #38bdf8;
            color: #fff;
            transform: translateY(-1px);
        }

        .btn-github {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            color: #fff;
            padding: 8px 14px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.86rem;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-github:hover {
            background: #1e2c45;
            border-color: #38bdf8;
        }

        /* Hamburger Toggle Button */
        .mobile-toggle-btn {
            display: none;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 8px 10px;
            cursor: pointer;
            flex-direction: column;
            gap: 4px;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .mobile-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: #38bdf8;
        }

        .mobile-toggle-btn span {
            display: block;
            width: 20px;
            height: 2px;
            background: #fff;
            border-radius: 2px;
            transition: all 0.25s;
        }

        /* Mobile Drawer & Backdrop */
        .mobile-drawer {
            position: fixed;
            top: 0;
            right: -320px;
            width: 300px;
            max-width: 85vw;
            height: 100vh;
            background: #0d1524;
            border-left: 1px solid var(--border);
            z-index: 2000;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            overflow-y: auto;
            box-shadow: -10px 0 30px rgba(0,0,0,0.6);
        }

        .mobile-drawer.open {
            right: 0;
        }

        .mobile-drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            padding-bottom: 16px;
        }

        .mobile-drawer-close {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1.8rem;
            cursor: pointer;
            padding: 4px 8px;
            line-height: 1;
        }

        .mobile-drawer-close:hover { color: #fff; }

        .mobile-nav-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-nav-item {
            color: #cbd5e1;
            text-decoration: none;
            font-size: 0.98rem;
            font-weight: 600;
            display: block;
            padding: 9px 12px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .mobile-nav-item:hover {
            color: #38bdf8;
            background: rgba(0, 143, 208, 0.1);
        }

        .mobile-drawer-actions {
            margin-top: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
        }

        .mobile-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.65);
            backdrop-filter: blur(4px);
            z-index: 1999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .mobile-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }

        /* Hero */
        .hero {
            padding: 80px 6% 60px;
            text-align: center;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 700px;
            height: 500px;
            background: radial-gradient(circle, rgba(0, 143, 208, 0.18) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
            pointer-events: none;
            z-index: -1;
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 6px 18px;
            border-radius: 30px;
            background: rgba(0, 143, 208, 0.12);
            border: 1px solid rgba(0, 143, 208, 0.3);
            color: #38bdf8;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 24px;
        }

        .hero-tag a {
            color: #10b981;
            text-decoration: underline;
            font-weight: 700;
        }

        .hero h1 {
            font-size: 3.8rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            line-height: 1.12;
            margin-bottom: 24px;
            background: linear-gradient(180deg, #ffffff 10%, #cbd5e1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero h1 span {
            background: var(--gradient-accent);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero p {
            font-size: 1.25rem;
            color: var(--text-muted);
            max-width: 880px;
            margin: 0 auto 36px;
            line-height: 1.7;
        }

        .hero-actions {
            display: flex;
            justify-content: center;
            gap: 14px;
            flex-wrap: wrap;
            margin-bottom: 48px;
        }

        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--primary);
            color: #fff;
            padding: 14px 30px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 1rem;
            text-decoration: none;
            transition: all 0.25s ease;
            box-shadow: 0 4px 24px rgba(0, 143, 208, 0.4);
        }

        .btn-primary:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 143, 208, 0.5);
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            color: #fff;
            padding: 14px 26px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-secondary:hover {
            background: #1e2c45;
            border-color: #38bdf8;
            transform: translateY(-1px);
        }

        /* Terminal Window */
        .terminal-container {
            max-width: 880px;
            margin: 0 auto;
            background: #070c14;
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
            text-align: left;
        }

        .terminal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 18px;
            background: #0f1826;
            border-bottom: 1px solid var(--border);
        }

        .terminal-dots {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .terminal-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .dot-red { background: #ef4444; }
        .dot-yellow { background: #f59e0b; }
        .dot-green { background: #10b981; }

        .terminal-title {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
        }

        .terminal-copy {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #cbd5e1;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            cursor: pointer;
            font-family: 'JetBrains Mono', monospace;
            transition: all 0.2s;
        }

        .terminal-copy:hover {
            background: rgba(255, 255, 255, 0.16);
            color: #fff;
        }

        .terminal-body {
            padding: 24px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.94rem;
            line-height: 1.75;
            color: #e2e8f0;
            overflow-x: auto;
        }

        .terminal-comment { color: #64748b; }
        .terminal-cmd { color: #38bdf8; font-weight: 600; }
        .terminal-success { color: #10b981; }
        .terminal-yellow { color: #f59e0b; }

        /* Section Layout */
        section {
            padding: 90px 6%;
            border-top: 1px solid var(--border);
        }

        .section-header {
            text-align: center;
            max-width: 860px;
            margin: 0 auto 55px;
        }

        .section-badge {
            display: inline-block;
            background: rgba(0, 143, 208, 0.15);
            border: 1px solid rgba(0, 143, 208, 0.3);
            color: #38bdf8;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 4px 14px;
            border-radius: 20px;
            margin-bottom: 16px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            margin-bottom: 16px;
            color: #fff;
        }

        .section-header p {
            color: var(--text-muted);
            font-size: 1.15rem;
            line-height: 1.65;
        }

        /* Architectural Rationale */
        .rationale-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 26px;
            max-width: 1280px;
            margin: 0 auto;
        }

        .rationale-card {
            background: var(--gradient-card);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 32px;
            position: relative;
            transition: all 0.3s ease;
        }

        .rationale-card:hover {
            border-color: #008FD0;
            transform: translateY(-4px);
            box-shadow: 0 16px 36px rgba(0, 143, 208, 0.15);
        }

        .rationale-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(0, 143, 208, 0.18);
            border: 1px solid rgba(0, 143, 208, 0.35);
            color: #38bdf8;
            font-weight: 800;
            font-size: 1.1rem;
            margin-bottom: 18px;
        }

        .rationale-card h3 {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 14px;
            color: #fff;
            letter-spacing: -0.01em;
        }

        .rationale-block {
            margin-bottom: 14px;
        }

        .rationale-label {
            font-size: 0.76rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .label-problem { color: #f87171; }
        .label-solution { color: #34d399; }
        .label-impact { color: #38bdf8; }

        .rationale-text {
            color: var(--text-muted);
            font-size: 0.93rem;
            line-height: 1.6;
        }

        /* Architecture Map */
        .arch-diagram-box {
            max-width: 1100px;
            margin: 0 auto;
            background: #080d17;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .arch-flow {
            display: flex;
            flex-direction: column;
            gap: 18px;
            min-width: 720px;
        }

        .arch-layer {
            background: #0f1826;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 18px 22px;
        }

        .arch-layer-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #94a3b8;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .arch-node-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }

        .arch-node {
            background: #162238;
            border: 1px solid #223555;
            border-radius: 10px;
            padding: 12px 16px;
            transition: all 0.2s;
        }

        .arch-node:hover {
            border-color: #38bdf8;
            background: #1c2b47;
        }

        .arch-node-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
        }

        .arch-node-desc {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
        }

        .arch-connector {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #38bdf8;
            font-size: 0.88rem;
            font-weight: 600;
            gap: 8px;
        }

        /* ===================================================
           REBUILT: ANDROID SHOWCASE & SCREENSHOT SELECTOR
        =================================================== */
        .android-showcase {
            background: #0a101d;
            position: relative;
        }

        .android-section-wrapper {
            max-width: 1240px;
            margin: 0 auto;
        }

        /* Screen Selector Tabs */
        .screen-tabs-bar {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            margin: 0 auto 36px;
            max-width: 900px;
        }

        .screen-tab-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #111a2e;
            border: 1.5px solid var(--border);
            color: #94a3b8;
            padding: 10px 18px;
            border-radius: 30px;
            font-size: 0.92rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            font-family: inherit;
        }

        .screen-tab-btn:hover {
            color: #fff;
            border-color: #38bdf8;
            background: #18243d;
        }

        .screen-tab-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: #38bdf8;
            box-shadow: 0 4px 16px rgba(0, 143, 208, 0.4);
        }

        /* Interactive Showcase Stage */
        .showcase-stage {
            display: grid;
            grid-template-columns: 340px 1fr;
            gap: 48px;
            align-items: center;
            background: var(--gradient-card);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            padding: 40px;
            margin-bottom: 40px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
        }

        /* Smartphone Frame */
        .phone-frame-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .phone-hardware-frame {
            width: 280px;
            max-width: 100%;
            background: #000;
            border-radius: 36px;
            padding: 12px;
            border: 3.5px solid #293d61;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
            position: relative;
        }

        .phone-notch {
            position: absolute;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 10px;
            background: #162030;
            border-radius: 10px;
            z-index: 10;
        }

        .phone-screen-viewport {
            border-radius: 26px;
            overflow: hidden;
            background: #0f172a;
            aspect-ratio: 9 / 19.5;
            position: relative;
        }

        .phone-screen-viewport img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: opacity 0.3s ease;
        }

        /* Screen Details Description */
        .screen-meta-panel {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .screen-badge-live {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.76rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 4px 12px;
            border-radius: 20px;
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #34d399;
            width: fit-content;
        }

        .screen-meta-title {
            font-size: 2rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .screen-meta-desc {
            color: var(--text-muted);
            font-size: 1.05rem;
            line-height: 1.7;
        }

        .screen-meta-bullets {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin: 12px 0 20px;
        }

        .screen-meta-bullet {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            color: #cbd5e1;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .bullet-icon {
            color: #38bdf8;
            font-size: 1.1rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .stage-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

        /* Android Core Highlights Grid */
        .android-features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 22px;
            margin-top: 36px;
        }

        .af-card {
            background: #0d1524;
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 24px;
            transition: all 0.2s ease;
        }

        .af-card:hover {
            border-color: #38bdf8;
            transform: translateY(-3px);
        }

        .af-icon {
            font-size: 1.6rem;
            margin-bottom: 12px;
            display: inline-block;
        }

        .af-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 6px;
        }

        .af-desc {
            color: var(--text-muted);
            font-size: 0.88rem;
            line-height: 1.6;
        }

        /* ===================================================
           MOBILE DOWNLOADS HUB
        =================================================== */
        .mobile-downloads-hub {
            margin-top: 42px;
            background: linear-gradient(145deg, #0e172a 0%, #080d1a 100%);
            border: 1.5px solid rgba(56, 189, 248, 0.25);
            border-radius: 20px;
            padding: 36px 30px;
            box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
            position: relative;
        }

        .downloads-hub-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .downloads-hub-header .hub-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.3);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.82rem;
            font-weight: 700;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .downloads-hub-header h3 {
            font-size: 1.75rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 8px;
        }

        .downloads-hub-header p {
            color: #94a3b8;
            font-size: 0.95rem;
            max-width: 680px;
            margin: 0 auto;
            line-height: 1.5;
        }

        .downloads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
            margin-bottom: 24px;
        }

        .download-card {
            background: #111a2e;
            border: 1.5px solid var(--border);
            border-radius: 16px;
            padding: 26px 22px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.25s ease;
        }

        .download-card.android:hover {
            border-color: #10b981;
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
        }

        .download-card.ios:hover {
            border-color: #a855f7;
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(168, 85, 247, 0.15);
        }

        .download-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 14px;
        }

        .download-card-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            flex-shrink: 0;
        }

        .download-card.android .download-card-icon {
            background: rgba(16, 185, 129, 0.14);
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .download-card.ios .download-card-icon {
            background: rgba(168, 85, 247, 0.14);
            border: 1px solid rgba(168, 85, 247, 0.3);
        }

        .download-card-info h4 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
        }

        .download-card-badge {
            font-size: 0.75rem;
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 600;
            display: inline-block;
        }

        .download-card.android .download-card-badge {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
        }

        .download-card.ios .download-card-badge {
            background: rgba(168, 85, 247, 0.15);
            color: #c084fc;
        }

        .download-specs {
            list-style: none;
            padding: 0;
            margin: 12px 0 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .download-specs li {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #cbd5e1;
            font-size: 0.88rem;
        }

        .download-actions-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .btn-dl-primary {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 13px 18px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.95rem;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-dl-primary.android {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #fff;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
        }

        .btn-dl-primary.android:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            transform: translateY(-2px);
        }

        .btn-dl-primary.ios {
            background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
            color: #fff;
            box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
        }

        .btn-dl-primary.ios:hover {
            background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
            transform: translateY(-2px);
        }

        .btn-dl-sub {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.85rem;
            color: #94a3b8;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-dl-sub:hover {
            color: #fff;
            border-color: #38bdf8;
            background: rgba(255, 255, 255, 0.08);
        }

        .downloads-hub-note {
            background: rgba(15, 23, 42, 0.6);
            border: 1px dashed rgba(56, 189, 248, 0.3);
            border-radius: 12px;
            padding: 14px 18px;
            color: #94a3b8;
            font-size: 0.84rem;
            line-height: 1.5;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        /* Features Section */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 26px;
            max-width: 1240px;
            margin: 0 auto;
        }

        .feature-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 30px;
            transition: all 0.25s ease;
        }

        .feature-card:hover {
            border-color: #38bdf8;
            transform: translateY(-4px);
        }

        .feature-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            background: rgba(0, 143, 208, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 18px;
        }

        .feature-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: #fff;
        }

        .feature-card p {
            color: var(--text-muted);
            font-size: 0.94rem;
            line-height: 1.6;
        }

        /* Comparison Table */
        .table-container {
            max-width: 1050px;
            margin: 0 auto;
            overflow-x: auto;
            background: #090e17;
            border: 1px solid var(--border);
            border-radius: 14px;
            -webkit-overflow-scrolling: touch;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.94rem;
            min-width: 600px;
        }

        th, td {
            padding: 16px 20px;
            border-bottom: 1px solid #1a273d;
        }

        th {
            background: #101929;
            color: #cbd5e1;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.78rem;
            letter-spacing: 0.06em;
        }

        tr:last-child td { border-bottom: none; }

        td.highlight {
            background: rgba(0, 143, 208, 0.08);
            color: #38bdf8;
            font-weight: 600;
        }

        /* Developer */
        .developer-section {
            background: radial-gradient(circle at center, rgba(0, 143, 208, 0.12) 0%, rgba(9, 14, 23, 0.9) 70%);
        }

        .dev-card {
            max-width: 920px;
            margin: 0 auto;
            background: var(--gradient-card);
            border: 1px solid rgba(0, 143, 208, 0.4);
            border-radius: 20px;
            padding: 44px;
            display: grid;
            grid-template-columns: 130px 1fr;
            gap: 36px;
            align-items: center;
            box-shadow: 0 20px 50px rgba(0, 143, 208, 0.15);
        }

        .dev-avatar {
            width: 120px;
            height: 120px;
            border-radius: 24px;
            background: linear-gradient(135deg, #008FD0, #10b981);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            font-weight: 800;
            box-shadow: 0 8px 24px rgba(0, 143, 208, 0.4);
        }

        .dev-info h3 {
            font-size: 1.8rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 6px;
        }

        .dev-domain {
            display: inline-block;
            color: #38bdf8;
            font-weight: 700;
            font-size: 1.05rem;
            margin-bottom: 14px;
            text-decoration: none;
        }

        .dev-domain:hover {
            text-decoration: underline;
        }

        .dev-bio {
            color: var(--text-muted);
            font-size: 0.96rem;
            line-height: 1.65;
            margin-bottom: 20px;
        }

        .dev-links {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .dev-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 18px;
            border-radius: 8px;
            font-size: 0.88rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
        }

        .dev-btn-main {
            background: var(--primary);
            color: white;
        }

        .dev-btn-main:hover {
            background: var(--primary-hover);
        }

        .dev-btn-outline {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            color: #cbd5e1;
        }

        .dev-btn-outline:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        /* Footer */
        footer {
            border-top: 1px solid var(--border);
            padding: 50px 6% 36px;
            background: #060a10;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            max-width: 1240px;
            margin: 0 auto 40px;
        }

        .footer-brand h4 {
            font-size: 1.2rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-brand p {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .footer-col h5 {
            color: #fff;
            font-size: 0.92rem;
            font-weight: 700;
            margin-bottom: 16px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .footer-col ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-col a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.88rem;
            transition: color 0.2s;
        }

        .footer-col a:hover {
            color: #38bdf8;
        }

        .footer-bottom {
            border-top: 1px solid #141f30;
            padding-top: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #64748b;
            font-size: 0.85rem;
            flex-wrap: wrap;
            gap: 16px;
            max-width: 1240px;
            margin: 0 auto;
        }

        .footer-bottom a {
            color: #94a3b8;
            text-decoration: none;
        }

        .footer-bottom a:hover {
            color: #38bdf8;
        }

        /* Responsive Breakpoints & Mobile Optimization */
        @media (max-width: 980px) {
            .hero h1 { font-size: 2.8rem; }
            .showcase-stage {
                grid-template-columns: 1fr;
                gap: 32px;
                padding: 30px 24px;
                text-align: center;
            }
            .screen-meta-panel {
                align-items: center;
            }
            .screen-meta-bullets {
                text-align: left;
            }
            .stage-actions {
                justify-content: center;
            }
            .dev-card { grid-template-columns: 1fr; text-align: center; }
            .dev-avatar { margin: 0 auto; }
            .dev-links { justify-content: center; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 768px) {
            .banner-desktop { display: none; }
            .banner-mobile { display: inline; font-size: 0.78rem; }
            .top-banner { padding: 6px 10px; }

            nav {
                padding: 12px 4%;
            }
            .nav-links { display: none; }
            .desktop-only { display: none; }
            .mobile-toggle-btn { display: flex; }

            .logo {
                font-size: 1.15rem;
                gap: 8px;
            }
            .logo img {
                height: 30px;
            }
            .logo-badge {
                font-size: 0.65rem;
                padding: 2px 6px;
            }

            .btn-mhrgl {
                padding: 6px 10px;
                font-size: 0.78rem;
            }

            section {
                padding: 60px 4%;
            }

            .hero {
                padding: 40px 4% 30px;
            }
            .hero-tag {
                max-width: 96%;
                font-size: 0.76rem;
                padding: 5px 12px;
                line-height: 1.45;
                margin-bottom: 18px;
            }
            .hero h1 {
                font-size: 2.1rem;
                line-height: 1.18;
                margin-bottom: 16px;
            }
            .hero p {
                font-size: 0.96rem;
                line-height: 1.6;
                margin-bottom: 24px;
                padding: 0 4px;
            }
            .hero-actions {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
                max-width: 320px;
                margin: 0 auto 30px;
            }
            .btn-primary, .btn-secondary {
                width: 100%;
                justify-content: center;
                padding: 12px 20px;
                font-size: 0.94rem;
            }

            .terminal-container {
                margin: 0;
                border-radius: 10px;
            }
            .terminal-header {
                padding: 10px 14px;
            }
            .terminal-body {
                padding: 16px 12px;
                font-size: 0.8rem;
                line-height: 1.6;
            }

            .section-header {
                margin-bottom: 36px;
            }
            .section-header h2 {
                font-size: 1.95rem;
                line-height: 1.2;
            }
            .section-header p {
                font-size: 0.95rem;
            }

            .rationale-grid {
                grid-template-columns: 1fr;
                gap: 18px;
            }
            .rationale-card {
                padding: 22px 18px;
            }
            .rationale-card h3 {
                font-size: 1.18rem;
            }

            /* Android Showcase Mobile Tweaks */
            .screen-tabs-bar {
                gap: 6px;
                margin-bottom: 24px;
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 6px;
                -webkit-overflow-scrolling: touch;
                flex-wrap: nowrap;
            }
            .screen-tab-btn {
                padding: 8px 14px;
                font-size: 0.82rem;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .showcase-stage {
                padding: 24px 16px;
                border-radius: 18px;
            }
            .phone-hardware-frame {
                width: 240px;
                border-radius: 30px;
                padding: 10px;
                border-width: 3px;
            }
            .phone-screen-viewport {
                border-radius: 22px;
            }
            .screen-meta-title {
                font-size: 1.45rem;
            }
            .screen-meta-desc {
                font-size: 0.92rem;
            }
            .screen-meta-bullets {
                gap: 10px;
                margin: 10px 0 16px;
            }
            .screen-meta-bullet {
                font-size: 0.88rem;
            }
            .stage-actions {
                flex-direction: column;
                width: 100%;
            }
            .stage-actions .btn-primary,
            .stage-actions .btn-secondary {
                width: 100%;
            }

            .android-features-grid {
                grid-template-columns: 1fr;
                gap: 14px;
            }
            .af-card {
                padding: 18px 16px;
            }

            .features-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .feature-card {
                padding: 22px 18px;
            }

            .arch-diagram-box {
                padding: 18px 14px;
                border-radius: 12px;
            }

            .dev-card {
                padding: 28px 18px;
            }
            .dev-avatar {
                width: 90px;
                height: 90px;
                font-size: 2.2rem;
                border-radius: 18px;
            }
            .dev-info h3 {
                font-size: 1.45rem;
            }

            .footer-grid { grid-template-columns: 1fr; gap: 28px; }
        }

/* ==========================================================================
   DOCUMENTATION & MULTI-PAGE PORTAL EXTENSIONS
   ========================================================================== */

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
    font-family: inherit;
}

.nav-dropdown-btn:hover, .nav-dropdown:hover .nav-dropdown-btn {
    color: #fff;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 260px;
    background: #0d1524;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-dropdown-item:hover, .nav-dropdown-item.active {
    background: rgba(0, 143, 208, 0.12);
    color: #38bdf8;
    transform: translateX(3px);
}

.nav-dropdown-item .item-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-links a.active {
    color: #38bdf8 !important;
    font-weight: 700;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* Documentation Layout Wrapper */
.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 240px;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 4% 80px;
}

.docs-layout.no-toc {
    grid-template-columns: 280px minmax(0, 1fr);
}

/* Sidebar Navigation */
.docs-sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.docs-sidebar::-webkit-scrollbar {
    width: 5px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.sidebar-search {
    margin-bottom: 20px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    background: #0d1524;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px 8px 34px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 143, 208, 0.2);
}

.sidebar-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.sidebar-group {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 10px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sidebar-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-menu a.active {
    color: #38bdf8;
    background: rgba(0, 143, 208, 0.12);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
}

.sidebar-badge {
    margin-left: auto;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-weight: 700;
}

/* Docs Main Content */
.docs-content {
    min-width: 0;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.docs-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: #38bdf8;
}

.docs-header {
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.docs-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.docs-header .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Docs Typography & Sections */
.docs-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.docs-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.docs-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.docs-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.docs-section p {
    margin-bottom: 16px;
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.7;
}

.docs-section ul, .docs-section ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: #cbd5e1;
}

.docs-section li {
    margin-bottom: 8px;
    line-height: 1.65;
}

/* Callouts / Alerts */
.callout {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 0;
    border-left: 4px solid;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.callout-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.callout-body {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.6;
}

.callout-body strong {
    color: #fff;
}

.callout-info {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
}

.callout-success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.callout-warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.callout-danger {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.callout-tip {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

/* Docs Code Block */
.docs-code-box {
    background: #070b12;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.docs-code-header {
    background: #0d1524;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.docs-code-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.docs-code-copy:hover {
    background: var(--primary);
    color: #fff;
}

.docs-code-body {
    padding: 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.docs-code-body code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Documentation Tables */
.docs-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0d1524;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.docs-table th {
    background: #141f33;
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.docs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    vertical-align: middle;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.code-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 143, 208, 0.12);
    border: 1px solid rgba(0, 143, 208, 0.3);
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.tag-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-blue { background: rgba(0, 143, 208, 0.15); color: #38bdf8; }
.tag-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.tag-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Table of Contents (Right Sticky) */
.docs-toc {
    position: sticky;
    top: 90px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    font-size: 0.82rem;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.toc-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
    display: block;
    line-height: 1.4;
}

.toc-list a:hover, .toc-list a.active {
    color: #38bdf8;
    font-weight: 600;
}

/* Pagination (Next / Prev) */
.docs-pagination {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    border-radius: 10px;
    background: #0d1524;
    border: 1px solid var(--border);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 320px;
}

.pagination-btn:hover {
    border-color: var(--primary);
    background: #141f33;
    transform: translateY(-2px);
}

.pagination-btn.next {
    margin-left: auto;
    text-align: right;
}

.pagination-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.pagination-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
}

/* Responsive Docs */
@media (max-width: 1200px) {
    .docs-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }
    .docs-toc {
        display: none;
    }
}

@media (max-width: 860px) {
    .docs-layout {
        grid-template-columns: 1fr;
        padding: 20px 4% 60px;
    }
    .docs-sidebar {
        display: none;
    }
    .docs-header h1 {
        font-size: 1.8rem;
    }
    .docs-pagination {
        flex-direction: column;
    }
    .pagination-btn {
        max-width: 100%;
    }
    .pagination-btn.next {
        text-align: left;
    }
}

/* ==========================================================================
   MULTI-LANGUAGE (i18n) SWITCHER & VISIBILITY
   ========================================================================== */

.lang-selector {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 143, 208, 0.12);
}

.lang-btn svg {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.lang-selector.open .lang-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 175px;
    background: #0d1524;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    gap: 3px;
    z-index: 1200;
}

.lang-selector.open .lang-dropdown {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.lang-option:hover {
    background: rgba(0, 143, 208, 0.12);
    color: #38bdf8;
}

.lang-option.active {
    color: #38bdf8;
    font-weight: 700;
    background: rgba(0, 143, 208, 0.15);
}

.lang-option .check {
    margin-left: auto;
    font-size: 0.85rem;
    display: none;
}

.lang-option.active .check {
    display: inline;
}

/* Mobile Lang Bar */
.mobile-lang-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-lang-btn {
    flex: 1;
    padding: 9px 6px;
    background: #070b12;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}

.mobile-lang-btn.active {
    border-color: var(--primary);
    background: rgba(0, 143, 208, 0.18);
    color: #38bdf8;
}

/* Language Visibility Filtering */
html[data-lang="tr"] [data-lang]:not([data-lang="tr"]) { display: none !important; }
html[data-lang="en"] [data-lang]:not([data-lang="en"]) { display: none !important; }
html[data-lang="de"] [data-lang]:not([data-lang="de"]) { display: none !important; }

/* Retain inline flow for inline tags */
html[data-lang="tr"] span[data-lang="tr"],
html[data-lang="tr"] a[data-lang="tr"],
html[data-lang="tr"] strong[data-lang="tr"],
html[data-lang="tr"] em[data-lang="tr"],
html[data-lang="tr"] code[data-lang="tr"] { display: inline !important; }

html[data-lang="en"] span[data-lang="en"],
html[data-lang="en"] a[data-lang="en"],
html[data-lang="en"] strong[data-lang="en"],
html[data-lang="en"] em[data-lang="en"],
html[data-lang="en"] code[data-lang="en"] { display: inline !important; }

html[data-lang="de"] span[data-lang="de"],
html[data-lang="de"] a[data-lang="de"],
html[data-lang="de"] strong[data-lang="de"],
html[data-lang="de"] em[data-lang="de"],
html[data-lang="de"] code[data-lang="de"] { display: inline !important; }
