:root {
    --btc-primary: #5AA6E7;
    --btc-secondary: #4a8fc7;
    --btc-accent: #00d4aa;
    --btc-heading: #003869;
    --btc-success: #34c759;
    --btc-warning: #ff9500;
    --btc-danger: #ff3b30;
    --btc-purple: #af52de;
    --btc-blue: #5AA6E7;

    /* Light Mode (Default) - Modern Glass Style */
    --bg-primary: #f5f5f7;
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-tertiary: rgba(255, 255, 255, 0.6);
    --text-primary: #000000;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: rgba(28, 28, 30, 0.85);
    --bg-tertiary: rgba(44, 44, 46, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #98989d;
    --text-tertiary: #636366;
    --btc-heading: #ffffff;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-color-hover: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Password Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    padding: 3rem 1rem 0 1rem;
}

.password-overlay.hidden {
    display: none;
}

.password-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 550px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.5s ease-out;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.login-theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 26px;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 3px;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

.login-theme-toggle:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.login-theme-toggle::after {
    content: "";
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--btc-primary) 0%, var(--btc-accent) 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
}

[data-theme="dark"] .login-theme-toggle::after {
    transform: translateX(26px);
    background: linear-gradient(135deg, #af52de 0%, #007aff 100%);
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

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

.password-container h2 {
    font-size: 2rem;
    color: var(--btc-heading);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.password-container .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.password-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.password-input:focus {
    outline: none;
    border-color: var(--btc-primary);
    box-shadow: 0 0 0 4px rgba(90, 166, 231, 0.1);
    background: var(--bg-secondary);
}

.password-button {
    width: 100%;
    padding: 1rem;
    background: var(--btc-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.password-button:hover {
    background: var(--btc-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.password-error {
    color: var(--btc-danger);
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
    font-weight: 600;
}

.password-error.show {
    display: block;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Public Access Section */
.public-access-primary {
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--btc-accent);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.public-access-primary:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--btc-accent);
}

.access-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.access-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.public-button {
    width: 100%;
    padding: 1rem;
    background: var(--btc-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.public-button:hover {
    background: #00b894;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Divider */
.access-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.access-divider::before,
.access-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.access-divider span {
    padding: 0 1rem;
}

/* Password Access Section */
.password-access-section {
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--btc-primary);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.password-access-section:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--btc-primary);
}

.password-cta-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.password-cta {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.password-cta-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    color: var(--btc-primary);
    text-decoration: none;
    border: 1px solid var(--btc-primary);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-cta-button:hover {
    background: var(--btc-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Login Page Footer */
.login-page-footer {
    margin-top: auto;
    padding: 2rem 1rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    background: transparent;
    border-top: none;
    width: 100%;
}

.login-page-footer .container {
    position: relative;
}

.login-page-footer .footer-logo {
    height: 36px;
}

.login-page-footer .footer-text {
    font-size: 0.85rem;
}

/* Protected Content */
.protected-content {
    display: none;
}

.protected-content.unlocked {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

/* Header */
.header {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    padding: 3rem 0 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: all 0.3s ease;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 26px;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 3px;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.theme-toggle::after {
    content: "";
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--btc-primary) 0%, var(--btc-accent) 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(26px);
    background: linear-gradient(135deg, #af52de 0%, #007aff 100%);
}

.btn {
    padding: 0.65rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    backdrop-filter: blur(20px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--btc-primary);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--btc-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.header-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 1rem;
    letter-spacing: -2px;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.access-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
.main {
    padding: 3rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.card {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
}

.card-header {
    margin-bottom: 2rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.7;
    transition: color 0.3s ease;
}

/* Modern Slider - Vertical */
.matrix-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    align-items: start;
}

.slider-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slider-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color-hover);
}

.slider-header {
    margin-bottom: 1.5rem;
}

.slider-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.slider-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.slider-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-label-control {
    color: var(--btc-accent);
}

.slider-label-performance {
    color: var(--btc-primary);
}

.slider-wrapper {
    position: relative;
    padding: 0;
    margin: 0;
}

.slider-track {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, var(--btc-accent) 0%, var(--btc-primary) 100%);
    border-radius: 999px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.slider-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    transform: translateY(-50%);
    margin: 0;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 4px solid var(--btc-primary);
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 2;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.slider-input:active ~ .slider-thumb {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 10px 15px -3px rgba(0, 149, 218, 0.4), 0 4px 6px -2px rgba(0, 149, 218, 0.2);
}

.slider-markers {
    display: none;
}

.slider-marker {
    display: none;
}

.current-value-display {
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Category Filter */
.category-filter {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-option:hover {
    background: var(--bg-tertiary);
}

.filter-checkbox {
    position: relative;
    width: 38px;
    height: 22px;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 11px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    padding: 2px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-checkbox::after {
    content: "";
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--btc-primary) 0%, var(--btc-accent) 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
}

.filter-checkbox.active {
    background: var(--bg-secondary);
    border-color: var(--border-color-hover);
}

.filter-checkbox.active::after {
    transform: translateX(16px);
}

.filter-check {
    display: none;
}

.filter-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.filter-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Chart */
.chart-content {
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.chart-wrapper:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color-hover);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.chart-canvas {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: visible;
    transition: all 0.3s ease;
}

.chart-axis {
    position: absolute;
    background: var(--border-color);
    z-index: 1;
}

.chart-axis-x {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.chart-axis-y {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.chart-label {
    position: absolute;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.75rem;
    z-index: 2;
}

.chart-label-x {
    bottom: 1.5rem;
    right: 1.5rem;
}

.chart-label-y {
    top: 1.5rem;
    left: 1.5rem;
}

.quadrant-label {
    position: absolute;
    font-size: 1rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 1;
}

.quadrant-1 { top: 12%; right: 8%; }
.quadrant-2 { top: 12%; left: 8%; }
.quadrant-3 { bottom: 12%; left: 8%; }
.quadrant-4 { bottom: 12%; right: 8%; }

.provider-point {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.provider-point:hover {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-width: 4px;
    z-index: 100 !important;
}

.provider-point.winner {
    animation: pulse-winner 2.5s infinite;
    border-width: 4px;
    box-shadow: 0 0 0 0 rgba(0, 149, 218, 0.8);
    z-index: 50;
}

@keyframes pulse-winner {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 149, 218, 0.8), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px 20px rgba(0, 149, 218, 0), 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    }
}

.provider-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    font-weight: 600;
}

.provider-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.provider-point:hover .provider-tooltip {
    opacity: 1;
}

/* Tooltip SEAL Info */
.provider-tooltip strong {
    display: block;
    margin-bottom: 0.25rem;
}

.provider-tooltip .tooltip-score {
    display: block;
    opacity: 0.85;
    font-weight: 500;
}

.provider-tooltip .tooltip-seal {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    font-size: 0.85rem;
}

.provider-tooltip .tooltip-seal i {
    font-size: 0.9rem;
}

.seal-color-4 { color: #6ee7b7; }
.seal-color-3 { color: #93c5fd; }
.seal-color-2 { color: #fcd34d; }
.seal-color-1 { color: #fdba74; }
.seal-color-0 { color: #9ca3af; }

/* === SEAL Zones in Matrix === */
.seal-zone {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    border-top: 1px dashed var(--gray-300);
    transition: opacity 0.3s ease;
}

.seal-zone-4 { background: rgba(16, 185, 129, 0.06); }
.seal-zone-3 { background: rgba(59, 130, 246, 0.06); }
.seal-zone-2 { background: rgba(245, 158, 11, 0.06); }
.seal-zone-1 { background: rgba(249, 115, 22, 0.06); }
.seal-zone-0 { background: rgba(107, 114, 128, 0.03); border-top: none; }

.seal-zone-label {
    position: absolute;
    right: 12px;
    top: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

[data-theme="dark"] .seal-zone-4 { background: rgba(16, 185, 129, 0.08); }
[data-theme="dark"] .seal-zone-3 { background: rgba(59, 130, 246, 0.08); }
[data-theme="dark"] .seal-zone-2 { background: rgba(245, 158, 11, 0.08); }
[data-theme="dark"] .seal-zone-1 { background: rgba(249, 115, 22, 0.08); }
[data-theme="dark"] .seal-zone-0 { background: rgba(107, 114, 128, 0.05); }

[data-theme="dark"] .seal-zone-label {
    opacity: 0.5;
}

/* Custom Scores Hint */
.custom-scores-hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.custom-scores-hint i {
    color: var(--btc-primary);
    font-size: 1rem;
}

.custom-scores-hint-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--btc-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.custom-scores-hint-link:hover {
    color: var(--btc-secondary);
}

.custom-scores-hint-link i {
    font-size: 0.75rem;
}

[data-theme="dark"] .custom-scores-hint {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-color: rgba(59, 130, 246, 0.25);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.result-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
}

.result-card.winner {
    border: 2px solid var(--btc-primary);
    box-shadow: 0 0 0 1px var(--btc-primary), var(--shadow-md);
}

.result-card-hint {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.result-card:hover .result-card-hint {
    opacity: 1;
}

.result-card-hint i {
    color: var(--btc-primary);
}

/* Result Card Header mit SEAL Badge */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

/* === SEAL Badge in Cards === */
.seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.seal-badge i {
    font-size: 0.75rem;
}

.seal-badge-4 { background: #dcfce7; color: #166534; }
.seal-badge-3 { background: #dbeafe; color: #1e40af; }
.seal-badge-2 { background: #fef3c7; color: #92400e; }
.seal-badge-1 { background: #ffedd5; color: #9a3412; }
.seal-badge-0 { background: #f3f4f6; color: #4b5563; }

[data-theme="dark"] .seal-badge-4 { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
[data-theme="dark"] .seal-badge-3 { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
[data-theme="dark"] .seal-badge-2 { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
[data-theme="dark"] .seal-badge-1 { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
[data-theme="dark"] .seal-badge-0 { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.result-rank {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--btc-primary) 0%, var(--btc-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.result-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.result-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.result-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.result-score {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--btc-primary);
    letter-spacing: -0.5px;
}

.score-bar {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--btc-accent) 0%, var(--btc-primary) 100%);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 149, 218, 0.5);
}

/* Legend */
.legend-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.legend-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color-hover);
}

.legend-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 2rem;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.legend-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.legend-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* === SEAL Legend === */
.seal-legend-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 2rem 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.seal-legend-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color-hover);
}

.seal-legend-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.seal-legend-title i {
    color: var(--btc-primary);
    font-size: 1.1rem;
}

.seal-legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seal-legend-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.seal-legend-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    opacity: 0.7;
    margin: 0;
    font-style: italic;
}

/* === SOV Detail Slide-out Panel === */
.sov-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.sov-panel-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.sov-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sov-panel.visible {
    transform: translateX(0);
}

.sov-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sov-panel-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sov-panel-provider-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--btc-heading);
}

.sov-panel-close {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.sov-panel-close:hover {
    background: var(--bg-primary);
    color: var(--btc-primary);
    border-color: var(--btc-primary);
}

.sov-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.sov-panel-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sov-panel-hint {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.sov-panel-hint:hover {
    color: var(--btc-primary);
}

/* SOV Criteria Items */
.sov-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.sov-item:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-sm);
}

.sov-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sov-item-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sov-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    color: var(--btc-primary);
}

.sov-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.sov-item-shortname {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sov-item-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--btc-heading);
    min-width: 36px;
    text-align: right;
}

.sov-item-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.sov-item-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sov-item-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* SOV Detail Item Explanation (Criteria Page) */
.sov-detail-item-explanation {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-style: italic;
    padding-left: 0.25rem;
    border-left: 2px solid var(--border-color);
}

.sov-detail-item.high .sov-detail-item-explanation {
    border-left-color: #10b981;
}

.sov-detail-item.medium .sov-detail-item-explanation {
    border-left-color: #f59e0b;
}

.sov-detail-item.low .sov-detail-item-explanation {
    border-left-color: #ef4444;
}

/* SOV Score Colors */
.sov-score-high .sov-item-bar-fill { background: #10b981; }
.sov-score-medium .sov-item-bar-fill { background: #f59e0b; }
.sov-score-low .sov-item-bar-fill { background: #ef4444; }

.sov-score-high .sov-item-score { color: #10b981; }
.sov-score-medium .sov-item-score { color: #f59e0b; }
.sov-score-low .sov-item-score { color: #ef4444; }

/* SOV Average Section */
.sov-average {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, var(--btc-primary), var(--btc-accent));
    border-radius: 12px;
    margin-bottom: 1rem;
    color: white;
    gap: 0.25rem;
}

.sov-average-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.sov-average-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.sov-average-hint {
    width: 100%;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    transition: color 0.2s ease;
}

.sov-average-hint:hover {
    color: white;
}

.sov-average-hint i {
    font-size: 0.6rem;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .sov-panel {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .sov-item-icon {
    background: rgba(0, 149, 218, 0.15);
}

/* Framework Link in Section Title */
.framework-link {
    color: var(--btc-primary);
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.2s ease;
}

.framework-link:hover {
    color: var(--btc-secondary);
}

.framework-link i {
    font-size: 0.7em;
    margin-left: 0.25rem;
}

/* === SOV Section on Criteria Page === */
.sov-criteria-legend {
    margin-bottom: 2rem;
}

.sov-criteria-legend h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--btc-heading);
    margin-bottom: 1rem;
}

.sov-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.sov-criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.sov-criteria-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--btc-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sov-criteria-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sov-criteria-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.sov-matrix-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sov-provider-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.sov-provider-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.sov-provider-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.sov-provider-btn.active {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.sov-provider-btn-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* SOV Detail View */
.sov-detail-view {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 200px;
}

.sov-no-data {
    text-align: center;
    color: var(--text-tertiary);
    padding: 3rem 1rem;
}

.sov-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.sov-detail-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sov-detail-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.sov-detail-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--btc-heading);
}

.sov-detail-category {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.sov-detail-scores {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sov-detail-avg {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--btc-primary), var(--btc-accent));
    border-radius: 10px;
    color: white;
}

.sov-detail-avg-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.sov-detail-avg-value {
    font-size: 1.25rem;
    font-weight: 800;
}

.sov-detail-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.sov-detail-item {
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.sov-detail-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sov-detail-item-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sov-detail-item-label i {
    color: var(--btc-primary);
    font-size: 0.75rem;
}

.sov-detail-item-score {
    font-size: 1rem;
    font-weight: 700;
}

.sov-score-high { color: #10b981; }
.sov-score-medium { color: #f59e0b; }
.sov-score-low { color: #ef4444; }

.sov-detail-item-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.sov-detail-item-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.sov-bar-high { background: #10b981; }
.sov-bar-medium { background: #f59e0b; }
.sov-bar-low { background: #ef4444; }

/* SOV Criteria Page Dark Mode */
[data-theme="dark"] .sov-criteria-icon {
    background: rgba(90, 166, 231, 0.9);
}

[data-theme="dark"] .sov-detail-view {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .sov-detail-item {
    background: var(--bg-secondary);
}

[data-theme="dark"] .sov-provider-btn:hover {
    background: var(--bg-primary);
}

/* === SOV Accordion (Criteria Page) === */
.sov-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sov-accordion-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sov-accordion-item:hover {
    border-color: var(--btc-primary);
}

.sov-accordion-item.custom {
    border-left: 3px solid var(--btc-primary);
}

.sov-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.sov-accordion-header:focus {
    outline: 2px solid var(--btc-primary);
    outline-offset: -2px;
}

.sov-accordion-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.sov-accordion-color {
    width: 4px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.sov-accordion-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sov-accordion-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sov-accordion-name i {
    color: var(--btc-primary);
    font-size: 0.7rem;
    margin-left: 0.35rem;
}

.sov-accordion-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sov-accordion-score-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sov-accordion-score {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid;
    min-width: 40px;
    text-align: center;
}

.sov-accordion-edit {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.sov-accordion-edit:hover {
    background: var(--btc-primary);
    border-color: var(--btc-primary);
    color: white;
}

.sov-accordion-toggle {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.sov-accordion-item.expanded .sov-accordion-toggle {
    transform: rotate(180deg);
}

.sov-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sov-accordion-item.expanded .sov-accordion-content {
    max-height: 800px;
}

.sov-accordion-details {
    padding: 0 1rem 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.sov-accordion-detail-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
}

.sov-accordion-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sov-accordion-detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sov-accordion-detail-label i {
    color: var(--btc-primary);
    font-size: 0.85rem;
}

.sov-accordion-detail-score {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.sov-accordion-detail-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sov-accordion-detail-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sov-accordion-detail-explanation {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Dark Mode */
[data-theme="dark"] .sov-accordion-item {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .sov-accordion-detail-item {
    background: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .sov-accordion-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .sov-accordion-provider {
        flex: 1 1 100%;
    }

    .sov-accordion-score-group {
        width: 100%;
        justify-content: flex-end;
    }

    .sov-accordion-details {
        grid-template-columns: 1fr;
    }
}

.legend-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Info Banner */
.info-banner {
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-left: 4px solid var(--btc-primary);
    padding: 2rem;
    border-radius: 16px;
    margin: 0 0 2rem 0;
    border: 1px solid var(--border-color);
    position: relative;
}

.info-banner-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.info-banner-close:hover {
    color: var(--text-primary);
}

.info-banner-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.info-banner-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    color: var(--text-primary);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-link {
    color: var(--btc-primary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--btc-accent);
    text-decoration: underline;
}

/* ============================================
   MOBILE BURGER MENU SYSTEM
   ============================================ */

/* Burger Menu Toggle Button */
.burger-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.burger-menu-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-sm);
}

.burger-menu-toggle:active {
    transform: scale(0.95);
}

/* Burger Icon Lines */
.burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 16px;
    position: relative;
}

.burger-line {
    position: absolute;
    width: 22px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-line:nth-child(1) {
    top: 0;
}

.burger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger-line:nth-child(3) {
    bottom: 0;
}

/* Burger Icon Animation - Active State */
.burger-menu-toggle.active .burger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu-toggle.active .burger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav-drawer.open {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.drawer-logo {
    height: 28px;
    width: auto;
}

.drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.drawer-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

/* Drawer Content */
.drawer-content {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}

/* Drawer Navigation Links */
.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-nav-link:hover {
    background: var(--bg-secondary);
    border-color: var(--btc-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.drawer-nav-link i {
    font-size: 1.1rem;
    color: var(--btc-primary);
    width: 24px;
    text-align: center;
}

.drawer-nav-link.primary {
    background: var(--btc-primary);
    border-color: var(--btc-primary);
    color: white;
}

.drawer-nav-link.primary:hover {
    background: var(--btc-secondary);
    border-color: var(--btc-secondary);
}

.drawer-nav-link.primary i {
    color: white;
}

/* Drawer Divider */
.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Drawer Section Label */
.drawer-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0.25rem;
    margin-top: 0.5rem;
}

/* Drawer Footer */
.drawer-footer {
    padding: 1rem 1.25rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.drawer-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.drawer-theme-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Desktop Navigation - Hidden on Mobile */
.desktop-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ============================================
   MOBILE CRITERIA SUBMENU
   ============================================ */

/* Mobile Section Navigator */
.mobile-section-nav {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    padding: 1rem;
    margin: -1rem -1rem 1.5rem -1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-section-selector {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235AA6E7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    transition: all 0.3s ease;
}

.mobile-section-selector:focus {
    outline: none;
    border-color: var(--btc-primary);
    box-shadow: 0 0 0 3px rgba(90, 166, 231, 0.15);
}

.mobile-section-selector:hover {
    border-color: var(--border-color-hover);
}

/* Mobile Tab Navigation for Criteria */
.mobile-criteria-tabs {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-criteria-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-criteria-tabs-inner {
    display: flex;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    min-width: max-content;
}

.mobile-criteria-tab {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.mobile-criteria-tab:hover,
.mobile-criteria-tab.active {
    background: var(--btc-primary);
    border-color: var(--btc-primary);
    color: white;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 3rem;
    }
}

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

    .slider-section {
        position: relative;
        top: 0;
    }

    .container {
        padding: 0 2rem;
    }
}

/* Tablet Breakpoint */
@media (max-width: 992px) {
    .burger-menu-toggle {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        gap: 0.75rem;
    }

    /* Show mobile criteria navigation */
    .mobile-criteria-tabs {
        display: block;
    }

    /* Hide desktop criteria navigation */
    .criteria-nav {
        display: none !important;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .header {
        padding: 2rem 0 3rem 0;
    }

    .header-nav {
        margin-bottom: 1.5rem;
    }

    .header-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .chart-canvas {
        height: 450px;
    }

    .container {
        padding: 0 1rem;
    }

    .card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .chart-wrapper {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .slider-section {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .legend-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .legend-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    /* Quadrant Labels - Smaller on mobile */
    .quadrant-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .quadrant-1 { top: 8%; right: 4%; }
    .quadrant-2 { top: 8%; left: 4%; }
    .quadrant-3 { bottom: 8%; left: 4%; }
    .quadrant-4 { bottom: 8%; right: 4%; }

    /* Result Cards */
    .result-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .result-rank {
        font-size: 2.5rem;
    }

    .result-name {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-text {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    /* Mobile Nav Drawer - Full width on small screens */
    .mobile-nav-drawer {
        max-width: 100%;
    }

    /* Access mode badge */
    .access-mode-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    /* Info Banner */
    .info-banner {
        padding: 1.25rem;
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }

    .info-banner-title {
        font-size: 1rem;
    }

    .info-banner-text {
        font-size: 0.9rem;
    }

    /* Show mobile section nav dropdown */
    .mobile-section-nav {
        display: block;
    }

    /* Hide mobile tabs on very small screens, show dropdown instead */
    .mobile-criteria-tabs {
        display: none;
    }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
    .header-title {
        font-size: 1.75rem;
    }

    .header-subtitle {
        font-size: 0.95rem;
    }

    .chart-canvas {
        height: 380px;
    }

    .chart-label {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .provider-tooltip {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .slider-thumb {
        width: 2rem;
        height: 2rem;
    }

    .current-value-display {
        font-size: 0.85rem;
        padding: 0.625rem 0.875rem;
    }

    .filter-option {
        padding: 0.625rem;
    }

    .filter-checkbox {
        width: 34px;
        height: 20px;
    }

    .filter-checkbox::after {
        width: 14px;
        height: 14px;
    }

    .filter-checkbox.active::after {
        transform: translateX(14px);
    }

    .drawer-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav-drawer {
        overflow-y: auto;
    }

    .drawer-content {
        padding: 1rem;
        gap: 0.5rem;
    }

    .drawer-nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   CRITERIA PAGE MOBILE OPTIMIZATIONS
   ============================================ */

/* Override z-index for floating buttons (from external criteria-styles.css) */
.floating-back-btn,
.floating-reset-btn {
    z-index: 900 !important;
}

/* Floating Buttons Mobile Optimization */
@media (max-width: 992px) {
    .floating-back-btn,
    .floating-reset-btn {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-back-btn a,
    .floating-reset-btn button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 999px;
    }

    .floating-back-btn i,
    .floating-reset-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Criteria page container adjustments */
    .criteria-page-container {
        padding-top: 0;
    }

    /* Factor cards grid - single column on mobile */
    .factors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .factor-card {
        padding: 1.25rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }

    /* Intro cards */
    .intro-card {
        padding: 1.25rem;
    }

    /* Formula box */
    .formula-box {
        padding: 1rem;
    }

    .formula-box code {
        font-size: 0.8rem;
        word-break: break-word;
    }

    /* Floating buttons - icon only on very small screens */
    .floating-back-btn a span,
    .floating-reset-btn button span {
        display: none;
    }

    .floating-back-btn,
    .floating-reset-btn {
        bottom: 1.5rem;
    }

    .floating-back-btn {
        left: 1rem;
        right: auto;
    }

    .floating-reset-btn {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    /* Criteria cards */
    .criteria-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    /* Section title with icon */
    .section-title i {
        font-size: 1.25rem;
    }

    /* Factor card icons */
    .factor-icon {
        width: 40px;
        height: 40px;
    }

    .factor-icon i {
        font-size: 1rem;
    }

    .factor-card h4 {
        font-size: 1rem;
    }

    .factor-card p,
    .factor-card ul {
        font-size: 0.85rem;
    }

    /* Tables on mobile */
    .scores-table {
        font-size: 0.8rem;
    }

    .scores-table th,
    .scores-table td {
        padding: 0.5rem 0.375rem;
    }

    /* Edit modal on mobile */
    .edit-modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        max-height: calc(100dvh - 2rem);
        border-radius: 20px;
    }

    .edit-modal-header {
        padding: 1rem 1.25rem;
    }

    .edit-modal-content {
        padding: 1rem 1.25rem;
    }

    .edit-modal-footer {
        padding: 1rem 1.25rem;
    }

    /* Confirmation modal */
    .confirmation-modal {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 20px;
    }
}
