/* ============================================================
   STRIKER ORACLE AI — Styles
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Gold */
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-mid: #DAA520;
    /* Teal */
    --teal: #00C9A7;
    --teal-dark: #0D9488;
    /* Accent */
    --purple: #7B2FF7;
    /* Status */
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --orange: #f97316;
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    /* Transition */
    --transition: 0.3s ease;
}

/* Dark theme (default) */
[data-theme="dark"] {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f38;
    --bg-card: rgba(15, 31, 56, 0.85);
    --bg-card-solid: #132744;
    --bg-glass: rgba(0, 201, 167, 0.04);
    --border-color: rgba(255, 215, 0, 0.15);
    --border-subtle: rgba(0, 201, 167, 0.1);
    --text-primary: #f0f6fc;
    --text-secondary: rgba(240, 246, 252, 0.7);
    --text-muted: rgba(240, 246, 252, 0.4);
    --shadow-glow: 0 0 60px rgba(0, 201, 167, 0.1);
    --input-bg: rgba(0, 201, 167, 0.08);
    --header-bg: rgba(10, 22, 40, 0.95);
    --overlay-bg: rgba(10, 22, 40, 0.9);
}

/* Light theme — Inter Miami Pink/Rosé (30% dunkler) */
[data-theme="light"] {
    --bg-primary: #b08590;
    --bg-secondary: #b88d98;
    --bg-card: rgba(30, 15, 25, 0.55);
    --bg-card-solid: #3a1e2e;
    --bg-glass: rgba(30, 15, 25, 0.25);
    --border-color: rgba(255, 215, 0, 0.35);
    --border-subtle: rgba(255, 215, 0, 0.18);
    --text-primary: #fff5f8;
    --text-secondary: rgba(255, 245, 248, 0.88);
    --text-muted: rgba(255, 245, 248, 0.6);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.12);
    --input-bg: rgba(30, 15, 25, 0.35);
    --header-bg: rgba(160, 115, 128, 0.97);
    --overlay-bg: rgba(160, 115, 128, 0.92);
}

/* Light mode: Sidebar dunkel mit Pink-Akzent */
[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #2a0f1e 0%, #3c1428 50%, #2a0f1e 100%);
    color: #f5e8ef;
}
[data-theme="light"] .sidebar-item { color: rgba(240, 246, 252, 0.65); }
[data-theme="light"] .sidebar-item:hover { color: var(--teal); background: rgba(0, 201, 167, 0.08); }
[data-theme="light"] .sidebar-item.active { color: var(--gold); background: rgba(255, 215, 0, 0.08); }
[data-theme="light"] .sidebar-brand { color: var(--gold); }
[data-theme="light"] .sidebar-version { color: rgba(240, 246, 252, 0.4); }

/* Light mode: Header mit dunklem Pink-Kontrast */
[data-theme="light"] #main-header {
    background: linear-gradient(135deg, rgba(40,15,28,0.97), rgba(60,20,40,0.97)) !important;
    color: #f5e8ef;
}
[data-theme="light"] .header-brand { -webkit-text-fill-color: unset; color: var(--gold); }
[data-theme="light"] .brand-ai { color: var(--teal); }
[data-theme="light"] .header-status-text { color: var(--green); }
[data-theme="light"] .header-btn { color: var(--gold); }
[data-theme="light"] #theme-toggle { color: var(--teal); }
[data-theme="light"] .header-live-dot { background: #ef4444; }
[data-theme="light"] .header-live-text { color: #ef4444; }

/* Light mode: Titel-Gradients stärker/dunkler */
[data-theme="light"] .section-title {
    background: linear-gradient(135deg, var(--gold-dark), #1a1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .hero-title .title-gold {
    background: linear-gradient(135deg, var(--gold-dark), #8B6914, var(--gold-dark));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .hero-title .title-cyan {
    background: linear-gradient(135deg, var(--teal-dark), #087a6d, var(--teal-dark));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .card-title { color: #fff5f8; }

/* Light Mode: ALLE Kacheln türkisblau mit Gold-Glow (wie Stats-Bar)
   KEINE Kachel darf den gleichen Hintergrund wie der pinke BG haben! */
html[data-theme="light"] .match-card,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .tracker-form-card,
html[data-theme="light"] .tracker-stats-card,
html[data-theme="light"] .bet-history-card,
html[data-theme="light"] .top-pick-card,
html[data-theme="light"] .insider-card,
html[data-theme="light"] .slip-config,
html[data-theme="light"] .slip-output,
html[data-theme="light"] .league-card,
html[data-theme="light"] .live-match-card,
html[data-theme="light"] .community-card,
html[data-theme="light"] .ranking-card,
html[data-theme="light"] .profil-card,
html[data-theme="light"] .analysis-result,
html[data-theme="light"] .analysis-placeholder,
html[data-theme="light"] .chat-card,
html[data-theme="light"] .profil-main,
html[data-theme="light"] .profil-sidebar,
html[data-theme="light"] .ranking-table,
html[data-theme="light"] .profil-badges {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.25), rgba(0, 160, 130, 0.35), rgba(0, 201, 167, 0.2)) !important;
    backdrop-filter: blur(12px) !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.15), 0 0 80px rgba(255, 215, 0, 0.08) !important;
    color: #1a1a1a !important;
}
html[data-theme="light"] .match-card:hover,
html[data-theme="light"] .top-pick-card:hover,
html[data-theme="light"] .insider-card:hover,
html[data-theme="light"] .league-card:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2) !important;
}

/* Light Mode: Match-Card innere Elemente — dunkel auf türkis */
html[data-theme="light"] .match-league-row,
html[data-theme="light"] .match-teams,
html[data-theme="light"] .match-odds,
html[data-theme="light"] .match-analysis-row {
    color: #1a1a1a !important;
}
html[data-theme="light"] .match-expand-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .odds-btn {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #1a1a1a !important;
}
html[data-theme="light"] .odds-value {
    color: #1a1a1a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .odds-label {
    color: rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="light"] .confidence-pct {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .confidence-fill {
    background: var(--gold) !important;
}
html[data-theme="light"] .stars-rating .star.filled {
    color: var(--gold) !important;
}
html[data-theme="light"] .recommendation {
    font-weight: 700 !important;
}
html[data-theme="light"] .match-league,
html[data-theme="light"] .match-datetime,
html[data-theme="light"] .team-name {
    color: #1a1a1a !important;
}
html[data-theme="light"] .match-odds-note {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Light Mode: Insider Cards Texte */
html[data-theme="light"] .insider-text,
html[data-theme="light"] .insider-title,
html[data-theme="light"] .insider-subtitle {
    color: #1a1a1a !important;
}
html[data-theme="light"] .insider-score {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}
html[data-theme="light"] .score-fire,
html[data-theme="light"] .score-hot,
html[data-theme="light"] .score-warm {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

/* Light Mode: Top Pick Cards Texte */
html[data-theme="light"] .top-pick-teams,
html[data-theme="light"] .top-pick-meta {
    color: #1a1a1a !important;
}

/* Light Mode: Slip Builder */
html[data-theme="light"] .slip-config-title {
    color: var(--gold-dark) !important;
}
html[data-theme="light"] .slip-form-group label {
    color: rgba(0, 0, 0, 0.6) !important;
}
html[data-theme="light"] .slip-item-teams,
html[data-theme="light"] .slip-item-league,
html[data-theme="light"] .slip-summary-row {
    color: #1a1a1a !important;
}

/* Light Mode: Settings Card Texte */
html[data-theme="light"] .card-title,
html[data-theme="light"] .settings-label {
    color: #1a1a1a !important;
}

/* Light Mode: Tabs und Filter-Buttons — türkis wie Kacheln */
html[data-theme="light"] .day-tab,
html[data-theme="light"] .league-chip,
html[data-theme="light"] .top-picks-tab,
html[data-theme="light"] .insider-cat {
    background: rgba(0, 201, 167, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #1a1a1a !important;
}
html[data-theme="light"] .day-tab.active,
html[data-theme="light"] .league-chip.active,
html[data-theme="light"] .top-picks-tab.active,
html[data-theme="light"] .insider-cat.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    border-color: var(--gold) !important;
    color: #000 !important;
}

/* Light Mode: Inputs — türkis-Hintergrund */
html[data-theme="light"] .slip-form-group input,
html[data-theme="light"] .slip-form-group select,
html[data-theme="light"] .settings-input,
html[data-theme="light"] select,
html[data-theme="light"] .top-picks-sort select,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] textarea {
    background: rgba(0, 160, 130, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #1a1a1a !important;
}

/* Light Mode: Section-Titel */
html[data-theme="light"] .section-subtitle {
    color: #3a2030 !important;
    -webkit-text-fill-color: #3a2030 !important;
}
html[data-theme="light"] .confidence-label {
    color: #1a1a1a !important;
}

/* Light Mode: Data Source Badge */
html[data-theme="light"] .data-source-badge {
    background: rgba(0, 201, 167, 0.2) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #1a1a1a !important;
}

/* Light Mode: Sortier-Text */
html[data-theme="light"] .top-picks-sort {
    color: #1a1a1a !important;
}

/* Light Mode: Section-Texte dunkel auf pink */
html[data-theme="light"] section {
    color: #1a1a1a;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Globale Dropdown-Styles ---------- */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-card, #1a1a2e) !important;
    color: var(--text-primary, #fff) !important;
    border: 1px solid var(--border-color, rgba(255, 215, 0, 0.3)) !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FFD700' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 12px !important;
}
select:focus {
    outline: none;
    border-color: var(--gold) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}
select option {
    background-color: #0f1923 !important;
    color: #fff !important;
    padding: 0.5rem;
    font-size: 0.85rem;
}
select option:hover,
select option:checked {
    background-color: rgba(0, 201, 167, 0.3) !important;
    color: var(--gold) !important;
}

/* Light Mode Dropdowns */
html[data-theme="light"] select {
    background-color: rgba(0, 160, 130, 0.25) !important;
    color: #1a1a1a !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
}
html[data-theme="light"] select option {
    background-color: #2a3a35 !important;
    color: #fff !important;
}
html[data-theme="light"] select option:checked {
    background-color: rgba(255, 215, 0, 0.4) !important;
}
input, select, textarea { font-family: inherit; }

.app-hidden { display: none !important; }
.hidden { display: none !important; }

/* ============================================================
   AUTH GATE
   ============================================================ */
#auth-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #0f1f38 40%, #132744 70%, #0a1628 100%);
    overflow: hidden;
}

#auth-gate::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 600px at 30% 20%, rgba(255, 215, 0, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 70% 80%, rgba(0, 201, 167, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    max-width: 420px;
    width: 90%;
    animation: authFadeIn 0.8s ease-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 60px rgba(0, 201, 167, 0.3));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 60px rgba(0, 201, 167, 0.2)); }
    50% { filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 100px rgba(0, 201, 167, 0.4)) drop-shadow(0 0 140px rgba(255, 215, 0, 0.2)); }
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-mid), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

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

