/* ==========================================================================
   HEROES V2 (CYBER / SCI-FI THEME) STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --hv2-cyan: #00d8f6;
    --hv2-cyan-bright: #40e1fe;
    --hv2-cyan-btn: #2ed3f8;
    --hv2-cyan-glow: rgba(0, 216, 246, 0.45);
    --hv2-cyan-border: rgba(0, 180, 216, 0.4);
    --hv2-bg-main: rgba(8, 16, 28, 0.9);
    --hv2-bg-panel: rgba(10, 20, 35, 0.85);
    --hv2-bg-card: rgba(12, 24, 42, 0.9);
    --hv2-bg-input: rgba(15, 27, 45, 0.95);
    --hv2-border-card: rgba(0, 180, 216, 0.45);
    --hv2-text-primary: #ffffff;
    --hv2-text-secondary: #94a3b8;
    --hv2-text-muted: #64748b;
    --hv2-green-win: #00e676;
    --hv2-red-loss: #ff5252;
    --hv2-font-orbitron: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
    --hv2-font-rajdhani: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    --hv2-font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Page Base */
.heroes-v2-container {
    background: transparent !important;
    min-height: calc(100vh - 80px);
    color: var(--hv2-text-primary);
    font-family: var(--hv2-font-body);
    padding-top: 1.5rem;
    padding-bottom: 5rem;
}

/* ==========================================================================
   HEADER SECTION & SEARCH
   ========================================================================== */
.hv2-main-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hv2-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 600px;
}

.hv2-page-title {
    font-family: var(--hv2-font-orbitron);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--hv2-cyan);
    text-shadow: 0 0 16px var(--hv2-cyan-glow);
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.hv2-page-subtitle {
    font-size: 0.95rem;
    color: var(--hv2-text-secondary);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Search Bar (Top Right) */
.hv2-search-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
}

.hv2-search-input-wrap {
    position: relative;
    flex: 1;
}

.hv2-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hv2-text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.hv2-search-input {
    width: 100%;
    background: var(--hv2-bg-input) !important;
    border: 1px solid var(--hv2-cyan-border) !important;
    border-radius: 4px;
    color: #ffffff !important;
    padding: 0.5rem 2rem 0.5rem 2.2rem;
    font-size: 0.88rem;
    outline: none !important;
    transition: all 0.2s ease;
}

.hv2-search-input:focus {
    border-color: var(--hv2-cyan) !important;
    box-shadow: 0 0 12px var(--hv2-cyan-glow) !important;
}

.hv2-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--hv2-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: none;
}

.hv2-search-clear:hover {
    color: #ffffff;
}

.hv2-search-btn {
    background: var(--hv2-cyan-btn) !important;
    color: #08101a !important;
    font-family: var(--hv2-font-orbitron);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    border: none !important;
    border-radius: 4px;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.hv2-search-btn:hover {
    background: var(--hv2-cyan-bright) !important;
    box-shadow: 0 0 16px var(--hv2-cyan-glow);
    transform: translateY(-1px);
}

/* ==========================================================================
   TABS BAR: META / CONTENTION (MATCHING TEAMS V2 DOG-EAR TABS)
   ========================================================================== */
.hv2-subtabs-bar {
    display: flex !important;
    align-items: stretch !important;
    height: 38px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hv2-subtabs-bar .tv2-subtab-btn {
    flex: 1 1 50% !important;
    width: 50% !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    position: relative;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0 16px !important;
    background: #26333f !important;
    color: #ffffff !important;
    white-space: nowrap;
    text-transform: uppercase !important;
}

.hv2-subtabs-bar .tv2-subtab-btn:hover:not(.active) {
    background: #314252 !important;
    color: #ffffff !important;
}

/* Left tab: META with Top-Left Dog-Ear Fold */
.hv2-subtabs-bar .tv2-subtab-first {
    clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 11px);
    -webkit-clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 11px);
}

.hv2-subtabs-bar .tv2-subtab-first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-right: 1.5px solid #000000;
    border-bottom: 1.5px solid #000000;
    pointer-events: none;
    z-index: 5;
}

/* Right tab: CONTENTION with Bottom-Right Dog-Ear Fold */
.hv2-subtabs-bar .tv2-subtab-last {
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0% 100%);
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0% 100%);
}

.hv2-subtabs-bar .tv2-subtab-last::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid #000000;
    border-left: 1.5px solid #000000;
    pointer-events: none;
    z-index: 5;
}

/* Active State: Solid Vibrant Cyan (#40e1fe) with Black Text (#000000) */
.hv2-subtabs-bar .tv2-subtab-btn.active {
    background: #40e1fe !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
}

.hv2-subtabs-bar .tv2-subtab-btn.active .pv2-subtab-label,
.hv2-subtabs-bar .tv2-subtab-btn.active span {
    color: #000000 !important;
}

/* ==========================================================================
   SECTION TITLE WRAP & ORNAMENTS (MATCHING TEAMS V2)
   ========================================================================== */
.td-v2-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hv2-clear-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 216, 246, 0.55) !important;
    border-radius: 6px;
    background: rgba(0, 216, 246, 0.08) !important;
    padding: 7px 15px;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: #00d8f6 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hv2-clear-filter-btn.is-visible {
    display: inline-flex;
}

.hv2-clear-filter-btn:hover {
    background: #2ed3f8 !important;
    border-color: #2ed3f8 !important;
    color: #0b131b !important;
    box-shadow: 0 0 12px rgba(0, 216, 246, 0.4);
}

.hv2-clear-filter-btn i {
    font-size: 14px;
}

body.light .hv2-clear-filter-btn,
.light .hv2-clear-filter-btn {
    border-color: rgba(14, 165, 199, 0.5) !important;
    background: rgba(46, 211, 248, 0.1) !important;
    color: #0a93b8 !important;
}

body.light .hv2-clear-filter-btn:hover,
.light .hv2-clear-filter-btn:hover {
    background: #2ed3f8 !important;
    border-color: #2ed3f8 !important;
    color: #0b131b !important;
    box-shadow: 0 0 12px rgba(46, 211, 248, 0.35);
}

