/* ============================================
   WAR SECTION MODERN STYLING
   Modern Slider + Toggle Buttons
   ============================================ */

/* Modern Slider for War Roster Scroll */
.slacker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    /* Modern Thin Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #FFD700 rgba(255, 255, 255, 0.1);
}

.slacker-list::-webkit-scrollbar {
    width: 6px;
}

.slacker-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.slacker-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #D4A200);
    border-radius: 10px;
}

.slacker-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFE066, #FFD700);
    box-shadow: 0 0 8px rgba(241, 212, 18, 0.5);
}

/* Weekly/Monthly Toggle Buttons */
.time-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 4px;
}

.toggle-btn {
    padding: 8px 16px;
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.toggle-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #FFD700, #D4A200);
    color: #000;
    box-shadow: 0 2px 8px rgba(241, 212, 18, 0.3);
}

/* Health Meter Modern Style */
.health-meter-container {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
}

.health-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#health-status {
    color: #FFD700;
    font-size: 1rem;
}

#health-record {
    color: rgba(255, 255, 255, 0.5);
}

.health-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4444, #FFD700, #4ADE80);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.health-note {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.perf-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.perf-card-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.perf-card-value {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.5rem;
    color: #FFD700;
}

.perf-card-insight {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Member Performance List */
.member-perf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 rgba(255, 255, 255, 0.1);
}

.member-perf-list::-webkit-scrollbar {
    width: 6px;
}

.member-perf-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.member-perf-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #D4A200);
    border-radius: 10px;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.member-row:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.2);
}

.member-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.75rem;
    color: #FFD700;
}

.member-info {
    flex: 1;
}

.member-name {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
}

