/* ============================================================
   DEBT CONSOLIDATION CALCULATOR — Fincote Theme
   Dark background, Emerald green accents, Clean white
   Font: Inter / system-ui matching Fincote
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --fc-bg:          #090714;
    --fc-bg-2:        #13161e;
    --fc-bg-3:        #1a1e2a;
    --fc-bg-card:     #161923;
    --fc-bg-input:    #1e2333;
    --fc-border:      rgba(255,255,255,0.08);
    --fc-border-focus:rgba(72,199,142,0.5);
    --fc-green:       #48c78e;
    --fc-green-dark:  #3aad7a;
    --fc-green-glow:  rgba(72,199,142,0.15);
    --fc-green-pale:  rgba(72,199,142,0.08);
    --fc-white:       #ffffff;
    --fc-text:        #e8edf5;
    --fc-text-light:  #a0aec0;
    --fc-text-muted:  #64748b;
    --fc-danger:      #f56565;
    --fc-warning:     #ed8936;
    --fc-blue:        #4299e1;
    --fc-purple:      #9f7aea;
    --fc-shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
    --fc-shadow-md:   0 4px 20px rgba(0,0,0,0.4);
    --fc-shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
    --fc-shadow-green:0 0 30px rgba(72,199,142,0.15);
    --fc-radius:      16px;
    --fc-radius-sm:   10px;
    --fc-transition:  all 0.25s ease;
    --fc-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
.dc-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== WRAPPER ===== */
.dc-wrapper {
    margin: 0 auto 60px;
    padding: 36px 28px 48px;
    font-family: var(--fc-font);
    color: var(--fc-text);
    background: var(--fc-bg-2);
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(72,199,142,0.15);
    box-shadow:
        0 0 0 1px rgba(72,199,142,0.08),
        0 8px 32px rgba(0,0,0,0.5),
        0 0 60px rgba(72,199,142,0.06),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.dc-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(72,199,142,0.4), transparent);
    border-radius: 99px;
}

/* ===== HEADER ===== */
.dc-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--fc-bg-2) 0%, var(--fc-bg-3) 100%);
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-shadow-lg);
    position: relative;
    overflow: hidden;
}

.dc-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fc-green), transparent);
}

.dc-header::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: var(--fc-green-glow);
    filter: blur(40px);
    pointer-events: none;
}

.dc-header-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dc-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--fc-white);
    margin: 0 0 5px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.dc-subtitle {
    font-size: 0.9rem;
    color: var(--fc-text-light);
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ===== CURRENCY BAR ===== */
.dc-currency-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fc-text-light);
}

.dc-currency-select {
    padding: 9px 14px;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    background: var(--fc-bg-input);
    color: var(--fc-text);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--fc-font);
    cursor: pointer;
    transition: var(--fc-transition);
    outline: none;
    max-width: 220px;
}

.dc-currency-select:focus {
    border-color: var(--fc-green);
    box-shadow: 0 0 0 3px var(--fc-green-glow);
}

/* ===== TABS ===== */
.dc-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 28px;
    background: var(--fc-bg-card);
    padding: 5px;
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
}

.dc-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 10px;
    border: none;
    border-radius: var(--fc-radius-sm);
    background: transparent;
    color: var(--fc-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--fc-font);
    cursor: pointer;
    transition: var(--fc-transition);
    white-space: nowrap;
}

.dc-tab:hover {
    background: var(--fc-bg-3);
    color: var(--fc-text-light);
}

.dc-tab.active {
    background: var(--fc-green);
    color: var(--fc-bg);
    box-shadow: 0 4px 14px rgba(72,199,142,0.3);
    font-weight: 700;
}

.dc-tab svg { flex-shrink: 0; }

/* ===== PANELS ===== */
.dc-panel { display: none; animation: fcFadeIn 0.3s ease; }
.dc-panel.active { display: block; }

@keyframes fcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== PANEL INTRO ===== */
.dc-panel-intro { margin-bottom: 22px; }

