
/*
Debt profile slide (DR + PL_FOR_DC pre-submission teaser)
*/

.debt-profile {
    --dp-purple: #6514dd;
    --dp-purple-deep: #4811D1;
    --dp-purple-soft: #EEE8FF;
    --dp-ink: #1A1036;
    --dp-ink-2: #3A2E5A;
    --dp-muted: #6B6487;
    --dp-hair: #E9E4F5;
    --dp-red: #B91C1C;
    color: var(--dp-ink);
}

.debt-profile .dp-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.debt-profile .dp-loading {
    padding: 40px 0;
    text-align: center;
    color: var(--dp-muted);
}

.debt-profile .dp-head {
    text-align: center;
    margin-bottom: 16px;
}

.debt-profile .dp-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--dp-ink);
    margin: 0;
    line-height: 1.25;
}

/* Identity (3 rows: Address / SSN / Credit Score) */
.debt-profile .dp-id {
    background: #F7F4FF;
    border-radius: 12px;
    padding: 4px 14px;
}

.debt-profile .dp-id-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(91, 33, 242, 0.08);
}

.debt-profile .dp-id-row:last-child {
    border-bottom: none;
}

.debt-profile .dp-id-k {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dp-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.debt-profile .dp-id-v {
    font-size: 14px;
    font-weight: 600;
    color: var(--dp-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
}

.debt-profile .dp-divider {
    height: 1px;
    background: var(--dp-hair);
    margin: 18px 0 14px;
}

/* Total balance hero */
.debt-profile .dp-total {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.debt-profile .dp-total-value {
    font-size: 38px;
    font-weight: 600;
    color: var(--dp-purple);
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.debt-profile .dp-total-sub {
    font-size: 15px;
    font-weight: 600;
    color: var(--dp-muted);
}

/* InfoTip popover */
.debt-profile .dp-info-tip {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 2px;
}

.debt-profile .dp-info-tip-btn {
    width: 18px;
    height: 18px;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--dp-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    opacity: 0.7;
    transition: opacity 0.15s, background 0.15s;
}

.debt-profile .dp-info-tip-btn:hover,
.debt-profile .dp-info-tip-btn:focus-visible {
    opacity: 1;
    background: var(--dp-purple-soft);
    color: var(--dp-purple-deep);
    outline: none;
}

.debt-profile .dp-info-tip-btn svg {
    display: block;
    width: 14px;
    height: 14px;
}

.debt-profile .dp-info-tip-pop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-22px);
    z-index: 30;
    width: 220px;
    max-width: calc(100vw - 60px);
    background: var(--dp-ink);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 8px 24px rgba(26, 16, 54, 0.25);
    text-transform: none;
    letter-spacing: 0;
}

.debt-profile .dp-info-tip.open .dp-info-tip-pop {
    display: block;
}

.debt-profile .dp-info-tip-pop::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 18px;
    width: 10px;
    height: 10px;
    background: var(--dp-ink);
    transform: rotate(45deg);
    border-radius: 2px;
}

.debt-profile .dp-info-tip-pop b {
    color: #fff;
    font-weight: 700;
}

.debt-profile .dp-info-tip-pop .dp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
}

/* Creditor table (Account / Balance / Min payment) */
.debt-profile .dp-creditors {
    margin-top: 4px;
}

.debt-profile .dp-creditor-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--dp-hair);
    font-size: 14px;
}

.debt-profile .dp-creditor-row:last-child {
    border-bottom: none;
}

.debt-profile .dp-creditor-row.dp-creditor-head {
    padding: 6px 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dp-muted);
    border-bottom: 1px solid var(--dp-hair);
}

.debt-profile .dp-creditor-row.dp-creditor-head .dp-account,
.debt-profile .dp-creditor-row.dp-creditor-head .dp-bal,
.debt-profile .dp-creditor-row.dp-creditor-head .dp-min {
    color: var(--dp-muted);
}

