:root {
    --bg-dark: #121212;
    --surface: #1e1e1e;
    --primary: #f59e0b;
    /* Amber warning */
    --primary-dim: #b45309;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    padding: 30px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.alert-pill {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.calculator-surface {
    background: var(--surface);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Light effect top border */
.calculator-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--danger));
}

.input-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.input-block label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.input-wrap {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0 12px;
}

.input-wrap:focus-within {
    border-color: var(--primary);
}

.input-wrap span {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
}

.input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 14px 10px;
    font-size: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.input-wrap input:focus {
    outline: none;
}

/* Result */
.result-screen {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.result-screen .label {
    font-size: 0.7rem;
    color: var(--danger);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.date-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.days-left {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.progress-bar-bg {
    background: #222;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--danger));
    transition: width 0.5s ease;
}

/* CTA */
.cta-area {
    text-align: center;
}

.cta-area p {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 15px;
}

.price-tease {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.action-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover {
    background: #fcd34d;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Facts */
.facts-grid {
    margin-bottom: 40px;
}

.fact {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.fact-icon {
    font-size: 1.5rem;
}

.fact-text {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.5;
}

.fact-text strong {
    color: white;
}

/* FAQ */
.faq-section {
    margin-bottom: 50px;
}

.faq-head {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

details {
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #333;
    overflow: hidden;
}

summary {
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 15px 15px 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 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(--surface);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--primary);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.modal input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: black;
    border: 1px solid #444;
    color: white;
    border-radius: 6px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checkbox-line input {
    width: auto;
    margin: 0;
}

#submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: black;
    border: none;
    font-weight: 800;
    cursor: pointer;
    border-radius: 6px;
}