/* simulateur.finance — Dashboard Pulse Financier — Premium Design */

/* === In My Pocket === */
.dash-pocket {
    text-align: center;
    padding: var(--space-6) var(--space-4) var(--space-8);
    position: relative;
}

.dash-pocket-label {
    font-size: var(--text-sm);
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.dash-pocket-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    transition: color 0.4s ease;
}

.dash-pocket-sublabel {
    font-size: var(--text-xs);
    color: #64748B;
    margin-top: var(--space-1);
}

.dash-pocket.pocket-green .dash-pocket-value { color: #2DD4BF; }
.dash-pocket.pocket-orange .dash-pocket-value { color: #FBBF24; }
.dash-pocket.pocket-red .dash-pocket-value { color: #FCA5A5; }

.dash-pocket.pocket-green { border-bottom: 2px solid rgba(45,212,191,0.2); }
.dash-pocket.pocket-orange { border-bottom: 2px solid rgba(251,191,36,0.2); }
.dash-pocket.pocket-red { border-bottom: 2px solid rgba(252,165,165,0.2); }

/* === Hero === */
.dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-8) 0 var(--space-6);
    gap: var(--space-6);
    flex-wrap: wrap;
    border-bottom: 1px solid #1E293B;
    margin-bottom: var(--space-8);
}

.dash-hero-left h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #F1F5F9;
    margin-bottom: var(--space-1);
}

.dash-date {
    color: #94A3B8;
    font-size: var(--text-sm);
}

.dash-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
}

.dash-hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Score */
.dash-score {
    text-align: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.1));
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-3) var(--space-6);
    box-shadow: 0 4px 16px rgba(59,130,246,0.1);
}

.dash-score-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}

.dash-score-label {
    font-size: var(--text-xs);
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-score-delta {
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: 2px;
    min-height: 16px;
}

.dash-score-delta.positive { color: var(--color-success); }
.dash-score-delta.negative { color: var(--color-error); }

.dash-level {
    font-size: var(--text-xs);
    color: #94A3B8;
    margin-top: 2px;
}

/* Percentile */
.dash-percentile {
    font-size: 10px;
    color: var(--color-indigo, #6366F1);
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(99,102,241,0.1);
    border-radius: var(--radius-full);
    display: none;
}

/* Streak */
.dash-streak {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(217,119,6,0.06));
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
}

.dash-streak-icon { font-size: 1.1rem; }

.dash-streak-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-warning);
    font-variant-numeric: tabular-nums;
}

.dash-streak-label {
    font-size: var(--text-xs);
    color: #94A3B8;
}

/* Check-in */
.dash-checkin-btn {
    padding: var(--space-2) var(--space-4);
    background: var(--color-success);
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    font-family: var(--font-ui);
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

.dash-checkin-btn:hover {
    background: var(--color-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.35);
}

.dash-checkin-btn:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dash-checkin-btn.done {
    background: #334155;
    color: #94A3B8;
    box-shadow: none;
}

/* === Metric Cards Premium === */
.dash-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.dash-metric-card {
    background: linear-gradient(135deg, #1E293B 0%, rgba(30,41,59,0.8) 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px);
    animation: dashFadeIn 0.4s ease forwards;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dash-metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent 50%, rgba(0,0,0,0.05));
    pointer-events: none;
}
.dash-metric-card:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 12px 24px rgba(0,0,0,0.25),
        0 0 20px rgba(59,130,246,0.08);
}

.dash-metric-card:nth-child(1) { animation-delay: 0.1s; }
.dash-metric-card:nth-child(2) { animation-delay: 0.2s; }
.dash-metric-card:nth-child(3) { animation-delay: 0.3s; }

/* Obsessive metric (Mois de securite) — highlighted */
.dash-metric-obsessive {
    border-color: rgba(59,130,246,0.3);
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(99,102,241,0.04));
}

.dash-metric-obsessive .dash-metric-value {
    font-size: var(--text-3xl, 2rem);
}

@keyframes dashFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.dash-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.dash-metric-icon svg {
    width: 20px;
    height: 20px;
}

