/* ==========================================================================
   botlane.cc — Exact Live dpm.lol Obsidian Glass Theme
   Canvas: #121319 | Navbar: #0D0F10 (52px) | Card Glass: rgba(222,204,251,0.04)
   Primary: #a6b0f2 | Blue: #4d62e5 / #3045c9 | Destructive: #f7665e | Legendary: #ffd47d
   ========================================================================== */

:root {
    --primary: #a6b0f2;
    --dpm-blue-500: #4d62e5;
    --dpm-blue-600: #3045c9;
    --destructive: #f7665e;
    --legendary: #ffd47d;
    --foreground: #f9fafd;
    --muted-foreground: #9b9c9e;

    --bg-canvas: #121319;
    --bg-canvas-alt: #0D0F10;
    --bg-card: rgba(222, 204, 251, 0.04);
    --bg-card-solid: #181921;
    --bg-card-alt: rgba(222, 204, 251, 0.06);
    --bg-elevated: rgba(222, 204, 251, 0.08);
    --bg-input: #0E1016;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.06);

    --text-primary: var(--foreground);
    --text-secondary: #c7c9d4;
    --text-muted: var(--muted-foreground);

    --accent-cyan: var(--primary);
    --accent-blue: var(--primary);
    --accent-primary: var(--dpm-blue-500);
    --accent-glow: rgba(77, 98, 229, 0.24);

    --win: var(--primary);
    --win-emerald: #34d399;
    --win-bg: rgba(48, 69, 201, 0.25);
    --win-border: rgba(166, 176, 242, 0.24);

    --loss: var(--destructive);
    --coral: var(--destructive);
    --loss-bg: rgba(247, 102, 94, 0.20);
    --loss-border: rgba(247, 102, 94, 0.28);

    --gold: var(--legendary);
    --amber: var(--legendary);
    --gold-bg: rgba(255, 212, 125, 0.16);
    --purple: #c4b5fd;
    --purple-bg: rgba(167, 139, 250, 0.18);

    --radius-sm: 6px;
    --radius-md: 6px;
    --radius-lg: 6px;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.72);

    --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* Custom Obsidian Glass Scrollbars */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #0d0f10;
}

::-webkit-scrollbar-thumb {
    background: rgba(166, 176, 242, 0.22);
    border-radius: 999px;
    border: 2px solid #0d0f10;
    transition: background 0.16s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(166, 176, 242, 0.45);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, var(--primary), var(--dpm-blue-500));
}

::-webkit-scrollbar-corner {
    background: #0d0f10;
}

.mastery-table-wrap::-webkit-scrollbar,
.mosaic-calendar-scroll::-webkit-scrollbar,
.mosaic-grid-scroll::-webkit-scrollbar,
.dpm-build-timeline::-webkit-scrollbar,
.ss-dropdown::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mastery-table-wrap::-webkit-scrollbar-track,
.mosaic-calendar-scroll::-webkit-scrollbar-track,
.mosaic-grid-scroll::-webkit-scrollbar-track,
.dpm-build-timeline::-webkit-scrollbar-track,
.ss-dropdown::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: rgba(13, 15, 16, 0.45);
    border-radius: 999px;
}

.mastery-table-wrap::-webkit-scrollbar-thumb,
.mosaic-calendar-scroll::-webkit-scrollbar-thumb,
.mosaic-grid-scroll::-webkit-scrollbar-thumb,
.dpm-build-timeline::-webkit-scrollbar-thumb,
.ss-dropdown::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(166, 176, 242, 0.22);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

@supports not selector(::-webkit-scrollbar) {
    html,
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(166, 176, 242, 0.30) #0d0f10;
    }
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.14s ease;
}

a:hover {
    color: var(--accent-cyan);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.tabular,
.num {
    font-variant-numeric: tabular-nums;
}

/* Text color utilities */
.text-white { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sky, .text-cyan { color: var(--accent-cyan); }
.text-win { color: var(--win-emerald); }
.text-loss { color: var(--loss); }
.text-coral { color: #F87171; }
.text-gold { color: var(--amber); }
.text-purple { color: var(--purple); }

/* ==========================================================================
   Layout Container & Sleek Sticky Top Navbar (52px, #0D0F10, 1104px inner)
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1136px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content {
    flex: 1;
    padding: 18px 0 48px;
}

.main-content-home {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.main-content-home > .container {
    max-width: 100%;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #0D0F10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 52px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

.brand:hover {
    color: #fff;
}

.brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.brand-tld {
    color: var(--primary);
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dpm-blue-500) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0D0F10;
    font-weight: 900;
    flex-shrink: 0;
}

.brand-text {
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background 0.14s ease, color 0.14s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.nav-search-form {
    position: relative;
    flex: 1;
    max-width: 410px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-search-region,
.nav-region-select {
    width: 78px;
    height: 32px;
    padding: 0 26px 0 9px;
    background-color: #161820;
    background-position: right 8px center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    color: #f9fafd;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 10px;
    background-color: #161820;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    min-width: 0;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.nav-search-input-wrap:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-search-input-wrap:focus-within {
    border-color: #a6b0f2;
    box-shadow: 0 0 0 2px rgba(166, 176, 242, 0.18);
    background-color: #1a1d27;
}

.nav-search-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #8B90A0;
    stroke: #8B90A0;
    display: block;
    pointer-events: none;
}

.nav-search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #f9fafd;
    font-size: 0.8rem;
    box-shadow: none;
}

.nav-search-input::placeholder {
    color: var(--muted-foreground);
}

.nav-search-wrap {
    flex: 1;
    max-width: 340px;
    position: relative;
    display: flex;
    align-items: center;
}

.account-switcher {
    width: 100%;
    height: 32px;
    background: rgba(249, 250, 253, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.14s ease;
}

.account-switcher:focus {
    outline: none;
    border-color: #a6b0f2;
    box-shadow: 0 0 0 2px rgba(166, 176, 242, 0.18);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 5px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #23283B;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

/* ==========================================================================
   Buttons, Pills, Badges, Alerts
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, opacity 0.14s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--dpm-blue-500);
    color: #fff;
}
.btn-primary:hover {
    background: var(--dpm-blue-600);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: #272A38;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
}
.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.35);
}
.btn-gold:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #FDE68A;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.24);
    color: #FCA5A5;
}

.btn-sm { padding: 6px 11px; font-size: 0.8rem; }
.btn-xs { padding: 4px 8px; font-size: 0.74rem; }
.btn-lg { padding: 10px 18px; font-size: 0.9rem; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.pill-cyan { color: var(--accent-cyan); background: rgba(125, 211, 252, 0.12); border-color: rgba(125, 211, 252, 0.28); }
.pill-win { color: #34D399; background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.3); }
.pill-loss { color: #F87171; background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.3); }

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card-alt);
    color: var(--text-secondary);
}
.alert-error { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); color: #FCA5A5; }
.alert-success { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); color: #6EE7B7; }
.alert-info { border-color: rgba(96, 165, 250, 0.35); background: rgba(59, 130, 246, 0.1); color: #BAE6FD; }

.code-inline {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-cyan);
}

.spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: dpmSpin 0.65s linear infinite;
}
@keyframes dpmSpin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Generic Cards & Page Header (Dashboard / Settings / Auth)
   ========================================================================== */

.card,
.dpm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 16px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.page-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.empty-state h2 { margin: 0 0 8px; font-size: 1.1rem; }
.empty-state p { margin: 0 auto 18px; max-width: 520px; font-size: 0.86rem; color: var(--text-muted); }

/* ==========================================================================
   1. PROFILE HEADER CARD (Exact Live dpm.lol Measurements)
   ========================================================================== */

.dpm-profile-header {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 18px 20px 0;
    margin-bottom: 16px;
}

.dpm-profile-splash {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 66%;
    background-size: cover;
    background-position: center 22%;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
    filter: saturate(1.12);
}

.dpm-profile-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
}

.dpm-profile-tabs {
    position: relative;
    z-index: 1;
}

.dpm-profile-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dpm-avatar-box {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.dpm-avatar-img {
    width: 76px;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.dpm-avatar-lvl {
    position: absolute;
    right: -4px;
    bottom: -4px;
    background: #0D0F10;
    color: var(--foreground);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.3;
}

.dpm-identity-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dpm-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dpm-gamename {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--foreground);
    line-height: 1.2;
}

.dpm-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.dpm-region-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.dpm-ext-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    padding: 3px;
    border-radius: 5px;
}
.dpm-ext-link:hover {
    color: var(--foreground);
    background: var(--bg-elevated);
}

.dpm-update-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dpm-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--foreground);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.dpm-update-btn:hover {
    background: rgba(222, 204, 251, 0.12);
    border-color: rgba(166, 176, 242, 0.35);
}

.dpm-update-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--legendary);
    box-shadow: 0 0 8px rgba(255, 212, 125, 0.75);
}

.dpm-sync-meta {
    font-size: 0.74rem;
    color: var(--muted-foreground);
}

.dpm-profile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dpm-profile-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2px;
}

.dpm-tab-btn {
    position: relative;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 2px 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: color 0.14s ease, border-color 0.14s ease;
}

.dpm-tab-btn:hover {
    color: var(--foreground);
}

.dpm-tab-btn.active {
    color: var(--foreground);
    border-bottom: 2px solid var(--primary);
}

.dpm-tab-panel {
    display: none;
}
.dpm-tab-panel.active {
    display: block;
}

/* ==========================================================================
   2. TWO-COLUMN PROFILE LAYOUT (272px Sidebar + 16px Gap + 1fr [816px] Main)
   ========================================================================== */

.dpm-layout-grid {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.dpm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dpm-main-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.dpm-card-head {
    display: flex;
    align-items: center;
    padding: 11px 13px 9px;
}

.dpm-card-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.dpm-card-empty {
    padding: 14px 13px 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- DERECELİ SOLO Card --- */
.dpm-rank-card {
    padding: 12px 14px;
}

.dpm-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dpm-unranked-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dpm-rank-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 800;
}

.dpm-rank-mini-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.dpm-rank-sub {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.dpm-rank-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 9px 0;
}

/* --- Queue Filter Tabs (Tümü | Solo | Flex | Aram | Arena) --- */
.dpm-queue-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.dpm-queue-tab {
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background 0.14s ease, color 0.14s ease;
}

.dpm-queue-tab:hover {
    color: var(--text-primary);
}

.dpm-queue-tab.active {
    background: #272936;
    color: #fff;
}

/* --- ŞAMPİYON PERFORMANSI & BİRLİKTE OYNADIKLARI --- */
.dpm-champ-list,
.dpm-played-list {
    display: flex;
    flex-direction: column;
    padding: 0 6px 6px;
}

.dpm-champ-item,
.dpm-played-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px;
    border-radius: 6px;
    color: inherit;
    transition: background 0.12s ease;
}

.dpm-champ-item:hover,
.dpm-champ-item.active {
    background: var(--bg-elevated);
    color: inherit;
}