.td-v2-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.td-v2-title-ornament {
    height: 14px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

/* ==========================================================================
   CARD FILTERS ROW (MATCHING TEAMS V2 FILTER BOX)
   ========================================================================== */
.tv2-filters-card {
    background: #0d1722;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.tv2-filter-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.tv2-date-sep {
    color: #64748b;
    font-weight: 700;
    padding: 0 4px;
}

.tv2-filter-input,
.tv2-filter-select {
    background: #142232 !important;
    border: 1px solid rgba(48, 75, 102, 0.5) !important;
    color: #ffffff !important;
    height: 38px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.tv2-filter-input:focus,
.tv2-filter-select:focus {
    border-color: #2fe0fc !important;
    box-shadow: 0 0 8px rgba(47, 224, 252, 0.25) !important;
    outline: none !important;
}

.tv2-filter-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(150deg);
    cursor: pointer;
}

.pv2-select-dropdown option {
    background: #0d1722;
    color: #ffffff;
}

/* MATCH DATE Calendar Blue Arrow Ornaments */
.heroes-v2-section .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-next span,
.heroes-v2-section .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-prev span,
.heroes-v2-section .calendar-filter-block .ui-icon-circle-triangle-e,
.heroes-v2-section .calendar-filter-block .ui-icon-circle-triangle-w,
.heroes-v2-container .filters-section .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-next span,
.heroes-v2-container .filters-section .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-prev span,
.heroes-v2-container .filters-section .calendar-filter-block .ui-icon-circle-triangle-e,
.heroes-v2-container .filters-section .calendar-filter-block .ui-icon-circle-triangle-w,
.heroes-v2-section .filters-section .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-next span,
.heroes-v2-section .filters-section .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-prev span,
.heroes-v2-section .filters-section .calendar-filter-block .ui-icon-circle-triangle-e,
.heroes-v2-section .filters-section .calendar-filter-block .ui-icon-circle-triangle-w,
.heroes-v2-container .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-next span,
.heroes-v2-container .calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-prev span,
.heroes-v2-container .calendar-filter-block .ui-icon-circle-triangle-e,
.heroes-v2-container .calendar-filter-block .ui-icon-circle-triangle-w,
.calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-next span,
.calendar-filter-block .ui-datepicker .ui-datepicker-header .ui-datepicker-prev span,
.calendar-filter-block .ui-icon-circle-triangle-e,
.calendar-filter-block .ui-icon-circle-triangle-w {
    background-image: url("../images/orns/arrow-blue.png") !important;
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================================
   TABLE STYLES (MATCHING TEAMS V2 STATS TABLE)
   ========================================================================== */
.td-v2-teams-table-card {
    background: #0d1722;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.td-v2-teams-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.td-v2-teams-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.td-v2-teams-table-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.td-v2-teams-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(47, 224, 252, 0.35);
    border-radius: 3px;
}

.td-v2-teams-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

.td-v2-teams-table thead tr {
    background: #2D3032 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
}

.td-v2-teams-table th {
    background: #2D3032 !important;
    padding: 12px 14px;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.2px;
    border: none !important;
    position: relative;
    user-select: none;
}

.td-v2-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.td-v2-th-title {
    cursor: pointer;
    transition: color 0.15s ease;
}

.td-v2-th-title:hover,
.tv2-sortable-th:hover .td-v2-th-title,
.tv2-sortable-th.active-sort .td-v2-th-title {
    color: #2fe0fc;
}

.td-v2-sort-arrow {
    font-size: 11px;
    color: #64748b;
    vertical-align: middle;
}

.tv2-sortable-th.active-sort .td-v2-sort-arrow {
    color: #2fe0fc;
}

.td-v2-teams-table tbody tr {
    background: #0d1723;
    border-bottom: 1px solid rgba(48, 75, 102, 0.25) !important;
    height: 48px;
    transition: background 0.15s ease;
}

.td-v2-teams-table tbody tr:hover {
    background: rgba(0, 210, 247, 0.05) !important;
}

.td-v2-teams-table td {
    display: table-cell !important;
    padding: 8px 12px;
    vertical-align: middle;
    font-size: 13.5px;
    color: #cbd5e1;
    text-align: center;
    white-space: nowrap;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.td-v2-td-team {
    text-align: left !important;
    padding-left: 20px !important;
    min-width: 200px;
}

.td-v2-team-stat-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    vertical-align: middle;
}

.hv2-hero-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(47, 224, 252, 0.5);
    background: #08101a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hv2-hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-v2-team-stat-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.15s ease;
}

.td-v2-team-stat-name:hover,
.hover-cyan:hover .td-v2-team-stat-name {
    color: #00d2f7 !important;
}

.td-v2-table-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #00d2f7 0%, rgba(0, 210, 247, 0.2) 100%);
    width: 100%;
}

/* Table Pagination Footer (Matching Teams V2 & Hero Detail V2) */
.td-v2-teams-table-card .pv2-pagination-footer,
.hv2-table-card .pv2-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    background: #0d1722;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 14px;
}

.pv2-pagination-summary {
    display: flex;
    flex-direction: column;
}

.pv2-showing-text {
    color: #64748b;
    font-size: 12px;
}

.pv2-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv2-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #142232;
    border: 1px solid rgba(47, 224, 252, 0.25);
    border-radius: 4px;
    color: #8b9cb3;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pv2-page-btn:hover:not(:disabled):not(.disabled) {
    background: rgba(47, 224, 252, 0.15);
    border-color: #00d8f6;
    color: #ffffff;
}

.pv2-page-btn.active {
    background: #00d8f6 !important;
    border-color: #00d8f6 !important;
    color: #08101a !important;
    font-weight: 800;
}

.pv2-page-btn:disabled,
.pv2-page-btn.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed;
    background-color: transparent !important;
}

.pv2-page-dots {
    color: #8b9cb3;
    padding: 0 4px;
    font-weight: 700;
}

/* Arrow icons (Previous & Next): Blue/Cyan crystal */
.pv2-page-btn .ui-icon-circle-triangle-w,
.pv2-page-btn .ui-icon-circle-triangle-e {
    background: url("../images/orns/arrow-blue.png") !important;
    background-image: url("../images/orns/arrow-blue.png") !important;
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transition: opacity 0.2s ease, filter 0.2s ease;
    width: 14px;
    height: 14px;
    display: inline-block;
}

.pv2-page-btn .ui-prev.ui-icon-circle-triangle-e {
    transform: rotate(180deg);
}

.hv2-hero-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.15s ease;
}

/* Values Styling */
.hv2-val-picks {
    color: #ffffff;
}

.hv2-val-wins {
    color: var(--hv2-green-win, #00e676) !important;
    font-weight: 600;
}

.hv2-val-losses,
.hv2-val-bans,
.hv2-val-ban-rate {
    color: var(--hv2-red-loss, #ff5252) !important;
    font-weight: 600;
}

.hv2-val-pick-rate {
    color: #00d2f7 !important;
    font-weight: 600;
}

.hv2-val-pb {
    color: var(--hv2-cyan, #00d8f6) !important;
    font-weight: 600;
}

.hv2-val-pb-rate {
    color: #a855f7 !important;
    font-weight: 600;
}

/* Win Rate Badge Pill */
.hv2-wr-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--hv2-cyan);
    border-radius: 12px;
    background: rgba(0, 216, 246, 0.08);
    color: var(--hv2-cyan);
    font-family: var(--hv2-font-rajdhani);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    min-width: 62px;
    text-align: center;
}

/* ==========================================================================
   SIDEBAR FILTERS
   ========================================================================== */
.hv2-filter-sidebar {
    background: var(--hv2-bg-card);
    border: 1px solid var(--hv2-border-card);
    border-radius: 4px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hv2-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
}

.hv2-sidebar-title {
    font-family: var(--hv2-font-orbitron);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--hv2-cyan);
    text-shadow: 0 0 10px var(--hv2-cyan-glow);
    margin: 0;
}

.hv2-sidebar-clear-btn {
    background: transparent;
    border: none;
    color: var(--hv2-text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s ease;
}

.hv2-sidebar-clear-btn:hover {
    color: #ffffff;
}

.hv2-sidebar-item {
    border-bottom: 1px solid rgba(0, 180, 216, 0.15);
    padding-bottom: 1rem;
}

.hv2-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hv2-sidebar-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.75rem;
}

.hv2-sidebar-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--hv2-font-orbitron);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.hv2-sidebar-item-title-wrap i {
    font-size: 0.75rem;
    color: var(--hv2-cyan);
    transition: transform 0.2s ease;
}

.hv2-sidebar-item.collapsed .hv2-sidebar-item-title-wrap i {
    transform: rotate(-90deg);
}

.hv2-sidebar-item.collapsed .hv2-sidebar-item-content {
    display: none;
}

.hv2-sidebar-search {
    width: 100%;
    background: var(--hv2-bg-input);
    border: 1px solid var(--hv2-cyan-border);
    border-radius: 3px;
    color: #ffffff;
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    outline: none;
}

.hv2-sidebar-search:focus {
    border-color: var(--hv2-cyan);
}

.hv2-sidebar-checkbox-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-right: 4px;
}

.hv2-sidebar-checkbox-list::-webkit-scrollbar {
    width: 4px;
}
.hv2-sidebar-checkbox-list::-webkit-scrollbar-thumb {
    background: var(--hv2-cyan);
    border-radius: 2px;
}

