/* ── JOURNEY TIERS ── */
.tier-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tier-cell {
    padding: 24px 20px;
    border-right: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    cursor: default;
}

.tier-cell:last-child {
    border-right: none;
}

.tier-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.tier-cell.t1::before {
    background: #60a5fa;
}

.tier-cell.t2::before {
    background: #a78bfa;
}

.tier-cell.t3::before {
    background: var(--emerald-dim);
}

.tier-cell.t4::before {
    background: var(--emerald);
}

.tier-cell:hover {
    background: var(--bg-card);
}

.tier-you {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tier-cell.t1 .tier-you {
    color: #60a5fa;
}

.tier-cell.t2 .tier-you {
    color: #a78bfa;
}

.tier-cell.t3 .tier-you {
    color: var(--emerald-dim);
}

.tier-cell.t4 .tier-you {
    color: var(--emerald);
}

.tier-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tier-range {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.tier-perks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-perks li {
    font-size: 11px;
    color: var(--text-faint);
    line-height: 1.9;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.tier-perks li::before {
    content: '·';
    color: var(--emerald);
    flex-shrink: 0;
    font-weight: 700;
}

@media (max-width: 767px) {
    .tier-rail {
        grid-template-columns: repeat(2, 1fr);
    }

    .tier-cell {
        border-bottom: 1px solid var(--border);
    }

    .tier-cell:nth-child(2) {
        border-right: none;
    }

    .tier-cell:nth-child(3) {
        border-bottom: none;
    }

    .tier-cell:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .tier-rail {
        grid-template-columns: 1fr;
    }

    .tier-cell {
        border-right: none;
    }

    .tier-cell:last-child {
        border-bottom: none;
    }
}

/* ── TICKER ── */
/* #pg-ticker {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    top: 65px;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 900;
}

.ticker-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-sym {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.ticker-val {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-primary);
}

.ticker-chg {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
} */

/* ── TOOL SECTION OFFSET ── */
.tools-body {
    padding-top: 120px;
}

/* ── TOOL TABS ── */
.tool-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    flex-wrap: wrap;
}

.tool-tab {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tool-tab .material-symbols-outlined {
    font-size: 18px;
}

.tool-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.tool-tab.active {
    color: var(--btn-text);
    background: var(--emerald);
}

.tool-tab.active .material-symbols-outlined {
    color: var(--btn-text);
}

/* ── TOOL PANELS ── */
.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

/* ── CALCULATOR CARD ── */
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* ── RANGE WITH FILL ── */
.range-wrap {
    position: relative;
}

.range-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-dim), var(--emerald));
    border-radius: 99px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

input[type=range] {
    position: relative;
    z-index: 2;
    background: transparent;
}

/* ── RESULT BOX ── */
.result-box {
    background: linear-gradient(135deg, rgba(78, 222, 163, 0.09) 0%, rgba(78, 222, 163, 0.03) 100%);
    border: 1px solid rgba(78, 222, 163, 0.22);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.result-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 600;
    color: var(--emerald);
    line-height: 1;
}

.result-sub {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 6px;
}

/* ── BREAKDOWN ROW ── */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row .key {
    color: var(--text-muted);
}

.breakdown-row .val {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 600;
}

.breakdown-row .val.pos {
    color: var(--emerald);
}

.breakdown-row .val.neg {
    color: #f87171;
}

/* ── CHART SVG ── */
.chart-area {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.chart-area svg {
    width: 100%;
    display: block;
}

/* ── QUIZ OPTION ── */
.quiz-option {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card-high);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.quiz-option.selected {
    border-color: var(--emerald);
    background: rgba(78, 222, 163, 0.08);
    color: var(--emerald);
}

.quiz-option .opt-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
    font-family: var(--font-mono);
}

.quiz-option.selected .opt-letter {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--btn-text);
}

/* ── PROGRESS BAR ── */
.quiz-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--emerald);
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* ── RISK RESULT METER ── */
.risk-meter {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.risk-meter-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── TAX PILL ── */
.tax-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #f87171;
    font-family: var(--font-mono);
}

/* ── LINK CARD ── */
.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--emerald-glow2);
    color: inherit;
}

.link-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--emerald-glow2);
    border: 1px solid rgba(78, 222, 163, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── SELECT ── */
select.calc-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9ba8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

select.calc-select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald-glow2);
}

/* ── LUMP VS SIP TOGGLE ── */
.mode-toggle {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.mode-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn.active {
    background: var(--emerald);
    color: var(--btn-text);
}

@media (max-width: 768px) {
    .tool-tabs {
        gap: 4px;
        padding: 4px;
    }

    .tool-tab {
        font-size: 12px;
        padding: 9px 12px;
        min-width: 0;
    }

    .result-value {
        font-size: 28px;
    }
}