.dpm-champ-ico {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.dpm-champ-mid {
    flex: 1;
    min-width: 0;
}

.dpm-champ-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dpm-champ-sub {
    font-size: 0.71rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.dpm-champ-right {
    text-align: right;
    flex-shrink: 0;
}

.dpm-champ-wr {
    font-size: 0.8rem;
    font-weight: 700;
}

.dpm-wr-lbl {
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dpm-champ-wl {
    font-size: 0.69rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.dpm-card-footer-btn {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.dpm-card-footer-btn:hover {
    background: var(--bg-elevated);
    color: #fff;
}

/* --- ROL PERFORMANSI (Horizontal Fill Bars) --- */
.dpm-role-list {
    display: flex;
    flex-direction: column;
    padding: 0 6px 8px;
    gap: 2px;
}

.dpm-role-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 6px;
    overflow: hidden;
    color: inherit;
    transition: background 0.14s ease;
}

.dpm-role-row:hover,
.dpm-role-row.active {
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}

.dpm-role-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(166, 176, 242, 0.12);
    border-radius: 6px;
    pointer-events: none;
}

.dpm-role-left,
.dpm-role-right {
    position: relative;
    z-index: 1;
}

.dpm-role-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dpm-role-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    color: var(--text-primary);
}

.dpm-role-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dpm-role-games {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dpm-role-right {
    text-align: right;
}

.dpm-role-wr {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.dpm-role-wl {
    display: block;
    font-size: 0.69rem;
    color: var(--text-muted);
}

/* --- TOPLAM PİNG --- */
.dpm-ping-list {
    display: flex;
    flex-direction: column;
    padding: 0 6px 8px;
    gap: 2px;
}

.dpm-ping-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 6px;
    overflow: hidden;
}

.dpm-ping-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(166, 176, 242, 0.12);
    border-radius: 6px;
    pointer-events: none;
}

.dpm-ping-left,
.dpm-ping-right {
    position: relative;
    z-index: 1;
}

.dpm-ping-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dpm-ping-ico {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter: brightness(0.95) contrast(1.12);
}

.dpm-ping-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dpm-ping-right {
    text-align: right;
}

.dpm-ping-total {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dpm-ping-avg {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ==========================================================================
   3. RIGHT COLUMN: SON 30 MAÇ SUMMARY CARD
   ========================================================================== */

.dpm-recent-card {
    padding: 12px 18px 14px;
}

.dpm-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.dpm-recent-grid {
    display: grid;
    grid-template-columns: 128px 1fr 104px 106px 158px;
    gap: 14px;
    align-items: center;
}

.dpm-arc-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dpm-arc-svg-wrap {
    position: relative;
    width: 124px;
    height: 70px;
}

.dpm-arc-canvas {
    width: 100% !important;
    height: 100% !important;
}

.dpm-arc-center {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 3px;
}

.dpm-arc-pct {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.05;
}

.dpm-arc-lbl {
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
    margin-top: 2px;
}

.dpm-arc-wl {
    font-size: 0.74rem;
    font-weight: 700;
    margin-top: 2px;
}

.dpm-recent-champs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 6px;
}

.dpm-mini-champ {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpm-mini-champ-ico {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.dpm-mini-champ-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    line-height: 1.2;
}

.dpm-mini-champ-kda {
    font-size: 0.7rem;
    line-height: 1.2;
}

.dpm-recent-kda,
.dpm-recent-rank {
    text-align: center;
}

.dpm-recent-metric-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.dpm-recent-kda-val {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1.1;
}

.dpm-recent-kda-sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dpm-recent-rank-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.dpm-rank-of {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 1px;
}

.dpm-recent-badges {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
}

.dpm-badge-mvp {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    background: var(--gold-bg);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dpm-badge-ace {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    background: var(--purple-bg);
    color: #C4B5FD;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

/* ==========================================================================
   4. TOOLBAR (Role Icons + Gün/Oturum/Yok + Filtreler)
   ========================================================================== */

.dpm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dpm-toolbar-left,
.dpm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpm-role-filter-group,
.dpm-group-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2px;
    gap: 2px;
}

.dpm-role-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 5px;
    color: var(--text-muted);
    transition: background 0.12s ease, color 0.12s ease;
}

.dpm-role-filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.dpm-role-filter-btn.active {
    background: #272936;
    color: #fff;
}

.dpm-group-btn {
    background: transparent;
    border: none;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.dpm-group-btn:hover {
    color: var(--text-primary);
}

.dpm-group-btn.active {
    background: #272936;
    color: #fff;
}

.dpm-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.dpm-filter-toggle-btn:hover,
.dpm-filter-toggle-btn.active {
    background: var(--bg-elevated);
    color: #fff;
    border-color: #363A4C;
}

.dpm-filter-drawer {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.dpm-filter-drawer.open {
    display: block;
}

.dpm-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 8px;
    align-items: center;
}

/* ==========================================================================
   5. DAY GROUPS & COMPACT MATCH ROWS (Exact dpm.lol Win/Loss Gradients)
   ========================================================================== */

.dpm-match-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dpm-day-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dpm-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 4px;
}

.dpm-day-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: #fff;
}

.dpm-day-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dpm-day-pill-dpm {
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.dpm-day-pill-dpm strong { color: var(--text-primary); }

.dpm-day-pill-win {
    padding: 3px 9px;
    border-radius: 5px;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93C5FD;
    font-size: 0.72rem;
    font-weight: 700;
}

.dpm-day-pill-loss {
    padding: 3px 9px;
    border-radius: 5px;
    background: rgba(217, 83, 79, 0.24);
    border: 1px solid rgba(217, 83, 79, 0.35);
    color: #FCA5A5;
    font-size: 0.72rem;
    font-weight: 700;
}

.dpm-day-matches {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dpm-match-card {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.dpm-match-card.win {
    background: rgba(48, 69, 201, 0.25);
    border-color: rgba(166, 176, 242, 0.16);
}

.dpm-match-card.loss {
    background: rgba(247, 102, 94, 0.20);
    border-color: rgba(247, 102, 94, 0.20);
}

.dpm-match-card.win:hover { border-color: rgba(166, 176, 242, 0.38); }
.dpm-match-card.loss:hover { border-color: rgba(247, 102, 94, 0.42); }

.dpm-match-row {
    display: grid;
    grid-template-columns: 112px 58px 88px 78px 44px 102px 56px 80px 35px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 62px;
    padding: 0 0 0 12px;
    cursor: pointer;
    user-select: none;
}

/* Col 1: Meta */
.dpm-m-meta {
    min-width: 0;
    padding: 6px 0;
}
.dpm-m-time-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.dpm-m-dur {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
}
.dpm-m-ago {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.dpm-m-queue {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Col 2: Champ Portrait */
.dpm-m-champ {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 auto;
}
.dpm-m-champ-img {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.dpm-m-role-pin {
    position: absolute;
    left: -3px;
    bottom: -3px;
    z-index: 3;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    background: #0D0E12;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dpm-m-champ.has-duo {
    transform: translateX(-4px);
}
.dpm-m-duo-partner {
    position: absolute;
    right: -13px;
    top: -4px;
    width: 28px;
    height: 28px;
    z-index: 1;
    border-radius: 6px;
}
.dpm-m-duo-partner img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0.92;
}
.dpm-m-duo-role {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    background: #0D0E12;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Col 3: KDA + Badge */
.dpm-m-kda {
    text-align: center;
}
.dpm-m-kda-nums {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}
.dpm-m-kda-nums .sep { color: var(--text-muted); font-weight: 500; margin: 0 1px; }
.dpm-m-kda-nums .d { color: var(--loss); }

.dpm-m-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 700;
}
.dpm-m-tag.tag-mvp {
    background: linear-gradient(135deg, rgba(255, 212, 125, 0.28), rgba(245, 158, 11, 0.16));
    color: #ffd47d;
    border: 1px solid rgba(255, 212, 125, 0.48);
    box-shadow: 0 0 10px rgba(255, 212, 125, 0.16);
}
.dpm-m-tag.tag-ace {
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.28), rgba(139, 92, 246, 0.16));
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.48);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.15);
}
.dpm-m-tag.tag-rank-2 {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.22), rgba(148, 163, 184, 0.12));
    color: #e2e8f0;
    border: 1px solid rgba(203, 213, 225, 0.36);
}
.dpm-m-tag.tag-rank-3 {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.22), rgba(180, 83, 9, 0.12));
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.36);
}
.dpm-m-tag.tag-good { background: rgba(59, 130, 246, 0.25); color: #93C5FD; }
.dpm-m-tag.tag-bad { background: rgba(247, 102, 94, 0.16); color: #fca5a5; }
.dpm-m-tag.tag-avg { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* Col 4: KDA Ratio / CS / KP */
.dpm-m-stats {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.dpm-m-kda-ratio {
    font-size: 0.8rem;
    font-weight: 800;
}
.dpm-m-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Col 5: 2x2 Spells & Runes */
.dpm-m-sr {
    display: grid;
    grid-template-columns: repeat(2, 20px);
    gap: 3px;
}
.dpm-sr-ico {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}
.dpm-sr-rune {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(13, 14, 18, 0.65);
    padding: 1px;
    object-fit: contain;
}
.dpm-sr-rune.empty { display: inline-block; }

/* Col 6: 6 Items (3x2) + Trinket */
.dpm-m-items-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dpm-m-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 22px);
    gap: 3px;
}
.dpm-item-box {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(13, 14, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: inline-block;
}
.dpm-item-box img { width: 100%; height: 100%; object-fit: cover; }
.dpm-item-box.trinket { border-radius: 50%; }

/* Col 7: Enemy Lane Opponent VS */
.dpm-m-vs {
    display: flex;
    justify-content: center;
}
.dpm-vs-wrap {
    position: relative;
    width: 38px;
    height: 38px;
}
.dpm-vs-wrap.has-duo {
    transform: translateX(-4px);
}
.dpm-vs-img {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.dpm-vs-badge {
    position: absolute;
    left: -5px;
    top: -5px;
    z-index: 3;
    padding: 0 4px;
    border-radius: 3px;
    background: #0D0E12;
    border: 1px solid var(--border-color);
    font-size: 0.56rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* Col 8: dpm.lol-Style Score Capsule Pill */
.dpm-m-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
}
.dpm-score-capsule,
.dpm-score-capsule.dpm-ring-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    border-radius: 999px;
    background: rgba(13, 14, 18, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.14s ease, box-shadow 0.15s ease;
}
.dpm-score-capsule:hover,
.dpm-score-capsule.dpm-ring-btn:hover {
    background: rgba(13, 14, 18, 0.84);
    border-color: rgba(166, 176, 242, 0.42);
    transform: translateY(-1px);
    filter: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.dpm-cap-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    min-width: 24px;
}
.dpm-cap-num {
    font-size: 0.86rem;
    font-weight: 800;
}
.dpm-cap-sub {
    font-size: 0.61rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 1px;
}
.dpm-cap-sub.rank-2 { color: #e2e8f0; }
.dpm-cap-sub.rank-3 { color: #fdba74; }
.dpm-cap-ring {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: block;
}
.dpm-ring-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.dpm-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.dpm-ring-num {
    font-size: 0.78rem;
    font-weight: 800;
}
.dpm-ring-sub {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--muted-foreground);
    line-height: 1;
}

/* Col 9: Right-edge 35px Bordered Chevron Toggle Strip */
.dpm-m-chevron-strip {
    width: 35px;
    height: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.14s ease;
}
.dpm-match-row:hover .dpm-m-chevron-strip {
    background: rgba(255, 255, 255, 0.06);
}
.dpm-m-chevron {
    color: var(--muted-foreground);
    display: inline-flex;
    transition: transform 0.18s ease, color 0.14s ease;
}
.dpm-match-card.expanded .dpm-m-chevron {
    transform: rotate(180deg);
    color: var(--foreground);
}

/* ==========================================================================
   6. EXPANDED MATCH DRAWER (General / Details / Runes)
   ========================================================================== */

.dpm-match-drawer {
    display: none;
    background: #121319;
    border-top: 1px solid var(--border-color);
}
.dpm-match-card.expanded .dpm-match-drawer {
    display: block;
}

.dpm-drawer-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 44px;
    background: rgba(222, 204, 251, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.dpm-drawer-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.dpm-drawer-tab:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.03);
}

.dpm-drawer-tab.active {
    color: var(--foreground);
    background: rgba(222, 204, 251, 0.06);
    border-bottom-color: var(--primary);
}

.dpm-drawer-body {
    padding: 12px 14px 14px;
}

/* --- TAB 1: GENERAL (10-Player Scoreboard) --- */
.dpm-general-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dpm-sb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 4px 8px;
}

.dpm-sb-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    flex-wrap: wrap;
}

.dpm-sb-objs {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dpm-obj {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.dpm-obj-dot { font-size: 0.72rem; }

.dpm-gen-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dpm-sb-rows {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dpm-sb-row {
    display: grid;
    grid-template-columns: 44px 36px minmax(110px, 1fr) 40px 168px 66px 76px 104px 36px;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.015);
    transition: background 0.12s ease;
}

.dpm-sb-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dpm-sb-row.is-owner {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.dpm-sb-badge {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
}
.dpm-sb-badge.mvp { background: linear-gradient(135deg, rgba(255, 212, 125, 0.28), rgba(245, 158, 11, 0.16)); color: #ffd47d; border: 1px solid rgba(255, 212, 125, 0.45); }
.dpm-sb-badge.ace { background: linear-gradient(135deg, rgba(196, 181, 253, 0.28), rgba(139, 92, 246, 0.16)); color: #ddd6fe; border: 1px solid rgba(167, 139, 250, 0.45); }
.dpm-sb-badge.rank2 { background: rgba(226, 232, 240, 0.18); color: #e2e8f0; border: 1px solid rgba(203, 213, 225, 0.32); }
.dpm-sb-badge.rank3 { background: rgba(251, 146, 60, 0.18); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.32); }
.dpm-sb-badge.std { background: #1C1E28; color: var(--text-muted); }

.dpm-sb-champ {
    position: relative;
    width: 34px;
    height: 34px;
}
.dpm-sb-champ img {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    object-fit: cover;
}
.dpm-sb-lvl {
    position: absolute;
    right: -3px;
    bottom: -3px;
    background: #0D0E12;
    color: var(--text-primary);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0 3px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.dpm-sb-player {
    min-width: 0;
}
.dpm-sb-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dpm-sb-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.dpm-sb-rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    vertical-align: middle;
}
.dpm-sb-rank-ico {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.dpm-sb-rank-pill.tier-iron        { color: #9ca3af; }
.dpm-sb-rank-pill.tier-bronze      { color: #d4956a; }
.dpm-sb-rank-pill.tier-silver      { color: #cbd5e1; }
.dpm-sb-rank-pill.tier-gold        { color: #e8b959; }
.dpm-sb-rank-pill.tier-platinum    { color: #5eead4; }
.dpm-sb-rank-pill.tier-emerald     { color: #34d399; }
.dpm-sb-rank-pill.tier-diamond     { color: #60a5fa; }
.dpm-sb-rank-pill.tier-master      { color: #c084fc; }
.dpm-sb-rank-pill.tier-grandmaster { color: #f87171; }
.dpm-sb-rank-pill.tier-challenger  { color: #fde047; }

.dpm-sb-sr {
    display: grid;
    grid-template-columns: repeat(2, 17px);
    gap: 2px;
}
.dpm-sb-sr img {
    width: 17px;
    height: 17px;
    border-radius: 3px;
}
.dpm-sb-sr .rune {
    border-radius: 50%;
    background: #0D0E12;
}

.dpm-sb-items {
    display: flex;
    align-items: center;
    gap: 2px;
}
.dpm-sb-item {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #0E1016;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.dpm-sb-item img { width: 100%; height: 100%; object-fit: cover; }
.dpm-sb-item.trinket { border-radius: 50%; margin-left: 2px; }

.dpm-sb-kda {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}
.dpm-sb-kda .sep { color: var(--text-muted); margin: 0 1px; }
.dpm-sb-kda .d { color: var(--loss); }

.dpm-sb-kpcs {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.74rem;
    text-align: center;
}
.dpm-sb-kpcs strong { display: block; color: var(--text-primary); line-height: 1.15; }
.dpm-sb-kpcs span { display: block; font-size: 0.62rem; color: var(--text-muted); }

.dpm-sb-dmg {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dpm-dmg-track {
    width: 80px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.dpm-dmg-fill {
    display: block;
    height: 100%;
    background: #bef264;
    border-radius: 999px;
}
.dpm-dmg-txt {
    font-size: 0.67rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.dpm-sb-score {
    font-size: 0.9rem;
    font-weight: 900;
    text-align: right;
}

/* Legacy / Manual Fallback Drawer */
.dpm-legacy-drawer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dpm-legacy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.dpm-legacy-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
}
.dpm-legacy-stat span { display: block; font-size: 0.68rem; color: var(--text-muted); }
.dpm-legacy-stat strong { display: block; font-size: 0.9rem; margin-top: 2px; }
.dpm-legacy-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.match-notes-box {
    padding: 9px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- TAB 2: DETAILS (Screenshot 3) --- */
.dpm-details-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dpm-det-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 4px 0 6px;
    flex-wrap: wrap;
}

.dpm-det-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpm-det-vs {
    font-size: 0.9rem;
    font-weight: 900;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.dpm-det-champ-btn {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--bg-elevated);
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.dpm-det-champ-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dpm-det-champ-btn:hover {
    opacity: 0.88;
}

.dpm-det-champ-btn.active {
    opacity: 1;
    border-color: #fff;
    transform: translateY(-1px);
}

.dpm-det-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dpm-det-cards-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
}

.dpm-det-box {
    background: #16171F;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 14px;
}

.dpm-det-box-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dpm-det-metrics-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
}

.dpm-det-metrics-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    text-align: center;
}

.dpm-det-metrics-4 strong,
.dpm-det-metrics-3 strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dpm-det-metrics-4 span,
.dpm-det-metrics-3 span {
    display: block;
    font-size: 0.67rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dpm-det-loading,
.dpm-det-empty-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Build Order Flow */
.dpm-build-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dpm-build-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dpm-build-icons {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 6px;
    background: #101117;
    border: 1px solid var(--border-subtle);
}

.dpm-build-ico {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
}

.dpm-build-min {
    font-size: 0.67rem;
    color: var(--text-muted);
}

.dpm-build-final {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 7px;
    border-radius: 10px;
    background: rgba(16, 17, 23, 0.92);
    border: 1px solid rgba(166, 176, 242, 0.34);
}

.dpm-build-final.is-win {
    border-color: rgba(166, 176, 242, 0.38);
    background: linear-gradient(180deg, rgba(77, 98, 229, 0.08), rgba(16, 17, 23, 0.92));
}

.dpm-build-final.is-loss {
    border-color: rgba(247, 102, 94, 0.42);
    background: linear-gradient(180deg, rgba(247, 102, 94, 0.08), rgba(16, 17, 23, 0.92));
}

.dpm-build-final-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.dpm-build-final-ico {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dpm-build-final-lbl {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.dpm-build-final.is-win .dpm-build-final-lbl {
    color: var(--primary);
}

.dpm-build-final.is-loss .dpm-build-final-lbl {
    color: var(--destructive);
}

.dpm-build-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 14px;
}

/* Skill Order 4x18 Grid */
.dpm-skill-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 5px;
}

.dpm-skill-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.dpm-skill-key {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dpm-skill-ico-wrap {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dpm-skill-ico {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dpm-skill-ico-wrap .dpm-skill-key-pin {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 900;
    line-height: 1;
    background: #0f1117;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}
.dpm-skill-ico-wrap .dpm-skill-key-pin.skill-key-q { color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.7); }
.dpm-skill-ico-wrap .dpm-skill-key-pin.skill-key-w { color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.7); }
.dpm-skill-ico-wrap .dpm-skill-key-pin.skill-key-e { color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.7); }
.dpm-skill-ico-wrap .dpm-skill-key-pin.skill-key-r { color: #F87171; border: 1px solid rgba(239, 68, 68, 0.7); }
.skill-key-q { background: rgba(59, 130, 246, 0.22); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.45); }
.skill-key-w { background: rgba(245, 158, 11, 0.22); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.45); }
.skill-key-e { background: rgba(168, 85, 247, 0.22); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.45); }
.skill-key-r { background: rgba(239, 68, 68, 0.22); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.45); }

.dpm-skill-cells {
    display: grid;
    grid-template-columns: repeat(18, 22px);
    gap: 4px;
}

.dpm-skill-cell {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #222430;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
}
.dpm-skill-cell.skill-q { background: #3B82F6; }
.dpm-skill-cell.skill-w { background: #F59E0B; color: #111; }
.dpm-skill-cell.skill-e { background: #A855F7; }
.dpm-skill-cell.skill-r { background: #EF4444; }

/* Spell Casts & Pings */
.dpm-casts-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
}

.dpm-cast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.dpm-cast-badge {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
}

.dpm-cast-ability-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dpm-cast-spell-ico {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dpm-cast-item .dpm-cast-key-pin {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.56rem;
    font-weight: 900;
    line-height: 1;
    background: #0f1117;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.dpm-cast-item .dpm-cast-key-pin.skill-key-q { color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.7); }
.dpm-cast-item .dpm-cast-key-pin.skill-key-w { color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.7); }
.dpm-cast-item .dpm-cast-key-pin.skill-key-e { color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.7); }
.dpm-cast-item .dpm-cast-key-pin.skill-key-r { color: #F87171; border: 1px solid rgba(239, 68, 68, 0.7); }

.dpm-cast-item strong { font-size: 0.84rem; color: var(--text-primary); }
.dpm-cast-item > span,
.dpm-cast-item .dpm-cast-unit { font-size: 0.65rem; color: var(--text-muted); }

.dpm-cast-sep {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

.dpm-det-pings {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    text-align: center;
    padding-top: 6px;
}

.dpm-det-ping-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dpm-det-ping-ico {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    filter: brightness(0.92) contrast(1.15);
}

.dpm-det-ping-item strong {
    font-size: 0.84rem;
    color: var(--text-primary);
}

/* --- TAB 3: RUNES (10-Player Matrix, Screenshot 4) --- */
.dpm-runes-matrix {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 4px;
}

.dpm-runes-team-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.dpm-runes-divider {
    height: 1px;
    background: var(--border-color);
}

.dpm-rm-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 8px;
}

.dpm-rm-col.is-owner {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.dpm-rm-head {
    position: relative;
    width: 55px;
    height: 55px;
    margin-bottom: 14px;
}

.dpm-rm-champ {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.dpm-rm-keystone {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0D0F10;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 2px;
}

.dpm-rm-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dpm-rm-ico {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dpm-rm-ico.sub {
    width: 20px;
    height: 20px;
}
.dpm-rm-shard {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1px;
}
.dpm-rm-ico.empty,
.dpm-rm-shard.empty {
    display: inline-block;
    opacity: 0.25;
}

/* ==========================================================================
   7. CHAMPIONS TAB TABLE
   ========================================================================== */

.dpm-table-wrap {
    overflow-x: auto;
}

.dpm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.dpm-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card-alt);
}

.dpm-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.dpm-table tbody tr:hover {
    background: var(--bg-elevated);
}

.dpm-mini-bar {
    width: 72px;
    height: 6px;
    border-radius: 999px;
    background: #232530;
    overflow: hidden;
}
.dpm-mini-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.dpm-score-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 800;
}

/* ==========================================================================
   8. LP CHART, SNAPSHOTS, PAGINATION
   ========================================================================== */

.chart-container {
    position: relative;
    width: 100%;
}

.lp-chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 230px;
}

.chart-tooltip {
    display: none;
    position: absolute;
    z-index: 20;
    pointer-events: none;
    background: #14151B;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 0.75rem;
    box-shadow: var(--shadow-card);
    min-width: 130px;
}

.snapshot-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.snapshot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 11px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}
.page-btn:hover { background: var(--bg-elevated); color: #fff; }
.page-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }

/* ==========================================================================
   9. DASHBOARD, SETTINGS, AUTH, FORMS, MODALS & FOOTER (Obsidian Cohesive)
   ========================================================================== */

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 14px;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.14s ease;
}
.account-card:hover { border-color: #363A4C; }

.account-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summoner-icon-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.summoner-icon {
    width: 54px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.summoner-lvl {
    position: absolute;
    right: -4px;
    bottom: -4px;
    background: #0D0E12;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 5px;
}

.account-name-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.account-gamename { font-size: 1.02rem; font-weight: 800; color: #fff; }
.account-tagline { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

.account-rank-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    background: var(--bg-card-alt);
}
.rank-mini { display: flex; align-items: center; gap: 10px; }
.rank-emblem-sm { width: 30px; height: 30px; object-fit: contain; }

.account-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.mini-stat {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 8px 10px;
}
.mini-stat .k { font-size: 0.68rem; color: var(--text-muted); }
.mini-stat .v { font-size: 0.92rem; font-weight: 800; margin-top: 2px; }

.account-card-actions,
.account-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

/* Ortak Küresel Maç Arşivi Banner (Dashboard) */
.archive-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, rgba(77, 98, 229, 0.14) 0%, rgba(222, 204, 251, 0.04) 100%);
    border: 1px solid rgba(166, 176, 242, 0.2);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.archive-banner-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}

.archive-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(166, 176, 242, 0.14);
    border: 1px solid rgba(166, 176, 242, 0.24);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.archive-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--foreground);
}

.archive-banner-desc {
    margin: 3px 0 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.archive-banner-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.archive-stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 96px;
    padding: 7px 12px;
    border-radius: 6px;
    background: rgba(13, 15, 16, 0.55);
    border: 1px solid var(--border-color);
}

.archive-stat-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
}

.archive-stat-lbl {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Landing Hero & Features (index.php) */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0 36px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(166, 176, 242, 0.12);
    border: 1px solid rgba(166, 176, 242, 0.25);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--foreground);
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--legendary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    margin: 0 0 22px;
    font-size: 0.94rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.hero-metric-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--foreground);
}

.hero-metric-label {
    font-size: 0.74rem;
    color: var(--muted-foreground);
    margin-top: 2px;
}

.hero-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 18px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.preview-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.dpm-badge {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 0.8rem;
    font-weight: 800;
}

.preview-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.preview-stat-box {
    background: rgba(13, 15, 16, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.preview-stat-box .lbl {
    font-size: 0.68rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: 700;
}

.preview-stat-box .val {
    font-size: 1.02rem;
    font-weight: 800;
    margin-top: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 18px 16px;
}

.feature-icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--foreground);
}

.feature-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.steps-list {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.match-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.detail-stat {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 10px 12px;
}
.detail-stat .k { font-size: 0.7rem; color: var(--text-muted); }
.detail-stat .v { font-size: 0.94rem; font-weight: 800; margin-top: 2px; }

/* Auth pages */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 0;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
}
.auth-header { text-align: center; margin-bottom: 20px; }
.auth-header h1 { margin: 12px 0 4px; font-size: 1.3rem; font-weight: 800; }
.auth-header p { margin: 0; font-size: 0.84rem; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); }

/* Unified dpm.lol Dark Glass Form Controls */
.form-group { margin-bottom: 13px; }
.form-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
textarea,
.form-control,
.form-textarea {
    width: 100%;
    height: 36px;
    background-color: #161820;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    padding: 0 11px;
    color: #f9fafd;
    color-scheme: dark;
    font-size: 0.84rem;
    font-family: inherit;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

input[type="text"]:hover,
input[type="search"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
textarea:hover,
.form-control:hover,
.form-textarea:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

input[type="text"]::placeholder,
input[type="search"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder,
.form-control::placeholder,
.form-textarea::placeholder {
    color: #8B90A0;
    opacity: 0.85;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
textarea:focus,
.form-control:focus,
.form-textarea:focus {
    outline: none;
    border-color: #a6b0f2;
    box-shadow: 0 0 0 2px rgba(166, 176, 242, 0.18);
    background-color: #1a1d27;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B90A0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center center;
}

/* Unified custom <select> styling across the entire application */
select,
.form-select,
.home-search-region,
.home-region-select,
.nav-search-region,
.nav-region-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100%;
    height: 36px;
    line-height: 34px;
    background-color: #161820;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B90A0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    padding: 0 30px 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    color: #f9fafd;
    color-scheme: dark;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

select::-ms-expand {
    display: none;
}

select::picker-icon {
    display: none;
}

select:hover,
.form-select:hover,
.home-search-region:hover,
.home-region-select:hover,
.nav-search-region:hover,
.nav-region-select:hover {
    border-color: rgba(255, 255, 255, 0.20);
    background-color: #1b1e28;
}

select:focus,
.form-select:focus,
.home-search-region:focus,
.home-region-select:focus,
.nav-search-region:focus,
.nav-region-select:focus {
    outline: none;
    border-color: #a6b0f2;
    box-shadow: 0 0 0 2px rgba(166, 176, 242, 0.18);
    background-color: #1a1d27;
}

select:disabled,
.form-select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

select option,
select optgroup {
    background-color: #161820;
    color: #f9fafd;
}

/* Custom dark file input */
input[type="file"],
input[type="file"].form-control {
    height: auto;
    padding: 6px 10px;
    background-color: #161820;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 5px 12px;
    margin-right: 12px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: #272A38;
    border-color: rgba(166, 176, 242, 0.35);
    color: #fff;
}

/* Custom dark checkboxes & radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #a6b0f2;
    color-scheme: dark;
    cursor: pointer;
}

textarea,
.form-textarea {
    height: auto;
    min-height: 76px;
    padding: 9px 11px;
    resize: vertical;
}

.input-sm,
.select-sm {
    height: 32px;
    font-size: 0.8rem;
}

/* Override width/height on compact header search controls */
select.nav-search-region,
select.nav-region-select {
    width: 78px;
    height: 32px;
    line-height: 30px;
    padding: 0 26px 0 9px;
    background-position: right 8px center;
    font-size: 0.76rem;
    font-weight: 700;
}

input[type="search"].nav-search-input,
input[type="search"].nav-search-input:hover,
input[type="search"].nav-search-input:focus {
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.8rem;
}

.form-hint { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.result-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.result-toggle label { cursor: pointer; }
.result-toggle input { display: none; }
.result-toggle span {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}
.result-toggle input:checked + .win-opt {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.55);
    color: #93C5FD;
}
.result-toggle input:checked + .loss-opt {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.55);
    color: #FCA5A5;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-backdrop.open { display: flex; }

.modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-modal);
}
.modal-lg { max-width: 660px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
}
.modal-title { margin: 0; font-size: 0.96rem; font-weight: 800; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.modal-close:hover { color: #fff; }
.modal-body { padding: 16px 18px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--border-subtle);
}

/* Toasts */
.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}
.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #1B1D26;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.82rem;
    box-shadow: var(--shadow-card);
}
.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }
.toast.warning { border-color: rgba(245, 158, 11, 0.5); }

/* Minimal Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0D0F10;
    padding: 14px 0;
    font-size: 0.76rem;
    color: var(--muted-foreground);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--foreground);
    font-size: 0.82rem;
}
.footer-desc {
    margin: 0;
    font-size: 0.76rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   10. MINIMALIST HOMEPAGE HERO (dpm.lol Obsidian Canvas)
   ========================================================================== */

.home-hero {
    position: relative;
    flex: 1;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 64px;
    overflow-x: clip;
    background: #121319;
}

.home-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.14;
    mask-image: radial-gradient(ellipse 68% 60% at 50% 45%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 68% 60% at 50% 45%, #000 35%, transparent 100%);
    pointer-events: none;
}

.home-hero-glow {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    height: 420px;
    background: radial-gradient(
        ellipse at center,
        rgba(77, 98, 229, 0.24) 0%,
        rgba(166, 176, 242, 0.12) 38%,
        rgba(18, 19, 25, 0) 72%
    );
    filter: blur(36px);
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-brand-hero {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.home-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(77, 98, 229, 0.32);
}

.home-brand-name {
    margin: 0;
    font-size: 2.55rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--foreground);
    line-height: 1;
}

.home-search-box {
    width: 100%;
    max-width: 580px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 5px;
    border-radius: 10px;
    background: rgba(22, 24, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.home-search-box:focus-within {
    border-color: rgba(166, 176, 242, 0.52);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(166, 176, 242, 0.16);
}

select.home-search-region,
select.home-region-select {
    width: 86px;
    height: 40px;
    line-height: 40px;
    padding: 0 28px 0 12px;
    font-size: 0.84rem;
    font-weight: 700;
    background-color: transparent;
    background-position: right 9px center;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px 0 0 6px;
    flex-shrink: 0;
    cursor: pointer;
}

select.home-search-region:hover,
select.home-region-select:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-right-color: rgba(255, 255, 255, 0.14);
}

select.home-search-region:focus,
select.home-region-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    border-right: 1px solid rgba(166, 176, 242, 0.35);
    box-shadow: none;
}

.home-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 12px 0 14px;
    min-width: 0;
}

.home-search-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #8B90A0;
    stroke: #8B90A0;
    display: block;
    pointer-events: none;
}

input[type="search"].home-search-input,
input[type="search"].home-search-input:hover,
input[type="search"].home-search-input:focus {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #f9fafd;
    font-size: 0.94rem;
}

.home-search-submit {
    height: 40px;
    padding: 0 22px;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
}

.home-quick-links {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.home-quick-label {
    color: var(--muted-foreground);
    font-weight: 500;
}

.home-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(249, 250, 253, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--foreground);
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.home-quick-pill:hover {
    background: rgba(166, 176, 242, 0.14);
    border-color: rgba(166, 176, 242, 0.35);
    color: #fff;
}

.home-quick-tag {
    color: var(--muted-foreground);
    font-weight: 500;
}

.home-quick-hint {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.home-quick-hint strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   11. CLICKABLE PLAYER LINKS & DPM RING BUTTON
   ========================================================================== */

.player-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.14s ease;
}

.player-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dpm-ring-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.dpm-ring-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.14);
}

.dpm-ring-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.dpm-sb-score-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 2px 5px;
    border-radius: 5px;
    font: inherit;
    color: inherit;
    transition: background 0.14s ease, transform 0.14s ease;
}

.dpm-sb-score-btn:hover {
    background: rgba(161, 228, 249, 0.14);
    transform: scale(1.05);
}

/* ==========================================================================
   12. RICH HOVER TOOLTIP (.dpm-tooltip — 306px, #121619)
   ========================================================================== */

.dpm-tooltip {
    position: fixed;
    z-index: 9999;
    width: 306px;
    max-width: calc(100vw - 24px);
    padding: 13px 14px;
    border-radius: 14px;
    background: #121619;
    border: 1px solid #303133;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    color: #d6d9e2;
    font-size: 0.77rem;
    line-height: 1.48;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    display: none;
}

.dpm-tooltip.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dpm-tooltip-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.dpm-tooltip-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0D0F10;
    flex-shrink: 0;
}

.dpm-tooltip-title-wrap {
    min-width: 0;
    flex: 1;
}

.dpm-tooltip-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f9fafd;
    line-height: 1.25;
}

.dpm-tooltip-gold {
    margin-top: 2px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #e9c06f;
    font-variant-numeric: tabular-nums;
}

.dpm-tooltip-sub {
    margin-top: 2px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.dpm-tooltip-cost {
    margin-top: 1px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #7dd3fc;
    font-variant-numeric: tabular-nums;
}

.dpm-tooltip-div {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 0;
}

.dpm-tooltip-body {
    font-size: 0.76rem;
    color: #c5c8d4;
    line-height: 1.5;
    word-break: break-word;
}

.dpm-tooltip-body .tt-stats {
    display: block;
    color: #e5e8f2;
    margin-bottom: 6px;
}

.dpm-tooltip-body .tt-attention {
    color: #A1E4F9;
    font-weight: 700;
}

.dpm-tooltip-body .tt-passive,
.dpm-tooltip-body .tt-active {
    color: #ffd47d;
    font-weight: 700;
}

.dpm-tooltip-body .tt-gold {
    color: #e9c06f;
    font-weight: 700;
}

.dpm-tooltip-body .tt-magic {
    color: #8ab4f8;
    font-weight: 600;
}

.dpm-tooltip-body .tt-phys {
    color: #f79d65;
    font-weight: 600;
}

.dpm-tooltip-body .tt-heal {
    color: #34d399;
    font-weight: 600;
}

.dpm-tooltip-body .tt-muted {
    color: #9b9c9e;
    font-style: italic;
}

/* ==========================================================================
   13. DPM SCORE BREAKDOWN MODAL (.dpm-score-modal — 480px, #111318)
   ========================================================================== */

.dpm-score-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
    background: rgba(7, 8, 12, 0.78);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dpm-score-modal.open {
    display: flex;
}

.dpm-score-dialog {
    position: relative;
    max-width: 480px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 14px;
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
    padding: 22px 22px 18px;
}

.dpm-score-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s ease, color 0.14s ease;
}

.dpm-score-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dpm-score-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f9fafd;
    margin: 0 0 14px;
}

.dpm-score-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 0 18px;
    border-bottom: none;
}

.dpm-score-champ-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.dpm-score-champ {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0D0F10;
    display: block;
}

.dpm-score-role-pin {
    position: absolute;
    bottom: -5px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #161820;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.dpm-score-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(166, 176, 242, 0.12);
    border: 1px solid rgba(166, 176, 242, 0.24);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dpm-score-num {
    font-size: 2.75rem;
    font-weight: 900;
    color: #deccfb;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.dpm-score-num.tier-elite { color: #deccfb; }
.dpm-score-num.tier-good  { color: #a1e4f9; }
.dpm-score-num.tier-mid   { color: #f59451; }
.dpm-score-num.tier-low   { color: #f03a38; }

.dpm-score-hero-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a6b0f2;
}

.dpm-score-hero-player {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dpm-score-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 12px;
}

.dpm-score-tab {
    height: 38px;
    padding: 0 6px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: rgba(222, 204, 251, 0.04);
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dpm-score-tab:hover {
    background: rgba(222, 204, 251, 0.10);
    color: #f9fafd;
}

.dpm-score-tab.active {
    background: rgba(166, 176, 242, 0.26);
    color: #e0e7ff;
    border-color: rgba(166, 176, 242, 0.32);
}

.dpm-score-panel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 18px 20px 20px;
    background: radial-gradient(circle at 38% 28%, rgba(77, 98, 229, 0.16), rgba(16, 18, 24, 0.94) 68%);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.dpm-score-cat-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 14px;
}

.dpm-score-cat-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.dpm-score-cat-grade {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.05;
    position: relative;
}

.dpm-score-cat-grade.grade-s-plus {
    color: #facc15;
    text-shadow: 0 0 22px rgba(250, 204, 21, 0.35);
}

.dpm-score-cat-grade.grade-s {
    color: #d8b4fe;
    text-shadow: 0 0 22px rgba(216, 180, 254, 0.35);
}

.dpm-score-cat-grade.grade-a {
    color: #67e8f9;
    text-shadow: 0 0 22px rgba(103, 232, 249, 0.35);
}

.dpm-score-cat-grade.grade-b {
    color: #84cc16;
    text-shadow: 0 0 22px rgba(132, 204, 22, 0.35);
}

.dpm-score-cat-grade.grade-c {
    color: #f59451;
    text-shadow: 0 0 22px rgba(245, 148, 81, 0.35);
}

.dpm-score-cat-grade.grade-d {
    color: #6b7280;
}

.dpm-score-opp-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 10px 0 6px;
}

.dpm-score-opp-img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.14);
    object-fit: cover;
}

.dpm-score-opp-vs {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.06em;
}

.dpm-score-table-head {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 10px;
}

.dpm-score-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(161, 228, 249, 0.14);
    border: 1px solid rgba(161, 228, 249, 0.34);
    color: #A1E4F9;
}

.dpm-score-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dpm-score-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    padding: 3px 0;
    border-bottom: none;
}

.dpm-score-stat {
    text-align: center;
    font-size: 0.98rem;
    font-weight: 800;
    color: #f9fafd;
    font-variant-numeric: tabular-nums;
}

.dpm-score-metric {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #cbd5e1;
}

.dpm-score-pts {
    text-align: center;
    font-size: 0.98rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dpm-score-pts.pts-pos,
.pts-pos {
    color: #22c55e;
}

.dpm-score-pts.pts-neg,
.pts-neg {
    color: #ef4444;
}

.dpm-score-pts.pts-zero,
.pts-zero,
.pts-neutral {
    color: #cbd5e1;
}

/* ==========================================================================
   14. CHAMPIONS TAB (.champ-summary-grid & .champ-table — Exact dpm.lol)
   ========================================================================== */

.champ-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.champ-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.champ-summary-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.champ-summary-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.champ-summary-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a6b0f2;
}

.champ-summary-bigval {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.champ-summary-portrait {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.champ-summary-body {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.champ-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.champ-summary-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.champ-summary-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #A1E4F9;
    font-variant-numeric: tabular-nums;
}

.champ-summary-sub {
    font-size: 0.73rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.champ-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.champ-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.champ-table thead th {
    padding: 10px 10px;
    text-align: left;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--border-color);
}

.champ-table thead th.text-center,
.champ-table td.text-center {
    text-align: center;
}

.th-sort-arrow {
    color: var(--foreground);
    font-weight: 800;
    margin-left: 2px;
}

.side-header-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.champ-table tbody tr {
    height: 48px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.12s ease;
}

.champ-table tbody tr:last-child {
    border-bottom: none;
}

.champ-table tbody tr.champ-expand-row {
    cursor: pointer;
}

.champ-table tbody tr.champ-expand-row:hover,
.champ-table tbody tr.champ-expand-row.expanded {
    background: rgba(222, 204, 251, 0.055);
}

.champ-table td {
    padding: 6px 10px;
    vertical-align: middle;
    color: var(--text-secondary);
}

.champ-summary-row {
    background: rgba(166, 176, 242, 0.07);
    font-weight: 700;
}

.champ-summary-row td {
    color: var(--foreground);
    border-bottom: 1px solid rgba(166, 176, 242, 0.18);
}

.champ-thumb-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--foreground);
}

.champ-splash-thumb {
    width: 60px;
    height: 32px;
    border-radius: 5px;
    object-fit: cover;
    object-position: center 22%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0D0F10;
    flex-shrink: 0;
}

/* Gold D. @15 Diverging Cell & Mini Bar */
.gold-diff-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 52px;
}

.gold-diff-val {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
}

.gd-pos {
    color: #4ade80;
    font-weight: 700;
}

.gd-neg {
    color: #f7665e;
    font-weight: 700;
}

.gold-diff-bar {
    position: relative;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    overflow: hidden;
}

.gold-diff-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
}

.gold-diff-fill.gd-pos {
    left: 50%;
    background: #4ade80;
}

.gold-diff-fill.gd-neg {
    right: 50%;
    background: #f7665e;
}

.champ-dpm-val {
    font-weight: 800;
    color: #A1E4F9;
}

.last5-badges {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.last5-w,
.last5-l {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
}

.last5-w {
    background: rgba(48, 69, 201, 0.34);
    border: 1px solid rgba(166, 176, 242, 0.36);
    color: #a6b0f2;
}

.last5-l {
    background: rgba(247, 102, 94, 0.24);
    border: 1px solid rgba(247, 102, 94, 0.38);
    color: #f7665e;
}

.champ-chevron-cell {
    text-align: center;
    width: 36px;
}

.champ-row-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: transform 0.18s ease, color 0.14s ease;
}

.champ-expand-row.expanded .champ-row-chevron {
    transform: rotate(180deg);
    color: var(--foreground);
}

/* ==========================================================================
   14B. EXPANDABLE CHAMPION DETAIL & EŞLEŞMELER ACCORDION (Screenshots 1 & 2)
   ========================================================================== */

.champ-detail-tr {
    background: #101218;
    border-bottom: 1px solid var(--border-color);
}

.champ-detail-tr:hover {
    background: #101218 !important;
}

.champ-detail-td {
    padding: 16px 18px !important;
    white-space: normal;
}

.cd-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.cd-loading-state.is-error {
    color: #f7665e;
}

.cd-panel-grid {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* Left Summary Card (~235px) */
.cd-summary-card {
    background: linear-gradient(180deg, rgba(88, 60, 148, 0.22) 0%, rgba(22, 24, 32, 0.92) 48%, #15171F 100%);
    border: 1px solid rgba(166, 176, 242, 0.16);
    border-radius: 10px;
    padding: 18px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cd-summary-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.cd-summary-avatar {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
    margin-bottom: 4px;
}

.cd-summary-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--foreground);
}

.cd-summary-sub {
    font-size: 0.72rem;
    color: var(--muted-foreground);
}

.cd-stat-list {
    display: flex;
    flex-direction: column;
}

.cd-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}

.cd-stat-lbl {
    color: var(--muted-foreground);
    font-weight: 500;
}

.cd-stat-val {
    color: var(--foreground);
    font-weight: 800;
}

.cd-abilities-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
}

.cd-ability-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.74rem;
    color: var(--foreground);
}

.cd-ability-ico {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cd-ability-fallback {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
}

/* Right Matchups Panel (EŞLEŞMELER) */
.cd-matchups-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cd-matchups-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a6b0f2;
}

.cd-matchups-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #14161E;
}

.cd-matchups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.79rem;
}