.hv2-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--hv2-text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
    margin: 0;
}

.hv2-checkbox-label:hover {
    color: #ffffff;
}

.hv2-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: rgba(14, 27, 47, 0.9);
    border: 1px solid var(--hv2-cyan-border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    outline: none;
    flex-shrink: 0;
}

.hv2-checkbox:checked {
    background: var(--hv2-cyan);
    border-color: var(--hv2-cyan);
}

.hv2-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    color: #08101a;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   MINI CALENDAR PICKER
   ========================================================================== */
.hv2-cal-wrap {
    background: rgba(10, 19, 32, 0.8);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 4px;
    padding: 0.75rem;
}

.hv2-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.hv2-cal-btn {
    background: transparent;
    border: none;
    color: var(--hv2-cyan);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.hv2-cal-btn:hover {
    color: #ffffff;
}

.hv2-cal-month-title {
    font-family: var(--hv2-font-orbitron);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.hv2-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--hv2-font-rajdhani);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--hv2-text-muted);
    margin-bottom: 0.35rem;
}

.hv2-cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}

.hv2-cal-day {
    padding: 4px 0;
    font-size: 0.78rem;
    color: var(--hv2-text-secondary);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.hv2-cal-day:hover {
    background: rgba(0, 216, 246, 0.2);
    color: #ffffff;
}

.hv2-cal-day.other-month {
    color: #3b4c60;
}

.hv2-cal-day.selected {
    background: var(--hv2-cyan) !important;
    color: #08101a !important;
    font-weight: 700;
    box-shadow: 0 0 8px var(--hv2-cyan-glow);
}

/* ==========================================================================
   EMPTY STATE & SPINNER
   ========================================================================== */
.hv2-empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--hv2-text-muted);
}

.hv2-empty-icon {
    font-size: 2.5rem;
    color: rgba(0, 180, 216, 0.4);
    margin-bottom: 1rem;
}

.hv2-empty-title {
    font-family: var(--hv2-font-orbitron);
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.hv2-empty-desc {
    font-size: 0.88rem;
    max-width: 360px;
    margin: 0 auto;
}

.hv2-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.78);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    border-radius: 6px;
    min-height: 220px;
    transition: opacity 0.2s ease;
}

/* Dots Loading matching Event Detail V2 */
.dt-dots-loading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.dt-dots-loading span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #00d2f7;
    display: inline-block;
    animation: dtDotBounce 1.4s ease-in-out infinite both;
}

.dt-dots-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.dt-dots-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

.dt-dots-loading span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dtDotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 991px) {
    .hv2-main-header {
        flex-direction: column;
        align-items: stretch;
    }

    .hv2-search-form {
        max-width: 100%;
    }

    .hv2-card-filters-row {
        grid-template-columns: 1fr;
    }

    .hv2-page-title {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   HERO DETAIL V2 STYLES
   ========================================================================== */

/* Layout & Container */
.hv2-detail-main-wrapper {
    background: transparent !important;
    min-height: calc(100vh - 80px);
    color: var(--hv2-text-primary);
    font-family: var(--hv2-font-body);
    padding-bottom: 5rem;
}

.hv2-detail-content-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Sidebar Nav Details */
.td-v2-nav-header-title {
    padding: 0.5rem 0.75rem 0.25rem;
}

.hv2-nav-icon {
    font-size: 0.95rem;
    color: var(--hv2-cyan);
    opacity: 0.85;
}

.td-v2-nav-box.active .hv2-nav-icon {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--hv2-cyan-glow));
}

/* 1. Hero Banner Card */
.hv2-hero-banner-card {
    position: relative;
    z-index: 10;
    min-height: 310px;
    border-radius: 12px;
    border: 1px solid var(--hv2-border-card);
    background: #08101a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 216, 246, 0.12);
}

.hv2-hero-banner-card:hover,
.hv2-hero-banner-card:focus-within {
    z-index: 50;
}

.hv2-hero-banner-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Banner Background Art: Dark Mode (default) vs Light Mode */
.hv2-hero-banner-art.hv2-hero-banner-art-dark {
    display: block;
}
.hv2-hero-banner-art.hv2-hero-banner-art-light {
    display: none;
}

body.light .hv2-hero-banner-art.hv2-hero-banner-art-dark,
.light .hv2-hero-banner-art.hv2-hero-banner-art-dark {
    display: none !important;
}
body.light .hv2-hero-banner-art.hv2-hero-banner-art-light,
.light .hv2-hero-banner-art.hv2-hero-banner-art-light {
    display: block !important;
}

.hv2-hero-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #070d18 0%, rgba(7, 13, 24, 0.95) 40%, rgba(7, 13, 24, 0.55) 75%, rgba(7, 13, 24, 0.15) 100%),
                linear-gradient(0deg, #070d18 0%, rgba(7, 13, 24, 0.4) 30%, transparent 100%);
    border-radius: 12px;
    z-index: 2;
}

.hv2-hero-banner-content {
    position: relative;
    z-index: 3;
    padding: 2.25rem;
    max-width: 620px;
}

/* Badges: Tier & Role */
.hv2-hero-badges-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.hv2-badge-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.hv2-tier-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}

.hv2-tier-value {
    font-family: var(--hv2-font-orbitron);
    font-size: 0.9rem;
    font-weight: 800;
    color: #fbbf24;
}

.hv2-badge-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(12, 24, 42, 0.85);
    border: 1px solid rgba(0, 180, 216, 0.45);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
}

.hv2-role-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.hv2-role-icon-fa {
    font-size: 0.85rem;
    color: var(--hv2-cyan);
}

.hv2-role-name {
    font-family: var(--hv2-font-rajdhani);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
}

/* Hero Title Row & Portrait */
.hv2-hero-title-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.hv2-hero-portrait-wrap {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 216, 246, 0.65);
    box-shadow: 0 0 16px rgba(0, 216, 246, 0.35);
    background: #09121f;
    flex-shrink: 0;
}

.hv2-hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Heading */
.hv2-hero-name-heading {
    font-family: var(--hv2-font-orbitron);
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(0, 216, 246, 0.4);
}

/* Skills with Glowing Green Rings */
.hv2-skills-list {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.hv2-skill-item {
    position: relative;
    cursor: pointer;
}

.hv2-skill-glow-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #09121f;
    border: 2px solid #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.55), inset 0 0 6px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.hv2-skill-glow-ring.is-empty {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    background: rgba(9, 18, 31, 0.6);
    box-shadow: none;
    cursor: default;
}

.hv2-skill-item:hover .hv2-skill-glow-ring:not(.is-empty) {
    transform: scale(1.1);
    border-color: #4ade80;
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.85), inset 0 0 8px rgba(74, 222, 128, 0.5);
}

.hv2-skill-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
}

.hv2-skill-abbr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* font-family: var(--hv2-font-rajdhani, 'Rajdhani', sans-serif); */
    font-family:  "Orbitron";
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #4ade80;
    text-transform: uppercase;
    user-select: none;
}

.hv2-skill-popover {
    position: absolute;
    top: calc(100% + 14px);
    bottom: auto;
    left: 0;
    right: auto;
    transform: none;
    background: rgba(10, 20, 35, 0.98);
    border: 1px solid var(--hv2-cyan-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 280px;
    max-width: min(320px, calc(100vw - 32px));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 216, 246, 0.25);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

/* Arrow indicator pointing up towards the skill badge (centered on badge 44px) */
.hv2-skill-popover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: var(--arrow-left, 15px);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent var(--hv2-cyan-border) transparent;
}

.hv2-skill-popover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: calc(var(--arrow-left, 15px) + 1px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(10, 20, 35, 0.98) transparent;
}