.auth-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--teal);
    letter-spacing: 1em;
    margin-top: 0.25rem;
}

.auth-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-input-wrap {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.auth-input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

#auth-password {
    flex: 1;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

#auth-password::placeholder { color: rgba(255, 255, 255, 0.3); }

#auth-submit {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #08080c;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: opacity var(--transition);
}

#auth-submit:hover { opacity: 0.85; }

.auth-error {
    color: var(--red);
    font-size: 0.82rem;
    margin-top: 1rem;
    min-height: 1.2em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: linear-gradient(180deg, #0a1628 0%, #0c1e3a 50%, #0a1628 100%);
    border-right: 1px solid rgba(255, 215, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar.collapsed { transform: translateX(-220px); }

.sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--gold), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.sidebar-nav {
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: rgba(0, 201, 167, 0.08);
    color: var(--teal);
}

.sidebar-item.active {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    border-left-color: var(--gold);
}

.sidebar-icon { font-size: 1.1rem; }
.sidebar-text { font-family: var(--font-body); }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.sidebar-version {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

/* Content shift when sidebar is open */
#app:not(.sidebar-collapsed) {
    padding-left: 220px;
}
#app.sidebar-collapsed {
    padding-left: 0;
}
#app:not(.sidebar-collapsed) #main-header {
    left: 220px;
}

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    transition: background var(--transition);
    background: linear-gradient(135deg, rgba(10,22,40,0.97), rgba(15,31,56,0.97)) !important;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.08), 0 1px 0 rgba(0, 201, 167, 0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.sidebar-toggle-btn:hover { background: rgba(255,215,0,0.1); }

.header-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--gold), #fff8dc, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.08em;
}

.brand-ai {
    -webkit-text-fill-color: var(--teal);
    margin-left: 0.15em;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 2px rgba(34,197,94,0.3); }
}

.header-status-text {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.2s;
}
.header-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

#theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.06);
    border: 1px solid rgba(0, 201, 167, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
    cursor: pointer;
    transition: all var(--transition);
}

#theme-toggle:hover {
    background: rgba(0, 201, 167, 0.15);
    box-shadow: 0 0 15px rgba(0, 201, 167, 0.2);
}

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 800px at 50% 0%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 600px 600px at 20% 80%, rgba(0, 201, 167, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 500px 500px at 80% 60%, rgba(123, 47, 247, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin: 0 auto 2rem;
    border-radius: 50%;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 80px rgba(0, 201, 167, 0.3));
    animation: logoPulse 3s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.04em;
}

.title-gold {
    background: linear-gradient(135deg, var(--gold), #fff8dc, var(--gold-mid), var(--gold));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    text-shadow: none;
}

.title-cyan {
    background: linear-gradient(135deg, var(--teal), #66f5dd, var(--teal-dark), var(--teal));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    animation-delay: 0.5s;
    text-shadow: none;
}

.hero-ai {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-top: 0.25rem;
}

.ai-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-cyan {
    background: linear-gradient(135deg, var(--teal), #66f5dd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    margin-top: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- DUEL SECTION ---------- */
/* ===== DUEL PANORAMA — One flowing artwork ===== */
.duel-section {
    position: relative;
    margin: 2rem auto 3rem;
    width: 100%;
    max-width: 1100px;
    padding: 0 1rem;
}

/* Labels ROW above the images */
.duel-labels-row {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    margin-bottom: 0.75rem;
}

.duel-label-above {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: #ff8c00;
    text-shadow: 0 0 15px rgba(255,140,0,0.9), 0 0 30px rgba(255,140,0,0.5), 0 0 60px rgba(255,140,0,0.3);
    animation: neonFlicker 2s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    0% { text-shadow: 0 0 15px rgba(255,140,0,0.9), 0 0 30px rgba(255,140,0,0.5); }
    50% { text-shadow: 0 0 25px rgba(255,140,0,1), 0 0 50px rgba(255,140,0,0.7), 0 0 80px rgba(255,140,0,0.3); }
    100% { text-shadow: 0 0 15px rgba(255,140,0,0.9), 0 0 30px rgba(255,140,0,0.5); }
}

.duel-label-cool {
    color: var(--teal);
    text-shadow: 0 0 15px rgba(0,201,167,0.9), 0 0 30px rgba(0,201,167,0.5), 0 0 60px rgba(0,201,167,0.3);
    animation: neonFlickerTeal 2s ease-in-out infinite alternate;
}

@keyframes neonFlickerTeal {
    0% { text-shadow: 0 0 15px rgba(0,201,167,0.9), 0 0 30px rgba(0,201,167,0.5); }
    50% { text-shadow: 0 0 25px rgba(0,201,167,1), 0 0 50px rgba(0,201,167,0.7), 0 0 80px rgba(0,201,167,0.3); }
    100% { text-shadow: 0 0 15px rgba(0,201,167,0.9), 0 0 30px rgba(0,201,167,0.5); }
}

/* The panorama container */
.duel-panorama {
    position: relative;
    display: flex;
    width: 100%;
    gap: 4px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.12),
        0 0 80px rgba(0, 201, 167, 0.08),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

.duel-half {
    position: relative;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.duel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.duel-half:hover .duel-bg {
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

.duel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Left: subtle warm edge glow */
.duel-overlay-warm {
    background: linear-gradient(to bottom, rgba(255,140,0,0.08) 0%, transparent 30%, transparent 70%, rgba(255,140,0,0.05) 100%);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: var(--radius-md);
}

/* Right: subtle cool edge glow */
.duel-overlay-cool {
    background: linear-gradient(to bottom, rgba(0,201,167,0.08) 0%, transparent 30%, transparent 70%, rgba(0,201,167,0.05) 100%);
    border: 1px solid rgba(0, 201, 167, 0.15);
    border-radius: var(--radius-md);
}

/* Center blend hidden — clean gap instead */
.duel-center-blend {
    display: none;
}

/* VS Badge removed — not needed */
.duel-vs {
    display: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-mid));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.15);
    animation: vsPulse 2.5s ease-in-out infinite;
}

.duel-vs span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: #08080c;
}

@keyframes vsPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.5), 0 0 70px rgba(255, 215, 0, 0.2); }
}

/* ---------- STATS BAR ---------- */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.25), rgba(0, 160, 130, 0.35), rgba(0, 201, 167, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.15),
        0 0 80px rgba(255, 215, 0, 0.08),
        inset 0 0 30px rgba(0, 201, 167, 0.08);
    animation: statsGlow 3s ease-in-out infinite alternate;
}

@keyframes statsGlow {
    0% { box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.15), 0 0 80px rgba(255,215,0,0.08); border-color: rgba(255,215,0,0.5); }
    100% { box-shadow: 0 0 35px rgba(255,215,0,0.5), 0 0 70px rgba(255,215,0,0.25), 0 0 120px rgba(255,215,0,0.12), 0 0 160px rgba(0,201,167,0.08); border-color: rgba(255,215,0,0.7); }
}

.stat-agents-badge {
    color: var(--gold) !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

.stat-ai-badge {
    color: var(--gold) !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ---------- CTA ---------- */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #08080c;
    background: linear-gradient(135deg, var(--gold), var(--gold-mid));
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.35);
}

.cta-button svg {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ============================================================
   DASHBOARD
   ============================================================ */
#dashboard {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Day Tabs */
.day-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.day-tab {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.day-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.day-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(218, 165, 32, 0.1));
    border-color: var(--gold);
    color: var(--gold);
}

/* League Chips */
.league-filters {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.league-chip {
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: all var(--transition);
}

.league-chip:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.league-chip.active {
    background: rgba(0, 201, 167, 0.12);
    border-color: var(--teal);
    color: var(--teal);
}

/* ---------- MATCH GRID ---------- */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}

