:root {
    /* Page-specific overrides for DailyOverview's slightly different dark palette */
    --bg-body: #0f172a;
    --bg-card: #1e293b;
}

body { 
    font-family: 'Inter', sans-serif; 
    background:
        radial-gradient(circle at top left, rgba(87, 199, 255, 0.16), transparent 0, transparent 30%),
        radial-gradient(circle at top right, rgba(32, 227, 178, 0.10), transparent 0, transparent 26%),
        var(--bg-body); 
    color: var(--text-main); 
    margin: 0;
    padding: 20px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.header {
    margin-bottom: 24px;
    width: 100%;
    max-width: 1400px;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    background: rgba(10, 18, 33, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    backdrop-filter: blur(12px);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-logo {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.header-text {
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(87, 199, 255, 0.12);
    border: 1px solid rgba(87, 199, 255, 0.18);
    color: #8fe8ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header h1 { margin: 0; font-size: 28px; font-weight: 700; }
.header p { color: var(--text-muted); margin-top: 6px; }

.sync-info {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(30, 41, 59, 0.9);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.back-home-btn {
    position: fixed;
    top: 18px;
    left: 20px;
    right: auto;
    z-index: 1000;
}

.tradingview-widget-container,
.tradingview-widget-container__widget {
    background: #131722;
    border-radius: 14px;
    overflow: hidden;
}

/* NFP Warning Banner */
#nfp-warning {
    display: none;
    width: 100%;
    max-width: 1400px;
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--color-loss);
    color: #fca5a5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    grid-template-areas:
        "motivation motivation"
        "performance news"
        "checklist checklist"
        "quote quote";
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    align-items: start;
}

.widget-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    min-height: 0;
    backdrop-filter: blur(10px);
}

.performance-card {
    grid-area: performance;
    min-height: 500px;
    width: 100%;
}

.news-card--secondary {
    grid-area: news;
    padding: 18px;
    min-height: 0;
    width: 100%;
}

.motivation-focus-card {
    grid-area: motivation;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 0, transparent 32%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 0, transparent 26%),
        rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.dashboard-grid > .checklist-card {
    grid-area: checklist;
    max-width: 980px;
    width: 100%;
    justify-self: center;
    margin-bottom: 0;
}

.dashboard-grid > .mindset-bottom-panel {
    grid-area: quote;
    max-width: 980px;
    width: 100%;
    justify-self: center;
    margin-bottom: 0;
}

.motivation-focus-card .widget-title {
    font-size: 20px;
    margin-bottom: 18px;
}

.motivation-focus-card .mindset-top-grid {
    grid-template-columns: 1.18fr 0.82fr;
}

.motivation-focus-card .psych-widget {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.motivation-focus-card .motivation-note {
    font-size: 15px;
    line-height: 1.7;
}

.motivation-focus-card .mindset-status,
.motivation-focus-card .emotion-guidance,
.motivation-focus-card .mantra-list,
.motivation-focus-card .motivation-link {
    font-size: 13px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Filter buttons for pairs */
.pair-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pair-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.pair-btn:hover { border-color: var(--text-main); color: var(--text-main); }
.pair-btn.active { background-color: var(--btn-active); color: white; border-color: var(--btn-active); }

/* KPI Kacheln (EV, WinRate, etc.) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.kpi-box {
    background-color: var(--bg-card-alt);
    padding: 15px 10px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-box:hover {
    transform: translateY(-3px); /* Hebt sich leicht an */
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.kpi-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.kpi-value { font-size: 18px; font-weight: 700; margin-top: 5px; }

/* KI Insight Box */
.ai-insight-box {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(15, 23, 42, 0.5));
    border-left: 4px solid var(--btn-active);
    padding: 12px 15px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
}

.psych-widget {
    background: var(--bg-card-alt);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.widget-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--btn-active);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}

.checklist-item input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--btn-active);
}

.focus-quote {
    margin-top: 15px;
    font-style: italic;
    font-size: 12px;
    color: #e2e8f0;
    text-align: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.mindset-top-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    margin-bottom: 18px;
}

.emotion-panel,
.cooldown-box,
.mindset-bottom-panel {
    background: rgba(255,255,255,0.03);
}

.emotion-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.emotion-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.emotion-btn:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

.emotion-btn.active {
    background: var(--btn-active);
    color: #fff;
    border-color: var(--btn-active);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.emotion-guidance {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-main);
}

.mantra-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.motivation-note {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.6;
}

.quote-refresh-btn {
    margin-top: 14px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.quote-refresh-btn:hover {
    transform: translateY(-1px);
}

.motivation-links {
    display: grid;
    gap: 10px;
}

.motivation-link {
    display: block;
    text-decoration: none;
    color: #e2e8f0;
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.motivation-link:hover {
    transform: translateY(-1px);
    border-color: rgba(87, 199, 255, 0.35);
    background: rgba(87, 199, 255, 0.08);
}

.cooldown-box {
    text-align: center;
}

.cooldown-timer {
    font-size: 30px;
    font-weight: 800;
    margin: 10px 0 8px;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.cooldown-btn {
    margin-top: 12px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cooldown-btn:hover {
    transform: translateY(-1px);
}

.cooldown-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mindset-status {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-main);
}

.mindset-reminder {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "motivation"
            "performance"
            "news"
            "checklist"
            "quote";
    }
    .header-inner { flex-direction: column; }
    .header-main { align-items: flex-start; }
    .sync-info { display: inline-block; margin-top: 4px; }
    .mindset-top-grid { grid-template-columns: 1fr; }
    .news-summary-strip,
    .news-split-grid,
    .news-values,
    .news-history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }
}

/* Daily Progress Bar */
.progress-widget {
    margin-bottom: 20px;
    padding: 0 5px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.progress-rows {
    display: grid;
    gap: 12px;
}

.progress-row {
    display: grid;
    gap: 6px;
}

.progress-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.progress-mode-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.progress-mode-pill--base {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #fca5a5;
}

.progress-mode-pill--live {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: #93c5fd;
}

.progress-container {
    width: 100%;
    height: 12px;
    background-color: var(--bg-body);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.progress-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255,255,255,0.2);
    z-index: 2;
}

.progress-fill {
    position: absolute;
    height: 100%;
    top: 0;
    z-index: 1;
    transition: all 0.5s ease-out;
    border-radius: 4px;
    width: 0%;
    left: 50%;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.news-card {
    min-height: auto;
}

.news-card--secondary .widget-title {
    font-size: 14px;
    margin-bottom: 12px;
}

.news-card--secondary .news-summary-box {
    padding: 10px 12px;
}

.news-card--secondary .news-summary-box strong {
    font-size: 14px;
}

.news-card--secondary .news-item {
    padding: 12px;
}

.news-card--secondary .news-item-title {
    font-size: 13px;
}

.news-card--secondary .news-item-meta,
.news-card--secondary .news-footnote {
    font-size: 11px;
}

.news-link {
    color: #8fe8ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.news-link:hover {
    text-decoration: underline;
}

.news-title-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-import-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.news-import-btn:hover:not(:disabled) {
    background: rgba(143, 232, 255, 0.12);
    border-color: rgba(143, 232, 255, 0.30);
    color: #8fe8ff;
}

.news-import-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.news-import-status {
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 14px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.news-import-status .import-ok   { color: #4ade80; }
.news-import-status .import-skip { color: var(--text-muted); }
.news-import-status .import-fail { color: #f87171; }
.news-import-status .import-done { color: #8fe8ff; font-weight: 600; }

.news-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.news-summary-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px 14px;
}

.news-summary-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-summary-box strong {
    display: block;
    font-size: 15px;
    color: var(--text-main);
}

.news-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-column-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fe8ff;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.9));
}

.news-item.past {
    border-color: rgba(148, 163, 184, 0.18);
    opacity: 0.88;
}

.news-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.news-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.news-item-meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.news-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.news-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.news-status.upcoming {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.news-status.past {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.news-status.restricted {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
}

.news-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.news-value {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
}

.news-value span {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.news-history-note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.news-item--stats-only {
    border-color: rgba(245, 158, 11, 0.24);
}

.news-history-panel {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(87, 199, 255, 0.06);
    border: 1px solid rgba(87, 199, 255, 0.14);
}

.news-history-panel--empty {
    background: rgba(148, 163, 184, 0.06);
    border-color: rgba(148, 163, 184, 0.16);
}

.news-history-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fe8ff;
    margin-bottom: 8px;
}

.news-history-empty {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.news-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.news-history-metric {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 10px;
    padding: 8px 10px;
}

.news-history-metric span {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.news-history-metric strong.is-positive {
    color: var(--color-win);
}

.news-history-metric strong.is-negative {
    color: var(--color-loss);
}

.news-empty {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(148, 163, 184, 0.25);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.news-footnote {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 11px;
}

/* Widget title secondary info */
.widget-title-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: normal;
}

/* Progress bar label colours */
.progress-current-label {
    color: var(--text-main);
}

.label-loss {
    color: var(--color-loss);
}

.label-win {
    color: var(--color-win);
}

/* Chart legend */
.chart-legend {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
}

.chart-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    vertical-align: middle;
}

.chart-legend-dot--london {
    background: rgba(59, 130, 246, 0.15);
}

.chart-legend-dot--ny {
    background: rgba(239, 68, 68, 0.15);
}

/* Chart canvas wrapper */
.chart-wrapper {
    position: relative;
    flex-grow: 1;
    min-height: 250px;
    width: 100%;
}

/* Full-width grid widget */
.widget-card--full-width {
    grid-column: 1 / -1;
}

/* Psych widgets inside mindset section have no bottom margin */
.psych-widget--no-bottom {
    margin-bottom: 0;
}

/* Cooldown hint text */
.cooldown-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Pre-Trade Checklist */
.checklist-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.checklist-theme-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.checklist-theme--motivation {
    background: rgba(167, 139, 250, 0.13);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.27);
}

.checklist-theme--focus {
    background: rgba(56, 189, 248, 0.13);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.27);
}

.checklist-theme--balanced {
    background: rgba(52, 211, 153, 0.13);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.27);
}

.checklist-header-row .widget-subtitle {
    margin-bottom: 0;
}

.checklist-win-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.checklist-win-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-win-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checklist-win-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fbbf24;
    opacity: 0.8;
}

.checklist-win-value {
    font-size: 14px;
    font-weight: 700;
    color: #fde68a;
}

.checklist-win-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-style: italic;
}

.checklist-win-counter {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.6;
}

.checklist-streak-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 10px;
    padding: 8px 14px;
    margin-top: 10px;
}