.dc-panel-intro h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fc-white);
    margin: 0 0 5px;
    letter-spacing: -0.01em;
}

.dc-panel-intro p {
    font-size: 0.85rem;
    color: var(--fc-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== DEBT ROW ===== */
.dc-debt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 18px;
    margin-bottom: 12px;
    transition: var(--fc-transition);
    position: relative;
}

.dc-debt-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--fc-green);
    border-radius: 3px 0 0 3px;
    opacity: 0.6;
}

.dc-debt-row:hover {
    border-color: rgba(72,199,142,0.2);
    box-shadow: var(--fc-shadow-green);
}

.dc-debt-row-label {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--fc-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* ===== DELETE BUTTON ===== */
.dc-delete-btn {
    grid-column: 1 / -1;
    width: 100%;
    height: 38px;
    border: 1px solid rgba(245,101,101,0.25);
    border-radius: var(--fc-radius-sm);
    background: rgba(245,101,101,0.08);
    color: var(--fc-danger);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--fc-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--fc-transition);
}

.dc-delete-btn:hover {
    background: var(--fc-danger);
    color: white;
    border-color: var(--fc-danger);
}

/* ===== INPUTS ===== */
.dc-input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dc-input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dc-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--fc-border);
    background: var(--fc-bg-input);
    color: var(--fc-text);
    font-weight: 600;
    font-family: var(--fc-font);
    transition: var(--fc-transition);
    box-sizing: border-box;
    -webkit-appearance: none;
    outline: none;
}

.dc-input:focus {
    border-color: var(--fc-green);
    box-shadow: 0 0 0 3px var(--fc-green-glow);
    background: var(--fc-bg-3);
}

.dc-input::placeholder { color: var(--fc-text-muted); }

.dc-hint {
    font-size: 0.75rem;
    color: var(--fc-text-muted);
    line-height: 1.4;
    font-style: italic;
}

/* ===== DEBT TYPE SELECT ===== */
.dc-debt-type {
    width: 100%;
    padding: 11px 14px;
    padding-right: 40px; /* ← espace pour la flèche */
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    background: var(--fc-bg-input);
    color: var(--fc-text);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--fc-font);
    cursor: pointer;
    transition: var(--fc-transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: border-box;

    /* Flèche custom SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.dc-debt-type:focus {
    border-color: var(--fc-green);
    box-shadow: 0 0 0 3px var(--fc-green-glow);
}

/* ===== ADD BUTTON ===== */
.dc-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px dashed rgba(72,199,142,0.4);
    border-radius: var(--fc-radius);
    background: var(--fc-green-pale);
    color: var(--fc-green);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--fc-font);
    cursor: pointer;
    transition: var(--fc-transition);
    width: 100%;
    justify-content: center;
    margin-bottom: 18px;
}

.dc-add-btn:hover {
    background: rgba(72,199,142,0.15);
    border-color: var(--fc-green);
    transform: translateY(-1px);
}

.dc-add-small {
    padding: 9px 14px;
    font-size: 0.82rem;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ===== CALCULATE BUTTON ===== */
.dc-calc-btn {
    width: 100%;
    padding: 15px;
    background: var(--fc-green);
    color: var(--fc-bg);
    border: none;
    border-radius: var(--fc-radius);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--fc-font);
    cursor: pointer;
    transition: var(--fc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(72,199,142,0.3);
    margin-bottom: 24px;
    margin-top: 16px;
    letter-spacing: 0.3px;
}

.dc-calc-btn:hover {
    background: var(--fc-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(72,199,142,0.4);
}

.dc-calc-btn:active { transform: translateY(0); }

/* ===== RESULTS ===== */
.dc-results { animation: fcFadeIn 0.4s ease; }

/* ===== STAT CARDS ===== */
.dc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.dc-stat-card {
    padding: 18px 14px;
    border-radius: var(--fc-radius);
    text-align: center;
    border: 1px solid var(--fc-border);
    transition: var(--fc-transition);
    position: relative;
    overflow: hidden;
}

.dc-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}

.dc-stat-card:hover { transform: translateY(-2px); box-shadow: var(--fc-shadow-md); }

.dc-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    opacity: 0.75;
}

