:root {
    --bg-main: #0a0d14;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --bg-panel: #111726;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.3);
    
    --accent-cyan: #00f2fe;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.dark-theme {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

.hidden {
    display: none !important;
}

/* Header */
.app-header {
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-cyan), #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-ppr {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    font-weight: 700;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.55rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid var(--border-glow);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-team-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-weight: 700;
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-team-pill:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}

.team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* Status Pill */
.sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
}

.sync-demo {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sync-live {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* Main Layout */
.app-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Telemetry Bar */
.draft-telemetry-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    align-items: center;
}

.telemetry-card .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.val-round {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}

.val-pick {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.val-team {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.val-turn {
    font-size: 1.1rem;
    font-weight: 700;
}

.highlight-turn {
    color: var(--accent-emerald);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Telemetry Actions */
.telemetry-actions {
    display: flex;
    gap: 0.5rem;
}

/* Balanced Recommendation Banner */
.balanced-rec-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 242, 254, 0.15);
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    font-size: 1.8rem;
    background: rgba(0, 242, 254, 0.15);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-glow);
}

.banner-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.balanced-rec-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.1rem 0;
}

.balanced-rec-banner p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Need Badges */
.need-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.need-high {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.need-med {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.need-low {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.need-cap {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
    opacity: 0.8;
}


/* Buttons */
.btn {
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #00c6ff);
    color: #05101e;
}
.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
    background: rgba(244, 63, 94, 0.25);
}

.btn-pick {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: #ffffff;
}

.btn-why {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-why:hover {
    background: rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}


.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.btn-sm .refresh-icon {
    display: inline-block;
    margin-right: 0.35rem;
    transition: transform 0.3s ease;
}

.btn-sm.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Draft Layout */
.draft-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

.draft-vorp-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.panel-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 0.6rem;
    font-size: 0.75rem;
    opacity: 0.6;
    pointer-events: none;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem 0.35rem 1.8rem;
    width: 210px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.pos-filters {
    display: flex;
    gap: 0.3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--accent-cyan);
    color: #04101e;
    border-color: var(--accent-cyan);
}

.team-filter-wrapper {
    display: flex;
    align-items: center;
}

.team-filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    height: 29px;
}

.team-filter-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.team-filter-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.team-filter-select.active-filter {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.12);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.team-filter-select option {
    background: #0b111e;
    color: var(--text-primary);
    font-weight: 600;
}

/* Bye Week Badges */
.bye-badge {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.bye-badge-sm {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    margin-left: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.bye-clash-highlight {
    background: rgba(244, 63, 94, 0.2) !important;
    color: #fb7185 !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
    font-weight: 800;
}

.bye-cluster-highlight {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    font-weight: 800;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.vorp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.vorp-table th {
    padding: 0.75rem 0.85rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    white-space: nowrap;
}

.vorp-table th.sortable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.vorp-table th.sortable:hover {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.vorp-table th.sorted-asc::after {
    content: ' ▲';
    color: var(--accent-cyan);
    font-size: 0.65rem;
}

.vorp-table th.sorted-desc::after {
    content: ' ▼';
    color: var(--accent-cyan);
    font-size: 0.65rem;
}

.vorp-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vorp-table tr:hover {
    background: var(--bg-card-hover);
}

.vorp-val {
    font-weight: 700;
    color: var(--accent-emerald);
}

/* Tier Badges - Fixed Width & No Wrap */
.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    min-width: 64px;
    text-align: center;
    letter-spacing: 0.3px;
}
.tier-1 { background: rgba(0, 242, 254, 0.18); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.35); }
.tier-2 { background: rgba(139, 92, 246, 0.18); color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.35); }
.tier-3 { background: rgba(245, 158, 11, 0.18); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.35); }
.tier-4 { background: rgba(100, 116, 139, 0.18); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.35); }
.tier-5 { background: rgba(71, 85, 105, 0.18); color: #64748b; border: 1px solid rgba(71, 85, 105, 0.35); }

.cliff-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Sidebar Threats & Roster */
.draft-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.threat-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.threat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-amber);
    transition: all 0.2s ease;
}

.threat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent-cyan);
}

.threat-info {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.threat-team {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.threat-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.threat-need {
    flex-shrink: 0;
    color: var(--accent-amber);
    font-weight: 700;
    font-size: 0.72rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    white-space: nowrap;
    text-align: right;
    letter-spacing: 0.2px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.count-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-weight: 700;
}

.roster-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 380px;
    overflow-y: auto;
}

.roster-item {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* Target Position & Best Available Plan Sidebar Card */
.target-plan-card {
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 8px 24px -6px rgba(0, 242, 254, 0.12);
}

.target-plan-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.target-slot-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.target-slot-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 254, 0.25);
}

.target-slot-item.slot-filled {
    border-left: 3px solid var(--accent-emerald);
    background: rgba(16, 185, 129, 0.04);
}

.target-slot-item.slot-open {
    border-left: 3px solid var(--accent-cyan);
    background: rgba(0, 242, 254, 0.03);
}

