        :root {
            /* Palette: Deep Void & Electric Cyan */
            --primary: #22d3ee;
            --secondary: #a78bfa;
            --bg-start: #0f172a;
            --bg-end: #020617;
            --glass: rgba(10, 15, 30, 0.7);
            --glass-focus: rgba(5, 10, 20, 0.85);
            --border: rgba(34, 211, 238, 0.1);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --glow: rgba(34, 211, 238, 0.6);
            /* Default Cyan Glow */
        }

        body.theme-solar {
            --primary: #facc15;
            --secondary: #fb923c;
            --theme-bg-start: #1c1917;
            --theme-bg-end: #0c0a09;
            --glow: rgba(250, 204, 21, 0.6);
        }

        body.theme-void {
            --primary: #a78bfa;
            --secondary: #ec4899;
            --theme-bg-start: #1e1b4b;
            --theme-bg-end: #020617;
            --glow: rgba(167, 139, 250, 0.6);
        }

        body.theme-moss {
            --primary: #4ade80;
            --secondary: #2dd4bf;
            --theme-bg-start: #064e3b;
            --theme-bg-end: #022c22;
            --glow: rgba(74, 222, 128, 0.6);
        }

        body {
            margin: 0;
            height: 100vh;
            color: var(--text-main);
            font-family: 'Rajdhani', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: radial-gradient(circle at center, var(--bg-start, var(--theme-bg-start, #0f172a)) 0%, var(--bg-end, var(--theme-bg-end, #020617)) 100%);
            animation: deepBreath 20s ease infinite;
        }

        @keyframes deepBreath {
            0% {
                background-size: 100% 100%;
            }

            50% {
                background-size: 120% 120%;
            }

            100% {
                background-size: 100% 100%;
            }
        }

        .glass-panel {
            background: var(--bg-start, var(--theme-bg-start, rgba(10, 15, 30, 0.7)));
            backdrop-filter: blur(25px) saturate(180%);
            -webkit-backdrop-filter: blur(25px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 40px;
            padding: 40px;
            width: 500px;
            min-height: 720px;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 10;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                inset 0 0 80px rgba(34, 211, 238, 0.05);
            animation: panelEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes panelEntrance {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        body.focus-mode .glass-panel {
            background: var(--bg-end, var(--theme-bg-end, rgba(5, 10, 20, 0.85)));
            border-color: rgba(34, 211, 238, 0.4);
            box-shadow: 0 0 100px rgba(34, 211, 238, 0.3), inset 0 0 40px rgba(34, 211, 238, 0.1);
            transform: scale(1.02);
        }

        body.focus-mode .controls-fade {
            opacity: 0.2;
            filter: blur(2px) grayscale(1);
            pointer-events: none;
            transition: all 0.8s ease;
        }

        /* BRANDING */
        .logo-wrapper {
            height: 70px;
            width: 260px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 5px auto;
            border-radius: 12px;
            /* Default State: Dim/Off */
            border: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: none;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .logo-wrapper.active {
            /* Active State: Theme Glow */
            border-color: var(--primary);
            box-shadow: 0 0 25px var(--glow), inset 0 0 10px var(--glow);
        }

        .app-logo {
            width: 100%;
            height: auto;
            transform: scale(1.15);
            transition: all 0.5s ease;
            display: block;
            opacity: 0.8;
            /* Slightly dim by default */
        }

        .logo-wrapper.active .app-logo {
            opacity: 1;
            /* Full brightness when active */
        }

        .brand-header {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
            width: 100%;
        }

        .vol-control {
            margin-bottom: 20px;
        }

        .vol-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 8px;
        }

        .test-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.9rem;
            transition: 0.2s;
            padding: 0;
            flex-shrink: 0;
        }

        .test-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
        }

        .anchor-toggle {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            width: 45px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.65rem;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            transition: 0.2s;
            padding: 0;
            flex-shrink: 0;
            letter-spacing: 1px;
        }

        .anchor-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .anchor-toggle.active {
            color: var(--primary);
            border-color: var(--primary);
            background: rgba(34, 211, 238, 0.1);
            box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
        }

        .title-text {
            font-family: 'Orbitron', sans-serif;
            font-size: 2.2rem;
            font-weight: 900;
            color: white;
            letter-spacing: 4px;
            text-transform: uppercase;
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
        }

        body.focus-mode .title-text {
            color: var(--primary);
            text-shadow: 0 0 30px rgba(34, 211, 238, 0.8);
        }

        .meta {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: -10px;
            margin-bottom: 40px;
            opacity: 0.8;
            text-align: center;
            font-weight: 500;
        }

        /* CIRCLE & BREATH UI */
        .circle-container {
            position: relative;
            width: 240px;
            height: 240px;
            margin: 0 auto 30px;
        }

        svg {
            transform: rotate(-90deg);
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        .bg-ring {
            fill: none;
            stroke: rgba(255, 255, 255, 0.03);
            stroke-width: 4;
        }

        .progress-ring {
            fill: none;
            stroke: var(--primary);
            stroke-width: 6;
            stroke-dasharray: 691;
            stroke-dashoffset: 691;
            stroke-linecap: round;
            filter: drop-shadow(0 0 15px var(--primary));
            transition: stroke-dashoffset 1s linear;
        }

        .time-display-group {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 50;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            user-select: none;
        }

        #clockWrapper:hover .time-display-group {
            transform: translate(-50%, -53%) scale(1.05);
        }

        .time-display {
            font-family: 'Orbitron', sans-serif;
            font-size: 2.6rem;
            font-weight: 700;
            color: white;
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
            transition: all 0.4s ease;
        }

        #clockWrapper:hover .time-display {
            text-shadow: 0 0 40px var(--glow);
        }

        .status-hint {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.55rem;
            color: var(--text-muted);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-top: 5px;
            opacity: 0.4;
            transition: all 0.4s ease;
        }

        #clockWrapper:hover .status-hint {
            opacity: 1;
            color: var(--primary);
        }

        body.focus-mode .status-hint {
            color: var(--primary);
            opacity: 0.8;
        }


        .breath-label {
            position: absolute;
            top: 30%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'Orbitron', sans-serif;
            font-size: 1rem;
            font-weight: 900;
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: 0;
            transition: 0.3s;
            white-space: nowrap;
        }

        .breath-label.visible {
            opacity: 1;
        }

        .ghost-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            opacity: 0;
            z-index: 1;
        }

        /* GRID CONTROLS */
        .grid-controls {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 20px;
        }

        .section-label {
            grid-column: span 2;
            font-size: 0.7rem;
            color: var(--text-muted);
            font-family: 'Orbitron', sans-serif;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-align: center;
            margin-top: 25px;
            padding-bottom: 5px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: 15px;
        }

        select,
        option {
            background-color: #0f172a !important;
            color: var(--text-main) !important;
        }

        select {
            grid-column: span 2;
            background: #0f172a;
            color: var(--text-main);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 14px;
            outline: none;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 500;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            font-size: 0.9rem;
            text-align: center;
            width: 100%;
            display: block;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .viz-container {
            grid-column: span 2;
            margin-top: 10px;
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            height: 100px;
        }

        #vizCanvas {
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.2);
        }

        /* MAIN SCREEN TOGGLES */
        .main-toggles {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 30px;
            grid-column: span 2;
        }

        .main-toggle {
            flex: 1;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
            padding: 12px 5px;
            border-radius: 16px;
            cursor: pointer;
            font-size: 0.6rem;
            font-family: 'Orbitron', sans-serif;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }

        .main-toggle:hover {
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Active Glowing States */
        .main-toggle.active.shield {
            color: var(--primary);
            border-color: rgba(34, 211, 238, 0.4);
            background: rgba(34, 211, 238, 0.05);
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.15), inset 0 0 10px rgba(34, 211, 238, 0.05);
        }

        .main-toggle.active.pings {
            color: #facc15;
            /* Golden Yellow */
            border-color: rgba(250, 204, 21, 0.4);
            background: rgba(250, 204, 21, 0.05);
            box-shadow: 0 0 20px rgba(250, 204, 21, 0.15), inset 0 0 10px rgba(250, 204, 21, 0.05);
        }

        .main-toggle.active.breath {
            color: var(--secondary);
            border-color: rgba(167, 139, 250, 0.4);
            background: rgba(167, 139, 250, 0.05);
            box-shadow: 0 0 20px rgba(167, 139, 250, 0.15), inset 0 0 10px rgba(167, 139, 250, 0.05);
        }

        /* SETTINGS INTEGRATION */
        .panel-settings-btn {
            position: absolute;
            top: 25px;
            right: 25px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
        }

        #fsBtn {
            position: absolute;
            top: 25px;
            left: 25px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(2, 6, 23, 0.95);
            backdrop-filter: blur(15px);
            z-index: 200;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .overlay.visible {
            display: flex;
            opacity: 1;
        }

        /* REFINED SLIDER STYLE */
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 14px;
            width: 14px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
            border: 2px solid #020617;
            margin-top: -6px;
        }

        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 2px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }

        .settings-content {
            background: var(--bg-start, var(--theme-bg-start, rgba(10, 15, 30, 0.95)));
            backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            padding: 30px;
            width: 90%;
            max-width: 450px;
            max-height: 85vh;
            overflow-y: auto;
            position: relative;
        }

        .tab-bar {
            display: flex;
            gap: 5px;
            margin-bottom: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 10px;
            position: sticky;
            top: 0;
            background: inherit;
            z-index: 10;
            justify-content: space-between;
        }

        option {
            padding: 15px;
        }

        .tab-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            padding: 8px 6px;
            font-size: 0.6rem;
            letter-spacing: 1px;
            cursor: pointer;
            border-radius: 8px;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .tab-btn.active {
            background: rgba(34, 211, 238, 0.1);
            color: var(--primary);
            font-weight: 700;
        }

        .settings-section {
            display: none;
            animation: fadeIn 0.3s ease-out;
        }

        .settings-section.active {
            display: block;
        }

        .vol-control {
            grid-column: span 2;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 15px;
            width: 100%;
        }

        .vol-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .vol-val {
            color: var(--primary);
            font-family: 'Orbitron', sans-serif;
        }

        input[type=range] {
            -webkit-appearance: none;
            appearance: none;
            background: rgba(255, 255, 255, 0.1);
            height: 2px;
            border-radius: 2px;
            width: 100%;
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 12px;
            width: 12px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
        }


        .return-btn {
            background: var(--primary);
            color: #020617;
            padding: 12px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 800;
            letter-spacing: 2px;
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
            transition: 0.3s;
        }

        .return-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
        }


        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .preset-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 10px 12px;
            border-radius: 8px;
            transition: all 0.3s ease;
            margin-bottom: 8px;
        }

        .preset-item:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .preset-meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .preset-name {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-main);
            text-transform: uppercase;
            letter-spacing: 1.5px;
        }

        .preset-details {
            font-size: 0.55rem;
            color: var(--text-muted);
            opacity: 0.7;
            letter-spacing: 0.5px;
        }

        .preset-actions {
            display: flex;
            gap: 8px;
        }

        .preset-btn {
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            font-size: 0.6rem;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
            font-family: 'Orbitron', sans-serif;
        }

        .preset-btn.load:hover {
            background: var(--primary);
            color: black;
            border-color: var(--primary);
        }

        .preset-btn.delete:hover {
            background: rgba(255, 50, 50, 0.2);
            color: #ff4444;
            border-color: #ff4444;
        }

        #presetsList::-webkit-scrollbar {
            width: 4px;
        }

        #presetsList::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }

        #presetName {
            flex: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            height: 36px;
            padding: 0 12px;
            color: #ffffff;
            font-size: 0.7rem;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 1px;
            transition: all 0.3s ease;
        }

        #presetName:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
        }

        #presetName::placeholder {
            color: var(--text-muted);
            opacity: 0.5;
            text-transform: uppercase;
        }

        @media (max-width: 600px) {
            .glass-panel {
                width: 92vw;
                padding: 25px 20px;
                border-radius: 30px;
            }

            .title-text {
                font-size: 1.6rem;
                letter-spacing: 2px;
            }

            /* Mobile Responsive Logo */
            .logo-wrapper {
                width: 100%;
                max-width: 180px;
                /* Reduced to fit between corner buttons (avoids overlap) */
                height: 50px;
                /* Highly compact height for mobile */
                margin-top: 5px;
                /* Slight push down */
            }

            .meta {
                font-size: 0.6rem;
                margin-top: -15px;
            }

            .time-display {
                font-size: 2.2rem;
            }

            .status-hint {
                font-size: 0.5rem;
            }

            .tab-bar {
                overflow-x: auto;
                white-space: nowrap;
                padding-bottom: 15px;
            }

            .tab-btn {
                padding: 10px 15px;
                font-size: 0.6rem;
            }

            .settings-content {
                padding: 20px;
                width: 95%;
                margin-bottom: 20px;
            }

            .grid-controls {
                gap: 10px;
            }

            input[type="color"] {
                height: 30px !important;
            }

            .main-toggles {
                gap: 8px;
                margin-top: 15px;
            }

            .main-toggle {
                font-size: 0.55rem;
                padding: 10px 2px;
                letter-spacing: 0.5px;
                border-radius: 12px;
            }

            .glass-panel {
                min-height: auto;
                padding-bottom: 40px;
            }
        }