:root {
            --bg-color: #faf6f0;
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-input: rgba(255, 255, 255, 0.9);
            --glass-border: rgba(0, 0, 0, 0.15);
            --primary: #b45309;
            --primary-hover: #92400e;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-main: #334155;
            --text-muted: #64748b;
        }

        body {
            background: linear-gradient(135deg, #faf6f0, #eaddc5);
            color: var(--text-main);
            font-family: 'Outfit', sans-serif;
            margin: 0;
            padding: 2rem;
            min-height: 100vh;
            box-sizing: border-box;
        }

        h1, h2, h3 { margin: 0 0 1rem 0; font-weight: 600; }
        
        .dashboard {
            max-width: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
        }

        /* --- SĀKAS IEVADES FORMAS STILI --- */
        .input-panel {
            grid-column: 1 / -1;
            padding: 2rem;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            margin-bottom: 2rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            align-items: flex-end;
        }
        
        .input-group {
            display: flex;
            flex-direction: column;
            position: relative;
            flex: 1;
            min-width: 200px;
        }
        
        .input-group label {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .input-control {
            background: var(--glass-input);
            border: 1px solid var(--glass-border);
            color: var(--text-main);
            padding: 0.8rem 1rem;
            border-radius: 10px;
            font-size: 1rem;
            font-family: 'Outfit', sans-serif;
            outline: none;
            transition: border-color 0.2s;
        }

        .input-control:focus {
            border-color: var(--primary);
        }

        /* Autocomplete saraksts (DropDown) */
        .autocomplete-items {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #1e293b;
            border: 1px solid var(--glass-border);
            border-radius: 10px;
            z-index: 99;
            max-height: 200px;
            overflow-y: auto;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
            display: none;
        }
        .autocomplete-items div {
            padding: 10px;
            cursor: pointer;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            font-size: 0.95rem;
        }
        .autocomplete-items div:hover {
            background: var(--primary);
            color: #334155;
        }
        .autocomplete-hint {
            font-size: 0.75rem;
            color: #64748b;
        }

        .btn-calc {
            background: linear-gradient(90deg, #2563eb, #c084fc);
            color: #334155;
            border: none;
            padding: 0.9rem 2rem;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            height: 48px;
        }
        .btn-calc:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
        }
        /* --- BEIDZAS IEVADES FORMAS STILI --- */

        .header-panel {
            grid-column: 1 / -1;
            text-align: center;
            padding: 2rem;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            margin-bottom: 1rem;
        }

        .header-panel h1 {
            font-weight: 800;
            font-size: 2.5rem;
            background: linear-gradient(90deg, #2563eb, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .panel {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 1.5rem;
            transition: transform 0.2s;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
        }
        
        .panel:hover {
            transform: translateY(-5px);
        }

        .panel-title {
            color: #c084fc;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            border-bottom: 1px solid var(--glass-border);
            padding-bottom: 0.5rem;
        }

        .data-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
        .data-list li { margin-bottom: 0.5rem; font-size: 0.95rem; }
        .data-list span { color: var(--text-muted); font-size: 0.85rem; }

        .score-wrap { margin-bottom: 1.2rem; }
        .score-header { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.95rem; }
        .progress-bar {
            width: 100%;
            height: 10px;
            background: rgba(0,0,0,0.1);
            border-radius: 5px;
            overflow: hidden;
            position: relative;
        }
        .progress-fill {
            height: 100%;
            border-radius: 5px;
            width: 0%;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fill-leadership { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .fill-resilience { background: linear-gradient(90deg, #3b82f6, #2563eb); }
        .fill-teamwork { background: linear-gradient(90deg, #10b981, #34d399); }
        .fill-performance { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
        .fill-risk { background: linear-gradient(90deg, #ef4444, #f87171); }

        /* Vēdu 5 Līmeņu Skala */
        .vedic-5-dashboard {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 2.2rem;
            background: #ffffff;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            padding: 2.5rem 1rem 1rem 1rem;
            border-radius: 12px;
            margin-top: 1.5rem;
            border: 1px solid var(--glass-border);
            overflow: hidden;
        }
        .v-tier {
            position: relative;
            height: 38px;
            width: 100%;
            display: flex;
            align-items: center;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
            margin-top: 15px;
        }
        .v-local-playhead {
            position: absolute;
            top: -5px; 
            bottom: -5px; 
            left: 50%;
            width: 2px;
            background: rgba(202, 138, 4, 0.7);
            z-index: 100;
            box-shadow: 0 0 8px rgba(202, 138, 4, 1);
            pointer-events: none;
        }
        .v-local-playhead::after {
            content: "TAGAD";
            position: absolute;
            top: -18px;
            left: 50%;
            transform: translateX(-50%);
            background: #ca8a04;
            color: #fff;
            font-size: 0.55rem;
            font-weight: bold;
            padding: 1px 4px;
            border-radius: 3px;
        }
        /* ---- GENOME STACK 120 GADU MĒROGĀ (GAIŠAIS DIZAINS) ---- */
        .genome-stack {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 0;
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
            margin-top: 25px;
            margin-bottom: 40px;
        }

        .g-track {
            position: relative;
            width: 100%;
        }

        .g-track-returns {
            height: 75px;
            background: transparent;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .g-track-maha {
            height: 65px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .g-track-antar {
            height: 22px;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            background: rgba(0,0,0,0.03);
            display: flex;
        }

        .g-track-risk {
            height: 85px;
            background: transparent;
        }

        .g-return-mark {
            position: absolute;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            transform: translateX(-50%);
            z-index: 10;
        }

        .g-return-icon {
            font-size: 0.85rem;
            background: #ffffff;
            border-radius: 50%;
            padding: 1px;
            box-shadow: 0 0 2px rgba(0,0,0,0.1);
            z-index: 11;
        }

        .g-return-year {
            font-size: 0.55rem;
            font-weight: 600;
            color: #334155;
            background: rgba(255,255,255,0.9);
            padding: 1px 4px;
            border-radius: 4px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            z-index: 10;
            margin-top: -2px;
            margin-bottom: 1px;
        }

        .g-return-stem {
            width: 1px;
            background: linear-gradient(to bottom, rgba(51,65,85,0.2), rgba(51,65,85,0.6));
        }

        .g-risk-corridor {
            position: absolute;
            top: 0;
            height: 38px;
            background: repeating-linear-gradient(
                45deg,
                rgba(239,68,68,0.08),
                rgba(239,68,68,0.08) 8px,
                rgba(239,68,68,0.15) 8px,
                rgba(239,68,68,0.15) 16px
            );
            border-left: 1px solid rgba(239,68,68,0.4);
            border-right: 1px solid rgba(239,68,68,0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: help;
        }

        .g-risk-label {
            font-size: 0.55rem;
            color: #1e293b;
            font-weight: 700;
            letter-spacing: 0.5px;
            background: rgba(255,255,255,0.85);
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #cbd5e1;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            z-index: 10;
        }

        .g-scanner-beam {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #0ea5e9;
            z-index: 100;
            box-shadow: 0 0 6px 1px #0ea5e9, 0 0 12px 2px rgba(14,165,233,0.3);
            pointer-events: none;
        }
        
        .g-segment {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: bold;
            color: rgba(0,0,0,0.8);
            border-right: 1px solid rgba(0,0,0,0.6);
            box-sizing: border-box;
            cursor: help;
            overflow: hidden;
            white-space: nowrap;
            transition: filter 0.2s;
        }
        .g-segment-tiny {
            height: 100%;
            border-right: 1px solid rgba(0,0,0,0.4);
            box-sizing: border-box;
            cursor: help;
            transition: filter 0.2s;
        }
        .g-segment:hover, .g-segment-tiny:hover { filter: brightness(1.3); }
        .current-age-marker {
            position: absolute;
            top: -10px;
            bottom: -10px;
            width: 3px;
            background: #ef4444; 
            z-index: 10;
            box-shadow: 0 0 10px #ef4444;
        }
        .current-age-label {
            position: absolute;
            top: -26px;
            left: 50%;
            transform: translateX(-50%);
            background: #ef4444;
            color: #334155;
            font-size: 0.75rem;
            padding: 2px 8px;
            border-radius: 4px;
            white-space: nowrap;
            font-weight: 800;
        }
        .scale-ticks {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            color: var(--text-muted);
            font-size: 0.75rem;
            padding: 0 2px;
        }
        .legend-item { display: flex; align-items: center; gap: 6px; color: #475569; font-size: 0.85rem; }
        .legend-color { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.15); }
        .v-segment {
            position: absolute;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: rgba(0,0,0,0.8);
            border-right: 1px solid rgba(0,0,0,0.6);
            cursor: help;
            box-sizing: border-box;
            transition: filter 0.2s, transform 0.2s;
            overflow: hidden;
            white-space: nowrap;
        }
        .v-segment:hover {
            filter: brightness(1.3);
            z-index: 50;
        }
        .v-tier-label {
            position: absolute;
            left: 5px;
            top: -20px;
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 10;
        }
        .v-sine-svg {
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            pointer-events: none;
        }

        #loading {
            text-align: center;
            font-size: 1.5rem;
            color: var(--text-muted);
            margin-top: 5vh;
            display: none;
        }

        /* --- MAP UN LAIKA SLIDER STILI --- */
        #latvia-map {
            width: 100%;
            height: 450px;
            border-radius: 12px;
            border: 1px solid var(--glass-border);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            background: #1e293b; /* Dark theme uzreiz */
        }
        
        .map-container {
            position: relative;
            margin-top: 15px;
            margin-bottom: 25px;
        }

        .slider-container {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            padding: 15px 20px;
            border-radius: 12px;
            border: 1px solid var(--glass-border);
            margin-top: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .slider-container label {
            font-weight: 800;
            color: #475569;
            min-width: 120px;
        }

        .slider-container span#slider-time-display {
            font-family: monospace;
            font-size: 1.1rem;
            font-weight: 900;
            color: #2563eb;
            background: rgba(37, 99, 235, 0.1);
            padding: 4px 8px;
            border-radius: 4px;
        }

        input[type=range].time-slider {
            flex-grow: 1;
            -webkit-appearance: none;
            width: 100%;
            background: transparent;
        }

        input[type=range].time-slider:focus {
            outline: none;
        }

        input[type=range].time-slider::-webkit-slider-runnable-track {
            width: 100%;
            height: 8px;
            cursor: pointer;
            background: #cbd5e1;
            border-radius: 4px;
            border: 1px solid rgba(0,0,0,0.1);
        }

        input[type=range].time-slider::-webkit-slider-thumb {
            border: 2px solid #2563eb;
            height: 24px;
            width: 24px;
            border-radius: 50%;
            background: #ffffff;
            cursor: pointer;
            -webkit-appearance: none;
            margin-top: -9px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.1s;
        }
        
        input[type=range].time-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

        .map-tooltip {
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: #ffffff;
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            padding: 8px 12px;
            text-align: center;
            white-space: pre-wrap;
            line-height: 1.4;
        }

        /* --- UI TABS STILI --- */
        .tab-container {
            grid-column: 1 / -1;
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0;
            border-bottom: 2px solid #cbd5e1;
            padding-bottom: 0;
            flex-wrap: wrap;
        }

        .tab-btn {
            padding: 0.75rem 1.5rem;
            background: #f8fafc;
            border: 1px solid #cbd5e1;
            border-bottom: none;
            font-size: 1rem;
            font-weight: 700;
            color: #64748b;
            cursor: pointer;
            border-radius: 8px 8px 0 0;
            transition: all 0.2s;
            position: relative;
            top: 2px;
            margin-right: 2px;
        }

        .tab-btn:hover {
            color: #1e293b;
            background: #f1f5f9;
        }

        .tab-btn.active {
            color: #4f46e5;
            background: #ffffff;
            border-bottom: 3px solid #ffffff;
            z-index: 10;
        }

        .profile-section {
            display: none;
            grid-column: 1 / -1;
            animation: fadeIn 0.3s ease-in-out;
        }

        .profile-section.active {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        /* ── AUGŠĒJO CILŅU SATURS: max-height pieeja (ne display:none) ── */
        .top-tab-content {
            display: block;
            max-height: 0;
            overflow: hidden;
            grid-column: 1 / -1;
        }

        .top-tab-content.tab-active {
            max-height: none !important;
            overflow: visible !important;
        }

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

        /* ═══════════════════════════════════════════════════════════════════════
           VIZUĀLAIS ŠĀVIENS — 1. SLĀNIS
           Palete: #7FB9E6 #D6BEEA #F4D77A #B7C96A #F98BA9 #FF8F45
           ═══════════════════════════════════════════════════════════════════════ */

        .vs-container {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 1.5rem;
            animation: vs-fadeIn 0.5s ease-out both;
        }

        /* ── A. ARHETIPA KARTE ─────────────────────────────────────────────── */

        .vs-archetype {
            background: linear-gradient(135deg, rgba(127,185,230,0.18), rgba(214,190,234,0.18));
            border: 1px solid rgba(214,190,234,0.30);
            border-radius: 16px;
            padding: 28px 36px;
            text-align: center;
            position: relative;
            animation: vs-slideDown 0.5s ease-out both;
        }

        .vs-archetype-date {
            font-size: 0.82rem;
            color: #8896A8;
            margin-bottom: 8px;
            letter-spacing: 1px;
        }

        .vs-archetype-title {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 2rem;
            color: #3D4A5C;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .vs-archetype-desc {
            font-size: 1rem;
            color: #8896A8;
            max-width: 650px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* ── B. VIDUS ZONA: Radars + Gauges ────────────────────────────────── */

        .vs-middle {
            display: flex;
            gap: 28px;
            align-items: stretch;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;
            animation: vs-fadeIn 0.6s ease-out 0.15s both;
        }

        /* Kreisā puse: radars centrā ar 6 metriku aprakstiem ap to (grid-areas) */
        .vs-radar-zone {
            flex: 1 1 480px;
            display: grid;
            grid-template-columns: minmax(118px, 0.7fr) minmax(220px, 1.4fr) minmax(118px, 0.7fr);
            grid-template-rows: auto 1fr 1fr auto;
            grid-template-areas:
                ".    lead  ."
                "risk radar stab"
                "perf radar moti"
                ".    team  .";
            gap: 8px 12px;
            align-items: center;
            animation: vs-fadeIn 0.6s ease-out 0.15s both;
        }

        .vs-radar {
            grid-area: radar;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: vs-scaleIn 0.6s ease-out 0.2s both;
        }

        /* Metrikas apraksta kastīte ap radaru */
        .vs-rc {
            background: #FFFFFF;
            border-left: 3px solid var(--rc-color);
            border-radius: 8px;
            padding: 7px 10px;
            box-shadow: 0 2px 8px rgba(127,185,230,0.10);
            animation: vs-slideUp 0.4s ease-out both;
        }
        .vs-rc-head {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 6px;
            margin-bottom: 3px;
        }
        .vs-rc-name {
            font-size: 0.84rem;
            font-weight: 700;
            color: #3D4A5C;
            font-family: 'Outfit', sans-serif;
        }
        .vs-rc-pct {
            font-size: 0.84rem;
            font-weight: 800;
            font-family: 'Outfit', sans-serif;
        }
        .vs-rc-desc {
            font-size: 0.68rem;
            line-height: 1.3;
            color: #6B7A8D;
        }

        /* Labā puse: darba stila pīrāgi vidus zonā */
        .vs-middle > .vs-spectrum-panel {
            flex: 1 1 380px;
            margin-top: 0;
            align-self: stretch;
        }

        .vs-gauge-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            flex: 1 1 45%;
        }

        .vs-gauge-card {
            background: #FFFFFF;
            border-radius: 14px;
            padding: 18px 14px 12px 14px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(127,185,230,0.10);
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            animation: vs-slideUp 0.4s ease-out both;
            min-width: 120px;
        }

        .vs-gauge-card:nth-child(1) { animation-delay: 0.35s; }
        .vs-gauge-card:nth-child(2) { animation-delay: 0.40s; }
        .vs-gauge-card:nth-child(3) { animation-delay: 0.45s; }
        .vs-gauge-card:nth-child(4) { animation-delay: 0.50s; }
        .vs-gauge-card:nth-child(5) { animation-delay: 0.55s; }
        .vs-gauge-card:nth-child(6) { animation-delay: 0.60s; }

        .vs-gauge-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(127,185,230,0.18);
        }

        .vs-gauge-value {
            position: absolute;
            top: 46px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.3rem;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
        }

        .vs-gauge-label {
            font-size: 0.88rem;
            font-weight: 600;
            color: #8896A8;
            margin-top: 4px;
        }

        .vs-gauge-arc {
            transition: stroke-dasharray 0.8s ease-out;
        }

        .vs-gauge-desc {
            font-size: 0.72rem;
            color: #A0AEC0;
            margin-top: 2px;
            line-height: 1.3;
        }

        /* ── B2. DETAĻU PANELIS ────────────────────────────────────────────── */

        .vs-details-panel {
            background: #FFFFFF;
            border-radius: 14px;
            padding: 20px 28px;
            box-shadow: 0 2px 10px rgba(127,185,230,0.08);
            animation: vs-fadeIn 0.5s ease-out 0.7s both;
        }

        .vs-details-heading {
            font-size: 1.05rem;
            font-weight: 700;
            color: #3D4A5C;
            margin-bottom: 0;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(127,185,230,0.15);
        }

        /* Toggle — default: minimizēts */
        .vs-details-toggle {
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }
        .vs-details-toggle:hover {
            color: #7FB9E6;
        }
        .vs-toggle-icon {
            display: inline-block;
            font-size: 0.75rem;
            transition: transform 0.3s ease;
            margin-right: 4px;
        }
        .vs-details-body {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
            margin-top: 0;
        }
        .vs-expanded .vs-details-heading {
            margin-bottom: 14px;
        }
        .vs-expanded .vs-toggle-icon {
            transform: rotate(90deg);
        }
        .vs-expanded .vs-details-body {
            max-height: 2000px;
            opacity: 1;
            margin-top: 4px;
        }

        .vs-detail-row {
            margin-bottom: 12px;
        }

        .vs-detail-row:last-child {
            margin-bottom: 0;
        }

        .vs-detail-header {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .vs-detail-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .vs-detail-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: #3D4A5C;
            min-width: 140px;
        }

        .vs-detail-what {
            font-size: 0.82rem;
            color: #8896A8;
            font-style: italic;
        }

        .vs-detail-factors {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
            padding-left: 20px;
        }

        .vs-detail-factor {
            font-size: 0.75rem;
            color: #5A6B80;
            background: #F4F7FA;
            padding: 3px 10px;
            border-radius: 6px;
            border: 1px solid #E8ECF1;
        }

        .vs-detail-factor b {
            color: #3D4A5C;
        }

        /* ── C. "ŠOBRĪD" JOSLA ─────────────────────────────────────────────── */

        .vs-now-strip {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 8px 0;
            animation: vs-fadeIn 0.4s ease-out 0.65s both;
        }

        .vs-now-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 24px;
            font-size: 0.88rem;
            font-weight: 600;
            color: #3D4A5C;
            border: 1px solid transparent;
            transition: all 0.2s;
            font-family: 'Outfit', sans-serif;
        }

        .vs-now-chip:hover {
            transform: scale(1.04);
            box-shadow: 0 4px 12px rgba(127,185,230,0.15);
        }

        /* ── LUKSOFORA LEĢENDA ─────────────────────────────────────────────── */
        .vs-traffic-legend {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px 18px;
            padding: 8px 12px 0 12px;
            font-family: 'Outfit', sans-serif;
            font-size: 0.78rem;
            color: #8896A8;
            animation: vs-fadeIn 0.4s ease-out 0.6s both;
        }
        .vs-tl-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-weight: 600;
        }
        .vs-tl-dot {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
        }
        .vs-tl-note {
            width: 100%;
            text-align: center;
            font-style: italic;
            font-size: 0.72rem;
            color: #A0AEC0;
        }

        /* ── DARBA STILA SPEKTRS (bipolāri slīdņi) ─────────────────────────── */
        .vs-spectrum-panel {
            margin-top: 1.25rem;
            padding: 1.1rem 1.25rem 1.25rem;
            background: #FBFCFE;
            border: 1px solid #EAEFF6;
            border-radius: 16px;
            font-family: 'Outfit', sans-serif;
            animation: vs-fadeIn 0.4s ease-out 0.7s both;
        }
        .vs-spectrum-heading {
            font-size: 0.98rem;
            font-weight: 700;
            color: #3D4A5C;
            margin-bottom: 1rem;
            display: flex;
            align-items: baseline;
            gap: 10px;
            flex-wrap: wrap;
        }
        .vs-spectrum-sub {
            font-size: 0.74rem;
            font-weight: 500;
            color: #8896A8;
            font-style: italic;
        }
        .vs-spectrum-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem 1.2rem;
        }
        .vs-spectrum-cell {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .vs-gauge-svg {
            width: 100%;
            max-width: 168px;
            height: auto;
        }
        .vs-gauge-ends {
            display: flex;
            justify-content: space-between;
            width: 100%;
            gap: 6px;
            margin-top: -4px;
            font-size: 0.74rem;
            line-height: 1.2;
        }
        .vs-gauge-end {
            flex: 1;
            text-align: left;
            font-weight: 600;
            transition: opacity 0.3s;
        }
        .vs-gauge-end--right {
            text-align: right;
        }
        .vs-gauge-end b {
            font-size: 0.82rem;
            font-weight: 800;
        }
        .vs-gauge-end.is-dom {
            font-weight: 800;
        }
        .vs-gauge-end.is-dom b {
            font-size: 0.98rem;
        }
        .vs-gauge-end.is-dim {
            opacity: 0.42;
        }
        .vs-spectrum-verdict {
            margin-top: 7px;
            width: 100%;
            text-align: center;
            font-size: 0.73rem;
            line-height: 1.35;
            color: #6B7A8D;
        }
        .vs-spectrum-foot {
            margin-top: 0.9rem;
            padding-top: 0.75rem;
            border-top: 1px dashed #E2E8F0;
            font-size: 0.72rem;
            font-style: italic;
            color: #A0AEC0;
            text-align: center;
        }

        /* ── EKSPERTU REŽĪMS (3. SLĀNIS) ───────────────────────────────────── */
        .expert-mode-section {
            grid-column: 1 / -1;
            margin-top: 1.5rem;
            border-top: 1px dashed #cbd5e1;
            padding-top: 1.25rem;
        }
        .expert-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 14px 18px;
            cursor: pointer;
            font-family: 'Outfit', sans-serif;
            font-size: 0.92rem;
            font-weight: 700;
            color: #475569;
            transition: all 0.2s;
        }
        .expert-toggle:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }
        .expert-toggle .expert-caret {
            transition: transform 0.25s;
            font-size: 0.8rem;
            color: #94a3b8;
        }
        .expert-mode-section.expert-open .expert-caret {
            transform: rotate(90deg);
        }
        .expert-toggle .expert-hint {
            margin-left: auto;
            font-weight: 400;
            font-size: 0.76rem;
            color: #94a3b8;
        }
        .expert-mode-body {
            display: none;
            margin-top: 1rem;
        }
        .expert-mode-section.expert-open .expert-mode-body {
            display: block;
            animation: vs-fadeIn 0.35s ease-out both;
        }
        .expert-subtabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 1rem;
        }
        .expert-subtab-btn {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 8px 16px;
            cursor: pointer;
            font-family: 'Outfit', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: #64748b;
            transition: all 0.2s;
        }
        .expert-subtab-btn:hover { border-color: #cbd5e1; color: #334155; }
        .expert-subtab-btn--active {
            background: #334155;
            border-color: #334155;
            color: #fff;
        }
        /* Dziļās cilnes ir ietītas .profile-section (display:none pēc noklusējuma,
           ko vecā tab-sistēma atvēra ar .active). Ekspertu zonā tās vienmēr redzamas. */
        #expert-tab-display .profile-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        /* ── ANIMĀCIJAS ────────────────────────────────────────────────────── */

        @keyframes vs-fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        @keyframes vs-slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes vs-slideUp {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes vs-scaleIn {
            from { opacity: 0; transform: scale(0.3); }
            to   { opacity: 1; transform: scale(1); }
        }

        /* ── RESPONSIVITĀTE ────────────────────────────────────────────────── */

        @media (max-width: 1024px) {
            .vs-middle {
                flex-direction: column;
            }
            .vs-radar {
                width: 260px;
            }
        }

        @media (max-width: 768px) {
            .vs-archetype {
                padding: 20px 18px;
            }
            .vs-archetype-title {
                font-size: 1.5rem;
            }
            .vs-archetype-desc {
                font-size: 0.9rem;
            }
            .vs-radar-zone {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto auto auto;
                grid-template-areas:
                    "radar radar"
                    "lead  stab"
                    "risk  moti"
                    "perf  team";
            }
            .vs-radar {
                width: 100%;
                max-width: 280px;
                margin: 0 auto;
            }
            .vs-now-chip {
                padding: 8px 14px;
                font-size: 0.82rem;
            }
        }

        /* ═══════════════════════════════════════════════════════════════════════
           2. SLĀNIS — JAUTĀJUMU KARTES (Q TABS)
           ═══════════════════════════════════════════════════════════════════════ */

        .q-tab-nav {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            padding: 12px 0;
            margin-bottom: 8px;
        }

        .q-tab-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 24px;
            border: 2px solid transparent;
            border-radius: 12px;
            cursor: pointer;
            font-family: 'Outfit', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            background: rgba(255,255,255,0.85);
            color: #475569;
            backdrop-filter: blur(8px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            position: relative;
            overflow: hidden;
        }

        .q-tab-btn::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: var(--tab-color, #6366f1);
            border-radius: 3px 3px 0 0;
            transition: width 0.3s ease;
        }

        .q-tab-btn:hover {
            background: rgba(255,255,255,1);
            border-color: var(--tab-color, #6366f1);
            color: #1e293b;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        }
        .q-tab-btn:hover::before {
            width: 60%;
        }

        .q-tab-btn--active {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            color: white !important;
            font-weight: 800;
            border-color: var(--tab-color, #6366f1) !important;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 0 1px var(--tab-color, #6366f1);
            transform: translateY(-1px);
        }
        .q-tab-btn--active::before {
            width: 100%;
            height: 3px;
            background: var(--tab-color, #6366f1);
        }

        .q-tab-btn--active .q-tab-icon {
            filter: drop-shadow(0 0 6px var(--tab-color, #6366f1));
        }

        .q-tab-icon {
            font-size: 1.15rem;
            transition: filter 0.3s ease;
        }
        .q-tab-label {
            white-space: nowrap;
        }

        .q-tab-btn--util {
            background: rgba(254,240,138,0.5);
            color: #854d0e;
            font-size: 0.85rem;
            padding: 10px 18px;
        }
        .q-tab-btn--util.q-tab-btn--active {
            background: linear-gradient(135deg, #451a03, #78350f) !important;
            color: #fde68a !important;
        }

        /* Responsive: mazāki ekrāni */
        @media (max-width: 768px) {
            .q-tab-nav {
                gap: 6px;
            }
            .q-tab-btn {
                padding: 10px 14px;
                font-size: 0.82rem;
                gap: 5px;
            }
            .q-tab-icon {
                font-size: 1rem;
            }
        }