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

        :root {
            --bg-deep: #030712;
            --bg-grid: #090f1d;
            --bg-card: rgba(17, 24, 39, 0.65);
            --bg-code: #090d16;
            --border-glow: rgba(6, 182, 212, 0.15);
            --border-card: rgba(255, 255, 255, 0.05);
            --text-title: #f9fafb;
            --text-body: #9ca3af;
            --text-desc: #d1d5db;
            --accent-cyan: #06b6d4;
            --accent-cyan-glow: rgba(6, 182, 212, 0.4);
            --accent-purple: #8b5cf6;
            --accent-pink: #ec4899;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --sidebar-width: 280px;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-deep);
            color: var(--text-desc);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Ambient glowing background */
        .bg-layer {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: linear-gradient(to bottom, rgba(3, 7, 18, 0.8), rgba(3, 7, 18, 0.95)), url('../images/tech_cyber_bg.png');
            background-size: cover;
            background-position: center;
            z-index: -2;
        }

        .ambient-glow {
            position: fixed;
            top: -10%; left: 30%;
            width: 600px; height: 600px;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
            z-index: -1;
            filter: blur(80px);
            pointer-events: none;
            animation: floatGlow 15s ease-in-out infinite alternate;
        }

        .ambient-glow-cyan {
            position: fixed;
            bottom: -10%; right: 20%;
            width: 500px; height: 500px;
            background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
            z-index: -1;
            filter: blur(80px);
            pointer-events: none;
            animation: floatGlowCyan 12s ease-in-out infinite alternate;
        }

        @keyframes floatGlow {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(50px, 30px) scale(1.1); }
        }

        @keyframes floatGlowCyan {
            0% { transform: translate(0, 0) scale(1.1); }
            100% { transform: translate(-40px, -40px) scale(0.9); }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-deep);
        }
        ::-webkit-scrollbar-thumb {
            background: #1f2937;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-cyan);
        }

        /* Layout */
        .wrapper {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar Styling */
        .sidebar {
            width: var(--sidebar-width);
            background: rgba(3, 7, 18, 0.85);
            border-right: 1px solid var(--border-card);
            position: fixed;
            top: 0; bottom: 0; left: 0;
            padding: 30px 24px;
            z-index: 10;
            backdrop-filter: blur(20px);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 40px;
            text-decoration: none;
        }

        .brand-logo {
            width: 32px; height: 32px;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            color: #fff;
            font-size: 1.1rem;
            font-family: 'Outfit', sans-serif;
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
        }

        .brand-text {
            font-family: 'Outfit', sans-serif;
            font-size: 1.25rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.5px;
        }

        .brand-text span {
            color: var(--accent-cyan);
        }

        .nav-menu {
            list-style: none;
            flex-grow: 1;
        }

        .nav-header {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #4b5563;
            margin: 20px 0 10px 8px;
            font-weight: 700;
        }

        .nav-item a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            color: #9ca3af;
            text-decoration: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            margin-bottom: 4px;
            border: 1px solid transparent;
        }

        .nav-item a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.05);
        }

        .nav-item.active a {
            color: #fff;
            background: rgba(6, 182, 212, 0.08);
            border-color: rgba(6, 182, 212, 0.2);
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
        }

        .sidebar-footer {
            font-size: 0.75rem;
            color: #4b5563;
            padding-top: 20px;
            border-top: 1px solid var(--border-card);
        }

        /* Main Content Area */
        .content-area {
            margin-left: var(--sidebar-width);
            flex-grow: 1;
            padding: 50px 60px;
            max-width: 1400px;
        }

        @media (max-width: 1024px) {
            .sidebar { display: none; }
            .content-area { margin-left: 0; padding: 30px 20px; }
        }

        /* Hero Header */
        .hero {
            margin-bottom: 50px;
            position: relative;
        }

        .badge-live {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.25);
            color: var(--accent-green);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .badge-live::before {
            content: '';
            width: 8px; height: 8px;
            background: var(--accent-green);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 8px var(--accent-green);
            animation: pulseGlow 1.8s infinite;
        }

        @keyframes pulseGlow {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(1.3); }
        }

        .hero h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 3rem;
            font-weight: 900;
            color: #fff;
            letter-spacing: -1px;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #fff 40%, var(--accent-cyan));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero p {
            font-size: 1.1rem;
            color: var(--text-desc);
            max-width: 800px;
            line-height: 1.7;
        }

        /* Dashboard Overview Grid */
        .status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }

        .status-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 16px;
            padding: 24px;
            backdrop-filter: blur(16px);
            transition: all 0.3s ease;
        }

        .status-card:hover {
            border-color: rgba(6, 182, 212, 0.2);
            transform: translateY(-2px);
        }

        .status-card-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .status-card-value {
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: #fff;
        }

        .status-card-value span {
            color: var(--accent-cyan);
        }

        /* Info Alerts */
        .alert {
            background: rgba(6, 182, 212, 0.05);
            border: 1px solid rgba(6, 182, 212, 0.15);
            padding: 20px 24px;
            border-radius: 16px;
            margin-bottom: 40px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }

        .alert-icon {
            color: var(--accent-cyan);
            font-size: 1.3rem;
            font-weight: 700;
            line-height: 1;
        }

        .alert-content h4 {
            color: #fff;
            margin-bottom: 6px;
            font-weight: 600;
        }

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

        /* Documentation Sections Layout */
        .section-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 40px;
            backdrop-filter: blur(16px);
            position: relative;
        }

        .section-card h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-card h2::before {
            content: '';
            width: 4px; height: 24px;
            background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
            border-radius: 2px;
            display: inline-block;
        }

        .section-card p {
            color: var(--text-body);
            font-size: 0.95rem;
            margin-bottom: 24px;
            max-width: 900px;
        }

        /* Endpoint URL Box */
        .endpoint-box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-code);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 16px 20px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.95rem;
            margin-bottom: 30px;
            overflow-x: auto;
        }

        .endpoint-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .method {
            background: rgba(6, 182, 212, 0.15);
            color: var(--accent-cyan);
            border: 1px solid rgba(6, 182, 212, 0.3);
            padding: 4px 12px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.75rem;
            letter-spacing: 0.5px;
        }

        .url-text {
            color: #e5e7eb;
        }

        /* Tables */
        .table-wrapper {
            overflow-x: auto;
            margin-bottom: 30px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .params-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.9rem;
            background: rgba(3, 7, 18, 0.2);
        }

        .params-table th, .params-table td {
            padding: 14px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .params-table th {
            color: #9ca3af;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.02);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .params-table td {
            color: var(--text-desc);
        }

        .params-table code {
            font-family: 'JetBrains Mono', monospace;
            color: var(--accent-cyan);
            background: rgba(6, 182, 212, 0.08);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.85rem;
        }

        .required-badge {
            color: var(--accent-pink);
            background: rgba(236, 72, 153, 0.08);
            border: 1px solid rgba(236, 72, 153, 0.2);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .optional-badge {
            color: #6b7280;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        /* Two Column Layout (Doc Info + Code Block) */
        .doc-split {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 30px;
        }

        @media (max-width: 1200px) {
            .doc-split { grid-template-columns: 1fr; }
        }

        /* Code Block Wrapper */
        .code-container {
            background: var(--bg-code);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            max-height: 550px;
        }

        .code-tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.02);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 0 10px;
        }

        .code-tab {
            padding: 14px 20px;
            color: #6b7280;
            background: none;
            border: none;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
            font-family: 'Outfit', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .code-tab:hover {
            color: #d1d5db;
        }

        .code-tab.active {
            color: var(--accent-cyan);
            border-bottom-color: var(--accent-cyan);
        }

        .code-content-wrapper {
            position: relative;
            flex-grow: 1;
            overflow-y: auto;
            overflow-x: auto;
        }

        .code-content-wrapper pre {
            padding: 24px;
            margin: 0;
        }

        .code-content-wrapper code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            color: #93c5fd;
        }

        /* Code syntax styling */
        .syntax-keyword { color: #f472b6; }
        .syntax-string { color: #34d399; }
        .syntax-number { color: #fbbf24; }
        .syntax-comment { color: #4b5563; }
        .syntax-variable { color: #818cf8; }

        /* Security section styling */
        .security-list {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 24px;
        }

        .security-item {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .security-item:hover {
            border-color: rgba(239, 68, 68, 0.2);
            background: rgba(239, 68, 68, 0.02);
        }

        .security-item h4 {
            color: #fff;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
        }

        .security-item h4 .icon-sec {
            color: var(--accent-red);
        }

        .security-item p {
            font-size: 0.85rem;
            color: var(--text-body);
            line-height: 1.5;
            margin-bottom: 0;
        }

        /* Footer */
        .main-footer {
            margin-left: var(--sidebar-width);
            border-top: 1px solid var(--border-card);
            padding: 40px 0;
            text-align: center;
            font-size: 0.85rem;
            color: #4b5563;
        }

        .main-footer a {
            color: var(--accent-cyan);
            text-decoration: none;
        }

        .main-footer a:hover {
            text-decoration: underline;
        }

        @media (max-width: 1024px) {
            .main-footer { margin-left: 0; }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.2rem;
            }
            .section-card {
                padding: 24px 16px;
                border-radius: 12px;
            }
            .security-list {
                grid-template-columns: 1fr;
            }
            .code-content-wrapper code {
                white-space: pre-wrap;
                word-break: break-all;
            }
            .doc-split {
                gap: 20px;
            }
        }