.target-slot-item.slot-urgent {
    border-left: 3px solid var(--accent-amber);
    background: rgba(245, 158, 11, 0.07);
}

.target-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.target-slot-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.target-pos-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.target-slot-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-status-filled {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-status-target {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.badge-status-now {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.target-slot-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2px;
}

.target-player-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.target-player-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.target-round-tag {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.target-round-tag.now-highlight {
    color: #fbbf24;
    font-weight: 700;
}

.target-player-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-target-draft {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-cyan), #4facfe);
    color: #04101e;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-target-draft:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.4);
}

/* Lineup Optimizer */
.lineup-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.mode-btn.active {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.total-score-badge {
    text-align: right;
}

.score-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
}

.score-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-emerald);
}

.score-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lineup-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

.lineup-starters-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.starters-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.starter-card {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 1fr auto;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-cyan);
}

.slot-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.player-info-title {
    font-weight: 700;
}

.player-info-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.context-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.proj-pts-badge {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.bench-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.bench-card {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

/* Sit/Start Arena */
.compare-selectors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.select-group {
    flex: 1;
}

.select-input, .text-input {
    width: 100%;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.vs-badge {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--accent-rose);
    padding: 0 0.5rem;
}

.compare-result-box {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
}

.compare-result-box.hidden {
    display: none;
}

.badge-winner {
    background: var(--accent-emerald);
    color: #000000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.recommendation-header h4 {
    margin-top: 0.3rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
}

.advantages-list {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Waiver Radar */
.waiver-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.arbitrage-summary-pill {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.waiver-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

.breakout-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.breakout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.breakout-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}

.breakout-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.signal-score-badge {
    text-align: right;
}

.score-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

.score-lbl {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.breakout-signals-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.8rem 0;
}

.signal-bullet {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.delta-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.drop-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.drop-item {
    padding: 0.6rem 0.8rem;
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.drop-name {
    font-weight: 700;
    color: #ffffff;
}

.drop-sub {
    font-size: 0.7rem;
    color: var(--accent-rose);
}

/* Settings */
.settings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.espn-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.help-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.auth-collapsible {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.auth-collapsible h4 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.optional-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.standings-container {
    max-height: 480px;
    overflow-y: auto;
}

.team-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.app-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Interactive Row Cursor */
.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.clickable-row:hover {
    background: rgba(0, 242, 254, 0.08) !important;
}

.player-name-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.player-name-text {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.88rem;
    white-space: nowrap;
}

.player-sub-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.click-hint {
    font-size: 0.65rem;
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.clickable-row:hover .click-hint {
    opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.82);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-card {
    background: #0f1523;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.15);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: modalScale 0.2s ease forwards;
}

@keyframes modalScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.team-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.modal-title-group h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
}

.archetype-desc {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
}

/* Modal Stats Grid */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-box-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.stat-box-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
}

.highlight-emerald {
    color: var(--accent-emerald) !important;
}

.highlight-cyan {
    color: var(--accent-cyan) !important;
}

.stat-box-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Takeaway Box */
.modal-takeaway-card {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    margin: 1.25rem 0;
}

.modal-takeaway-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-takeaway-card p {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Metrics Section */
.modal-metrics-section h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.metric-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-badges {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.metric-val-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.metric-rating-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.modal-footer {
    margin-top: 0.5rem;
}

/* User Team Settings Card */
.user-team-settings-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.95), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 254, 0.15);
}

.badge-active-team {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.team-picker-container {
    margin: 1.25rem 0 1rem 0;
}

.team-picker-action-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.4rem;
}

.custom-team-select {
    flex: 1;
    max-width: 480px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-team-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.selected-team-details-box {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 242, 254, 0.04);
    border: 1px dashed rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.selected-team-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.selected-team-info-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.selected-team-info-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.selected-team-stats {
    display: flex;
    gap: 1.5rem;
}

.selected-team-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selected-team-stat-val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.selected-team-stat-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Injury Badges & Indicators */
.injury-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.injury-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    line-height: 1;
    height: 16px;
    box-sizing: border-box;
    flex-shrink: 0;
    vertical-align: middle;
}

.injury-q {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.injury-d {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.45);
}

.injury-out, .injury-ir, .injury-pup, .injury-suspended {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.45);
}

/* Dedicated Modal Injury Intelligence Card */
.modal-injury-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.15rem;
    position: relative;
    backdrop-filter: blur(8px);
}

.modal-injury-card.injury-severe {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.35);
}

.injury-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.injury-card-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.injury-type-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.injury-timeline-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.timeline-val {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.injury-notes-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.injury-impact-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    width: fit-content;
}

.modal-injury-card.injury-severe .injury-impact-pill {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.15);
}

.impact-label {
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .draft-layout, .lineup-layout, .waiver-grid-layout, .settings-layout {
        grid-template-columns: 1fr;
    }
    .draft-telemetry-bar {
        grid-template-columns: 1fr 1fr;
    }
    .modal-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}