.dc-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.dc-stat-red    { background: rgba(245,101,101,0.1);  color: #fc8181; }
.dc-stat-red    .dc-stat-value { color: #fc8181; }
.dc-stat-red::before { background: #f56565; }

.dc-stat-orange { background: rgba(237,137,54,0.1);   color: #f6ad55; }
.dc-stat-orange .dc-stat-value { color: #f6ad55; }
.dc-stat-orange::before { background: #ed8936; }

.dc-stat-gold   { background: var(--fc-green-pale);   color: var(--fc-green); }
.dc-stat-gold   .dc-stat-value { color: var(--fc-green); }
.dc-stat-gold::before { background: var(--fc-green); }

.dc-stat-blue   { background: rgba(66,153,225,0.1);   color: #63b3ed; }
.dc-stat-blue   .dc-stat-value { color: #63b3ed; }
.dc-stat-blue::before { background: #4299e1; }

.dc-stat-green  { background: var(--fc-green-pale);   color: var(--fc-green); }
.dc-stat-green  .dc-stat-value { color: var(--fc-green); }
.dc-stat-green::before { background: var(--fc-green); }

.dc-stat-purple { background: rgba(159,122,234,0.1);  color: #b794f4; }
.dc-stat-purple .dc-stat-value { color: #b794f4; }
.dc-stat-purple::before { background: #9f7aea; }

/* ===== BREAKDOWN TABLE ===== */
.dc-debt-breakdown,
.dc-progress-section {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--fc-border);
}

.dc-debt-breakdown h4,
.dc-progress-section h4,
.dc-payoff-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fc-white);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.dc-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dc-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.dc-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--fc-bg-3);
    color: var(--fc-text-muted);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--fc-border);
}

.dc-table th:first-child { border-radius: 8px 0 0 0; }
.dc-table th:last-child  { border-radius: 0 8px 0 0; }

.dc-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--fc-border);
    color: var(--fc-text);
    font-weight: 500;
}

.dc-table tr:last-child td { border-bottom: none; }
.dc-table tr:hover td { background: var(--fc-bg-3); }

.dc-table .dc-td-danger  { color: var(--fc-danger);  font-weight: 700; }
.dc-table .dc-td-warning { color: var(--fc-warning); font-weight: 700; }
.dc-table .dc-td-success { color: var(--fc-green);   font-weight: 700; }

/* ===== PROGRESS BARS ===== */
.dc-progress-item { margin-bottom: 14px; }
.dc-progress-item:last-child { margin-bottom: 0; }

.dc-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.82rem;
    gap: 8px;
}

.dc-progress-name { font-weight: 600; color: var(--fc-text); }
.dc-progress-pct  { font-weight: 700; color: var(--fc-green); white-space: nowrap; }

.dc-progress-track {
    width: 100%;
    height: 6px;
    background: var(--fc-bg-3);
    border-radius: 99px;
    overflow: hidden;
}

.dc-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--fc-green-dark), var(--fc-green));
}

/* ===== TWO-COL LAYOUT ===== */
.dc-two-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.dc-col-card {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 18px;
    border: 1px solid var(--fc-border);
}

.dc-col-before { border-color: rgba(245,101,101,0.2); }
.dc-col-after  { border-color: rgba(72,199,142,0.2); }

.dc-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.dc-col-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fc-white);
    margin: 0;
}

