:root {
    --color-myteam: #F43F5E;
    --color-captain: #F59E0B;
    --verdict-sell: #EF4444;
    --verdict-sell-bg: rgba(239, 68, 68, 0.08);
    --verdict-monitor: #F59E0B;
    --verdict-monitor-bg: rgba(245, 158, 11, 0.08);
    --verdict-hold: #10B981;
    --verdict-hold-bg: rgba(16, 185, 129, 0.08);
    --verdict-star: #8B5CF6;
    --verdict-star-bg: rgba(139, 92, 246, 0.08);
}
/* STICKY SUB-NAV TABS — page-specific override */
.tabs-container { display: none; }
.tabs-container.visible { display: block; }

.main-content { max-width: 1400px; margin: 0 auto; padding: 16px 24px 100px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.team-input-row { display: flex; align-items: center; gap: 8px; }
.team-id-input { background: var(--surface-1); border: 1px solid var(--border-default); color: var(--text-primary); padding: 8px 12px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 13px; width: 100px; }
.team-id-input:focus { outline: none; border-color: var(--color-myteam); box-shadow: 0 0 0 3px rgba(248,113,113,0.15); }
.btn { padding: 8px 16px; border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-primary { background: var(--color-myteam); color: #fff; }
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--text-primary); }
.btn-secondary:hover { background: var(--surface-3); }
.manager-info { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md); font-size: 13px; margin-bottom: 16px; }
.manager-info.hidden { display: none; }
.manager-name { font-weight: 600; color: var(--color-myteam); }
.manager-stat { color: var(--text-secondary); }
.manager-stat strong { color: var(--text-primary); font-family: var(--font-mono); }

/* ===== VERDICT SECTIONS ===== */
.verdict-section {
    margin-bottom: 16px;
}

.verdict-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
}

.verdict-header:hover .verdict-title {
    opacity: 0.8;
}

.verdict-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verdict-badge.sell {
    background: var(--verdict-sell-bg);
    color: var(--verdict-sell);
}

.verdict-badge.monitor {
    background: var(--verdict-monitor-bg);
    color: var(--verdict-monitor);
}

.verdict-badge.hold {
    background: var(--verdict-hold-bg);
    color: var(--verdict-hold);
}

.verdict-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.verdict-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

.verdict-toggle {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.2s;
}

.verdict-toggle.open {
    transform: rotate(180deg);
}

/* ===== PLAYER GRID ===== */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

/* ===== COMPACT PLAYER CARD ===== */
.player-card {
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all 0.15s;
    cursor: pointer;
}

.player-card:hover {
    border-color: var(--border-emphasis);
    transform: translateY(-1px);
}

.player-card.sell {
    border-left: 3px solid var(--verdict-sell);
}

.player-card.monitor {
    border-left: 3px solid var(--verdict-monitor);
}