.cd-matchups-table thead th {
    padding: 8px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--border-subtle);
}

.cd-matchup-row {
    height: 42px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.12s ease;
}

.cd-matchup-row:hover,
.cd-matchup-row.expanded {
    background: rgba(166, 176, 242, 0.07);
}

.cd-matchup-row td {
    padding: 6px 10px;
    vertical-align: middle;
}

.cd-vs-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cd-vs-champ-ico,
.cd-vs-opp-ico {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cd-vs-lbl {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.cd-vs-opp-name {
    color: var(--foreground);
    font-weight: 700;
}

.cd-mu-chevron-cell {
    text-align: center;
    width: 32px;
}

.cd-mu-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: transform 0.16s ease, color 0.12s ease;
}

.cd-matchup-row.expanded .cd-mu-chevron {
    transform: rotate(180deg);
    color: var(--foreground);
}

.cd-matchup-matches-tr {
    background: #0F1117;
    border-bottom: 1px solid var(--border-color);
}

.cd-matchup-matches-tr:hover {
    background: #0F1117 !important;
}

.cd-matchup-matches-td {
    padding: 10px 10px !important;
}

.cd-matchup-matches-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-show-all-wrap {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.cd-show-all-btn {
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease;
}

.cd-show-all-btn:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.04);
}

.cd-matchups-empty {
    padding: 20px 14px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Bad Team Tag & Infinite Scroll Sentinel */
.dpm-m-tag.tag-bad {
    background: rgba(247, 102, 94, 0.16);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.28);
}

.dpm-matches-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.infinite-scroll-sentinel {
    margin-top: 12px;
    min-height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.infinite-scroll-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.infinite-scroll-loader[hidden],
.infinite-scroll-end[hidden] {
    display: none !important;
}

.infinite-scroll-end {
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    opacity: 0.75;
}

/* ==========================================================================
   15. FILTERS POPOVER (.filter-popover — 352px, #161820)
   ========================================================================== */

.filter-popover-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-trigger-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(249, 250, 253, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--foreground);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.filter-trigger-btn:hover,
.filter-trigger-btn.active {
    background: rgba(166, 176, 242, 0.12);
    border-color: rgba(166, 176, 242, 0.38);
}

.filter-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 140;
    width: 352px;
    max-width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 10px;
    background: #161820;
    border: 1px solid rgba(166, 176, 242, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    display: none;
    flex-direction: column;
    gap: 13px;
}

.filter-popover.open {
    display: flex;
}

.filter-pop-section {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filter-pop-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.filter-pill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.filter-pill-btn {
    height: 32px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(249, 250, 253, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.filter-pill-btn:hover {
    background: rgba(249, 250, 253, 0.09);
    color: #fff;
}

.filter-pill-btn.active {
    background: rgba(77, 98, 229, 0.28);
    border-color: #a6b0f2;
    color: #fff;
}

.filter-dpm-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.filter-dpm-group button,
.filter-dpm-btn {
    height: 32px;
    background: rgba(249, 250, 253, 0.04);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.filter-dpm-group button:last-child,
.filter-dpm-btn:last-child {
    border-right: none;
}

.filter-dpm-group button:hover,
.filter-dpm-btn:hover {
    background: rgba(249, 250, 253, 0.09);
    color: #fff;
}

.filter-dpm-group button.active,
.filter-dpm-btn.active {
    background: rgba(77, 98, 229, 0.34);
    color: #A1E4F9;
}

.filter-matchup-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 7px;
}

.filter-matchup-row input,
.filter-matchup-row select {
    height: 32px;
    font-size: 0.78rem;
    padding: 0 9px;
}

.filter-matchup-vs {
    color: var(--muted-foreground);
    font-size: 0.84rem;
    font-weight: 700;
    user-select: none;
}

.filter-pop-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   16. LIVE GAME TAB (.live-card — Detailed Scouting & Matchup Dashboard)
   ========================================================================== */

.live-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--border-subtle);
}

.live-header-left,
.live-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-queue-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--foreground);
}

.live-meta-pill,
.live-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.live-timer-pill {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.08);
}

.live-subtabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 8px;
    background: rgba(13, 15, 16, 0.55);
    border: 1px solid var(--border-subtle);
}

.live-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.live-subtab-btn:hover {
    color: var(--foreground);
}

.live-subtab-btn.active {
    background: rgba(77, 98, 229, 0.22);
    color: #c7d2fe;
}

.live-auto-btn.is-on {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.36);
    color: #34d399;
}

.live-subpanel {
    display: none;
}

.live-subpanel.active {
    display: block;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.36);
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Team Summary & Win Probability Band */
.live-summary-band {
    display: grid;
    grid-template-columns: 1fr minmax(210px, 280px) 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(13, 15, 16, 0.52);
    border-bottom: 1px solid var(--border-subtle);
}

.live-sum-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.live-sum-team.is-red {
    align-items: flex-end;
    text-align: right;
}

.live-sum-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.live-side-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.live-side-dot.blue { background: #4d62e5; }
.live-side-dot.red { background: #f7665e; }

.live-sum-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.live-sum-rank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
}

.live-sum-rank img,
.live-head-crest {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.live-sum-prob {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.live-sum-prob-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
}

.live-sum-prob-labels strong {
    font-size: 0.82rem;
}

.live-sum-prob-bar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.live-sum-prob-blue {
    background: linear-gradient(90deg, #4353d6, #6579f2);
    transition: width 0.3s ease;
}

.live-sum-prob-red {
    background: linear-gradient(90deg, #f7665e, #dc2626);
    transition: width 0.3s ease;
}

.live-bans-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 9px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(13, 15, 16, 0.35);
    font-size: 0.74rem;
    color: var(--muted-foreground);
}

.live-bans-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-bans-label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 2px;
}

.live-ban-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid rgba(247, 102, 94, 0.45);
    filter: grayscale(35%);
}

.live-ban-empty {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--muted-foreground);
    font-size: 0.65rem;
}

.live-teams-grid,
.live-runes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.live-team-col {
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: rgba(13, 15, 16, 0.42);
    overflow: hidden;
}

.live-team-col.blue {
    border-top: 2px solid #4d62e5;
}

.live-team-col.red {
    border-top: 2px solid #f7665e;
}

.live-team-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

.live-team-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
}

.live-team-col.blue .live-team-head {
    color: #a6b0f2;
    background: rgba(77, 98, 229, 0.12);
}

.live-team-col.red .live-team-head {
    color: #f7665e;
    background: rgba(247, 102, 94, 0.12);
}

.live-player-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.95fr) minmax(130px, 0.9fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.8rem;
}

.live-player-row:last-child {
    border-bottom: none;
}

.live-player-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.live-player-row.is-target,
.live-rm-row.is-target,
.live-mu-side.is-target {
    background: rgba(77, 98, 229, 0.09);
}

.live-player-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.live-champ-wrap {
    position: relative;
    flex-shrink: 0;
}

.live-player-champ {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: block;
}

.live-champ-lvl {
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    padding: 0 5px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.55);
    background: #1e293b;
    color: #e2e8f0;
}

.live-champ-lvl.lvl-mythic { background: #dc2626; color: #fff; border-color: #fca5a5; }
.live-champ-lvl.lvl-legend { background: #d97706; color: #fff; border-color: #fde68a; }
.live-champ-lvl.lvl-epic { background: #7c3aed; color: #fff; border-color: #ddd6fe; }
.live-champ-lvl.lvl-rare { background: #0284c7; color: #fff; border-color: #bae6fd; }

.live-player-sr-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.live-sr-spells,
.live-sr-runes-pair {
    display: flex;
    align-items: center;
    gap: 2px;
}

.live-sr-spells img {
    width: 17px;
    height: 17px;
    border-radius: 4px;
}

.live-sr-runes-pair img.rune {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.live-sr-runes-pair img.rune.sub {
    width: 14px;
    height: 14px;
    opacity: 0.85;
}

.live-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.live-player-name-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.82rem;
    min-width: 0;
}

.live-player-name-line .player-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-tag-hash {
    color: var(--muted-foreground);
    font-size: 0.69rem;
    font-weight: 600;
    flex-shrink: 0;
}

.live-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.63rem;
    font-weight: 700;
    flex-shrink: 0;
}

.live-player-champ-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.71rem;
    color: var(--muted-foreground);
}

.live-tags-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.live-scout-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.live-scout-tag.tone-gold { background: rgba(251, 191, 36, 0.16); color: #fbbf24; border-color: rgba(251, 191, 36, 0.34); }
.live-scout-tag.tone-emerald { background: rgba(52, 211, 153, 0.16); color: #34d399; border-color: rgba(52, 211, 153, 0.34); }
.live-scout-tag.tone-coral { background: rgba(248, 113, 113, 0.16); color: #f87171; border-color: rgba(248, 113, 113, 0.34); }
.live-scout-tag.tone-sky { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border-color: rgba(56, 189, 248, 0.34); }
.live-scout-tag.tone-purple { background: rgba(167, 139, 250, 0.18); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.38); }

.live-player-mid,
.live-player-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.live-player-right {
    align-items: flex-end;
    text-align: right;
}

.live-rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--rank-bg, rgba(107, 114, 128, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
}

.live-rank-pill.is-unranked {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.live-rank-crest {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.live-rank-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.live-rank-name {
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-rank-sub {
    font-size: 0.66rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.live-mastery-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.live-mastery-line i {
    color: #fbbf24;
    font-size: 0.68rem;
}

.live-mastery-line.is-empty {
    color: var(--muted-foreground);
}

.live-mastery-line.is-empty i {
    color: var(--muted-foreground);
}

.live-mastery-grades {
    display: inline-flex;
    gap: 3px;
}

.live-mastery-grades span {
    padding: 0 4px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

.live-archive-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.live-arch-main {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.72rem;
}

.live-arch-dpm {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    font-size: 0.66rem;
    font-weight: 800;
}

.live-arch-champ {
    font-size: 0.68rem;
    color: var(--muted-foreground);
}

.live-form-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.live-form-dot {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
}

.live-form-dot.win { background: rgba(52, 211, 153, 0.22); color: #34d399; }
.live-form-dot.loss { background: rgba(248, 113, 113, 0.22); color: #f87171; }

/* 1v1 Lane Matchups View */
.live-matchups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.live-matchup-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(13, 15, 16, 0.42);
    overflow: hidden;
}

.live-mu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.live-mu-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-mu-bar-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
}

.live-mu-bar {
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: rgba(247, 102, 94, 0.85);
    overflow: hidden;
}

.live-mu-bar span {
    display: block;
    height: 100%;
    background: #4d62e5;
}

.live-mu-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.live-mu-vs {
    padding: 0 12px;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--muted-foreground);
    letter-spacing: 0.06em;
}

.live-mu-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
}

.live-mu-side.is-blue {
    border-left: 2px solid #4d62e5;
}

.live-mu-side.is-red {
    border-right: 2px solid #f7665e;
}

.live-mu-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.live-mu-champ {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.live-mu-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.live-mu-name-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.82rem;
}

.live-mu-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Full Runes & Mastery Matrix View */
.live-rm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.live-rm-row:last-child {
    border-bottom: none;
}

.live-rm-player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.live-rm-champ {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
}

.live-rm-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--foreground);
}

.live-full-runes {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.live-rm-keystone {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
}

.live-rm-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.live-rm-ico {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.live-rm-shard {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.live-empty-state {
    text-align: center;
    padding: 46px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.live-empty-state h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
}

.live-empty-state p {
    margin: 0 auto 16px;
    max-width: 440px;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

@media (max-width: 1100px) {
    .live-player-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .live-player-right {
        align-items: flex-start;
        text-align: left;
    }
    .live-archive-col {
        align-items: flex-start;
    }
    .live-summary-band,
    .live-mu-body {
        grid-template-columns: 1fr;
    }
    .live-sum-team.is-red {
        align-items: flex-start;
        text-align: left;
    }
    .live-mu-vs {
        text-align: center;
        padding: 4px 0;
    }
    .live-runes-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   16B. FULL MATCH HISTORY BACKFILL MODAL (.fh-*)
   ========================================================================== */

.dpm-update-btn-secondary {
    background: rgba(166, 176, 242, 0.08);
    border-color: rgba(166, 176, 242, 0.24);
    color: #d7dcfb;
}

.dpm-update-btn-secondary:hover {
    background: rgba(166, 176, 242, 0.16);
    border-color: rgba(166, 176, 242, 0.45);
    color: #fff;
}

.fh-note {
    padding: 11px 13px;
    border-radius: 8px;
    background: rgba(166, 176, 242, 0.07);
    border: 1px solid rgba(166, 176, 242, 0.20);
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
}

.fh-note strong {
    color: #ffd47d;
    font-weight: 700;
}

.fh-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--foreground);
}

.fh-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 14px;
}

.fh-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a6b0f2 0%, #c6cdfa 60%, #ffd47d 100%);
    transition: width 0.28s ease;
    box-shadow: 0 0 12px rgba(166, 176, 242, 0.45);
}

.fh-progress-fill.is-running {
    background-size: 200% 100%;
    animation: fhShimmer 1.6s linear infinite;
}

@keyframes fhShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.fh-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.fh-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 8px;
    border-radius: 8px;
    background: #14151B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.fh-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted-foreground);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.fh-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.1;
}

.fh-status-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-radius: 8px;
    background: rgba(166, 176, 242, 0.10);
    border: 1px solid rgba(166, 176, 242, 0.26);
    color: #dfe4ff;
    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.4;
}

.fh-status-box.is-wait {
    background: rgba(255, 212, 125, 0.10);
    border-color: rgba(255, 212, 125, 0.34);
    color: #ffd47d;
}

.fh-status-box.is-done {
    background: rgba(52, 211, 153, 0.10);
    border-color: rgba(52, 211, 153, 0.34);
    color: #6ee7b7;
}

.fh-status-box.is-error {
    background: rgba(247, 102, 94, 0.12);
    border-color: rgba(247, 102, 94, 0.36);
    color: #fca5a5;
}

.fh-log {
    margin-top: 12px;
    border-radius: 8px;
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fh-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.78rem;
}

.fh-log-champ {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--foreground);
    min-width: 0;
}

.fh-log-champ img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.fh-log-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.fh-log-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fh-log-badge.is-win {
    background: rgba(161, 228, 249, 0.14);
    border: 1px solid rgba(161, 228, 249, 0.32);
    color: #A1E4F9;
}

.fh-log-badge.is-loss {
    background: rgba(247, 102, 94, 0.14);
    border: 1px solid rgba(247, 102, 94, 0.32);
    color: #f7665e;
}

/* ==========================================================================
   16C. DETAYLI İSTATİSTİK — DEEP PROFILE ANALYTICS DASHBOARD (.da-*)
   ========================================================================== */

.text-lime {
    color: #bef264;
}

.da-dashboard {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 1. Top 6 KPI Cards */
.da-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.da-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.da-kpi-card:hover {
    border-color: rgba(166, 176, 242, 0.28);
}

.da-kpi-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.da-kpi-val {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.1;
}

.da-kpi-unit {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.da-kpi-val-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.da-kpi-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.da-kpi-foot {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.da-kpi-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(247, 102, 94, 0.28);
    overflow: hidden;
    margin-top: 3px;
}

.da-kpi-bar-win {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3045c9 0%, #a6b0f2 100%);
    border-radius: 999px;
}

.da-grade-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.da-mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary);
    white-space: nowrap;
}

.da-mini-pill.pill-gold {
    background: rgba(255, 212, 125, 0.14);
    border-color: rgba(255, 212, 125, 0.32);
    color: #ffd47d;
}

.da-mini-pill.pill-win {
    background: rgba(190, 242, 100, 0.13);
    border-color: rgba(190, 242, 100, 0.34);
    color: #bef264;
}

.da-mini-pill.pill-loss {
    background: rgba(247, 102, 94, 0.15);
    border-color: rgba(247, 102, 94, 0.35);
    color: #f7665e;
}

.da-kpi-archetype {
    background: linear-gradient(155deg, rgba(77, 98, 229, 0.16) 0%, rgba(22, 24, 32, 0.92) 70%);
    border-color: rgba(166, 176, 242, 0.26);
}

.da-arch-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f9fafd;
    line-height: 1.25;
}

.da-arch-sub {
    font-size: 0.71rem;
    color: var(--text-secondary);
    line-height: 1.38;
}

/* Section Headers */
.da-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
}

.da-section-desc {
    margin: 2px 0 0;
    font-size: 0.74rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* 6-Axis Radar Card */
.da-radar-overall-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(166, 176, 242, 0.10);
    border: 1px solid rgba(166, 176, 242, 0.26);
}

.da-ro-lbl {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.da-ro-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd47d;
}

.da-ro-val span {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.da-radar-layout {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 16px 18px 18px;
}

.da-radar-svg-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(77, 98, 229, 0.12) 0%, rgba(16, 18, 24, 0.45) 72%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 6px;
}

.da-radar-svg {
    width: 100%;
    max-width: 380px;
    height: auto;
    overflow: visible;
}

.da-radar-canvas-wrap {
    position: relative;
    width: 100%;
    height: 310px;
}

.da-radar-canvas {
    width: 100% !important;
    height: 100% !important;
}

.da-chart-box {
    position: relative;
    width: 100%;
    height: 225px;
    padding: 8px 16px 14px;
}

.da-chart-box-sm {
    height: 190px;
    padding: 6px 16px 10px;
    margin-bottom: 6px;
}

.da-chart-box-md {
    height: 235px;
    padding: 12px 16px 16px;
}

.da-radar-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    stroke-dasharray: 2 2;
}

.da-radar-ring-outer {
    stroke: rgba(166, 176, 242, 0.24);
    stroke-dasharray: none;
    stroke-width: 1.25;
}

.da-radar-spoke {
    stroke: rgba(255, 255, 255, 0.09);
    stroke-width: 1;
    transition: stroke 0.16s ease, stroke-width 0.16s ease;
}

.da-radar-spoke.is-active {
    stroke: #ffd47d;
    stroke-width: 1.8;
}

.da-radar-polygon {
    stroke: #a6b0f2;
    stroke-width: 2.3;
    stroke-linejoin: round;
    transition: opacity 0.2s ease;
}

.da-radar-node {
    cursor: pointer;
}

.da-radar-dot-halo {
    fill: rgba(166, 176, 242, 0.20);
    transition: r 0.16s ease, fill 0.16s ease;
}

.da-radar-dot {
    fill: #ffd47d;
    stroke: #121319;
    stroke-width: 1.6;
    transition: r 0.16s ease, fill 0.16s ease;
}

.da-radar-node:hover .da-radar-dot-halo,
.da-radar-node.is-active .da-radar-dot-halo {
    fill: rgba(255, 212, 125, 0.36);
}

.da-radar-node:hover .da-radar-dot,
.da-radar-node.is-active .da-radar-dot {
    fill: #bef264;
}

.da-radar-lbl {
    font-size: 9.5px;
    font-weight: 700;
    fill: #e2e5f0;
    transition: fill 0.15s ease;
}

.da-radar-node:hover .da-radar-lbl,
.da-radar-node.is-active .da-radar-lbl {
    fill: #ffd47d;
}

.da-radar-lbl-score {
    font-size: 8.6px;
    font-weight: 600;
    fill: #9b9c9e;
}

