:root {
    --bg: #070a14;
    --bg-card: rgba(13, 18, 36, 0.92);
    --text: #f4f7ff;
    --muted: #9aa6c2;
    --line: rgba(255, 255, 255, 0.12);
    --blue: #3655d4;
    --blue-light: #6880ff;
    --green: #3ecf8e;
    --red: #ff6b7a;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(54, 85, 212, 0.22), transparent 35%),
        linear-gradient(180deg, #070a14 0%, #0d1224 55%, #090d17 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

body.is-loading {
    cursor: progress;
}

[data-stats-panel],
.tesla-clan-details,
.tesla-clan-results {
    position: relative;
}

.panel-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: inherit;
    background:
        radial-gradient(circle at center, rgba(54, 85, 212, 0.18), transparent 45%),
        rgba(7, 10, 20, 0.92);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.panel-loader-visual {
    position: relative;
    width: 72px;
    height: 72px;
}

.panel-loader-overlay .loader-orbit {
    width: 72px;
    height: 72px;
}

.panel-loader-overlay .loader-core {
    top: 50%;
    left: 50%;
    margin: -7px 0 0 -7px;
}

.panel-loader-text,
.panel-loader-overlay .loader-text {
    margin: 0;
    color: #dce4ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: fade-pulse 1.4s ease-in-out infinite;
}

.top-clans-section.is-loading-clans {
    position: relative;
    pointer-events: none;
    min-height: 220px;
}

.top-clans-section.is-loading-clans .panel-loader-overlay {
    border-radius: 16px;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background:
        radial-gradient(circle at center, rgba(54, 85, 212, 0.18), transparent 45%),
        rgba(7, 10, 20, 0.92);
    backdrop-filter: blur(10px);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-orbit {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(104, 128, 255, 0.15);
    border-top-color: var(--blue-light);
    animation: spin 0.9s linear infinite;
}

.loader-core {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), #fff);
    box-shadow: 0 0 24px rgba(104, 128, 255, 0.75);
    animation: pulse 1.2s ease-in-out infinite;
}

.loader-text {
    margin: 58px 0 0;
    color: #dce4ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: fade-pulse 1.4s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.anim-fade,
.anim-rise {
    animation: none;
}

.anim-delay-1,
.anim-delay-2,
.anim-delay-3,
.anim-delay-4 {
    animation-delay: 0s;
}

.results {
    width: min(960px, 100%);
    margin-top: 36px;
    display: grid;
    gap: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.results.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 64px;
}

.site-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.site-header-wrap {
    width: 100%;
}

.site-top {
    width: 100%;
}

.site-nav-drawer {
    display: none;
}

.site-header {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 10, 20, 0.88);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 14px 20px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav--left {
    justify-content: flex-start;
}

.site-nav--right {
    justify-content: flex-end;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
}

.site-nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.site-nav-link.is-active {
    color: #eef2ff;
    background: rgba(104, 128, 255, 0.16);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.site-brand-name {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.site-brand-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(104, 128, 255, 0.12);
    border: 1px solid rgba(104, 128, 255, 0.24);
    box-shadow: 0 0 16px rgba(104, 128, 255, 0.18);
}

.site-brand-icon {
    display: block;
    flex-shrink: 0;
}

.site-brand-icon--image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-brand-icon--svg {
    width: 22px;
    height: 22px;
    color: var(--blue-light);
    filter: drop-shadow(0 0 8px rgba(104, 128, 255, 0.35));
    object-fit: contain;
}

.site-brand.is-active {
    color: #eef2ff;
}

.site-nav-toggle,
.site-header-spacer,
.site-nav-backdrop {
    display: none;
}

.site-nav-drawer-label {
    display: none;
}

.placeholder-page {
    width: min(640px, 100%);
    text-align: center;
}

.placeholder-page h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 2.6rem);
}

.placeholder-page p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.brand {
    margin: 0 0 40px;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-panel {
    width: min(640px, 100%);
    text-align: center;
}

.search-panel h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.search-panel p {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.6;
}

.search-panel--compact .tesla-search-switch {
    margin-top: 0;
    margin-bottom: 14px;
}

.tesla-landing.search-panel--compact .tesla-search-switch {
    margin-top: 0;
    margin-bottom: 14px;
}

.tesla-landing.search-panel--compact .tesla-search-panels {
    margin-top: 0;
}

.search-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form input:focus {
    border-color: rgba(104, 128, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(104, 128, 255, 0.15);
}

.search-form button {
    height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s;
}

.search-form button:hover {
    transform: translateY(-1px);
}

.alert {
    width: min(960px, 100%);
    margin-top: 28px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 107, 122, 0.35);
    border-radius: 14px;
    background: rgba(255, 107, 122, 0.12);
    color: #ffd5da;
}

.card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.profile-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 24px;
    padding: 28px;
}

.avatar {
    width: 128px;
    height: 128px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    image-rendering: pixelated;
}

.profile-main h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 700;
}

.badge.online {
    color: #d7ffe9;
    border-color: rgba(62, 207, 142, 0.35);
    background: rgba(62, 207, 142, 0.12);
}

.badge.offline {
    color: #ffd5da;
    border-color: rgba(255, 107, 122, 0.35);
    background: rgba(255, 107, 122, 0.12);
}

.privilege-badge {
    border-width: 1px;
    border-style: solid;
}

.rank-iron {
    color: #8dff9f;
    border-color: rgba(62, 207, 142, 0.45);
    background: rgba(62, 207, 142, 0.14);
}

.rank-gold {
    color: #ffd86b;
    border-color: rgba(245, 197, 66, 0.45);
    background: rgba(245, 197, 66, 0.14);
}

.rank-deluxe {
    color: #7fdcff;
    border-color: rgba(94, 200, 255, 0.45);
    background: rgba(94, 200, 255, 0.14);
}

.rank-master {
    color: #ff7b7b;
    border-color: rgba(255, 85, 85, 0.45);
    background: rgba(255, 85, 85, 0.14);
}

.rank-ultra {
    color: #fff;
    border-color: rgba(255, 120, 255, 0.55);
    background: linear-gradient(135deg, rgba(179, 102, 255, 0.35), rgba(255, 92, 198, 0.28));
    box-shadow: 0 0 18px rgba(179, 102, 255, 0.25);
}

.rank-rubium {
    color: #d8b6ff;
    border-color: rgba(170, 110, 255, 0.45);
    background: rgba(120, 70, 180, 0.18);
}

.rank-developer,
.rank-owner {
    color: #7fe8ff;
    border-color: rgba(63, 200, 255, 0.45);
    background: rgba(63, 200, 255, 0.12);
}

.rank-tesla {
    color: #ffe08a;
    border-color: rgba(255, 210, 90, 0.45);
    background: rgba(255, 190, 60, 0.14);
}

.rank-moderator,
.rank-head_moderator,
.rank-helper {
    color: #9eb4ff;
    border-color: rgba(120, 150, 255, 0.4);
    background: rgba(120, 150, 255, 0.12);
}

.rank-sponsor {
    color: #7dffb2;
    border-color: rgba(80, 220, 140, 0.4);
    background: rgba(80, 220, 140, 0.12);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.info-grid--profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-item strong {
    font-size: 16px;
    word-break: break-word;
}

.lang-value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lang-flag-img {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.stats-card {
    padding: 24px 28px 28px;
    overflow: visible;
}

.stats-card[data-stats-panel] {
    overflow: visible;
}

.stats-card[data-stats-panel].has-panel-loader {
    overflow: hidden;
}

.stats-header {
    margin-bottom: 20px;
}

.stats-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.stats-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.stats-grid--general {
    margin-top: 4px;
}

.stats-grid--detail {
    margin-top: 16px;
}

.stat-box {
    position: relative;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-box span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.stat-box strong {
    font-size: 1.35rem;
}

.stat-box--general {
    background: rgba(104, 128, 255, 0.08);
    border-color: rgba(104, 128, 255, 0.18);
}

.stat-box--general strong {
    color: #dce4ff;
}

.stat-box.has-tooltip {
    cursor: help;
}

.stat-box.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    min-width: 160px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 20, 38, 0.96);
    border: 1px solid rgba(104, 128, 255, 0.35);
    color: #eef2ff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 5;
}

.stat-box.has-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.stat-box.has-tooltip-rich {
    cursor: help;
    z-index: 1;
}

.stat-box.has-tooltip-rich:hover {
    z-index: 30;
}

.stat-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(6px);
    width: max-content;
    min-width: 220px;
    max-width: min(520px, calc(100vw - 24px));
    max-height: none;
    overflow: visible;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 20, 38, 0.98);
    border: 1px solid rgba(104, 128, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 40;
}

.stat-tooltip.is-fixed {
    position: fixed;
    bottom: auto;
    right: auto;
    left: 0;
    top: 0;
    transform: none !important;
    z-index: 1000;
    max-height: min(420px, calc(100dvh - 24px));
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.stat-tooltip.is-fixed.stat-tooltip--wide {
    min-width: 360px;
    max-width: min(680px, calc(100vw - 24px));
    max-height: min(560px, calc(100dvh - 24px));
    padding: 14px 16px;
}

.stat-tooltip--wide .stat-tooltip-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 18px;
}

.stat-tooltip--wide .stat-tooltip-row {
    padding: 4px 0;
    font-size: 12px;
}

.stat-tooltip--wide .stat-tooltip-row strong {
    font-size: 12px;
}

body.feedback-open {
    overflow: hidden;
}

.stat-tooltip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 4px 14px;
}