.hv2-skill-item:hover,
.hv2-skill-item.is-active,
.hv2-skill-item:focus-visible {
    z-index: 999;
}

.hv2-skill-item:hover .hv2-skill-popover,
.hv2-skill-item.is-active .hv2-skill-popover,
.hv2-skill-item:focus-visible .hv2-skill-popover {
    opacity: 1;
    visibility: visible;
}

.hv2-skill-item.is-active .hv2-skill-glow-ring:not(.is-empty) {
    transform: scale(1.1);
    border-color: #4ade80;
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.85), inset 0 0 8px rgba(74, 222, 128, 0.5);
}

.hv2-skill-popover-title {
    font-family: var(--hv2-font-rajdhani);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hv2-cyan);
    margin-bottom: 0.25rem;
}

.hv2-skill-popover-desc {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
    word-break: break-word;
}

/* Hero Lore */
.hv2-hero-lore-wrap {
    max-width: 580px;
}

.hv2-hero-lore-text {
    font-size: 0.92rem;
    color: var(--hv2-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Nav Arrows */
.hv2-hero-nav-arrows {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.hv2-hero-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(10, 20, 35, 0.75);
    border: 1px solid var(--hv2-cyan-border);
    color: var(--hv2-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.hv2-hero-nav-btn:hover {
    background: var(--hv2-cyan);
    color: #070d18;
    box-shadow: 0 0 14px var(--hv2-cyan-glow);
}

/* 2. Detail Section Headers & Filters */
.hv2-detail-section {
    position: relative;
}

.hv2-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hv2-section-title {
    font-family: var(--hv2-font-rajdhani);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.hv2-section-subtitle {
    font-size: 0.85rem;
    color: var(--hv2-text-muted);
    margin-top: 0.2rem;
}

.hv2-section-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Filter Dropdowns */
.hv2-filter-dropdown-wrap {
    position: relative;
}

.hv2-filter-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #0d1722;
    border: 1px solid rgba(48, 75, 102, 0.4);
    border-radius: 6px;
    padding: 0.48rem 0.95rem;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hv2-filter-dropdown-btn:hover,
.hv2-filter-dropdown-wrap:hover .hv2-filter-dropdown-btn,
.hv2-filter-dropdown-wrap.is-open .hv2-filter-dropdown-btn,
.hv2-filter-dropdown-btn[aria-expanded="true"] {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.hv2-filter-btn-chevron {
    font-size: 11px;
    color: #2fe0fc;
    transition: transform 0.25s ease, color 0.25s ease;
    display: inline-block;
}

.hv2-filter-dropdown-wrap:hover .hv2-filter-btn-chevron,
.hv2-filter-dropdown-btn:hover .hv2-filter-btn-chevron {
    color: #5dedff;
}

.hv2-filter-dropdown-wrap.is-open .hv2-filter-btn-chevron,
.hv2-filter-dropdown-btn[aria-expanded="true"] .hv2-filter-btn-chevron {
    transform: rotate(180deg);
    color: #5dedff;
}

body.light .hv2-filter-btn-chevron,
.light .hv2-filter-btn-chevron {
    color: #0284c7;
}

.hv2-filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    background: rgba(10, 20, 35, 0.98);
    border: 1px solid rgba(0, 180, 216, 0.45);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    min-width: 210px;
    padding: 0.4rem 0;
    display: none;
    backdrop-filter: blur(8px);
}

.hv2-filter-dropdown-menu.show {
    display: block;
}

.hv2-dropdown-item {
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hv2-dropdown-item:hover {
    background: rgba(0, 216, 246, 0.15);
    color: #ffffff;
}

.hv2-dropdown-item.active {
    color: var(--hv2-cyan);
    font-weight: 600;
}

.hv2-dropdown-check {
    font-size: 0.8rem;
    color: var(--hv2-cyan);
}

.hv2-dropdown-scrollable {
    max-height: 260px;
    overflow-y: auto;
}

/* Custom Date Range Subpanel */
.hv2-custom-range-inputs {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hv2-custom-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hv2-custom-label {
    font-size: 0.78rem;
    color: var(--hv2-text-muted);
}

.hv2-custom-date {
    background: rgba(15, 27, 45, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    color: #ffffff;
    font-size: 0.8rem;
}

.hv2-custom-apply-btn {
    background: var(--hv2-cyan-btn);
    color: #08101a;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    margin-top: 0.25rem;
    width: 100%;
}

/* 3. Overall Statistics 4 Cards */
.hv2-stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.hv2-stat-card {
    background: rgba(12, 24, 42, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.35);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hv2-stat-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hv2-stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hv2-stat-icon-wrap.cyan {
    background: rgba(0, 216, 246, 0.15);
    color: var(--hv2-cyan);
    border: 1px solid rgba(0, 216, 246, 0.3);
    box-shadow: 0 0 10px rgba(0, 216, 246, 0.2);
}

.hv2-stat-icon-wrap.red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.hv2-stat-icon-wrap.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.hv2-stat-icon-wrap.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.hv2-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hv2-stat-label {
    font-size: 0.82rem;
    color: var(--hv2-text-secondary);
    font-weight: 500;
}

.hv2-stat-value {
    font-family: var(--hv2-font-rajdhani);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.hv2-stat-progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.hv2-stat-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.hv2-stat-progress-fill.cyan {
    background: var(--hv2-cyan);
    box-shadow: 0 0 8px rgba(0, 216, 246, 0.6);
}

.hv2-stat-progress-fill.red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.hv2-stat-progress-fill.green {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hv2-stat-progress-fill.purple {
    background: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* 4. Pick & Ban Trends Chart */
.hv2-trends-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hv2-chart-legend {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hv2-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.hv2-legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.hv2-legend-box.cyan {
    background: #00f0ff;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}

.hv2-legend-box.red {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
}

.hv2-legend-line-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.hv2-chart-card {
    background: rgba(12, 24, 42, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.35);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hv2-chart-svg-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 1000 / 360;
    min-height: 240px;
}

.hv2-trends-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hv2-chart-bar {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.hv2-chart-bar:hover {
    opacity: 0.8;
}

.hv2-chart-dot {
    cursor: pointer;
    transition: all 0.15s ease;
}

.hv2-chart-dot:hover {
    r: 7;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 1));
}

.hv2-chart-hover-tooltip {
    position: absolute;
    z-index: 50;
    background: rgba(10, 20, 35, 0.98);
    border: 1px solid var(--hv2-cyan-border);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: #ffffff;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

/* 5. Recent Matches Section (Box Cards matching user mockup) */
.hv2-recent-matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    width: 100%;
}

@media (max-width: 1199px) {
    .hv2-recent-matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hv2-recent-matches-grid {
        grid-template-columns: 1fr;
    }
}

.hv2-match-box-card {
    background: #0b1420;
    border: 1px solid rgba(47, 224, 252, 0.45);
    border-radius: 8px;
    padding: 1.1rem 1.25rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.9rem;
    min-height: 175px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hv2-match-box-card:hover {
    border-color: #00d8f6;
    box-shadow: 0 0 16px rgba(0, 216, 246, 0.3);
    transform: translateY(-2px);
}

/* Card Header: Tournament & Stage */
.hv2-mbc-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 0;
}

.hv2-mbc-tour-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.hv2-mbc-tour-stage {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2fe0fc;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

/* Card Body */
.hv2-mbc-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    gap: 0.35rem;
}

/* Row 1: Team Logos & Score (Aligned together horizontally) */
.hv2-mbc-match-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.hv2-mbc-team-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    width: 100%;
}

.hv2-mbc-team-col.hv2-team-left,
.hv2-mbc-team-col.hv2-team-right {
    justify-self: center;
}

.hv2-mbc-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hv2-mbc-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hv2-mbc-logo-link:hover {
    transform: scale(1.08);
}

.hv2-mbc-team-logo-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0.35rem;
}

.hv2-mbc-team-logo {
    max-width: 44px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hv2-mbc-name-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.hv2-mbc-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    flex-shrink: 0;
}

.hv2-mbc-score {
    font-family: 'Rajdhani', 'Orbitron', monospace, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    margin: 0;
}

/* Row 2: Team Names & MVP (Legacy / compatibility) */
.hv2-mbc-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}

.hv2-mbc-name-col {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    padding-top: 2px;
}

.hv2-mbc-name-col.hv2-team-left {
    grid-column: 1;
}

.hv2-mbc-name-col.hv2-team-right {
    grid-column: 3;
}

.hv2-mbc-team-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
    display: block;
    cursor: pointer;
    margin: 0 auto;
}

.hv2-mbc-mvp-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
}

.hv2-mbc-mvp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    transition: transform 0.15s ease;
}

.hv2-mbc-mvp-link:hover {
    transform: translateY(-1px);
}

.hv2-mbc-mvp-avatar-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #142232;
    border: 1px solid rgba(47, 224, 252, 0.4);
    flex-shrink: 0;
}

.hv2-mbc-mvp-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hv2-mbc-mvp-avatar.is-mockup {
    object-fit: cover;
    object-position: top center;
}

.hv2-mbc-mvp-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.hv2-mbc-mvp-tag {
    font-size: 0.62rem;
    font-weight: 700;
    color: #8b9cb3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hv2-mbc-mvp-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* Hover cyan helper */
.hover-cyan:hover,
a.hover-cyan:hover {
    color: #00d8f6 !important;
}

/* 6. Tournament Statistics Table Details */
.cyan-text {
    color: var(--hv2-cyan) !important;
}

.red-text {
    color: #ef4444 !important;
}

.green-text {
    color: #22c55e !important;
}

.purple-text {
    color: #a855f7 !important;
}

.hv2-tour-table-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.hv2-tour-table-link:hover {
    color: var(--hv2-cyan);
}

.hv2-tour-table-name {
    font-size: 0.92rem;
}

/* Responsive adjustments for Detail Page */
@media (min-width: 992px) {
    #td-v2-main-col {
        position: relative;
        z-index: 30;
    }
}

@media (max-width: 1200px) {
    .hv2-stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hv2-hero-banner-content {
        padding: 1.5rem;
        max-width: 100%;
    }

    .hv2-hero-banner-art {
        width: 100%;
        opacity: 0.25;
    }

    .hv2-hero-title-row {
        gap: 0.85rem;
        margin-bottom: 1rem;
    }

    .hv2-hero-portrait-wrap {
        width: 54px;
        height: 54px;
        border-radius: 10px;
    }

    .hv2-hero-name-heading {
        font-size: 2.2rem;
    }

    .hv2-match-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hv2-match-tournament-col,
    .hv2-match-mvp-col {
        min-width: 100%;
        justify-content: flex-start;
    }

    .hv2-match-teams-col {
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .hv2-skill-popover {
        width: min(280px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }

    .hv2-stat-cards-grid {
        grid-template-columns: 1fr;
    }

    .hv2-trends-header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   HEROES V2 - COMPREHENSIVE LIGHT MODE SUPPORT (META, CONTENTION & DETAIL)
   ========================================================================== */

/* 1. Page Base & Header */
body.light .heroes-v2-container,
.light .heroes-v2-container {
    color: #0f172a !important;
}

body.light .heroes-v2-container .ev2-page-title,
.light .heroes-v2-container .ev2-page-title {
    color: #000000 !important;
    text-shadow: none !important;
}

body.light .heroes-v2-container .ev2-search .form-themed,
.light .heroes-v2-container .ev2-search .form-themed {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.light .heroes-v2-container .ev2-search .form-themed::placeholder,
.light .heroes-v2-container .ev2-search .form-themed::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

body.light .heroes-v2-container .ev2-search .form-themed:focus,
.light .heroes-v2-container .ev2-search .form-themed:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25) !important;
}

body.light .heroes-v2-container .clear-text-input,
.light .heroes-v2-container .clear-text-input {
    color: #64748b !important;
}

body.light .heroes-v2-container .clear-text-input:hover,
.light .heroes-v2-container .clear-text-input:hover {
    color: #0f172a !important;
}

body.light .heroes-v2-container .btn-themed-2,
.light .heroes-v2-container .btn-themed-2 {
    background: #2ed3f8 !important;
    color: #0b131b !important;
    font-weight: 700 !important;
}

body.light .heroes-v2-container .btn-themed-2:hover,
.light .heroes-v2-container .btn-themed-2:hover {
    background: #5ce0ff !important;
    box-shadow: 0 0 12px rgba(46, 211, 248, 0.4) !important;
}

body.light .ev2-mobile-filter-btn,
.light .ev2-mobile-filter-btn {
    background: #2ed3f8 !important;
    color: #0b131b !important;
}

/* 2. Left Sidebar Filter (Tournament Filter Block) */
body.light #hero-filter-block.tournament-filter-block .tf-wrapper,
.light #hero-filter-block.tournament-filter-block .tf-wrapper {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.light #hero-filter-block .tf-header span,
.light #hero-filter-block .tf-header span {
    color: #0f172a !important;
}

body.light #hero-filter-block .tf-btn-clear,
.light #hero-filter-block .tf-btn-clear {
    color: var(--color-red-theme, #e93b3b) !important;
}

body.light #hero-filter-block .tf-item-header,
.light #hero-filter-block .tf-item-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light #hero-filter-block .tf-item i,
body.light #hero-filter-block .tf-item .tf-item-title,
.light #hero-filter-block .tf-item i,
.light #hero-filter-block .tf-item .tf-item-title {
    color: #1e293b !important;
}

body.light #hero-filter-block .tf-item-btn-clear,
.light #hero-filter-block .tf-item-btn-clear {
    color: #64748b !important;
}

body.light #hero-filter-block .tf-item-btn-clear:hover,
.light #hero-filter-block .tf-item-btn-clear:hover {
    color: #0284c7 !important;
}

body.light #hero-filter-block .filter-search,
.light #hero-filter-block .filter-search {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light #hero-filter-block .filter-search:focus,
.light #hero-filter-block .filter-search:focus {
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
    border-color: #0284c7 !important;
}

body.light #hero-filter-block .form-check label,
.light #hero-filter-block .form-check label {
    color: #334155 !important;
}

body.light #hero-filter-block .form-check-input,
.light #hero-filter-block .form-check-input {
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
}

body.light #hero-filter-block .form-check-input:checked,
.light #hero-filter-block .form-check-input:checked {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
}

