:root {
    --bg-dark: #0a0a0a;
    --card-dark: #141414;
    --border: #333;
    --gold: #d4af37;
    --gold-mute: #8a7324;
    --text: #ffffff;
    --text-muted: #888;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 30px 15px;
}

.app-container {
    width: 100%;
    max-width: 600px;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-badge {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 14px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.app-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.app-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Card */
.calculator-card {
    background: var(--card-dark);
    border: 1px solid var(--border);
    padding: 30px;
    position: relative;
}

/* Inputs */
.input-section {
    margin-bottom: 30px;
}

.input-card {
    margin-bottom: 20px;
}

.input-card label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.money-input {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.money-input span {
    font-size: 1.5rem;
    color: var(--gold);
    margin-right: 10px;
    font-family: 'Cinzel', serif;
}

.money-input input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
}

.money-input input:focus {
    outline: none;
    border-bottom: 1px solid var(--gold);
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-wrapper input {
    flex: 1;
    accent-color: var(--gold);
}

.range-wrapper span {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    width: 60px;
    text-align: right;
}

/* Result */
.result-box {
    text-align: center;
    border: 2px solid var(--gold);
    padding: 25px;
    margin-bottom: 40px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent);
}

.result-title {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.result-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

.result-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Scenarios */
.scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.scenario {
    background: #0f0f0f;
    padding: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.scenario h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scenario p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.scenario strong {
    color: white;
}

.scenario.bad {
    border-top: 3px solid #ef4444;
}

.scenario.good {
    border-top: 3px solid #22c55e;
}

.scenario .icon {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* CTA */
.cta-btn {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: 0.2s;
}

.cta-btn:hover {
    background: #b5921f;
}

/* FAQ */
.faq-section {
    margin-top: 40px;
}

.faq-section h3 {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.faq-row {
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.faq-row h4 {
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.faq-row p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
}

/* Modal */
.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;
}

.modal {
    background: var(--card-dark);
    border: 1px solid var(--gold);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
    color: var(--gold);
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.modal input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: black;
    border: 1px solid #333;
    color: white;
    font-family: 'Montserrat';
}

#submit-btn {
    width: 100%;
    padding: 15px;
    background: white;
    color: black;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

@media(max-width: 600px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .result-number {
        font-size: 2rem;
    }
}