:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent: #f97316;
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --section-bg: #080808;
    --input-bg: rgba(0, 0, 0, 0.5);
    --input-border: #333;
    --entry-bg: rgba(0, 0, 0, 0.5);
    --statusbar-bg: rgba(5, 5, 5, 0.9);
    --statusbar-border: rgba(249, 115, 22, 0.3);
    --muted: #888;
    --muted-2: #aaa;
    --card-bg: #111;
    --qc-modal-bg: rgba(0, 0, 0, 0.8);
}

html[data-theme="light"] {
    --bg-color: #eeecea;
    --text-color: #111111;
    --accent: #f97316;
    --glass-bg: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.1);
    --section-bg: #e6e4e1;
    --input-bg: rgba(255, 255, 255, 0.75);
    --input-border: #ccc;
    --entry-bg: rgba(255, 255, 255, 0.7);
    --statusbar-bg: rgba(238, 236, 234, 0.95);
    --statusbar-border: rgba(249, 115, 22, 0.4);
    --muted: #666;
    --muted-2: #555;
    --card-bg: #f5f4f1;
    --qc-modal-bg: rgba(200, 200, 200, 0.6);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), height 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.cursor.active {
    width: 36px;
    height: 36px;
}
.cursor.active-cta {
    width: 56px;
    height: 56px;
    background-color: white;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}
.menu a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.55;
    position: relative;
}
.menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s ease;
}
.menu a:hover,
.menu a.nav-active {
    color: var(--accent);
    opacity: 1;
}
.menu a.nav-active::after {
    width: 100%;
}



.features {
    padding: 8rem 4rem 6rem;
    background: var(--section-bg);
    position: relative;
    z-index: 10;
}
.section-title {
    font-size: 5rem;
    margin-bottom: 3rem;
    letter-spacing: -2px;
}
/* ── Tool List ─────────────────────────────────────────────────── */

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 780px;
    margin: 0 auto;
}

.tool-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
    padding-left: 4px;
}

.tool-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    margin-bottom: 6px;
}
.tool-row:last-child { margin-bottom: 0; }
.tool-row:hover {
    background: var(--glass-border);
    border-color: var(--accent);
    transform: translateX(4px);
}

.tool-accent {
    width: 3px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tool-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.tool-desc {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.tool-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--glass-border);
    padding: 4px 10px;
    border-radius: 100px;
    flex-shrink: 0;
}

.tool-arrow {
    font-size: 16px;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.tool-row:hover .tool-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .tool-tag { display: none; }
    .tool-row { padding: 14px 16px; gap: 12px; }
}

/* ── (legacy kept for other uses) ─────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    min-width: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(249,115,22,0.12);
}
.card-img {
    height: 180px;
    background: #111;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    position: relative;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.feature-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.huge-text {
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
}

@media (max-width: 1100px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (max-width: 700px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 500px) {
    .feature-grid { grid-template-columns: 1fr; }
    .features { padding: 4rem 2rem; }
}

/* --- PRO FEATURES: Dashboard Chart --- */
.dashboard-section {
    padding: 6rem 4rem;
    background: var(--section-bg);
    position: relative;
    z-index: 10;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}