/* MATCH CARD */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.match-card:hover {
    border-color: var(--border-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.match-card:hover::before { opacity: 1; }

.match-league-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.match-league {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.match-datetime {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.match-team {
    flex: 1;
    text-align: center;
}

.team-crest {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.match-vs-small {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Odds row */
.match-odds {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.odds-btn {
    text-align: center;
    padding: 0.5rem 0.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.odds-btn:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.odds-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.odds-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Confidence & Recommendation */
.match-analysis-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.confidence-wrap {
    flex: 1;
}

.confidence-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.confidence-bar {
    height: 6px;
    background: var(--bg-glass);
    border-radius: 100px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s ease;
}

.confidence-fill.high { background: linear-gradient(90deg, var(--green), #4ade80); }
.confidence-fill.medium { background: linear-gradient(90deg, var(--yellow), #fbbf24); }
.confidence-fill.low { background: linear-gradient(90deg, var(--red), #f87171); }

.confidence-pct {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.confidence-pct.high { color: var(--green); }
.confidence-pct.medium { color: var(--yellow); }
.confidence-pct.low { color: var(--red); }

.recommendation {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* Ampelsystem — visuell dominant */
.recommendation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.rec-hot, .rec-safe {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3), 0 0 4px rgba(34, 197, 94, 0.2);
    animation: ampelPulseGreen 2s ease-in-out infinite;
}
.rec-risky {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(234, 179, 8, 0.15));
    color: #eab308;
    border: 2px solid rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}
.rec-skip {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.15));
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Ampel-Dot vor dem Text */
.rec-hot::before, .rec-safe::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}
.rec-risky::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eab308;
    box-shadow: 0 0 6px #eab308;
}
.rec-skip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

@keyframes ampelPulseGreen {
    0%, 100% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.15); }
}

/* Ampel-Bar oben auf jeder Match-Card */
.match-ampel-bar {
    text-align: center;
    padding: 0.5rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.rec-hot-bar, .rec-safe-bar {
    background: linear-gradient(90deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
    border-bottom: 2px solid rgba(34,197,94,0.3);
}
.rec-risky-bar {
    background: linear-gradient(90deg, rgba(234,179,8,0.15), rgba(234,179,8,0.05));
    border-bottom: 2px solid rgba(234,179,8,0.3);
}
.rec-skip-bar {
    background: linear-gradient(90deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
    border-bottom: 2px solid rgba(239,68,68,0.3);
}
.rec-nodata { background: rgba(255,255,255,0.06); color: var(--text-muted, #666); border: 1px solid rgba(255,255,255,0.1); font-weight: 600; }
.rec-nodata::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #666; }
.rec-nodata-bar {
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rec-skip { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }

.match-expand-btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.match-expand-btn:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--gold);
}

/* ============================================================
   ANALYSE OVERLAY
   ============================================================ */
.analyse-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease;
    padding: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.analyse-panel {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card-solid, #121a2a);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: translateX(0); }
}

.analyse-close {
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.analyse-close:hover { color: var(--red); border-color: var(--red); }

/* Analyse Content */
.analyse-match-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.analyse-match-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

.analyse-match-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.analyse-block {
    margin-bottom: 1.75rem;
}

.analyse-block-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* H2H Table */
.h2h-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.h2h-table th {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0.4rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.h2h-table td {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* Form Dots */
.form-dots {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.form-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.form-dot.W { background: var(--green); }
.form-dot.D { background: var(--yellow); color: #111; }
.form-dot.L { background: var(--red); }

/* Poisson */
.poisson-result {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    text-align: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-sm);
}

.poisson-prob {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* Value Bet */
.value-bet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.value-bet-box {
    padding: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
}

.value-bet-box .vb-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.value-bet-box .vb-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.value-yes { color: var(--green); }
.value-no { color: var(--red); }

/* Info list */
.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

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

/* Coach recommendation */
.coach-rec {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 201, 167, 0.06));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ============================================================
   PERFORMANCE TRACKER
   ============================================================ */
#tracker {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tracker-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tracker-form-card,
.tracker-stats-card,
.bet-history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
}

.form-group input::placeholder { color: var(--text-muted); }

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #08080c;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition);
    margin-top: 0.5rem;
}

.btn-primary:hover { opacity: 0.85; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.stat-box-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-box-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Chart */
.chart-container {
    width: 100%;
    height: 200px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Bet History Table */
.bet-history-card {
    overflow: hidden;
}

.bet-history-table-wrap {
    overflow-x: auto;
}

#bet-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 700px;
}

#bet-history-table th {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.6rem;
    text-align: left;
    border-bottom: 2px solid var(--border-subtle);
    white-space: nowrap;
}

#bet-history-table td {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

#bet-history-table .result-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: var(--bg-glass);
    cursor: pointer;
    transition: all var(--transition);
    margin-right: 0.25rem;
}

.result-btn.won { background: rgba(34, 197, 94, 0.15); color: var(--green); border-color: rgba(34, 197, 94, 0.3); }
.result-btn.lost { background: rgba(239, 68, 68, 0.15); color: var(--red); border-color: rgba(239, 68, 68, 0.3); }

.result-badge {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.result-badge.won { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.result-badge.lost { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.pnl-positive { color: var(--green) !important; font-weight: 600; }
.pnl-negative { color: var(--red) !important; font-weight: 600; }

.delete-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.no-bets-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2.5rem 1.5rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-powered {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-version {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.footer-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   LOADING SPINNER + ERROR BANNER + DATA SOURCE
   ============================================================ */
.striker-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    grid-column: 1 / -1;
    gap: 1rem;
}
.striker-loading p {
    color: var(--teal);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.striker-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 215, 0, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: striker-spin 0.8s linear infinite;
}
@keyframes striker-spin {
    to { transform: rotate(360deg); }
}

.api-error-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
    color: var(--red);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.api-error-banner button {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.25rem;
}

.data-source-badge {
    display: none;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.source-odds-api {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.source-football-data {
    background: rgba(234, 179, 8, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.source-demo {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.match-odds-note {
    text-align: center;
    font-size: 0.6rem;
    color: var(--text-muted, #888);
    margin-top: -0.15rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    opacity: 0.6;
}

/* ============================================================
   TOP PICKS
   ============================================================ */
/* SPA Section Layout — alle Sections versteckt, nur aktive sichtbar */
#app > section {
    display: none;
}
#app > section.section-active {
    display: block;
}

/* Neue Sections zentriert */
#top-picks,
#slip-builder,
#insider {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.top-picks-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.top-picks-tab {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #aaa);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.top-picks-tab.active, .top-picks-tab:hover {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border-color: var(--gold);
}
.top-picks-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted, #aaa);
    justify-content: center;
}
.top-picks-sort select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: inherit;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}
.top-picks-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.top-pick-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.top-pick-card:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.04);
}
.top-pick-rank {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 2rem;
    text-align: center;
}
.top-pick-score {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 2.5rem;
    text-align: center;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}
.score-fire { color: var(--gold); text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
.score-hot { color: var(--teal); }
.score-warm { color: var(--text-muted, #aaa); }
.top-pick-info { flex: 1; min-width: 0; }
.top-pick-teams { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-pick-meta { font-size: 0.7rem; color: var(--text-muted, #888); margin-top: 2px; }
.top-pick-odds {
    display: flex;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #aaa);
}
.top-pick-odds span {
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.top-pick-detail {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--teal);
    background: transparent;
    color: var(--teal);
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.top-pick-detail:hover { background: var(--teal); color: #000; }

/* ============================================================
   WETTSCHEIN-BUILDER
   ============================================================ */
.slip-builder-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.slip-config {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.slip-config-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.slip-form-group {
    margin-bottom: 1rem;
}
.slip-form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #aaa);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.slip-form-group input,
.slip-form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.slip-form-group input:focus,
.slip-form-group select:focus {
    outline: none;
    border-color: var(--gold);
}
.slip-generate-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    margin-top: 0.5rem;
}
.slip-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.slip-result {
    min-height: 400px;
}
.slip-output {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    min-height: 400px;
}
.slip-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: var(--text-muted, #888);
    padding: 2rem;
    gap: 0.5rem;
}
.slip-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.slip-header h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}
.slip-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted, #888);
}
.slip-items { padding: 0.5rem 0; }
.slip-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}
.slip-item:hover { background: rgba(255, 215, 0, 0.03); }
.slip-item-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--gold);
    min-width: 1.5rem;
    text-align: center;
}
.slip-item-match { flex: 1; min-width: 0; }
.slip-item-teams { font-size: 0.82rem; font-weight: 600; }
.slip-item-league { font-size: 0.68rem; color: var(--text-muted, #888); margin-top: 2px; }
.slip-item-tip { text-align: center; min-width: 120px; }
.slip-item-tip-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal);
}
.slip-item-tip-desc { font-size: 0.65rem; color: var(--text-muted, #aaa); }
.slip-item-odds {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 3rem;
    text-align: center;
}
.slip-item-score {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
}
.slip-summary {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 215, 0, 0.03);
}
.slip-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.82rem;
}
.slip-summary-win {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 0.3rem;
}
.slip-total-odds { font-family: var(--font-heading); color: var(--teal); }
.slip-potential-win { font-family: var(--font-heading); font-size: 1.2rem; }
.slip-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}
.slip-action-btn {
    flex: 1;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--teal);
    color: #000;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}
.slip-action-btn:hover { opacity: 0.85; }
.slip-action-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #aaa);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   FLYING SPIRIT 🦅 + BROKEN WINGS 🪶
   ============================================================ */
/* Team-Namen: Gold für Flying Spirit, Rot für Broken Wings */
.team-flying {
    color: var(--gold) !important;
    font-weight: 800 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
.team-broken {
    color: var(--red) !important;
    font-weight: 800 !important;
    opacity: 0.85;
}

/* Mini-Badge auf Match-Cards */
.spirit-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 3px;
    text-transform: uppercase;
}
.spirit-mini-flying {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.spirit-mini-broken {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.spirit-phoenix {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

/* Grosse Spirit-Badges im Analyse-Overlay */
.spirit-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    min-width: 180px;
}
.spirit-flying {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}
.spirit-broken {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.15));
    border: 2px solid rgba(239, 68, 68, 0.3);
}
.spirit-icon { font-size: 1.5rem; }
.spirit-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}
.spirit-flying .spirit-label { color: var(--gold); }
.spirit-broken .spirit-label { color: var(--red); }
.spirit-team { font-weight: 700; font-size: 0.85rem; }
.spirit-detail { font-size: 0.65rem; color: var(--text-muted, #888); text-align: center; }

/* ============================================================
   WIN FACTORY
   ============================================================ */
#win-factory { padding: 5rem 1.5rem; max-width: 1400px; margin: 0 auto; }
.wf-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.wf-create, .wf-saved {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.wf-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.wf-form-group { margin-bottom: 0.75rem; }
.wf-form-group label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wf-input {
    width: 100%; padding: 0.5rem 0.7rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm); color: inherit; font-size: 0.82rem; box-sizing: border-box;
}
.wf-input:focus { outline: none; border-color: var(--gold); }
.wf-picks { min-height: 60px; margin-bottom: 0.75rem; }
.wf-pick-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.8rem;
}
.wf-pick-num { font-family: var(--font-heading); color: var(--gold); min-width: 1.5rem; }
.wf-pick-match { flex: 1; }
.wf-pick-tip { color: var(--teal); font-weight: 700; min-width: 60px; text-align: center; }
.wf-pick-odds { font-family: var(--font-heading); color: var(--gold); min-width: 40px; text-align: right; }
.wf-pick-remove { background: none; color: var(--red); font-size: 0.9rem; padding: 0 0.3rem; cursor: pointer; border: none; }
.wf-add-pick { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.wf-add-btn {
    padding: 0.5rem 1rem; background: var(--teal); color: #000; border: none;
    border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.wf-save-btn {
    width: 100%; padding: 0.75rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none; border-radius: var(--radius-md); color: #000;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
    cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em;
}
.wf-save-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,215,0,0.3); }
.wf-list { display: flex; flex-direction: column; gap: 0.75rem; max-height: 500px; overflow-y: auto; }
.wf-slip-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm); padding: 1rem; transition: var(--transition);
}
.wf-slip-card.wf-won { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.05); }
.wf-slip-card.wf-lost { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.wf-slip-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.wf-slip-picks { font-size: 0.78rem; margin-bottom: 0.5rem; }
.wf-slip-pick { padding: 0.15rem 0; }
.wf-slip-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem; }
.wf-slip-actions { display: flex; gap: 0.3rem; align-items: center; }
.wf-status-label { font-weight: 700; font-size: 0.7rem; }
.wf-status-label.wf-won { color: var(--green); }
.wf-status-label.wf-lost { color: var(--red); }
.wf-status-label.wf-open { color: var(--yellow); }
.wf-result-btn { padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; cursor: pointer; border: none; }
.wf-btn-won { background: rgba(34,197,94,0.2); color: var(--green); }
.wf-btn-lost { background: rgba(239,68,68,0.2); color: var(--red); }
.wf-stats-bar {
    display: flex; justify-content: space-around; padding: 1rem;
    background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.15);
    border-radius: var(--radius-sm); margin-top: 1rem;
}
.wf-stat { text-align: center; }
.wf-stat-val { display: block; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.wf-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }

/* Light Mode Win Factory */
html[data-theme="light"] .wf-create,
html[data-theme="light"] .wf-saved,
html[data-theme="light"] .wf-slip-card {
    background: linear-gradient(135deg, rgba(0,201,167,0.25), rgba(0,160,130,0.35)) !important;
    border: 2px solid rgba(255,215,0,0.5) !important;
    color: #1a1a1a !important;
}

/* ============================================================
   INSIDE FOOTBALL (News)
   ============================================================ */
#inside-football {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.inside-football-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1rem;
}
.news-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}
.news-card:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.03);
}
.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.news-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}
.news-cat-matchday { background: rgba(0, 201, 167, 0.15); color: var(--teal); }
.news-cat-top { background: rgba(255, 215, 0, 0.15); color: var(--gold); }
.news-cat-league { background: rgba(123, 47, 247, 0.15); color: var(--purple); }
.news-cat-tip { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.news-date { font-size: 0.7rem; color: var(--text-muted, #888); }
.news-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.news-text { font-size: 0.8rem; color: var(--text-muted, #bbb); line-height: 1.5; margin-bottom: 0.75rem; }
.news-impact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
}
.news-impact-label { color: var(--text-muted, #888); }
.impact-high { color: var(--green); font-weight: 700; }
.impact-medium { color: var(--yellow); font-weight: 600; }

/* Light Mode: News Cards */
html[data-theme="light"] .news-card {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.25), rgba(0, 160, 130, 0.35), rgba(0, 201, 167, 0.2)) !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.15) !important;
    color: #1a1a1a !important;
}
html[data-theme="light"] .news-title,
html[data-theme="light"] .news-text,
html[data-theme="light"] .news-date { color: #1a1a1a !important; }

/* ============================================================
   INSIDER AGENT
   ============================================================ */
.insider-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.insider-cat {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #aaa);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
}
.insider-cat.active, .insider-cat:hover {
    background: rgba(123, 47, 247, 0.15);
    color: var(--purple);
    border-color: var(--purple);
}
.insider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}
.insider-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}
.insider-card:hover {
    border-color: var(--purple);
    background: rgba(123, 47, 247, 0.04);
}
.insider-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.insider-icon { font-size: 1.5rem; }
.insider-title { font-weight: 700; font-size: 0.9rem; }
.insider-subtitle { font-size: 0.7rem; color: var(--text-muted, #888); margin-top: 2px; }
.insider-badge {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.insider-badge-motivation { background: rgba(0, 201, 167, 0.15); color: var(--teal); }
.insider-badge-derby { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.insider-badge-surprise { background: rgba(255, 215, 0, 0.15); color: var(--gold); }
.insider-badge-trainer { background: rgba(123, 47, 247, 0.15); color: var(--purple); }
.insider-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted, #bbb);
    margin-bottom: 0.75rem;
}
.insider-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.insider-score {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
}
.insider-detail-btn {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--purple);
    background: transparent;
    color: var(--purple);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}
.insider-detail-btn:hover { background: var(--purple); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .tracker-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .duel-section {
        flex-direction: column;
        gap: 0;
    }

    .duel-card {
        max-width: 100%;
        aspect-ratio: 16/9;
    }

    .duel-vs {
        margin: -12px 0;
    }

    .stats-bar {
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .stat-divider { display: none; }

    .match-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .analyse-panel {
        max-width: 100%;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .header-brand {
        font-size: 0.8rem;
    }

    .stats-bar {
        gap: 0.75rem;
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.35);
}

/* Selection */
::selection {
    background: rgba(255, 215, 0, 0.25);
    color: var(--text-primary);
}

/* ============================================================
   SIDEBAR DIVIDER
   ============================================================ */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    margin: 0.5rem 1.25rem;
    list-style: none;
}

/* ============================================================
   HEADER EXTENSIONS — Notifications, LIVE, Avatar
   ============================================================ */
.header-notif-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: var(--red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    animation: notifPop 0.3s ease;
}

@keyframes notifPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.header-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 100px;
    margin-right: 0.75rem;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.live-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.15em;
}

.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.header-avatar:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    border-color: var(--gold);
}

.header-avatar-initials {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    color: #08080c;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   DASHBOARD EXTENSIONS — Batterie, Ampel, Sterne, Trend-Pfeile
   ============================================================ */
/* Batterie-Bewertung */
.confidence-battery {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    margin-top: 0.4rem;
}

.battery-bar {
    width: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.battery-bar.filled-green { background: var(--green); box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
.battery-bar.filled-yellow { background: var(--yellow); box-shadow: 0 0 6px rgba(234, 179, 8, 0.4); }
.battery-bar.filled-red { background: var(--red); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }

/* Ampel-Dots */
.ampel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.ampel-green { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.ampel-yellow { background: var(--yellow); box-shadow: 0 0 8px rgba(234, 179, 8, 0.5); }
.ampel-red { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }

/* Sterne-Rating */
.stars-rating {
    display: flex;
    gap: 2px;
    margin-top: 0.3rem;
}

.star {
    font-size: 0.9rem;
    color: rgba(255, 215, 0, 0.15);
    transition: color 0.2s;
}

.star.filled {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Trend-Pfeile */
.trend-arrow {
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.35rem;
}

.trend-up { color: var(--green); }
.trend-stable { color: var(--yellow); }
.trend-down { color: var(--red); }

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
#community {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.community-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.community-tab {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.community-tab:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.community-tab.active {
    background: rgba(0, 201, 167, 0.12);
    border-color: var(--teal);
    color: var(--teal);
}

.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 350px;
    max-height: 450px;
}

.chat-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: chatIn 0.3s ease;
}

@keyframes chatIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.chat-msg-avatar.gold-avatar {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #08080c;
}

.chat-msg-avatar.purple-avatar {
    background: linear-gradient(135deg, #5b21b6, var(--purple));
}

.chat-msg-body {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.chat-msg-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.25rem;
}

.chat-msg-name.gold-name { color: var(--gold); }

.chat-msg-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.chat-msg-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.chat-msg.self {
    flex-direction: row-reverse;
}

.chat-msg.self .chat-msg-body {
    background: rgba(255, 215, 0, 0.06);
    border-color: rgba(255, 215, 0, 0.15);
}

.chat-input-wrap {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-subtle);
}

.chat-input-wrap input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.chat-input-wrap input::placeholder { color: var(--text-muted); }

.chat-send-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #08080c;
    font-size: 1.1rem;
    font-weight: 700;
    transition: opacity var(--transition);
    cursor: pointer;
    border: none;
}

.chat-send-btn:hover { opacity: 0.85; }

/* ============================================================
   RANKINGS SECTION
   ============================================================ */
#rankings {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.rankings-sort-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rankings-sort-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.rankings-sort-btn {
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: all var(--transition);
    cursor: pointer;
}

.rankings-sort-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.rankings-sort-btn.active {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--gold);
    color: var(--gold);
}

.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

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

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 600px;
}

#leaderboard-table th {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--border-subtle);
}

#leaderboard-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

#leaderboard-table tr:hover {
    background: rgba(255, 215, 0, 0.03);
}

#leaderboard-table tr.is-self {
    background: rgba(255, 215, 0, 0.06);
    border-left: 3px solid var(--gold);
}

#leaderboard-table tr.is-self td {
    color: var(--text-primary);
    font-weight: 600;
}

.rank-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rank-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    min-width: 28px;
}

.rank-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.rank-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(218, 165, 32, 0.15));
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.rank-silver {
    background: rgba(192, 192, 192, 0.12);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.25);
}

.rank-bronze {
    background: rgba(205, 127, 50, 0.12);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.25);
}

.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.leaderboard-username {
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-level {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: rgba(0, 201, 167, 0.1);
    color: var(--teal);
    border: 1px solid rgba(0, 201, 167, 0.2);
}

/* ============================================================
   PROFIL SECTION
   ============================================================ */
#profil {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.profil-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.profil-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
}

.profil-main-card {
    grid-column: 1 / -1;
    text-align: center;
}

/* Avatar */
.profil-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.profil-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
}

.profil-avatar-initials {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #08080c;
}

.profil-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profil-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--bg-card-solid);
}

