:root {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --pace-orange: #EB9110;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --danger: #ef4444;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--pace-orange);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 300;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

/* Inputs */
.input-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.input-group {
    margin-bottom: 2rem;
}

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

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-family: 'Manrope', sans-serif;
    width: 100%;
    outline: none;
}

.unit, .currency {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.currency {
    margin-right: 0.5rem;
}

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Results */
.result-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-card {
    background: linear-gradient(145deg, #1f2937, #111827);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.big-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--danger);
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.context-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.opportunity-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.opportunity-card h3 {
    margin-top: 0;
    font-size: 1rem;
}

.opportunity-item {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.opportunity-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.opportunity-item span:nth-child(2) {
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: var(--accent);
}

/* Insight Box */
.insight-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    position: relative;
    margin-bottom: 2rem;
}

.quote-mark {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.insight-box p {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    padding-left: 1rem;
}

footer {
    text-align: center;
}

button {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}
