:root{
  --bg: #0b1020;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --accent: #ff7a00;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 16px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 700px at 20% 0%, rgba(255,122,0,0.20), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(97,218,251,0.10), transparent 55%),
              var(--bg);
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.hero{
  padding: 18px 6px 10px;
}
h1{
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.2vw, 38px);
}
.sub{
  margin:0;
  color: var(--muted);
  line-height: 1.4;
}

.card{
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.card h2{
  margin: 4px 0 14px;
  font-size: 18px;
  color: rgba(255,255,255,0.88);
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
}

.field span{
  display:block;
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 6px;
}
.field input{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}
.field input:focus{
  border-color: rgba(255,122,0,0.55);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.18);
}

.hint{
  display:block;
  margin-top: 6px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn{
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.btn:hover{
  background: rgba(255,255,255,0.10);
}
.btn.primary{
  border-color: rgba(255,122,0,0.45);
  background: rgba(255,122,0,0.18);
}
.btn.primary:hover{
  background: rgba(255,122,0,0.26);
}

.results{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.row span{ color: rgba(255,255,255,0.80); font-size: 13px; }
.row strong{ font-size: 14px; }

.divider{
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 6px 0;
}
.total{
  border-color: rgba(255,122,0,0.35);
  background: rgba(255,122,0,0.12);
}

.note{
  margin: 12px 4px 4px;
  color: rgba(255,255,255,0.60);
  font-size: 14px;
  line-height: 1.4;
}

ul.note{
  margin: 10px 0 0 18px;
  padding: 0;
}
ul.note li{
  margin: 6px 0;
}

.footer{
  margin-top: 18px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  padding: 0 6px;
}

.error{
  margin: 10px 4px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 0, 0.35);
  background: rgba(255, 122, 0, 0.10);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  line-height: 1.35;
}

.legal p{
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}