.dc-badge {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.dc-badge-red   { background: rgba(245,101,101,0.15); color: var(--fc-danger); }
.dc-badge-green { background: var(--fc-green-pale);   color: var(--fc-green); }

/* ===== COMPARISON GRID ===== */
.dc-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.dc-compare-vs {
    font-size: 1rem;
    font-weight: 900;
    color: var(--fc-text-muted);
    text-align: center;
    padding: 4px 0;
}

.dc-compare-card {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 18px;
    border: 1px solid var(--fc-border);
}

.dc-compare-before { border-color: rgba(245,101,101,0.2); }
.dc-compare-after  { border-color: rgba(72,199,142,0.2); }

.dc-compare-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fc-border);
}

.dc-compare-before h4 { color: var(--fc-danger); }
.dc-compare-after  h4 { color: var(--fc-green); }

.dc-compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--fc-border);
    font-size: 0.82rem;
    gap: 8px;
}

.dc-compare-row:last-child { border-bottom: none; }
.dc-compare-row span   { color: var(--fc-text-muted); }
.dc-compare-row strong { color: var(--fc-text); font-weight: 700; white-space: nowrap; }

/* ===== SAVINGS HIGHLIGHT ===== */
.dc-savings-highlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.dc-saving-item {
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 18px 16px;
    text-align: center;
    transition: var(--fc-transition);
    position: relative;
    overflow: hidden;
}

.dc-saving-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--fc-green);
    opacity: 0.5;
}

.dc-saving-item:hover { border-color: rgba(72,199,142,0.3); }

.dc-saving-icon  { font-size: 1.5rem; margin-bottom: 6px; }
.dc-saving-label {
    font-size: 0.68rem;
    color: var(--fc-text-muted);
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.dc-saving-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--fc-green);
    letter-spacing: -0.02em;
}

/* ===== VERDICT ===== */
.dc-verdict {
    padding: 16px 18px;
    border-radius: var(--fc-radius);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.7;
    border-left: 3px solid var(--fc-green);
    background: var(--fc-green-pale);
    color: var(--fc-text);
}

/* ===== FREEDOM HERO ===== */
.dc-freedom-hero {
    background: var(--fc-bg-card);
    border: 1px solid rgba(72,199,142,0.2);
    border-radius: var(--fc-radius);
    padding: 36px 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.dc-freedom-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fc-green), transparent);
}

.dc-freedom-hero::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    border-radius: 50%;
    background: var(--fc-green-glow);
    filter: blur(60px);
    pointer-events: none;
}

.dc-freedom-emoji { font-size: 2.5rem; margin-bottom: 10px; position: relative; z-index: 1; }

.dc-freedom-date {
    font-size: 2rem;
    font-weight: 900;
    color: var(--fc-green);
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.dc-freedom-label {
    font-size: 0.78rem;
    color: var(--fc-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* ===== TIMELINE ===== */
.dc-timeline {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 18px;
    border: 1px solid var(--fc-border);
    margin-top: 16px;
}

.dc-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fc-border);
}

.dc-timeline-item:last-child { border-bottom: none; }

.dc-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fc-green);
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 3px var(--fc-green-glow);
}

.dc-timeline-content { flex: 1; min-width: 0; }
.dc-timeline-title  { font-size: 0.85rem; font-weight: 700; color: var(--fc-text); margin-bottom: 3px; }
.dc-timeline-detail { font-size: 0.78rem; color: var(--fc-text-muted); line-height: 1.4; }

/* ===== STRATEGY EXPLAIN ===== */
.dc-strategy-explain {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.dc-strategy-card {
    padding: 18px;
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
    background: var(--fc-bg-card);
    transition: var(--fc-transition);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.dc-strategy-card:hover { border-color: rgba(72,199,142,0.2); }

.dc-snowball-card  { border-color: rgba(66,153,225,0.2); }
.dc-avalanche-card { border-color: rgba(245,101,101,0.2); }

.dc-strategy-icon { font-size: 1.6rem; flex-shrink: 0; }
.dc-strategy-text { flex: 1; }

.dc-strategy-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fc-white);
    margin: 0 0 5px;
}

