:root {
    --bg-dark: #121212;
    --panel-dark: #1e1e1e;
    --accent: #ef4444;
    /* Risk Red */
    --accent-glow: rgba(239, 68, 68, 0.4);
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
}

.dashboard-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Inputs (Left) */
.control-panel h2,
.analysis-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-card {
    margin-bottom: 25px;
}

.input-card label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.input-card input[type="text"] {
    width: 100%;
    padding: 12px;
    background: var(--panel-dark);
    border: 1px solid var(--border);
    color: white;
    border-radius: 4px;
    font-size: 1rem;
}

.input-row {
    display: flex;
    align-items: center;
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 12px;
}

.input-row span {
    color: var(--text-muted);
}

.input-row input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.input-row input:focus {
    outline: none;
}

.range-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-wrap input {
    flex: 1;
    accent-color: var(--accent);
}

.range-wrap span {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* Analysis (Right) */
.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.metric-box {
    background: var(--panel-dark);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
}

.value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.sub {
    font-size: 0.7rem;
    color: #666;
}

.total-risk-card {
    background: linear-gradient(145deg, #1e1e1e, #111);
    border: 1px solid var(--accent);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 0 30px var(--accent-glow);
    margin-bottom: 30px;
}

.risk-label {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.risk-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
}

.risk-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quote-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.quote-btn:hover {
    background: red;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

/* FAQ */
.faq-accordion {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.faq-accordion h3 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 15px;
}

.faq-item {
    margin-bottom: 15px;
}

.q {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.a {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

/* Overlay */
.hidden {
    display: none !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.overlay-content {
    background: var(--panel-dark);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.overlay-content h2 {
    margin-bottom: 10px;
}

.overlay-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.overlay-content input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    background: #111;
    border: 1px solid #333;
    color: white;
}

#submit-btn {
    width: 100%;
    padding: 15px;
    background: white;
    color: black;
    font-weight: 900;
    border: none;
    cursor: pointer;
}

/* Responsive */
@media(max-width: 800px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .risk-amount {
        font-size: 2.5rem;
    }
}