.dashboard-header h2 {
    font-size: 3rem;
    font-weight: 700;
}
.profit-highlight {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
}
.chart-container {
    width: 100%;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* --- PRO FEATURES: Status Bar --- */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--statusbar-bg);
    border-top: 1px solid var(--statusbar-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-item .highlight {
    color: var(--text-color);
    font-weight: 700;
}
.status-item .liability {
    color: var(--color-danger);
}
.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* --- PRO FEATURES: Floating Action Button & Modal --- */
.fab-calc {
    position: fixed;
    bottom: 60px;
    right: 40px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(249,115,22,0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fab-calc:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(249,115,22,0.6);
}

.quick-calc-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--qc-modal-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
}
.qc-content {
    background: var(--card-bg);
    width: 400px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 var(--glass-border);
    overflow: hidden;
    transform: translateY(50px);
}
.qc-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(249,115,22,0.1);
}
.qc-header h3 { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin: 0; }
.qc-close {
    background: none; border: none; color: var(--text-color); font-size: 2rem; cursor: pointer; line-height: 0.5;
}
.qc-body { padding: 30px 25px; }
.qc-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
}
.qc-row label {
    font-size: 0.95rem; color: var(--muted-2);
}
.qc-row input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 12px;
    border-radius: 8px;
    width: 140px;
    font-size: 1.1rem;
    font-family: inherit;
    text-align: right;
    transition: border-color 0.3s;
}
.qc-row input:focus {
    outline: none; border-color: var(--accent);
}
.qc-divider { border: 0; border-top: 1px solid var(--glass-border); margin: 20px 0; }
.qc-result-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 1.1rem;
}
.qc-result-row strong { font-size: 1.4rem; }
.qc-result-row strong.liability { color: var(--color-danger); }
.qc-result-row strong.profit { color: var(--color-success); }

/* --- PRO FEATURES: Interactive Tracker --- */
.dashboard-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.tracker-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.tracker-form-box, .tracker-list-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.tracker-form-box h3, .tracker-list-box h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--accent);
}
#trackerForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tracker-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.tracker-input:focus {
    outline: none;
    border-color: var(--accent);
}
/* Style datetime placeholder */
.tracker-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
}
.btn-track {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: box-shadow 0.3s, transform 0.2s;
    margin-top: 5px;
}
.btn-track:hover {
    box-shadow: 0 5px 20px rgba(249,115,22,0.4);
    transform: translateY(-2px);
}
.recent-entries {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px; /* for scrollbar */
}
/* Custom minor scrollbar */
.recent-entries::-webkit-scrollbar { width: 5px; }
.recent-entries::-webkit-scrollbar-track { background: transparent; }
.recent-entries::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 5px; }

.entry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--entry-bg);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid var(--input-border);
}
.entry-item.positive { border-left-color: var(--color-success); }
.entry-item.negative { border-left-color: var(--color-danger); }
.entry-bookie { font-weight: 700; color: var(--text-color); }
.entry-date { color: var(--muted); font-size: 0.8rem; margin-top:2px; }
.entry-profit { font-weight: bold; font-size: 1rem; }
.entry-profit.positive { color: var(--color-success); }
.entry-profit.negative { color: var(--color-danger); }
.btn-delete { background: none; border: none; color: var(--color-danger); cursor: pointer; font-weight: bold; padding: 0 5px; font-size: 1.2rem; }
.btn-delete:hover { opacity: 0.7; }

@media (max-width: 1024px) {
    .dashboard-split { grid-template-columns: 1fr; }
}

/* --- PRO FEATURES: Bonus Tracker --- */
.bonus-section {
    background: var(--section-bg);
    position: relative;
    z-index: 10;
    padding-bottom: 6rem;
}
.bonus-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.bonus-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(249,115,22,0.15);
    border-color: rgba(249,115,22,0.3);
}
.bonus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bonus-card-header h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
}
.bonus-amount {
    color: var(--accent);
    font-weight: 900;
    font-size: 1.1rem;
}
.bonus-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 5px;
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--input-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ea580c, #f97316);
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}
.progress-bar-fill.complete {
    background: linear-gradient(90deg, #00b09b, #96c93d);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}
.bonus-wager-update {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.wager-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    border-radius: 6px;
    padding: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100px;
}
.wager-input:focus { outline: none; border-color: var(--accent); }
.btn-wager {
    background: var(--input-border);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-wager:hover { background: var(--accent); color: #000; }
.btn-del-bonus {
    background: none; border: none; color: #ff3366; cursor: pointer; font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .bonus-layout { grid-template-columns: 1fr; }
}


/* --- Export Buttons --- */
.export-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}
.btn-export {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--muted);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}
.btn-export:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Stats Sektion --- */
.stats-section {
    background: var(--bg-color);
    padding: 8rem 4rem;
    position: relative;
    z-index: 10;
}
.stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
}
.stats-left .huge-text {
    margin-bottom: 3rem;
}
.stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
    line-height: 1.1;
}
.stat-value--sm {
    font-size: 1.3rem;
}
.bookie-chart-wrap {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    height: 420px;
    display: flex;
    flex-direction: column;
}
.bookie-chart-wrap h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Bonus Section Typography --- */
.ev-section-label {
    color: var(--muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}
.ev-header-value {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-success);
}
.ev-realized-label {
    color: var(--muted-2);
    font-size: 1rem;
    margin-top: 5px;
}
.ev-realized-label span {
    color: var(--text-color);
    font-weight: 700;
}

