*{box-sizing:border-box}
:root{
  --bg:#07111f;
  --bg2:#0f172a;
  --card:rgba(15,23,42,.72);
  --border:rgba(255,255,255,.12);
  --text:#e5eefc;
  --muted:#9fb0cf;
  --accent:#38bdf8;
  --accent2:#22c55e;
  --warning:#f59e0b;
  --shadow:0 20px 50px rgba(0,0,0,.28);
}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(34,197,94,.10), transparent 22%),
    linear-gradient(135deg, var(--bg), var(--bg2));
}
.bg-orb{
  position:fixed;
  border-radius:50%;
  filter:blur(50px);
  z-index:0;
  opacity:.35;
  pointer-events:none;
}
.orb-1{width:240px;height:240px;top:5%;left:3%;background:#0ea5e9}
.orb-2{width:280px;height:280px;right:2%;bottom:8%;background:#22c55e}
.app-shell{
  position:relative;
  z-index:1;
  max-width:1250px;
  margin:0 auto;
  padding:22px;
}
.glass{
  background:var(--card);
  border:1px solid var(--border);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:var(--shadow);
}
.hero,.panel,.stat-card{
  border-radius:28px;
}
.hero{
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:20px;
  padding:28px;
  margin-bottom:22px;
}
.eyebrow{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(56,189,248,.14);
  border:1px solid rgba(56,189,248,.25);
  color:#7dd3fc;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  margin-bottom:14px;
}
.hero h1{
  margin:0 0 10px;
  font-size:clamp(32px,5vw,52px);
  line-height:1.02;
}
.hero p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  max-width:760px;
}
.hero-actions{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}
.btn{
  border:0;
  border-radius:18px;
  padding:14px 18px;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease;
}
.btn:hover{transform:translateY(-1px);opacity:.96}
.btn-primary{
  color:#001018;
  background:linear-gradient(135deg,#67e8f9,#38bdf8);
}
.btn-dark{
  color:#fff;
  background:linear-gradient(135deg,#1e293b,#0f172a);
  border:1px solid rgba(255,255,255,.1);
}
.btn-light{
  color:#e5eefc;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.update-chip{
  padding:12px 14px;
  border-radius:18px;
  color:#c9daf6;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:14px;
}
.top-grid{
  display:grid;
  grid-template-columns:1.25fr .95fr;
  gap:22px;
  margin-bottom:22px;
}
.panel{
  padding:24px;
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.panel h2{
  margin:0;
  font-size:24px;
}
.panel-tag{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#d9e8ff;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(255,255,255,.10);
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.field span{
  display:block;
  margin-bottom:8px;
  color:#dbeafe;
  font-weight:700;
  font-size:14px;
}
input,select{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px 16px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:15px;
  outline:none;
}
input::placeholder{color:#93a7c6}
.helper{
  margin:16px 0 0;
  color:var(--muted);
  line-height:1.6;
}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.stat-card{
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.stat-card span{
  color:#b9c9e7;
  font-size:14px;
}
.stat-card strong{
  font-size:clamp(26px,4vw,36px);
  line-height:1;
}
.stat-card small{
  color:var(--muted);
}
.stat-card.accent{
  background:linear-gradient(135deg, rgba(56,189,248,.20), rgba(245,158,11,.14));
}
.calc-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
  margin-bottom:22px;
}
.result-box{
  margin-top:18px;
  padding:20px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
}
.result-box span{
  display:block;
  color:#b8cae9;
  margin-bottom:8px;
}
.result-box strong{
  font-size:clamp(28px,4vw,40px);
}
.status-box{
  margin-bottom:18px;
  padding:16px 18px;
  border-radius:20px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#d8e7ff;
}
.table-wrap{
  overflow:auto;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
  background:rgba(5,10,20,.35);
}
thead th{
  position:sticky;
  top:0;
  background:rgba(15,23,42,.96);
  z-index:1;
}
th,td{
  text-align:left;
  padding:14px 14px;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:14px;
}
tbody tr:hover{
  background:rgba(255,255,255,.04);
}
tbody tr.row-used{
  background:rgba(245,158,11,.10);
}
.badge{
  display:inline-block;
  margin:2px 6px 2px 0;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(56,189,248,.12);
  border:1px solid rgba(56,189,248,.18);
  color:#bfeaff;
  font-size:12px;
  white-space:nowrap;
}
.mobile-help p,.mobile-help li{
  color:var(--muted);
  line-height:1.7;
}
.mobile-help ul{
  margin:10px 0 0;
  padding-left:18px;
}
@media (max-width: 1024px){
  .hero,.top-grid,.calc-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 720px){
  .app-shell{padding:14px}
  .hero,.panel,.stat-card{border-radius:22px}
  .hero{padding:20px}
  .panel{padding:18px}
  .form-grid,.summary-grid{grid-template-columns:1fr}
  .btn{width:100%}
}