body.light .side-filter-wrapper .btn-filter-apply,
.light .side-filter-wrapper .btn-filter-apply {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

/* 3. Subtabs Bar (META / CONTENTION Dog-Ear Subtabs) */
body.light .hv2-subtabs-bar .tv2-subtab-btn,
body.light .hv2-subtabs-bar .pv2-subtab-btn,
.light .hv2-subtabs-bar .tv2-subtab-btn,
.light .hv2-subtabs-bar .pv2-subtab-btn {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

body.light .hv2-subtabs-bar .tv2-subtab-btn:hover:not(.active),
body.light .hv2-subtabs-bar .pv2-subtab-btn:hover:not(.active),
.light .hv2-subtabs-bar .tv2-subtab-btn:hover:not(.active),
.light .hv2-subtabs-bar .pv2-subtab-btn:hover:not(.active) {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .hv2-subtabs-bar .tv2-subtab-btn.active,
body.light .hv2-subtabs-bar .pv2-subtab-btn.active,
.light .hv2-subtabs-bar .tv2-subtab-btn.active,
.light .hv2-subtabs-bar .pv2-subtab-btn.active {
    background: #40e1fe !important;
    color: #000000 !important;
    box-shadow: none !important;
}

body.light .hv2-subtabs-bar .tv2-subtab-btn.active .pv2-subtab-label,
body.light .hv2-subtabs-bar .pv2-subtab-btn.active .pv2-subtab-label,
body.light .hv2-subtabs-bar .tv2-subtab-btn.active span,
body.light .hv2-subtabs-bar .pv2-subtab-btn.active span,
.light .hv2-subtabs-bar .tv2-subtab-btn.active .pv2-subtab-label,
.light .hv2-subtabs-bar .pv2-subtab-btn.active .pv2-subtab-label,
.light .hv2-subtabs-bar .tv2-subtab-btn.active span,
.light .hv2-subtabs-bar .pv2-subtab-btn.active span {
    color: #000000 !important;
}

body.light .hv2-subtabs-bar .tv2-subtab-first::before,
.light .hv2-subtabs-bar .tv2-subtab-first::before {
    border-right: 1.5px solid rgba(0, 0, 0, 0.25) !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.25) !important;
}

body.light .hv2-subtabs-bar .tv2-subtab-last::before,
.light .hv2-subtabs-bar .tv2-subtab-last::before {
    border-top: 1.5px solid rgba(0, 0, 0, 0.25) !important;
    border-left: 1.5px solid rgba(0, 0, 0, 0.25) !important;
}

/* 4. Section Title */
body.light .heroes-v2-container .td-v2-section-title,
.light .heroes-v2-container .td-v2-section-title {
    color: #0f172a !important;
}

/* 5. Filter Card (Date, Team, Player, Pick/Ban Phase Dropdowns) */
body.light .tv2-filters-card,
.light .tv2-filters-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.light .tv2-filter-label,
.light .tv2-filter-label {
    color: #64748b !important;
}

body.light .tv2-date-sep,
.light .tv2-date-sep {
    color: #64748b !important;
}

body.light .tv2-filter-input,
body.light .tv2-filter-select,
.light .tv2-filter-input,
.light .tv2-filter-select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .tv2-filter-input:focus,
body.light .tv2-filter-select:focus,
.light .tv2-filter-input:focus,
.light .tv2-filter-select:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

body.light .pv2-date-wrap .pv2-daterange-picker,
body.light .pv2-date-wrap .pv2-input-dropdown,
body.light .pv2-select-wrap .pv2-select-dropdown,
.light .pv2-date-wrap .pv2-daterange-picker,
.light .pv2-date-wrap .pv2-input-dropdown,
.light .pv2-select-wrap .pv2-select-dropdown {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.light .pv2-date-wrap .pv2-daterange-picker::placeholder,
body.light .pv2-date-wrap .pv2-input-dropdown::placeholder,
.light .pv2-date-wrap .pv2-daterange-picker::placeholder,
.light .pv2-date-wrap .pv2-input-dropdown::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

body.light .pv2-date-wrap:hover .pv2-daterange-picker,
body.light .pv2-date-wrap:hover .pv2-input-dropdown,
body.light .pv2-select-wrap:hover .pv2-select-dropdown,
.light .pv2-date-wrap:hover .pv2-daterange-picker,
.light .pv2-date-wrap:hover .pv2-input-dropdown,
.light .pv2-select-wrap:hover .pv2-select-dropdown {
    border-color: #0284c7 !important;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.2) !important;
}

body.light .pv2-date-wrap:focus-within .pv2-daterange-picker,
body.light .pv2-select-wrap.is-open .pv2-select-dropdown,
body.light .pv2-select-dropdown:focus,
.light .pv2-date-wrap:focus-within .pv2-daterange-picker,
.light .pv2-select-wrap.is-open .pv2-select-dropdown,
.light .pv2-select-dropdown:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25) !important;
}

body.light .pv2-select-dropdown option,
.light .pv2-select-dropdown option {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.light .pv2-date-icon,
body.light .pv2-select-icon,
.light .pv2-date-icon,
.light .pv2-select-icon {
    color: #64748b !important;
}

body.light .pv2-date-wrap:hover .pv2-date-icon,
body.light .pv2-select-wrap:hover .pv2-select-icon,
body.light .pv2-select-wrap.is-open .pv2-select-icon,
.light .pv2-date-wrap:hover .pv2-date-icon,
.light .pv2-select-wrap:hover .pv2-select-icon,
.light .pv2-select-wrap.is-open .pv2-select-icon {
    color: #0284c7 !important;
}

/* 6. Tables: Meta Table & Contention Table */
body.light .td-v2-teams-table-card,
.light .td-v2-teams-table-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

body.light .td-v2-teams-table-wrap::-webkit-scrollbar-track,
.light .td-v2-teams-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.light .td-v2-teams-table-wrap::-webkit-scrollbar-thumb,
.light .td-v2-teams-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.35);
}