.dc-strategy-card p {
    font-size: 0.82rem;
    color: var(--fc-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== STRATEGY COMPARISON ===== */
.dc-strategy-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.dc-strat-result {
    border-radius: var(--fc-radius);
    overflow: hidden;
    border: 1px solid var(--fc-border);
}

.dc-strat-header {
    padding: 13px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: var(--fc-font);
    letter-spacing: -0.01em;
}

.dc-snowball-result .dc-strat-header  {
    background: rgba(66,153,225,0.15);
    color: #63b3ed;
    border-bottom: 1px solid rgba(66,153,225,0.2);
}
.dc-avalanche-result .dc-strat-header {
    background: rgba(245,101,101,0.12);
    color: #fc8181;
    border-bottom: 1px solid rgba(245,101,101,0.2);
}

.dc-strat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--fc-border);
    font-size: 0.82rem;
    background: var(--fc-bg-card);
    gap: 8px;
}

.dc-strat-row:last-child { border-bottom: none; }
.dc-strat-row span   { color: var(--fc-text-muted); }
.dc-strat-row strong { color: var(--fc-text); font-weight: 700; white-space: nowrap; }

/* ===== WINNER BANNER ===== */
.dc-winner-banner {
    padding: 16px 20px;
    border-radius: var(--fc-radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.7;
    border: 1px solid rgba(72,199,142,0.2);
    background: var(--fc-green-pale);
    color: var(--fc-text);
}

.dc-winner-avalanche { border-color: rgba(72,199,142,0.2); background: var(--fc-green-pale); }
.dc-winner-snowball  { border-color: rgba(66,153,225,0.2); background: rgba(66,153,225,0.08); }
.dc-winner-tie       { border-color: var(--fc-border);     background: var(--fc-bg-card); }

/* ===== PAYOFF ORDER ===== */
.dc-payoff-order {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dc-payoff-col {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 16px;
    border: 1px solid var(--fc-border);
}

.dc-payoff-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--fc-border);
    font-size: 0.82rem;
}

.dc-payoff-item:last-child { border-bottom: none; }

.dc-payoff-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--fc-green-pale);
    border: 1px solid rgba(72,199,142,0.3);
    color: var(--fc-green);
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dc-payoff-name  { flex: 1; font-weight: 600; color: var(--fc-text); min-width: 0; }
.dc-payoff-month { font-size: 0.75rem; color: var(--fc-text-muted); white-space: nowrap; }

/* ============================================================
   TABLET — 600px+
   ============================================================ */
@media (min-width: 600px) {

    .dc-wrapper { padding: 40px 24px 60px; }

    .dc-tabs { grid-template-columns: repeat(4, 1fr); }
    .dc-tab  { font-size: 0.82rem; }

    .dc-debt-row {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
    }

    .dc-delete-btn {
        grid-column: auto;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: var(--fc-radius-sm);
        align-self: flex-end;
    }

    .dc-results-grid { grid-template-columns: repeat(4, 1fr); }
    .dc-stat-value   { font-size: 1.35rem; }

    .dc-savings-highlight { grid-template-columns: repeat(3, 1fr); }

    .dc-strategy-explain {
        flex-direction: row;
    }
    .dc-strategy-card {
        flex-direction: column;
        gap: 10px;
        flex: 1;
    }

    .dc-strategy-comparison { flex-direction: row; }
    .dc-strat-result { flex: 1; }

    .dc-payoff-order { flex-direction: row; }
    .dc-payoff-col   { flex: 1; }

    .dc-comparison-grid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .dc-two-col { flex-direction: row; }
    .dc-col-card { flex: 1; }
}

/* ============================================================
   DESKTOP — 1024px+
   ============================================================ */
@media (min-width: 1024px) {
    .dc-wrapper { padding: 48px 32px 72px; }
    .dc-header  { padding: 32px 36px; }
    .dc-title   { font-size: 1.9rem; }
    .dc-tab     { font-size: 0.875rem; padding: 12px 14px; }
    .dc-stat-value { font-size: 1.5rem; }
    .dc-freedom-date { font-size: 2.4rem; }
}