.stat-tooltip-title {
    margin-bottom: 8px;
    color: #dce4ff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.45;
    white-space: normal;
}

.stat-tooltip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    color: var(--muted);
    font-size: 11px;
    min-width: 0;
}

.stat-tooltip-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.stat-tooltip-row strong {
    flex-shrink: 0;
    color: #eef2ff;
    font-size: 11px;
    font-weight: 700;
}

.stat-box.has-tooltip-rich:hover .stat-tooltip:not(.is-fixed) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.stat-box.has-tooltip-rich:hover .stat-tooltip.is-fixed {
    opacity: 1;
    visibility: visible;
}

.clan-card {
    overflow: hidden;
}

.clan-card > * {
    position: relative;
    z-index: 1;
}

.clan-card .stats-header {
    margin-bottom: 16px;
}

.clan-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
    min-width: 0;
}

.clan-panel-main,
.clan-panel-ladder {
    min-width: 0;
}

.clan-panel-main {
    display: grid;
    gap: 12px;
}

.clan-name-box strong {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    word-break: break-word;
}

.clan-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.clan-metrics .highlight-box {
    margin: 0;
}

.clan-panel-ladder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(104, 128, 255, 0.06);
    border: 1px solid rgba(104, 128, 255, 0.14);
}

.clan-panel-ladder .panel-section-title {
    margin-bottom: 6px;
}