.dash-metric-icon.success {
    background: rgba(16,185,129,0.15);
    color: #2DD4BF;
    box-shadow: 0 0 16px rgba(16,185,129,0.12);
}
.dash-metric-icon.accent {
    background: rgba(59,130,246,0.15);
    color: #60A5FA;
    box-shadow: 0 0 16px rgba(59,130,246,0.12);
}
.dash-metric-icon.warning {
    background: rgba(245,158,11,0.15);
    color: #FBBF24;
    box-shadow: 0 0 16px rgba(245,158,11,0.08);
}
.dash-metric-icon.danger {
    background: rgba(239,68,68,0.15);
    color: #FCA5A5;
    box-shadow: 0 0 16px rgba(239,68,68,0.08);
}
.dash-metric-icon.info {
    background: rgba(99,102,241,0.15);
    color: #A5B4FC;
    box-shadow: 0 0 16px rgba(99,102,241,0.08);
}

.dash-metric-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #F1F5F9;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}

.dash-metric-label {
    font-size: var(--text-sm);
    color: #94A3B8;
    position: relative;
    z-index: 1;
}

/* Metric sub (benchmark text) */
.dash-metric-sub {
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.dash-metric-sub.good { color: var(--color-success); }
.dash-metric-sub.ok   { color: var(--color-warning); }
.dash-metric-sub.bad  { color: var(--color-error); }

/* Target bar (Mois de securite) */
.dash-metric-target {
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    z-index: 1;
}

.dash-target-bar {
    flex: 1;
    height: 6px;
    background: #0F172A;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dash-target-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-accent), var(--color-success));
    transition: width 1s ease;
    width: 0;
}

.dash-target-text {
    font-size: 10px;
    color: #94A3B8;
    white-space: nowrap;
}

/* === Sections === */
.dash-section {
    margin-bottom: var(--space-8);
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.dash-section-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #F1F5F9;
}

.dash-link {
    font-size: var(--text-sm);
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.dash-link:hover { color: var(--color-accent-hover); }

.btn-sm {
    padding: var(--space-2) var(--space-4) !important;
    font-size: var(--text-sm) !important;
}

/* === Goals === */
.dash-goals {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.dash-goal-card {
    background: linear-gradient(135deg, #1E293B 0%, rgba(30,41,59,0.8) 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dash-goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-goal-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 20px rgba(59,130,246,0.12);
}
.dash-goal-card:hover::before { opacity: 1; }

.dash-goal-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dash-goal-type {
    font-size: var(--text-xs);
    color: var(--color-accent);
    font-weight: 500;
}

.dash-goal-priority {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.priority-high   { background: rgba(239,68,68,0.1);  color: var(--color-error); }
.priority-medium { background: rgba(245,158,11,0.1); color: var(--color-warning); }
.priority-low    { background: rgba(16,185,129,0.1);  color: var(--color-success); }

.dash-goal-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: #F1F5F9;
    transition: color 0.2s ease;
}
.dash-goal-card:hover .dash-goal-title { color: var(--color-accent); }

.dash-goal-progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.dash-goal-bar {
    flex: 1;
    height: 8px;
    background: #0F172A;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dash-goal-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-accent), var(--color-indigo));
    transition: width 1s ease;
    width: 0;
    position: relative;
}
.dash-goal-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmerBar 2.5s infinite;
}
@keyframes shimmerBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.dash-goal-pct {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    min-width: 42px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dash-goal-date {
    font-size: var(--text-xs);
    color: #64748B;
}

/* === Empty State === */
.dash-empty {
    background: linear-gradient(135deg, rgba(59,130,246,0.03), rgba(99,102,241,0.02));
    border: 1.5px dashed rgba(59,130,246,0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
}

.dash-empty svg {
    width: 48px;
    height: 48px;
    color: rgba(59,130,246,0.25);
    margin: 0 auto var(--space-4);
    display: block;
}

.dash-empty p {
    color: #94A3B8;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

/* === Budget === */
.dash-budget {
    background: linear-gradient(135deg, #1E293B 0%, rgba(30,41,59,0.8) 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dash-budget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.dash-budget-item label {
    font-size: var(--text-xs);
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-1);
}

.dash-budget-item .value {
    font-size: var(--text-xl);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dash-budget-item .value.income  { color: var(--color-success); }
.dash-budget-item .value.expense { color: var(--color-error); }

/* === AI Insight Premium === */
.dash-insight {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(59,130,246,0.06));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(99,102,241,0.06);
}

.dash-insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.dash-insight-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-indigo);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.dash-insight-text {
    font-size: var(--text-sm);
    color: #CBD5E1;
    line-height: 1.7;
}

/* === Profile Nudge === */
.dash-profile-nudge {
    background: linear-gradient(135deg, #1E293B 0%, rgba(30,41,59,0.8) 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dash-nudge-text {
    font-size: var(--text-sm);
    color: #94A3B8;
    margin-bottom: var(--space-3);
}

.dash-nudge-text strong {
    color: var(--color-accent);
}

.dash-nudge-bar {
    height: 6px;
    background: #0F172A;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.dash-nudge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-success));
    border-radius: var(--radius-full);
    transition: width 1s ease;
    width: 0;
}

.dash-nudge-link {
    font-size: var(--text-xs);
    color: var(--color-accent);
}

.dash-nudge-link:hover {
    color: var(--color-accent-hover);
}

/* === Loading === */
.dash-loading {
    text-align: center;
    color: #94A3B8;
    font-size: var(--text-sm);
    padding: var(--space-8);
}

/* === Toasts === */
.xp-toast {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    background: var(--color-success);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--text-sm);
    z-index: 150;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    box-shadow: 0 8px 24px rgba(16,185,129,0.35);
}

.level-up-toast {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    background: linear-gradient(135deg, var(--color-accent), var(--color-indigo));
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--text-sm);
    z-index: 150;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.event-toast {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid rgba(59,130,246,0.3);
    color: #F1F5F9;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    z-index: 150;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

/* === Responsive === */
@media (min-width: 640px) {
    .dash-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .dash-goals {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 639px) {
    .dash-hero {
        flex-direction: column;
    }

    .dash-hero-right {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-3);
    }

    .dash-hero-actions {
        display: contents;
    }

    .dash-budget-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .dash-insight {
        flex-direction: column;
    }

    .dash-metric-obsessive .dash-metric-value {
        font-size: var(--text-2xl);
    }

    .dash-pocket-value {
        font-size: 2.5rem;
    }
}

/* === Score Breakdown (niveau 2+) === */
.dash-perks-section {
    background: linear-gradient(135deg, #1E293B 0%, rgba(30,41,59,0.8) 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dash-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dash-breakdown-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.dash-breakdown-label {
    font-size: var(--text-xs);
    color: #94A3B8;
    min-width: 100px;
    flex-shrink: 0;
}

.dash-breakdown-bar-container {
    flex: 1;
    height: 8px;
    background: #0F172A;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dash-breakdown-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
    width: 0;
}

.dash-breakdown-value {
    font-size: var(--text-xs);
    font-weight: 700;
    color: #F1F5F9;
    min-width: 48px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dash-breakdown-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: var(--space-3);
}

/* Locked state */
.dash-breakdown-locked {
    text-align: center;
    padding: var(--space-4);
    color: #64748B;
    font-size: var(--text-sm);
}

.dash-breakdown-locked-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    opacity: 0.5;
}

/* === Score History Chart (niveau 3+) === */
.dash-history-chart {
    background: linear-gradient(135deg, #1E293B 0%, rgba(30,41,59,0.8) 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    height: 180px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dash-history-chart svg {
    width: 100%;
    height: 100%;
}

.dash-score-history-period {
    font-size: var(--text-xs);
    color: #64748B;
}

/* === Next Perk Indicator === */
.dash-next-perk {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(59,130,246,0.04));
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.dash-next-perk-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}

.dash-next-perk-text {
    font-size: var(--text-xs);
    color: #94A3B8;
}

.dash-next-perk-text strong {
    color: var(--color-indigo, #6366F1);
}

/* Responsive score breakdown */
@media (max-width: 639px) {
    .dash-breakdown-label {
        min-width: 80px;
        font-size: 10px;
    }
    .dash-breakdown-value {
        min-width: 40px;
        font-size: 10px;
    }
    .dash-history-chart {
        height: 140px;
    }
}

/* === Score Breakdown Enhanced (F8) === */

.dash-breakdown-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-6);
    align-items: start;
}

@media (max-width: 768px) {
    .dash-breakdown-content {
        grid-template-columns: 1fr;
    }
}

.dash-breakdown-radar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-2);
}

.dash-breakdown-radar canvas {
    max-width: 280px;
    max-height: 280px;
}

.dash-breakdown-row {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: background 0.15s ease;
}

.dash-breakdown-row:hover {
    background: rgba(51, 65, 85, 0.15);
}

.dash-breakdown-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dash-breakdown-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.dash-breakdown-detail {
    font-size: 11px;
    color: #64748B;
}

.dash-breakdown-gain {
    font-size: 11px;
    color: #10B981;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.dash-breakdown-maxed {
    font-size: 10px;
    color: #3B82F6;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

.dash-breakdown-suggestion {
    margin-top: var(--space-4);
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
}

.dash-suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #F1F5F9;
}

.dash-suggestion-icon {
    font-size: 16px;
}

.dash-suggestion-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-suggestion-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
}

.dash-suggestion-text {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
}

/* === What-If Scenarios (F9) === */

.whatif-score-preview {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.2);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .whatif-score-preview {
        flex-direction: column;
        text-align: center;
    }
}

.whatif-score-circle {
    flex-shrink: 0;
}

.whatif-score-value {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
    transition: color 0.3s ease;
}

.whatif-score-label {
    font-size: var(--text-xs);
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.whatif-score-delta {
    font-size: var(--text-sm);
    font-weight: 600;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.whatif-radar-container {
    flex: 1;
    max-width: 260px;
    margin-left: auto;
}

.whatif-slider-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.whatif-slider-card {
    padding: 16px 18px;
    background: var(--color-surface);
    border-radius: 14px;
    border: 1px solid rgba(51, 65, 85, 0.2);
}

.whatif-slider-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.whatif-slider-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatif-slider-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #F1F5F9;
}

.whatif-slider-current {
    font-size: 11px;
    color: #64748B;
}

.whatif-slider-result {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: #F1F5F9;
    font-family: var(--font-display);
}

.whatif-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(51, 65, 85, 0.3);
    border-radius: 4px;
    outline: none;
}

.whatif-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3B82F6;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #0F172A;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    transition: transform 0.15s ease;
}

