:root {
            --bg: #020b16;
            --panel: #071727;
            --border: #12263a;
            --text: #e5edf7;
            --accent: #3b82f6;
        }

        body {
            background-color: var(--bg);
            color: var(--text);
            overscroll-behavior: none;
        }

        /* Glassmorphism Header */
        .glass-header {
            position: sticky;
            top: var(--ara-top-nav-height, 0px);
            z-index: 50;
            background: rgba(2, 11, 22, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(59, 130, 246, 0.1);
            transition: all 0.3s ease;
        }

        /* Segmented Control */
        .segmented-control {
            display: flex;
            background: rgba(7, 23, 39, 0.8);
            border-radius: 10px;
            padding: 3px;
            position: relative;
            border: 1px solid var(--border);
        }

        .tab-btn {
            flex: 1;
            text-align: center;
            padding: 8px 10px;
            font-size: 0.8rem;
            font-weight: 500;
            color: #9caac3;
            border-radius: 8px;
            transition: all 0.2s ease;
            position: relative;
            z-index: 2;
        }

        .tab-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .tab-btn.active {
            color: #fff;
            font-weight: 600;
            background: var(--accent);
            /* Solid accent for clear active state */
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .method-chip {
            position: absolute;
            top: 8px;
            left: 8px;
            padding: 4px 8px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.04em;
            background: rgba(15, 23, 42, 0.8);
            color: #cbd5f5;
            border: 1px solid rgba(148, 163, 184, 0.4);
            text-transform: uppercase;
            backdrop-filter: blur(6px);
        }

        /* Tree Card */
        .tree-card {
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        }

        /* Filter Chip Styles */
        .filter-chip span {
            background: color-mix(in srgb, var(--chip-color) 10%, transparent);
            border-color: color-mix(in srgb, var(--chip-color) 25%, transparent);
            color: var(--chip-color);
        }

        .filter-chip span::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: color-mix(in srgb, var(--chip-color) 40%, transparent);
            flex-shrink: 0;
        }

        .filter-chip input:checked+span {
            background: color-mix(in srgb, var(--chip-color) 20%, transparent);
            border-color: color-mix(in srgb, var(--chip-color) 40%, transparent);
        }

        .filter-chip input:checked+span::before {
            background: var(--chip-color);
            box-shadow: 0 0 6px var(--chip-color);
        }

        /* Bottom Sheet */
        .bottom-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--panel);
            border-top: 1px solid var(--border);
            border-radius: 20px 20px 0 0;
            padding: 24px 20px 40px;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 2000;
            box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.8);
        }

        .bottom-sheet.open {
            transform: translateY(0);
        }

        .drag-handle {
            width: 40px;
            height: 4px;
            background: #334155;
            border-radius: 2px;
            margin: -10px auto 20px;
        }


        .offline-mode nav {
            display: none;
        }

        .offline-mode .material-symbols-outlined {
            display: none;
        }
