@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@500;600;700&display=swap');

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

:root {
    --primary-bg: #0b0b0f;
    --secondary-bg: rgba(22, 33, 62, 0.9);
    --card-bg: rgba(26, 26, 46, 0.85);
    --surface-glass: rgba(26, 26, 46, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #6b7280;
    --neon-cyan: #00f5ff;
    --neon-purple: #8a2be2;
    --neon-green: #39ff14;
    --neon-pink: #ff073a;
    --positive: #39ff14;
    --negative: #ff4d6d;
    --accent-teal: #00f5ff;
    --accent-purple: #8a2be2;
    --accent-blue: #4f46e5;
    --sidebar-width: 270px;
    --base-font-size: 16px;
    --font-primary: 'Inter', 'Roboto', sans-serif;
    --font-heading: 'Orbitron', 'Exo 2', sans-serif;
}

body {
    font-family: var(--font-primary, 'Inter', sans-serif);
    background: radial-gradient(circle at 10% 10%, rgba(138, 43, 226, 0.18), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(0, 245, 255, 0.16), transparent 52%),
                #050508;
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    font-size: var(--base-font-size, 16px);
    letter-spacing: 0.01em;
}

body.theme-dark {
    background: var(--primary-bg);
}

body.theme-light {
    --primary-bg: #f5f7ff;
    --secondary-bg: rgba(255, 255, 255, 0.92);
    --card-bg: rgba(255, 255, 255, 0.88);
    --surface-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #121212;
    --text-secondary: #4b4b56;
    --text-muted: #6b7280;
    --neon-cyan: #00bcd4;
    --neon-purple: #7c3aed;
    --neon-green: #22c55e;
    --neon-pink: #f43f5e;
    --accent-teal: #0ea5e9;
    --accent-purple: #7c3aed;
    --accent-blue: #2563eb;
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.08), rgba(0, 188, 212, 0.1)), #f5f7ff;
    color: var(--text-primary);
}

body.theme-light .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(231, 246, 255, 0.9) 100%);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 5px 0 24px rgba(15, 23, 42, 0.08);
}

body.theme-light .sidebar .logo {
    margin-left: 8px;
    padding: 12px 10px;
    background: rgba(15, 23, 42, 0.22);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-light .menu-item {
    color: rgba(17, 24, 39, 0.72);
}

body.theme-light .menu-item::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(124, 58, 237, 0.12));
}

body.theme-light .menu-item:hover {
    color: rgba(15, 23, 42, 0.92);
    background: rgba(14, 165, 233, 0.08);
}

body.theme-light .menu-item .icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(124, 58, 237, 0.1));
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18);
}

body.theme-light .menu-item.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 58, 237, 0.2));
    color: rgba(15, 23, 42, 0.92);
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.18);
}

body.theme-light .card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 255, 0.92));
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 18px 32px rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(12px);
}

body.theme-light .search-input {
    border: 1px solid rgba(148, 163, 184, 0.32);
}

body.theme-light .help-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    border: 1px solid rgba(124, 58, 237, 0.16);
    color: var(--text-primary);
}

body.theme-light .menu-section {
    color: rgba(27, 35, 55, 0.56);
}

body.theme-light .main-content {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.65), rgba(237, 246, 255, 0.8));
    backdrop-filter: blur(20px);
}

body.theme-light .section-title {
    color: rgba(27, 35, 55, 0.78);
}

body.theme-light .overview-score {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: none;
}

h1, h2, h3,
.page-header h1,
.card h2,
.card h3 {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

p, span, li, button, input, select {
    font-family: inherit;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(16, 20, 40, 0.95) 0%, rgba(11, 11, 15, 0.98) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 245, 255, 0.16);
    box-shadow: 10px 0 30px rgba(10, 10, 20, 0.55);
    backdrop-filter: blur(18px);
}


.sidebar .logo {
    margin-bottom: 16px;
    margin-left: 6px;
    filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.35));
}



.menu {
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    transition: color 0.25s ease, transform 0.25s ease;
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(138, 43, 226, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.menu-item:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.18), rgba(138, 43, 226, 0.18));
    color: var(--text-primary);
    box-shadow: 0 10px 24px rgba(0, 245, 255, 0.18);
}

.menu-item span {
    position: relative;
    z-index: 1;
}