.debt-profile .dp-creditor-row.dp-creditor-head .dp-account {
    text-align: left;
}

.debt-profile .dp-creditor-row.dp-creditor-head .dp-bal,
.debt-profile .dp-creditor-row.dp-creditor-head .dp-min {
    text-align: right;
}

.debt-profile .dp-account {
    color: var(--dp-ink);
    font-weight: 500;
    min-width: 0;
    line-height: 1.25;
    text-align: left;
}

.debt-profile .dp-creditor-name-main {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.debt-profile .dp-creditor-last4 {
    color: var(--dp-muted);
    font-weight: 400;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.debt-profile .dp-bal {
    color: var(--dp-ink);
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.debt-profile .dp-min {
    color: var(--dp-ink);
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.debt-profile .dp-min .dp-u {
    font-size: 11px;
    font-weight: 500;
    color: var(--dp-muted);
    margin-left: 1px;
}

.debt-profile .dp-min sup {
    color: var(--dp-purple);
    font-weight: 700;
    font-size: 10px;
    top: -0.45em;
    margin-left: 1px;
}

.debt-profile .dp-creditor-row.dp-creditor-hidden {
    display: none;
}

.debt-profile .dp-show-more {
    display: block;
    width: 100%;
    background: none;
    border: none;
    font: 600 13px inherit;
    color: var(--dp-purple);
    padding: 12px 2px 4px;
    cursor: pointer;
    text-align: right;
}

/* "What your debt costs you" panel */
.debt-profile .dp-situation {
    margin-top: 18px;
    padding: 14px 14px 14px;
    border-radius: 14px;
    background: #FBFAFE;
    border: 1px solid var(--dp-hair);
}

.debt-profile .dp-situation-headline {
    font-size: 15px;
    font-weight: 700;
    color: var(--dp-ink);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.debt-profile .dp-situation-stats {
    background: #fff;
    border-radius: 10px;
    padding: 2px 14px;
    border: 1px solid var(--dp-hair);
}

.debt-profile .dp-situation-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid var(--dp-hair);
    font-size: 13.5px;
    gap: 8px;
}

.debt-profile .dp-situation-row:last-child {
    border-bottom: none;
}

.debt-profile .dp-situation-row .dp-k {
    color: var(--dp-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.debt-profile .dp-situation-row .dp-v {
    color: var(--dp-ink);
    font-weight: 700;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    text-align: right;
}

.debt-profile .dp-situation-row .dp-v.dp-v-interest {
    color: var(--dp-red);
}

.debt-profile .dp-situation-row.dp-situation-total {
    border-top: 1.5px solid var(--dp-ink);
    border-bottom: none;
    padding-top: 12px;
    margin-top: 2px;
}

.debt-profile .dp-situation-row.dp-situation-total .dp-k {
    color: var(--dp-ink);
    font-weight: 700;
}

.debt-profile .dp-situation-row.dp-situation-total .dp-v {
    font-size: 17px;
}

.debt-profile .dp-savings-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #DCFCE7;
    border-radius: 99px;
    color: #15803D;
    font-size: 13.5px;
    font-weight: 600;
}

.debt-profile .dp-savings-chip b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.debt-profile .dp-savings-chip svg {
    color: #15803D;
    flex-shrink: 0;
}

/* CTA */
.debt-profile .dp-cta {
    width: 100%;
    background: var(--dp-purple);
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: 99px;
    margin-top: 18px;
    cursor: pointer;
    min-height: 56px;
}

.debt-profile .dp-cta:active {
    background: var(--dp-purple-deep);
}

.debt-profile .dp-footnote {
    margin-top: 12px;
    font-size: 10.5px;
    color: var(--dp-muted);
    line-height: 1.5;
    text-align: center;
    padding: 0 4px;
}

.debt-profile .dp-footnote .dp-aster {
    color: var(--dp-purple);
    font-weight: 700;
}