.member-tag {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.member-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1rem;
    color: #FFD700;
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.member-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.member-badge.mvp {
    background: linear-gradient(135deg, #FFD700, #D4A200);
    color: #000;
}

.member-badge.consistent {
    background: rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}

.member-badge.slacker {
    background: rgba(255, 68, 68, 0.2);
    color: #FF4444;
}

.member-badge.risky {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

/* ============================================
   INSIGHT SYSTEM ("THE WHY") STYLES
   ============================================ */

/* 1. Status Chip (Replaces Health Meter) */
.status-chip-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-chip {
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

.status-chip.strong {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    color: #000;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.status-chip.decent {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.status-chip.improvement {
    background: rgba(255, 68, 68, 0.2);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: rgba(255, 68, 68, 0.3);
    }

    50% {
        border-color: rgba(255, 68, 68, 0.8);
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
    }

    100% {
        border-color: rgba(255, 68, 68, 0.3);
    }
}

/* 2. Clan Insight Drawer (Slide Down) */
.insight-drawer {
    background: rgba(20, 15, 25, 0.95);
    border-left: 3px solid #FFD700;
    margin-top: 12px;
    padding: 16px;
    border-radius: 0 8px 8px 8px;
    display: none;
    /* Hidden by default */
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insight-title {
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-item {
    font-size: 0.85rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3. Member Insight Drawer (Expandable Row) */
.member-wrapper {
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease;
    border-radius: 10px;
    margin-bottom: 8px;
}

.member-wrapper:hover {
    background: rgba(255, 255, 255, 0.02);
}

.member-insight-drawer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 10px 10px;
    margin-top: -4px;
    /* Connect visually */
    display: none;
    font-size: 0.8rem;
    color: #ccc;
}

.member-insight-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-insight-drawer li {
    margin-bottom: 4px;
    padding-left: 12px;
    position: relative;
}

.member-insight-drawer li::before {
    content: "•";
    color: #FFD700;
    position: absolute;
    left: 0;
}

/* War History Insight Icon with Tooltip */
.war-insight-icon {
    position: relative;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: transform 0.2s;
    margin-left: auto;
}

.war-insight-icon:hover {
    transform: scale(1.2);
    opacity: 1;
}

.war-insight-icon .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.war-insight-icon .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.war-insight-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Enhanced Insight Styles */
.insight-header {
    font-size: 0.85rem;
    color: #FFD700;
    margin-bottom: 4px;
}

.insight-confidence {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
}

.insight-fix {
    font-size: 0.75rem;
    color: #4ADE80;
    padding: 6px 10px;
    background: rgba(74, 222, 128, 0.1);
    border-left: 3px solid #4ADE80;
    border-radius: 4px;
    margin: 4px 0 10px 0;
}

/* Insight Drawer Styles */
.insight-drawer {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insight-title {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 12px;
}

.insight-item {
    font-size: 0.8rem;
    color: #ddd;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* ========== WAR REPORT STYLES ========== */

/* Verdict Section */
.verdict-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #FFD700;
}

.verdict-header {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.verdict-badge {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.verdict-badge.strong {
    color: #4ADE80;
}

.verdict-badge.decent {
    color: #FFD700;
}

.verdict-badge.improvement {
    color: #FF4444;
}

.verdict-text {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
}

/* Collapsible Report Sections */
.report-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-section:hover {
    background: rgba(0, 0, 0, 0.4);
}

.section-header {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header::after {
    content: "▼";
    font-size: 0.7rem;
    color: #888;
    transition: transform 0.2s ease;
}

.report-section.open .section-header::after {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 16px;
}

.report-section.open .section-content {
    max-height: 300px;
    padding: 0 16px 16px 16px;
}

.report-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.report-item:last-child {
    border-bottom: none;
}

.report-item-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.report-item-title.hurt {
    color: #FF4444;
}

.report-item-title.win {
    color: #4ADE80;
}

.report-item-desc {
    font-size: 0.8rem;
    color: #999;
}

/* Key Numbers Grid */
.key-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.number-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
}

.number-label {
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.number-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD700;
}

.number-value.missed {
    color: #FF4444;
}

.number-sub {
    font-size: 0.7rem;
    color: #666;
}

/* Tactical Insight */
.tactical-insight {
    background: rgba(74, 222, 128, 0.1);
    border-left: 3px solid #4ADE80;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 0.8rem;
    color: #ccc;
}

.tactical-icon {
    margin-right: 8px;
}

/* Share Button */
.share-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.9rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    border: none;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ========== BENTO GRID REDESIGN STYLES ========== */

.war-dashboard-bento {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.9) 0%, rgba(20, 20, 25, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Tier 1: Executive Summary */
.bento-tier-1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.card-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.bento-value {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.4rem;
    color: #fff;
}

.bento-sub {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* Specific Card Styles */
.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-val {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.6rem;
    color: #FFD700;
}

.score-div {
    color: #444;
}

.trend-mini-row {
    display: flex;
    justify-content: space-between;
}

.trend-item {
    text-align: center;
}

.trend-val {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.2rem;
    display: block;
}

.trend-lbl {
    font-size: 0.7rem;
    color: #666;
}

/* Tier 2: Intelligence Split */
.bento-tier-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Logic heavy on left */
    gap: 16px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
}

/* Compact Verdict */
.verdict-section-compact {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #FFD700;
    margin-bottom: 12px;
}

/* Accordion Insights */
.accordion-btn {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    color: #ccc;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.accordion-btn.hurt {
    color: #FF4444;
}

.accordion-btn.win {
    color: #4ADE80;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-left: 12px;
}

.accordion-content.show {
    max-height: 200px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Slacker Card Modern */
.slacker-card-modern {
    border: 1px solid rgba(255, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(40, 20, 20, 0.9) 0%, rgba(25, 10, 10, 0.95) 100%);
}

.slacker-list-modern {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slacker-row-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
}

.slacker-name {
    font-size: 0.85rem;
    flex: 1;
    color: #ddd;
}

.slacker-stats {
    color: #FF4444;
    font-size: 0.75rem;
    font-weight: bold;
}

.roast-btn-mini {
    padding: 4px 8px;
    font-size: 0.7rem;
    background: #FF4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Tier 3: Tabs */
.bento-tier-3 {
    margin-top: 8px;
}

.bento-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.bento-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #888;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.bento-tab.active {
    background: #38BDF8;
    color: #000;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.bento-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.bento-tab-content.active {
    display: block;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .bento-tier-1 {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .bento-tier-2 {
        grid-template-columns: 1fr;
        /* Stack Report and Slacker */
    }

    .score-row {
        justify-content: center;
    }

    .bento-card {
        text-align: center;
    }

    .card-header-row {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   INTELLIGENCE ROOM STYLES (DUAL-MODE) (Added for Redesign)
   ============================================ */

/* 1. Navigation: Segmented Control */
.intel-nav-row {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.intel-segmented-control {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    display: flex;
    gap: 4px;
    position: relative;
    backdrop-filter: blur(10px);
}

.intel-toggle {
    padding: 8px 24px;
    border-radius: 40px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.intel-toggle:hover {
    color: #fff;
}

.intel-toggle.active {
    background: #FFD700;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* 2. Live Intel Panel Layout */
.intel-panel {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-grid-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

/* 3. Live Status Card */
.live-status-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(40, 40, 40, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.live-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-badge {
    font-family: 'Inter', sans-serif; font-weight: 500;
    color: #4ADE80;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.live-indicator-dot {
    width: 10px;
    height: 10px;
    background: #FF4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF4444;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.live-score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-side {
    text-align: center;
}

.score-big {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 2.5rem;
    display: block;
    line-height: 1;
}

.score-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.score-side.clan .score-big {
    color: #4ADE80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.score-side.opp .score-big {
    color: #FF4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.score-vs {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.2);
}

.score-clan-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.score-side.clan .score-clan-label {
    color: #4ADE80;
}

.score-side.opp .score-clan-label {
    color: #FF6B6B;
}

.score-attacks {
    font-size: 0.72rem;
    color: #666;
    margin-top: 4px;
    font-weight: 600;
}

/* 4. Pulsing Timer Card */
.timer-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timer-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #FFD700;
    margin-bottom: 8px;
    opacity: 0.8;
}

.pulsing-timer {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
    animation: pulseText 2s infinite ease-in-out;
}

@keyframes pulseText {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
        opacity: 0.8;
    }
}

.timer-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 1s linear;
}

/* 5. Condensed Slacker List */
.slacker-card-live {
    background: rgba(40, 10, 10, 0.6);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.slacker-list-condensed {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.slacker-chip-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 55, 0.05);
    /* Very faint yellow/red mix */
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.chip-rank {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.chip-name {
    font-family: 'Inter', sans-serif; font-weight: 500;
    color: #FF6666;
    font-size: 0.9rem;
}

.chip-stat {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #aaa;
}

/* 6. War Debrief Styling */
/* Verdict Hero Card */
.verdict-hero-card {
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.verdict-hero-card.victory {
    background: radial-gradient(circle at top right, rgba(74, 222, 128, 0.2), transparent 70%),
        linear-gradient(180deg, rgba(34, 197, 94, 0.4), rgba(20, 83, 45, 0.9));
    border: 1px solid #4ADE80;
}

.verdict-hero-card.defeat {
    background: radial-gradient(circle at top right, rgba(248, 113, 113, 0.2), transparent 70%),
        linear-gradient(180deg, rgba(239, 68, 68, 0.4), rgba(127, 29, 29, 0.9));
    border: 1px solid #EF4444;
}

.verdict-title {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 3rem;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.verdict-hero-card.victory .verdict-title {
    color: #fff;
    text-shadow: 0 0 20px #4ADE80;
}

.verdict-hero-card.defeat .verdict-title {
    color: #fff;
    text-shadow: 0 0 20px #EF4444;
}

.verdict-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* Insight Columns */
.insight-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.insight-col {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.insight-col.hurt {
    border-top: 3px solid #EF4444;
}

.insight-col.worked {
    border-top: 3px solid #4ADE80;
}

.col-header {
    font-family: 'Inter', sans-serif; font-weight: 500;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.col-header.red {
    color: #EF4444;
}

.col-header.green {
    color: #4ADE80;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    padding-left: 12px;
    position: relative;
}

.insight-list li::before {
    content: "•";
    color: #666;
    position: absolute;
    left: 0;
}

/* Key Stats Row */
.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    flex: 1;
}

.stat-pill .lbl {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.stat-pill .val {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.2rem;
    color: #fff;
    margin-top: 4px;
}

/* ============================================
   CLAN OVERVIEW MODE STYLES
   ============================================ */

/* 1. Health Snapshot */
.health-snapshot-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.health-card {
    background: rgba(30, 20, 10, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.health-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-align: center;
}

.health-val {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.4rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* 2. Reliability Matrix */
.reliability-list-header {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr;
    padding: 8px 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reliability-row {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.reliability-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rel-rank {
    color: #666;
    font-size: 0.8rem;
}

.rel-name {
    font-family: 'Inter', sans-serif; font-weight: 500;
    color: #fff;
    font-size: 0.9rem;
}

.rel-stat {
    color: #ccc;
    font-size: 0.9rem;
}

/* Status Badges */
.rel-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    justify-self: end;
}

.rel-badge.elite {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.rel-badge.risky {
    background: rgba(250, 204, 21, 0.15);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.rel-badge.slacker {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rel-badge.unrated {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* 3. Compact War Log */
.compact-log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.log-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px);
}

.log-opp {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

.log-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.log-result {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
}

.log-result.win {
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.1);
}

.log-result.loss {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.log-result.draw {
    color: #ccc;
    background: rgba(200, 200, 200, 0.1);
}

/* Responsive Grid */
@media (max-width: 600px) {
    .health-snapshot-row {
        grid-template-columns: 1fr 1fr;
    }

    .reliability-list-header,
    .reliability-row {
        grid-template-columns: 0.5fr 2fr 1fr 1fr;
    }
}

/* ============================================
   ROSTER PERFORMANCE CARD STYLES
   (Fix for missing styles in Member Performance)
   ============================================ */

.roster-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    /* Spacing between cards */
    transition: all 0.2s ease;
}

.roster-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px);
}

/* Info Section (Left) */
.roster-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: 8px;
    text-align: left;
}

.roster-name {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.roster-th {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* Stats Section (Right) */
.roster-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-badge {
    color: #ffd700;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: center;
}

.stat-badge.perfect {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-dest {
    color: #ccc;
    font-size: 0.85rem;
    min-width: 50px;
    text-align: right;
    font-family: monospace;
}

.attack-count {
    font-size: 0.85rem;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.attack-count.warning {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* ============================================
   LIVE INTEL SYSTEM STYLES (Elite Tier)
   ============================================ */

/* Momentum Meter */
.momentum-bar-container {
    margin-top: 12px;
    padding: 0 4px;
}

.momentum-bar-bg {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-bottom: 6px;
}

.momentum-bar-bg::after {
    /* Center marker line */
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
    z-index: 2;
}

.momentum-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4444 0%, #FFD700 50%, #4ADE80 100%);
    width: 50%;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.momentum-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #888;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Simulation Card */
.sim-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60px;
}

.sim-value {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.8rem;
    color: #4ADE80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.sim-sub {
    font-size: 0.7rem;
    color: #aaa;
}

/* Live Timeline Feed */
.timeline-feed {
    flex: 1;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #60A5FA rgba(255, 255, 255, 0.1);
}

.timeline-feed::-webkit-scrollbar {
    width: 4px;
}

.timeline-feed::-webkit-scrollbar-thumb {
    background: #60A5FA;
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item.clutch {
    border-left-color: #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.timeline-item.fail {
    border-left-color: #FF4444;
}

.timeline-item.normal {
    border-left-color: #888;
}

.t-time {
    font-size: 0.65rem;
    color: #666;
    min-width: 35px;
}

.t-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.t-header {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.8rem;
    /* Ensure text is white and visible */
    color: #ffffff !important;
    display: flex;
    justify-content: space-between;
}

.t-stars {
    color: #FFD700;
}

.t-desc {
    font-size: 0.75rem;
    color: #ccc;
}

.timeline-empty {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    padding: 20px;
    font-style: italic;
}

/* Clutch Highlight Popup (Toast) */
.clutch-toast {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #FFD700;
    padding: 20px 40px;
    border-radius: 16px;
    z-index: 9999;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clutch-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.clutch-toast h2 {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 2.5rem;
    color: #FFD700;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 20px #FFD700;
}

.clutch-toast p {
    color: #fff;
    font-size: 1rem;
    margin-top: 8px;
}

/* Red Pulse for Slackers */
@keyframes redPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}


/* ============================================
   ENDGAME: PSYCHOLOGICAL WAR TOOL STYLES
   ============================================ */

/* 1. Screen Shake (Dopamine) */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.shake-screen {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

/* 2. Golden Glow (Clutch Row) */
@keyframes goldenGlow {
    0% {
        box-shadow: 0 0 5px #FFD700;
        background: rgba(255, 215, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 20px #FFD700;
        background: rgba(255, 215, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 5px #FFD700;
        background: rgba(255, 215, 0, 0.1);
    }
}

.row-glow-gold {
    animation: goldenGlow 3s ease-out;
    border: 1px solid #FFD700 !important;
    z-index: 10;
}

/* 3. Drama Tags in Feed */
.drama-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

.drama-tag.clutch {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.drama-tag.cleanup {
    background: #38BDF8;
    color: #000;
}

.drama-tag.risky {
    background: rgba(255, 68, 68, 0.2);
    color: #FF4444;
    border: 1px solid #FF4444;
}


/* ============================================
   WAR ROOM UPGRADE STYLES
   ============================================ */

/* 1. Shame Engine (Slacker Alert Card) */
.slacker-alert-container {
    margin-bottom: 20px;
}

.slacker-alert-card {
    background: rgba(40, 0, 0, 0.9);
    border: 2px solid #FF4444;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
    animation: persistentShake 10s infinite;
}

@keyframes persistentShake {

    0%,
    95% {
        transform: translateX(0);
    }

    96% {
        transform: translateX(-2px);
    }

    97% {
        transform: translateX(2px);
    }

    98% {
        transform: translateX(-2px);
    }

    99% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

.slacker-info h4 {
    color: #FF4444;
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-family: 'Inter', sans-serif; font-weight: 500;
    text-transform: uppercase;
}

.slacker-info p {
    color: #ccc;
    font-size: 0.8rem;
    margin: 0;
}

.slacker-timer-badge {
    background: #FF4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
}

/* 2. Heat Status Badges */
.heat-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: text-bottom;
}

.heat-badge.hot {
    background: linear-gradient(135deg, #FFD700, #FF8800);
    color: black;
    box-shadow: 0 0 5px #FFD700;
}

.heat-badge.cold {
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    border: 1px solid #38BDF8;
}

.heat-badge.slacker {
    background: rgba(255, 68, 68, 0.2);
    color: #FF4444;
    border: 1px solid #FF4444;
    animation: pulse 2s infinite;
}

/* 3. Momentum Floating Label */
#momentum-label-float {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s;
}

#momentum-label-float.visible {
    opacity: 1;
}

/* 4. Ticker Animation Class */
.ticker-active {
    animation: tickRoll 0.2s linear infinite;
}

@keyframes tickRoll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-5px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   COLLAPSIBLE CARD LOGIC
   ============================================ */
.collapsible-card .card-header-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.collapsible-card .card-header-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.toggle-icon {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.3s ease;
}

/* Rotate icon when active (open) - We toggle class 'active' on header */
.collapsible-card .card-header-row.active .toggle-icon {
    transform: rotate(180deg);
}

.card-body-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    overflow: hidden;
}

/* State: Collapsed (Hidden) */
.card-body-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding: 0;
    margin: 0;
}

/* ============================================
   UI POLISH: DROPDOWN & SCROLLBAR
   ============================================ */
/* Filter Select - Premium Style */
.feed-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 6px;
    padding: 4px 24px 4px 8px;
    /* Extra padding for arrow */
    margin-left: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    outline: none;
    /* Custom Arrow using SVG data URI */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 14px;
    transition: all 0.2s ease;
}

.feed-filter-select:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.feed-filter-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Custom Scrollbar for Feeds & Content */
.card-body-content::-webkit-scrollbar,
.timeline-feed::-webkit-scrollbar,
.slacker-list-condensed::-webkit-scrollbar {
    width: 6px;
}

.card-body-content::-webkit-scrollbar-track,
.timeline-feed::-webkit-scrollbar-track,
.slacker-list-condensed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.card-body-content::-webkit-scrollbar-thumb,
.timeline-feed::-webkit-scrollbar-thumb,
.slacker-list-condensed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.card-body-content::-webkit-scrollbar-thumb:hover,
.timeline-feed::-webkit-scrollbar-thumb:hover,
.slacker-list-condensed::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* ============================================
   CUSTOM DROPDOWN UI
   ============================================ */
.custom-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    font-family: 'Inter', sans-serif;
    z-index: 1000;
}

.dropdown-trigger {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 80px;
    justify-content: space-between;
}

.dropdown-trigger:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    width: 120%;
    /* Slightly wider */
    overflow: hidden;
    z-index: 1001;
}

.custom-dropdown.open .dropdown-menu {
    display: flex;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #ccc;
    cursor: pointer;
    transition: background 0.1s;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #fff;
}

.dropdown-item.active {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-weight: bold;
}

/* ============================================
   UI POLISH: ROSTER & BADGES
   ============================================ */
.roster-rank {
    font-family: 'Clash', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 12px;
    width: 30px;
    text-align: center;
    font-weight: bold;
}

/* Green Pulse for 0 Priority Targets */
.count-badge.green {
    animation: greenPulse 2s infinite;
}

@keyframes greenPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Polished Sort Buttons (Modern & Clean) */
.sort-controls-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 0.7rem;
    color: #444;
    font-weight: 700;
    letter-spacing: 1px;
}

.sort-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.sort-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.sort-btn.active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.sort-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFD700;
    box-shadow: 0 0 10px #FFD700;
}

/* Roster Card - Grid Alignment with Rank */
.roster-card {
    display: flex;
    align-items: center;
}

/* ============================================
   WAR DEBRIEF INTELLIGENT PANEL STYLES
   ============================================ */

/* 1. Verdict Card */
.verdict-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.verdict-card.win {
    border-color: #4ADE80;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);
}

.verdict-card.dominant {
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.verdict-card.loss {
    border-color: #FF4444;
}

.verdict-card h2 {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verdict-ticker {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 4rem;
    color: #fff;
    line-height: 1;
    margin-top: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* 2. Heroes & Villains Row */
.hv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.hv-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.hv-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.hv-card.mvp {
    border-color: rgba(255, 215, 0, 0.3);
}

.hv-card.slacker {
    border-color: rgba(255, 68, 68, 0.3);
}

.hv-icon {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv-info {
    display: flex;
    flex-direction: column;
}

.hv-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hv-name {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.1rem;
    color: #fff;
    margin: 4px 0 2px 0;
}

.hv-stats {
    font-size: 0.8rem;
    color: #bbb;
}

/* 3. Insights Grid */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.insight-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.insight-card h4 {
    margin: 0 0 10px 0;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.insight-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
}

.insight-card.momentum h4 {
    color: #FFD700;
}

.insight-card.risk h4 {
    color: #FF4444;
}

.insight-card.whatif h4 {
    color: #A78BFA;
}

@media (max-width: 768px) {

    .hv-row,
    .insight-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LIVE INTEL SCOREBOARD (RESTORED & TUNED)
   ============================================ */
.live-score-display {
    display: flex;
    justify-content: center;
    /* Centered instead of space-between */
    gap: 40px;
    /* Controlled gap */
    align-items: center;
    padding: 12px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.score-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    /* Increased for clan names */
    text-align: center;
}

.score-big {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 2.5rem;
    /* Bigger impact */
    line-height: 1;
}

.score-side.clan .score-big {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.score-side.opp .score-big {
    color: #FF4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.score-sub {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.score-vs {
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    margin-top: -10px;
    /* Slight optical adjustment */
}

/* Status Badge Alignment */
.live-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.status-badge {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.8rem;
    color: #4ADE80;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-indicator-dot {
    width: 8px;
    height: 8px;
    background: #FF0000;
    border-radius: 50%;
    box-shadow: 0 0 8px #FF0000;
    animation: blinkLive 1.5s infinite;
}

@keyframes blinkLive {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Priority Targets Scroll Fix */
.slacker-list-condensed {
    max-height: 300px;
    overflow-y: auto !important;
    /* Force Scroll */
    padding-right: 4px;
    /* Space for scrollbar */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slacker-list-condensed::-webkit-scrollbar {
    width: 6px;
}

.slacker-list-condensed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.slacker-list-condensed::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.slacker-list-condensed::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}

/* ============================================
   UI POLISH (LIVE INTELLIGENCE)
   ============================================ */

/* Fix alignment of Opponent Score */
.live-score-display .score-side.opp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* HIDE ROGUE REFRESH ICON */
/* User requested 'remove the recycle icon under 34' */
.live-score-display .score-side.opp svg,
.live-score-display .score-side.opp i,
.live-score-display .score-side.opp .fa,
.live-score-display .score-side.opp .refresh-icon,
.live-score-display .score-side.opp button {
    display: none !important;
}

/* SAFEGUARD: Ensure the score number itself remains visible */
.live-score-display .score-side.opp .score-big {
    display: block !important;
}


/* ============================================
   LATEST ATTACK HIGHLIGHT
   ============================================ */
.timeline-item.latest-attack {
    border-left: 3px solid #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0));
    position: relative;
    overflow: hidden;
}

.timeline-item.latest-attack::after {
    content: 'JUST NOW';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    color: #FFD700;
    opacity: 0.7;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2px 4px;
    border-radius: 4px;
    animation: pulse-latest 2s infinite;
}

@keyframes pulse-latest {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}


/* ============================================
   LATEST ATTACK HIGHLIGHT (FIXED)
   ============================================ */
.timeline-item.latest-attack {
    border-left: 3px solid #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0));
}

/* Remove the old overlapping pseudo-element */
.timeline-item.latest-attack::after {
    display: none !important;
}

/* New Badge Style */
.latest-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    }

    100% {
        opacity: 0.7;
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
}


/* ============================================
   FEEDBACK SYSTEM (Clash Style)
   ============================================ */
.feedback-float-btn {
    position: fixed;
    bottom: 80px;
    /* Above bottom nav */
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FFAA00);
    border: 2px solid #FFF;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-float-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.feedback-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.feedback-modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid #FFD700;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-modal:hover {
    color: #FFD700;
}

.feedback-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #000;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

.feedback-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* ============================================
   PLAYER PERFORMANCE ROW (Live War Data)
   ============================================ */
.player-perf-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.player-perf-row:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.2);
}

.player-perf-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.75rem;
    color: #FFD700;
    flex-shrink: 0;
}

.player-perf-info {
    flex: 1;
    min-width: 0;
}

.player-perf-name {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-perf-th {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.player-perf-attacks-label {
    font-size: 0.7rem;
    margin-top: 2px;
}

.player-perf-attacks-label.attacks-warning {
    color: #FF6B6B;
}

.player-perf-attacks-label.attacks-done {
    color: #4ADE80;
}

.player-perf-stats {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.player-perf-stats .star-badge {
    background: linear-gradient(135deg, #FFD700, #D4A200);
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 0.85rem;
    min-width: 28px;
    text-align: center;
}

.player-perf-stats .dest-val {
    color: #4ADE80;
    font-size: 0.85rem;
    min-width: 45px;
}

.player-perf-stats .attack-count {
    color: #FF6B6B;
    font-size: 0.8rem;
    min-width: 40px;
}

/* ============================================
   CINEMATIC WAR DEBRIEF ANIMATIONS
   ============================================ */

/* Verdict Card Glow Effects */
.verdict-card.glow-win {
    animation: glowWin 2s ease-in-out infinite alternate;
}

.verdict-card.glow-loss {
    animation: glowLoss 2s ease-in-out infinite alternate;
}

.verdict-card.glow-draw {
    animation: glowDraw 2s ease-in-out infinite alternate;
}

@keyframes glowWin {
    0% {
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
    }

    100% {
        box-shadow: 0 0 40px rgba(74, 222, 128, 0.4), 0 0 60px rgba(74, 222, 128, 0.2);
    }
}

@keyframes glowLoss {
    0% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
    }

    100% {
        box-shadow: 0 0 40px rgba(255, 68, 68, 0.4), 0 0 60px rgba(255, 68, 68, 0.2);
    }
}

@keyframes glowDraw {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
    }
}

/* Fade-In Sequence Animations */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MVP Crown Bounce Animation */
.hv-card.mvp.crown-bounce .hv-icon {
    animation: crownBounce 0.8s ease-out;
}

@keyframes crownBounce {
    0% {
        transform: scale(0.3) rotate(-20deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }

    70% {
        transform: scale(0.9) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* MVP Gold Pulse Effect */
.hv-card.mvp.crown-bounce {
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0% {
        border-color: rgba(255, 215, 0, 0.3);
    }

    50% {
        border-color: rgba(255, 215, 0, 0.8);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    100% {
        border-color: rgba(255, 215, 0, 0.3);
    }
}

/* Wall of Shame Shake Animation */
.hv-card.slacker.shake-card {
    animation: shakeCard 0.5s ease-in-out;
}

@keyframes shakeCard {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px) rotate(-1deg);
    }

    40% {
        transform: translateX(5px) rotate(1deg);
    }

    60% {
        transform: translateX(-3px) rotate(-0.5deg);
    }

    80% {
        transform: translateX(3px) rotate(0.5deg);
    }
}

/* Slacker Pulse (Red Alert) */
.hv-card.slacker-pulse {
    animation: slackerPulse 1.5s ease-in-out infinite;
}

@keyframes slackerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Counting class for star ticker */
.verdict-ticker.counting {
    animation: countPulse 0.1s ease-in-out infinite;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Insight Cards Fade-In Sequence */
.insight-card {
    opacity: 0;
    animation: insightFadeIn 0.5s ease-out forwards;
}

.insight-card:nth-child(1) {
    animation-delay: 0.2s;
}

.insight-card:nth-child(2) {
    animation-delay: 0.4s;
}

.insight-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes insightFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* What-If Purple Glow */
.insight-card.whatif {
    position: relative;
    overflow: hidden;
}

.insight-card.whatif::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.1), transparent 70%);
    pointer-events: none;
    animation: whatifGlow 3s ease-in-out infinite;
}

@keyframes whatifGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Momentum Flame Effect */
.insight-card.momentum {
    position: relative;
}

.insight-card.momentum::after {
    content: '🔥';
    position: absolute;
    top: -5px;
    right: 10px;
    font-size: 1.2rem;
    animation: flameDance 0.8s ease-in-out infinite;
}

@keyframes flameDance {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

/* ============================================
   CLAN OVERVIEW STYLES
   ============================================ */

/* Health Snapshot Cards */
.health-snapshot-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.health-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.health-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.health-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.health-val {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.5rem;
    color: #FFD700;
}

/* Reliability Matrix */
.reliability-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.section-header {
    font-family: 'Inter', sans-serif; font-weight: 500;
    color: #FFD700;
    margin-bottom: 16px;
    font-size: 1rem;
}

.reliability-list-header {
    display: grid;
    grid-template-columns: 50px 1fr 80px 100px;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: bold;
}

.reliability-list-body {
    max-height: 400px;
    overflow-y: auto;
}

.reliability-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 100px;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    align-items: center;
}

.reliability-row:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.2);
}

.reliability-rank {
    font-family: 'Inter', sans-serif; font-weight: 500;
    color: #FFD700;
    font-size: 0.9rem;
    text-align: center;
}

.reliability-name {
    font-size: 0.9rem;
    color: #fff;
}

.reliability-stars {
    font-size: 0.9rem;
    color: #FFD700;
    text-align: center;
}

.reliability-status {
    text-align: right;
}

.status-badge-mini {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge-mini.elite {
    background: rgba(74, 222, 128, 0.2);
    color: #4ADE80;
    border: 1px solid #4ADE80;
}

.status-badge-mini.consistent {
    background: rgba(96, 165, 250, 0.2);
    color: #60A5FA;
    border: 1px solid #60A5FA;
}

.status-badge-mini.risky {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    border: 1px solid #FBBF24;
}

.status-badge-mini.liability {
    background: rgba(255, 68, 68, 0.2);
    color: #FF4444;
    border: 1px solid #FF4444;
}

.status-badge-mini.new {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
    border: 1px solid #9CA3AF;
}

/* Insights 2-Column Grid */
.insight-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.insight-col {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.col-header {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.col-header.red {
    color: #FF4444;
}

.col-header.green {
    color: #4ADE80;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #ccc;
}

.insight-list li:last-child {
    border-bottom: none;
}

/* Compact War Log (Recent Campaigns) */
.compact-log-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.compact-log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.compact-log-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.3);
}

.compact-log-result {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.compact-log-details {
    flex: 1;
}

.compact-log-opponent {
    font-size: 0.9rem;
    color: #fff;
}

.compact-log-score {
    font-size: 0.75rem;
    color: #888;
}

.compact-log-arrow {
    color: #666;
    font-size: 1rem;
}

/* Period Toggle Filter */
.period-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.period-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.period-btn.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

@media (max-width: 768px) {
    .health-snapshot-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-grid-2col {
        grid-template-columns: 1fr;
    }

    .reliability-list-header,
    .reliability-row {
        grid-template-columns: 40px 1fr 60px 80px;
    }
}

/* ============================================
   PREP DAY INTEL STYLES
   ============================================ */
.prep-day-intel {
    margin-top: 16px;
    animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prep-intel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.prep-card {
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.95)) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
}

.prep-th-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prep-th-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 8px;
    padding: 0 4px;
}

.prep-th-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 6px;
    align-items: center;
    height: 24px;
}

.prep-th-level {
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #FFD700;
    white-space: nowrap;
}

.prep-th-bar-us {
    height: 18px;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.3), #4ADE80);
    border-radius: 4px 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    min-width: 4px;
    margin-left: auto;
    transition: width 0.5s ease;
}

.prep-th-bar-enemy {
    height: 18px;
    background: linear-gradient(90deg, #FF4444, rgba(255, 68, 68, 0.3));
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    padding-left: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    min-width: 4px;
    transition: width 0.5s ease;
}

.prep-matchup-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prep-risk-warnings {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prep-risk-item {
    font-size: 0.8rem;
    color: #FF8800;
    padding: 6px 10px;
    background: rgba(255, 136, 0, 0.1);
    border-left: 3px solid #FF8800;
    border-radius: 4px;
}

/* Verdict prep state */
.verdict-hero-card.preparation {
    border-color: rgba(255, 215, 0, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(30, 30, 40, 0.95)) !important;
}

/* ============================================
   WAR ROOM STYLES
   ============================================ */
.warroom-panel {
    display: none;
    animation: fadeSlideIn 0.4s ease-out;
}

.warroom-panel.active {
    display: block;
}

.warroom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.warroom-strategy-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.strategy-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.strategy-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
    transform: translateY(-1px);
}

.strategy-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: #FFD700;
    color: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.warroom-export-btns {
    display: flex;
    gap: 8px;
}

.export-btn {
    padding: 8px 14px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* Compact icon-only export buttons */
.export-btn-mini {
    padding: 6px 10px !important;
    font-size: 1rem !important;
    line-height: 1;
    min-width: unset;
    border-radius: 6px;
}

/* Projected stat golden glow */
.summary-stat.projected-stat .summary-value {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Main War Room Grid */
.warroom-grid-wrapper {
    position: relative;
}

.warroom-svg-lanes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.warroom-svg-lanes .lane-line {
    animation: laneGlow 3s ease-in-out infinite alternate;
}

@keyframes laneGlow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.85;
    }
}

.warroom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* War Plan Summary Strip */
.warplan-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.85), rgba(15, 15, 30, 0.9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.summary-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.summary-icon {
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.summary-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-stat.risky .summary-value {
    color: #FBBF24;
}

.summary-stat.danger .summary-value {
    color: #FF4444;
}

.summary-stat.mirror-stat .summary-value {
    color: #A78BFA;
}

/* Strategy Preview Overlay */
.strategy-preview-overlay {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 12px;
    animation: previewSlideIn 0.3s ease;
}

@keyframes previewSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    width: 100%;
    justify-content: space-between;
}

.preview-label {
    color: #A78BFA;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.preview-apply-btn,
.preview-cancel-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.preview-apply-btn {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    color: #000;
}

.preview-apply-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

.preview-cancel-btn {
    background: rgba(255, 68, 68, 0.15);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.preview-cancel-btn:hover {
    background: rgba(255, 68, 68, 0.25);
}

/* Smart plan button */
.smart-plan-btn {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.15)) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: #A78BFA !important;
}

.smart-plan-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.25)) !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.warroom-column-header {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.warroom-column-header.roster {
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.warroom-column-header.enemy {
    color: #FF4444;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.15);
}

.warroom-roster,
.warroom-enemy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 700px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.4) transparent;
}

/* ===== ROSTER CARD (Identity) ===== */
.warroom-player-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.warroom-player-card:active {
    cursor: grabbing;
}

.warroom-player-card:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateX(2px);
}

.warroom-player-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.warroom-player-card.no-attacks-left {
    opacity: 0.5;
    border-color: rgba(255, 68, 68, 0.3);
}

.warroom-player-card .card-pos {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.warroom-player-card .card-info {
    flex: 1;
    min-width: 0;
}

.card-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Role Badges */
.role-badge {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.role-opener {
    background: rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}

.role-ready {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.role-sniper {
    background: rgba(168, 85, 247, 0.2);
    color: #A78BFA;
}

.role-done {
    background: rgba(100, 100, 100, 0.2);
    color: #888;
}

.role-active {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

/* Attack Usage Bar */
.card-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atk-usage {
    display: flex;
    align-items: center;
    gap: 4px;
}

.atk-usage-bar {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.atk-usage-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #4ADE80, #FFD700);
    transition: width 0.3s ease;
}

.atk-usage-text {
    font-size: 0.65rem;
    color: #888;
}

.best-hit {
    font-size: 0.65rem;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.total-stars {
    font-weight: 700;
    color: #FFD700;
    font-size: 0.75rem;
}

.avg-dest {
    color: #aaa;
    font-size: 0.6rem;
}

.atk-breakdown {
    font-size: 0.6rem;
    color: #ccc;
    margin-top: 2px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.warroom-player-card .card-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.th-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

/* ===== ENEMY CARD (Rich) ===== */
.warroom-enemy-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 52px;
}

/* Right-aligned assignment area */
.card-assignments {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    align-items: flex-end;
    max-width: 45%;
}

.card-assignments .no-assign {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
}

.warroom-enemy-card .card-pos {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 68, 68, 0.15);
    color: #FF4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.warroom-enemy-card .card-info {
    flex: 1;
    min-width: 0;
}

.warroom-enemy-card.dragover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

/* Status Badges */
.enemy-status-badge {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.status-cleared {
    background: rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}

.status-unhit {
    background: rgba(255, 68, 68, 0.15);
    color: #FF4444;
}

.status-cleanup {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

/* Star Bar */
.star-bar {
    display: flex;
    gap: 1px;
}

.star-pip {
    font-size: 0.55rem;
}

.star-pip:not(.filled) {
    opacity: 0.3;
    font-size: 0.6rem;
}

.hit-count {
    font-size: 0.65rem;
    color: #888;
}

/* Destruction Bar */
.dest-bar-wrap {
    position: relative;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    overflow: hidden;
}

.dest-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #FF4444, #FBBF24);
    transition: width 0.3s ease;
}

.dest-label {
    position: absolute;
    right: 0;
    top: -12px;
    font-size: 0.55rem;
    color: #888;
}

/* Mismatch colors */
.warroom-enemy-card.match-good {
    border-left: 3px solid #4ADE80;
}

.warroom-enemy-card.match-challenge {
    border-left: 3px solid #FFD700;
}

.warroom-enemy-card.match-risky {
    border-left: 3px solid #FF4444;
}

/* Assignment Chip Container */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Color-coded Assignment Chips */
.assignment-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    margin-top: 0;
    transition: all 0.2s;
}

.assignment-chip.chip-safe {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ADE80;
}

.assignment-chip.chip-risk {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #FBBF24;
}

.assignment-chip.chip-danger {
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid rgba(255, 68, 68, 0.25);
    color: #FF4444;
}

.assignment-chip.preview-chip {
    background: rgba(168, 85, 247, 0.1);
    border: 1px dashed rgba(168, 85, 247, 0.4);
    color: #A78BFA;
    opacity: 0.75;
    animation: previewPulse 1.5s ease-in-out infinite;
}

@keyframes previewPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

.chip-th {
    font-size: 0.6rem;
    opacity: 0.7;
}

.assignment-chip .remove-assignment {
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.assignment-chip .remove-assignment:hover {
    opacity: 1;
    color: #FF4444;
}

/* ============================================
   ATTACK REMAINING TRACKER
   ============================================ */
.attack-tracker {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tracker-header h3 {
    margin: 0;
    color: #FFD700;
    font-size: 0.9rem;
}

.tracker-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.tracker-stat {
    text-align: center;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.tracker-stat .stat-num {
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
}

.tracker-stat .stat-num.green {
    color: #4ADE80;
}

.tracker-stat .stat-num.yellow {
    color: #FFD700;
}

.tracker-stat .stat-num.red {
    color: #FF4444;
}

.tracker-stat .stat-desc {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
}

.cleanup-candidates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cleanup-candidate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #FFD700;
    font-size: 0.8rem;
    color: #ddd;
}

.cleanup-candidate .stars-display {
    color: #FFD700;
    flex-shrink: 0;
}

/* ============================================
   WAR ROOM TOAST
   ============================================ */
.warroom-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    animation: toastSlide 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes toastSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   WAR ROOM MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .prep-intel-grid {
        grid-template-columns: 1fr;
    }

    .warroom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .warroom-lanes {
        display: none;
    }

    .warroom-header {
        flex-direction: column;
        align-items: stretch;
    }

    .warroom-strategy-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .warroom-export-btns {
        justify-content: center;
    }

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

    /* Hide SVG lanes on mobile */
    .warroom-svg-lanes {
        display: none !important;
    }

    /* Stack grid on mobile */
    .warroom-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    /* Summary strip compact */
    .warplan-summary-strip {
        padding: 8px 10px;
        gap: 6px;
    }

    .summary-stat {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    /* Preview banner compact */
    .preview-banner {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
        text-align: center;
    }

    /* Mobile tab switcher for War Room columns */
    .warroom-mobile-tabs {
        display: flex;
        gap: 4px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 4px;
        margin-bottom: 12px;
    }

    .warroom-mobile-tab {
        flex: 1;
        padding: 8px;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: #888;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s;
    }

    .warroom-mobile-tab.active {
        background: rgba(255, 215, 0, 0.15);
        color: #FFD700;
    }
}

@media (min-width: 769px) {
    .warroom-mobile-tabs {
        display: none;
    }
}

/* ============================================
   WAR DEBRIEF V2 — SUPERCELL-STYLE
   ============================================ */

/* Verdict Banner */
.debrief-verdict-banner {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.debrief-verdict-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.debrief-verdict-banner.victory {
    border-color: rgba(74, 222, 128, 0.3);
    background: linear-gradient(135deg, rgba(10, 40, 20, 0.95), rgba(20, 20, 30, 0.98));
}

.debrief-verdict-banner.victory::before {
    background: linear-gradient(90deg, transparent, #4ADE80, transparent);
}

.debrief-verdict-banner.defeat {
    border-color: rgba(255, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(40, 10, 10, 0.95), rgba(20, 20, 30, 0.98));
}

.debrief-verdict-banner.defeat::before {
    background: linear-gradient(90deg, transparent, #FF4444, transparent);
}

.debrief-verdict-banner.draw {
    border-color: rgba(255, 215, 0, 0.3);
}

.debrief-verdict-banner.draw::before {
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

.verdict-result {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.victory .verdict-result {
    color: #4ADE80;
}

.defeat .verdict-result {
    color: #FF4444;
}

.draw .verdict-result {
    color: #FFD700;
}

.verdict-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.verdict-clan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.verdict-clan-name {
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verdict-stars {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFD700;
}

.verdict-dest {
    font-size: 0.8rem;
    color: #888;
}

.verdict-vs {
    font-size: 1rem;
    color: #555;
    font-weight: 900;
    letter-spacing: 3px;
}

.verdict-clan.opp .verdict-stars {
    color: #FF6B6B;
}

.verdict-reason {
    font-size: 0.85rem;
    color: #999;
    margin-top: 4px;
}

/* Debrief Sections */
.debrief-section {
    margin-bottom: 20px;
}

.debrief-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Star Breakdown Grid */
.star-breakdown-grid {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.star-grid-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.star-grid-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.star-label {
    text-align: center;
    font-size: 0.85rem;
    min-width: 36px;
    color: #ccc;
}

.star-bar-container {
    display: flex;
    align-items: center;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.star-bar-container.us {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.star-bar-container.opp {
    justify-content: flex-start;
}

.star-bar {
    height: 100%;
    border-radius: 4px;
    min-width: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-bar.us {
    background: linear-gradient(90deg, #22c55e, #4ADE80);
}

.star-bar.opp {
    background: linear-gradient(90deg, #FF4444, #FF6B6B);
}

.star-bar-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    padding: 0 8px;
    min-width: 20px;
}

/* Hero & Villain Cards */
.debrief-hv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.debrief-hero-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.debrief-hero-card.mvp {
    border-color: rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 0.02));
}

.debrief-hero-card.shame {
    border-color: rgba(255, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

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

.hero-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #888;
    text-transform: uppercase;
}

.hero-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-detail {
    font-size: 0.75rem;
    color: #999;
}

.hero-score {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFD700;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Shame List */
.shame-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shame-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 68, 68, 0.04);
    border: 1px solid rgba(255, 68, 68, 0.1);
    border-radius: 8px;
}

.shame-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
}

.shame-reason {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.shame-reason.missed {
    background: rgba(255, 68, 68, 0.15);
    color: #FF6B6B;
}

.shame-reason.zeroed {
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500;
}

/* War Story Grid */
.war-story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.story-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.story-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.story-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.story-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.story-body {
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.4;
}

/* Mobile debrief responsive */
@media (max-width: 768px) {
    .debrief-hv-row {
        grid-template-columns: 1fr;
    }

    .war-story-grid {
        grid-template-columns: 1fr;
    }

    .verdict-score-row {
        gap: 12px;
    }

    .verdict-stars {
        font-size: 1.4rem;
    }

    .verdict-result {
        font-size: 1.2rem;
    }
}

/* ============================================
   CLAN OVERVIEW V2 — LEADER DASHBOARD
   ============================================ */

/* Limited Mode Banner */
.ov-limited-banner {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.25);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: #FFA500;
    margin-bottom: 16px;
}

/* Sync Status Bar */
.sync-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 0.75rem;
}

.sync-status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    display: inline-block;
    flex-shrink: 0;
}

.sync-dot.fresh {
    background: #4ADE80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: syncPulse 2s ease-in-out infinite;
}

.sync-dot.stale {
    background: #FFD700;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.sync-dot.old {
    background: #FF4444;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.4);
}

@keyframes syncPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sync-text {
    color: #999;
}

.sync-wars-count {
    color: #777;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 10px;
}

.auto-sync-label {
    color: #4ADE80;
    font-size: 0.7rem;
    margin-right: 10px;
}

/* Readiness Grid — 4 stat cards */
.readiness-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.readiness-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.readiness-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readiness-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
}

/* Discipline List */
.discipline-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 rgba(255, 255, 255, 0.05);
    margin-top: 12px;
}

.discipline-row {
    display: grid;
    grid-template-columns: 36px 1fr auto 50px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.discipline-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.disc-pos {
    font-size: 0.75rem;
    color: #666;
    font-weight: 700;
}

.disc-name {
    font-size: 0.82rem;
    color: #ddd;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-attacks {
    display: flex;
    gap: 4px;
    align-items: center;
}

.atk-dot {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

.atk-dot.triple {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
}

.atk-dot.good {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.atk-dot.ok {
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500;
}

.atk-dot.fail {
    background: rgba(255, 68, 68, 0.15);
    color: #FF4444;
}

.atk-dot.empty {
    background: rgba(255, 255, 255, 0.05);
    color: #555;
}

.disc-total {
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFD700;
    text-align: right;
}

/* Period Toggle */
.period-toggle {
    display: flex;
    gap: 4px;
}

.period-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn.active {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.3);
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   PREMIUM CLAN OVERVIEW — 5-SECTION LAYOUT
   ============================================ */

/* Section Container */
.ov-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.ov-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.ov-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ov-section-header-row .ov-section-title {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

/* Limited Banner */
.ov-limited-banner {
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: #FFA500;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

/* --- SECTION 1: WAR DNA --- */
.dna-streak-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.dna-placeholder {
    color: #555;
    font-size: 0.78rem;
    font-style: italic;
}

.streak-label {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
    margin-right: 4px;
}

.streak-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 900;
    transition: transform 0.15s;
}

.streak-dot:hover {
    transform: scale(1.15);
}

.streak-dot.win {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.streak-dot.lose {
    background: rgba(255, 68, 68, 0.15);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.25);
}

.streak-dot.draw {
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.dna-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.dna-stat-val {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.dna-stat-label {
    font-size: 0.65rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- SECTION 2: ROSTER POWER PROFILE --- */
.th-distribution-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 100px;
    padding: 8px 0;
    margin-bottom: 16px;
}

.th-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 50px;
    height: 100%;
    justify-content: flex-end;
}

.th-bar-fill {
    width: 100%;
    min-height: 4px;
    border-radius: 6px 6px 2px 2px;
    transition: height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.th-bar-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
}

.th-bar-label {
    font-size: 0.62rem;
    color: #888;
    font-weight: 700;
}

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

.roster-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.roster-metric-val {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.roster-metric-label {
    font-size: 0.65rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- SECTION 3: DISCIPLINE ENGINE --- */
.discipline-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.disc-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.disc-stat-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
}

.disc-stat-label {
    font-size: 0.65rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.discipline-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 rgba(255, 255, 255, 0.05);
}

/* --- SECTION 4: PLAYER PERFORMANCE TABLE --- */
.perf-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.perf-table thead tr {
    background: rgba(255, 215, 0, 0.06);
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.perf-table th {
    padding: 10px 8px;
    text-align: center;
    color: #FFD700;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.perf-table th.perf-th-name {
    text-align: left;
    padding-left: 12px;
}

.perf-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

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

.perf-row td {
    padding: 10px 8px;
    color: #ccc;
    text-align: center;
}

.perf-rank {
    font-weight: 800;
    color: #666;
    font-size: 0.72rem;
}

.perf-name {
    text-align: left !important;
    padding-left: 12px !important;
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.perf-th-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #60A5FA;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-right: 4px;
}

.perf-stars {
    font-weight: 800;
    color: #FFD700;
}

.perf-triple {
    color: #4ADE80;
    font-weight: 700;
}

.perf-zero {
    font-weight: 700;
}

.perf-usage {
    color: #aaa;
}

.risk-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.risk-badge.risk-low {
    background: rgba(74, 222, 128, 0.12);
    color: #4ADE80;
}

.risk-badge.risk-med {
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
}

.risk-badge.risk-high {
    background: rgba(255, 68, 68, 0.12);
    color: #FF4444;
}

/* --- SECTION 5: TRENDS + CAMPAIGNS --- */
.trend-chart-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 80px;
    padding: 8px 0;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.trend-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    max-width: 40px;
    height: 100%;
    justify-content: flex-end;
}

.trend-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 4px 4px 1px 1px;
    transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.trend-bar-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: #aaa;
}

/* Mobile Overview Responsive */
@media (max-width: 768px) {
    .dna-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roster-metrics-row,
    .discipline-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discipline-row {
        grid-template-columns: 30px 1fr auto 40px;
        padding: 6px 8px;
    }

    .perf-table {
        font-size: 0.72rem;
    }

    .perf-name {
        max-width: 100px;
    }

    .th-distribution-chart {
        height: 70px;
        gap: 4px;
    }

    .trend-chart-row {
        height: 60px;
    }

    .ov-section {
        padding: 14px;
    }
}

/* ============================================
   PREP DAY DEBRIEF BANNER
   ============================================ */

.debrief-prep-banner {
    text-align: center;
    padding: 32px 20px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.04));
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    margin-bottom: 16px;
}

.prep-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.prep-title {
    font-family: 'Supercell-Magic', 'Clash', sans-serif;
    font-size: 1.4rem;
    color: #FFD700;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prep-sub {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0 0 12px 0;
}

.prep-countdown {
    font-size: 1rem;
    color: #FFA500;
    margin-bottom: 8px;
}

.prep-countdown strong {
    color: #FFD700;
    font-size: 1.2rem;
}

.prep-team-size {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    color: #FFD700;
    font-weight: 800;
    font-size: 1rem;
}

.prep-th-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.prep-th-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
}

.prep-th-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.prep-th-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.th-dist-chip {
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFD700;
}

.prep-note {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
    .prep-th-compare {
        grid-template-columns: 1fr;
    }

    .prep-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   WAR PLAN EXPORT CARD (1080x1350)
   ============================================ */
.warplan-card {
    width: 1080px;
    height: 1350px;
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.wp-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.15), transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(255, 68, 68, 0.1), transparent 50%),
        url('https://clashos.jiobase.com/storage/v1/object/public/assets/backgrounds/war_bg_dark.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

.wp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.85);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.wp-header,
.wp-scoreboard,
.wp-content-grid,
.wp-warnings-box,
.wp-footer {
    position: relative;
    z-index: 2;
    padding: 0 60px;
}

/* Header */
.wp-header {
    padding-top: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.wp-logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wp-logo-text {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.wp-timestamp {
    font-size: 1.2rem;
    color: #888;
    font-weight: 500;
}

.wp-matchup-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.wp-clan {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 3rem;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.wp-clan.opp {
    color: #FF6B6B;
}

.wp-vs {
    font-size: 2rem;
    font-weight: 900;
    color: #444;
}

.wp-state-badge {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.wp-timer {
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 500;
}

/* Scoreboard */
.wp-scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.wp-score-side {
    text-align: center;
    flex: 1;
}

.wp-stars {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 4.5rem;
    color: #FFD700;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.wp-dest {
    font-size: 1.8rem;
    color: #aaa;
    font-weight: 700;
}

.wp-mid-stats {
    text-align: center;
    padding: 0 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-stat-label {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.wp-stat-val {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Content Grid */
.wp-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    flex: 1;
    padding-top: 40px;
}

.wp-section-header {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(74, 222, 128, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.wp-section-header.warning {
    border-color: #FF4444;
    color: #FF4444;
}

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

.wp-item-row {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 4px solid rgba(255, 255, 255, 0.1);
}

.wp-item-row.priority {
    border-left-color: #FFD700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), transparent);
}

.wp-item-top {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.wp-item-sub {
    font-size: 0.95rem;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

.wp-risk-tag {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.wp-risk-tag.HIGH {
    background: rgba(255, 68, 68, 0.2);
    color: #FF6B6B;
}

.wp-risk-tag.SAFE {
    background: rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}

/* Warnings Box */
.wp-warnings-box {
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 30px;
    background: rgba(255, 68, 68, 0.05);
    border-top: 1px solid rgba(255, 68, 68, 0.2);
}

.wp-warning-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-warning-item {
    font-size: 1.1rem;
    color: #FFcccc;
    padding-left: 20px;
    position: relative;
}

.wp-warning-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FF4444;
}

/* Footer */
.wp-footer {
    padding: 20px 60px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    background: #050508;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   EXPORT BUTTONS (Premium)
   ============================================ */
.warroom-export-btns {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-export:active {
    transform: scale(0.96);
}

.btn-export.discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-export.discord:hover {
    background: linear-gradient(135deg, #4752C4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-export.image {
    background: linear-gradient(135deg, #FFD700, #FFC000);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.btn-export.image:hover {
    background: linear-gradient(135deg, #FFE44D, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-export .icon {
    font-size: 1.2rem;
}