        /* =====================================================================
           1. CURATED DARK THEMES (6 VIBRANT & DISTINCT PALETTES)
           ===================================================================== */
        :root, [data-theme="cisco-midnight"] {
            --bg-base: #070d19;
            --bg-surface: rgba(15, 23, 42, 0.78);
            --bg-elevated: rgba(30, 41, 59, 0.85);
            --border-subtle: rgba(148, 163, 184, 0.16);
            --border-strong: rgba(56, 189, 248, 0.42);
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --accent: #0ea5e9;
            --accent-2: #10b981;
            --accent-soft: rgba(14, 165, 233, 0.16);
            --orb-1: rgba(14, 165, 233, 0.22);
            --orb-2: rgba(16, 185, 129, 0.16);
        }

        [data-theme="neon-cyber"] {
            --bg-base: #070514;
            --bg-surface: rgba(18, 12, 40, 0.8);
            --bg-elevated: rgba(32, 22, 68, 0.85);
            --border-subtle: rgba(192, 132, 252, 0.2);
            --border-strong: rgba(34, 211, 238, 0.5);
            --text-primary: #faf5ff;
            --text-secondary: #c4b5fd;
            --text-muted: #7c6ba6;
            --accent: #22d3ee;
            --accent-2: #f43f5e;
            --accent-soft: rgba(34, 211, 238, 0.18);
            --orb-1: rgba(34, 211, 238, 0.24);
            --orb-2: rgba(244, 63, 94, 0.2);
        }

        [data-theme="matrix-emerald"] {
            --bg-base: #04110c;
            --bg-surface: rgba(10, 28, 21, 0.82);
            --bg-elevated: rgba(17, 46, 35, 0.86);
            --border-subtle: rgba(52, 211, 153, 0.18);
            --border-strong: rgba(16, 185, 129, 0.5);
            --text-primary: #ecfdf5;
            --text-secondary: #a7f3d0;
            --text-muted: #5b9a82;
            --accent: #10b981;
            --accent-2: #06b6d4;
            --accent-soft: rgba(16, 185, 129, 0.18);
            --orb-1: rgba(16, 185, 129, 0.24);
            --orb-2: rgba(6, 182, 212, 0.16);
        }

        [data-theme="synth-violet"] {
            --bg-base: #0c0618;
            --bg-surface: rgba(25, 14, 48, 0.82);
            --bg-elevated: rgba(41, 23, 78, 0.86);
            --border-subtle: rgba(167, 139, 250, 0.2);
            --border-strong: rgba(168, 85, 247, 0.5);
            --text-primary: #f5f3ff;
            --text-secondary: #c4b5fd;
            --text-muted: #7c67a8;
            --accent: #a855f7;
            --accent-2: #ec4899;
            --accent-soft: rgba(168, 85, 247, 0.18);
            --orb-1: rgba(168, 85, 247, 0.26);
            --orb-2: rgba(236, 72, 153, 0.18);
        }

        [data-theme="crimson-ops"] {
            --bg-base: #12060a;
            --bg-surface: rgba(34, 13, 19, 0.82);
            --bg-elevated: rgba(56, 20, 30, 0.86);
            --border-subtle: rgba(251, 113, 133, 0.2);
            --border-strong: rgba(244, 63, 94, 0.5);
            --text-primary: #fff1f2;
            --text-secondary: #fda4af;
            --text-muted: #9f5d6b;
            --accent: #f43f5e;
            --accent-2: #fb923c;
            --accent-soft: rgba(244, 63, 94, 0.18);
            --orb-1: rgba(244, 63, 94, 0.24);
            --orb-2: rgba(251, 146, 60, 0.18);
        }

        [data-theme="solar-amber"] {
            --bg-base: #110d06;
            --bg-surface: rgba(32, 24, 12, 0.82);
            --bg-elevated: rgba(52, 39, 18, 0.86);
            --border-subtle: rgba(251, 191, 36, 0.2);
            --border-strong: rgba(245, 158, 11, 0.5);
            --text-primary: #fffbeb;
            --text-secondary: #fde68a;
            --text-muted: #a68a4b;
            --accent: #f59e0b;
            --accent-2: #38bdf8;
            --accent-soft: rgba(245, 158, 11, 0.18);
            --orb-1: rgba(245, 158, 11, 0.24);
            --orb-2: rgba(56, 189, 248, 0.16);
        }

        /* =====================================================================
           2. BASE TYPOGRAPHY, DEPTH OF FIELD & FLUID ANIMATIONS
           ===================================================================== */
        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            background-color: var(--bg-base);
            color: var(--text-primary);
            font-family: 'Cairo', 'Inter', sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
            transition: background-color 0.35s ease, color 0.35s ease;
        }
        html[lang="en"] body { font-family: 'Inter', 'Cairo', sans-serif; }
        .font-mono-cli { font-family: 'JetBrains Mono', monospace; direction: ltr; unicode-bidi: embed; }

        /* Ambient Depth-of-Field Background Orbs */
        .dof-orb {
            position: fixed;
            border-radius: 9999px;
            filter: blur(110px);
            pointer-events: none;
            z-index: 0;
            opacity: 0.7;
            animation: orbFloat 18s ease-in-out infinite alternate;
        }
        .dof-orb-1 { width: 460px; height: 460px; top: -140px; left: -120px; background: var(--orb-1); }
        .dof-orb-2 { width: 420px; height: 420px; bottom: -140px; right: -100px; background: var(--orb-2); animation-delay: -7s; }
        @keyframes orbFloat {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(35px, 28px) scale(1.08); }
        }

        /* Glassmorphic Layered Cards */
        .surface-card {
            background: var(--bg-surface);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border-subtle);
            box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.28s ease;
        }
        .surface-card-hover:hover {
            transform: translateY(-3px);
            border-color: var(--border-strong);
            box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
        }
        .surface-elevated {
            background: var(--bg-elevated);
            border: 1px solid var(--border-subtle);
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }

        .text-accent { color: var(--accent); }
        .text-accent-2 { color: var(--accent-2); }
        .bg-accent-soft { background: var(--accent-soft); }

        .btn-accent {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            color: #030712;
            font-weight: 800;
            box-shadow: 0 8px 22px -6px var(--orb-1);
            transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease, box-shadow 0.2s ease;
        }
        .btn-accent:hover { transform: translateY(-1px); filter: brightness(1.08); }
        .btn-accent:active { transform: translateY(0) scale(0.98); }

        /* Fluid Page & Card Entrance Animations */
        .animate-view { animation: viewEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
        @keyframes viewEnter {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .stagger-card {
            animation: cardPop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-delay: calc(var(--stagger, 0) * 45ms);
        }
        @keyframes cardPop {
            from { opacity: 0; transform: translateY(14px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* Progress Bar Fluid Transition */
        .progress-bar-fluid { transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1); }

        /* Animated Line-Art SVG Icons (Lock / Unlock / Check) */
        .icon-lock-closed:hover, .group:hover .icon-lock-closed {
            animation: lockShake 0.45s ease-in-out;
        }
        @keyframes lockShake {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-10deg); }
            50% { transform: rotate(10deg); }
            75% { transform: rotate(-6deg); }
        }
        .icon-lock-open .shackle { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .group:hover .icon-lock-open .shackle { transform: translateY(-2px); }
        .icon-check-path {
            stroke-dasharray: 28;
            stroke-dashoffset: 28;
            animation: drawCheck 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }
        @keyframes drawCheck { to { stroke-dashoffset: 0; } }

        /* Packet Tracer Grid Canvas */
        .pt-grid-bg {
            background-color: #080f1d;
            background-image:
                radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px),
                linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
            background-size: 22px 22px, 88px 88px, 88px 88px;
        }

        /* Active Device Halo Pulse in Builder Mode */
        @keyframes devicePulse {
            0%, 100% { stroke-opacity: 0.9; stroke-width: 3; }
            50% { stroke-opacity: 0.35; stroke-width: 6; }
        }
        .device-active-ring { animation: devicePulse 1.8s ease-in-out infinite; }

        /* Packet Arrival Ripple */
        @keyframes rippleExpand {
            0% { r: 8; opacity: 0.95; stroke-width: 3; }
            100% { r: 34; opacity: 0; stroke-width: 0.5; }
        }
        .packet-ripple { animation: rippleExpand 0.9s ease-out forwards; }

        /* Clickable CLI Token Highlight */
        .cli-token {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 6px;
            background: rgba(14, 165, 233, 0.18);
            border: 1px solid rgba(56, 189, 248, 0.35);
            color: #7dd3fc;
            cursor: pointer;
            transition: all 0.18s ease;
        }
        .cli-token:hover, .cli-token.active {
            background: var(--accent);
            color: #020617;
            font-weight: 700;
            transform: translateY(-1px);
        }

        /* Slide-out Drawer */
        .drawer-backdrop { transition: opacity 0.25s ease; }
        .drawer-panel { transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }

        /* Inline Toast Banner */
        .toast-slide { animation: toastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
        @keyframes toastIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 7px; height: 7px; }
        ::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.4); }
        ::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); border-radius: 99px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