.da-radar-bars-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.da-axis-bars-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.da-axis-row {
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.da-axis-row:hover,
.da-axis-row.is-active {
    background: rgba(166, 176, 242, 0.09);
    border-color: rgba(166, 176, 242, 0.34);
}

.da-axis-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.da-axis-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.da-axis-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--foreground);
}

.da-axis-metric-pill {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.da-axis-score-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.da-axis-tier {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.da-axis-score {
    font-size: 0.84rem;
    font-weight: 800;
}

.da-axis-score span {
    font-size: 0.68rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.da-axis-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.da-axis-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.da-career-mini-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(13, 15, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.da-cms-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.da-cms-lbl {
    font-size: 0.66rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.da-cms-val {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--foreground);
}

/* 2. Automated Coaching Insights Grid */
.da-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    padding: 14px 16px 16px;
}

.da-insight-card {
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-left-width: 3px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.da-insight-card.is-positive {
    border-left-color: #bef264;
    background: linear-gradient(135deg, rgba(190, 242, 100, 0.07) 0%, rgba(22, 24, 32, 0.5) 100%);
}

.da-insight-card.is-warning {
    border-left-color: #f7665e;
    background: linear-gradient(135deg, rgba(247, 102, 94, 0.08) 0%, rgba(22, 24, 32, 0.5) 100%);
}

.da-insight-card.is-info {
    border-left-color: #a6b0f2;
    background: linear-gradient(135deg, rgba(166, 176, 242, 0.08) 0%, rgba(22, 24, 32, 0.5) 100%);
}

.da-insight-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.da-insight-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.da-insight-card.is-positive .da-insight-icon {
    background: rgba(190, 242, 100, 0.16);
    color: #bef264;
}

.da-insight-card.is-warning .da-insight-icon {
    background: rgba(247, 102, 94, 0.18);
    color: #f7665e;
}

.da-insight-card.is-info .da-insight-icon {
    background: rgba(166, 176, 242, 0.18);
    color: #a6b0f2;
}

.da-insight-title {
    margin: 0;
    font-size: 0.81rem;
    font-weight: 800;
    color: var(--foreground);
    flex: 1;
    min-width: 0;
}

.da-insight-badge {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

.da-insight-card.is-positive .da-insight-badge {
    background: rgba(190, 242, 100, 0.14);
    color: #bef264;
    border: 1px solid rgba(190, 242, 100, 0.30);
}

.da-insight-card.is-warning .da-insight-badge {
    background: rgba(247, 102, 94, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(247, 102, 94, 0.32);
}

.da-insight-card.is-info .da-insight-badge {
    background: rgba(166, 176, 242, 0.16);
    color: #d7dcfb;
    border: 1px solid rgba(166, 176, 242, 0.32);
}

.da-insight-text {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.46;
}

/* 3. Two-Column & Three-Column Layouts */
.da-two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.da-three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.da-section-card {
    display: flex;
    flex-direction: column;
}

/* Map Side (Blue vs Red) */
.da-side-banner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
}

.da-side-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.da-side-col.is-red {
    text-align: right;
    align-items: flex-end;
}

.da-side-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.da-side-col.is-blue .da-side-tag {
    color: #a6b0f2;
}

.da-side-col.is-red .da-side-tag {
    color: #f7665e;
}

.da-side-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.da-side-dot.is-blue {
    background: #4d62e5;
    box-shadow: 0 0 8px rgba(77, 98, 229, 0.7);
}

.da-side-dot.is-red {
    background: #f7665e;
    box-shadow: 0 0 8px rgba(247, 102, 94, 0.7);
}

.da-side-bigwr {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--foreground);
}

.da-side-bigwr small {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.da-side-wl {
    font-size: 0.74rem;
    color: var(--muted-foreground);
}

.da-side-vs-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--muted-foreground);
}

.da-side-duel-bar {
    display: flex;
    height: 7px;
    margin: 0 16px 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    gap: 2px;
}

.da-side-duel-blue {
    background: linear-gradient(90deg, #3045c9 0%, #a6b0f2 100%);
    height: 100%;
}

.da-side-duel-red {
    background: linear-gradient(90deg, #f7665e 0%, #fb7185 100%);
    height: 100%;
}

.da-h2h-table {
    display: flex;
    flex-direction: column;
    padding: 0 16px 14px;
}

.da-h2h-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
}

.da-h2h-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-align: center;
}

.da-h2h-val {
    font-weight: 600;
    color: var(--text-secondary);
}

.da-h2h-val.is-red {
    text-align: right;
}

.da-h2h-val.is-blue.is-leader {
    color: #a6b0f2;
    font-weight: 800;
}

.da-h2h-val.is-red.is-leader {
    color: #f7665e;
    font-weight: 800;
}

/* Duration Buckets */
.da-duration-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
}

.da-dur-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 74px;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.da-dur-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--foreground);
}

.da-dur-sub {
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

.da-dur-bar-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.da-dur-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.da-dur-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.da-dur-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.da-dur-right {
    text-align: right;
}

.da-dpm-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(166, 176, 242, 0.12);
    border: 1px solid rgba(166, 176, 242, 0.24);
    color: #d7dcfb;
    font-size: 0.72rem;
    font-weight: 700;
}

/* 4. Session Fatigue, Tilt & Time/Day Performance */
.da-subblock-title {
    padding: 10px 16px 6px;
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.da-session-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px;
}

.da-session-card {
    padding: 10px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.da-session-lbl {
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.da-session-wr {
    font-size: 1.15rem;
    font-weight: 800;
}

.da-session-meta {
    font-size: 0.69rem;
    color: var(--muted-foreground);
}

.da-session-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.69rem;
    color: var(--text-secondary);
}

.da-tilt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px 16px;
}

.da-tilt-card {
    padding: 11px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.da-tilt-card.is-win {
    border-top: 2px solid #a6b0f2;
}

.da-tilt-card.is-loss {
    border-top: 2px solid #ffd47d;
}

.da-tilt-card.is-tilt {
    border-top: 2px solid #f7665e;
    background: rgba(247, 102, 94, 0.05);
}

.da-tilt-lbl {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--foreground);
}

.da-tilt-wr {
    font-size: 1.15rem;
    font-weight: 800;
}

.da-tilt-sub {
    font-size: 0.69rem;
    color: var(--muted-foreground);
}

.da-tilt-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.71rem;
    color: var(--text-secondary);
}

.da-tod-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px;
}

.da-tod-card {
    padding: 10px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.da-tod-top {
    display: flex;
    flex-direction: column;
}

.da-tod-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--foreground);
}

.da-tod-hours {
    font-size: 0.66rem;
    color: var(--muted-foreground);
}

.da-tod-wr {
    font-size: 1.12rem;
    font-weight: 800;
    margin-top: 2px;
}

.da-tod-sub {
    font-size: 0.69rem;
    color: var(--text-secondary);
}

.da-dow-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 16px;
}

.da-dow-row {
    display: grid;
    grid-template-columns: 78px 98px minmax(0, 1fr) 52px 62px;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.018);
}

.da-dow-day {
    font-weight: 700;
    color: var(--foreground);
}

.da-dow-games {
    font-size: 0.7rem;
}

.da-dow-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.da-dow-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.da-dow-wr {
    text-align: right;
    font-size: 0.76rem;
}

.da-dow-dpm {
    text-align: right;
    font-size: 0.71rem;
    color: var(--text-secondary);
}

/* 5. Duo Synergy, Best Matchups & Nemesis */
.da-list-stack {
    display: flex;
    flex-direction: column;
    padding: 8px 14px 14px;
    gap: 7px;
}

.da-matchup-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.14s ease, border-color 0.14s ease;
}

.da-matchup-row:hover {
    background: rgba(166, 176, 242, 0.07);
    border-color: rgba(166, 176, 242, 0.22);
}

.da-mu-ico {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.da-mu-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.da-mu-name {
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.da-mu-tag {
    font-size: 0.71rem;
    color: var(--muted-foreground);
    font-weight: 500;
    margin-left: 2px;
}

.da-mu-sub {
    font-size: 0.71rem;
    color: var(--muted-foreground);
}

.da-mu-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.da-mu-wr {
    font-size: 0.81rem;
    font-weight: 800;
}

.da-delta-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

.da-delta-badge.is-pos {
    background: rgba(190, 242, 100, 0.14);
    border: 1px solid rgba(190, 242, 100, 0.34);
    color: #bef264;
}

.da-delta-badge.is-neg {
    background: rgba(247, 102, 94, 0.15);
    border: 1px solid rgba(247, 102, 94, 0.34);
    color: #f7665e;
}

.da-dpm-mini {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* 6. Vision Discipline & Personal Records (Hall of Fame) */
.da-vision-records-grid {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 14px;
}

.da-vision-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px 10px;
}

.da-vk-box {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.da-vk-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
}

.da-vk-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--foreground);
}

.da-vk-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.da-cw-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px 16px 16px;
}

.da-cw-card {
    padding: 11px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.da-cw-card.is-with {
    border-top: 2px solid #bef264;
}

.da-cw-card.is-without {
    border-top: 2px solid #f7665e;
}

.da-cw-title {
    font-size: 0.71rem;
    font-weight: 800;
    color: var(--foreground);
}

.da-cw-wr {
    font-size: 1.22rem;
    font-weight: 800;
}

.da-cw-wr small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.da-cw-meta {
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

.da-cw-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.71rem;
    color: var(--text-secondary);
}

/* Hall of Fame Records Grid */
.da-records-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 16px 16px;
}

.da-record-card {
    padding: 12px 13px;
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(255, 212, 125, 0.06) 0%, rgba(20, 22, 30, 0.75) 100%);
    border: 1px solid rgba(255, 212, 125, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.da-record-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 212, 125, 0.38);
}

.da-rec-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.da-rec-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffd47d;
}

.da-rec-wl {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.64rem;
    font-weight: 800;
}

.da-rec-wl.is-win {
    background: rgba(48, 69, 201, 0.34);
    color: #a6b0f2;
    border: 1px solid rgba(166, 176, 242, 0.32);
}

.da-rec-wl.is-loss {
    background: rgba(247, 102, 94, 0.22);
    color: #f7665e;
    border: 1px solid rgba(247, 102, 94, 0.34);
}

.da-rec-hero {
    display: flex;
    align-items: center;
    gap: 11px;
}

.da-rec-champ-ico {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255, 212, 125, 0.36);
    flex-shrink: 0;
}

.da-rec-main {
    min-width: 0;
    flex: 1;
}

.da-rec-val {
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.15;
}

.da-rec-sub {
    font-size: 0.71rem;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.da-rec-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

.da-rec-champ-name {
    font-weight: 700;
    color: var(--text-secondary);
}

.da-rec-vs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.da-rec-opp-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.da-rec-date {
    font-size: 0.68rem;
    opacity: 0.8;
}

/* ==========================================================================
   16B. UI/UX UPGRADES: SMART SEARCH, MULTI-SEARCH, BADGES, RADAR, H2H, MINIMAP
   ========================================================================== */

/* Navbar Ctrl+K Shortcut Hint */
.nav-search-kbd {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Smart Search Autocomplete & Recent Dropdown */
.smart-search-wrap {
    position: relative;
}

.home-smart-wrap {
    width: 100%;
    max-width: 580px;
}

.smart-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 140;
    background: #14161e;
    border: 1px solid rgba(166, 176, 242, 0.24);
    border-radius: 8px;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.78);
    padding: 6px;
    max-height: 360px;
    overflow-y: auto;
    text-align: left;
}

.smart-search-dropdown.open {
    display: block;
}

.ss-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 4px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
}

.ss-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    transition: background 0.12s ease;
}

.ss-item:hover,
.ss-item.is-active {
    background: rgba(166, 176, 242, 0.12);
}

.ss-item-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    color: var(--foreground);
}