.menu-item .icon {
    margin-right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.14), rgba(138, 43, 226, 0.12));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 245, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(0, 245, 255, 0.18);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.menu-item .icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.menu-item:hover .icon,
.menu-item.active .icon {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(138, 43, 226, 0.22));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 16px rgba(0, 245, 255, 0.14);
    color: #ffffff;
}

body.theme-light .menu-item .icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(124, 58, 237, 0.12));
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18);
    color: rgba(37, 99, 235, 0.82);
}

body.theme-light .menu-item:hover .icon,
body.theme-light .menu-item.active .icon {
    background: linear-gradient(135deg, rgba(236, 244, 255, 0.98), rgba(219, 234, 254, 0.92));
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.22);
    color: rgba(14, 165, 233, 0.9);
}

.menu-section {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.help-card {
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.9), rgba(16, 20, 40, 0.92));
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid rgba(0, 245, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 245, 255, 0.15);
}

.help-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.help-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.help-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-docs {
    background: var(--text-primary);
    color: var(--primary-bg);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 32px 34px;
    max-width: calc(100vw - var(--sidebar-width));
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.4), rgba(11, 11, 15, 0.4));
    backdrop-filter: blur(18px);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% -10%, rgba(0, 245, 255, 0.22), transparent 55%),
                radial-gradient(circle at 85% 10%, rgba(255, 7, 58, 0.16), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

.dashboard-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-right .performance-overview {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;
}

.search-input {
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    width: 250px;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Big Cards */
.big-cards {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    margin-bottom: 16px;
}

.card {
    background: radial-gradient(circle at 0% 0%, rgba(0, 245, 255, 0.18), transparent 45%) no-repeat,
                linear-gradient(150deg, rgba(22, 33, 62, 0.92), rgba(11, 11, 15, 0.94));
    border-radius: 22px;
    padding: 22px;
    position: relative;
    border: 1px solid rgba(0, 245, 255, 0.12);
    box-shadow: 0 20px 44px rgba(5, 10, 30, 0.55);
    backdrop-filter: blur(18px);
    overflow: hidden;
    z-index: 1;
}

/* Buttons */
.glow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 16px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    color: #0a0e1a;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.95), rgba(59, 130, 246, 0.95), rgba(159, 122, 234, 0.95));
    box-shadow: 0 18px 36px rgba(63, 131, 248, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.glow-button:hover,
.glow-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(63, 131, 248, 0.4);
    filter: brightness(1.05);
}

.glow-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.glow-button.slim {
    padding: 10px 22px;
    font-size: 13px;
    border-radius: 14px;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(79, 209, 197, 0.38);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
    background: rgba(79, 209, 197, 0.15);
    border-color: rgba(79, 209, 197, 0.6);
    transform: translateY(-2px);
}

.ghost-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.ghost-button.subtle {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}

.ghost-button.subtle:hover,
.ghost-button.subtle:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent-teal);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.text-button:hover,
.text-button:focus-visible {
    color: rgba(79, 209, 197, 0.85);
    text-decoration: underline;
}

.score-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.8fr);
    align-items: center;
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.96), rgba(14, 14, 26, 0.94));
    border: 1px solid rgba(0, 245, 255, 0.22);
    box-shadow: 0 26px 48px rgba(5, 10, 30, 0.55);
    gap: 12px;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    padding-right: 200px;
    animation: cardFloat 9s ease-in-out infinite alternate;
}

.score-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 7, 58, 0.2), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.score-card > * {
    position: relative;
    z-index: 1;
}

.score-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 64%;
}

.score-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.theme-light .score-card {
    background: linear-gradient(145deg, rgba(247, 250, 255, 0.95), rgba(232, 244, 255, 0.92));
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 26px 48px rgba(148, 163, 184, 0.25);
}

body.theme-light .score-card::after {
    background: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.18), transparent 60%);
    opacity: 0.8;
}


.score-title {
    font-size: 34px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.score-label {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.score-label .label-sub {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.68);
}

body.theme-light .score-label {
    color: rgba(55, 65, 81, 0.72);
}

body.theme-light .score-label .label-sub {
    color: rgba(55, 65, 81, 0.68);
}

.overview-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.overview-score strong {
    font-size: 44px;
}

.overview-score .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    font-weight: 700;
}

.overview-score .read-more:hover {
    text-decoration: underline;
}