.player-card.hold {
    border-left: 3px solid var(--verdict-hold);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.position-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.position-badge.gk { background: rgba(252, 211, 77, 0.2); color: #FCD34D; }
.position-badge.def { background: rgba(52, 211, 153, 0.2); color: #34D399; }
.position-badge.mid { background: rgba(96, 165, 250, 0.2); color: #60A5FA; }
.position-badge.fwd { background: rgba(248, 113, 113, 0.2); color: #F87171; }

.verdict-chip {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.verdict-chip.sell {
    background: var(--verdict-sell-bg);
    color: var(--verdict-sell);
}

.verdict-chip.monitor {
    background: var(--verdict-monitor-bg);
    color: var(--verdict-monitor);
}

.verdict-chip.hold {
    background: var(--verdict-hold-bg);
    color: var(--verdict-hold);
}

/* Verdict reason - the key insight */
.verdict-reason {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Key metrics - only 3 */
.key-metrics {
    display: flex;
    gap: 8px;
}

.metric-box {
    flex: 1;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
}

.metric-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.metric-value.good { color: var(--color-success); }
.metric-value.warning { color: var(--color-warning); }
.metric-value.bad { color: var(--color-error); }
.metric-value.neutral { color: var(--text-primary); }

.metric-trend {
    font-size: 10px;
    margin-left: 2px;
}

/* Fixture strip */
.fixture-strip {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.fixture-chip {
    flex: 1;
    padding: 4px 0;
    text-align: center;
}

/* FDR Dot Indicators (8x8 colored circles) */
.fdr-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
.fdr-dot.fdr-1 { background: var(--fdr-1); }
.fdr-dot.fdr-2 { background: var(--fdr-2); }
.fdr-dot.fdr-3 { background: var(--fdr-3); }
.fdr-dot.fdr-4 { background: var(--fdr-4); }
.fdr-dot.fdr-5 { background: var(--fdr-5); }

.swing-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
.swing-badge.improving {
    background: rgba(74, 222, 128, 0.12);
    color: var(--color-success);
}
.swing-badge.worsening {
    background: rgba(248, 113, 113, 0.12);
    color: var(--color-error);
}

.fixture-team {
    display: block;
    font-size: 11px;
}

.fixture-venue {
    display: block;
    font-size: 9px;
    opacity: 0.7;
}

.card-btn {
    flex: 1;
    padding: 6px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.card-btn:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}

.card-btn.primary {
    background: var(--color-info);
    border-color: var(--color-info);
    color: white;
}

.card-btn.primary:hover {
    filter: brightness(1.1);
}

/* ===== HOLD SECTION COMPACT ===== */
.hold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

/* ===== SQUAD VERDICT LIST (compact rows) ===== */
.squad-verdict-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.squad-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
}
.squad-row:hover { background: var(--surface-2); transform: translateX(2px); }
.squad-row.sell { border-left: 3px solid var(--verdict-sell); }
.squad-row.monitor { border-left: 3px solid var(--verdict-monitor); }
.squad-row.hold { border-left: 3px solid var(--verdict-hold); }
.squad-row.star { border-left: 3px solid var(--verdict-star); }
.squad-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    flex-shrink: 0;
}
.squad-row-name {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.squad-row-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}
.squad-row-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 44px;
}
.squad-row-fixtures {
    display: flex;
    gap: 3px;
}
.squad-row-verdict {
    flex-shrink: 0;
}
.squad-row-rec {
    width: 100%;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px 8px 4px 40px;
    line-height: 1.4;
    font-style: italic;
}
@media (max-width: 768px) {
    .squad-row { flex-wrap: wrap; gap: 8px; }
    .squad-row-stats { flex-wrap: wrap; gap: 8px; }
    .squad-row-fixtures { display: none; }
}

/* ===== DETAIL PANEL (Slide-out) ===== */
.detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.detail-overlay.show {
    display: block;
}

.detail-panel { position: fixed; top: 0; right: 0; width: 100%; max-width: 480px; height: 100%; background: var(--surface-0); border-left: 1px solid var(--border-default); z-index: 201; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease; }

.detail-overlay.show .detail-panel {
    transform: translateX(0);
}

.detail-header {
    position: sticky;
    top: 0;
    background: var(--surface-0);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.detail-close:hover {
    color: var(--text-primary);
}

.detail-body {
    padding: 20px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.insight-item {
    padding: 12px;
    background: var(--surface-1);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.insight-item.positive {
    border-left: 3px solid var(--color-success);
}

.insight-item.warning {
    border-left: 3px solid var(--color-warning);
}

.insight-item.critical {
    border-left: 3px solid var(--color-error);
}

.insight-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.insight-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.replacement-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.replacement-card:hover {
    border-color: var(--color-info);
    background: var(--surface-2);
}

.replacement-rank {
    width: 24px;
    height: 24px;
    background: var(--surface-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.replacement-info {
    flex: 1;
}

.replacement-name {
    font-size: 13px;
    font-weight: 600;
}

.replacement-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.replacement-stats {
    text-align: right;
}

.replacement-primary {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-success);
}

.replacement-secondary {
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===== LOADING ===== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 300;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface-3);
    border-top-color: var(--color-success);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== STATUS ===== */
.status {
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.status.loading {
    color: var(--color-info);
}

.status.success {
    color: var(--color-success);
}

.status.error {
    color: var(--color-error);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .team-input-row {
        flex-wrap: wrap;
    }

    .manager-info {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .hold-grid {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        max-width: 100%;
    }

    .pitch-player-node { width: 36px; height: 36px; font-size: 9px; }
    .pitch-player-name { font-size: 9px; max-width: 50px; }
    .transfer-rec-body { flex-direction: column; }
    .transfer-arrow { transform: rotate(90deg); align-self: center; }
    .detail-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .team-overview { grid-template-columns: 1fr; }
    .health-ring-container { flex-direction: row; padding: 16px; gap: 16px; }
    .health-ring svg { width: 80px; height: 80px; }
    .market-watch-panel { flex-direction: row; flex-wrap: wrap; padding: 12px; }
}

/* ===== TEAM OVERVIEW ===== */
.team-overview { display: grid; grid-template-columns: 180px 1fr 180px; gap: 16px; margin-bottom: 24px; animation: fadeInUp 0.5s ease; }
.health-ring-container { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.health-ring svg { width: 110px; height: 110px; }
.market-watch-panel { display: flex; flex-direction: column; gap: 0; padding: 14px 12px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); font-size: 11px; }
.market-watch-panel .mw-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.market-watch-panel .mw-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.market-watch-panel .mw-arrow { font-size: 10px; }
.market-watch-panel .mw-name { font-size: 11px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-watch-panel .mw-price { font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); }
.market-watch-panel .mw-net { font-size: 10px; font-family: var(--font-mono); }
.market-watch-panel .mw-empty { font-size: 11px; color: var(--text-muted); text-align: center; padding: 12px 0; }
.health-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.health-ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1), stroke 0.3s; }
.health-sublabel { font-size: 12px; color: var(--text-secondary); text-align: center; font-weight: 600; }
.health-factors { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 4px 0 8px; }
.health-factor { font-size: 11px; padding: 4px 8px; border-radius: 4px; display: flex; align-items: center; gap: 4px; }
.health-factor.positive { color: #4ADE80; background: rgba(74,222,128,0.08); }
.health-factor.negative { color: #F87171; background: rgba(248,113,113,0.08); }
.health-factor.warning { color: #FBBF24; background: rgba(251,191,36,0.08); }

/* ===== SQUAD ALERTS PANEL ===== */
.squad-alerts-panel { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; animation: fadeInUp 0.4s ease; }
.squad-alerts-header { padding: 14px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); border-bottom: 1px solid var(--border-default); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.squad-alerts-header:hover { color: var(--text-secondary); }
.squad-alerts-body { padding: 0; }
.squad-alert-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle, var(--border-default)); transition: background 150ms; }
.squad-alert-item:last-child { border-bottom: none; }
.squad-alert-item:hover { background: var(--surface-2); }
.squad-alert-status { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; font-weight: 800; }
.squad-alert-status.status-injured { background: rgba(239,68,68,0.15); color: #EF4444; }
.squad-alert-status.status-doubt { background: rgba(245,158,11,0.15); color: #D97706; }
.squad-alert-status.status-ok { background: rgba(16,185,129,0.12); color: #10B981; }
.squad-alert-info { flex: 1; min-width: 0; }
.squad-alert-name { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.squad-alert-detail { font-size: 10.5px; color: var(--text-secondary); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.squad-alert-chance { font-size: 10px; font-weight: 700; margin-top: 3px; }

/* ===== PITCH ===== */
.pitch-container { background: linear-gradient(180deg, #14472a 0%, #1a5c36 30%, #1a5c36 70%, #14472a 100%); border-radius: var(--radius-lg); padding: 16px 12px 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.pitch-container::before { content: ''; position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; background: rgba(255,255,255,0.12); }
.pitch-container::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 70px; height: 70px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; }
.pitch-rows { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.pitch-row { display: flex; justify-content: center; gap: 8px; padding: 6px 0; }
.pitch-row.bench-row { background: var(--surface-1); margin: 8px -12px -12px; padding: 10px 12px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); gap: 12px; }
.bench-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; display: flex; align-items: center; margin-right: 8px; }

.pitch-player { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: transform 0.2s; min-width: 56px; }
.pitch-player:hover { transform: translateY(-3px); }
.pitch-player-node { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; border: 3px solid; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); position: relative; transition: all 0.3s; }
.pitch-player-node.sell { border-color: var(--verdict-sell); box-shadow: 0 0 14px rgba(239,68,68,0.45); }
.pitch-player-node.monitor { border-color: var(--verdict-monitor); box-shadow: 0 0 12px rgba(245,158,11,0.35); }
.pitch-player-node.hold { border-color: var(--verdict-hold); box-shadow: 0 0 10px rgba(34,197,94,0.3); }
.pitch-player-node.star { border-color: var(--verdict-star); box-shadow: 0 0 16px rgba(167,139,250,0.5); }
.pitch-player-node.injured { opacity: 0.5; }
.captain-badge { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; background: var(--color-captain); border-radius: 50%; font-size: 9px; font-weight: 800; color: #1a1a1a; display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(0,0,0,0.3); }
.pitch-injury-badge { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--verdict-sell); color: #fff; font-size: 7px; font-weight: 800; padding: 1px 4px; border-radius: 6px; white-space: nowrap; line-height: 1.2; border: 1px solid rgba(0,0,0,0.3); z-index: 2; }
.pitch-injury-badge.doubt { background: var(--verdict-monitor); }
.pitch-market-badge { position: absolute; top: -4px; left: -6px; width: 14px; height: 14px; border-radius: 50%; font-size: 8px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.3); z-index: 2; line-height: 1; }
.pitch-market-badge.rising { background: #16a34a; color: #fff; }
.pitch-market-badge.falling { background: var(--verdict-sell); color: #fff; }
.pitch-player-name { font-size: 10px; color: rgba(255,255,255,0.85); font-weight: 600; text-align: center; max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.pitch-player-pts { font-size: 9px; color: rgba(255,255,255,0.5); font-family: var(--font-mono); }

/* ===== TRANSFER RECOMMENDATION ===== */
.transfer-rec { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; animation: fadeInUp 0.6s ease 0.1s both; }
.transfer-rec-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.transfer-rec-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.transfer-rec-body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.transfer-player-out, .transfer-player-in { flex: 1; min-width: 200px; padding: 14px; border-radius: var(--radius-md); }
.transfer-player-out { background: var(--verdict-sell-bg); border: 1px solid rgba(239,68,68,0.2); }
.transfer-player-in { background: var(--verdict-hold-bg); border: 1px solid rgba(34,197,94,0.2); }
.transfer-dir { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.transfer-dir.out { color: var(--verdict-sell); }
.transfer-dir.in { color: var(--verdict-hold); }
.transfer-name { font-size: 15px; font-weight: 700; }
.transfer-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.transfer-arrow { font-size: 24px; color: var(--text-muted); flex-shrink: 0; }
.transfer-savings { padding: 10px 16px; background: var(--surface-2); border-radius: var(--radius-md); text-align: center; flex-shrink: 0; }
.transfer-savings-val { font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.transfer-savings-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

/* ===== VERDICT SECTIONS (enhanced) ===== */
.verdict-section { animation: fadeInUp 0.5s ease both; }
.verdict-section:nth-child(3) { animation-delay: 0.15s; }
.verdict-section:nth-child(4) { animation-delay: 0.25s; }

/* ===== FORM BAR ===== */
.form-bar-container { margin-bottom: 12px; }
.form-bar-label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.form-bar-label span:first-child { color: var(--text-muted); }
.form-bar-label span:last-child { font-family: var(--font-mono); font-weight: 600; }
.form-bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.form-bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.form-bar-fill.good { background: linear-gradient(90deg, var(--verdict-hold), #86EFAC); }
.form-bar-fill.warning { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.form-bar-fill.bad { background: linear-gradient(90deg, #DC2626, var(--verdict-sell)); }
.form-bar-fill.star { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }

.on-bench-tag { font-size: 9px; padding: 2px 6px; background: var(--surface-3); border-radius: 3px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.verdict-chip.star { background: var(--verdict-star-bg); color: var(--verdict-star); }
.verdict-badge.star { background: var(--verdict-star-bg); color: var(--verdict-star); }
.metric-value.star { color: var(--verdict-star); }

/* ===== HOLD/STAR GRID ===== */
.hold-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s; }
.hold-card:hover { border-color: var(--border-emphasis); transform: translateY(-1px); }
.hold-card.star { border-left: 3px solid var(--verdict-star); }
.hold-card.hold-v { border-left: 3px solid var(--verdict-hold); }
.hold-player-info { flex: 1; min-width: 0; }
.hold-player-info .player-name { font-size: 13px; }
.hold-player-info .player-meta { font-size: 11px; }
.hold-stats { display: flex; gap: 12px; flex-shrink: 0; }
.hold-stat { text-align: center; }
.hold-stat .val { font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.hold-stat .lbl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.hold-stat .val.good { color: var(--color-success); }
.hold-stat .val.star { color: var(--verdict-star); }

/* ===== DETAIL PANEL ENHANCEMENTS ===== */
.detail-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-stat { background: var(--surface-1); border-radius: var(--radius-sm); padding: 12px; }
.detail-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.detail-stat-value { font-family: var(--font-mono); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.detail-stat-bar { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.detail-stat-bar-fill { height: 100%; border-radius: 2px; }
.detail-stat-context { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 8px; text-align: center; border-bottom: 1px solid var(--border-default); }
.comparison-table th:first-child { text-align: left; }
.comparison-table td { padding: 8px; font-size: 13px; text-align: center; border-bottom: 1px solid var(--border-subtle); }
.comparison-table td:first-child { text-align: left; color: var(--text-secondary); font-size: 12px; }
.comparison-table .current { color: var(--text-primary); font-family: var(--font-mono); font-weight: 600; }
.comparison-table .replacement { color: var(--color-success); font-family: var(--font-mono); font-weight: 600; }
.comparison-table .better { background: rgba(34,197,94,0.08); }
.comparison-table .worse { background: rgba(239,68,68,0.06); }

.insight-item.info { border-left: 3px solid var(--color-info); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== PLAYER CARD ENHANCEMENTS ===== */
.player-card.star { border-left: 3px solid var(--verdict-star); }
.player-card.star:hover { box-shadow: 0 8px 24px rgba(139,92,246,0.12); }
.player-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }

/* ===== TAB BAR (removed - using .tabs-container now) ===== */

/* ===== TRANSFER MARKET — Sports Terminal Redesign ===== */
.tm-section { margin-bottom: 24px; }
.tm-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--border-default); }
.tm-section-header.rising-header { border-left: 4px solid var(--color-success); }
.tm-section-header.falling-header { border-left: 4px solid var(--color-error); }
.tm-section-header.squad-header { border-left: 4px solid var(--color-info); }
.tm-section-header h2 { font-family: var(--font-display); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex: 1; margin: 0; }
.tm-section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 11px; font-weight: 700; font-family: var(--font-display); }
.tm-section-count.green { background: rgba(16,185,129,0.15); color: var(--color-success); }
.tm-section-count.red { background: rgba(239,68,68,0.15); color: var(--color-error); }
.tm-section-count.blue { background: rgba(59,130,246,0.15); color: var(--color-info); }
.tm-view-all-btn { padding: 5px 14px; border: 1px solid var(--border-default); background: var(--surface-1); border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text-secondary); font-family: inherit; transition: all 0.15s; white-space: nowrap; }
.tm-view-all-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Data Grid */
.tm-table { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 12px; background: transparent; }
.tm-table thead { position: sticky; top: 0; z-index: 2; }
.tm-table th { background: var(--surface-2); backdrop-filter: blur(8px); font-weight: 700; font-size: 9.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; cursor: pointer; white-space: nowrap; user-select: none; padding: 9px 10px; text-align: left; border: none; }
.tm-table th:first-child { border-radius: 8px 0 0 8px; }
.tm-table th:last-child { border-radius: 0 8px 8px 0; }
.tm-table th:hover { color: var(--text-primary); background: var(--surface-3); }
.tm-table th:not(:first-child) { text-align: right; }
.tm-table td { padding: 10px 10px; background: var(--surface-1); border: none; vertical-align: middle; transition: background 0.12s; }
.tm-table td:first-child { border-radius: 8px 0 0 8px; }
.tm-table td:last-child { border-radius: 0 8px 8px 0; }
.tm-table td:not(:first-child) { text-align: right; }
.tm-table tr:hover td { background: var(--surface-2); }
.tm-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border-default); background: var(--surface-0); padding: 4px; }

/* Player Cell */
.tm-player-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tm-player-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0; font-family: var(--font-display); letter-spacing: -0.3px; text-transform: uppercase; }
.tm-player-avatar.gk { background: linear-gradient(135deg, #D97706, #F59E0B); }
.tm-player-avatar.def { background: linear-gradient(135deg, #059669, #34D399); }
.tm-player-avatar.mid { background: linear-gradient(135deg, #2563EB, #60A5FA); }
.tm-player-avatar.fwd { background: linear-gradient(135deg, #DC2626, #F87171); }
.tm-player-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-player-name-row { display: flex; align-items: center; gap: 6px; }
.tm-player-name { font-weight: 700; font-size: 12.5px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-player-sub { display: flex; align-items: center; gap: 4px; }
.tm-pos-pill { padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.tm-pos-pill.gk { background: rgba(252,211,77,0.18); color: #D97706; }
.tm-pos-pill.def { background: rgba(52,211,153,0.18); color: #059669; }
.tm-pos-pill.mid { background: rgba(96,165,250,0.18); color: #2563EB; }
.tm-pos-pill.fwd { background: rgba(248,113,113,0.18); color: #DC2626; }
.tm-team-name { font-size: 10px; color: var(--text-muted); font-weight: 500; }

/* SQUAD Badge — Glowing */
.tm-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.tm-badge.rise { background: rgba(16,185,129,0.12); color: var(--color-success); }
.tm-badge.fall { background: rgba(239,68,68,0.12); color: var(--color-error); }
.tm-badge.stable { background: var(--surface-2); color: var(--text-muted); }
.tm-badge.in-squad { background: var(--color-info); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 8.5px; font-weight: 800; box-shadow: 0 0 8px rgba(59,130,246,0.4); letter-spacing: 0.5px; }

/* Consolidated Price */
.tm-price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tm-price-main { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--text-primary); display: flex; align-items: center; gap: 5px; }
.tm-price-delta { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: 4px; font-size: 9px; font-weight: 700; font-family: var(--font-mono); }
.tm-price-delta.up { background: rgba(16,185,129,0.15); color: #059669; }
.tm-price-delta.down { background: rgba(239,68,68,0.15); color: #DC2626; }
.tm-price-delta.flat { background: var(--surface-2); color: var(--text-muted); }
.tm-price-season { font-size: 9.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* Ownership Ring */
.tm-own-cell { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tm-own-ring svg { display: block; }
.tm-own-pct { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-secondary); }

/* Velocity Indicator */
.tm-velocity { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tm-velocity.surge { color: #059669; }
.tm-velocity.rising { color: var(--color-success); }
.tm-velocity.steady { color: var(--text-muted); }
.tm-velocity.falling { color: var(--color-error); }
.tm-velocity.plummeting { color: #DC2626; }
.tm-velocity-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* Heat Gauge Pressure Bar */
.tm-heat-gauge { position: relative; width: 80px; height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; display: inline-block; vertical-align: middle; }
.tm-heat-fill { position: absolute; top: 0; height: 100%; border-radius: 5px; transition: width 0.3s ease; }
.tm-heat-fill.rising { left: 0; background: linear-gradient(90deg, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0.5) 50%, #10B981 100%); box-shadow: inset -2px 0 4px rgba(16,185,129,0.6); }
.tm-heat-fill.falling { right: 0; left: auto; background: linear-gradient(270deg, rgba(239,68,68,0.1) 0%, rgba(239,68,68,0.5) 50%, #EF4444 100%); box-shadow: inset 2px 0 4px rgba(239,68,68,0.6); }
.tm-heat-fill.rising::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; border-radius: 0 5px 5px 0; background: #10B981; box-shadow: 0 0 6px #10B981, 0 0 12px rgba(16,185,129,0.4); }
.tm-heat-fill.falling::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 5px 0 0 5px; background: #EF4444; box-shadow: 0 0 6px #EF4444, 0 0 12px rgba(239,68,68,0.4); }
.tm-heat-fill.pulse { animation: heatPulse 1.2s ease-in-out infinite; }
@keyframes heatPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.tm-pressure-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; }
.tm-heat-pct { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; min-width: 28px; text-align: right; }
.tm-heat-pct.rise { color: var(--color-success); }
.tm-heat-pct.fall { color: var(--color-error); }
.tm-heat-pct.stable { color: var(--text-muted); }

/* Summary Cards */
.tm-summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.tm-summary-card { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: 10px; padding: 14px 16px; text-align: center; transition: transform 0.15s, box-shadow 0.15s; }
.tm-summary-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.tm-summary-card.accent-green { border-left: 3px solid var(--color-success); }
.tm-summary-card.accent-red { border-left: 3px solid var(--color-error); }
.tm-summary-card .tm-sc-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 2px; }
.tm-summary-card .tm-sc-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Position Filter Pills */
.tm-pos-filter { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.tm-pos-filter::-webkit-scrollbar { display: none; }
.tm-pos-btn { padding: 6px 14px; border: 1px solid var(--border-default); background: var(--surface-1); border-radius: 20px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text-secondary); font-family: inherit; transition: all 0.15s; white-space: nowrap; }
.tm-pos-btn:hover { background: var(--surface-2); color: var(--text-primary); }
.tm-pos-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }

/* Bento Grid: Rising + Falling side-by-side */
.tm-bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.tm-bento-panel { background: var(--surface-0); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 12px; overflow: hidden; }
.tm-squad-row td { background: rgba(59,130,246,0.04) !important; }
.tm-squad-row:hover td { background: rgba(59,130,246,0.08) !important; }

/* Net Transfers */
.tm-net { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tm-net.positive { color: var(--color-success); }
.tm-net.negative { color: var(--color-error); }

@media (max-width: 768px) {
    .tm-summary-cards { grid-template-columns: repeat(2, 1fr); }
    .tm-bento-grid { grid-template-columns: 1fr; }
    .tm-table { font-size: 11px; }
    .tm-player-cell { min-width: 140px; }
    .tm-player-avatar { width: 26px; height: 26px; font-size: 9px; }
    .tm-heat-gauge { width: 60px; }
}
@media (max-width: 500px) {
    .tm-player-name { max-width: 90px; }
    .tm-heat-gauge { width: 46px; }
    .tm-summary-cards { gap: 8px; }
    .tm-summary-card { padding: 10px 8px; }
    .tm-summary-card .tm-sc-value { font-size: 20px; }
}

/* ===== TRANSFER WIZARD (Control Room) ===== */
.tw-container { padding: 0; }
.tw-intro { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); margin-bottom: 16px; font-size: 0.8rem; color: var(--text-secondary); }
.tw-intro span { font-size: 1.2rem; }

/* Budget Bar — sticky at top */
.tw-budget-bar-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--surface-0); border: 1px solid var(--border-default); border-radius: var(--radius-lg); margin-bottom: 16px; flex-wrap: wrap; position: sticky; top: 56px; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tw-budget-section { display: flex; flex-direction: column; gap: 1px; }
.tw-budget-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 700; }
.tw-budget-val { font-size: 15px; font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); }
.tw-budget-val.success { color: var(--color-success); }
.tw-budget-val.danger { color: var(--color-error); }
.tw-budget-val.warning { color: var(--color-warning); }
.tw-budget-sep { width: 1px; height: 28px; background: var(--border-default); flex-shrink: 0; }
.tw-confirm-btn { padding: 8px 20px; border: none; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; background: var(--color-success); color: #fff; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.tw-confirm-btn:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.tw-confirm-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; background: var(--surface-3); color: var(--text-muted); }

/* 2-column Room Layout */
.tw-room-layout { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .tw-room-layout { grid-template-columns: 1fr; } }
.tw-board-col { display: flex; flex-direction: column; gap: 12px; }
.tw-scout-col { position: sticky; top: 120px; }

/* Draft Board — Slot Cards */
.tw-board { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.tw-board-header { padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border-default); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.tw-board-body { padding: 8px; }
.tw-slot-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border-default); border-radius: var(--radius-md); margin-bottom: 8px; transition: all 0.2s; cursor: pointer; }
.tw-slot-card:last-child { margin-bottom: 0; }
.tw-slot-card:hover { border-color: var(--border-emphasis); }
.tw-slot-card.active { border-color: var(--color-info); box-shadow: 0 0 0 1px var(--color-info); background: rgba(96,165,250,0.06); }
.tw-slot-card.complete { border-color: var(--color-success); }
.tw-slot-num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-mono); flex-shrink: 0; color: var(--text-secondary); }
.tw-slot-card.active .tw-slot-num { background: var(--color-info); color: #fff; }
.tw-slot-card.complete .tw-slot-num { background: var(--color-success); color: #000; }
.tw-slot-out { flex: 1; min-width: 0; }
.tw-slot-out-name { font-weight: 600; font-size: 12px; color: var(--color-error); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-slot-out-meta { font-size: 10px; color: var(--text-muted); }
.tw-slot-arrow { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }
.tw-slot-in { flex: 1; min-width: 0; }
.tw-slot-in-name { font-weight: 600; font-size: 12px; color: var(--color-success); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-slot-in-empty { font-size: 11px; color: var(--text-muted); font-style: italic; }
.tw-slot-in-meta { font-size: 10px; color: var(--text-muted); }
.tw-slot-remove { width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(248,113,113,0.12); color: var(--color-error); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; flex-shrink: 0; transition: background 0.15s; }
.tw-slot-remove:hover { background: rgba(248,113,113,0.25); }
.tw-add-slot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 2px dashed var(--border-default); border-radius: var(--radius-md); background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; width: 100%; font-family: var(--font-body); margin-top: 8px; }
.tw-add-slot:hover { border-color: var(--color-info); color: var(--color-info); background: rgba(96,165,250,0.04); }
.tw-add-slot:disabled { opacity: 0.3; cursor: not-allowed; }
.tw-board-actions { display: flex; gap: 8px; padding: 8px; }

/* Buttons */
.tw-btn { padding: 8px 16px; border: none; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.tw-btn-primary { background: var(--color-info); color: #fff; }
.tw-btn-primary:hover:not(:disabled) { filter: brightness(1.15); }
.tw-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.tw-btn-secondary { background: var(--surface-2); color: var(--text-primary); border: 1px solid var(--border-default); }
.tw-btn-secondary:hover { background: var(--surface-3); }
.tw-btn-danger { background: rgba(248,113,113,0.1); color: var(--color-error); border: 1px solid rgba(248,113,113,0.2); }
.tw-btn-danger:hover { background: rgba(248,113,113,0.2); }

/* Scout Panel */
.tw-scout { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.tw-scout-header { padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border-default); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.tw-scout-body { max-height: 600px; overflow-y: auto; }
.tw-scout-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 12px; }

/* Squad Picker (inside Scout) */
.tw-squad-picker { padding: 0; }
.tw-pos-group { border-bottom: 1px solid var(--border-subtle); }
.tw-pos-group:last-child { border-bottom: none; }
.tw-pos-group-label { padding: 6px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); background: var(--surface-2); }
.tw-squad-row { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--border-subtle); transition: background 0.15s; cursor: pointer; }
.tw-squad-row:last-child { border-bottom: none; }
.tw-squad-row:hover { background: rgba(255,255,255,0.03); }
.tw-squad-row.selected { background: rgba(96,165,250,0.08); }
.tw-squad-row.sold { opacity: 0.4; pointer-events: none; text-decoration: line-through; }
.tw-squad-row.on-bench { opacity: 0.6; }
.tw-sr-name { flex: 1; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tw-sr-pill { font-size: 10px; font-family: var(--font-mono); font-weight: 600; color: var(--text-secondary); min-width: 38px; text-align: right; }
.tw-sr-verdict { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; text-transform: uppercase; flex-shrink: 0; }
.tw-sr-verdict.sell { background: var(--verdict-sell-bg); color: var(--verdict-sell); }
.tw-sr-verdict.monitor { background: var(--verdict-monitor-bg); color: var(--verdict-monitor); }
.tw-sr-verdict.hold { background: var(--verdict-hold-bg); color: var(--verdict-hold); }
.tw-sr-verdict.star { background: var(--verdict-star-bg); color: var(--verdict-star); }
.tw-sr-fixture { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
.tw-sr-pos { font-size: 10px; font-weight: 700; color: var(--text-muted); min-width: 28px; }

/* Market List (inside Scout) */
.tw-market-header { padding: 8px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border-default); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tw-market-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); flex: 1; }
.tw-market-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.tw-filter-pill { padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border-default); background: transparent; color: var(--text-muted); font-size: 10px; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: var(--font-body); }
.tw-filter-pill:hover { border-color: var(--border-emphasis); color: var(--text-primary); }
.tw-filter-pill.active { background: var(--color-info); border-color: var(--color-info); color: #fff; }
.tw-market-list { padding: 0; }
.tw-market-row { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 11px; cursor: pointer; transition: background 0.15s; }
.tw-market-row:last-child { border-bottom: none; }
.tw-market-row:hover { background: rgba(96,165,250,0.05); }
.tw-market-row.previewed { background: rgba(96,165,250,0.08); border-left: 3px solid var(--color-info); }
.tw-market-rank { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; font-family: var(--font-mono); flex-shrink: 0; color: var(--text-muted); }
.tw-market-row:nth-child(-n+3) .tw-market-rank { background: rgba(96,165,250,0.15); color: var(--color-info); }
.tw-market-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-market-price { font-family: var(--font-mono); font-weight: 600; color: var(--text-secondary); font-size: 10px; }
.tw-market-stat { font-family: var(--font-mono); font-weight: 600; font-size: 10px; }
.tw-market-empty { padding: 20px 14px; text-align: center; color: var(--text-muted); font-size: 11px; }

/* Comparison Panel (inside Scout) */
.tw-compare-panel { padding: 16px; }
.tw-compare-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tw-compare-back { background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-family: var(--font-body); }
.tw-compare-back:hover { color: var(--text-primary); }
.tw-compare-pick-btn { padding: 6px 16px; border: none; border-radius: var(--radius-md); background: var(--color-success); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: all 0.15s; }
.tw-compare-pick-btn:hover { filter: brightness(1.15); }
.tw-compare-pick-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tw-compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; }
.tw-compare-player-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; text-align: center; }
.tw-compare-player-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; text-align: center; }
.tw-compare-vs { display: flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.tw-compare-stats { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tw-compare-stat-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.tw-compare-stat-row:last-child { border-bottom: none; }
.tw-compare-stat-val { font-size: 13px; font-weight: 700; font-family: var(--font-mono); }
.tw-compare-stat-val.left { text-align: right; }
.tw-compare-stat-val.right { text-align: left; }
.tw-compare-stat-val.better { color: var(--color-success); }
.tw-compare-stat-val.worse { color: var(--color-error); }
.tw-compare-stat-label { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.tw-compare-fixtures-title { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin: 12px 0 6px; }

/* Tabular Nums */
.tw-sr-pill, .tw-budget-val, .tw-market-price, .tw-market-stat, .tw-compare-stat-val,
.tw-slot-out-meta, .tw-slot-in-meta { font-variant-numeric: tabular-nums; }

/* Responsive */
@media (max-width: 900px) { .tw-scout-col { position: static; } }
@media (max-width: 600px) {
    .tw-budget-bar-top { gap: 10px; padding: 8px 12px; }
    .tw-budget-section { min-width: 60px; }
    .tw-confirm-btn { width: 100%; justify-content: center; margin-top: 4px; }
    .tw-compare-grid { grid-template-columns: 1fr; gap: 12px; }
    .tw-compare-vs { display: none; }
}

/* Batch-Select Mode */
.tw-squad-row.pending-sell { background: rgba(248,113,113,0.08); border-left: 3px solid var(--color-error); }
.tw-squad-row.pending-sell .tw-sr-name { text-decoration: line-through; color: var(--color-error); }
.tw-sr-check { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border-emphasis); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; transition: all 0.15s; color: transparent; }
.tw-squad-row.pending-sell .tw-sr-check { background: var(--color-error); border-color: var(--color-error); color: #fff; }
.tw-squad-row.sold .tw-sr-check { background: var(--surface-3); border-color: var(--surface-3); color: var(--text-muted); font-size: 8px; }
.tw-squad-footer { padding: 12px 14px; border-top: 1px solid var(--border-default); display: flex; align-items: center; gap: 10px; }
.tw-squad-count { font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); }

/* Rich Market Rows */
.tw-market-list .tw-market-row { flex-wrap: wrap; align-items: flex-start; padding: 10px 14px; }
.tw-market-row-detail { display: flex; gap: 6px; width: 100%; margin-top: 4px; align-items: center; padding-left: 26px; }
.tw-market-mini-stat { font-size: 10px; font-family: var(--font-mono); font-weight: 600; padding: 1px 5px; border-radius: 3px; background: var(--surface-2); }
.tw-market-mini-stat.good { color: var(--color-success); background: rgba(74,222,128,0.1); }
.tw-market-mini-stat.poor { color: var(--color-error); background: rgba(248,113,113,0.1); }
.tw-market-score { padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; font-family: var(--font-mono); background: rgba(96,165,250,0.12); color: var(--color-info); flex-shrink: 0; }

/* Market Tabs */
.tw-market-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-default); }
.tw-market-tab { flex: 1; padding: 8px 12px; background: none; border: none; font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--text-muted); cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid transparent; transition: all 0.15s; }
.tw-market-tab:hover { color: var(--text-secondary); }
.tw-market-tab.active { color: var(--color-info); border-bottom-color: var(--color-info); }
.tw-market-search { padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border-default); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 12px; color: var(--text-primary); margin: 8px 14px; width: calc(100% - 28px); box-sizing: border-box; }
.tw-market-search:focus { outline: none; border-color: var(--color-info); }
.tw-market-sort { display: flex; gap: 4px; padding: 4px 14px 8px; }

/* Comparison Sections */
.tw-compare-section { margin-top: 16px; }
.tw-compare-section:first-child { margin-top: 0; }
.tw-compare-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); padding: 8px 0; margin-bottom: 4px; border-bottom: 1px solid var(--border-default); display: flex; align-items: center; gap: 6px; }
.tw-compare-trend { font-size: 10px; margin-left: 4px; }
.tw-compare-trend.up { color: var(--color-success); }
.tw-compare-trend.down { color: var(--color-error); }
.tw-compare-trend.flat { color: var(--text-muted); }
.tw-compare-sub { font-size: 9px; font-weight: 400; color: var(--text-muted); }

/* Routes to Points Comparison */
.tw-routes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.tw-routes-side { min-width: 0; }
.tw-routes-player-label { font-size: 11px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.tw-route-bar-row { display: flex; align-items: center; gap: 4px; font-size: 10px; margin-bottom: 3px; }
.tw-route-bar-name { width: 56px; flex-shrink: 0; color: var(--text-secondary); font-weight: 500; font-size: 9px; }
.tw-route-bar-track { flex: 1; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.tw-route-bar-fill { height: 100%; border-radius: 3px; transition: width 300ms ease; }
.tw-route-bar-detail { width: 52px; flex-shrink: 0; text-align: right; color: var(--text-muted); font-size: 9px; font-family: var(--font-mono); }
.tw-route-count { text-align: center; font-size: 16px; font-weight: 700; color: var(--color-success); font-family: var(--font-mono); }
.tw-route-count-label { text-align: center; font-size: 9px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.tw-routes-none { text-align: center; font-size: 10px; color: var(--text-muted); padding: 8px 0; }

/* Multi-Metric Trend Charts */
.tw-chart-wrap { margin-top: 8px; }
.tw-chart-legend { display: flex; justify-content: center; gap: 12px; margin-bottom: 6px; font-size: 10px; color: var(--text-muted); flex-wrap: wrap; }
.tw-chart-legend-dot { display: inline-block; width: 8px; height: 3px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }
.tw-chart-legend-sold { border-bottom: 2px solid; border-style: solid; }
.tw-chart-legend-cand { border-bottom: 2px dashed; border-style: dashed; }
.tw-chart-canvas { width: 100%; height: 140px; border-radius: var(--radius-md); background: var(--surface-2); }
.tw-chart-tabs { display: flex; gap: 0; margin-bottom: 4px; }
.tw-chart-tab { flex: 1; padding: 5px 8px; background: none; border: none; border-bottom: 2px solid transparent; font-family: var(--font-body); font-size: 10px; font-weight: 700; color: var(--text-muted); cursor: pointer; text-align: center; transition: all 0.15s; text-transform: uppercase; letter-spacing: 0.3px; }
.tw-chart-tab:hover { color: var(--text-secondary); }
.tw-chart-tab.active { color: var(--text-primary); border-bottom-color: var(--color-info); }

/* ===== LINEUP WIZARD ===== */
.lw-container { padding: 0; }
.lw-intro { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); margin-bottom: 16px; font-size: 0.8rem; color: var(--text-secondary); }
.lw-intro span { font-size: 1.2rem; }
.lw-steps { display: flex; gap: 2px; margin-bottom: 20px; padding: 4px; background: var(--surface-1); border-radius: var(--radius-lg); border: 1px solid var(--border-default); }
.lw-step { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; background: transparent; border: none; color: var(--text-muted); font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.lw-step:hover:not(.disabled) { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
.lw-step.active { background: #A78BFA; color: #fff; box-shadow: 0 2px 8px rgba(167,139,250,0.3); }
.lw-step.completed { color: var(--color-success); }
.lw-step.disabled { cursor: not-allowed; opacity: 0.4; }
.lw-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.lw-step.active .lw-step-num { background: rgba(255,255,255,0.2); }
.lw-step.completed .lw-step-num { background: var(--color-success); color: #000; }
@media (max-width: 600px) { .lw-step span.lw-step-label { display: none; } }
.lw-panel { display: none; }
.lw-panel.active { display: block; }
.lw-squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.lw-player-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; position: relative; }
.lw-player-card:hover { border-color: var(--border-emphasis); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.lw-player-card.available { border-color: rgba(74,222,128,0.3); }
.lw-player-card.excluded { border-color: rgba(248,113,113,0.3); opacity: 0.55; }
.lw-player-card.excluded .lw-toggle { background: var(--color-error); border-color: var(--color-error); color: #fff; }
.lw-toggle { width: 20px; height: 20px; border: 2px solid var(--border-emphasis); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; font-size: 12px; background: var(--color-success); border-color: var(--color-success); color: #fff; }
.lw-player-card.excluded .lw-toggle { background: var(--color-error); border-color: var(--color-error); }
.lw-info { flex: 1; min-width: 0; }
.lw-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-meta { font-size: 11px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lw-stats { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.lw-stat { text-align: center; }
.lw-stat-val { font-size: 13px; font-weight: 700; font-family: var(--font-mono); }
.lw-stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.lw-summary-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md); margin-bottom: 16px; flex-wrap: wrap; }
.lw-summary-item { display: flex; flex-direction: column; gap: 2px; }
.lw-summary-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
.lw-summary-value { font-size: 16px; font-weight: 700; font-family: var(--font-mono); }
.lw-pitch { background: linear-gradient(180deg,#1a472a 0%,#1d5031 20%,#1a472a 40%,#1d5031 60%,#1a472a 80%,#1d5031 100%); border-radius: 12px; padding: 24px 16px; margin-bottom: 20px; border: 2px solid rgba(74,222,128,0.2); }
.lw-pitch-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lw-pitch-row:last-child { margin-bottom: 0; }
.lw-pitch-player { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; max-width: 90px; cursor: pointer; transition: all 0.15s; padding: 4px; border-radius: 8px; }
.lw-pitch-player:hover { background: rgba(255,255,255,0.08); }
.lw-pitch-player.swap-source { background: rgba(96,165,250,0.25); box-shadow: 0 0 0 2px #60A5FA; border-radius: 8px; }
.lw-pitch-player.swap-target { background: rgba(245,158,11,0.2); box-shadow: 0 0 0 2px #F59E0B; border-radius: 8px; }
.lw-pitch-player.bench { opacity: 0.6; }
.lw-pitch-node { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.lw-pitch-name { font-size: 10px; font-weight: 600; text-align: center; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.lw-pitch-score { font-size: 10px; font-weight: 700; font-family: var(--font-mono); padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,0.3); }
.lw-bench-section { background: var(--surface-1); border-radius: 12px; padding: 16px; border: 1px solid var(--border-default); margin-bottom: 20px; }
.lw-bench-header { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; text-align: center; }
.lw-bench-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.lw-swap-hint { text-align: center; padding: 8px; font-size: 12px; color: #F59E0B; font-weight: 600; margin-bottom: 8px; background: rgba(245,158,11,0.08); border-radius: 8px; border: 1px dashed rgba(245,158,11,0.3); }
.lw-captain-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; margin-bottom: 8px; }
.lw-captain-card:hover { border-color: var(--border-emphasis); transform: translateY(-1px); }
.lw-captain-card.selected-captain { border-color: #F59E0B; background: rgba(245,158,11,0.08); box-shadow: 0 0 0 1px #F59E0B; }
.lw-captain-card.selected-vc { border-color: #9CA3AF; background: rgba(156,163,175,0.08); box-shadow: 0 0 0 1px #9CA3AF; }
.lw-captain-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-family: var(--font-mono); flex-shrink: 0; }
.lw-captain-info { flex: 1; min-width: 0; }
.lw-captain-name { font-weight: 600; font-size: 13px; }
.lw-captain-meta { font-size: 11px; color: var(--text-secondary); display: flex; gap: 8px; flex-wrap: wrap; }
.lw-captain-actions { display: flex; gap: 6px; flex-shrink: 0; }
.lw-cap-btn { padding: 4px 10px; border: 1px solid var(--border-default); border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; font-family: var(--font-body); background: transparent; color: var(--text-secondary); }
.lw-cap-btn:hover { border-color: var(--border-emphasis); color: var(--text-primary); }
.lw-cap-btn.active-c { background: #F59E0B; border-color: #F59E0B; color: #000; }
.lw-cap-btn.active-vc { background: #9CA3AF; border-color: #9CA3AF; color: #000; }
.lw-final-section { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; }
.lw-final-header { font-weight: 700; font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.lw-change-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; border-bottom: 1px solid var(--border-subtle); }
.lw-change-row:last-child { border-bottom: none; }
.lw-change-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; }
.lw-change-badge.promoted { background: rgba(74,222,128,0.12); color: var(--color-success); }
.lw-change-badge.benched { background: rgba(248,113,113,0.12); color: var(--color-error); }
.lw-change-badge.captain { background: rgba(245,158,11,0.12); color: #F59E0B; }

/* ===== LINEUP WIZARD — SPLIT SCREEN LAYOUT ===== */
.lw-clipboard-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.lw-lineup-col { min-width: 0; }
.lw-context-col { position: sticky; top: 20px; min-width: 0; }
@media (max-width: 900px) {
    .lw-clipboard-layout { grid-template-columns: 1fr; }
    .lw-context-col { position: static; }
}

/* High-density lineup table */
.lw-pos-group { margin-bottom: 2px; }
.lw-pos-header { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; border-radius: 6px 6px 0 0; }
.lw-pos-header.pos-gk { background: rgba(217,119,6,0.12); color: #D97706; }
.lw-pos-header.pos-def { background: rgba(5,150,105,0.12); color: #059669; }
.lw-pos-header.pos-mid { background: rgba(37,99,235,0.12); color: #2563EB; }
.lw-pos-header.pos-fwd { background: rgba(220,38,38,0.12); color: #DC2626; }
.lw-pos-header.pos-bench { background: rgba(156,163,175,0.1); color: var(--text-muted); }

.lw-row { display: grid; grid-template-columns: 32px 1.5fr 80px 44px 44px 48px; align-items: center; gap: 4px; padding: 7px 10px; background: var(--surface-1); border-bottom: 1px solid var(--border-subtle); cursor: pointer; transition: all 0.15s; font-size: 12px; }
.lw-row:last-child { border-bottom: none; }
.lw-row:hover { background: var(--surface-2); }
.lw-row.lw-row-selected { background: rgba(167,139,250,0.1); box-shadow: inset 3px 0 0 #A78BFA; }
.lw-row.lw-row-bench { opacity: 0.65; }
.lw-row.lw-row-swap-source { background: rgba(96,165,250,0.15); box-shadow: inset 3px 0 0 #60A5FA; }
.lw-row.lw-row-swap-target { background: rgba(245,158,11,0.1); }

.lw-row-swap-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border-default); background: transparent; color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: all 0.15s; padding: 0; }
.lw-row-swap-btn:hover { border-color: var(--border-emphasis); color: var(--text-primary); background: var(--surface-3); }
.lw-row-swap-btn.active { border-color: #60A5FA; color: #60A5FA; background: rgba(96,165,250,0.1); }

.lw-row-player { display: flex; flex-direction: column; min-width: 0; }
.lw-row-player-name { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-row-player-team { font-size: 10px; color: var(--text-muted); }
.lw-row-fixture { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.lw-row-fixture .fdr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lw-row-stat { text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.lw-row-stat-label { font-size: 8px; color: var(--text-muted); text-transform: uppercase; text-align: center; }

/* Column headers for the lineup table */
.lw-col-headers { display: grid; grid-template-columns: 32px 1.5fr 80px 44px 44px 48px; gap: 4px; padding: 4px 10px; font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.lw-col-headers span:nth-child(n+3) { text-align: center; }

/* Context/Comparison Panel (Right Column) */
.lw-ctx-panel { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.lw-ctx-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.lw-ctx-empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.4; }
.lw-ctx-header { padding: 12px 16px; border-bottom: 1px solid var(--border-default); display: flex; align-items: center; gap: 10px; }
.lw-ctx-header-name { font-weight: 700; font-size: 14px; flex: 1; }
.lw-ctx-header-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; font-size: 16px; }
.lw-ctx-header-close:hover { color: var(--text-primary); }
.lw-ctx-body { padding: 16px; }
.lw-ctx-section { margin-bottom: 16px; }
.lw-ctx-section:last-child { margin-bottom: 0; }
.lw-ctx-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; }
.lw-ctx-score-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.lw-ctx-score-label { width: 70px; color: var(--text-secondary); font-size: 11px; flex-shrink: 0; }
.lw-ctx-score-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.lw-ctx-score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.lw-ctx-score-val { width: 36px; text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 11px; flex-shrink: 0; }
.lw-ctx-fixtures-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.lw-ctx-fixture-chip { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1px solid var(--border-subtle); background: var(--surface-2); }
.lw-ctx-fixture-chip .fdr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lw-ctx-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lw-ctx-stat-box { text-align: center; padding: 8px 4px; background: var(--surface-2); border-radius: 6px; }
.lw-ctx-stat-box-val { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.lw-ctx-stat-box-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }

/* Comparison mode */
.lw-ctx-compare { display: grid; grid-template-columns: 1fr 1fr; }
.lw-ctx-compare-col { padding: 16px; }
.lw-ctx-compare-col:first-child { border-right: 1px solid var(--border-subtle); }
.lw-ctx-compare-header { text-align: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.lw-ctx-compare-name { font-weight: 700; font-size: 13px; }
.lw-ctx-compare-meta { font-size: 10px; color: var(--text-muted); }
.lw-ctx-compare-stat { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; border-bottom: 1px solid var(--border-subtle); }
.lw-ctx-compare-stat:last-child { border-bottom: none; }
.lw-ctx-compare-stat-label { color: var(--text-muted); font-size: 10px; text-transform: uppercase; text-align: center; flex: 1; }
.lw-ctx-compare-stat-val { font-family: var(--font-mono); font-weight: 700; font-size: 12px; min-width: 40px; }
.lw-ctx-compare-stat-val.better { color: var(--color-success); }
.lw-ctx-compare-stat-val.worse { color: var(--text-muted); }

@media (max-width: 600px) {
    .lw-row { grid-template-columns: 28px 1.2fr 64px 40px 48px; }
    .lw-row .lw-row-stat:nth-child(5) { display: none; }
    .lw-col-headers { grid-template-columns: 28px 1.2fr 64px 40px 48px; }
    .lw-col-headers span:nth-child(5) { display: none; }
    .lw-ctx-compare { grid-template-columns: 1fr; }
    .lw-ctx-compare-col:first-child { border-right: none; border-bottom: 1px solid var(--border-subtle); }
}

/* ===== FDR & SHARED STYLES ===== */
.planner-fdr-cell { border-radius: var(--radius-sm); padding: 4px 3px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; line-height: 1.2; text-align: center; color: #000; }
.planner-fdr-cell .fdr-opp { font-size: 0.62rem; font-weight: 600; display: block; }
.planner-fdr-cell .fdr-ha { font-size: 0.5rem; font-weight: 400; opacity: 0.7; }
.fdr-1 { background: var(--fdr-1); }
.fdr-2 { background: var(--fdr-2); }
.fdr-3 { background: var(--fdr-3); }
.fdr-4 { background: var(--fdr-4); color: #fff; }
.fdr-5 { background: var(--fdr-5); color: #fff; }

/* Search panel (shared by Draft & Transfer Wizard) */
.planner-search-wrap { position: relative; margin-bottom: 16px; }
.planner-search-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-0); color: var(--text-primary); font-family: var(--font-body); font-size: 0.85rem; outline: none; }
.planner-search-input:focus { border-color: var(--color-info); box-shadow: 0 0 0 2px rgba(96,165,250,0.2); }
.planner-search-input::placeholder { color: var(--text-muted); }
.planner-search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-1); border: 1px solid var(--border-emphasis); border-radius: var(--radius-md); max-height: 240px; overflow-y: auto; z-index: 10; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.planner-search-dropdown.show { display: block; }
.planner-search-item { padding: 8px 12px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-subtle); font-size: 0.8rem; }
.planner-search-item:hover { background: var(--surface-3); }
.planner-search-item-name { font-weight: 600; color: var(--text-primary); }
.planner-search-item-meta { font-size: 0.7rem; color: var(--text-muted); }

/* Transfer comparison styles (shared) */
.transfer-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 16px; }
.transfer-vs-col { padding: 12px; text-align: center; }
.transfer-vs-col:first-child { border-right: 1px solid var(--border-subtle); }
.transfer-vs-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.transfer-vs-meta { font-size: 0.7rem; color: var(--text-secondary); }
.transfer-vs-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px; }
.transfer-fdr-strip { display: flex; gap: 3px; justify-content: center; margin: 8px 0; }
.transfer-fdr-badge { border-radius: 4px; padding: 3px 5px; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; text-align: center; min-width: 36px; color: #000; }
.transfer-fdr-badge.fdr-4, .transfer-fdr-badge.fdr-5 { color: #fff; }
.transfer-stat-table { width: 100%; border-collapse: collapse; }
.transfer-stat-table td { padding: 5px 8px; font-size: 0.78rem; border-bottom: 1px solid var(--border-subtle); }
.transfer-stat-table .stat-label { color: var(--text-secondary); text-align: left; width: 35%; }
.transfer-stat-table .stat-val { text-align: center; font-family: var(--font-mono); font-weight: 600; width: 32.5%; }
.transfer-stat-table .stat-val.better { color: var(--color-success); background: rgba(74,222,128,0.06); }
.transfer-stat-table .stat-val.worse { color: var(--color-error); background: rgba(248,113,113,0.06); }
.transfer-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-info); margin: 12px 0 6px; padding: 4px 0; border-bottom: 1px solid rgba(96,165,250,0.15); }

/* Intro banner */
.planner-intro { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); margin-bottom: 16px; font-size: 0.8rem; color: var(--text-secondary); }
.planner-intro span { font-size: 1.2rem; }

/* Squad Overview Table */
.planner-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: var(--surface-1); }
.planner-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.planner-table th { position: sticky; top: 0; background: var(--surface-2); padding: 5px 4px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); text-align: center; border-bottom: 1px solid var(--border-emphasis); white-space: nowrap; z-index: 2; }
.planner-table th:first-child { text-align: left; padding-left: 10px; min-width: 140px; position: sticky; left: 0; z-index: 3; }
.planner-table td { padding: 4px 3px; text-align: center; border-bottom: 1px solid var(--border-subtle); font-size: 0.75rem; vertical-align: middle; }
.planner-table td:first-child { text-align: left; padding-left: 10px; position: sticky; left: 0; background: inherit; z-index: 1; }
.planner-table tr { background: var(--surface-1); transition: background 0.15s; }
.planner-table tr:hover { background: var(--surface-2); }
.planner-table tr.bench-row { opacity: 0.55; }
.planner-table tr.bench-row:hover { opacity: 0.8; }

/* Position group headers */
.planner-pos-header td { background: var(--surface-0) !important; padding: 6px 12px !important; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--border-emphasis); }
.planner-pos-header.pos-gk td { color: var(--position-gk); }
.planner-pos-header.pos-def td { color: var(--position-def); }
.planner-pos-header.pos-mid td { color: var(--position-mid); }
.planner-pos-header.pos-fwd td { color: var(--position-fwd); }
.planner-bench-header td { background: var(--surface-0) !important; padding: 8px 12px !important; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-top: 2px solid var(--border-emphasis); border-bottom: 1px solid var(--border-default); }

/* Player name cell */
.planner-player { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.planner-player-name { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; cursor: pointer; }
.planner-player-name:hover { color: var(--color-info); text-decoration: underline; }
.planner-player-team { font-size: 0.65rem; color: var(--text-muted); }
.planner-player-price { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); }
.planner-captain-badge { font-size: 0.7rem; }

/* Stat badges */
.planner-stat { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; }
.planner-stat-label { font-size: 0.55rem; font-weight: 400; color: var(--text-muted); display: block; line-height: 1; margin-bottom: 1px; }
.planner-stat.good { color: var(--color-success); }
.planner-stat.avg { color: var(--text-secondary); }
.planner-stat.poor { color: var(--color-error); }
.planner-stat-group { display: flex; flex-direction: column; align-items: center; gap: 1px; }

/* Trend arrows */
.planner-trend { font-size: 0.6rem; margin-left: 1px; }
.planner-trend.up { color: var(--color-success); }
.planner-trend.down { color: var(--color-error); }
.planner-trend.flat { color: var(--text-muted); }

/* FDR column width */
.planner-fdr { width: 58px; min-width: 58px; padding: 4px 2px !important; }

/* Column group headers */
.planner-col-group { font-size: 0.6rem; padding: 2px 4px !important; color: var(--text-muted); border-bottom: none !important; }
.planner-col-season { background: rgba(96,165,250,0.06) !important; }
.planner-col-recent { background: rgba(74,222,128,0.06) !important; }

/* Formation label */
.planner-formation-label { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--text-primary); padding: 4px 12px; background: var(--surface-2); border-radius: var(--radius-md); border: 1px solid var(--border-default); margin-left: 4px; }

/* Reset button */
.planner-reset-btn { padding: 5px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--surface-1); color: var(--text-secondary); font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.planner-reset-btn:hover { border-color: var(--color-error); color: var(--color-error); background: rgba(239,68,68,0.06); }

/* Transfer panel */
.planner-transfer-panel { max-width: 520px; }

/* Pitch View */
.planner-pitch-wrap { margin-bottom: 16px; }
.planner-pitch-container { background: linear-gradient(180deg, #14472a 0%, #1a5c36 30%, #1a5c36 70%, #14472a 100%); border-radius: var(--radius-lg); padding: 20px 12px 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.planner-pitch-container::before { content: ''; position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; background: rgba(255,255,255,0.10); }
.planner-pitch-container::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; border: 1px solid rgba(255,255,255,0.10); border-radius: 50%; }
.planner-pitch-rows { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.planner-pitch-row { display: flex; justify-content: center; gap: 6px; padding: 4px 0; }
.planner-pitch-row.planner-bench-row { background: rgba(0,0,0,0.35); margin: 10px -12px -12px; padding: 10px 12px 8px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); gap: 8px; position: relative; }
.planner-bench-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--surface-2); color: var(--text-muted); padding: 2px 10px; border-radius: 10px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 1px solid var(--border-default); }

.planner-pitch-player { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: all 0.2s; min-width: 58px; max-width: 72px; padding: 4px 2px; border-radius: var(--radius-md); border: 2px solid transparent; }
.planner-pitch-player:hover { transform: translateY(-2px); background: rgba(255,255,255,0.05); }
.planner-pitch-player-node { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: white; border: 3px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); position: relative; transition: all 0.3s; }
.planner-pitch-player-node.pos-gk { border-color: var(--position-gk); }
.planner-pitch-player-node.pos-def { border-color: var(--position-def); }
.planner-pitch-player-node.pos-mid { border-color: var(--position-mid); }
.planner-pitch-player-node.pos-fwd { border-color: var(--position-fwd); }
.planner-pitch-player-name { font-size: 9px; color: rgba(255,255,255,0.85); font-weight: 600; text-align: center; max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,0.7); line-height: 1.1; }
.planner-pitch-captain { position: absolute; top: -4px; right: -4px; width: 15px; height: 15px; background: var(--color-captain); border-radius: 50%; font-size: 8px; font-weight: 800; color: #1a1a1a; display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(0,0,0,0.3); }
.planner-pitch-injured { opacity: 0.45; }

/* FDR chip below player node on pitch */
.planner-fdr-chip { border-radius: 6px; padding: 1px 5px; font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; line-height: 1.3; text-align: center; color: #000; min-width: 36px; white-space: nowrap; }
.planner-fdr-chip .fdr-chip-ha { font-size: 0.45rem; font-weight: 400; opacity: 0.7; margin-left: 1px; }
.planner-fdr-stack { display: flex; flex-direction: column; gap: 1px; align-items: center; }
.planner-fdr-stack .planner-fdr-chip { font-size: 0.5rem; padding: 0px 4px; min-width: 32px; }
.planner-fdr-cell-stack { display: flex; flex-direction: column; gap: 1px; }
.planner-fdr-cell-stack .planner-fdr-cell { font-size: 0.6rem; padding: 1px 4px; min-height: 18px; }

/* Swap interaction states */
.planner-pitch-player.swap-selected { border-color: var(--color-captain); background: rgba(252,211,77,0.12); animation: plannerSwapPulse 1.2s ease-in-out infinite; }
.planner-pitch-player.swap-target { border-color: rgba(96,165,250,0.6); border-style: dashed; background: rgba(96,165,250,0.08); cursor: pointer; }
.planner-pitch-player.swap-target:hover { border-color: var(--color-info); background: rgba(96,165,250,0.18); transform: translateY(-3px) scale(1.04); }
.planner-pitch-player.swap-ineligible { opacity: 0.3; cursor: not-allowed; }
@keyframes plannerSwapPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(252,211,77,0.4); } 50% { box-shadow: 0 0 12px 4px rgba(252,211,77,0.25); } }

/* Swap column in table */
.planner-swap-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-default); background: var(--surface-2); color: var(--text-muted); font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.planner-swap-btn:hover { border-color: var(--color-info); color: var(--color-info); background: rgba(96,165,250,0.1); }
.planner-swap-btn.swap-active { border-color: var(--color-captain); color: var(--color-captain); background: rgba(252,211,77,0.12); animation: plannerSwapPulse 1.2s ease-in-out infinite; }
tr.planner-swap-highlight { background: rgba(96,165,250,0.08) !important; }
tr.planner-swap-highlight td:first-child::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-info); }
tr.planner-swap-highlight:hover { background: rgba(96,165,250,0.15) !important; }
tr.planner-swap-ineligible { opacity: 0.35; }

/* Lineup change indicator */
.planner-lineup-hint { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.15); border-radius: var(--radius-md); margin-bottom: 12px; font-size: 0.75rem; color: var(--text-secondary); }
.planner-lineup-hint span { font-size: 1rem; }

/* ===== H2H MATCHUP CARDS ===== */
.h2h-card { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.h2h-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border-default); }
.h2h-header-teams { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.h2h-header-meta { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--text-muted); }
.h2h-venue { font-size: 0.62rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.h2h-venue-home { background: rgba(74,222,128,0.12); color: var(--color-success); }
.h2h-venue-away { background: rgba(248,113,113,0.12); color: var(--color-error); }

.h2h-body { padding: 12px 14px; }

/* Power comparison grid */
.h2h-power-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.h2h-power-row { display: grid; grid-template-columns: 90px 1fr 44px 8px 44px 1fr 90px; align-items: center; gap: 0; font-size: 0.75rem; }
.h2h-power-label { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: left; }
.h2h-power-label-r { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: right; }
.h2h-power-bar { height: 6px; border-radius: 3px; }
.h2h-power-bar-l { direction: rtl; }
.h2h-power-bar-l .h2h-power-bar-fill { border-radius: 3px; float: right; }
.h2h-power-bar-r .h2h-power-bar-fill { border-radius: 3px; }
.h2h-power-bar-fill { height: 100%; min-width: 2px; transition: width 0.4s ease; }
.h2h-power-val { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; text-align: center; padding: 2px 4px; border-radius: var(--radius-sm); min-width: 36px; }
.h2h-vs { text-align: center; font-size: 0.6rem; color: var(--text-muted); font-weight: 700; }

.h2h-tl-green { color: var(--color-success); }
.h2h-tl-amber { color: var(--text-secondary); }
.h2h-tl-red { color: var(--color-error); }
.h2h-bg-green { background: var(--color-success); }
.h2h-bg-amber { background: var(--text-secondary); }
.h2h-bg-red { background: var(--color-error); }

/* Tug-of-war xG bars */
.h2h-xg-section { margin-bottom: 12px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.h2h-xg-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; }
.h2h-xg-row { margin-bottom: 8px; }
.h2h-xg-labels { display: flex; justify-content: space-between; font-size: 0.68rem; margin-bottom: 3px; }
.h2h-xg-labels span:first-child { font-weight: 600; color: var(--text-primary); }
.h2h-xg-labels span:last-child { font-weight: 600; color: var(--text-primary); }
.h2h-xg-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.h2h-xg-bar-left { height: 100%; transition: width 0.4s ease; border-radius: 5px 0 0 5px; }
.h2h-xg-bar-right { height: 100%; transition: width 0.4s ease; border-radius: 0 5px 5px 0; }
.h2h-xg-stat-label { font-size: 0.6rem; color: var(--text-muted); text-align: center; margin-top: 1px; }

/* CS% row */
.h2h-cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.h2h-cs-item { text-align: center; }
.h2h-cs-label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); margin-bottom: 2px; }
.h2h-cs-val { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; }

/* FPL Verdict */
.h2h-verdict { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-md); border-left: 3px solid var(--color-info); }
.h2h-verdict-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-info); margin-bottom: 4px; }
.h2h-verdict-text { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }
.h2h-verdict-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-right: 4px; }
.h2h-verdict-tag.attacking { background: rgba(74,222,128,0.12); color: var(--color-success); }
.h2h-verdict-tag.defending { background: rgba(96,165,250,0.12); color: var(--color-info); }
.h2h-verdict-tag.tricky { background: rgba(245,158,11,0.12); color: #F59E0B; }
.h2h-verdict-tag.tough { background: rgba(248,113,113,0.12); color: var(--color-error); }

/* Responsive */
@media (max-width: 600px) {
    .h2h-power-row { grid-template-columns: 70px 1fr 36px 6px 36px 1fr 70px; font-size: 0.7rem; }
    .h2h-power-label, .h2h-power-label-r { font-size: 0.58rem; }
}

/* ===== GW DRAFT ===== */
.draft-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.draft-gw-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.draft-gw-pill { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-default); background: var(--surface-1); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; font-family: var(--font-mono); cursor: pointer; transition: all 0.2s; white-space: nowrap; position: relative; }
.draft-gw-pill:hover { border-color: var(--color-info); color: var(--color-info); background: rgba(96,165,250,0.08); }
.draft-gw-pill.active { background: var(--color-info); color: #fff; border-color: var(--color-info); box-shadow: 0 2px 8px rgba(96,165,250,0.3); }
.draft-gw-pill .draft-pill-badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 8px; font-size: 0.55rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.draft-pill-badge.transfer-badge { background: var(--color-warning); color: #000; }
.draft-pill-badge.chip-badge { background: var(--color-primary); color: #fff; }
.draft-pill-badge.dgw-badge { background: var(--color-info); color: #000; top: auto; bottom: -6px; font-size: 0.5rem; padding: 0 3px; min-width: 22px; }

.draft-meta-row { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.draft-meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-secondary); padding: 4px 10px; background: var(--surface-2); border-radius: var(--radius-md); border: 1px solid var(--border-default); }
.draft-meta-item strong { font-family: var(--font-mono); color: var(--text-primary); }
.draft-meta-item.hit-warning { border-color: var(--color-error); color: var(--color-error); background: rgba(239,68,68,0.06); }
.draft-meta-item.hit-warning strong { color: var(--color-error); }

.draft-chip-selector { display: flex; gap: 4px; }
.draft-chip-btn { padding: 4px 10px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--surface-2); color: var(--text-secondary); font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.draft-chip-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.draft-chip-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.draft-chip-btn.used { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.draft-actions { display: flex; gap: 6px; }
.draft-action-btn { padding: 5px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--surface-1); color: var(--text-secondary); font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.draft-action-btn:hover { border-color: var(--color-info); color: var(--color-info); }
.draft-action-btn.danger:hover { border-color: var(--color-error); color: var(--color-error); background: rgba(239,68,68,0.06); }

.draft-transfer-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 4px; font-size: 0.6rem; font-weight: 700; background: rgba(16,185,129,0.15); color: var(--color-success); margin-left: 4px; }

.draft-transfer-summary { margin-top: 12px; padding: 12px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.draft-transfer-summary-title { font-size: 0.75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.draft-transfer-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.78rem; }
.draft-transfer-item:last-child { border-bottom: none; }
.draft-transfer-out { color: var(--color-error); font-weight: 600; }
.draft-transfer-in { color: var(--color-success); font-weight: 600; }
.draft-transfer-arrow { color: var(--text-muted); font-size: 0.7rem; }
.draft-transfer-revert { cursor: pointer; color: var(--text-muted); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-default); background: var(--surface-2); margin-left: auto; }
.draft-transfer-revert:hover { color: var(--color-error); border-color: var(--color-error); }

.draft-pitch-new-badge { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); background: var(--color-success); color: #fff; font-size: 0.5rem; font-weight: 700; padding: 1px 4px; border-radius: 3px; white-space: nowrap; }

.draft-pitch-transfer-btn { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary); color: #fff; border: 1.5px solid var(--surface-1); font-size: 0.55rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s; z-index: 3; line-height: 1; }
.planner-pitch-player:hover .draft-pitch-transfer-btn { opacity: 1; }
.draft-pitch-transfer-btn:hover { background: var(--color-success); transform: scale(1.15); }
@media (max-width: 768px) { .draft-pitch-transfer-btn { opacity: 1; width: 20px; height: 20px; font-size: 0.6rem; } }

.draft-chip-overlay { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 14px; border-radius: 20px; z-index: 2; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }

.draft-ft-input { width: 36px; text-align: center; padding: 2px 4px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface-0); color: var(--text-primary); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }

.draft-save-indicator { font-size: 0.65rem; color: var(--text-muted); font-style: italic; }

/* Plan selector */
.draft-plan-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.draft-plan-tabs { display: flex; gap: 4px; }
.draft-plan-tab { position: relative; padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--border-default); background: var(--surface-1); color: var(--text-secondary); font-size: 0.78rem; font-weight: 700; font-family: var(--font-display); cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.draft-plan-tab:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(99,102,241,0.06); }
.draft-plan-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.draft-plan-tab .plan-tab-badge { font-size: 0.55rem; font-weight: 700; background: rgba(255,255,255,0.2); padding: 1px 5px; border-radius: 8px; }
.draft-plan-tab.active .plan-tab-badge { background: rgba(255,255,255,0.25); }
.draft-plan-tab:not(.active) .plan-tab-badge { background: var(--surface-2); color: var(--text-muted); }
.draft-plan-del { font-size: 0.6rem; width: 16px; height: 16px; border-radius: 50%; border: none; background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; padding: 0; line-height: 1; }
.draft-plan-tab:not(.active) .draft-plan-del { background: var(--surface-2); color: var(--text-muted); }
.draft-plan-del:hover { background: var(--color-error); color: #fff; }
.draft-plan-add { padding: 7px 12px; border-radius: 20px; border: 1.5px dashed var(--border-default); background: transparent; color: var(--text-muted); font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.draft-plan-add:hover { border-color: var(--color-primary); color: var(--color-primary); border-style: solid; }
.draft-plan-actions { display: flex; gap: 4px; margin-left: auto; }
.draft-plan-action-btn { padding: 5px 10px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--surface-1); color: var(--text-secondary); font-size: 0.68rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.draft-plan-action-btn:hover { border-color: var(--color-info); color: var(--color-info); }

/* Compare plans side-by-side */
.draft-compare-wrapper { display: flex; gap: 12px; margin-top: 8px; flex-wrap: nowrap; }
.draft-compare-col { flex: 1; min-width: 0; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 12px; overflow: hidden; }
.draft-compare-col .planner-pitch-container { transform: scale(0.85); transform-origin: top center; }
.draft-compare-header { text-align: center; font-size: 0.8rem; font-weight: 700; font-family: var(--font-display); color: var(--text-primary); margin-bottom: 8px; padding: 6px 10px; border-radius: var(--radius-md); background: var(--surface-2); }
.draft-compare-meta { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.draft-compare-meta-item { font-size: 0.68rem; color: var(--text-secondary); padding: 3px 8px; background: var(--surface-0); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); }
.draft-compare-meta-item strong { font-family: var(--font-mono); color: var(--text-primary); }
.draft-compare-transfers { margin-top: 8px; }
.draft-compare-transfer-item { font-size: 0.68rem; padding: 3px 0; color: var(--text-secondary); }
.draft-compare-close { margin-bottom: 10px; }

@media (max-width: 768px) {
    .draft-toolbar { flex-direction: column; align-items: stretch; }
    .draft-meta-row { margin-left: 0; }
    .draft-compare-wrapper { flex-direction: column; }
    .draft-compare-col .planner-pitch-container { transform: scale(1); }
    .draft-plan-bar { flex-direction: column; align-items: stretch; }
    .draft-plan-actions { margin-left: 0; }
}

/* ===== MANAGER'S NOTEPAD ===== */
.planner-layout-wrapper { display: flex; gap: 0; overflow-x: hidden; position: relative; align-items: flex-start; }
.planner-layout-wrapper .planner-pitch-wrap { flex: 1; min-width: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.notepad-toggle-tab { position: absolute; right: 0; top: 80px; z-index: 5; display: flex; align-items: center; gap: 4px; writing-mode: vertical-rl; text-orientation: mixed; padding: 10px 5px; background: var(--surface-2); border: 1px solid var(--border-default); border-right: none; border-radius: var(--radius-md) 0 0 var(--radius-md); cursor: pointer; color: var(--text-secondary); font-size: 0.7rem; font-weight: 600; font-family: var(--font-display); letter-spacing: 0.5px; transition: all 0.2s; box-shadow: -2px 0 8px rgba(0,0,0,0.08); }
.notepad-toggle-tab:hover { color: var(--color-primary); background: var(--surface-1); }
.notepad-toggle-tab .notepad-tab-icon { writing-mode: horizontal-tb; display: flex; }
.notepad-toggle-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.notepad-panel { width: 320px; flex-shrink: 0; transform: translateX(0); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1); opacity: 1; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); display: flex; flex-direction: column; margin-left: 16px; overflow: hidden; position: sticky; top: 24px; align-self: flex-start; max-height: calc(100vh - 48px); overflow-y: auto; }
.notepad-panel.collapsed { width: 0; opacity: 0; margin-left: 0; padding: 0; border-color: transparent; pointer-events: none; }
.notepad-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border-default); flex-shrink: 0; }
.notepad-header-title { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-display); flex: 1; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.notepad-save-status { font-size: 0.65rem; color: var(--color-success); font-weight: 600; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.notepad-save-status.visible { opacity: 1; }
.notepad-close-btn { width: 24px; height: 24px; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--surface-2); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; transition: all 0.2s; flex-shrink: 0; }
.notepad-close-btn:hover { color: var(--color-error); border-color: var(--color-error); }
.notepad-gw-label { font-size: 0.6rem; color: var(--text-muted); font-family: var(--font-mono); font-weight: 600; background: var(--surface-2); padding: 2px 6px; border-radius: var(--radius-sm); white-space: nowrap; }
.notepad-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#fpl-notes-area { width: 100%; flex: 1; min-height: 200px; resize: none; border: none; outline: none; background: transparent; color: var(--text-primary); font-family: var(--font-body); font-size: 0.8rem; line-height: 1.6; padding: 12px 14px; box-sizing: border-box; }
#fpl-notes-area::placeholder { color: var(--text-muted); font-style: italic; }
@media (max-width: 768px) {
    .planner-layout-wrapper { flex-direction: column; }
    .notepad-toggle-tab { position: static; writing-mode: horizontal-tb; border-radius: var(--radius-md); border: 1px solid var(--border-default); margin-bottom: 8px; padding: 8px 14px; box-shadow: none; align-self: flex-end; }
    .notepad-panel { width: 100% !important; margin-left: 0; }
    .notepad-panel.collapsed { width: 0 !important; height: 0; margin: 0; }
}

/* ===== STATS HUB (Tabbed Interface) ===== */
.gw-stats-hub { margin-top: 16px; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.hub-tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border-default); background: var(--surface-2); }
.hub-tab { flex: 1; padding: 10px 16px; font-size: 0.78rem; font-weight: 600; font-family: var(--font-display); color: var(--text-secondary); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hub-tab:hover { color: var(--text-primary); background: var(--surface-1); }
.hub-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); background: var(--surface-1); }
.hub-panel { display: none; padding: 16px; }
.hub-panel.active { display: block; }
@media (max-width: 768px) {
    .hub-tab { padding: 8px 10px; font-size: 0.72rem; }
    .hub-panel { padding: 10px; }
}

/* ===== NEWS TAB ===== */
.news-container { max-width: 1060px; margin: 0 auto; padding: 24px; }
.news-filter-bar { display: flex; gap: 6px; padding: 5px; background: var(--surface-2); border-radius: var(--radius-md); border: 1px solid var(--border-default); margin-bottom: 24px; overflow-x: auto; }
.news-filter-btn { padding: 7px 16px; font-size: 12px; font-weight: 500; color: var(--text-secondary); background: transparent; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all 150ms; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.news-filter-btn:hover { color: var(--text-primary); background: var(--surface-1); }
.news-filter-btn.active { color: var(--color-primary); background: var(--surface-1); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.news-filter-btn .filter-icon { font-size: 13px; line-height: 1; }
.news-filter-btn .btn-icon { display: inline-flex; align-items: center; }
.news-filter-btn .btn-icon svg { width: 14px; height: 14px; stroke-width: 2; }
.news-filter-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.news-filter-top-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-sub-bar { margin-bottom: 0; }
.news-team-select { padding: 7px 30px 7px 12px; font-size: 12px; font-weight: 500; color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-sm); cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; min-width: 140px; }
.news-team-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
.news-count { opacity: 0.6; font-weight: 400; }
.news-section { margin-bottom: 32px; }
.news-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.news-section-title svg { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; }
.news-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border-default); }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Hero card — banner image with 50/50 split */
.news-card-hero { grid-column: 1 / -1; display: flex; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; transition: transform 200ms, box-shadow 200ms; position: relative; min-height: 220px; }
.news-card-hero:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }
.news-card-hero .news-card-img { width: 50%; min-height: 220px; flex-shrink: 0; object-fit: cover; }
.news-card-hero .news-card-graphic { width: 50%; min-height: 220px; flex-shrink: 0; }
.news-card-hero .news-card-content { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.news-card-hero .news-card-headline { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-hero .news-card-detail { font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: 3; line-clamp: 3; color: var(--text-secondary); }
.news-card-hero .news-card-footer { margin-top: auto; padding-top: 14px; }
.news-card-hero.is-squad { border: 2px solid rgba(245,158,11,0.5); box-shadow: 0 0 24px rgba(245,158,11,0.12); }

/* Standard card — vertical image + content */
.news-card { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; transition: transform 200ms, box-shadow 200ms; position: relative; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }
.news-card.is-squad { border: 2px solid rgba(245,158,11,0.5); box-shadow: 0 0 16px rgba(245,158,11,0.1); }

/* Card image (real thumbnail) */
.news-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* Programmatic graphic fallback */
.news-card-graphic { height: 140px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.news-card-graphic-bg { position: absolute; inset: 0; opacity: 0.12; }
.news-card-graphic-icon { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.news-card-graphic-icon svg { width: 36px; height: 36px; stroke-width: 1.6; }
.news-card-hero .news-card-graphic-icon svg { width: 48px; height: 48px; }
.news-card-graphic-kit { font-size: 32px; font-weight: 900; opacity: 0.5; font-family: var(--font-mono); }
.news-card-hero .news-card-graphic-kit { font-size: 42px; }
.news-card-graphic-team { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; opacity: 0.6; }

/* Card content */
.news-card-content { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.news-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.news-card-category { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.news-card-category svg.cat-icon { width: 12px; height: 12px; stroke-width: 2.2; flex-shrink: 0; }
.news-card-category.cat-injury { background: rgba(239,68,68,0.15); color: #EF4444; }
.news-card-category.cat-price { background: rgba(59,130,246,0.12); color: #3B82F6; }
.news-card-category.cat-transfer { background: rgba(16,185,129,0.12); color: #10B981; }
.news-card-category.cat-external { background: rgba(139,92,246,0.1); color: #8B5CF6; }
.news-card-category.cat-bbc { background: rgba(187,29,29,0.12); color: #BB1D1D; }
.news-card-category.cat-pl { background: rgba(56,0,106,0.12); color: #38006A; }
.news-card-category.cat-sky { background: rgba(0,98,178,0.12); color: #0062B2; }
.news-card-category.cat-guardian { background: rgba(5,81,126,0.12); color: #05517E; }
/* Club-colored team tag */
.news-card-team-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
/* Squad impact badge — prominent glow */
.news-card-squad-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; background: rgba(245,158,11,0.18); color: #D97706; box-shadow: 0 0 8px rgba(245,158,11,0.2); animation: squadBadgePulse 2s ease-in-out infinite; }
@keyframes squadBadgePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245,158,11,0.2); }
    50% { box-shadow: 0 0 16px rgba(245,158,11,0.35); }
}
.news-card-time { font-size: 10.5px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.news-card-headline { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-detail { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-link { color: var(--text-primary); text-decoration: none; }
.news-card-link:hover { color: var(--color-info); }

/* Data footer */
.news-card-footer { display: flex; align-items: center; gap: 0; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-default); flex-wrap: wrap; }
.news-card-stat { font-size: 10.5px; color: var(--text-muted); padding: 0 8px; border-right: 1px solid var(--border-default); white-space: nowrap; line-height: 1; }
.news-card-stat:first-child { padding-left: 0; }
.news-card-stat:last-of-type { border-right: none; }
.news-card-stat strong { color: var(--text-primary); font-weight: 600; }

/* CTA — subtle text link with arrow */
.news-card-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--color-primary); background: none; border: none; text-decoration: none; transition: gap 150ms, color 150ms; white-space: nowrap; cursor: pointer; padding: 0; }
.news-card-cta:hover { gap: 6px; color: var(--color-info); }
.news-card-cta svg { width: 13px; height: 13px; }

.news-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px; }
.news-loading { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 768px) {
    .news-container { padding: 16px; }
    .news-grid { grid-template-columns: 1fr; gap: 12px; }
    .news-card-hero { flex-direction: column; min-height: auto; }
    .news-card-hero .news-card-img { width: 100%; min-height: 160px; }
    .news-card-hero .news-card-graphic { width: 100%; min-height: 140px; }
    .news-card-hero .news-card-content { padding: 18px; }
    .news-card-hero .news-card-headline { font-size: 18px; }
    .news-filter-bar { gap: 4px; padding: 3px; }
    .news-filter-btn { padding: 5px 10px; font-size: 11px; }
    .news-filter-top-row { gap: 6px; }
    .news-team-select { min-width: 120px; font-size: 11px; }
    .news-card-graphic { height: 100px; }
    .news-card-headline { font-size: 14px; }
    .news-card-footer { gap: 4px; }
    .news-card-cta { margin-left: 0; margin-top: 6px; }
}

/* === PRICE WATCH — Stock Market Theme === */
.price-watch-panel {
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}
.price-watch-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-default);
    background: rgba(59,130,246,0.04);
}
.price-watch-header:hover { background: rgba(59,130,246,0.08); }
.price-watch-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #10B981;
    background: rgba(16,185,129,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}
.price-watch-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: pricePulse 1.5s ease-in-out infinite;
}
@keyframes pricePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.price-ticker-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-default);
    scrollbar-width: none;
}
.price-ticker-strip::-webkit-scrollbar { display: none; }
.price-ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 11px;
    font-family: var(--font-mono);
    white-space: nowrap;
    border-right: 1px solid var(--border-default);
    flex-shrink: 0;
}
.price-ticker-item:last-child { border-right: none; }
.price-ticker-name {
    font-weight: 700;
    font-size: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
}
.price-ticker-val {
    font-weight: 600;
    font-size: 11px;
}
.price-ticker-val.bull { color: #10B981; }
.price-ticker-val.bear { color: #EF4444; }
.price-ticker-val.flat { color: var(--text-muted); }
.price-ticker-arrow { font-size: 10px; }
.price-watch-body { padding: 12px 16px; }
.price-watch-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.price-watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.price-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: border-color 0.15s;
}
.price-card:hover { border-color: var(--border-active); }
.price-card.bear-card { border-left: 3px solid #EF4444; }
.price-card.bull-card { border-left: 3px solid #10B981; }
.price-card.stable-card { border-left: 3px solid var(--text-muted); }
.price-card-arrow {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.price-card-arrow.bear { color: #EF4444; }
.price-card-arrow.bull { color: #10B981; }
.price-card-info { flex: 1; min-width: 0; }
.price-card-name {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.price-card-team {
    font-size: 10px;
    color: var(--text-muted);
}
.price-card-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 2px;
}
.price-card-price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    text-align: right;
}
.price-card-price.bear { color: #EF4444; }
.price-card-price.bull { color: #10B981; }
.price-card-volume {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.price-vol-bar {
    width: 3px;
    border-radius: 1px;
    background: var(--text-muted);
}
.price-vol-bar.bear { background: #EF4444; }
.price-vol-bar.bull { background: #10B981; }

/* ===== DARK MODE ===== */
[data-theme="dark"] .loading-overlay { background: rgba(15, 23, 42, 0.85); }