.clan-ladder-list {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.clan-ladder-viewport {
    position: relative;
    height: calc(var(--ladder-rows, 7) * 40px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.clan-ladder-viewport--top {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}

.clan-ladder-viewport--bottom {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
}

.clan-ladder-list--peek {
    animation: clan-ladder-drift 14s ease-in-out infinite alternate;
}

.clan-ladder-viewport--top .clan-ladder-list--peek,
.clan-ladder-viewport--bottom .clan-ladder-list--peek {
    animation: none;
}

@keyframes clan-ladder-drift {
    from {
        transform: translateY(-8px);
    }

    to {
        transform: translateY(8px);
    }
}

.clan-ladder-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.clan-ladder-row.is-current {
    background: rgba(104, 128, 255, 0.2);
    border-color: rgba(104, 128, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(104, 128, 255, 0.18);
}

.clan-ladder-rank {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.clan-ladder-row.is-current .clan-ladder-rank,
.clan-ladder-row.is-current .clan-ladder-nick {
    color: #eef2ff;
}

.clan-ladder-nick {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.ratio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.highlight-box--ratio {
    background: rgba(62, 207, 142, 0.08);
    border-color: rgba(62, 207, 142, 0.18);
}

.mode-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mode-toolbar-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.mode-toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.mode-dropdown {
    position: relative;
    min-width: 180px;
}

.mode-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.mode-dropdown-toggle:hover,
.mode-dropdown.is-open .mode-dropdown-toggle {
    background: rgba(104, 128, 255, 0.12);
    border-color: rgba(104, 128, 255, 0.32);
}

.mode-dropdown.is-open .mode-dropdown-toggle {
    box-shadow: 0 0 0 1px rgba(104, 128, 255, 0.18);
}

.mode-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mode-dropdown-chevron {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid #dce4ff;
    border-bottom: 2px solid #dce4ff;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s;
}

.mode-dropdown.is-open .mode-dropdown-chevron {
    transform: rotate(-135deg) translateY(2px);
}

.mode-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(104, 128, 255, 0.28);
    background: #151a2b;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.mode-dropdown.is-open .mode-dropdown-menu {
    display: block;
}

.mode-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.mode-dropdown-item:hover {
    background: rgba(104, 128, 255, 0.14);
    color: #eef2ff;
}

.mode-dropdown-item.is-active {
    background: rgba(104, 128, 255, 0.22);
    color: #eef2ff;
}

.panel-section-title {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.highlight-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.highlight-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-box {
    padding: 20px 16px;
    border-radius: 16px;
    background: rgba(104, 128, 255, 0.08);
    border: 1px solid rgba(104, 128, 255, 0.16);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-box--main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(54, 85, 212, 0.14);
}

.highlight-box span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.highlight-box strong {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
    color: #eef2ff;
}

.detail-stats {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-stats .panel-section-title {
    margin-bottom: 14px;
}

.empty-stats {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .anim-fade,
    .anim-rise,
    .results,
    .loader-orbit,
    .loader-core,
    .loader-text,
    .highlight-box--main {
        animation: none !important;
        transition: none !important;
    }
}