.overview-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.metric-pill .pill-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-pill .pill-label .label-sub {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.metric-pill .pill-value {
    font-size: 20px;
    font-weight: 700;
}

.weapons-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.weapons-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.weapons-table th,
.weapons-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-table th,
.detail-table td {
    font-size: 12px;
    letter-spacing: 0.05em;
}

.weapons-table th {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.weapons-table td {
    color: rgba(255, 255, 255, 0.9);
}

body.theme-light .weapons-table th {
    color: rgba(55, 65, 81, 0.68);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body.theme-light .weapons-table td {
    color: rgba(15, 23, 42, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.weapons-mini-card {
    width: 100%;
}

.weapons-mini-card .mini-header {
    margin-bottom: 12px;
}

.session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 12, 24, 0.92), rgba(5, 8, 18, 0.88));
    border: 1px solid rgba(0, 245, 255, 0.14);
    box-shadow: 0 18px 28px rgba(5, 10, 30, 0.38);
    margin-bottom: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.session-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 36px rgba(5, 10, 30, 0.45);
}

.session-row-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-row-title {
    font-size: 18px;
    font-weight: 700;
}

.session-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.session-row-meta span::before {
    content: '•';
    margin-right: 8px;
    color: rgba(0, 245, 255, 0.5);
}

.session-row-meta span:first-child::before {
    content: '';
    margin-right: 0;
}

.session-row-score {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.session-row-score .score-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    color: var(--text-muted);
}

.session-row-score strong {
    font-size: 28px;
    color: var(--text-primary);
}

body.theme-light .session-row {
    background: linear-gradient(135deg, rgba(247, 249, 255, 0.95), rgba(234, 244, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 16px 28px rgba(148, 163, 184, 0.25);
}

body.theme-light .session-row-meta span::before {
    color: rgba(124, 58, 237, 0.5);
}

body.theme-light .session-row-score strong {
    color: rgba(15, 23, 42, 0.92);
}

body.theme-light .session-row-score .score-label {
    color: rgba(55, 65, 81, 0.68);
}

.weapons-mini-card .chip {
    letter-spacing: 0.08em;
}

.label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}


.update {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}


@keyframes cardFloat {
    0% {
        transform: translateY(-2px);
        box-shadow: 0 26px 48px rgba(5, 10, 30, 0.55);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 32px 52px rgba(5, 10, 30, 0.55);
    }
    100% {
        transform: translateY(-4px);
        box-shadow: 0 24px 44px rgba(5, 10, 30, 0.45);
    }
}

.score-circle {
    position: relative;
    width: 172px;
    height: 172px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(0, 245, 255, 0.12), rgba(5, 12, 32, 0.92));
    box-shadow: inset 0 0 28px rgba(0, 245, 255, 0.26);
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.65;
}

.score-progress-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.score-progress-ring circle {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
}

.progress-track {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 10;
}

.progress-value {
    stroke: url(#scoreGradient);
    stroke-width: 10;
    stroke-dashoffset: 339.292;
    filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.45));
    transition: stroke-dashoffset 1.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.score-circle.animate::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.18), rgba(0, 0, 0, 0));
    opacity: 0.8;
    animation: score-glow 2.4s ease-in-out infinite alternate;
}

@keyframes score-glow {
    from {
        opacity: 0.55;
        filter: blur(0);
    }
    to {
        opacity: 0.95;
        filter: blur(2px);
    }
}

.score-value {
    position: relative;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    z-index: 1;
}

body.theme-light .score-circle {
    background: radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.2), rgba(236, 248, 255, 0.95));
    box-shadow: inset 0 0 22px rgba(59, 130, 246, 0.26), 0 14px 30px rgba(148, 163, 184, 0.28);
}

body.theme-light .progress-track {
    stroke: rgba(148, 163, 184, 0.25);
}

body.theme-light .progress-value {
    filter: drop-shadow(0 0 18px rgba(37, 99, 235, 0.4));
}


.badge {
    position: absolute;
    bottom: 40px;
    background: var(--accent-purple);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    z-index: 1;
}

.promo-card {
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.92), rgba(11, 11, 15, 0.94));
    color: var(--text-primary);
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 24px 44px rgba(5, 10, 30, 0.5);
    min-height: 150px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.22), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(255, 7, 58, 0.18), transparent 60%);
    pointer-events: none;
}

.promo-card > * {
    position: relative;
    z-index: 1;
}