.ss-item-ico {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

.ss-item-main {
    flex: 1;
    min-width: 0;
}

.ss-item-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-item-tag {
    font-size: 0.74rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.ss-region-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
}

.ss-item-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.7rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.ss-dpm-pill {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.ss-source-lbl {
    font-size: 0.66rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.ss-fav-btn {
    width: 28px;
    height: 28px;
    margin-right: 4px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.12s ease, background 0.12s ease;
}

.ss-fav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--legendary);
}

.ss-fav-btn.is-fav {
    color: var(--legendary);
}

.ss-empty {
    padding: 14px 10px;
    font-size: 0.78rem;
    color: var(--muted-foreground);
    text-align: center;
}

/* Home Mode Tabs & Lobby Multi-Search */
.home-hero-inner.is-multi-mode {
    max-width: 1080px;
}

.home-mode-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    background: rgba(22, 24, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.home-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.home-mode-tab:hover {
    color: var(--foreground);
}

.home-mode-tab.active {
    background: var(--dpm-blue-500);
    color: #fff;
    box-shadow: 0 4px 14px rgba(77, 98, 229, 0.35);
}

.home-mode-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-mode-panel[hidden] {
    display: none;
}

.multi-search-box {
    width: 100%;
    max-width: 720px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(22, 24, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    text-align: left;
}

.multi-search-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.multi-search-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.multi-search-badge {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(166, 176, 242, 0.16);
    color: var(--primary);
    border: 1px solid rgba(166, 176, 242, 0.28);
}

.multi-search-textarea {
    width: 100%;
    min-height: 112px;
    padding: 10px 12px;
    border-radius: 7px;
    background: #0E1016;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.84rem;
    line-height: 1.5;
    resize: vertical;
}

.multi-search-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(166, 176, 242, 0.18);
}

.multi-search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.multi-search-results {
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.multi-search-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.ms-card {
    background: rgba(22, 24, 34, 0.90);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.14s ease, transform 0.14s ease;
}

.ms-card:hover {
    border-color: rgba(166, 176, 242, 0.34);
    transform: translateY(-2px);
}

.ms-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.ms-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-tag {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    font-weight: 600;
    margin-left: 2px;
}

.ms-sub-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.ms-role-pill {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(166, 176, 242, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
}

.ms-dpm-badge {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    flex-shrink: 0;
    line-height: 1.1;
    text-align: center;
}

.ms-dpm-badge small {
    display: block;
    font-size: 0.54rem;
    font-weight: 700;
    opacity: 0.78;
}

.ms-tier-line {
    font-size: 0.72rem;
    font-weight: 700;
}

.ms-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 7px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.ms-stats-grid strong {
    display: block;
    font-size: 0.84rem;
    line-height: 1.15;
}

.ms-stats-grid span {
    display: block;
    font-size: 0.62rem;
    color: var(--muted-foreground);
    margin-top: 2px;
}

.ms-champs-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ms-champ-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.66rem;
    font-weight: 700;
}

.ms-champ-chip img {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    object-fit: cover;
}

.ms-last5-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ms-l5-dot {
    flex: 1;
    height: 16px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ms-l5-dot.is-win {
    background: rgba(166, 176, 242, 0.20);
    color: var(--primary);
}

.ms-l5-dot.is-loss {
    background: rgba(247, 102, 94, 0.18);
    color: var(--destructive);
}

.ms-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ms-open-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Profile Behavioral Badges & Favorite Button */
.dpm-behavior-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.dpm-b-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 700;
    border: 1px solid transparent;
    line-height: 1.35;
}

.dpm-b-badge.tone-win {
    background: rgba(52, 211, 153, 0.14);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.28);
}

.dpm-b-badge.tone-loss {
    background: rgba(247, 102, 94, 0.15);
    color: #f87171;
    border-color: rgba(247, 102, 94, 0.32);
}

.dpm-b-badge.tone-gold {
    background: rgba(255, 212, 125, 0.15);
    color: #ffd47d;
    border-color: rgba(255, 212, 125, 0.32);
}

.dpm-b-badge.tone-purple {
    background: rgba(196, 181, 253, 0.15);
    color: #c4b5fd;
    border-color: rgba(196, 181, 253, 0.30);
}

.dpm-b-badge.tone-cyan {
    background: rgba(166, 176, 242, 0.15);
    color: #a6b0f2;
    border-color: rgba(166, 176, 242, 0.30);
}

.dpm-fav-btn.is-fav {
    color: var(--legendary);
    background: rgba(255, 212, 125, 0.12);
    border-color: rgba(255, 212, 125, 0.30);
}

/* Enriched Player Summary / Tier Prediction Card (player.php) */
.dpm-tier-pill {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.dpm-tier-hero-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.dpm-grade-emblem {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.dpm-tier-metrics {
    min-width: 0;
    flex: 1;
}

.dpm-tier-dpm {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dpm-tier-dpm strong {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.1;
}

.dpm-tier-dpm span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.dpm-tier-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* SON 30 MAÇ: 5-Axis Radar + Streak Chip + Form Strip */
.dpm-streak-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.dpm-streak-chip.is-win {
    background: rgba(52, 211, 153, 0.14);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.28);
}

.dpm-streak-chip.is-loss {
    background: rgba(247, 102, 94, 0.14);
    color: #f87171;
    border: 1px solid rgba(247, 102, 94, 0.28);
}

.dpm-streak-chip.is-neutral {
    background: rgba(166, 176, 242, 0.12);
    color: var(--primary);
    border: 1px solid rgba(166, 176, 242, 0.24);
}

.dpm-radar-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpm-mini-radar-svg {
    display: block;
    overflow: visible;
}

.dpm-mini-radar-wrap {
    position: relative;
    width: 158px;
    height: 132px;
}

.dpm-mini-radar-canvas {
    width: 100% !important;
    height: 100% !important;
}

.dpm-form-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.dpm-form-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.dpm-form-squares {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.dpm-form-sq {
    width: 19px;
    height: 19px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.12s ease;
}

.dpm-form-sq:hover {
    transform: translateY(-1px) scale(1.08);
}

.dpm-form-sq.is-win {
    background: rgba(166, 176, 242, 0.20);
    color: #a6b0f2;
    border: 1px solid rgba(166, 176, 242, 0.30);
}

.dpm-form-sq.is-loss {
    background: rgba(247, 102, 94, 0.18);
    color: #f7665e;
    border: 1px solid rgba(247, 102, 94, 0.28);
}

/* Ring Sub-rank Metallic Colors & Session Tilt Badge */
.dpm-ring-sub.rank-2 { color: #e2e8f0; }
.dpm-ring-sub.rank-3 { color: #fdba74; }

.dpm-day-pill-tilt {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(247, 102, 94, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(247, 102, 94, 0.34);
}

.dpm-session-group.is-tilt-session .dpm-day-header {
    border-left: 3px solid var(--destructive);
    padding-left: 8px;
}

/* Drawer Share Bar & DPM Modal Footer */
.dpm-drawer-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dpm-score-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
}

.dpm-score-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dpm-score-how-wrap {
    margin-top: 12px;
}

.dpm-score-how-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.dpm-score-how-toggle:hover {
    background: rgba(166, 176, 242, 0.10);
    border-color: rgba(166, 176, 242, 0.28);
    color: #f9fafd;
}

.dpm-how-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dpm-how-icon {
    flex-shrink: 0;
    color: #818cf8;
    font-size: 0.92rem;
}

.dpm-how-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    opacity: 0.78;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.dpm-score-how-toggle.is-open .dpm-how-chevron {
    transform: rotate(180deg);
}

.dpm-score-how-panel {
    margin-top: 8px;
    padding: 12px 13px;
    border-radius: 9px;
    background: rgba(15, 17, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.dpm-how-formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.dpm-how-op {
    color: #6b7280;
    font-weight: 800;
    font-size: 0.72rem;
}

.dpm-how-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.7rem;
    color: #cbd5e1;
}

.dpm-how-chip.pts-pos strong { color: #22c55e; }
.dpm-how-chip.pts-neg strong { color: #ef4444; }
.dpm-how-chip.pts-zero strong { color: #9ca3af; }
.dpm-how-chip.is-base strong { color: #a6b0f2; }
.dpm-how-chip.is-total {
    background: rgba(166, 176, 242, 0.14);
    border-color: rgba(166, 176, 242, 0.30);
    color: #f9fafd;
}

.dpm-how-list {
    margin: 0 0 8px;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #9ca3af;
}

.dpm-how-list strong {
    color: #e2e8f0;
}

.dpm-how-note {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.dpm-how-note code {
    background: rgba(255, 255, 255, 0.07);
    padding: 1px 4px;
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 0.69rem;
}

.dpm-how-grades {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.69rem;
    font-weight: 800;
}

.dpm-how-grades span {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}
.dpm-how-grades .grade-s-plus { color: #facc15; }
.dpm-how-grades .grade-s { color: #d8b4fe; }
.dpm-how-grades .grade-a { color: #67e8f9; }
.dpm-how-grades .grade-b { color: #84cc16; }
.dpm-how-grades .grade-c { color: #f59451; }
.dpm-how-grades .grade-d { color: #9ca3af; }

/* Details Tab: Visual Grid (Head-to-Head Bars + Kill/Death Minimap) */
.dpm-det-visual-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.dpm-h2h-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dpm-h2h-tabs {
    display: inline-flex;
    gap: 3px;
    padding: 2px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dpm-h2h-tab {
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    cursor: pointer;
}

.dpm-h2h-tab.active {
    background: var(--dpm-blue-500);
    color: #fff;
}

.dpm-h2h-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dpm-h2h-row {
    display: grid;
    grid-template-columns: 1fr 22px 1fr;
    align-items: center;
    gap: 6px;
}

.dpm-h2h-side {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.dpm-h2h-side.is-owner .dpm-h2h-ico {
    border-color: var(--legendary);
    box-shadow: 0 0 8px rgba(255, 212, 125, 0.35);
}

.dpm-h2h-ico {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.dpm-h2h-val {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 34px;
    flex-shrink: 0;
}

.dpm-h2h-side.left .dpm-h2h-val {
    text-align: left;
}

.dpm-h2h-side.right .dpm-h2h-val {
    text-align: right;
}

.dpm-h2h-track {
    flex: 1;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
}

.dpm-h2h-track.left {
    justify-content: flex-end;
}

.dpm-h2h-track.right {
    justify-content: flex-start;
}

.dpm-h2h-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.25s ease;
}

.dpm-h2h-fill.blue {
    background: linear-gradient(90deg, #4d62e5, #a6b0f2);
}

.dpm-h2h-fill.red {
    background: linear-gradient(90deg, #f7665e, #fb923c);
}

.dpm-h2h-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
}

.dpm-minimap-body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dpm-minimap-stage {
    position: relative;
    width: 224px;
    height: 224px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0a0c12;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.dpm-minimap-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.84) contrast(1.08) saturate(0.95);
    user-select: none;
    pointer-events: none;
}

.dpm-minimap-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(10, 12, 18, 0.04) 45%, rgba(8, 10, 15, 0.55) 100%);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.dpm-minimap-pins {
    position: absolute;
    inset: 0;
}

.dpm-mm-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.14s ease, opacity 0.16s ease, box-shadow 0.14s ease;
}

.dpm-mm-pin.is-kill {
    width: 12px;
    height: 12px;
    background: #34d399;
    border: 2px solid #0b0e14;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.5), 0 0 10px rgba(52, 211, 153, 0.65);
    z-index: 3;
}

.dpm-mm-pin.is-death {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    line-height: 1;
    border: 2px solid #0b0e14;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.55), 0 0 10px rgba(239, 68, 68, 0.7);
    z-index: 4;
}

.dpm-mm-pin.is-assist {
    width: 9px;
    height: 9px;
    background: #818cf8;
    border: 1.6px solid #0b0e14;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.55);
    z-index: 2;
}

.dpm-mm-pin:hover {
    transform: translate(-50%, -50%) scale(1.34);
    z-index: 8;
}

.dpm-mm-pin.is-filtered-out {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.45);
}

.dpm-minimap-legend {
    flex: 1;
    min-width: 135px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dpm-mm-player-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dpm-mm-champ-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dpm-mm-player-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dpm-mm-player {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--foreground);
}

.dpm-mm-kda-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 700;
}

.dpm-mm-filters {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dpm-mm-filter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.dpm-mm-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(166, 176, 242, 0.30);
}

.dpm-mm-filter-btn:not(.is-active) {
    opacity: 0.42;
}

.dpm-mm-filter-btn strong {
    margin-left: auto;
    color: var(--foreground);
    font-size: 0.8rem;
}

.dpm-mm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dpm-mm-dot.kill {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.dpm-mm-dot.assist {
    background: #818cf8;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.5);
}

.dpm-mm-x-badge {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #ffffff;
    font-size: 8px;
    line-height: 1;
    flex-shrink: 0;
}

.dpm-mm-hint {
    margin-top: 2px;
    font-size: 0.67rem;
    color: var(--muted-foreground);
    line-height: 1.35;
}

/* Skeleton Shimmer Loaders */
@keyframes dpmShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dpm-skeleton-line,
.dpm-skeleton-box,
.dpm-skeleton-avatar {
    display: block;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(166, 176, 242, 0.14) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: dpmShimmer 1.4s infinite linear;
}

.dpm-skeleton-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dpm-skeleton-line { height: 11px; }
.dpm-skeleton-line.w-40 { width: 40%; }
.dpm-skeleton-line.w-60 { width: 60%; }
.dpm-skeleton-line.w-80 { width: 80%; }
.dpm-skeleton-line.w-100 { width: 100%; }

.dpm-skeleton-chips {
    display: flex;
    gap: 8px;
}

.dpm-skeleton-box {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.dpm-skeleton-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.dpm-skeleton-avatar {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ==========================================================================
   16C. YEARLY MOSAIC CALENDAR, MONTHLY BREAKDOWN & DAY x HOUR MATRIX
   ========================================================================== */

.dpm-mosaic-jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(166, 176, 242, 0.28);
    background: rgba(166, 176, 242, 0.10);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.dpm-mosaic-jump-btn:hover {
    background: rgba(166, 176, 242, 0.20);
    border-color: rgba(166, 176, 242, 0.48);
}

.da-mosaic-section {
    padding: 16px 18px;
}

.mosaic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.mosaic-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mosaic-year-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.mosaic-year-pill {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.mosaic-year-pill span {
    font-weight: 600;
    opacity: 0.72;
    font-size: 0.68rem;
}

.mosaic-year-pill:hover {
    border-color: rgba(166, 176, 242, 0.35);
    color: var(--foreground);
}

.mosaic-year-pill.active {
    background: var(--dpm-blue-500);
    border-color: rgba(166, 176, 242, 0.55);
    color: #fff;
}

.mosaic-mode-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2px;
}

.mosaic-mode-btn {
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.mosaic-mode-btn.active {
    background: rgba(166, 176, 242, 0.20);
    color: var(--primary);
}

.mosaic-kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.mosaic-kpi {
    padding: 10px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mosaic-kpi-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.mosaic-kpi strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.15;
}

.mosaic-kpi small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.mosaic-calendar-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

.mosaic-calendar-wrap {
    min-width: 790px;
    padding: 3px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mosaic-months-row {
    display: grid;
    grid-template-columns: repeat(var(--mosaic-weeks, 53), minmax(11px, 1fr));
    gap: 3px;
    padding-left: 30px;
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.mosaic-month-lbl {
    white-space: nowrap;
}

.mosaic-body-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.mosaic-weekdays-col {
    width: 24px;
    flex-shrink: 0;
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 3px;
    font-size: 0.63rem;
    font-weight: 700;
    color: var(--muted-foreground);
    align-items: center;
}

.mosaic-weeks-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(var(--mosaic-weeks, 53), minmax(11px, 1fr));
    gap: 3px;
}

.mosaic-week-col {
    display: grid;
    grid-template-rows: repeat(7, minmax(11px, 1fr));
    gap: 3px;
}

.mosaic-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 11px;
    min-height: 11px;
    padding: 0;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.mosaic-cell.is-outside {
    visibility: hidden;
    pointer-events: none;
}

.mosaic-cell:hover {
    transform: scale(1.22);
    border-color: rgba(255, 255, 255, 0.55);
    z-index: 4;
}

.mosaic-cell.is-today {
    border-color: rgba(255, 212, 125, 0.65);
}

.mosaic-cell.is-selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(166, 176, 242, 0.55);
    z-index: 5;
}

/* Color Scales: Activity (Obsidian Indigo-Lavender) */
.mosaic-cell.lv-0, .mosaic-dh-cell.lv-0 { background: rgba(255, 255, 255, 0.035); }
.mosaic-cell.lv-1 { background: rgba(77, 98, 229, 0.30); border-color: rgba(166, 176, 242, 0.15); }
.mosaic-cell.lv-2 { background: rgba(77, 98, 229, 0.56); border-color: rgba(166, 176, 242, 0.25); }
.mosaic-cell.lv-3 { background: rgba(129, 140, 248, 0.80); border-color: rgba(166, 176, 242, 0.45); }
.mosaic-cell.lv-4 { background: #a6b0f2; border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 8px rgba(166, 176, 242, 0.32); }

/* Color Scales: Winrate */
.mosaic-cell.wr-1, .mosaic-dh-cell.wr-1 { background: rgba(247, 102, 94, 0.62); border-color: rgba(247, 102, 94, 0.45); }
.mosaic-cell.wr-2, .mosaic-dh-cell.wr-2 { background: rgba(247, 102, 94, 0.34); border-color: rgba(247, 102, 94, 0.25); }
.mosaic-cell.wr-3, .mosaic-dh-cell.wr-3 { background: rgba(251, 191, 36, 0.36); border-color: rgba(251, 191, 36, 0.25); }
.mosaic-cell.wr-4, .mosaic-dh-cell.wr-4 { background: rgba(166, 176, 242, 0.56); border-color: rgba(166, 176, 242, 0.35); }
.mosaic-cell.wr-5, .mosaic-dh-cell.wr-5 { background: rgba(52, 211, 153, 0.72); border-color: rgba(52, 211, 153, 0.50); }

/* Color Scales: DPM */
.mosaic-cell.dpm-1 { background: rgba(247, 102, 94, 0.44); border-color: rgba(247, 102, 94, 0.30); }
.mosaic-cell.dpm-2 { background: rgba(96, 165, 250, 0.46); border-color: rgba(96, 165, 250, 0.30); }
.mosaic-cell.dpm-3 { background: rgba(166, 176, 242, 0.78); border-color: rgba(166, 176, 242, 0.45); }
.mosaic-cell.dpm-4 { background: #ffd47d; border-color: rgba(255, 232, 179, 0.65); box-shadow: 0 0 8px rgba(255, 212, 125, 0.30); }

.mosaic-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mosaic-legend {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    color: var(--muted-foreground);
}

.mosaic-legend-boxes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.mosaic-legend-boxes .mosaic-cell {
    width: 12px;
    height: 12px;
    cursor: default;
}

.mosaic-legend-boxes .mosaic-cell:hover {
    transform: none;
}

/* Selected Day Inspector */
.mosaic-day-inspector {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 7px;
    background: rgba(166, 176, 242, 0.06);
    border: 1px solid rgba(166, 176, 242, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mosaic-day-inspector.is-empty {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--muted-foreground);
    font-size: 0.76rem;
    justify-content: center;
}

.mosaic-insp-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mosaic-insp-ico {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.mosaic-insp-date {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--foreground);
}

.mosaic-insp-champ {
    font-size: 0.72rem;
    margin-top: 2px;
}

.mosaic-insp-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.mosaic-insp-stats > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mosaic-insp-stats strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.15;
}

.mosaic-insp-stats span {
    font-size: 0.64rem;
    color: var(--muted-foreground);
}

/* Bottom 2-Column Breakdown: Monthly Chart + Day x Hour Matrix */
.mosaic-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.mosaic-subcard {
    padding: 12px 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mosaic-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mosaic-monthly-chart {
    height: 162px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
    padding-top: 10px;
}

.mosaic-monthly-canvas-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    margin-top: 4px;
}

.wrapped-chart-box {
    position: relative;
    width: 100%;
    height: 220px;
}

.wrapped-chart-box-sm {
    height: 185px;
}

.wrapped-chart-box-radar {
    height: 245px;
    max-width: 380px;
    margin: 0 auto;
}

.mosaic-month-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    cursor: pointer;
}

.mosaic-m-val {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    height: 14px;
    line-height: 14px;
}

.mosaic-m-track {
    flex: 1;
    width: 100%;
    max-width: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.035);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.mosaic-m-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.25s ease, opacity 0.15s ease;
}

.mosaic-month-col:hover .mosaic-m-bar {
    opacity: 0.85;
}

.mosaic-m-bar.is-win { background: linear-gradient(180deg, #34d399, rgba(52, 211, 153, 0.55)); }
.mosaic-m-bar.is-mid { background: linear-gradient(180deg, #a6b0f2, rgba(77, 98, 229, 0.55)); }
.mosaic-m-bar.is-loss { background: linear-gradient(180deg, #f7665e, rgba(247, 102, 94, 0.55)); }
.mosaic-m-bar.is-empty { background: transparent; }

.mosaic-m-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

/* Day x Hour Matrix */
.mosaic-dh-matrix {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mosaic-dh-head,
.mosaic-dh-row {
    display: grid;
    grid-template-columns: 34px repeat(6, minmax(0, 1fr));
    gap: 4px;
    align-items: center;
}

.mosaic-dh-head span {
    text-align: center;
    font-size: 0.63rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.mosaic-dh-day {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.mosaic-dh-cell {
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.67rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.12s ease;
}

.mosaic-dh-cell:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.55);
}

/* Floating Mosaic Tooltip */
.mosaic-tooltip {
    position: fixed;
    z-index: 420;
    pointer-events: none;
    padding: 8px 11px;
    border-radius: 7px;
    background: #0e1017;
    border: 1px solid rgba(166, 176, 242, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78);
    font-size: 0.74rem;
    color: var(--foreground);
    max-width: 240px;
}

.mt-date {
    font-weight: 800;
    font-size: 0.76rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.mt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.mt-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   16D. CHAMPION MASTERY (USTALIK) SUB-TAB & TABLE
   ========================================================================== */

.champ-subtabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
    background: rgba(14, 15, 22, 0.72);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.champ-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.champ-subtab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.champ-subtab-btn.active {
    background: linear-gradient(135deg, rgba(77, 98, 229, 0.28), rgba(166, 176, 242, 0.16));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(166, 176, 242, 0.35);
}

.champ-subpanel {
    display: none;
}

.champ-subpanel.active {
    display: block;
}

/* Detaylı İstatistik Alt Sekme Menüsü (.da-subtabs) */
.da-subtabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 5px;
    margin-bottom: 4px;
    background: rgba(15, 17, 24, 0.72);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 100%;
}

.da-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    white-space: nowrap;
}

.da-subtab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.da-subtab-btn.active {
    background: linear-gradient(135deg, rgba(77, 98, 229, 0.28), rgba(166, 176, 242, 0.16));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(166, 176, 242, 0.35);
}

.da-subpanel {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.da-subpanel.active {
    display: flex;
}

.mastery-warning-banner {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 212, 125, 0.08);
    border: 1px solid rgba(255, 212, 125, 0.22);
    color: var(--legendary, #ffd47d);
    font-size: 0.78rem;
}

.mastery-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.mastery-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 78px;
}

.mastery-kpi-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.mastery-kpi-champ-name {
    font-size: 1.15rem;
}

.mastery-kpi-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.mastery-kpi-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mastery-kpi-top-img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255, 212, 125, 0.35);
    flex-shrink: 0;
}

.mastery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.mastery-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
    flex: 0 1 240px;
}

.mastery-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--text-secondary);
    pointer-events: none;
}

input[type="text"].mastery-search-input {
    width: 100%;
    height: 34px;
    padding: 0 12px 0 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(10, 11, 16, 0.72);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.15s ease;
}

input[type="text"].mastery-search-input:focus {
    border-color: var(--primary);
}

input[type="text"].mastery-search-input::placeholder {
    color: var(--text-secondary);
}

.mastery-class-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1 1 auto;
}

.mastery-class-pill {
    padding: 6px 11px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mastery-class-pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mastery-class-pill.active {
    background: linear-gradient(135deg, rgba(77, 98, 229, 0.88), rgba(112, 128, 245, 0.85));
    color: #fff;
    border-color: rgba(166, 176, 242, 0.45);
}

.mastery-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.mastery-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.mastery-sort-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 2px;
    outline: none;
    cursor: pointer;
}

.mastery-sort-select option {
    background: #141720;
    color: #e2e8f0;
}

.mastery-sortable-th {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.mastery-sortable-th:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mastery-sortable-th.is-sorted {
    color: #a6b0f2;
}

.mastery-sort-icon {
    margin-left: 4px;
    font-size: 0.68rem;
    opacity: 0.45;
}

.mastery-sortable-th.is-sorted .mastery-sort-icon {
    opacity: 1;
    color: #a6b0f2;
}

.mastery-visible-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.mastery-visible-count strong {
    color: var(--text-primary);
}

.mastery-refresh-btn {
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.mastery-refresh-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.09);
}

.mastery-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
}

.mastery-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.mastery-table thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 11, 16, 0.35);
    white-space: nowrap;
}

.mastery-table thead th.mastery-th-rank {
    width: 56px;
    text-align: center;
}

.mastery-table thead th.mastery-th-lvl {
    width: 96px;
    text-align: center;
}

.mastery-table thead th.mastery-th-pts {
    text-align: right;
    width: 120px;
}

.mastery-table thead th.mastery-th-last {
    text-align: right;
    width: 130px;
}

.mastery-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.12s ease;
}

.mastery-table tbody tr:last-child {
    border-bottom: none;
}

.mastery-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mastery-table tbody td {
    padding: 10px 16px;
    vertical-align: middle;
    font-size: 0.84rem;
}

.mastery-col-rank {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mastery-champ-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.mastery-champ-img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.mastery-champ-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 176, 242, 0.12);
    color: var(--primary);
    font-weight: 800;
}

.mastery-champ-name {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.mastery-champ-tags {
    font-size: 0.71rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.mastery-col-lvl {
    text-align: center;
}

.mastery-lvl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mastery-lvl-badge.tier-high {
    background: rgba(255, 212, 125, 0.14);
    color: var(--legendary, #ffd47d);
    border: 1px solid rgba(255, 212, 125, 0.36);
}

.mastery-lvl-badge.tier-mid {
    background: rgba(166, 176, 242, 0.14);
    color: var(--primary, #a6b0f2);
    border: 1px solid rgba(166, 176, 242, 0.34);
}

.mastery-lvl-badge.tier-low {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mastery-col-pts {
    text-align: right;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.mastery-prog-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mastery-prog-track {
    flex: 1 1 110px;
    max-width: 150px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mastery-prog-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #eab308, #ffd47d);
    transition: width 0.25s ease;
}

.mastery-prog-pct {
    min-width: 36px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.mastery-col-last {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
}

.mastery-empty {
    padding: 36px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mastery-state-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mastery-state-icon {
    font-size: 1.75rem;
}

.mastery-state-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.mastery-state-desc {
    margin: 0;
    max-width: 440px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.mastery-state-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.mastery-kpi-card.is-skeleton .sk-line,
.mastery-sk-wrap .sk-line,
.mastery-sk-wrap .sk-circle {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: dpmShimmer 1.4s infinite;
    border-radius: 6px;
}

.mastery-kpi-card.is-skeleton .sk-lg { height: 22px; width: 55%; }
.mastery-kpi-card.is-skeleton .sk-sm { height: 10px; width: 72%; margin-top: 4px; }

.mastery-sk-wrap {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.mastery-sk-row .sk-circle { width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0; }
.mastery-sk-row .sk-md { height: 14px; width: 32%; }
.mastery-sk-row .sk-sm { height: 12px; width: 22%; margin-left: auto; }

/* ==========================================================================
   16E. WRAPPED ("YILLIK ÖZET") STORY DECK & BENTO GRID
   ========================================================================== */

.dpm-tab-wrapped .wrapped-sparkle {
    color: var(--legendary, #ffd47d);
    margin-right: 4px;
    font-size: 0.85em;
}

.dpm-tab-wrapped.active .wrapped-sparkle {
    color: var(--legendary, #ffd47d);
}

.wrapped-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.wrapped-year-pills,
.wrapped-topbar-right,
.wrapped-mode-switch,
.wrapped-metric-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.wrapped-topbar-right {
    gap: 10px;
}

.wrapped-year-pill,
.wrapped-mpill {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wrapped-year-pill span {
    font-weight: 600;
    opacity: 0.72;
    font-size: 0.7rem;
}

.wrapped-year-pill:hover,
.wrapped-mpill:hover {
    color: var(--text-primary);
    border-color: rgba(166, 176, 242, 0.35);
}

.wrapped-year-pill.active,
.wrapped-mpill.active {
    background: var(--dpm-blue-500);
    color: #fff;
    border-color: rgba(166, 176, 242, 0.55);
}

.wrapped-mode-switch {
    padding: 3px;
    background: rgba(10, 11, 16, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 9px;
}

.wrapped-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.wrapped-mode-btn:hover {
    color: var(--text-primary);
}

.wrapped-mode-btn.active {
    background: linear-gradient(135deg, rgba(77, 98, 229, 0.35), rgba(166, 176, 242, 0.20));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(166, 176, 242, 0.35);
}

/* Story Stage (Spotify/YouTube Style) */
.wrapped-story-stage {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 18px 28px 28px;
    border-radius: 16px;
    background: #10121b;
    border: 1px solid rgba(166, 176, 242, 0.20);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
    display: flex;
    flex-direction: column;
}

.wrapped-splash-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 22%;
    opacity: 0.22;
    filter: blur(2px) saturate(1.15);
    pointer-events: none;
    z-index: 0;
}

.wrapped-story-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(77, 98, 229, 0.24), rgba(14, 16, 24, 0.90) 65%),
                linear-gradient(180deg, rgba(14, 16, 24, 0.65) 0%, rgba(14, 16, 24, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

.wrapped-progress-track {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.wrapped-progress-seg {
    position: relative;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
    cursor: pointer;
}

.wrapped-progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--legendary));
}

.wrapped-progress-seg.is-done .wrapped-progress-fill {
    width: 100%;
    background: var(--primary);
}

.wrapped-progress-seg.is-active .wrapped-progress-fill {
    animation: wrappedSlideProgress 6s linear forwards;
}

.wrapped-story-stage.is-paused .wrapped-progress-seg.is-active .wrapped-progress-fill {
    animation-play-state: paused;
}

@keyframes wrappedSlideProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.wrapped-story-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.wrapped-brand-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(77, 98, 229, 0.16);
    border: 1px solid rgba(166, 176, 242, 0.25);
}

.wrapped-story-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wrapped-ctrl-btn,
.wrapped-nav-arrow {
    height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.wrapped-nav-arrow {
    width: 30px;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.wrapped-ctrl-btn:hover:not(:disabled),
.wrapped-nav-arrow:hover:not(:disabled) {
    background: rgba(166, 176, 242, 0.18);
    border-color: rgba(166, 176, 242, 0.45);
}

.wrapped-nav-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wrapped-slide-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wrapped-slide-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.wrapped-slide-body.is-entering {
    animation: wrappedSlideIn 0.28s ease-out;
}

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

.wrapped-slide-eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    color: var(--legendary, #ffd47d);
    margin-bottom: 12px;
}

.wrapped-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 14px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.wrapped-player-chip img {
    border-radius: 50%;
}

.wrapped-player-chip small {
    color: var(--text-secondary);
    margin-left: 2px;
}

.wrapped-region-pill {
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(77, 98, 229, 0.28);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
}

.wrapped-hero-number {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 25%, var(--primary) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.wrapped-hero-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.wrapped-hero-sub strong {
    color: var(--text-primary);
}

.wrapped-slide-grid-4,
.wrapped-slide-grid-3 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.wrapped-slide-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wrapped-stat-tile {
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wrapped-tile-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.wrapped-tile-lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.wrapped-champ-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    align-items: stretch;
    text-align: left;
}

.wrapped-champ-spotlight {
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(77, 98, 229, 0.22), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(166, 176, 242, 0.30);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.wrapped-rank-pill {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 212, 125, 0.16);
    color: var(--legendary, #ffd47d);
    border: 1px solid rgba(255, 212, 125, 0.35);
}

.wrapped-champ-spotlight-img {
    border-radius: 16px;
    border: 2px solid rgba(255, 212, 125, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.wrapped-champ-spotlight-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.wrapped-champ-spotlight-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.wrapped-champ-spotlight-meta strong {
    color: var(--text-primary);
}

.wrapped-champ-spotlight-dmg {
    font-size: 0.76rem;
    color: var(--primary);
    font-weight: 600;
}

.wrapped-podium-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wrapped-pool-chip {
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.wrapped-pool-chip strong {
    color: var(--text-primary);
}

.wrapped-podium-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wrapped-podium-rank {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--primary);
    min-width: 24px;
}

.wrapped-podium-row img {
    border-radius: 7px;
}

.wrapped-podium-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wrapped-podium-info small {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.wrapped-podium-kda {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--legendary, #ffd47d);
}

.wrapped-records-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    text-align: left;
}

.wrapped-rec-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wrapped-rec-chip img {
    border-radius: 7px;
    flex-shrink: 0;
}

.wrapped-rec-chip div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wrapped-rec-chip strong {
    font-size: 0.84rem;
    color: var(--text-primary);
}

.wrapped-rec-chip small {
    font-size: 0.71rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrapped-two-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}

.wrapped-split-box {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wrapped-split-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.wrapped-split-head strong {
    font-size: 0.96rem;
    color: var(--text-primary);
}

.wrapped-split-head small {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

/* 3D Keycaps */
.wrapped-keycaps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wrapped-keycap {
    padding: 10px 8px;
    border-radius: 10px;
    background: #171923;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom-width: 4px;
    border-bottom-color: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.wrapped-keycap.is-hot {
    background: rgba(77, 98, 229, 0.24);
    border-color: rgba(166, 176, 242, 0.55);
    border-bottom-color: rgba(77, 98, 229, 0.85);
    box-shadow: 0 6px 18px rgba(77, 98, 229, 0.25);
}

.wrapped-keycap-letter {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.wrapped-keycap-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.wrapped-ping-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wrapped-ping-row {
    display: grid;
    grid-template-columns: 96px 1fr 56px;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
}

.wrapped-ping-row span {
    color: var(--text-secondary);
    white-space: nowrap;
}

.wrapped-ping-row strong {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.wrapped-ping-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.wrapped-ping-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dpm-blue-500), var(--primary));
}

/* Side Duel */
.wrapped-side-banner {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.wrapped-side-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.wrapped-side-duel {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    align-items: center;
    gap: 12px;
}

.wrapped-side-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wrapped-side-col.is-blue { text-align: left; }
.wrapped-side-col.is-red { text-align: right; }

.wrapped-side-col small {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.wrapped-side-col.is-blue strong { color: #8fa2ff; font-size: 1.05rem; }
.wrapped-side-col.is-red strong { color: var(--destructive); font-size: 1.05rem; }

.wrapped-side-col span {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.wrapped-side-bar {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: rgba(255, 255, 255, 0.08);
}

.wrapped-side-bar-blue {
    background: linear-gradient(90deg, #3045c9, #6b80ff);
    height: 100%;
}

.wrapped-side-bar-red {
    background: linear-gradient(90deg, #f7665e, #dc2626);
    height: 100%;
}

/* Monthly Bars */
.wrapped-month-bars {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    height: 170px;
    padding: 14px 12px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wrapped-month-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.wrapped-month-val {
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-height: 14px;
    font-variant-numeric: tabular-nums;
}

.wrapped-month-col.is-peak .wrapped-month-val,
.wrapped-month-col.is-peak .wrapped-month-lbl {
    color: var(--legendary, #ffd47d);
    font-weight: 800;
}

.wrapped-month-track {
    width: 100%;
    max-width: 22px;
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.wrapped-month-fill {
    width: 100%;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, var(--primary), var(--dpm-blue-500));
    transition: height 0.3s ease;
}

.wrapped-month-col.is-peak .wrapped-month-fill {
    background: linear-gradient(180deg, #ffd47d, #eab308);
    box-shadow: 0 0 12px rgba(255, 212, 125, 0.35);
}

.wrapped-month-col.is-empty .wrapped-month-fill {
    background: rgba(255, 255, 255, 0.08);
}

.wrapped-month-lbl {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.wrapped-queue-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.wrapped-queue-chip {
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.wrapped-queue-chip strong {
    font-size: 0.8rem;
}

.wrapped-queue-chip span {
    font-size: 0.71rem;
    color: var(--text-secondary);
}

/* Teammates List */
.wrapped-teammates-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
    text-align: left;
}

.wrapped-tm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wrapped-tm-row:hover {
    border-color: rgba(166, 176, 242, 0.40);
    background: rgba(166, 176, 242, 0.08);
    color: var(--text-primary);
}

.wrapped-tm-rank {
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--primary);
    min-width: 24px;
}

.wrapped-tm-row img {
    border-radius: 7px;
    flex-shrink: 0;
}

.wrapped-tm-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrapped-tm-name small {
    color: var(--text-secondary);
    margin-left: 3px;
}

.wrapped-tm-stats {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.wrapped-tm-stats em {
    font-style: normal;
    font-weight: 700;
}

.wrapped-tm-stats em.is-pos { color: var(--win-emerald); }
.wrapped-tm-stats em.is-neg { color: var(--destructive); }

/* Persona Card */
.wrapped-persona-showcase {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    padding: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.wrapped-persona-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--persona-accent, var(--primary));
    letter-spacing: -0.02em;
}

.wrapped-persona-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 6px 0 18px;
}

.wrapped-trait-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.wrapped-trait-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.wrapped-trait-head span { color: var(--text-secondary); }
.wrapped-trait-head strong { color: var(--text-primary); }

.wrapped-trait-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

.wrapped-trait-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dpm-blue-500), var(--primary), var(--legendary));
}

.wrapped-finale-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.wrapped-finale-actions .btn,
.wrapped-topbar-right .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Bento Grid View */
.wrapped-bento-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.wrapped-bkpi {
    padding: 14px 12px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wrapped-bkpi strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.wrapped-bkpi span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.wrapped-bento-card {
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.wrapped-bento-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wrapped-bento-2col .wrapped-bento-card {
    margin-bottom: 14px;
}

.wrapped-bento-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.wrapped-bento-head h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.wrapped-bento-head small {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.wrapped-champ-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.wrapped-champ-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.wrapped-champ-tile.is-top {
    border-color: rgba(255, 212, 125, 0.42);
    background: rgba(255, 212, 125, 0.06);
}

.wrapped-champ-rank {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 18px;
}

.wrapped-champ-tile img {
    border-radius: 8px;
    flex-shrink: 0;
}

.wrapped-champ-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wrapped-champ-meta strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrapped-champ-primary {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
}

.wrapped-champ-meta small {
    font-size: 0.69rem;
    color: var(--text-secondary);
}

.wrapped-qbar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wrapped-qbar-row {
    display: grid;
    grid-template-columns: 120px 1fr 62px;
    align-items: center;
    gap: 10px;
}

.wrapped-qbar-lbl {
    display: flex;
    flex-direction: column;
}

.wrapped-qbar-lbl strong { font-size: 0.78rem; }
.wrapped-qbar-lbl small { font-size: 0.68rem; color: var(--text-secondary); }

.wrapped-qbar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.wrapped-qbar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dpm-blue-500), #60a5fa);
}

.wrapped-qbar-val {
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.wrapped-obj-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.wrapped-obj-strip div {
    padding: 9px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wrapped-obj-strip strong { font-size: 1rem; color: var(--text-primary); }
.wrapped-obj-strip span { font-size: 0.68rem; color: var(--text-secondary); }

.wrapped-records-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wrapped-empty-note {
    padding: 18px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.wrapped-skeleton-card,
.wrapped-state-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 36px 24px;
    text-align: center;
}

.wrapped-state-icon { font-size: 2rem; margin-bottom: 8px; }
.wrapped-state-card h3 { margin: 0 0 6px; }
.wrapped-state-card p { margin: 0 0 14px; color: var(--text-secondary); font-size: 0.86rem; }

.wrapped-sk-bar,
.wrapped-sk-box {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: dpmShimmer 1.4s infinite;
    border-radius: 10px;
}

.wrapped-sk-bar.sk-w35 { height: 18px; width: 35%; margin: 0 auto 18px; }
.wrapped-sk-bar.sk-hero { height: 54px; width: 46%; margin: 0 auto 24px; }
.wrapped-sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wrapped-sk-box { height: 84px; }

/* ==========================================================================
   16F. DEEP REPORT HUB, BENCHMARKS, TAGS & VS COMPARISON (.dr-* & .dpm-micro-*)
   ========================================================================== */

/* Per-Match Micro-Tags */
.dpm-micro-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

.dpm-micro-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.dpm-micro-tag.tone-indigo {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
    border-color: rgba(129, 140, 248, 0.38);
}
.dpm-micro-tag.tone-rose {
    background: rgba(244, 63, 94, 0.20);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.38);
}
.dpm-micro-tag.tone-emerald,
.dpm-micro-tag.tone-win {
    background: rgba(16, 185, 129, 0.20);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.36);
}
.dpm-micro-tag.tone-gold {
    background: rgba(245, 158, 11, 0.20);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.40);
}
.dpm-micro-tag.tone-sky {
    background: rgba(14, 165, 233, 0.20);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.38);
}
.dpm-micro-tag.tone-purple {
    background: rgba(168, 85, 247, 0.22);
    color: #d8b4fe;
    border-color: rgba(192, 132, 252, 0.40);
}
.dpm-micro-tag.tone-slate {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.30);
}

/* Deep Report Hub Container */
.dr-hub-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dr-grid-top {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
    gap: 14px;
    align-items: stretch;
}

.dr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    position: relative;
    overflow: hidden;
}

.dr-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dr-card-kicker {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.dr-card-title {
    margin: 2px 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dr-card-sub {
    margin: 3px 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dr-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dr-grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(77, 98, 229, 0.24), rgba(166, 176, 242, 0.12));
    border: 1px solid rgba(166, 176, 242, 0.38);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
}

.dr-grade-badge .dr-grade-letter {
    font-size: 1rem;
    color: #ffd47d;
}

.dr-grade-badge.is-elite {
    background: linear-gradient(135deg, rgba(255, 212, 125, 0.22), rgba(245, 158, 11, 0.10));
    border-color: rgba(255, 212, 125, 0.45);
}

.dr-grade-badge.is-good {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.20), rgba(16, 185, 129, 0.08));
    border-color: rgba(52, 211, 153, 0.40);
}
.dr-grade-badge.is-good .dr-grade-letter { color: #6ee7b7; }

.dr-grade-badge.is-mid {
    background: linear-gradient(135deg, rgba(166, 176, 242, 0.20), rgba(77, 98, 229, 0.10));
    border-color: rgba(166, 176, 242, 0.38);
}
.dr-grade-badge.is-mid .dr-grade-letter { color: #c7d2fe; }

.dr-grade-badge.is-low {
    background: linear-gradient(135deg, rgba(247, 102, 94, 0.20), rgba(220, 38, 38, 0.08));
    border-color: rgba(247, 102, 94, 0.40);
}
.dr-grade-badge.is-low .dr-grade-letter { color: #fda4af; }

.dr-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dr-copy-btn:hover {
    background: rgba(166, 176, 242, 0.14);
    border-color: rgba(166, 176, 242, 0.36);
    color: var(--text-primary);
}

/* Section A: Coaching & Performance Report */
.dr-headline {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.dr-summary {
    margin: 4px 0 0;
    font-size: 0.79rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dr-coaching-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.dr-split-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.dr-split-title {
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.dr-split-title.is-strength { color: #6ee7b7; }
.dr-split-title.is-priority { color: #fcd34d; }

.dr-list-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-list-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid var(--border-color);
    border-left-width: 3px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dr-list-item.is-strength {
    border-left-color: #34d399;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.dr-list-item.is-priority {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.dr-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dr-item-title {
    font-size: 0.79rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 0;
}

.dr-item-metric {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-secondary);
    white-space: nowrap;
}

.dr-list-item.is-strength .dr-item-metric {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.30);
    color: #6ee7b7;
}

.dr-list-item.is-priority .dr-item-metric {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.32);
    color: #fde68a;
}

.dr-item-detail,
.dr-item-action {
    margin: 0;
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.42;
}

.dr-item-impact {
    font-size: 0.69rem;
    font-weight: 700;
    color: #fcd34d;
}

.dr-climb-callout {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(77, 98, 229, 0.15) 0%, rgba(166, 176, 242, 0.05) 100%);
    border: 1px solid rgba(166, 176, 242, 0.28);
}

.dr-climb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dr-climb-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(166, 176, 242, 0.36);
    flex-shrink: 0;
}

.dr-climb-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.dr-climb-kicker {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
}

.dr-climb-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dr-climb-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.dr-climb-pill {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-primary);
    white-space: nowrap;
}

.dr-climb-pill.is-wr {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.34);
    color: #6ee7b7;
}

/* Section B: Smart Player Tags */
.dr-tags-cluster {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.dr-tags-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dr-tags-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dr-tags-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
    gap: 7px;
}

.dr-tag-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.dr-tag-pill:hover {
    transform: translateY(-1px);
}

.dr-tag-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.dr-tag-main {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 0;
}

.dr-tag-icon {
    flex-shrink: 0;
    font-size: 0.86rem;
    line-height: 1;
}

.dr-tag-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dr-tag-proof {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
}

.dr-tag-desc {
    margin: 0;
    font-size: 0.69rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Tag Tone Variants */
.dr-tag-pill.tone-win,
.dr-tag-pill.tone-emerald {
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(52, 211, 153, 0.30);
}
.dr-tag-pill.tone-win .dr-tag-proof,
.dr-tag-pill.tone-emerald .dr-tag-proof {
    background: rgba(16, 185, 129, 0.20);
    color: #6ee7b7;
}

.dr-tag-pill.tone-indigo,
.dr-tag-pill.tone-sky {
    background: rgba(77, 98, 229, 0.11);
    border-color: rgba(166, 176, 242, 0.30);
}
.dr-tag-pill.tone-indigo .dr-tag-proof,
.dr-tag-pill.tone-sky .dr-tag-proof {
    background: rgba(99, 102, 241, 0.24);
    color: #c7d2fe;
}

.dr-tag-pill.tone-gold {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(255, 212, 125, 0.32);
}
.dr-tag-pill.tone-gold .dr-tag-proof {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
}

.dr-tag-pill.tone-rose {
    background: rgba(244, 63, 94, 0.10);
    border-color: rgba(247, 102, 94, 0.32);
}
.dr-tag-pill.tone-rose .dr-tag-proof {
    background: rgba(244, 63, 94, 0.22);
    color: #fda4af;
}

.dr-tag-pill.tone-purple {
    background: rgba(168, 85, 247, 0.11);
    border-color: rgba(192, 132, 252, 0.32);
}
.dr-tag-pill.tone-purple .dr-tag-proof {
    background: rgba(168, 85, 247, 0.24);
    color: #d8b4fe;
}

.dr-tag-pill.tone-slate {
    background: rgba(148, 163, 184, 0.09);
    border-color: rgba(148, 163, 184, 0.26);
}
.dr-tag-pill.tone-slate .dr-tag-proof {
    background: rgba(148, 163, 184, 0.20);
    color: #cbd5e1;
}

/* Section C: Interactive Comparison Hub */
.dr-comp-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 4px;
    border-radius: 9px;
    background: rgba(10, 11, 16, 0.55);
    border: 1px solid var(--border-color);
}

.dr-comp-tab {
    padding: 7px 13px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.77rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dr-comp-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dr-comp-tab.active {
    background: var(--dpm-blue-500);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(77, 98, 229, 0.32);
}

.dr-comp-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dr-comp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dr-est-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(77, 98, 229, 0.16);
    border: 1px solid rgba(166, 176, 242, 0.34);
    color: #d7dcfb;
    font-size: 0.74rem;
    font-weight: 800;
}

.dr-tier-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.dr-tier-pill {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dr-tier-pill:hover {
    color: var(--text-primary);
    border-color: rgba(166, 176, 242, 0.38);
}

.dr-tier-pill.active {
    background: rgba(77, 98, 229, 0.28);
    border-color: rgba(166, 176, 242, 0.56);
    color: #ffffff;
}

/* Tier Benchmarks */
.dr-bench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dr-bench-row {
    padding: 11px 13px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dr-bench-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dr-bench-lbl {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dr-bench-vals {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.78rem;
}

.dr-bench-val {
    font-weight: 800;
    color: var(--text-primary);
}

.dr-bench-target {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dr-bench-delta {
    font-size: 0.69rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
}

.dr-bench-delta.is-ahead {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.dr-bench-delta.is-behind {
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af;
}

.dr-bench-bar-track {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.dr-bench-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3045c9, #a6b0f2);
    transition: width 0.3s ease;
}

.dr-bench-bar-fill.is-ahead {
    background: linear-gradient(90deg, #059669, #34d399);
}

.dr-bench-bar-fill.is-behind {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.dr-bench-target-pin {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-radius: 2px;
    background: #ffd47d;
    box-shadow: 0 0 6px rgba(255, 212, 125, 0.72);
    pointer-events: none;
    z-index: 2;
}

.dr-bench-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.dr-bench-tier-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(166, 176, 242, 0.15);
    border: 1px solid rgba(166, 176, 242, 0.30);
    color: #c7d2fe;
    white-space: nowrap;
}

/* Win vs Loss */
.dr-finding-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 212, 125, 0.11), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 212, 125, 0.32);
    font-size: 0.79rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.dr-finding-callout strong {
    color: #ffd47d;
}

.dr-wvl-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-wvl-row {
    display: grid;
    grid-template-columns: 118px 1fr 90px;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
}

.dr-wvl-label {
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dr-wvl-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.dr-wvl-bar-line {
    display: grid;
    grid-template-columns: 38px 1fr 58px;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
}

.dr-wvl-side {
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dr-wvl-side.is-win { color: #93c5fd; }
.dr-wvl-side.is-loss { color: #fca5a5; }

.dr-wvl-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.dr-wvl-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.dr-wvl-fill.is-win {
    background: linear-gradient(90deg, #3045c9, #60a5fa);
}

.dr-wvl-fill.is-loss {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.dr-wvl-val {
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
}

.dr-wvl-diff {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.dr-wvl-diff.is-pos { color: #6ee7b7; }
.dr-wvl-diff.is-neg { color: #fda4af; }
.dr-wvl-diff.is-flat { color: var(--text-muted); }

/* Form Trend */
.dr-trend-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.dr-trend-banner.is-up {
    border-color: rgba(52, 211, 153, 0.34);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.11), rgba(255, 255, 255, 0.02));
}

.dr-trend-banner.is-down {
    border-color: rgba(247, 102, 94, 0.34);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.11), rgba(255, 255, 255, 0.02));
}

.dr-trend-banner.is-stable,
.dr-trend-banner.is-flat {
    border-color: rgba(166, 176, 242, 0.30);
    background: linear-gradient(135deg, rgba(77, 98, 229, 0.10), rgba(255, 255, 255, 0.02));
}

.dr-trend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dr-trend-tile {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-top-width: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dr-trend-tile.is-up { border-top-color: #34d399; }
.dr-trend-tile.is-down { border-top-color: #f7665e; }
.dr-trend-tile.is-flat { border-top-color: rgba(148, 163, 184, 0.45); }

.dr-trend-lbl {
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.dr-trend-val-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.dr-trend-val {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dr-trend-delta {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
}

.dr-trend-tile.is-up .dr-trend-delta {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.dr-trend-tile.is-down .dr-trend-delta {
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af;
}

.dr-trend-tile.is-flat .dr-trend-delta {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

.dr-trend-prev {
    font-size: 0.71rem;
    color: var(--text-muted);
}

/* VS Player Comparison */
.dr-vs-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
}

.dr-vs-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

input[type="text"].dr-vs-input,
.dr-vs-input {
    width: auto;
    min-width: 200px;
    flex: 1 1 220px;
    height: 36px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
}

input[type="text"].dr-vs-input:focus,
.dr-vs-input:focus {
    border-color: var(--primary);
}

select.dr-vs-select,
.dr-vs-select {
    width: auto;
    min-width: 145px;
    flex: 0 0 auto;
    height: 36px;
    padding: 0 30px 0 11px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.dr-vs-submit {
    height: 36px;
    padding: 0 15px;
    border: none;
    border-radius: 7px;
    background: var(--dpm-blue-500);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.dr-vs-submit:hover {
    background: var(--dpm-blue-600);
}

.dr-vs-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dr-vs-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.dr-vs-chips-label {
    font-size: 0.69rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 2px;
}

.dr-vs-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dr-vs-chip:hover {
    border-color: rgba(166, 176, 242, 0.45);
    color: var(--text-primary);
}

.dr-vs-chip.active {
    background: rgba(77, 98, 229, 0.28);
    border-color: rgba(166, 176, 242, 0.56);
    color: #ffffff;
}

.dr-vs-chip img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.dr-vs-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(77, 98, 229, 0.15) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(244, 63, 94, 0.15) 100%);
    border: 1px solid var(--border-color);
}

.dr-vs-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dr-vs-player.is-p2 {
    flex-direction: row-reverse;
    text-align: right;
}

.dr-vs-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(166, 176, 242, 0.45);
    flex-shrink: 0;
}

.dr-vs-player.is-p2 .dr-vs-avatar {
    border-color: rgba(247, 102, 94, 0.48);
}

.dr-vs-pname {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-vs-pmeta {
    font-size: 0.71rem;
    color: var(--text-muted);
}

.dr-vs-center-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.dr-vs-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dr-vs-row {
    display: grid;
    grid-template-columns: 82px 1fr 118px 1fr 82px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
}

.dr-vs-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.dr-vs-val.is-p1 { text-align: right; }
.dr-vs-val.is-p2 { text-align: left; }

.dr-vs-val.is-winner {
    font-weight: 800;
    color: #ffffff;
}

.dr-vs-val.is-p1.is-winner { color: #a6b0f2; }
.dr-vs-val.is-p2.is-winner { color: #fda4af; }

.dr-vs-metric-lbl {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.dr-vs-bar-pair {
    display: flex;
    align-items: center;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.dr-vs-bar-pair.is-left {
    justify-content: flex-end;
}

.dr-vs-bar-pair.is-right {
    justify-content: flex-start;
}

.dr-vs-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.dr-vs-bar-fill.is-p1 {
    background: linear-gradient(90deg, #4d62e5, #a6b0f2);
}

.dr-vs-bar-fill.is-p2 {
    background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.dr-vs-verdict {
    padding: 11px 14px;
    border-radius: 8px;
    background: rgba(77, 98, 229, 0.14);
    border: 1px solid rgba(166, 176, 242, 0.30);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.dr-vs-error {
    padding: 10px 13px;
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.30);
    color: #fda4af;
    font-size: 0.78rem;
    font-weight: 600;
}

.dr-vs-loading,
.dr-vs-empty {
    padding: 18px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Skeleton Loaders & Error State */
.dr-skeleton {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dr-sk-line,
.dr-sk-box {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: dpmShimmer 1.4s infinite;
    border-radius: 8px;
}

.dr-sk-line { height: 14px; width: 100%; }
.dr-sk-line.w-40 { width: 40%; }
.dr-sk-line.w-65 { width: 65%; }
.dr-sk-line.h-lg { height: 22px; }

.dr-sk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dr-sk-box { height: 124px; }

.dr-error-card {
    background: var(--bg-card);
    border: 1px solid rgba(247, 102, 94, 0.32);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dr-error-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   17. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .wrapped-bento-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .wrapped-champ-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wrapped-bento-2col,
    .wrapped-champ-showcase,
    .wrapped-two-split {
        grid-template-columns: 1fr;
    }
    .mastery-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mosaic-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .mosaic-bottom-grid {
        grid-template-columns: 1fr;
    }
    .da-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .da-radar-layout {
        grid-template-columns: 1fr;
    }
    .da-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .da-two-col-grid,
    .da-three-col-grid,
    .da-vision-records-grid {
        grid-template-columns: 1fr;
    }
    .da-records-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dpm-layout-grid {
        grid-template-columns: 1fr;
    }
    .dpm-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dpm-radar-block {
        grid-column: 1 / -1;
    }
    .multi-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dpm-det-visual-grid {
        grid-template-columns: 1fr;
    }
    .champ-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cd-panel-grid {
        grid-template-columns: 1fr;
    }
    .live-teams-grid {
        grid-template-columns: 1fr;
    }
    .dpm-sb-row {
        grid-template-columns: 40px 34px minmax(90px, 1fr) 38px 1fr 56px 32px;
    }
    .dpm-sb-kpcs,
    .dpm-sb-dmg {
        display: none;
    }
    .dpm-det-cards-3,
    .dpm-det-cards-2 {
        grid-template-columns: 1fr;
    }
    .dr-grid-top {
        grid-template-columns: 1fr;
    }
    .dr-bench-grid {
        grid-template-columns: 1fr;
    }
    .dr-trend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dr-vs-row {
        grid-template-columns: 68px 1fr 98px 1fr 68px;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-search-wrap,
    .nav-search-form { display: none; }
    .hero { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .home-brand-name { font-size: 2rem; }
    .home-search-box { height: auto; flex-wrap: wrap; gap: 6px; padding: 6px; }
    select.home-search-region,
    select.home-region-select { width: 82px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 6px; background-color: #161820; }
    .home-search-field { flex: 1; min-width: 160px; height: 40px; padding: 0 10px; }
    .home-search-submit { width: 100%; height: 40px; }
    .multi-search-grid { grid-template-columns: 1fr; }
    .champ-summary-grid { grid-template-columns: 1fr; }
    .dpm-score-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .dpm-score-tab { font-size: 0.7rem; padding: 0 3px; height: 34px; }
    .dpm-score-table-head,
    .dpm-score-row { grid-template-columns: 76px 1fr 76px; }

    /* Mobile 2-Tier Compact Match Card (All core stats & items visible) */
    .dpm-match-row {
        grid-template-columns: 44px 80px 1fr 36px 52px 28px;
        grid-template-rows: auto auto;
        gap: 6px 5px;
        padding: 8px 0 8px 10px;
    }
    .dpm-m-champ { grid-column: 1; grid-row: 1; margin: 0; }
    .dpm-m-champ.has-duo, .dpm-vs-wrap.has-duo { transform: none; }
    .dpm-m-duo-partner { width: 22px; height: 22px; right: -8px; top: -3px; }
    .dpm-m-duo-role { width: 12px; height: 12px; right: -3px; bottom: -3px; }
    .dpm-m-champ-img { width: 40px; height: 40px; }
    .dpm-m-meta { grid-column: 2; grid-row: 1; }
    .dpm-m-kda { grid-column: 3; grid-row: 1; }
    .dpm-m-vs { grid-column: 4; grid-row: 1; display: flex; }
    .dpm-vs-wrap, .dpm-vs-img { width: 30px; height: 30px; }
    .dpm-m-score-col { grid-column: 5; grid-row: 1 / span 2; }
    .dpm-score-capsule,
    .dpm-score-capsule.dpm-ring-btn {
        flex-direction: column-reverse;
        gap: 3px;
        padding: 6px 8px;
        border-radius: 12px;
    }
    .dpm-cap-ring { width: 26px; height: 26px; }
    .dpm-m-chevron-strip { grid-column: 6; grid-row: 1 / span 2; width: 28px; min-height: 86px; }
    .dpm-m-sr { grid-column: 1; grid-row: 2; display: grid; justify-self: center; }
    .dpm-sr-ico, .dpm-sr-rune { width: 17px; height: 17px; }
    .dpm-m-items-wrap { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 4px; }
    .dpm-m-items-grid { gap: 2px; }
    .dpm-item-box { width: 18px; height: 18px; }
    .dpm-m-stats { grid-column: 3 / span 2; grid-row: 2; justify-self: end; text-align: right; }

    .dpm-profile-splash { width: 100%; opacity: 0.16; }
    .mosaic-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mosaic-insp-stats {
        gap: 12px;
    }
    .dpm-filter-form {
        grid-template-columns: 1fr 1fr;
    }
    .dpm-runes-team-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .settings-grid,
    .match-details-grid,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr;
    }
    .fh-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .da-kpi-grid,
    .da-axis-bars-list,
    .da-session-grid,
    .da-tod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .da-career-mini-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .da-insights-grid,
    .da-tilt-grid,
    .da-records-grid,
    .da-cw-compare {
        grid-template-columns: 1fr;
    }
    .da-dow-row {
        grid-template-columns: 72px 1fr 48px 58px;
    }
    .da-dow-games {
        display: none;
    }
    .da-subtabs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .da-subtab-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    .lp-chart-canvas-wrap {
        height: 200px;
    }
    .da-radar-canvas-wrap {
        height: 270px;
    }
    .da-chart-box {
        height: 195px;
        padding: 6px 12px 12px;
    }
    .da-chart-box-sm {
        height: 170px;
        padding: 4px 12px 8px;
    }
    .da-chart-box-md {
        height: 205px;
        padding: 8px 12px 12px;
    }
    .mosaic-monthly-canvas-wrap {
        height: 165px;
    }
    .wrapped-chart-box {
        height: 190px;
    }
    .wrapped-chart-box-sm {
        height: 165px;
    }
    .wrapped-chart-box-radar {
        height: 215px;
    }
    .mastery-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .mastery-kpi-card {
        padding: 12px 14px;
    }
    .mastery-kpi-value {
        font-size: 1.15rem;
    }
    .mastery-search-wrap {
        flex: 1 1 100%;
    }
    .mastery-toolbar-meta {
        width: 100%;
        justify-content: space-between;
    }
    .wrapped-story-stage {
        padding: 14px 14px 20px;
        min-height: 440px;
    }
    .wrapped-slide-grid-4,
    .wrapped-slide-grid-3,
    .wrapped-records-mini,
    .wrapped-records-list,
    .wrapped-bento-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wrapped-obj-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .wrapped-champ-grid {
        grid-template-columns: 1fr;
    }
    .wrapped-month-bars {
        gap: 4px;
        height: 140px;
        padding: 10px 6px 8px;
    }
    .wrapped-side-duel {
        grid-template-columns: 78px 1fr 78px;
    }
    .wrapped-qbar-row {
        grid-template-columns: 96px 1fr 52px;
    }
    .wrapped-sk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dpm-micro-tags {
        margin-top: 3px;
        gap: 2px;
    }
    .dpm-micro-tag {
        font-size: 0.58rem;
        padding: 1px 4px;
    }
    .dpm-micro-tag:nth-child(n+2) {
        display: none;
    }
    .dr-card {
        padding: 13px 14px;
    }
    .dr-coaching-split,
    .dr-trend-grid,
    .dr-sk-grid,
    .dr-tags-row {
        grid-template-columns: 1fr;
    }
    .dr-comp-tabs {
        gap: 4px;
    }
    .dr-comp-tab {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        padding: 7px 8px;
        font-size: 0.74rem;
    }
    .dr-wvl-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .dr-wvl-diff {
        text-align: left;
    }
    .dr-vs-form {
        flex-direction: column;
        align-items: stretch;
    }
    input[type="text"].dr-vs-input,
    select.dr-vs-select,
    .dr-vs-submit {
        width: 100%;
        flex: 1 1 100%;
    }
    .dr-vs-header {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    .dr-vs-player,
    .dr-vs-player.is-p2 {
        flex-direction: row;
        text-align: left;
        justify-content: center;
    }
    .dr-vs-row {
        grid-template-columns: 60px 1fr 1fr 60px;
        gap: 6px;
    }
    .dr-vs-row .dr-vs-metric-lbl {
        grid-column: 1 / -1;
        order: -1;
        text-align: left;
    }
}

/* ==========================================================================
   18. THEME TOGGLE & LIGHT THEME ("ALABASTER GLASS")
   ========================================================================== */

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(166, 176, 242, 0.35);
    color: var(--text-primary);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn .theme-icon-sun {
    display: block;
}

.theme-toggle-btn .theme-icon-moon {
    display: none;
}

html[data-theme="light"] .theme-toggle-btn .theme-icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle-btn .theme-icon-moon {
    display: block;
}

/* Light Theme Core Tokens */
html[data-theme="light"] {
    color-scheme: light;
    --primary: #4353d6;
    --dpm-blue-500: #4353d6;
    --dpm-blue-600: #3342b8;
    --destructive: #dc2626;
    --legendary: #b45309;
    --foreground: #0f172a;
    --muted-foreground: #64748b;

    --bg-canvas: #f3f5fa;
    --bg-canvas-alt: #ffffff;
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-elevated: #eef2f9;
    --bg-input: #f8fafc;
    --border-color: rgba(15, 23, 42, 0.10);
    --border-subtle: rgba(15, 23, 42, 0.06);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --accent-cyan: #4353d6;
    --accent-blue: #4353d6;
    --accent-primary: #4353d6;
    --accent-glow: rgba(67, 83, 214, 0.16);

    --win: #3b4fd4;
    --win-emerald: #059669;
    --win-bg: rgba(67, 83, 214, 0.10);
    --win-border: rgba(67, 83, 214, 0.24);

    --loss: #dc2626;
    --coral: #dc2626;
    --loss-bg: rgba(220, 38, 38, 0.08);
    --loss-border: rgba(220, 38, 38, 0.22);

    --gold: #b45309;
    --amber: #b45309;
    --gold-bg: rgba(217, 119, 6, 0.12);
    --purple: #7c3aed;
    --purple-bg: rgba(124, 58, 237, 0.10);

    --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-modal: 0 24px 60px rgba(15, 23, 42, 0.22);
}

/* Light Custom Scrollbars */
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #eef1f7;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(67, 83, 214, 0.24);
    border-color: #eef1f7;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 83, 214, 0.45);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, var(--dpm-blue-500), var(--dpm-blue-600));
}

html[data-theme="light"] ::-webkit-scrollbar-corner {
    background: #eef1f7;
}

html[data-theme="light"] .mastery-table-wrap::-webkit-scrollbar-track,
html[data-theme="light"] .mosaic-calendar-scroll::-webkit-scrollbar-track,
html[data-theme="light"] .mosaic-grid-scroll::-webkit-scrollbar-track,
html[data-theme="light"] .dpm-build-timeline::-webkit-scrollbar-track,
html[data-theme="light"] .ss-dropdown::-webkit-scrollbar-track,
html[data-theme="light"] .table-wrap::-webkit-scrollbar-track,
html[data-theme="light"] .modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .mastery-table-wrap::-webkit-scrollbar-thumb,
html[data-theme="light"] .mosaic-calendar-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .mosaic-grid-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .dpm-build-timeline::-webkit-scrollbar-thumb,
html[data-theme="light"] .ss-dropdown::-webkit-scrollbar-thumb,
html[data-theme="light"] .table-wrap::-webkit-scrollbar-thumb,
html[data-theme="light"] .modal-body::-webkit-scrollbar-thumb {
    background: rgba(67, 83, 214, 0.28);
}

@supports not selector(::-webkit-scrollbar) {
    html[data-theme="light"],
    html[data-theme="light"] * {
        scrollbar-color: rgba(67, 83, 214, 0.35) #eef1f7;
    }
}

/* Navbar, Footer, Buttons & Navigation */
html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .site-footer {
    background: #ffffff;
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .brand,
html[data-theme="light"] .brand:hover {
    color: #0f172a;
}

html[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(15, 23, 42, 0.10);
    background: #f1f5f9;
    color: #475569;
}

html[data-theme="light"] .theme-toggle-btn:hover {
    background: #e2e8f0;
    border-color: rgba(67, 83, 214, 0.35);
    color: #0f172a;
}

html[data-theme="light"] .user-avatar {
    background: #e0e7ff;
    color: #3342b8;
}

html[data-theme="light"] .btn-secondary {
    background: #eef2f9;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .btn-ghost {
    color: #475569;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .btn-ghost:hover {
    background: #eef2f9;
    color: #0f172a;
}

html[data-theme="light"] .btn-gold {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.32);
}

html[data-theme="light"] .btn-gold:hover {
    background: rgba(217, 119, 6, 0.20);
    color: #92400e;
}

html[data-theme="light"] .btn-danger {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.28);
}

html[data-theme="light"] .btn-danger:hover {
    background: rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

html[data-theme="light"] .pill-win {
    color: #047857;
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.28);
}

html[data-theme="light"] .alert-success {
    border-color: rgba(5, 150, 105, 0.35);
    background: rgba(5, 150, 105, 0.10);
    color: #065f46;
}

/* Search Inputs, Selects, Home Hero & Multi-Search */
html[data-theme="light"] .nav-search-region,
html[data-theme="light"] .nav-region-select,
html[data-theme="light"] .nav-search-input-wrap,
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-textarea,
html[data-theme="light"] select,
html[data-theme="light"] select optgroup,
html[data-theme="light"] select option,
html[data-theme="light"] input[type="file"].form-control {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
    color-scheme: light;
}

html[data-theme="light"] select,
html[data-theme="light"] .form-select,
html[data-theme="light"] .nav-search-region,
html[data-theme="light"] .nav-region-select,
html[data-theme="light"] select.home-search-region,
html[data-theme="light"] select.home-region-select,
html[data-theme="light"] #multiSearchRegion {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

html[data-theme="light"] select.home-search-region,
html[data-theme="light"] select.home-region-select {
    background-color: transparent;
    border: none;
    border-right: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 6px 0 0 6px;
}

html[data-theme="light"] select.home-search-region:hover,
html[data-theme="light"] select.home-region-select:hover {
    background-color: rgba(15, 23, 42, 0.04);
    border-right-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .nav-region-select:hover {
    background-color: #eef2f9;
}

html[data-theme="light"] .nav-search-input-wrap:focus-within,
html[data-theme="light"] .nav-region-select:focus,
html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .form-textarea:focus {
    background-color: #ffffff;
    border-color: var(--primary);
}

html[data-theme="light"] .nav-search-input {
    color: #0f172a;
}

html[data-theme="light"] .nav-search-kbd {
    background: #e2e8f0;
    color: #475569;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .home-hero {
    background: var(--bg-canvas);
}

html[data-theme="light"] .home-hero-grid {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.14) 1px, transparent 1px);
    opacity: 0.32;
}

html[data-theme="light"] .home-hero-glow {
    background: radial-gradient(
        ellipse at center,
        rgba(67, 83, 214, 0.15) 0%,
        rgba(124, 58, 237, 0.06) 40%,
        rgba(243, 245, 250, 0) 72%
    );
}

html[data-theme="light"] .home-search-box,
html[data-theme="light"] .home-mode-tabs,
html[data-theme="light"] .multi-search-box,
html[data-theme="light"] .ms-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .multi-search-textarea {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .home-quick-pill:hover {
    color: #0f172a;
    background: #e2e8f0;
}

html[data-theme="light"] .smart-search-dropdown,
html[data-theme="light"] .filter-popover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .filter-pill-btn:hover,
html[data-theme="light"] .filter-dpm-btn:hover,
html[data-theme="light"] .dpm-update-btn-secondary:hover {
    color: #0f172a;
}

/* Profile Header, Splash Art, Match Cards & Drawers */
html[data-theme="light"] .dpm-profile-header {
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .dpm-profile-splash {
    opacity: 0.16;
    filter: saturate(1.08) brightness(1.06);
}

html[data-theme="light"] .account-gamename,
html[data-theme="light"] .dpm-day-title,
html[data-theme="light"] .dpm-recent-rank-val {
    color: #0f172a;
}

html[data-theme="light"] .dpm-avatar-lvl,
html[data-theme="light"] .dpm-m-role-pin,
html[data-theme="light"] .dpm-m-duo-role,
html[data-theme="light"] .dpm-vs-badge,
html[data-theme="light"] .dpm-sb-lvl,
html[data-theme="light"] .summoner-lvl {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

html[data-theme="light"] .dpm-sr-rune,
html[data-theme="light"] .dpm-item-box,
html[data-theme="light"] .dpm-sb-sr .rune,
html[data-theme="light"] .dpm-sb-item,
html[data-theme="light"] .dpm-rm-keystone,
html[data-theme="light"] .dpm-rm-ico,
html[data-theme="light"] .dpm-rm-shard,
html[data-theme="light"] .dpm-score-champ,
html[data-theme="light"] .champ-splash-thumb {
    background: #eef2f8;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dpm-queue-tab.active,
html[data-theme="light"] .dpm-role-filter-btn.active,
html[data-theme="light"] .dpm-group-btn.active {
    background: #e0e7ff;
    color: #2e3ab3;
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .dpm-filter-toggle-btn.active,
html[data-theme="light"] .dpm-card-footer-btn:hover,
html[data-theme="light"] .page-btn:hover {
    color: #0f172a;
}

html[data-theme="light"] .dpm-match-card.win {
    background: linear-gradient(90deg, rgba(67, 83, 214, 0.10) 0%, #ffffff 34%);
    border-color: rgba(67, 83, 214, 0.22);
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .dpm-match-card.loss {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.08) 0%, #ffffff 34%);
    border-color: rgba(220, 38, 38, 0.20);
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .dpm-match-card.win:hover {
    border-color: rgba(67, 83, 214, 0.45);
}

html[data-theme="light"] .dpm-match-card.loss:hover {
    border-color: rgba(220, 38, 38, 0.45);
}

html[data-theme="light"] .dpm-match-drawer {
    background: #f8fafc;
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dpm-sb-badge.std {
    background: #e2e8f0;
    color: #475569;
}

html[data-theme="light"] .dpm-sb-rank-pill.tier-iron        { color: #64748b; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-bronze      { color: #9a5a32; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-silver      { color: #475569; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-gold        { color: #b45309; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-platinum    { color: #0d9488; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-emerald     { color: #059669; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-diamond     { color: #2563eb; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-master      { color: #7c3aed; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-grandmaster { color: #dc2626; }
html[data-theme="light"] .dpm-sb-rank-pill.tier-challenger  { color: #a16207; }

html[data-theme="light"] .dpm-det-box,
html[data-theme="light"] .dpm-build-icons {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dpm-minimap-stage {
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .dpm-mm-player-row {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dpm-mm-champ-ico {
    border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .dpm-mm-filter-btn {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.10);
    color: #334155;
}

html[data-theme="light"] .dpm-mm-filter-btn:hover {
    background: #f1f5f9;
    border-color: rgba(67, 83, 214, 0.30);
}

html[data-theme="light"] .dpm-build-final {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .dpm-build-final.is-win {
    background: linear-gradient(180deg, rgba(67, 83, 214, 0.10), #f8fafc);
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .dpm-build-final.is-loss {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.09), #f8fafc);
    border-color: rgba(220, 38, 38, 0.26);
}

html[data-theme="light"] .dpm-det-champ-btn.active {
    border-color: var(--primary);
}

html[data-theme="light"] .dpm-skill-cell {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .dpm-cast-spell-ico,
html[data-theme="light"] .dpm-skill-ico {
    border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .dpm-cast-item .dpm-cast-key-pin,
html[data-theme="light"] .dpm-skill-key-pin {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .dpm-cast-item .dpm-cast-key-pin.skill-key-q,
html[data-theme="light"] .dpm-skill-key-pin.skill-key-q { color: #2563EB; border-color: rgba(37, 99, 235, 0.55); }
html[data-theme="light"] .dpm-cast-item .dpm-cast-key-pin.skill-key-w,
html[data-theme="light"] .dpm-skill-key-pin.skill-key-w { color: #B45309; border-color: rgba(180, 83, 9, 0.55); }
html[data-theme="light"] .dpm-cast-item .dpm-cast-key-pin.skill-key-e,
html[data-theme="light"] .dpm-skill-key-pin.skill-key-e { color: #7C3AED; border-color: rgba(124, 58, 237, 0.55); }
html[data-theme="light"] .dpm-cast-item .dpm-cast-key-pin.skill-key-r,
html[data-theme="light"] .dpm-skill-key-pin.skill-key-r { color: #DC2626; border-color: rgba(220, 38, 38, 0.55); }

html[data-theme="light"] .dpm-mini-bar {
    background: #e2e8f0;
}

/* Champions, Champion Mastery, Analytics, Live Game & Modals */
html[data-theme="light"] .champ-subtabs,
html[data-theme="light"] .da-subtabs {
    background: #eef2f9;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .champ-subtab-btn.active,
html[data-theme="light"] .da-subtab-btn.active {
    background: var(--dpm-blue-500);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(67, 83, 214, 0.25);
}

html[data-theme="light"] .da-subtab-btn {
    color: #475569;
}

html[data-theme="light"] .da-subtab-btn:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .mastery-kpi-card,
html[data-theme="light"] .mastery-toolbar,
html[data-theme="light"] .mastery-table-wrap,
html[data-theme="light"] .mastery-state-card {
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] input[type="text"].mastery-search-input {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] input[type="text"].mastery-search-input:focus {
    background: #ffffff;
    border-color: var(--primary);
}

html[data-theme="light"] .mastery-table thead th {
    background: #f8fafc;
    border-bottom-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .mastery-sort-wrap {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.12);
    color: #475569;
}

html[data-theme="light"] .mastery-sort-select {
    color: #0f172a;
}

html[data-theme="light"] .mastery-sort-select option {
    background: #ffffff;
    color: #0f172a;
}

html[data-theme="light"] .mastery-sortable-th:hover {
    background: rgba(67, 83, 214, 0.05);
    color: #0f172a;
}

html[data-theme="light"] .mastery-sortable-th.is-sorted,
html[data-theme="light"] .mastery-sortable-th.is-sorted .mastery-sort-icon {
    color: #3342b8;
}

html[data-theme="light"] .mastery-table tbody tr {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .mastery-table tbody tr:hover {
    background: rgba(67, 83, 214, 0.04);
}

html[data-theme="light"] .mastery-lvl-badge.tier-high {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.34);
}

html[data-theme="light"] .mastery-lvl-badge.tier-mid {
    background: rgba(67, 83, 214, 0.12);
    color: #3342b8;
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .mastery-lvl-badge.tier-low {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mastery-prog-track {
    background: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .mastery-kpi-card.is-skeleton .sk-line,
html[data-theme="light"] .mastery-sk-wrap .sk-line,
html[data-theme="light"] .mastery-sk-wrap .sk-circle {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.05) 25%, rgba(15, 23, 42, 0.10) 50%, rgba(15, 23, 42, 0.05) 75%);
    background-size: 200% 100%;
}

html[data-theme="light"] .champ-detail-tr,
html[data-theme="light"] .champ-detail-tr:hover,
html[data-theme="light"] .cd-matchup-matches-tr,
html[data-theme="light"] .cd-matchup-matches-tr:hover {
    background: #f8fafc !important;
}

html[data-theme="light"] .cd-summary-card {
    background: linear-gradient(180deg, rgba(67, 83, 214, 0.10) 0%, #ffffff 48%, #f8fafc 100%);
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .cd-matchups-table-wrap,
html[data-theme="light"] .dpm-score-dialog,
html[data-theme="light"] .fh-stat-box,
html[data-theme="light"] .fh-log {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dpm-score-panel {
    background: radial-gradient(ellipse at top right, rgba(67, 83, 214, 0.10), #f8fafc 68%);
}

html[data-theme="light"] .dpm-score-footer {
    background: #f1f5f9;
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dpm-score-close:hover,
html[data-theme="light"] .modal-close:hover {
    color: #0f172a;
}

html[data-theme="light"] .modal-backdrop {
    background: rgba(15, 23, 42, 0.45);
}

html[data-theme="light"] .live-bans-row,
html[data-theme="light"] .live-team-col,
html[data-theme="light"] .live-summary-band,
html[data-theme="light"] .live-matchup-card,
html[data-theme="light"] .live-subtabs,
html[data-theme="light"] .archive-stat-chip,
html[data-theme="light"] .preview-stat-box,
html[data-theme="light"] .da-career-mini-strip {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .live-meta-pill,
html[data-theme="light"] .live-role-pill,
html[data-theme="light"] .live-rm-group,
html[data-theme="light"] .live-rank-pill.is-unranked,
html[data-theme="light"] .live-mu-head {
    background: #eef2f7;
    border-color: rgba(15, 23, 42, 0.10);
    color: #334155;
}

html[data-theme="light"] .live-subtab-btn.active {
    background: rgba(67, 83, 214, 0.14);
    color: #3443b8;
}

html[data-theme="light"] .live-player-row.is-target,
html[data-theme="light"] .live-rm-row.is-target,
html[data-theme="light"] .live-mu-side.is-target {
    background: rgba(67, 83, 214, 0.08);
}

html[data-theme="light"] .live-rank-pill {
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .da-kpi-archetype {
    background: linear-gradient(155deg, rgba(67, 83, 214, 0.10) 0%, #ffffff 70%);
}

html[data-theme="light"] .da-radar-svg-box {
    background: radial-gradient(circle at center, rgba(67, 83, 214, 0.09) 0%, #f8fafc 72%);
}

html[data-theme="light"] .da-insight-card.is-positive {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, #ffffff 100%);
}

html[data-theme="light"] .da-insight-card.is-warning {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, #ffffff 100%);
}

html[data-theme="light"] .da-insight-card.is-info {
    background: linear-gradient(135deg, rgba(67, 83, 214, 0.08) 0%, #ffffff 100%);
}

html[data-theme="light"] .da-record-card {
    background: linear-gradient(160deg, rgba(217, 119, 6, 0.09) 0%, #ffffff 100%);
}

/* Mosaic Calendar & Tooltips / Toasts */
html[data-theme="light"] .mosaic-year-pill {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.10);
    color: #475569;
}

html[data-theme="light"] .mosaic-year-pill:hover {
    color: #0f172a;
    border-color: rgba(67, 83, 214, 0.35);
}

html[data-theme="light"] .mosaic-cell.lv-0,
html[data-theme="light"] .mosaic-dh-cell.lv-0 {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .mosaic-cell.lv-1 { background: rgba(67, 83, 214, 0.24); border-color: rgba(67, 83, 214, 0.22); }
html[data-theme="light"] .mosaic-cell.lv-2 { background: rgba(67, 83, 214, 0.48); border-color: rgba(67, 83, 214, 0.36); }
html[data-theme="light"] .mosaic-cell.lv-3 { background: rgba(67, 83, 214, 0.74); border-color: rgba(67, 83, 214, 0.56); }
html[data-theme="light"] .mosaic-cell.lv-4 { background: #4353d6; border-color: #3342b8; box-shadow: 0 0 6px rgba(67, 83, 214, 0.28); }
html[data-theme="light"] .mosaic-cell.dpm-4 { background: #d97706; border-color: #b45309; box-shadow: 0 0 6px rgba(217, 119, 6, 0.25); }

html[data-theme="light"] .mosaic-cell:hover,
html[data-theme="light"] .mosaic-dh-cell:hover {
    border-color: rgba(15, 23, 42, 0.50);
}

html[data-theme="light"] .mosaic-cell.is-selected {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(67, 83, 214, 0.45);
}

html[data-theme="light"] .mosaic-dh-cell {
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

html[data-theme="light"] .dpm-tooltip,
html[data-theme="light"] .chart-tooltip,
html[data-theme="light"] .mosaic-tooltip,
html[data-theme="light"] .toast {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .dpm-tooltip-icon {
    background: #eef2f8;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dpm-tooltip-sub {
    color: #64748b;
}

html[data-theme="light"] .dpm-tooltip-cost {
    color: #0284c7;
}

/* Wrapped ("Yıllık Özet") Light Theme Overrides */
html[data-theme="light"] .wrapped-topbar,
html[data-theme="light"] .wrapped-bento-card,
html[data-theme="light"] .wrapped-bkpi,
html[data-theme="light"] .wrapped-skeleton-card,
html[data-theme="light"] .wrapped-state-card {
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .wrapped-year-pill,
html[data-theme="light"] .wrapped-mpill {
    background: #f1f5f9;
    color: #475569;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .wrapped-year-pill:hover,
html[data-theme="light"] .wrapped-mpill:hover {
    color: #0f172a;
    border-color: rgba(67, 83, 214, 0.35);
}

html[data-theme="light"] .wrapped-year-pill.active,
html[data-theme="light"] .wrapped-mpill.active {
    background: var(--dpm-blue-500);
    color: #ffffff;
    border-color: var(--dpm-blue-600);
}

html[data-theme="light"] .wrapped-mode-switch {
    background: #eef2f9;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .wrapped-mode-btn.active {
    background: var(--dpm-blue-500);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(67, 83, 214, 0.25);
}

html[data-theme="light"] .wrapped-story-stage {
    background: #f8faff;
    border-color: rgba(67, 83, 214, 0.22);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .wrapped-splash-bg {
    opacity: 0.14;
    filter: blur(2px) saturate(1.05) brightness(1.06);
}

html[data-theme="light"] .wrapped-story-scrim {
    background: radial-gradient(ellipse at top right, rgba(67, 83, 214, 0.10), rgba(248, 250, 255, 0.90) 65%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(243, 245, 250, 0.96) 100%);
}

html[data-theme="light"] .wrapped-progress-seg {
    background: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .wrapped-ctrl-btn,
html[data-theme="light"] .wrapped-nav-arrow {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .wrapped-player-chip,
html[data-theme="light"] .wrapped-stat-tile,
html[data-theme="light"] .wrapped-pool-chip,
html[data-theme="light"] .wrapped-podium-row,
html[data-theme="light"] .wrapped-rec-chip,
html[data-theme="light"] .wrapped-split-box,
html[data-theme="light"] .wrapped-side-banner,
html[data-theme="light"] .wrapped-month-bars,
html[data-theme="light"] .wrapped-queue-chip,
html[data-theme="light"] .wrapped-tm-row,
html[data-theme="light"] .wrapped-persona-showcase,
html[data-theme="light"] .wrapped-champ-tile,
html[data-theme="light"] .wrapped-obj-strip div {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .wrapped-champ-spotlight {
    background: linear-gradient(150deg, rgba(67, 83, 214, 0.12), rgba(255, 255, 255, 0.92));
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .wrapped-hero-number {
    background: linear-gradient(135deg, #0f172a 20%, var(--dpm-blue-500) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="light"] .wrapped-keycap {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.15);
    border-bottom-color: rgba(15, 23, 42, 0.28);
}

html[data-theme="light"] .wrapped-keycap.is-hot {
    background: rgba(67, 83, 214, 0.14);
    border-color: rgba(67, 83, 214, 0.45);
    border-bottom-color: var(--dpm-blue-600);
}

html[data-theme="light"] .wrapped-ping-track,
html[data-theme="light"] .wrapped-side-bar,
html[data-theme="light"] .wrapped-trait-track,
html[data-theme="light"] .wrapped-qbar-track {
    background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .wrapped-month-col.is-empty .wrapped-month-fill {
    background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .wrapped-month-col.is-peak .wrapped-month-val,
html[data-theme="light"] .wrapped-month-col.is-peak .wrapped-month-lbl {
    color: #b45309;
}

html[data-theme="light"] .wrapped-sk-bar,
html[data-theme="light"] .wrapped-sk-box {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.05) 25%, rgba(15, 23, 42, 0.10) 50%, rgba(15, 23, 42, 0.05) 75%);
    background-size: 200% 100%;
}

/* Light Mode Contrast & Surface Polish (Multi-Search, Overview, Modals, Analytics, Champions, Wrapped) */
html[data-theme="light"] .text-lime,
html[data-theme="light"] .text-win,
html[data-theme="light"] .pts-pos,
html[data-theme="light"] .gold-diff-val.gd-pos {
    color: #047857 !important;
}

html[data-theme="light"] .gold-diff-fill.gd-pos {
    background: #10b981;
}

html[data-theme="light"] .text-loss,
html[data-theme="light"] .text-coral,
html[data-theme="light"] .pts-neg,
html[data-theme="light"] .gold-diff-val.gd-neg {
    color: #dc2626 !important;
}

html[data-theme="light"] .text-sky,
html[data-theme="light"] .text-cyan {
    color: #2e3ab3;
}

html[data-theme="light"] .text-gold {
    color: #b45309;
}

html[data-theme="light"] .text-purple {
    color: #6d28d9;
}

/* Multi-Search & Summary Badges */
html[data-theme="light"] .ms-tier-line {
    color: #3342b8 !important;
}

html[data-theme="light"] .ms-dpm-badge,
html[data-theme="light"] .dpm-tier-pill,
html[data-theme="light"] .da-grade-pill {
    color: #2e3ab3 !important;
    background: rgba(67, 83, 214, 0.12) !important;
    border-color: rgba(67, 83, 214, 0.30) !important;
}

html[data-theme="light"] .ms-l5-dot.is-win,
html[data-theme="light"] .last5-w {
    background: #4353d6;
    color: #ffffff;
    border-color: #3342b8;
}

html[data-theme="light"] .ms-l5-dot.is-loss,
html[data-theme="light"] .last5-l {
    background: #dc2626;
    color: #ffffff;
    border-color: #b91c1c;
}

html[data-theme="light"] .ms-champ-chip {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dpm-tier-dpm strong,
html[data-theme="light"] .dpm-ring-num,
html[data-theme="light"] .dpm-cap-num,
html[data-theme="light"] .champ-dpm-val {
    color: #2e3ab3 !important;
}

html[data-theme="light"] .dpm-ring-sub,
html[data-theme="light"] .dpm-cap-sub {
    color: #475569 !important;
}

html[data-theme="light"] .dpm-score-capsule {
    background: #eef2f8;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .dpm-score-capsule:hover {
    background: #e2e8f0;
    border-color: rgba(67, 83, 214, 0.35);
}

html[data-theme="light"] .dpm-cap-ring circle:first-child {
    stroke: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .dpm-m-duo-partner img {
    border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .dpm-b-badge.tone-gold,
html[data-theme="light"] .dpm-badge-mvp,
html[data-theme="light"] .dpm-m-tag.tag-mvp,
html[data-theme="light"] .dpm-sb-badge.mvp,
html[data-theme="light"] .da-mini-pill.pill-gold {
    background: rgba(217, 119, 6, 0.14);
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: none;
}

html[data-theme="light"] .dpm-b-badge.tone-win {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
    border-color: rgba(5, 150, 105, 0.30);
}

html[data-theme="light"] .dpm-b-badge.tone-loss {
    background: rgba(220, 38, 38, 0.11);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.28);
}

html[data-theme="light"] .dpm-b-badge.tone-purple {
    background: rgba(124, 58, 237, 0.11);
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.30);
}

html[data-theme="light"] .dpm-b-badge.tone-cyan {
    background: rgba(37, 99, 235, 0.11);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.28);
}

html[data-theme="light"] .dpm-badge-ace,
html[data-theme="light"] .dpm-m-tag.tag-ace,
html[data-theme="light"] .dpm-sb-badge.ace {
    background: rgba(124, 58, 237, 0.12);
    color: #5b21b6;
    border-color: rgba(124, 58, 237, 0.34);
    box-shadow: none;
}

html[data-theme="light"] .dpm-m-tag.tag-rank-2,
html[data-theme="light"] .dpm-sb-badge.rank2 {
    background: #e2e8f0;
    color: #334155;
    border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .dpm-m-tag.tag-rank-3,
html[data-theme="light"] .dpm-sb-badge.rank3 {
    background: rgba(234, 88, 12, 0.12);
    color: #9a3412;
    border-color: rgba(234, 88, 12, 0.30);
}

html[data-theme="light"] .dpm-m-tag.tag-good {
    background: rgba(67, 83, 214, 0.12);
    color: #2e3ab3;
    border-color: rgba(67, 83, 214, 0.24);
}

html[data-theme="light"] .dpm-m-tag.tag-bad {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.26);
}

html[data-theme="light"] .dpm-m-tag.tag-avg {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}

html[data-theme="light"] .dpm-day-pill-win {
    background: rgba(67, 83, 214, 0.12);
    border-color: rgba(67, 83, 214, 0.28);
    color: #2e3ab3;
}

html[data-theme="light"] .dpm-day-pill-loss {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.28);
    color: #b91c1c;
}

html[data-theme="light"] .dpm-form-sq.is-win {
    background: rgba(67, 83, 214, 0.14);
    color: #2e3ab3;
    border-color: rgba(67, 83, 214, 0.30);
}

html[data-theme="light"] .dpm-ping-ico,
html[data-theme="light"] .dpm-det-ping-ico {
    filter: brightness(0.84) contrast(1.18) saturate(1.15) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.25));
}

html[data-theme="light"] .dpm-mini-radar-svg text {
    fill: #334155 !important;
}

html[data-theme="light"] .dpm-rm-shard {
    background: #1e293b;
    border-color: rgba(15, 23, 42, 0.28);
}

/* Filter Popover & DPM Score Modal */
html[data-theme="light"] .filter-pill-btn {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.10);
    color: #334155;
}

html[data-theme="light"] .filter-pill-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .filter-pill-btn.active {
    background: var(--dpm-blue-500);
    border-color: var(--dpm-blue-600);
    color: #ffffff;
}

html[data-theme="light"] .filter-dpm-group {
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .filter-dpm-group button,
html[data-theme="light"] .filter-dpm-btn {
    background: #f1f5f9;
    border-right-color: rgba(15, 23, 42, 0.10);
    color: #334155;
}

html[data-theme="light"] .filter-dpm-group button:hover,
html[data-theme="light"] .filter-dpm-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .filter-dpm-group button.active,
html[data-theme="light"] .filter-dpm-btn.active {
    background: var(--dpm-blue-500);
    color: #ffffff;
}

html[data-theme="light"] .dpm-filter-toggle-btn:hover,
html[data-theme="light"] .dpm-filter-toggle-btn.active {
    background: #e0e7ff;
    color: #2e3ab3;
    border-color: rgba(67, 83, 214, 0.36);
}

html[data-theme="light"] .dpm-score-hero-kicker {
    color: #3342b8;
}

html[data-theme="light"] .dpm-score-hero-player,
html[data-theme="light"] .dpm-score-title,
html[data-theme="light"] .dpm-score-cat-title,
html[data-theme="light"] .dpm-score-stat {
    color: #0f172a;
}

html[data-theme="light"] .dpm-score-role-pin {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.16);
    color: #334155;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .dpm-score-num,
html[data-theme="light"] .dpm-score-num.tier-elite {
    color: #4353d6;
}
html[data-theme="light"] .dpm-score-num.tier-good {
    color: #0284c7;
}
html[data-theme="light"] .dpm-score-num.tier-mid {
    color: #d97706;
}
html[data-theme="light"] .dpm-score-num.tier-low {
    color: #dc2626;
}

html[data-theme="light"] .dpm-score-cat-grade.grade-s-plus {
    color: #ca8a04;
    text-shadow: none;
}
html[data-theme="light"] .dpm-score-cat-grade.grade-s {
    color: #7c3aed;
    text-shadow: none;
}
html[data-theme="light"] .dpm-score-cat-grade.grade-a {
    color: #0284c7;
    text-shadow: none;
}
html[data-theme="light"] .dpm-score-cat-grade.grade-b {
    color: #4d7c0f;
    text-shadow: none;
}
html[data-theme="light"] .dpm-score-cat-grade.grade-c {
    color: #d97706;
    text-shadow: none;
}
html[data-theme="light"] .dpm-score-cat-grade.grade-d {
    color: #475569;
    text-shadow: none;
}

html[data-theme="light"] .dpm-score-opp-img {
    border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .dpm-score-opp-vs,
html[data-theme="light"] .dpm-score-table-head {
    color: #64748b;
}

html[data-theme="light"] .dpm-score-metric {
    color: #334155;
}

html[data-theme="light"] .dpm-score-pts.pts-pos,
html[data-theme="light"] .pts-pos {
    color: #16a34a;
}

html[data-theme="light"] .dpm-score-pts.pts-neg,
html[data-theme="light"] .pts-neg {
    color: #dc2626;
}

html[data-theme="light"] .dpm-score-pts.pts-zero,
html[data-theme="light"] .pts-zero {
    color: #64748b;
}

html[data-theme="light"] .dpm-score-grade {
    color: #2e3ab3 !important;
    background: rgba(67, 83, 214, 0.12) !important;
    border-color: rgba(67, 83, 214, 0.30) !important;
}

html[data-theme="light"] .dpm-score-tab {
    color: #475569;
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dpm-score-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .dpm-score-tab.active {
    background: rgba(67, 83, 214, 0.16);
    border-color: rgba(67, 83, 214, 0.34);
    color: #2e3ab3;
}

html[data-theme="light"] .dpm-score-footer {
    background: transparent;
    border-top-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .dpm-score-how-toggle {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.10);
    color: #334155;
}

html[data-theme="light"] .dpm-score-how-toggle:hover {
    background: #e2e8f0;
    border-color: rgba(67, 83, 214, 0.30);
    color: #0f172a;
}

html[data-theme="light"] .dpm-how-icon {
    color: #4f46e5;
}

html[data-theme="light"] .dpm-score-how-panel {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.10);
    color: #334155;
}

html[data-theme="light"] .dpm-how-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
}

html[data-theme="light"] .dpm-how-chip.pts-pos strong { color: #16a34a; }
html[data-theme="light"] .dpm-how-chip.pts-neg strong { color: #dc2626; }
html[data-theme="light"] .dpm-how-chip.pts-zero strong { color: #64748b; }
html[data-theme="light"] .dpm-how-chip.is-base strong { color: #2e3ab3; }
html[data-theme="light"] .dpm-how-chip.is-total {
    background: rgba(67, 83, 214, 0.12);
    border-color: rgba(67, 83, 214, 0.30);
    color: #1e293b;
}

html[data-theme="light"] .dpm-how-list {
    color: #475569;
}

html[data-theme="light"] .dpm-how-list strong {
    color: #0f172a;
}

html[data-theme="light"] .dpm-how-note {
    color: #475569;
}

html[data-theme="light"] .dpm-how-note code {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .dpm-how-grades {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dpm-how-grades span {
    background: #eef2f8;
}
html[data-theme="light"] .dpm-how-grades .grade-s-plus { color: #b45309; }
html[data-theme="light"] .dpm-how-grades .grade-s { color: #7e22ce; }
html[data-theme="light"] .dpm-how-grades .grade-a { color: #0e7490; }
html[data-theme="light"] .dpm-how-grades .grade-b { color: #4d7c0f; }
html[data-theme="light"] .dpm-how-grades .grade-c { color: #c2410c; }
html[data-theme="light"] .dpm-how-grades .grade-d { color: #475569; }

/* Deep Analytics Light Mode */
html[data-theme="light"] .da-kpi-card {
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .da-kpi-card.da-kpi-archetype {
    background: linear-gradient(155deg, rgba(67, 83, 214, 0.10) 0%, #ffffff 72%);
}

html[data-theme="light"] .da-kpi-kicker {
    color: #3342b8 !important;
}

html[data-theme="light"] .da-arch-title {
    color: #0f172a;
}

html[data-theme="light"] .da-arch-sub {
    color: #475569;
}

html[data-theme="light"] .da-kpi-val[style] {
    color: #2e3ab3 !important;
}

html[data-theme="light"] .da-mini-pill {
    background: #f1f5f9;
    color: #334155;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .da-mini-pill.pill-win {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.32);
    color: #047857;
}

html[data-theme="light"] .da-mini-pill.pill-loss {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.30);
    color: #b91c1c;
}

html[data-theme="light"] .da-ro-val {
    color: #2e3ab3;
}

html[data-theme="light"] .da-radar-lbl {
    fill: #0f172a;
}

html[data-theme="light"] .da-radar-lbl-score {
    fill: #475569;
}

html[data-theme="light"] .da-radar-node:hover .da-radar-lbl,
html[data-theme="light"] .da-radar-node.is-active .da-radar-lbl {
    fill: #b45309;
}

html[data-theme="light"] .da-axis-tier[style*="#bef264" i],
html[data-theme="light"] .da-axis-score[style*="#bef264" i] {
    color: #047857 !important;
}

html[data-theme="light"] .da-axis-tier[style*="#38bdf8" i],
html[data-theme="light"] .da-axis-score[style*="#38bdf8" i] {
    color: #0369a1 !important;
}

html[data-theme="light"] .da-axis-tier[style*="#a6b0f2" i],
html[data-theme="light"] .da-axis-score[style*="#a6b0f2" i] {
    color: #3342b8 !important;
}

html[data-theme="light"] .da-axis-tier[style*="#ffd47d" i],
html[data-theme="light"] .da-axis-score[style*="#ffd47d" i] {
    color: #b45309 !important;
}

html[data-theme="light"] .da-axis-tier[style*="#f7665e" i],
html[data-theme="light"] .da-axis-score[style*="#f7665e" i] {
    color: #dc2626 !important;
}

html[data-theme="light"] .da-insight-card.is-positive {
    border-left-color: #059669;
}

html[data-theme="light"] .da-insight-card.is-positive .da-insight-icon,
html[data-theme="light"] .da-insight-card.is-positive .da-insight-badge {
    color: #047857;
}

html[data-theme="light"] .da-insight-card.is-positive .da-insight-badge {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.30);
}

html[data-theme="light"] .da-insight-card.is-warning .da-insight-badge {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.28);
    color: #b91c1c;
}

html[data-theme="light"] .da-insight-card.is-info .da-insight-badge {
    background: rgba(67, 83, 214, 0.10);
    border-color: rgba(67, 83, 214, 0.28);
    color: #3342b8;
}

html[data-theme="light"] .da-dpm-chip {
    background: rgba(67, 83, 214, 0.10);
    color: #2e3ab3;
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .da-delta-badge.is-pos {
    color: #047857;
}

html[data-theme="light"] .da-rec-wl.is-win {
    background: rgba(67, 83, 214, 0.12);
    color: #2e3ab3;
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .da-rec-wl.is-loss {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.28);
}

html[data-theme="light"] .da-rec-label {
    color: #92400e;
}

/* Wrapped Additional Light Contrast */
html[data-theme="light"] .wrapped-persona-title {
    color: #2e3ab3 !important;
}

html[data-theme="light"] .wrapped-brand-tag {
    color: #3342b8;
    background: rgba(67, 83, 214, 0.12);
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .wrapped-slide-eyebrow {
    color: #b45309;
}

html[data-theme="light"] .wrapped-rank-pill {
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(217, 119, 6, 0.34);
    color: #92400e;
}

html[data-theme="light"] .wrapped-podium-kda {
    color: #92400e;
}

html[data-theme="light"] .wrapped-champ-spotlight-dmg,
html[data-theme="light"] .wrapped-side-col.is-blue strong {
    color: #3342b8;
}

html[data-theme="light"] .wrapped-side-col.is-red strong {
    color: #dc2626;
}

/* Deep Report Hub & Match Micro-Tags Light Mode Overrides */
html[data-theme="light"] .dpm-micro-tag.tone-indigo {
    background: rgba(67, 83, 214, 0.12);
    color: #3342b8;
    border-color: rgba(67, 83, 214, 0.28);
}

html[data-theme="light"] .dpm-micro-tag.tone-rose {
    background: rgba(225, 29, 72, 0.10);
    color: #be123c;
    border-color: rgba(225, 29, 72, 0.26);
}

html[data-theme="light"] .dpm-micro-tag.tone-emerald,
html[data-theme="light"] .dpm-micro-tag.tone-win {
    background: rgba(5, 150, 105, 0.11);
    color: #047857;
    border-color: rgba(5, 150, 105, 0.28);
}

html[data-theme="light"] .dpm-micro-tag.tone-gold {
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.30);
}

html[data-theme="light"] .dpm-micro-tag.tone-sky {
    background: rgba(2, 132, 199, 0.11);
    color: #0369a1;
    border-color: rgba(2, 132, 199, 0.28);
}

html[data-theme="light"] .dpm-micro-tag.tone-purple {
    background: rgba(124, 58, 237, 0.11);
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.28);
}

html[data-theme="light"] .dpm-micro-tag.tone-slate {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .dr-card,
html[data-theme="light"] .dr-skeleton,
html[data-theme="light"] .dr-error-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .dr-grade-badge {
    background: linear-gradient(135deg, rgba(67, 83, 214, 0.12), rgba(67, 83, 214, 0.04));
    border-color: rgba(67, 83, 214, 0.28);
    color: #0f172a;
}

html[data-theme="light"] .dr-grade-badge.is-elite {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.14), rgba(217, 119, 6, 0.04));
    border-color: rgba(217, 119, 6, 0.34);
}
html[data-theme="light"] .dr-grade-badge.is-elite .dr-grade-letter { color: #b45309; }

html[data-theme="light"] .dr-grade-badge.is-good {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.13), rgba(5, 150, 105, 0.04));
    border-color: rgba(5, 150, 105, 0.32);
}
html[data-theme="light"] .dr-grade-badge.is-good .dr-grade-letter { color: #047857; }

html[data-theme="light"] .dr-grade-badge.is-mid {
    background: linear-gradient(135deg, rgba(67, 83, 214, 0.12), rgba(67, 83, 214, 0.04));
    border-color: rgba(67, 83, 214, 0.30);
}
html[data-theme="light"] .dr-grade-badge.is-mid .dr-grade-letter { color: #3342b8; }

html[data-theme="light"] .dr-grade-badge.is-low {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.11), rgba(220, 38, 38, 0.04));
    border-color: rgba(220, 38, 38, 0.30);
}
html[data-theme="light"] .dr-grade-badge.is-low .dr-grade-letter { color: #b91c1c; }

html[data-theme="light"] .dr-copy-btn {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
}

html[data-theme="light"] .dr-copy-btn:hover {
    background: #eef2ff;
    border-color: rgba(67, 83, 214, 0.34);
    color: #2e3ab3;
}

html[data-theme="light"] .dr-split-title.is-strength { color: #047857; }
html[data-theme="light"] .dr-split-title.is-priority { color: #b45309; }

html[data-theme="light"] .dr-list-item {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .dr-list-item.is-strength {
    border-left-color: #059669;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.07) 0%, #ffffff 100%);
}

html[data-theme="light"] .dr-list-item.is-priority {
    border-left-color: #d97706;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, #ffffff 100%);
}

html[data-theme="light"] .dr-list-item.is-strength .dr-item-metric {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.28);
    color: #047857;
}

html[data-theme="light"] .dr-list-item.is-priority .dr-item-metric {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.30);
    color: #92400e;
}

html[data-theme="light"] .dr-item-impact {
    color: #b45309;
}

html[data-theme="light"] .dr-climb-callout {
    background: linear-gradient(135deg, rgba(67, 83, 214, 0.09) 0%, #f8fafc 100%);
    border-color: rgba(67, 83, 214, 0.24);
}

html[data-theme="light"] .dr-climb-pill {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

html[data-theme="light"] .dr-climb-pill.is-wr {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.28);
    color: #047857;
}

html[data-theme="light"] .dr-tag-pill.tone-win,
html[data-theme="light"] .dr-tag-pill.tone-emerald {
    background: rgba(5, 150, 105, 0.07);
    border-color: rgba(5, 150, 105, 0.26);
}
html[data-theme="light"] .dr-tag-pill.tone-win .dr-tag-proof,
html[data-theme="light"] .dr-tag-pill.tone-emerald .dr-tag-proof {
    background: rgba(5, 150, 105, 0.14);
    color: #047857;
}

html[data-theme="light"] .dr-tag-pill.tone-indigo,
html[data-theme="light"] .dr-tag-pill.tone-sky {
    background: rgba(67, 83, 214, 0.07);
    border-color: rgba(67, 83, 214, 0.25);
}
html[data-theme="light"] .dr-tag-pill.tone-indigo .dr-tag-proof,
html[data-theme="light"] .dr-tag-pill.tone-sky .dr-tag-proof {
    background: rgba(67, 83, 214, 0.14);
    color: #2e3ab3;
}

html[data-theme="light"] .dr-tag-pill.tone-gold {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.28);
}
html[data-theme="light"] .dr-tag-pill.tone-gold .dr-tag-proof {
    background: rgba(217, 119, 6, 0.15);
    color: #92400e;
}

html[data-theme="light"] .dr-tag-pill.tone-rose {
    background: rgba(220, 38, 38, 0.07);
    border-color: rgba(220, 38, 38, 0.26);
}
html[data-theme="light"] .dr-tag-pill.tone-rose .dr-tag-proof {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}

html[data-theme="light"] .dr-tag-pill.tone-purple {
    background: rgba(124, 58, 237, 0.07);
    border-color: rgba(124, 58, 237, 0.26);
}
html[data-theme="light"] .dr-tag-pill.tone-purple .dr-tag-proof {
    background: rgba(124, 58, 237, 0.14);
    color: #6d28d9;
}

html[data-theme="light"] .dr-tag-pill.tone-slate {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.13);
}
html[data-theme="light"] .dr-tag-pill.tone-slate .dr-tag-proof {
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

html[data-theme="light"] .dr-comp-tabs {
    background: #eef2f9;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dr-comp-tab {
    color: #475569;
}

html[data-theme="light"] .dr-comp-tab:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .dr-comp-tab.active {
    background: var(--dpm-blue-500);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(67, 83, 214, 0.24);
}

html[data-theme="light"] .dr-est-badge {
    background: rgba(67, 83, 214, 0.10);
    border-color: rgba(67, 83, 214, 0.26);
    color: #2e3ab3;
}

html[data-theme="light"] .dr-tier-pill {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.12);
    color: #475569;
}

html[data-theme="light"] .dr-tier-pill:hover {
    color: #0f172a;
    border-color: rgba(67, 83, 214, 0.35);
}

html[data-theme="light"] .dr-tier-pill.active {
    background: #e0e7ff;
    border-color: rgba(67, 83, 214, 0.36);
    color: #2e3ab3;
}

html[data-theme="light"] .dr-bench-row,
html[data-theme="light"] .dr-wvl-row,
html[data-theme="light"] .dr-trend-tile,
html[data-theme="light"] .dr-vs-toolbar,
html[data-theme="light"] .dr-vs-row {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .dr-bench-bar-track,
html[data-theme="light"] .dr-wvl-track,
html[data-theme="light"] .dr-vs-bar-pair {
    background: #e2e8f0;
}

html[data-theme="light"] .dr-bench-target-pin {
    background: #b45309;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .dr-bench-delta.is-ahead {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

html[data-theme="light"] .dr-bench-delta.is-behind {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
}

html[data-theme="light"] .dr-bench-tier-tag {
    background: rgba(67, 83, 214, 0.10);
    border-color: rgba(67, 83, 214, 0.25);
    color: #3342b8;
}

html[data-theme="light"] .dr-finding-callout {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.10), #ffffff);
    border-color: rgba(217, 119, 6, 0.28);
    color: #0f172a;
}

html[data-theme="light"] .dr-finding-callout strong {
    color: #92400e;
}

html[data-theme="light"] .dr-wvl-side.is-win { color: #3342b8; }
html[data-theme="light"] .dr-wvl-side.is-loss { color: #dc2626; }
html[data-theme="light"] .dr-wvl-diff.is-pos { color: #047857; }
html[data-theme="light"] .dr-wvl-diff.is-neg { color: #b91c1c; }

html[data-theme="light"] .dr-trend-banner {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dr-trend-banner.is-up {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.10), #ffffff);
    border-color: rgba(5, 150, 105, 0.30);
}

html[data-theme="light"] .dr-trend-banner.is-down {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.09), #ffffff);
    border-color: rgba(220, 38, 38, 0.28);
}

html[data-theme="light"] .dr-trend-banner.is-stable,
html[data-theme="light"] .dr-trend-banner.is-flat {
    background: linear-gradient(135deg, rgba(67, 83, 214, 0.09), #ffffff);
    border-color: rgba(67, 83, 214, 0.26);
}

html[data-theme="light"] .dr-trend-tile.is-up .dr-trend-delta {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

html[data-theme="light"] .dr-trend-tile.is-down .dr-trend-delta {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
}

html[data-theme="light"] .dr-trend-tile.is-flat .dr-trend-delta {
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
}

html[data-theme="light"] input[type="text"].dr-vs-input,
html[data-theme="light"] .dr-vs-input,
html[data-theme="light"] select.dr-vs-select,
html[data-theme="light"] .dr-vs-select {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

html[data-theme="light"] .dr-vs-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #334155;
}

html[data-theme="light"] .dr-vs-chip:hover {
    border-color: rgba(67, 83, 214, 0.38);
    color: #0f172a;
}

html[data-theme="light"] .dr-vs-chip.active {
    background: #e0e7ff;
    border-color: rgba(67, 83, 214, 0.38);
    color: #2e3ab3;
}

html[data-theme="light"] .dr-vs-header {
    background: linear-gradient(90deg, rgba(67, 83, 214, 0.10) 0%, #ffffff 50%, rgba(220, 38, 38, 0.09) 100%);
    border-color: rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .dr-vs-center-badge {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

html[data-theme="light"] .dr-vs-val.is-p1.is-winner { color: #3342b8; }
html[data-theme="light"] .dr-vs-val.is-p2.is-winner { color: #b91c1c; }

html[data-theme="light"] .dr-vs-verdict {
    background: rgba(67, 83, 214, 0.10);
    border-color: rgba(67, 83, 214, 0.26);
    color: #0f172a;
}

html[data-theme="light"] .dr-vs-error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.24);
    color: #b91c1c;
}

html[data-theme="light"] .dr-vs-loading,
html[data-theme="light"] .dr-vs-empty {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.14);
    color: #475569;
}

html[data-theme="light"] .dr-sk-line,
html[data-theme="light"] .dr-sk-box {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.05) 25%, rgba(15, 23, 42, 0.10) 50%, rgba(15, 23, 42, 0.05) 75%);
    background-size: 200% 100%;
}