.profil-avatar-upload:hover {
    background: var(--teal-dark);
    box-shadow: 0 0 12px rgba(0, 201, 167, 0.4);
}

/* Username */
.profil-name-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.profil-username-input {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    text-align: center;
    outline: none;
    transition: border-color var(--transition);
    max-width: 250px;
}

.profil-username-input:focus {
    border-color: var(--gold);
    background: var(--input-bg);
}

.profil-save-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(0, 201, 167, 0.12);
    color: var(--teal);
    border: 1px solid rgba(0, 201, 167, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.profil-save-btn:hover {
    background: rgba(0, 201, 167, 0.2);
}

/* Profil Stats */
.profil-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.profil-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.profil-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
}

.profil-stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.badge-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.badge-item.unlocked {
    border-color: rgba(255, 215, 0, 0.2);
}

.badge-item.unlocked:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.badge-item.locked {
    opacity: 0.35;
    filter: grayscale(100%);
}

.badge-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.badge-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-item.locked .badge-name {
    color: var(--text-muted);
}

.badge-lock-overlay {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Profil Settings */
.profil-setting-group {
    margin-bottom: 1.5rem;
}

.profil-setting-group:last-child { margin-bottom: 0; }

.profil-setting-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.profil-leagues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.profil-league-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem 0;
}

.profil-league-check input[type="checkbox"] {
    accent-color: var(--teal);
    width: 16px;
    height: 16px;
}

