*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #050709;
  --surface: #0e1219;
  --surface-2: #161c26;
  --surface-3: #1f2733;
  --border: #242d3b;
  --border-light: #334052;
  --text: #eaeff5;
  --text-dim: #94a3b8;
  --text-muted: #556275;
  --red: #ff4444;
  --red-soft: #ff6b6b;
  --red-dim: rgba(255,68,68,0.10);
  --red-glow: rgba(255,68,68,0.25);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.10);
  --orange: #f59e0b;
  --orange-dim: rgba(245,158,11,0.10);
  --blue: #60a5fa;
  --blue-dim: rgba(96,165,250,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --card-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 0 0 1px var(--border);
}
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; }
.nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .logo { font-weight: 700; color: var(--text); font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); background: var(--orange-dim); border: 1px solid rgba(245,158,11,0.2); padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 10px; color: #fff; }
h1 span { color: var(--red); }
.subtitle { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); margin-bottom: 16px; overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.card-header h2 { font-size: 14px; font-weight: 600; }
.card-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-body.single { grid-template-columns: 1fr; }
label { font-size: 12px; font-weight: 500; color: var(--text-dim); display: block; margin-bottom: 5px; }
input, select { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-family: var(--font); font-size: 14px; color: var(--text); }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 48px; }
.input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-muted); font-family: var(--mono); pointer-events: none; }
.calc-btn { width: 100%; padding: 14px; background: var(--red); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-bottom: 16px; }
.calc-btn:hover { background: var(--red-soft); transform: translateY(-1px); box-shadow: 0 4px 20px var(--red-glow); }

/* Slider */
.slider-section { padding: 20px; }
.slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.slider-label h3 { font-size: 14px; font-weight: 600; }
.slider-price { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--red-soft); }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--text-muted), var(--orange), var(--red)); outline: none; cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(0,0,0,0.5); cursor: grab; }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(0,0,0,0.5); cursor: grab; border: none; }
.slider-markers { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 10px; color: var(--text-muted); }

/* Result */
.result-box { text-align: center; padding: 32px 20px; }
.result-amount { font-family: var(--mono); font-size: 48px; font-weight: 700; color: var(--red); line-height: 1; }
.result-sub { font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.result-monthly { font-family: var(--mono); font-size: 20px; color: var(--red-soft); margin-top: 4px; }
.result-detail { margin-top: 20px; display: flex; justify-content: center; gap: 24px; }
.result-detail-item { text-align: center; }
.result-detail-item .val { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--text); }
.result-detail-item .lbl { font-size: 11px; color: var(--text-muted); }
.hidden { display: none; }
.visible { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* CTA */
.cta-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 24px; }
.cta-box p { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.cta-link { display: inline-block; background: var(--surface-3); border: 1px solid var(--border); color: var(--text); padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; text-decoration: none; transition: all 0.2s; }
.cta-link:hover { border-color: var(--red); color: var(--red); }
.footer { text-align: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-muted); }
.footer a { color: var(--text-dim); text-decoration: none; }

@media (max-width: 500px) {
  .card-body { grid-template-columns: 1fr; }
  .result-amount { font-size: 36px; }
  .result-detail { gap: 16px; }
}