/* Markets & Your Money hub */

.mym-page {
    background: linear-gradient(160deg, #020617 0%, #0f172a 45%, #1e1b4b 100%);
    min-height: 100vh;
    color: #f8fafc;
}

.mym-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.mym-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2.5rem 1.5rem;
    background: var(--glass-panel-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--glass-panel-border, rgba(255, 255, 255, 0.12));
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mym-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mym-hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.mym-disclaimer {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.mym-section {
    margin-bottom: 2.5rem;
}

.mym-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mym-section-title svg {
    color: #a78bfa;
    flex-shrink: 0;
}

.mym-context-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mym-context-list li {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 3px solid #38bdf8;
}

.mym-context-updated {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.75rem;
    font-style: italic;
}

.mym-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.mym-tab {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mym-tab:hover {
    color: #e2e8f0;
    border-color: rgba(167, 139, 250, 0.4);
}

.mym-tab.active {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.5);
    color: #e9d5ff;
}

.mym-calc-panel {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.mym-calc-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .mym-calc-panel.active {
        grid-template-columns: 1fr;
    }
}

.mym-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mym-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mym-field input,
.mym-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 1rem;
}

.mym-field input:focus,
.mym-field select:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

.mym-field-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.mym-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.mym-slider-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #a78bfa;
}

.mym-field input[type="range"] {
    padding: 0;
    accent-color: #a78bfa;
}

.mym-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mym-result-card {
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mym-result-card.highlight {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.mym-result-card.winner {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.08);
}

.mym-result-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mym-result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}

.mym-result-value.positive { color: #34d399; }
.mym-result-value.negative { color: #fb7185; }

.mym-insight {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.mym-chart-wrap {
    height: 200px;
    position: relative;
    margin-top: 0.5rem;
}

.mym-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.mym-scenario-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.mym-scenario-card:hover {
    border-color: rgba(167, 139, 250, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mym-scenario-card h4 {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
}

.mym-scenario-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.mym-toolkit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.mym-tool-card {
    display: block;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.mym-tool-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.mym-tool-card h4 {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.mym-tool-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.mym-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.mym-article-link {
    display: block;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.mym-article-link:hover {
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.mym-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;
    text-decoration: none;
}

.mym-cta-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.mym-footer-note {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.mym-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

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