.profil-style-radios {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profil-style-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.profil-style-radio:has(input:checked) {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
}

.profil-style-radio input[type="radio"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

/* ============================================================
   COMMUNITY / RANKINGS / PROFIL RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .profil-layout {
        grid-template-columns: 1fr;
    }

    .profil-main-card {
        grid-column: 1;
    }

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

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

    .profil-leagues-grid {
        grid-template-columns: 1fr;
    }

    .chat-messages {
        min-height: 250px;
        max-height: 350px;
    }

    .header-live-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .profil-stats-grid {
        grid-template-columns: 1fr;
    }

    .profil-style-radios {
        flex-direction: column;
    }

    .community-tabs {
        gap: 0.3rem;
    }

    .community-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }
}

/* ============================================================
   LIVE SECTION
   ============================================================ */
#live {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.live-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.live-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.live-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: liveScanline 2s ease-in-out infinite;
}

@keyframes liveScanline {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.live-card:hover {
    border-color: rgba(239, 68, 68, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.live-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.1em;
}

.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: livePulse 1.5s ease-in-out infinite;
}

.live-minute {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
}

.live-league-name {
    font-size: 0.72rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.live-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
}

.live-team {
    text-align: center;
    flex: 1;
}

.live-team-emoji {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.live-team-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.live-score {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.1em;
    min-width: 80px;
    text-align: center;
}

.live-odds-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.live-odds-item {
    text-align: center;
    padding: 0.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.live-odds-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.live-odds-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Live Stats Bars */
.live-stats {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.live-stat-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-stat-val {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 28px;
    text-align: center;
}

.live-stat-bar-wrap {
    flex: 1;
    display: flex;
    height: 6px;
    gap: 3px;
    align-items: center;
}

.live-stat-bar-left,
.live-stat-bar-right {
    height: 100%;
    border-radius: 100px;
    transition: width 0.5s ease;
}

.live-stat-bar-left {
    background: linear-gradient(90deg, var(--teal-dark), var(--teal));
    margin-left: auto;
}

.live-stat-bar-right {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.live-stat-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    min-width: 65px;
}

.live-inplay-btn {
    width: 100%;
    padding: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    color: #08080c;
    background: linear-gradient(135deg, var(--red), #dc2626);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.live-inplay-btn:hover {
    opacity: 0.85;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* ============================================================
   ANALYSE SECTION
   ============================================================ */
#analysis {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.analysis-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.analysis-controls .form-group {
    flex: 1;
    min-width: 200px;
}

.analysis-result {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    backdrop-filter: blur(10px);
    min-height: 300px;
}

.analysis-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.analysis-placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Analysis Deep Dive Content */
.analysis-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.analysis-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.analysis-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.analysis-block {
    margin-bottom: 1.5rem;
}

.analysis-block-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.analysis-full-width {
    grid-column: 1 / -1;
}

/* Radar / Comparison Bars */
.radar-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 90px;
    text-align: right;
}

.radar-bars {
    flex: 1;
    display: flex;
    gap: 4px;
    align-items: center;
}

.radar-bar-home,
.radar-bar-away {
    height: 14px;
    border-radius: 3px;
    transition: width 0.6s ease;
    position: relative;
}

.radar-bar-home {
    background: linear-gradient(90deg, var(--teal-dark), var(--teal));
}

.radar-bar-away {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.radar-val {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 24px;
    text-align: center;
}

/* Confidence Battery for Analysis */
.analysis-confidence {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(0, 201, 167, 0.04));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.analysis-conf-battery {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.analysis-conf-bar {
    width: 10px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.analysis-conf-bar.filled { background: var(--green); box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
.analysis-conf-bar.filled-yellow { background: var(--yellow); box-shadow: 0 0 6px rgba(234, 179, 8, 0.4); }
.analysis-conf-bar.filled-red { background: var(--red); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }

.analysis-conf-text {
    flex: 1;
}

.analysis-conf-level {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.analysis-conf-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.analysis-rec-box {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 201, 167, 0.06));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.analysis-rec-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ============================================================
   LIGEN SECTION
   ============================================================ */
#leagues {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.league-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.league-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.league-card.active-league {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
}

.league-card-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.league-card-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.league-card-country {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.league-card-info {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.league-fav-star {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: rgba(255, 215, 0, 0.2);
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.league-fav-star:hover {
    color: rgba(255, 215, 0, 0.5);
    transform: scale(1.2);
}

.league-fav-star.favorited {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ============================================================
   SETTINGS SECTION
   ============================================================ */
#settings {
    padding: 5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.settings-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Toggle Button */
.settings-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: all 0.3s;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s;
}

.settings-toggle-btn.active .toggle-track {
    background: rgba(0, 201, 167, 0.2);
    border-color: var(--teal);
}

.settings-toggle-btn.active .toggle-thumb {
    left: 22px;
    background: var(--teal);
    box-shadow: 0 0 8px rgba(0, 201, 167, 0.4);
}

.toggle-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 30px;
}

/* Settings Select */
.settings-select {
    padding: 0.5rem 0.85rem;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.settings-select:focus {
    border-color: var(--gold);
}

/* Settings Input */
.settings-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.settings-input {
    width: 80px;
    padding: 0.5rem 0.75rem;
    background: var(--input-bg);
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    outline: none;
    text-align: center;
}

.settings-input-suffix {
    padding: 0.5rem 0.6rem;
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Settings Radio */
.settings-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.settings-radio:has(input:checked) {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
}

.settings-radio input[type="radio"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

/* Settings Action Buttons */
.settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-action-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    color: var(--text-secondary);
}

.settings-action-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.settings-action-btn.export-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(34, 197, 94, 0.06);
}

.settings-action-btn.import-btn {
    display: block;
    text-align: center;
}

.settings-action-btn.import-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
}

.settings-action-btn.delete-btn {
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--red);
}

.settings-action-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--red);
}

/* ============================================================
   NEW SECTIONS — RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .live-matches-grid {
        grid-template-columns: 1fr;
    }

    .analysis-controls {
        flex-direction: column;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .analysis-full-width {
        grid-column: 1;
    }

    .leagues-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .leagues-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   RESPONSIVE — VOLLSTAENDIGE MOBILE OPTIMIERUNG
   ============================================================ */

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
    /* Sidebar: collapsed by default, hidden */
    .sidebar {
        transform: translateX(-220px);
        visibility: hidden;
        z-index: 1100;
    }
    .sidebar.open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Content: kein Sidebar-Padding */
    #app:not(.sidebar-collapsed) {
        padding-left: 0 !important;
    }
    #app:not(.sidebar-collapsed) #main-header {
        left: 0 !important;
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    .sidebar.open ~ .sidebar-overlay,
    .sidebar-overlay.active {
        display: block;
    }

    /* Grids anpassen */
    .match-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .live-matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .settings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .leagues-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .profil-layout {
        grid-template-columns: 1fr 1fr;
    }

    .analysis-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Duel Section */
    .duel-section {
        max-width: 100%;
    }

    .duel-half {
        min-height: 220px;
    }

    /* Stats Bar kompakter */
    .stats-bar {
        gap: 1.5rem;
        padding: 1.25rem 2rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    /* Hero */
    #hero {
        padding: 6rem 1.25rem 2.5rem;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
    }

    /* Sections Padding */
    #dashboard,
    #tracker,
    #community,
    #rankings,
    #profil,
    #live,
    #analysis,
    #leagues,
    #settings {
        padding: 4rem 1.25rem;
    }

    /* Header Brand kleiner */
    .header-brand {
        font-size: 0.9rem;
    }

    /* Analyse Panel */
    .analyse-panel {
        max-width: 500px;
    }
}

/* ---------- MOBILE (max-width: 768px) ---------- */
@media (max-width: 768px) {
    /* Sidebar: komplett hidden, nur per Toggle sichtbar */
    .sidebar {
        transform: translateX(-220px);
        z-index: 1100;
        visibility: hidden;
    }
    .sidebar.open {
        transform: translateX(0);
        visibility: visible;
    }

    #app:not(.sidebar-collapsed) {
        padding-left: 0 !important;
    }
    #app:not(.sidebar-collapsed) #main-header {
        left: 0 !important;
    }

    /* Header kompakter */
    .header-inner {
        padding: 0.6rem 1rem;
    }

    .header-brand {
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }

    .header-logo {
        width: 30px;
        height: 30px;
    }

    .header-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    #theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .header-center {
        display: none;
    }

    .header-live-indicator {
        display: none;
    }

    .header-avatar {
        width: 30px;
        height: 30px;
    }

    /* Hero Mobile */
    #hero {
        padding: 5.5rem 1rem 2rem;
        min-height: auto;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    /* Duel Section: untereinander */
    .duel-section {
        padding: 0 0.5rem;
    }

    .duel-panorama {
        flex-direction: column;
        gap: 4px;
    }

    .duel-half {
        min-height: 180px;
    }

    .duel-labels-row {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .duel-label-above {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    /* Stats Bar: Wrap mit kleineren Gaps */
    .stats-bar {
        gap: 1rem;
        padding: 1rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-divider {
        display: none;
    }

    /* Match Grid: 1 Spalte */
    .match-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        padding: 1.25rem;
    }

    /* Live Grid: 1 Spalte */
    .live-matches-grid {
        grid-template-columns: 1fr;
    }

    /* Tracker: 1 Spalte */
    .tracker-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Community Chat */
    .chat-messages {
        min-height: 250px;
        max-height: 350px;
        padding: 1rem;
    }

    .chat-msg-text {
        font-size: 0.8rem;
    }

    .chat-input-wrap input {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
    }

    /* Rankings Tabelle */
    .leaderboard-card {
        padding: 1rem;
    }

    .rankings-sort-bar {
        gap: 0.35rem;
    }

    .rankings-sort-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
    }

    /* Profil: 1 Spalte */
    .profil-layout {
        grid-template-columns: 1fr;
    }

    .profil-main-card {
        grid-column: 1;
    }

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

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

    .profil-leagues-grid {
        grid-template-columns: 1fr;
    }

    /* Settings: 1 Spalte */
    .settings-grid {
        grid-template-columns: 1fr;
    }

    /* Analysis: 1 Spalte */
    .analysis-controls {
        flex-direction: column;
    }

    .analysis-controls .form-group {
        min-width: 100%;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .analysis-full-width {
        grid-column: 1;
    }

    /* Leagues Grid */
    .leagues-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    /* Analyse Panel: Vollbild */
    .analyse-overlay {
        align-items: stretch;
        justify-content: stretch;
    }

    .analyse-panel {
        max-width: 100%;
        width: 100%;
        border-left: none;
    }

    /* Sections Padding Mobile */
    #dashboard,
    #tracker,
    #community,
    #rankings,
    #profil,
    #live,
    #analysis,
    #leagues,
    #settings {
        padding: 3.5rem 1rem;
    }

    /* Section Titles */
    .section-title {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Day Tabs + League Filters */
    .day-tabs {
        gap: 0.35rem;
    }

    .day-tab {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .league-filters {
        gap: 0.3rem;
    }

    .league-chip {
        padding: 0.35rem 0.75rem;
        font-size: 0.72rem;
    }

    /* CTA Button */
    .cta-button {
        padding: 0.85rem 2rem;
        font-size: 0.8rem;
    }

    /* Value Bet Grid */
    .value-bet-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-disclaimer {
        font-size: 0.65rem;
    }

    /* Community Tabs */
    .community-tabs {
        gap: 0.3rem;
    }

    .community-tab {
        padding: 0.5rem 1rem;
        font-size: 0.68rem;
    }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
    /* Header ultra-kompakt */
    .header-inner {
        padding: 0.5rem 0.75rem;
    }

    .header-brand {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .header-left {
        gap: 0.5rem;
    }

    .header-logo {
        width: 26px;
        height: 26px;
    }

    .header-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    #theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .header-right {
        gap: 0.3rem;
    }

    .header-avatar {
        width: 28px;
        height: 28px;
    }

    .header-avatar-initials {
        font-size: 0.5rem;
    }

    .sidebar-toggle-btn {
        font-size: 1.2rem;
        padding: 3px 6px;
    }

    /* Hero ultra-kompakt */
    #hero {
        padding: 5rem 0.75rem 1.5rem;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    /* Duel: kleinere Bilder */
    .duel-half {
        min-height: 140px;
    }

    .duel-label-above {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    /* Stats Bar: vertikal */
    .stats-bar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        align-items: stretch;
    }

    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

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

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
        text-align: left;
    }

    .stat-divider {
        display: none;
    }

    /* Match Cards kompakt */
    .match-card {
        padding: 1rem;
    }

    .team-crest {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .match-teams {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .odds-value {
        font-size: 0.88rem;
    }

    .odds-label {
        font-size: 0.6rem;
    }

    .match-expand-btn {
        padding: 0.5rem;
        font-size: 0.72rem;
    }

    .confidence-pct {
        font-size: 0.72rem;
    }

    .recommendation {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .match-league {
        font-size: 0.65rem;
    }

    .match-datetime {
        font-size: 0.68rem;
    }

    /* Live Cards kompakt */
    .live-card {
        padding: 1rem;
    }

    .live-score {
        font-size: 1.8rem;
        min-width: 60px;
    }

    .live-team-name {
        font-size: 0.78rem;
    }

    .live-team-emoji {
        font-size: 1.3rem;
    }

    .live-scoreboard {
        gap: 1rem;
        padding: 0.75rem 0;
    }

    /* Tracker kompakt */
    .tracker-form-card,
    .tracker-stats-card,
    .bet-history-card {
        padding: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        padding: 0.75rem 0.5rem;
    }

    .stat-box-value {
        font-size: 1rem;
    }

    /* Profil kompakt */
    .profil-card {
        padding: 1.25rem;
    }

    .profil-stats-grid {
        grid-template-columns: 1fr;
    }

    .profil-avatar {
        width: 80px;
        height: 80px;
    }

    .profil-avatar-initials {
        font-size: 1.4rem;
    }

    .profil-username-input {
        font-size: 1rem;
        max-width: 200px;
    }

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

    .badge-icon {
        font-size: 1.6rem;
    }

    .badge-name {
        font-size: 0.65rem;
    }

    .profil-style-radios {
        flex-direction: column;
    }

    /* Rankings kompakt */
    .leaderboard-card {
        padding: 0.75rem;
    }

    #leaderboard-table {
        font-size: 0.78rem;
        min-width: 500px;
    }

    .rankings-sort-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    /* Settings kompakt */
    .settings-card {
        padding: 1.25rem;
    }

    .settings-label {
        font-size: 0.8rem;
    }

    /* Community kompakt */
    .community-tabs {
        gap: 0.25rem;
    }

    .community-tab {
        padding: 0.4rem 0.7rem;
        font-size: 0.62rem;
    }

    .chat-messages {
        min-height: 200px;
        max-height: 300px;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .chat-msg-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.55rem;
    }

    .chat-msg-body {
        padding: 0.6rem 0.75rem;
    }

    .chat-msg-text {
        font-size: 0.78rem;
    }

    .chat-msg-name {
        font-size: 0.68rem;
    }

    .chat-input-wrap input {
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
    }

    .chat-send-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Analysis kompakt */
    .analysis-result {
        padding: 1.25rem;
    }

    .analysis-header h3 {
        font-size: 1.1rem;
    }

    .radar-label {
        min-width: 70px;
        font-size: 0.68rem;
    }

    /* Leagues Grid */
    .leagues-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .league-card {
        padding: 1rem;
    }

    .league-card-emoji {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .league-card-name {
        font-size: 0.75rem;
    }

    /* Day Tabs + League Filters kompakt */
    .day-tabs {
        gap: 0.25rem;
    }

    .day-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }

    .league-chip {
        padding: 0.3rem 0.6rem;
        font-size: 0.68rem;
    }

    /* Section Titles */
    .section-title {
        font-size: clamp(1.1rem, 5vw, 1.6rem);
    }

    .section-subtitle {
        font-size: 0.78rem;
    }

    /* Sections Padding */
    #dashboard,
    #tracker,
    #community,
    #rankings,
    #profil,
    #live,
    #analysis,
    #leagues,
    #settings {
        padding: 3rem 0.75rem;
    }

    /* CTA Button */
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    /* Footer kompakt */
    .footer-brand {
        font-size: 0.75rem;
    }

    .footer-powered {
        font-size: 0.72rem;
    }

    .footer-version {
        font-size: 0.65rem;
    }

    .footer-disclaimer {
        font-size: 0.6rem;
    }

    /* Auth Gate Mobile */
    .auth-container {
        padding: 2rem 1.5rem;
    }

    .auth-logo {
        width: 90px;
        height: 90px;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.5em;
    }

    /* Value Bet Grid */
    .value-bet-grid {
        grid-template-columns: 1fr;
    }

    /* Poisson */
    .poisson-result {
        font-size: 1.5rem;
        padding: 0.75rem;
    }

    /* Card Title */
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* ============================================================
   AUTH GATE V2 — Login + Registrierung, Mobile First
   ============================================================ */
#auth-gate {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(ellipse at top, #141414 0%, #050505 70%);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 1.2rem; overflow-y: auto;
    font-family: var(--font-body, -apple-system, 'Inter', system-ui, sans-serif);
}
#auth-gate .auth-shell {
    width: 100%; max-width: 440px;
    background: linear-gradient(180deg, rgba(21,21,21,0.95) 0%, rgba(10,10,10,0.98) 100%);
    border: 1px solid #2a2a2a; border-radius: 16px;
    padding: 1.8rem 1.4rem; margin: 1rem 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#auth-gate .auth-header { text-align: center; margin-bottom: 1.5rem; }
#auth-gate .auth-logo { width: 68px; height: 68px; border-radius: 12px; object-fit: contain; }
#auth-gate .auth-title { font-size: 1.4rem; color: #d4af37; letter-spacing: 0.12em; margin: 0.8rem 0 0.2rem; font-weight: 800; }
#auth-gate .auth-subtitle { font-size: 0.75rem; color: #888; letter-spacing: 0.08em; margin: 0; }

#auth-gate .auth-tabs { display: flex; gap: 0; margin-bottom: 1.4rem; border-bottom: 1px solid #2a2a2a; }
#auth-gate .auth-tab {
    flex: 1; padding: 0.8rem 0.4rem; background: transparent; border: 0; color: #888;
    font-size: 0.92rem; font-weight: 600; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.15s;
}
#auth-gate .auth-tab:hover { color: #d4af37; }
#auth-gate .auth-tab.active { color: #d4af37; border-bottom-color: #d4af37; }

#auth-gate .auth-panel { display: none; }
#auth-gate .auth-panel.active { display: block; animation: fadeIn 0.25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

#auth-gate .auth-group { margin-bottom: 1rem; }
#auth-gate .auth-group label {
    display: block; font-size: 0.78rem; color: #bbb;
    letter-spacing: 0.03em; margin-bottom: 0.4rem; font-weight: 600;
}
#auth-gate .auth-group input[type="text"],
#auth-gate .auth-group input[type="email"],
#auth-gate .auth-group input[type="password"],
#auth-gate .auth-group input[type="file"],
#auth-gate .auth-group select {
    width: 100%; box-sizing: border-box;
    padding: 0.85rem 0.95rem; font-size: 1rem;
    background: #0d0d0d; border: 1px solid #2d2d2d; color: #fff;
    border-radius: 8px; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#auth-gate .auth-group input:focus,
#auth-gate .auth-group select:focus {
    outline: none; border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
#auth-gate .auth-group input[type="file"] { padding: 0.55rem 0.65rem; }
#auth-gate .auth-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px;
    padding-right: 2.5rem;
}
#auth-gate .auth-hint { display: block; font-size: 0.72rem; color: #666; margin-top: 0.35rem; }
#auth-gate .auth-submit {
    width: 100%; padding: 1rem; margin-top: 0.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8961f 100%);
    color: #000; border: 0; border-radius: 8px;
    font-size: 1rem; font-weight: 700; letter-spacing: 0.05em;
    cursor: pointer; transition: transform 0.1s, box-shadow 0.15s;
    font-family: inherit;
}
#auth-gate .auth-submit:hover { box-shadow: 0 6px 18px rgba(212,175,55,0.3); }
#auth-gate .auth-submit:active { transform: translateY(1px); }
#auth-gate .auth-foot { text-align: center; color: #999; margin-top: 1rem; font-size: 0.85rem; }
#auth-gate .auth-foot a { color: #d4af37; text-decoration: none; }
#auth-gate .auth-foot a:hover { text-decoration: underline; }
#auth-gate .auth-msg { min-height: 1.2em; margin-top: 0.8rem; font-size: 0.85rem; text-align: center; line-height: 1.4; }
#auth-gate .auth-msg-error { color: #ff6b6b; }
#auth-gate .auth-msg-ok    { color: #4ade80; }

