/* ==========================================================================
   SECTION SIMULATOR — INTERACTIVE WEALTH ALLOCATION & COMPOUND PROJECTION
   ========================================================================== */

.av-sim-section {
    padding: 96px 0;
    background-color: var(--emerald-deep);
    color: var(--bg-ivory);
    border-bottom: 1px solid var(--line-light);
}

.av-sim-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: stretch;
}

.av-sim-controls {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.av-sim-group-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-hi);
    margin-bottom: 12px;
}

.av-sim-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.av-sim-btn {
    padding: 10px 16px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--line-light);
    background-color: transparent;
    color: rgba(250, 248, 245, 0.78);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.24s ease;
}

.av-sim-btn:hover {
    border-color: var(--gold-hi);
    color: var(--bg-ivory);
}

.av-sim-btn.is-selected {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--emerald-deep);
}

.av-sim-profiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.av-profile-btn {
    padding: 16px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line-light);
    background-color: rgba(255, 255, 255, 0.02);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.24s ease;
}

.av-profile-btn strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--bg-ivory);
}

.av-profile-btn span {
    font-size: 0.78rem;
    color: rgba(250, 248, 245, 0.65);
}

.av-profile-btn:hover {
    border-color: var(--gold-hi);
}

.av-profile-btn.is-selected {
    background-color: rgba(184, 147, 82, 0.16);
    border-color: var(--gold-hi);
}

.av-profile-btn.is-selected strong {
    color: var(--gold-hi);
}

/* Output Board */
.av-sim-output {
    background-color: var(--bg-ivory);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.av-out-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.av-out-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.av-out-rate {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--emerald);
}

.av-out-total {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.8vw, 3.15rem);
    font-weight: 700;
    color: var(--emerald-deep);
    line-height: 1.1;
}

.av-out-submetrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.av-submetric span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-subtle);
    margin-bottom: 4px;
}

.av-submetric strong {
    font-family: var(--font-display);
    font-size: 1.32rem;
    color: var(--emerald-deep);
}

.av-alloc-bar {
    height: 10px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    background-color: var(--bg-stone);
    margin: 10px 0 14px;
}

.av-bar-bonds {
    background-color: var(--emerald);
    transition: width 0.45s var(--ease-lux);
}

.av-bar-equity {
    background-color: var(--gold);
    transition: width 0.45s var(--ease-lux);
}

.av-bar-real {
    background-color: #6e7b75;
    transition: width 0.45s var(--ease-lux);
}

.av-alloc-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.av-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.av-dot {
    width: 9px;
    height: 9px;
    border-radius: 1px;
    flex-shrink: 0;
}

.av-dot.is-bonds { background-color: var(--emerald); }
.av-dot.is-equity { background-color: var(--gold); }
.av-dot.is-real { background-color: #6e7b75; }

.av-sim-disclaimer {
    font-size: 0.78rem;
    color: var(--ink-subtle);
    line-height: 1.55;
}

@media (max-width: 991px) {
    .av-sim-section {
        padding: 72px 0;
    }

    .av-sim-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .av-sim-controls,
    .av-sim-output {
        padding: 24px 20px;
    }

    .av-sim-profiles,
    .av-out-submetrics,
    .av-alloc-legend {
        grid-template-columns: 1fr;
    }
}