body.light .td-v2-teams-table thead tr,
body.light .td-v2-teams-table th,
.light .td-v2-teams-table thead tr,
.light .td-v2-teams-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

body.light .td-v2-th-title,
.light .td-v2-th-title {
    color: #0f172a !important;
}

body.light .td-v2-th-title:hover,
body.light .tv2-sortable-th:hover .td-v2-th-title,
body.light .tv2-sortable-th.active-sort .td-v2-th-title,
.light .td-v2-th-title:hover,
.light .tv2-sortable-th:hover .td-v2-th-title,
.light .tv2-sortable-th.active-sort .td-v2-th-title {
    color: #0284c7 !important;
}

body.light .td-v2-sort-arrow,
.light .td-v2-sort-arrow {
    color: #64748b !important;
}

body.light .tv2-sortable-th.active-sort .td-v2-sort-arrow,
.light .tv2-sortable-th.active-sort .td-v2-sort-arrow {
    color: #0284c7 !important;
}

body.light .td-v2-teams-table tbody tr,
.light .td-v2-teams-table tbody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .td-v2-teams-table tbody tr:hover,
.light .td-v2-teams-table tbody tr:hover {
    background: #f8fafc !important;
}

body.light .td-v2-teams-table td,
.light .td-v2-teams-table td {
    color: #334155 !important;
}

body.light .td-v2-team-stat-name,
.light .td-v2-team-stat-name {
    color: #0f172a !important;
}

body.light .td-v2-team-stat-name:hover,
body.light .hover-cyan:hover .td-v2-team-stat-name,
.light .td-v2-team-stat-name:hover,
.light .hover-cyan:hover .td-v2-team-stat-name {
    color: #0284c7 !important;
}

body.light .hv2-hero-avatar-wrap,
.light .hv2-hero-avatar-wrap {
    background: #f1f5f9 !important;
    border: 1.5px solid rgba(2, 132, 199, 0.4) !important;
}

body.light .hv2-hero-name,
.light .hv2-hero-name {
    color: #0f172a !important;
}

/* Table Metric Values in Light Mode */
body.light .hv2-val-picks,
.light .hv2-val-picks {
    color: #0f172a !important;
}

body.light .hv2-val-wins,
.light .hv2-val-wins {
    color: #16a34a !important;
}

body.light .hv2-val-losses,
body.light .hv2-val-bans,
body.light .hv2-val-ban-rate,
.light .hv2-val-losses,
.light .hv2-val-bans,
.light .hv2-val-ban-rate {
    color: #dc2626 !important;
}

body.light .hv2-val-pick-rate,
.light .hv2-val-pick-rate {
    color: #0284c7 !important;
}

