/* — Card ————————————————————————————————————— */
.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* — Form grid ————————————————————————————————— */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .card { padding: 1.25rem; }
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap .prefix,
.input-wrap .suffix {
    position: absolute;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
    user-select: none;
}
.input-wrap .prefix { left: 12px; }
.input-wrap .suffix { right: 12px; }

.input-wrap input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.input-wrap input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.input-wrap.has-prefix input  { padding-left: 1.6rem; }
.input-wrap.has-suffix input  { padding-right: 2.2rem; }

/* Quick-pick buttons */
.quick-picks {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}
.quick-picks button {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: all 0.15s;
}
.quick-picks button:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

/* — Results ————————————————————————————————— */
#results-card { display: none; }
#results-card.visible { display: block; }

.result-highlight {
    text-align: center;
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
    background-color: rgba(56,189,248,.12);
    border: 1px solid rgba(56,189,248,.25);
    border-radius: 10px;
}
.result-highlight .label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.result-highlight .value {
    font-size: 2rem;
    font-weight: 700;
    color: #38bdf8;
}
.result-highlight .note {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}
.result-highlight .annually {
    font-size: 1.15rem;
    font-weight: 600;
    color: #38bdf8;
    margin-top: 0.4rem;
}
.result-highlight .annually-label {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.6rem;
    margin-bottom: 0.15rem;
}
.surplus .value { color: #4ade80; }

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .results-grid { grid-template-columns: 1fr; }
}

.result-item {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.9rem 1rem;
}
.result-item .rlabel {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}
.result-item .rvalue {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f1f5f9;
}

/* — Growth schedule table ————————————————————— */
.schedule-wrap {
    margin-top: 1.25rem;
    overflow-x: auto;
}

.schedule-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.schedule-wrap th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #334155;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.schedule-wrap th.r, .schedule-wrap td.r { text-align: right; }
.schedule-wrap td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
    white-space: nowrap;
}
.schedule-wrap tbody tr:hover { background: rgba(56,189,248,.05); }
.schedule-wrap .retirement-row { background: rgba(56,189,248,.08); font-weight: 600; color: #38bdf8; text-transform: uppercase; }