/* --- Slim Footer --- */
.site-footer {
    padding: 1.5rem 4rem;
    background: var(--section-bg);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .stats-inner { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* --- Theme Toggle Button (in Statusleiste) --- */
.theme-toggle {
    background: none;
    border: 1px solid var(--statusbar-border);
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(20deg);
}

/* --- Light Theme specific overrides --- */
html[data-theme="light"] .cursor {
    background-color: #ffffff;
    mix-blend-mode: difference;
}
html[data-theme="light"] .cursor.active,
html[data-theme="light"] .cursor.active-cta {
    background-color: #ffffff;
    mix-blend-mode: difference;
}
html[data-theme="light"] .navbar {
    mix-blend-mode: normal;
}
html[data-theme="light"] .navbar .logo,
html[data-theme="light"] .navbar .menu a {
    color: #111;
}
html[data-theme="light"] html[data-theme="light"] .chart-container { box-shadow: inset 0 0 50px rgba(0,0,0,0.06); }
html[data-theme="light"] .status-item .highlight { color: #111; }
html[data-theme="light"] .recent-entries::-webkit-scrollbar-thumb { background: #bbb; }
html[data-theme="light"] .feature-card p { color: var(--muted); }
html[data-theme="light"] .card-img { background: #d0ceca; }
html[data-theme="light"] .tracker-input::-webkit-calendar-picker-indicator { filter: none; opacity: 0.6; }
html[data-theme="light"] body { transition: background-color 0.3s, color 0.3s; }

/* --- Backup Warning Bar --- */
.backup-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: #f97316;
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 9001;
    gap: 1rem;
}
.backup-warning-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-warning-action {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.2);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-warning-action:hover { background: rgba(0,0,0,0.25); }
.btn-warning-dismiss {
    background: none;
    border: none;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
    line-height: 1;
}
.btn-warning-dismiss:hover { opacity: 1; }
body.warning-visible .navbar { top: 44px; }

/* --- Logo with Sub-label --- */
.logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}
.logo-sub {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 1px;
}


/* --- Card Preview Mockups --- */
.card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-preview-inner {
    background: rgba(0,0,0,0.45);
    border-radius: 10px;
    padding: 14px 18px;
    width: 88%;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.cp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}
.cp-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}
.cp-divider {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 4px 0;
}
.cp-profit span:last-child { color: #4ade80; }
.cp-loss span:last-child { color: #f87171; }

/* NBA workspace 4-grid preview */
.card-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 90%;
    flex-direction: unset;
    padding: 0;
    background: none;
    backdrop-filter: none;
}
.cp-panel {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.cp-panel-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
}
.cp-panel-badge.bb { background: var(--accent); }
.cp-panel-badge.bl { background: #ef4444; }

/* Card preview backgrounds */
.cp-bg-bwinbb   { background: linear-gradient(150deg, #1d0a00 0%, #080808 100%); }
.cp-bg-bwinqb   { background: linear-gradient(150deg, #00091d 0%, #080808 100%); }
.cp-bg-backback { background: linear-gradient(150deg, #0d0020 0%, #080808 100%); }
.cp-bg-backlay  { background: linear-gradient(150deg, #1a0008 0%, #080808 100%); }
.cp-bg-nba      { background: linear-gradient(150deg, #080808 0%, #130800 100%); }
.cp-bg-tipico   { background: linear-gradient(150deg, #001a0d 0%, #080808 100%); }

html[data-theme="light"] .cp-bg-bwinbb,
html[data-theme="light"] .cp-bg-bwinqb,
html[data-theme="light"] .cp-bg-backback,
html[data-theme="light"] .cp-bg-backlay,
html[data-theme="light"] .cp-bg-nba,
html[data-theme="light"] .cp-bg-tipico { filter: brightness(1.4); }

/* --- Buchmacher Status Section --- */
.bookie-status-section {
    background: var(--section-bg);
    position: relative;
    z-index: 10;
}
.bookie-status-add {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bookie-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}
.bookie-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 300px;
    transition: border-color 0.3s, transform 0.2s;
}
.bookie-status-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.bookie-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #555;
    box-shadow: 0 0 8px currentColor;
}
.bookie-status-indicator.bs-active { background: var(--color-success); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.bookie-status-indicator.bs-restricted { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.bookie-status-indicator.bs-banned { background: var(--color-danger); box-shadow: 0 0 6px rgba(239,68,68,0.4); }
.bookie-status-info { flex: 1; min-width: 0; }
.bookie-status-name { font-weight: 700; font-size: 0.95rem; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookie-status-label { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.bookie-status-select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
}
.bookie-status-select:focus { outline: none; border-color: var(--accent); }

@media (max-width: 1024px) {
    .bookie-status-add { flex-direction: column; align-items: flex-start; }
    .bookie-status-add .tracker-input { width: 100% !important; }
    .bookie-status-add .btn-track { width: 100%; }
}

/* --- Tracker: Typ-Badge --- */
.entry-type-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* --- Tracker: Suchfeld --- */
.tracker-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1rem;
}
.tracker-list-header h3 { margin-bottom: 0; }
.tracker-search-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    width: 110px;
    transition: border-color 0.3s, width 0.3s;
}
.tracker-search-input:focus {
    outline: none;
    border-color: var(--accent);
    width: 150px;
}
.tracker-search-input::placeholder { color: var(--muted); }

/* --- Stats: Sub-Wert unter Bester Buchmacher --- */
.stat-sub {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
    color: var(--muted);
}

/* --- Bookie Chart Empty State --- */
.chart-empty {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 40px 20px;
    flex: 1;
}

/* --- Navbar responsive --- */
@media (max-width: 900px) {
    .navbar { padding: 1.5rem 2rem; }
    .menu a { margin-left: 1rem; font-size: 0.72rem; letter-spacing: 1px; }
}
@media (max-width: 700px) {
    .menu a { display: none; }
    .menu a:last-of-type { display: block; }
}

/* --- FAB — etwas mehr Abstand zur Statusleiste --- */
.fab-calc { bottom: 68px; }

/* --- Tracker Filters --- */
.tracker-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.filter-chip {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--muted);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* --- Entry Edit Form --- */
.entry-edit-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 4px 0;
}
.entry-edit-form .entry-edit-row {
    display: flex;
    gap: 6px;
}
.entry-edit-form .entry-edit-row .tracker-input {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.85rem;
}
.entry-edit-actions {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}
.btn-save-entry {
    flex: 1;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: box-shadow 0.2s;
}
.btn-save-entry:hover { box-shadow: 0 4px 12px rgba(249,115,22,0.4); }
.btn-cancel-entry {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.btn-cancel-entry:hover { border-color: var(--accent); color: var(--accent); }
.btn-edit {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 4px;
    transition: color 0.2s;
    line-height: 1;
}
.btn-edit:hover { color: var(--accent); }

/* --- Stats: Typ-Breakdown --- */
.type-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
}
.type-breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.type-breakdown-label {
    width: 80px;
    color: var(--muted);
    flex-shrink: 0;
    font-size: 0.75rem;
}
.type-breakdown-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
}
.type-breakdown-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.type-breakdown-val {
    width: 60px;
    text-align: right;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