/* Mobile-first Feintuning */
@media (max-width: 480px) {
    #auth-gate .auth-shell { padding: 1.4rem 1rem; border-radius: 12px; }
    #auth-gate .auth-title { font-size: 1.2rem; }
    #auth-gate .auth-logo { width: 58px; height: 58px; }
    #auth-gate .auth-group input,
    #auth-gate .auth-group select { font-size: 16px; /* verhindert iOS-Zoom */ }
}

/* ============================================================
   MOBILE-APP-LAYOUT V2 — Burger-Slide-In-Sidebar (wie native Mobile-Apps)
   ============================================================ */
@media (max-width: 900px) {
    /* Sidebar: versteckt links off-screen, slide-in bei .open */
    .sidebar {
        position: fixed !important;
        top: 0 !important; left: 0 !important; bottom: 0 !important;
        width: 280px !important; max-width: 85vw;
        height: 100vh !important; height: 100dvh !important;
        padding: 1rem 0 !important;
        z-index: 1000;
        background: rgba(10,10,10,0.98) !important;
        backdrop-filter: blur(12px);
        border-right: 1px solid #2a2a2a !important;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-header { display: block !important; padding: 0.5rem 1.2rem 1rem !important; border-bottom: 1px solid #2a2a2a; margin-bottom: 0.8rem; }
    .sidebar-footer { display: block !important; padding: 1rem 1.2rem; border-top: 1px solid #2a2a2a; margin-top: 1rem; font-size: 0.7rem; color: #666; }
    .sidebar-nav { display: flex !important; flex-direction: column !important; padding: 0 0.5rem !important; gap: 0.2rem !important; }
    .sidebar-item { padding: 0.85rem 1rem !important; flex-direction: row !important; gap: 0.9rem !important; border-radius: 8px !important; font-size: 0.95rem !important; }
    .sidebar-item:hover, .sidebar-item.active { background: rgba(212,175,55,0.12); color: #d4af37; }
    .sidebar-item .sidebar-icon { font-size: 1.25rem !important; }
    .sidebar-item .sidebar-text { font-size: 0.95rem !important; letter-spacing: 0 !important; }
    .sidebar-divider { display: block !important; border-top: 1px solid #2a2a2a; margin: 0.6rem 0; }

    /* Overlay wenn Sidebar offen */
    .sidebar-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        z-index: 999; opacity: 0; pointer-events: none;
        transition: opacity 0.2s;
    }
    .sidebar.open ~ .sidebar-overlay,
    body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }

    /* Content: volle Breite, Sidebar ist Overlay */
    #app { grid-template-columns: 1fr !important; }
    .app-main, main, #main-content, #app > main { padding-bottom: 2rem !important; margin-left: 0 !important; width: 100% !important; }

    /* Header: Burger-Button deutlich sichtbar */
    #main-header, header#main-header {
        position: sticky; top: 0; z-index: 50;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid #2a2a2a;
    }
    .header-inner { padding: 0.6rem 0.8rem !important; gap: 0.5rem !important; }
    .sidebar-toggle-btn {
        display: inline-flex !important; align-items: center; justify-content: center;
        width: 44px; height: 44px;
        font-size: 1.5rem; color: #d4af37;
        background: transparent; border: 1px solid #2a2a2a; border-radius: 8px;
        cursor: pointer;
    }
    .sidebar-toggle-btn:active { background: rgba(212,175,55,0.12); }

    .header-logo { width: 32px !important; height: 32px !important; cursor: pointer; }
    .header-brand { font-size: 0.85rem !important; letter-spacing: 0.05em; cursor: pointer; }
    .header-center { display: none !important; }
    .header-right .header-btn:not(#theme-toggle):not(.header-notif-btn) { display: none !important; }
    .header-right { gap: 0.4rem !important; }
    .header-avatar { width: 36px !important; height: 36px !important; }

    /* Sections: volle Breite, kein Overflow */
    section { padding: 1rem 0.9rem !important; max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }
    .section-title { font-size: 1.15rem !important; }
    .section-subtitle { font-size: 0.82rem !important; }

    /* Hero-Section: Logo komplett sichtbar */
    #hero {
        min-height: auto !important;
        padding: 1.5rem 1rem 2rem !important;
        align-items: center !important;
    }
    #hero .hero-content { margin-bottom: 1.5rem !important; padding-top: 0 !important; }
    #hero .hero-logo { width: 120px !important; height: 120px !important; margin: 0 auto 1rem !important; display: block; }
    .hero-title { font-size: 1.8rem !important; line-height: 1.1; }
    .hero-ai { font-size: 2rem !important; }
    .hero-tagline, .hero-subtitle { font-size: 0.9rem !important; }
    .hero-stats, .stats-bar { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem !important; }
    .cta-button { width: 100% !important; padding: 1rem !important; font-size: 1rem !important; }

    /* Match-Grid: 1 Spalte */
    .match-grid, #match-grid, .top-picks-grid { grid-template-columns: 1fr !important; gap: 0.7rem !important; }
    .match-card, .top-pick-card { padding: 0.9rem !important; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .match-card * { max-width: 100%; box-sizing: border-box; }

    /* ============================================================
       BET-ARCHITEKT MOBILE — Karten-Layout statt horizontale Row
       ============================================================ */
    .slip-builder-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .slip-config, .slip-result, .slip-output {
        width: 100% !important; max-width: 100% !important;
        box-sizing: border-box !important;
        min-height: auto !important;
    }
    .slip-config { padding: 1rem !important; }
    .slip-form-group { margin-bottom: 0.85rem !important; }
    .slip-form-group label { font-size: 0.75rem !important; margin-bottom: 0.3rem !important; }
    .slip-form-group input, .slip-form-group select {
        font-size: 16px !important;  /* iOS-no-zoom */
        padding: 0.7rem 0.8rem !important;
        width: 100% !important; max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .slip-generate-btn {
        font-size: 0.9rem !important;
        padding: 1rem !important;
        margin-top: 0.8rem !important;
    }

    /* Wettarten-Checkbox-Grid: 2 Spalten auch auf Mobile (kompakt) */
    .slip-bettype-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.45rem !important;
    }
    .slip-bettype-grid .chk {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0.7rem 0.7rem !important;
        font-size: 0.82rem !important;
        min-height: 48px;
        box-sizing: border-box;
        gap: 0.5rem !important;
        text-align: left !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .slip-bettype-grid .chk input[type="checkbox"] {
        flex: 0 0 auto !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        accent-color: #d4af37;
    }

    /* Output-Block: keine Min-Height-Probleme */
    .slip-output { min-height: 200px !important; }
    .slip-placeholder { min-height: 200px !important; padding: 1.5rem 1rem !important; }
    .slip-header { padding: 0.8rem 0.9rem !important; }
    .slip-header h3 { font-size: 0.95rem !important; }
    .slip-meta { flex-wrap: wrap !important; gap: 0.5rem !important; font-size: 0.7rem !important; }

    /* Schein-Items: vertikale Karten statt horizontale Row */
    .slip-items { padding: 0.4rem 0 !important; }
    .slip-item {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-areas:
            "num match odds"
            "num tip  score"
            ". tip  ." !important;
        gap: 0.3rem 0.6rem !important;
        padding: 0.7rem 0.9rem !important;
        align-items: start !important;
    }
    .slip-item-num   { grid-area: num;   align-self: center !important; min-width: 1.5rem !important; font-size: 0.85rem !important; }
    .slip-item-match { grid-area: match; min-width: 0 !important; overflow: hidden !important; }
    .slip-item-teams { font-size: 0.85rem !important; white-space: normal !important; word-break: break-word !important; }
    .slip-item-league { font-size: 0.65rem !important; }
    .slip-item-tip   { grid-area: tip; min-width: 0 !important; text-align: left !important; padding-top: 0.3rem; border-top: 1px dashed rgba(255,255,255,0.06); }
    .slip-item-tip-label { font-size: 0.75rem !important; }
    .slip-item-tip-desc  { font-size: 0.7rem !important; }
    .slip-item-odds  { grid-area: odds;  min-width: auto !important; font-size: 0.95rem !important; text-align: right !important; }
    .slip-item-score { grid-area: score; min-width: auto !important; font-size: 0.75rem !important; text-align: right !important; }

    /* Summary + Actions */
    .slip-summary { padding: 0.9rem !important; }
    .slip-summary-row { font-size: 0.82rem !important; gap: 0.5rem !important; flex-wrap: wrap; }
    .slip-summary-row > span { min-width: 0 !important; }
    .slip-summary-win { font-size: 1rem !important; }
    .slip-potential-win { font-size: 1.15rem !important; }

    .slip-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.9rem !important;
    }
    .slip-action-btn {
        width: 100% !important;
        padding: 0.85rem !important;
        font-size: 0.85rem !important;
        box-sizing: border-box !important;
    }

    /* Edge-Badges: nicht umbrechen */
    .edge-badge { white-space: nowrap; display: inline-block; margin-top: 0.2rem; margin-left: 0 !important; }

    /* Filter-Chips: horizontal scrollbar statt umbrechen */
    .league-filter, .day-tabs, .top-picks-filters, .filter-chips, .filter-tabs {
        display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
        gap: 0.4rem !important; padding: 0.3rem 0.8rem !important;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
        max-width: 100vw !important;
    }
    .league-filter::-webkit-scrollbar, .day-tabs::-webkit-scrollbar, .top-picks-filters::-webkit-scrollbar, .filter-chips::-webkit-scrollbar { display: none; }
    .league-chip, .day-tab, .filter-chip {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.8rem !important;
    }

    /* Tracker, Win-Factory: responsive Tabellen */
    table { display: block; overflow-x: auto; max-width: 100%; }

    /* Footer-Spacing */
    footer { padding: 1rem 0.9rem !important; text-align: center; font-size: 0.75rem; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    #hero { padding: 1rem 0.8rem 1.5rem !important; }
    #hero .hero-logo { width: 100px !important; height: 100px !important; }
    .hero-title { font-size: 1.5rem !important; }
    .hero-ai { font-size: 1.7rem !important; }
    .section-title { font-size: 1rem !important; }
    .match-card, .top-pick-card { padding: 0.75rem !important; }
    .header-brand { font-size: 0.75rem !important; }
    .header-inner { padding: 0.5rem 0.6rem !important; }
    .sidebar-toggle-btn { width: 42px !important; height: 42px !important; }
}

/* Desktop: Burger ausblenden */
@media (min-width: 901px) {
    .sidebar-toggle-btn { display: inline-flex; }  /* Desktop: existiert, kann collapse machen */
    .sidebar-overlay { display: none !important; }
}

/* ============================================================
   NEXUS-CRIT (19.04.2026) — iOS-Zoom-Prävention auf ALLEN Inputs
   Alle font-size < 16px triggern iOS Auto-Zoom und scrollen schief
   ============================================================ */
@media (max-width: 900px) {
    input[type="text"], input[type="email"], input[type="password"],
    input[type="number"], input[type="tel"], input[type="url"],
    input[type="search"], input[type="date"], input[type="time"],
    input[type="datetime-local"], select, textarea {
        font-size: 16px !important;
    }
    /* File-Input: Label-Styling */
    input[type="file"] { font-size: 14px !important; max-width: 100% !important; }
}

/* DSGVO-Checkbox im Auth-Gate */
.auth-privacy { margin: 0.8rem 0 1rem !important; }
.auth-privacy-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.7rem !important;
    padding: 0.7rem 0.8rem;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #ddd;
}
.auth-privacy-label input[type="checkbox"] {
    margin-top: 0.15rem !important;
    width: 18px; height: 18px;
    flex: 0 0 auto !important;
    accent-color: #d4af37;
}
.auth-privacy-label a { color: #d4af37; text-decoration: underline; }
.auth-privacy-label a:hover { color: #ffce3a; }

/* NEXUS-CRITs: Grid-Overflows bei Inside Football + Insider */
@media (max-width: 900px) {
    .inside-football-grid,
    .insider-grid,
    .news-grid,
    .coach-grid,
    .stats-grid-4,
    .stats-grid-3 {
        grid-template-columns: 1fr !important;
    }
    /* Tracker: Stats-Grid 2×3 statt 1×6 (1-Spalte ist zu Scroll-lastig) */
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
    /* Community-Tabs: horizontal scrollable */
    .community-tabs, .forum-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        scrollbar-width: none;
    }
    .community-tabs::-webkit-scrollbar, .forum-tabs::-webkit-scrollbar { display: none; }
    .community-tab, .forum-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
    /* Leaderboard: Scroll-Hint */
    .leaderboard-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Analyse-Overlay Mobile-Padding */
    .analyse-overlay { padding: 0.5rem !important; }
    .analyse-panel { padding: 1rem !important; max-height: 95dvh !important; }
    /* Settings-API-Key-Input darf voll sein */
    .settings-input { width: auto !important; flex: 1 !important; }
    /* Header-Brand verschwindet bei sehr kleinem Viewport */
    #main-header .header-brand { max-width: 35vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 360px) {
    #main-header .header-brand { display: none !important; }
}

/* ============================================================
   GLOBAL MOBILE OVERFLOW-GUARD — niemals horizontaler Scroll
   ============================================================ */
@media (max-width: 900px) {
    html, body { overflow-x: hidden !important; max-width: 100vw !important; }
    #app { max-width: 100vw !important; overflow-x: hidden !important; }
    section { max-width: 100vw !important; overflow-x: hidden !important; }

    /* Keine harten min-widths mehr die das Layout sprengen */
    .match-card, .top-pick-card, .insider-card, .news-card,
    .slip-item, .wf-slip-card, .bet-row, .analysis-card,
    .profil-card, .settings-card {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Alles was aus Flex/Grid rausbricht eingrenzen */
    .match-card *, .top-pick-card *, .slip-item *, .wf-slip-card * {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Tabellen scrollen horizontal statt zu sprengen */
    .striker-table, table { max-width: 100%; display: block; overflow-x: auto; }

    /* Input-Groups in Form-Layouts nicht wrappen lassen */
    .form-row { flex-wrap: wrap !important; }
    .form-row > * { flex: 1 1 100% !important; min-width: 0 !important; }

    /* Tracker-Bet-Form */
    #bet-form { grid-template-columns: 1fr !important; gap: 0.6rem !important; }

    /* Win-Factory: komplett vertikal stapeln */
    #win-factory { padding: 1rem 0.8rem !important; }
    .wf-layout { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .wf-create, .wf-saved { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; padding: 1rem !important; }
    .wf-add-pick, .wf-pick-adder, .wf-pick-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    .wf-add-pick > *, .wf-pick-adder > *, .wf-pick-row > * {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    .wf-add-btn { min-height: 48px !important; font-size: 1.2rem !important; }
    /* Stats-Bar: Grid 2x2 statt aneinander gekleistert */
    .wf-stats-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
        margin-top: 0.8rem !important;
    }
    .wf-stat {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0.7rem 0.4rem !important;
        background: rgba(255,255,255,0.04);
        border-radius: 8px;
        gap: 0.2rem !important;
    }
    .wf-stat-label { font-size: 0.7rem !important; }

    /* Top-Picks Filter */
    .top-picks-filters, .top-picks-controls {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .top-picks-filters > *, .top-picks-controls > * { flex: 1 1 auto !important; }

    /* Data-Source Badge nicht zu breit */
    .data-source-badge { max-width: 100% !important; font-size: 0.75rem !important; white-space: normal !important; word-break: break-word; }

    /* Match-Card: sauberes vertikales Layout, Badge als Header-Streifen (kein Überhang) */
    .match-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.55rem !important;
        overflow: hidden !important;   /* sauber abschliessen */
        padding: 0.9rem !important;
        margin: 0 !important;
        border-radius: 14px !important;
    }
    .match-card::before { display: none !important; }
    /* Ampel-Bar oben als voller Streifen (kein freistehender Badge mehr) */
    .match-ampel-bar {
        margin: -0.9rem -0.9rem 0.2rem -0.9rem !important;
        padding: 0.55rem 0.9rem !important;
        border-radius: 14px 14px 0 0 !important;
        background: rgba(255,255,255,0.03);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        text-align: center;
    }
    .match-card .recommendation {
        position: static !important;
        transform: none !important;
        animation: none !important;   /* Pulse nervt auf Mobile */
        box-shadow: none !important;
        border-width: 1px !important;
        padding: 0.3rem 0.8rem !important;
        font-size: 0.72rem !important;
        display: inline-flex !important;
    }
    /* Liga-Row eine Zeile, Teams zentriert */
    .match-league-row { font-size: 0.72rem !important; color: var(--text-muted); }
    .match-teams { gap: 0.5rem !important; }
    .match-team { flex: 1; min-width: 0; }
    .team-name { font-size: 0.95rem !important; line-height: 1.25 !important; }
    .match-vs-small { font-size: 0.75rem !important; color: var(--text-muted); }
    /* Stars + Battery nicht zu gross */
    .stars-rating { gap: 0.08rem !important; margin-top: 0.3rem !important; }
    .star { font-size: 0.85rem !important; }
    .confidence-battery { gap: 0.15rem !important; }
    .match-card-meta, .match-header { flex-wrap: wrap !important; gap: 0.3rem !important; }
    .match-card-odds, .odds-row { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 0.4rem !important; }
    .odds-btn { padding: 0.5rem 0.3rem !important; font-size: 0.8rem !important; }

    /* Top-Pick-Card: horizontal → vertikal stapeln, Team-Namen umbrechen erlauben */
    .top-pick-card {
        display: grid !important;
        grid-template-columns: auto auto 1fr !important;
        grid-template-areas:
            "rank score info"
            "rank score odds"
            "rec rec rec" !important;
        gap: 0.5rem 0.7rem !important;
        padding: 0.8rem !important;
        align-items: center !important;
    }
    .top-pick-rank { grid-area: rank; align-self: center !important; }
    .top-pick-score { grid-area: score; align-self: center !important; }
    .top-pick-info { grid-area: info; min-width: 0 !important; }
    .top-pick-teams {
        font-size: 0.88rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }
    .top-pick-meta { font-size: 0.68rem !important; }
    .top-pick-odds {
        grid-area: odds;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.3rem !important;
    }
    .top-pick-odds span {
        padding: 0.35rem !important;
        font-size: 0.78rem !important;
        text-align: center !important;
    }
    .top-pick-card .recommendation {
        grid-area: rec !important;
        justify-self: start !important;
        font-size: 0.7rem !important;
        padding: 0.3rem 0.7rem !important;
    }
}

/* Value-Only Toggle: eigenständiger Style */
.slip-value-toggle {
    display: flex !important;
    gap: 0.6rem !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 0.9rem !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: inherit !important;
    margin: 0 !important;
}
.slip-value-toggle input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: #d4af37;
    flex: 0 0 auto !important;
    margin: 0 !important;
}
.slip-value-toggle span { line-height: 1.3; flex: 1; }

/* Bet Architect V2 — Checkboxes + Edge-Badges */
.slip-bettype-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.3rem; }
.slip-bettype-grid .chk { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.5rem; background: rgba(255,255,255,0.03); border: 1px solid #2a2a2a; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.slip-bettype-grid .chk:hover { border-color: #d4af37; }
.slip-bettype-grid .chk input { margin: 0; accent-color: #d4af37; }
.edge-badge { display: inline-block; padding: 0.1rem 0.4rem; font-size: 0.68rem; border-radius: 4px; margin-left: 0.3rem; font-weight: 700; }
.edge-pos { background: rgba(34,197,94,0.2); color: #4ade80; }
.edge-neutral { background: rgba(212,175,55,0.15); color: #d4af37; }
.edge-neg { background: rgba(239,68,68,0.15); color: #ef4444; }
@media (max-width: 480px) { .slip-bettype-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BET-ARCHITEKT DIAMANT-UPGRADE — One-Click-Presets + Historie
   ============================================================ */
.slip-presets {
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
}
.slip-presets-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    text-align: center;
}
.slip-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}
.slip-preset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #eee;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 60px;
}
.slip-preset:hover {
    border-color: var(--gold);
    background: rgba(212,175,55,0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(212,175,55,0.15);
}
.slip-preset small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #b0b0b0;
    margin-top: 0.15rem;
    line-height: 1.3;
}
.slip-preset {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Kelly-Stake + Alternative-Tipps-Chip */
.slip-kelly-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    margin: 0.15rem 0 0 0;
    background: rgba(74,222,128,0.15);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.4);
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}
.slip-correlation-warn {
    margin-top: 0.35rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255,200,0,0.08);
    border-left: 2px solid #ffc107;
    font-size: 0.7rem;
    color: #ffc107;
}
.slip-ai-reason {
    margin-top: 0.3rem;
    padding: 0.3rem 0;
    font-size: 0.72rem;
    color: var(--text-muted, #aaa);
    font-style: italic;
    border-top: 1px dashed rgba(255,255,255,0.06);
}

/* Schein-Historie */
.slip-history-wrap {
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.slip-history-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1rem;
    margin: 0 0 1rem 0;
}
.slip-history-list { display: flex; flex-direction: column; gap: 0.6rem; }
.slip-history-empty { color: var(--text-muted, #888); text-align: center; padding: 1rem 0; margin: 0; }
.slip-history-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    align-items: center;
}
.slip-history-date { font-size: 0.7rem; color: var(--text-muted); }
.slip-history-summary { min-width: 0; font-size: 0.82rem; }
.slip-history-win { font-family: var(--font-heading); font-size: 1rem; color: var(--gold); font-weight: 700; }

@media (max-width: 900px) {
    .slip-presets { padding: 0.9rem !important; }
    .slip-presets-grid { grid-template-columns: 1fr 1fr !important; gap: 0.5rem !important; }
    .slip-preset { padding: 0.7rem !important; font-size: 0.82rem !important; min-height: 54px; }
    .slip-preset small { font-size: 0.68rem !important; line-height: 1.3; }
    .slip-history-summary { overflow-wrap: anywhere; word-break: break-word; }
    .slip-history-wrap { padding: 1rem !important; }
    .slip-history-item { grid-template-columns: 1fr !important; }
}

/* ============================================================
   💎 PERFORMANCE-RADAR (Analytics-Engine)
   ============================================================ */
.perf-radar-wrap {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(212,175,55,0.06), rgba(10,10,10,0.3));
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 14px;
}
.perf-radar-header { text-align: center; margin-bottom: 1.2rem; }
.perf-radar-title { font-family: var(--font-heading, 'Orbitron'); color: var(--gold); font-size: 1.1rem; margin: 0; letter-spacing: 0.05em; }
.perf-radar-subtitle { color: #999; font-size: 0.82rem; margin: 0.3rem 0 0; }
.perf-empty { color: #888; text-align: center; padding: 2rem 1rem; font-size: 0.9rem; }

.perf-header-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.perf-kpi {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.9rem 0.6rem;
    text-align: center;
    display: flex; flex-direction: column; gap: 0.2rem;
}
.perf-kpi-val { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: #fff; }
.perf-kpi-lbl { font-size: 0.68rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; }
.perf-good { color: #4ade80 !important; }
.perf-mid  { color: #f59e0b !important; }
.perf-bad  { color: #ef4444 !important; }

.perf-trend {
    padding: 0.7rem 1rem;
    margin: 0.8rem 0;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.perf-character-card {
    margin: 1rem 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(0,0,0,0.4));
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    text-align: center;
}
.perf-character-label { font-size: 0.72rem; color: #bbb; letter-spacing: 0.08em; text-transform: uppercase; }
.perf-character-name { font-family: var(--font-heading); font-size: 1.4rem; color: var(--gold); margin: 0.4rem 0; font-weight: 800; }
.perf-character-desc { font-size: 0.85rem; color: #ddd; line-height: 1.4; }

.perf-warnings { display: flex; flex-direction: column; gap: 0.4rem; margin: 1rem 0; }
.perf-warn {
    padding: 0.6rem 0.9rem;
    background: rgba(255,200,0,0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #f0cc6a;
}

.perf-section { margin-top: 1.2rem; }
.perf-section-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}
.perf-row {
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    gap: 0.6rem;
    align-items: center;
    padding: 0.5rem 0.3rem;
    font-size: 0.82rem;
}
.perf-row-name { color: #ddd; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-row-bar { height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; }
.perf-row-fill { height: 100%; transition: width 0.4s; }
.perf-row-fill.perf-good { background: linear-gradient(90deg, #4ade80, #22c55e); }
.perf-row-fill.perf-mid  { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.perf-row-fill.perf-bad  { background: linear-gradient(90deg, #f87171, #ef4444); }
.perf-row-val { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; text-align: right; }

@media (max-width: 600px) {
    .perf-radar-wrap { padding: 1rem !important; margin-top: 1rem !important; }
    .perf-header-stats { grid-template-columns: 1fr 1fr !important; }
    .perf-kpi-val { font-size: 1.1rem !important; }
    .perf-row { grid-template-columns: 95px 1fr 70px !important; font-size: 0.75rem !important; gap: 0.4rem !important; }
    .perf-row-name { font-size: 0.78rem !important; }
    .perf-row-val { font-size: 0.7rem !important; }
    .perf-character-name { font-size: 1.15rem !important; }
}