.whatif-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.whatif-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3B82F6;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #0F172A;
}

.whatif-loading {
    text-align: center;
    color: #64748B;
    padding: var(--space-8);
    font-size: var(--text-sm);
}

/* === Smart Savings Suggestions === */
.dash-savings-suggestions { margin-top: var(--space-2); }
.dash-savings-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: rgba(15,23,42,0.4);
    border: 1px solid rgba(51,65,85,0.25);
    border-radius: 12px;
    padding: var(--space-4);
    margin-bottom: var(--space-2);
    transition: border-color 0.2s;
}
.dash-savings-card:hover {
    border-color: rgba(59,130,246,0.3);
}
.dash-savings-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.08);
    border-radius: 10px;
}
.dash-savings-card-body {
    flex: 1;
    min-width: 0;
}
.dash-savings-card-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 4px;
}
.dash-savings-card-text {
    font-size: var(--text-xs);
    color: #94A3B8;
    line-height: 1.5;
}
.dash-savings-card-amount {
    flex-shrink: 0;
    font-size: var(--text-sm);
    font-weight: 700;
    color: #10B981;
    background: rgba(16,185,129,0.1);
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    align-self: center;
}
.dash-savings-card-cta {
    flex-shrink: 0;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(59,130,246,0.1);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    align-self: center;
    transition: background 0.2s;
}
.dash-savings-card-cta:hover {
    background: rgba(59,130,246,0.2);
}