.checklist-streak-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.checklist-streak-text {
    font-size: 12px;
    font-weight: 600;
    color: #fdba74;
}

.checklist-progress-wrap {
    margin: 12px 0 10px;
}

.checklist-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-body);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.checklist-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--color-loss);
    transition: width 0.4s ease, background 0.4s ease;
    width: 0%;
}

.checklist-result {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--text-muted);
}

.checklist-result--ready {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

.checklist-result--partial {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

.checklist-result--notready {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* Quiz Game */
.quiz-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.quiz-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.quiz-score-badge {
    display: none;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
}

.quiz-start-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.quiz-start-btn:hover { transform: translateY(-1px); }

.quiz-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.quiz-progress-track {
    flex: 1;
    height: 6px;
    background: var(--bg-body);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.quiz-progress-fill {
    height: 100%;
    background: var(--btn-active);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.quiz-step-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 600;
}

.quiz-scenario-box {
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 14px;
    font-weight: 500;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.quiz-opt-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.quiz-opt-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(2px);
}

.quiz-opt-btn:disabled { cursor: default; transform: none; }

.quiz-opt--correct {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #bbf7d0 !important;
}

.quiz-opt--wrong {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

.quiz-fb-text {
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.quiz-fb--correct {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.quiz-fb--wrong {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.quiz-next-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    background: var(--btn-active);
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.quiz-next-btn:hover { transform: translateY(-1px); }

.quiz-result-wrap {
    text-align: center;
    padding: 10px 0;
}

.quiz-result-score {
    font-size: 52px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.quiz-result-total {
    font-size: 28px;
    color: var(--text-muted);
}

.quiz-result-label {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quiz-rating {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.quiz-rating--perfect {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

.quiz-rating--good {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.quiz-rating--ok {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

.quiz-rating--bad {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.quiz-restart-btn {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.quiz-restart-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}