body.light .hv2-val-pb,
.light .hv2-val-pb {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.light .hv2-val-pb-rate,
.light .hv2-val-pb-rate {
    color: #7c3aed !important;
}

body.light .hv2-wr-pill,
.light .hv2-wr-pill {
    background: rgba(2, 132, 199, 0.08) !important;
    border: 1px solid #0284c7 !important;
    color: #0284c7 !important;
}

body.light .td-v2-table-accent-bar,
.light .td-v2-table-accent-bar {
    background: linear-gradient(90deg, #0284c7 0%, rgba(2, 132, 199, 0.2) 100%) !important;
}

/* 7. Table Pagination */
body.light .td-v2-teams-table-card .pv2-pagination-footer,
body.light .hv2-table-card .pv2-pagination-footer,
.light .td-v2-teams-table-card .pv2-pagination-footer,
.light .hv2-table-card .pv2-pagination-footer {
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

body.light .td-v2-teams-table-card .pv2-showing-text,
.light .td-v2-teams-table-card .pv2-showing-text {
    color: #64748b !important;
}

body.light .td-v2-teams-table-card .pv2-page-btn,
.light .td-v2-teams-table-card .pv2-page-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

body.light .td-v2-teams-table-card .pv2-page-btn:hover:not(:disabled):not(.disabled),
.light .td-v2-teams-table-card .pv2-page-btn:hover:not(:disabled):not(.disabled) {
    background-color: rgba(2, 132, 199, 0.12) !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

body.light .td-v2-teams-table-card .pv2-page-btn.active,
.light .td-v2-teams-table-card .pv2-page-btn.active {
    background: #2ed3f8 !important;
    border-color: #2ed3f8 !important;
    color: #08101a !important;
    box-shadow: 0 0 10px rgba(46, 211, 248, 0.35) !important;
}

body.light .td-v2-teams-table-card .pv2-page-btn:disabled,
body.light .td-v2-teams-table-card .pv2-page-btn.disabled,
.light .td-v2-teams-table-card .pv2-page-btn:disabled,
.light .td-v2-teams-table-card .pv2-page-btn.disabled {
    opacity: 0.35 !important;
    background-color: transparent !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

body.light .td-v2-teams-table-card .pv2-page-dots,
.light .td-v2-teams-table-card .pv2-page-dots {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* 8. Empty State */
body.light .hv2-empty-state,
.light .hv2-empty-state {
    color: #64748b !important;
}

body.light .hv2-empty-icon,
.light .hv2-empty-icon {
    color: rgba(2, 132, 199, 0.4) !important;
}

body.light .hv2-empty-title,
.light .hv2-empty-title {
    color: #0f172a !important;
}

body.light .hv2-empty-desc,
.light .hv2-empty-desc {
    color: #64748b !important;
}

/* 9. Daterangepicker Modal Overlay in Light Mode */
body.light .daterangepicker,
.light .daterangepicker {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

body.light .daterangepicker:before {
    border-bottom-color: #e2e8f0 !important;
}

body.light .daterangepicker:after {
    border-bottom-color: #ffffff !important;
}

body.light .daterangepicker .calendar-table,
.light .daterangepicker .calendar-table {
    background-color: #ffffff !important;
}

body.light .daterangepicker th,
body.light .daterangepicker td,
.light .daterangepicker th,
.light .daterangepicker td {
    color: #334155 !important;
}

body.light .daterangepicker td.available:hover,
body.light .daterangepicker th.available:hover,
.light .daterangepicker td.available:hover,
.light .daterangepicker th.available:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light .daterangepicker td.off,
.light .daterangepicker td.off {
    color: #cbd5e1 !important;
}

body.light .daterangepicker td.in-range,
.light .daterangepicker td.in-range {
    background-color: rgba(2, 132, 199, 0.15) !important;
    color: #0284c7 !important;
}

body.light .daterangepicker td.active,
body.light .daterangepicker td.active:hover,
.light .daterangepicker td.active,
.light .daterangepicker td.active:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

body.light .daterangepicker select.monthselect,
body.light .daterangepicker select.yearselect,
.light .daterangepicker select.monthselect,
.light .daterangepicker select.yearselect {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .daterangepicker .drp-buttons,
.light .daterangepicker .drp-buttons {
    border-top: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
}

body.light .daterangepicker .drp-selected,
.light .daterangepicker .drp-selected {
    color: #64748b !important;
}

/* 10. Hero Detail V2 Light Mode Overrides */
body.light .hv2-detail-main-wrapper,
.light .hv2-detail-main-wrapper {
    color: #0f172a !important;
}

body.light .hv2-hero-banner-card,
.light .hv2-hero-banner-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

body.light .hv2-hero-banner-gradient,
.light .hv2-hero-banner-gradient {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.6) 75%, rgba(255, 255, 255, 0.2) 100%),
                linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 30%, transparent 100%) !important;
}

body.light .hv2-hero-name-heading,
.light .hv2-hero-name-heading {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.light .hv2-hero-portrait-wrap,
.light .hv2-hero-portrait-wrap {
    background: #f1f5f9 !important;
    border: 2px solid #0284c7 !important;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.25) !important;
}

body.light .hv2-badge-role-pill,
.light .hv2-badge-role-pill {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

body.light .hv2-role-name,
.light .hv2-role-name {
    color: #0f172a !important;
}

body.light .hv2-hero-lore-text,
.light .hv2-hero-lore-text {
    color: #475569 !important;
}

body.light .hv2-hero-nav-btn,
.light .hv2-hero-nav-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0284c7 !important;
}

body.light .hv2-hero-nav-btn:hover,
.light .hv2-hero-nav-btn:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

body.light .hv2-section-title,
.light .hv2-section-title {
    color: #0f172a !important;
}

body.light .hv2-section-subtitle,
.light .hv2-section-subtitle {
    color: #64748b !important;
}

body.light .hv2-filter-dropdown-btn,
.light .hv2-filter-dropdown-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .hv2-filter-dropdown-menu,
.light .hv2-filter-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

body.light .hv2-dropdown-item,
.light .hv2-dropdown-item {
    color: #334155 !important;
}

body.light .hv2-dropdown-item:hover,
.light .hv2-dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light .hv2-stat-card,
.light .hv2-stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light .hv2-stat-value,
.light .hv2-stat-value {
    color: #0f172a !important;
}

body.light .hv2-stat-label,
.light .hv2-stat-label {
    color: #64748b !important;
}

body.light .hv2-stat-progress-bar-wrap,
.light .hv2-stat-progress-bar-wrap {
    background: #e2e8f0 !important;
}

body.light .hv2-chart-card,
.light .hv2-chart-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light .hv2-legend-item,
.light .hv2-legend-item {
    color: #475569 !important;
}

body.light .hv2-chart-hover-tooltip,
.light .hv2-chart-hover-tooltip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

body.light .hv2-match-box-card,
.light .hv2-match-box-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light .hv2-match-box-card:hover,
.light .hv2-match-box-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.2) !important;
}

body.light .hv2-mbc-tour-name,
.light .hv2-mbc-tour-name {
    color: #0f172a !important;
}

body.light .hv2-mbc-tour-stage,
.light .hv2-mbc-tour-stage {
    color: #0284c7 !important;
}

body.light .hv2-mbc-score,
.light .hv2-mbc-score {
    color: #0f172a !important;
}

body.light .hv2-mbc-team-name,
.light .hv2-mbc-team-name {
    color: #0f172a !important;
}

body.light .hv2-mbc-mvp-avatar-wrap,
.light .hv2-mbc-mvp-avatar-wrap {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

body.light .hv2-mbc-mvp-tag,
.light .hv2-mbc-mvp-tag {
    color: #64748b !important;
}

body.light .hv2-mbc-mvp-name,
.light .hv2-mbc-mvp-name {
    color: #0f172a !important;
}

body.light .hv2-tour-table-link,
.light .hv2-tour-table-link,
body.light .tv2-tourn-link,
.light .tv2-tourn-link {
    color: #0f172a !important;
}

body.light .hv2-tour-table-link:hover,
.light .hv2-tour-table-link:hover,
body.light .tv2-tourn-link:hover,
.light .tv2-tourn-link:hover {
    color: #0284c7 !important;
}

/* Skills, Lore & Popovers in Light Mode */
body.light .hv2-badge-tier-pill,
.light .hv2-badge-tier-pill {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

body.light .hv2-tier-label,
.light .hv2-tier-label {
    color: #475569 !important;
}

body.light .hv2-skill-glow-ring,
.light .hv2-skill-glow-ring {
    background: #f8fafc !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.35) !important;
}

body.light .hv2-skill-abbr,
.light .hv2-skill-abbr {
    color: #16a34a !important;
}

body.light .hv2-skill-popover,
.light .hv2-skill-popover {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

body.light .hv2-skill-popover-title,
.light .hv2-skill-popover-title {
    color: #0284c7 !important;
}

body.light .hv2-skill-popover-desc,
.light .hv2-skill-popover-desc {
    color: #475569 !important;
}

/* Custom Date Inputs & Apply Button */
body.light .hv2-custom-range-inputs,
.light .hv2-custom-range-inputs {
    border-top: 1px solid #e2e8f0 !important;
}

body.light .hv2-custom-label,
.light .hv2-custom-label {
    color: #64748b !important;
}

body.light .hv2-custom-date,
.light .hv2-custom-date {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light .hv2-custom-apply-btn,
.light .hv2-custom-apply-btn {
    background: #0284c7 !important;
    color: #ffffff !important;
}

body.light .hv2-custom-apply-btn:hover,
.light .hv2-custom-apply-btn:hover {
    background: #0369a1 !important;
}

/* Overall Stats Progress Fill Bars in Light Mode */
body.light .hv2-stat-progress-bar-wrap,
.light .hv2-stat-progress-bar-wrap {
    background: #e2e8f0 !important;
}

body.light .hv2-stat-progress-fill.cyan,
.light .hv2-stat-progress-fill.cyan {
    background: #0284c7 !important;
    box-shadow: none !important;
}

body.light .hv2-stat-progress-fill.red,
.light .hv2-stat-progress-fill.red {
    background: #dc2626 !important;
    box-shadow: none !important;
}

body.light .hv2-stat-progress-fill.green,
.light .hv2-stat-progress-fill.green {
    background: #16a34a !important;
    box-shadow: none !important;
}

body.light .hv2-stat-progress-fill.purple,
.light .hv2-stat-progress-fill.purple {
    background: #9333ea !important;
    box-shadow: none !important;
}

body.light .hv2-stat-icon-wrap.cyan,
.light .hv2-stat-icon-wrap.cyan {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    color: #0284c7 !important;
    box-shadow: none !important;
}

body.light .hv2-stat-icon-wrap.red,
.light .hv2-stat-icon-wrap.red {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    color: #dc2626 !important;
    box-shadow: none !important;
}

body.light .hv2-stat-icon-wrap.green,
.light .hv2-stat-icon-wrap.green {
    background: rgba(22, 163, 74, 0.1) !important;
    border-color: rgba(22, 163, 74, 0.3) !important;
    color: #16a34a !important;
    box-shadow: none !important;
}

body.light .hv2-stat-icon-wrap.purple,
.light .hv2-stat-icon-wrap.purple {
    background: rgba(147, 51, 234, 0.1) !important;
    border-color: rgba(147, 51, 234, 0.3) !important;
    color: #9333ea !important;
    box-shadow: none !important;
}

/* Trends SVG Chart Elements in Light Mode */
body.light .hv2-grid-lines line,
.light .hv2-grid-lines line {
    stroke: rgba(0, 0, 0, 0.08) !important;
}

body.light .hv2-grid-lines text,
.light .hv2-grid-lines text {
    fill: #64748b !important;
}

body.light .hv2-bars-group text,
.light .hv2-bars-group text {
    fill: #64748b !important;
}

body.light .hv2-chart-dot,
.light .hv2-chart-dot {
    stroke: #ffffff !important;
}

/* Tournament Table & Sort Carets in Light Mode */
body.light .tv2-th-sortable:hover .td-v2-th-title,
.light .tv2-th-sortable:hover .td-v2-th-title,
body.light .tv2-th-sortable:hover .tv2-th-caret,
.light .tv2-th-sortable:hover .tv2-th-caret {
    color: #0284c7 !important;
}

body.light .cyan-text,
.light .cyan-text {
    color: #0284c7 !important;
}

body.light .red-text,
.light .red-text {
    color: #dc2626 !important;
}

body.light .green-text,
.light .green-text {
    color: #16a34a !important;
}

body.light .purple-text,
.light .purple-text {
    color: #9333ea !important;
}

/* Section Title & Ornament in Light Mode */
body.light .hv2-detail-main-wrapper .td-v2-section-title,
.light .hv2-detail-main-wrapper .td-v2-section-title {
    color: #0f172a !important;
}

/* 11. Loading Overlay in Light Mode */
body.light .hv2-loading-overlay,
.light .hv2-loading-overlay {
    background: rgba(255, 255, 255, 0.85) !important;
}

body.light .dt-dots-loading span,
.light .dt-dots-loading span {
    background-color: #0284c7 !important;
}

.heroes-v2-container .cfb-my.force-100vw {
    width: 100%;
    left: auto;
    margin-left: 0;
}

.heroes-v2-container .row > [class*="col-"],
.heroes-v2-container .hv2-tab-pane,
.heroes-v2-container .td-v2-teams-table-card {
    min-width: 0;
}

@media (max-width: 991px) {
    #hv2-meta-table thead th:first-child,
    #hv2-contention-table thead th:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
    }
    #hv2-meta-table tbody td:first-child,
    #hv2-contention-table tbody td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #0d1723;
    }
    #hv2-meta-table tbody tr:hover td:first-child,
    #hv2-contention-table tbody tr:hover td:first-child {
        background: #0c202e;
    }
    #hv2-meta-table th:first-child,
    #hv2-meta-table td:first-child,
    #hv2-contention-table th:first-child,
    #hv2-contention-table td:first-child {
        box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.45);
    }

    body.light #hv2-meta-table tbody td:first-child,
    body.light #hv2-contention-table tbody td:first-child,
    .light #hv2-meta-table tbody td:first-child,
    .light #hv2-contention-table tbody td:first-child {
        background: #ffffff;
    }
    body.light #hv2-meta-table tbody tr:hover td:first-child,
    body.light #hv2-contention-table tbody tr:hover td:first-child,
    .light #hv2-meta-table tbody tr:hover td:first-child,
    .light #hv2-contention-table tbody tr:hover td:first-child {
        background: #f1f5f9;
    }
}

@media (max-width: 1199.98px) {
    #hv2-contention-table thead th.d-none {
        display: table-cell !important;
    }
}

@media (max-width: 991px) {
    #hv2-meta-table,
    #hv2-contention-table {
        min-width: 0 !important;
    }
    #hv2-meta-table thead th:first-child,
    #hv2-contention-table thead th:first-child,
    #hv2-meta-table td.td-v2-td-team,
    #hv2-contention-table td.td-v2-td-team {
        min-width: 0 !important;
        padding-left: 10px !important;
    }
    #hv2-meta-table td.td-v2-td-team .td-v2-team-stat-name,
    #hv2-contention-table td.td-v2-td-team .td-v2-team-stat-name {
        display: inline-block;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
}