/* === Patrimoine Net === */
.dash-patrimoine-header {
    text-align: center;
    margin-bottom: var(--space-4);
}
.dash-patrimoine-net-label {
    font-size: var(--text-xs);
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.dash-patrimoine-net-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display), var(--font-sans);
}
.dash-patrimoine-bar-container {
    margin-bottom: var(--space-4);
}
.dash-patrimoine-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    gap: 2px;
}
.dash-patrimoine-bar-seg {
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.6s ease;
}
.dash-patrimoine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
.dash-patrimoine-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(15,23,42,0.4);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(51,65,85,0.2);
}
.dash-patrimoine-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}
.dash-patrimoine-card-label {
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 4px;
}
.dash-patrimoine-card-value {
    font-size: var(--text-sm);
    font-weight: 700;
    color: #F1F5F9;
}
.dash-patrimoine-chart {
    margin-top: var(--space-2);
}
.dash-patrimoine-chart-label {
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.dash-patrimoine-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}
.dash-patrimoine-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.dash-patrimoine-chart-bar {
    width: 100%;
    border-radius: 3px;
    min-height: 4px;
    opacity: 0.8;
}
.dash-patrimoine-chart-lbl {
    font-size: 9px;
    color: #64748B;
    margin-top: 4px;
}
@media (max-width: 640px) {
    .dash-patrimoine-grid {
        grid-template-columns: 1fr;
    }
}
