/* S8 Credit & Debt Snapshot Simulator Styles */

:root {
    --sim-primary: #1e40af;
    --sim-primary-dark: #1e3a8a;
    --sim-accent: #3BF2C6;
    --sim-bg: #0B1020;
    --sim-card: #0F2033;
    --sim-border: #17324C;
    --sim-text: #E8F2FF;
    --sim-text-muted: #9BC3F2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--sim-bg);
    color: var(--sim-text);
    line-height: 1.6;
    min-height: 100vh;
}

.simulator-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--sim-border);
    margin-bottom: 24px;
}

.sim-brand {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--sim-accent), #4DA3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sim-mode-badge {
    background: var(--sim-card);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--sim-text-muted);
    border: 1px solid var(--sim-border);
}

.sim-title-section {
    text-align: center;
    margin-bottom: 32px;
}

.sim-title-section h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--sim-text);
}

.sim-subtitle {
    color: var(--sim-text-muted);
    font-size: 16px;
}

.sim-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .sim-content { grid-template-columns: 1fr; }
}

.sim-inputs, .sim-outputs {
    background: var(--sim-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--sim-border);
}

.input-group {
    margin-bottom: 24px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.input-header label {
    font-weight: 500;
    font-size: 14px;
    color: var(--sim-text);
}

.input-value {
    font-weight: 600;
    font-size: 16px;
    color: var(--sim-accent);
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--sim-border);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sim-accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 242, 198, 0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sim-accent);
    cursor: pointer;
    border: none;
}

.select-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--sim-bg);
    border: 1px solid var(--sim-border);
    color: var(--sim-text);
    font-size: 14px;
    cursor: pointer;
}

.input-range {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--sim-text-muted);
    margin-top: 6px;
}

.input-hint {
    font-size: 12px;
    color: var(--sim-text-muted);
    margin-top: 8px;
}

.output-secondary {
    margin-bottom: 20px;
}

.output-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--sim-border);
}

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

.output-label {
    color: var(--sim-text-muted);
    font-size: 14px;
}

.output-value {
    font-weight: 600;
    color: var(--sim-text);
}

.output-primary {
    background: linear-gradient(135deg, rgba(59, 242, 198, 0.1), rgba(77, 163, 255, 0.1));
    border: 1px solid var(--sim-accent);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.output-primary-label {
    font-size: 14px;
    color: var(--sim-text-muted);
    margin-bottom: 8px;
}

.output-primary-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--sim-accent);
    margin-bottom: 8px;
}

.output-primary-note {
    font-size: 13px;
    color: var(--sim-text-muted);
}

.sim-cta {
    display: flex;
    gap: 12px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--sim-accent);
    color: var(--sim-bg);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--sim-border);
    color: var(--sim-text);
}

.btn-secondary:hover {
    border-color: var(--sim-accent);
    color: var(--sim-accent);
}

.assumptions-panel {
    margin-top: 24px;
    background: var(--sim-card);
    border-radius: 12px;
    border: 1px solid var(--sim-border);
    overflow: hidden;
}

.assumptions-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: none;
    border: none;
    color: var(--sim-text-muted);
    cursor: pointer;
    font-size: 14px;
}

.assumptions-toggle:hover {
    color: var(--sim-text);
}

.toggle-icon {
    font-size: 18px;
    transition: transform 0.2s;
}

.assumptions-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.assumptions-content.open {
    max-height: 500px;
}

.assumption-item {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--sim-text-muted);
    border-top: 1px solid var(--sim-border);
}

.assumption-item.disclaimer {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.sim-footer {
    text-align: center;
    padding: 24px 0;
    margin-top: 32px;
    color: var(--sim-text-muted);
    font-size: 13px;
}

.sim-footer a {
    color: var(--sim-text-muted);
    text-decoration: none;
}

.sim-footer a:hover {
    color: var(--sim-accent);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--sim-card);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid var(--sim-border);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--sim-text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--sim-text-muted);
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-content input[type="email"] {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--sim-border);
    background: var(--sim-bg);
    color: var(--sim-text);
    font-size: 14px;
}

.modal-disclaimer {
    font-size: 12px;
    margin-top: 12px;
}