body.theme-light .promo-card {
    background: linear-gradient(145deg, rgba(248, 250, 255, 0.95), rgba(233, 244, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 28px 44px rgba(148, 163, 184, 0.25);
}

body.theme-light .promo-card::after {
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.22), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(244, 114, 182, 0.18), transparent 60%);
}

.promo-content h2 {
    font-size: 28px;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.promo-content p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

body.theme-light .promo-content p {
    color: rgba(17, 24, 39, 0.78);
}

.read-more {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.92), rgba(12, 14, 28, 0.92));
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 245, 255, 0.14);
    box-shadow: 0 18px 36px rgba(5, 10, 30, 0.45);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.18), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

body.theme-light .stat-card {
    background: linear-gradient(145deg, rgba(247, 249, 255, 0.95), rgba(234, 244, 255, 0.92));
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 20px 36px rgba(148, 163, 184, 0.22);
}

body.theme-light .stat-card::before {
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.22), transparent);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(0, 245, 255, 0.16);
    box-shadow: inset 0 0 12px rgba(0, 245, 255, 0.2);
}

body.theme-light .stat-icon {
    background: rgba(124, 58, 237, 0.16);
    box-shadow: inset 0 0 12px rgba(124, 58, 237, 0.2);
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-info h3 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.change {
    font-size: 14px;
    font-weight: 600;
}

.change.positive {
    color: var(--positive);
}

.change.negative {
    color: var(--negative);
}

/* Analytics Section */
.analytics-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 22px;
    align-items: stretch;
}

.analytics-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analytics-column .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.analytics-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analytics-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.analytics-info h3,
.performance-overview h3 {
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.select-wrapper {
    position: relative;
    min-width: 140px;
}

.select-wrapper select {
    appearance: none;
    width: 100%;
    padding: 10px 36px 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 245, 255, 0.22);
    background: rgba(5, 8, 18, 0.85);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body.theme-light .select-wrapper select {
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(17, 24, 39, 0.82);
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.16);
}

.select-wrapper select option {
    color: var(--text-primary);
    background: var(--secondary-bg);
}

body.theme-light .select-wrapper select option {
    color: rgba(17, 24, 39, 0.82);
    background: rgba(255, 255, 255, 0.98);
}

.select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
    pointer-events: none;
    font-size: 12px;
}

body.theme-light .select-wrapper::after {
    color: rgba(124, 58, 237, 0.6);
}

body.theme-light .select-wrapper select:hover {
    border-color: rgba(124, 58, 237, 0.38);
    background: rgba(236, 244, 255, 0.95);
}

body.theme-light .select-wrapper select:focus {
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.select-wrapper select:hover {
    border-color: rgba(0, 245, 255, 0.4);
    background: rgba(8, 12, 24, 0.95);
}

.select-wrapper select:focus {
    outline: none;
    border-color: rgba(0, 245, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.15);
}

.accuracy-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.35);
}

.legend-dot.head {
    background: linear-gradient(135deg, var(--neon-purple), rgba(255, 7, 58, 0.8));
}

.legend-dot.body {
    background: linear-gradient(135deg, var(--neon-cyan), rgba(59, 130, 246, 0.9));
}

.legend-dot.other {
    background: linear-gradient(135deg, var(--neon-green), rgba(255, 248, 0, 0.9));
}

.accuracy-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accuracy-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.accuracy-label {
    width: 80px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.accuracy-bar {
    flex: 1;
    display: flex;
    height: 30px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.2);
    background: rgba(8, 12, 24, 0.6);
}

body.theme-light .accuracy-bar {
    border: 1px solid rgba(124, 58, 237, 0.18);
    background: rgba(233, 244, 255, 0.7);
}

.accuracy-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #0a0e1a;
    transition: width 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.accuracy-segment.head {
    background: linear-gradient(135deg, var(--neon-purple), rgba(255, 7, 58, 0.9));
}

.accuracy-segment.body {
    background: linear-gradient(135deg, var(--neon-cyan), rgba(59, 130, 246, 0.9));
}

.accuracy-segment.other {
    background: linear-gradient(135deg, var(--neon-green), rgba(255, 248, 0, 0.9));
}

