*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #050709; --surface: #0e1219; --surface-2: #161c26; --border: #242d3b;
  --text: #eaeff5; --text-dim: #94a3b8; --text-muted: #556275;
  --red: #ff4444; --red-soft: #ff6b6b; --red-dim: rgba(255,68,68,0.10);
  --green: #34d399; --green-dim: rgba(52,211,153,0.10);
  --orange: #f59e0b; --orange-dim: rgba(245,158,11,0.10);
  --radius: 12px; --radius-sm: 8px;
  --font: 'DM Sans', sans-serif; --mono: 'JetBrains Mono', monospace;
}
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 680px; margin: 0 auto; padding: 16px 16px 60px; }
.nav { display: flex; justify-content: space-between; align-items: center; padding-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: 2px; color: var(--red); background: var(--red-dim); border: 1px solid rgba(255,68,68,0.2); padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
h1 { font-size: clamp(28px, 6vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin-bottom: 10px; color: #fff; }
h1 span { color: var(--red); }
.subtitle { color: var(--text-dim); font-size: 15px; max-width: 500px; line-height: 1.5; margin-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.card-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header span { font-size: 18px; }
.card-header h2 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--text); outline: none; transition: border 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input:focus, .field select:focus { border-color: var(--red); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scenario { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.scenario label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.scenario-price { font-size: 28px; font-weight: 700; color: var(--red-soft); margin-bottom: 10px; font-family: var(--mono); }
.scenario input[type="range"] {
  width: 100%; height: 6px; -webkit-appearance: none; background: linear-gradient(to right, var(--text-muted), var(--orange), var(--red));
  border-radius: 3px; outline: none;
}
.scenario input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 8px rgba(0,0,0,0.3); }
.presets { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.presets button { background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); cursor: pointer; }
.presets button:hover { border-color: var(--red); color: var(--text); }
.calc-btn {
  width: 100%; padding: 16px; background: var(--red); color: #fff; border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 16px; transition: all 0.2s;
}
.calc-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; display: none; margin-bottom: 16px; }
.result-amount { font-family: var(--mono); font-size: 42px; font-weight: 700; color: var(--red-soft); }
.result-period { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.result-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.result-row:last-child { border-bottom: none; }
.result-row span:first-child { color: var(--text-dim); }
.result-row span:last-child { font-family: var(--mono); font-weight: 600; }
.result-bar { margin: 16px 0; }
.result-bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.result-bar-track { height: 24px; background: var(--surface-2); border-radius: 12px; overflow: hidden; position: relative; }
.result-bar-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--orange)); border-radius: 12px; transition: width 0.6s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff; min-width: 40px; }
.result-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }
.cta { text-align: center; padding: 32px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cta p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.cta a { display: inline-block; background: var(--red); color: #fff; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; text-decoration: none; }
.cta a:hover { filter: brightness(1.1); }
.footer { text-align: center; padding-top: 24px; font-size: 11px; color: var(--text-muted); }
@media(max-width:600px) { .row { grid-template-columns: 1fr; } .result-amount { font-size: 32px; } }