.damage-fill {
    transition: width 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.analytics-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.weapons-mini-card {
    gap: 16px;
}

.weapons-wide-card {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.weapons-wide-card .weapons-table-wrapper {
    border-radius: 16px;
    border: 1px solid rgba(0, 245, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(138, 43, 226, 0.05));
    padding: 10px;
}

.weapons-wide-card .weapons-table {
    min-width: 640px;
}

body.theme-light .weapons-wide-card .weapons-table-wrapper {
    border-color: rgba(124, 58, 237, 0.12);
    background: linear-gradient(135deg, rgba(236, 244, 255, 0.96), rgba(219, 234, 254, 0.92));
}

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.weapons-mini-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.weapons-mini-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weapon-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

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

.weapon-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 245, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.weapon-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.85), rgba(138, 43, 226, 0.8));
    border-radius: inherit;
    transition: width 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}

body.theme-light .weapon-bar {
    background: rgba(124, 58, 237, 0.12);
}

body.theme-light .weapon-bar span {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.85), rgba(14, 165, 233, 0.8));
}

.summary-item {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.82), rgba(5, 8, 18, 0.9));
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 32px rgba(5, 10, 30, 0.4);
}

body.theme-light .summary-item {
    background: linear-gradient(145deg, rgba(247, 249, 255, 0.95), rgba(234, 244, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.16);
    box-shadow: 0 18px 28px rgba(148, 163, 184, 0.22);
}

.summary-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.performance-overview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.overview-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
}

.overview-score {
    background: linear-gradient(145deg, rgba(11, 14, 28, 0.92), rgba(5, 8, 18, 0.92));
    border-radius: 22px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 245, 255, 0.22);
    box-shadow: 0 24px 40px rgba(5, 10, 30, 0.48);
}

body.theme-light .overview-score {
    background: linear-gradient(145deg, rgba(247, 250, 255, 0.96), rgba(232, 244, 255, 0.94));
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 24px 38px rgba(148, 163, 184, 0.25);
}

.metric-pill {
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    border: 1px solid rgba(0, 245, 255, 0.2);
    background: linear-gradient(135deg, rgba(8, 12, 24, 0.85), rgba(5, 8, 18, 0.9));
    color: var(--text-primary);
    box-shadow: 0 18px 28px rgba(5, 10, 30, 0.35);
}

body.theme-light .metric-pill {
    background: linear-gradient(135deg, rgba(247, 249, 255, 0.95), rgba(234, 244, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.16);
    box-shadow: 0 18px 26px rgba(148, 163, 184, 0.22);
    color: var(--text-primary);
}

.overview-feedback,
.overview-focus {
    border-radius: 20px;
    padding: 22px 26px;
    border: 1px solid rgba(0, 245, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.78), rgba(5, 8, 18, 0.88));
    box-shadow: 0 20px 36px rgba(5, 10, 30, 0.35);
}

body.theme-light .overview-feedback,
body.theme-light .overview-focus {
    background: linear-gradient(145deg, rgba(247, 250, 255, 0.95), rgba(234, 244, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 20px 32px rgba(148, 163, 184, 0.22);
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-cyan);
}

.overview-feedback p,
.overview-focus p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

body.theme-light .overview-feedback p,
body.theme-light .overview-focus p {
    color: rgba(17, 24, 39, 0.82);
}

/* Bottom Section */
.bottom-section {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.weapons-table {
    width: 100%;
    margin-top: 20px;
}

.weapons-table th {
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weapons-table td {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.weapon-icon {
    margin-right: 10px;
}

.progress-bar {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    display: inline-block;
    margin-right: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

.timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 25px;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
}

.dot.green {
    background: var(--positive);
}

.dot.red {
    background: var(--negative);
}

.timeline-item p {
    font-size: 14px;
    line-height: 1.5;
}

.timeline-item strong {
    font-size: 18px;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1400px) {
    .dashboard-split,
    .big-cards,
    .analytics-section,
    .bottom-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-controls {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .analytics-controls .select-wrapper {
        flex: 1 1 100%;
    }

    .select-wrapper select {
        width: 100%;
    }

    .overview-score {
        flex-direction: row;
        justify-content: space-between;
    }

    .overview-score strong {
        font-size: 32px;
    }

    .metric-pill {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .dashboard-split {
        gap: 18px;
    }

    .score-card {
        grid-template-columns: 1fr;
        padding-right: 24px;
    }

    .score-content {
        max-width: none;
    }

    .score-visual {
        position: static;
        transform: none;
        margin-top: 24px;
        pointer-events: auto;
        justify-content: center;
    }
}
