/* Zarx PWA - inspired by your original first calculator look */
:root{
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);
  --text:#f4f6ff;
  --muted: rgba(255,255,255,.65);
  --gold1:#f7d27a;
  --gold2:#d6a847;
  --green:#19d37b;
  --danger:#b23b3b;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 50% 8%, rgba(247,210,122,.18), transparent 60%),
    radial-gradient(900px 600px at 50% 35%, rgba(45,212,191,.10), transparent 55%),
    linear-gradient(180deg, #04050a 0%, #070911 55%, #05060b 100%);
}
.hero{padding:28px 14px 8px; text-align:center}
.hero-inner{max-width:920px;margin:0 auto}
.hero-logo{width:74px;height:74px;border-radius:18px;box-shadow:0 10px 35px rgba(0,0,0,.55)}
h1{margin:12px 0 4px; font-size:28px}
.sub{margin:0 0 16px; color:var(--muted); font-size:12px}

.seg{display:inline-flex; gap:10px; padding:8px;background:rgba(0,0,0,.35);border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow)}
.segbtn{min-width:110px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--text);font-weight:800;cursor:pointer}
.segbtn.active{border-color: rgba(247,210,122,.55);background: linear-gradient(180deg, rgba(247,210,122,.22), rgba(0,0,0,.15));box-shadow: 0 0 0 3px rgba(247,210,122,.10) inset}

.wrap{max-width:980px;margin:0 auto;padding:14px;display:flex;flex-direction:column;gap:14px}
.card{background: var(--card);border:1px solid var(--line);border-radius:18px;box-shadow: var(--shadow);padding:16px}
.big-total{padding:18px 16px}
.total-label{color:var(--muted); font-size:12px; margin-bottom:8px}
.total-amt{font-size:54px;font-weight:1000;color: var(--green);text-align:center}
.bar{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.pill{padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.10);color:var(--muted);background:rgba(0,0,0,.25);font-size:12px}

.grid{display:grid;grid-template-columns: repeat(2, minmax(0,1fr));gap:12px}
@media (max-width:820px){.total-amt{font-size:42px}.grid{grid-template-columns:1fr}.segbtn{min-width:92px}}

.field label{display:block;color:rgba(255,255,255,.78);font-size:12px;margin:2px 0 8px}
.field input, .field select{width:100%;padding:14px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background: rgba(0,0,0,.35);color:var(--text);outline:none}
.field input:focus, .field select:focus{border-color: rgba(247,210,122,.55);box-shadow: 0 0 0 3px rgba(247,210,122,.10)}
.hint{margin-top:8px;color:var(--muted);font-size:11px}

.btnrow{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.btn{flex:1;min-width:140px;padding:14px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background: rgba(255,255,255,.06);color:var(--text);font-weight:900;cursor:pointer}
.btn.gold{background: linear-gradient(90deg, rgba(247,210,122,.95), rgba(214,168,71,.95));color:#1b1402;border-color: rgba(247,210,122,.65)}
.btn.danger{background: rgba(178,59,59,.18); border-color: rgba(178,59,59,.40)}
.btn:active{transform: translateY(1px)}
.tip{margin-top:12px;color:var(--muted);font-size:12px;text-align:right}

.cardhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.cardhead h2{margin:0;font-size:16px}
.qid{color:var(--muted);font-size:12px}

.tablewrap{overflow:auto;border-radius:14px;border:1px solid rgba(255,255,255,.10)}
.tbl{width:100%;border-collapse:collapse;min-width:780px}
.tbl th,.tbl td{padding:10px 10px;border-bottom:1px solid rgba(255,255,255,.08);text-align:center;font-size:13px}
.tbl th{color:var(--muted);font-weight:900;background: rgba(255,255,255,.03)}
.iconbtn{padding:8px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.28);color:var(--text);cursor:pointer}

@media print{body{background:#fff;color:#111}.hero,.wrap > section:not(.printOnly){display:none!important}}
.print{font-family: Arial, sans-serif; color:#111; padding:18px}
.phead{display:flex; gap:14px; align-items:center; border-bottom:2px solid #eee; padding-bottom:12px; margin-bottom:12px}
.plogo{width:46px;height:46px;border-radius:12px}
.ptitle{font-weight:900; font-size:16px}
.psub{color:#444; font-size:12px; margin-top:2px}
.pblock{margin:12px 0; padding:10px; border:1px solid #eee; border-radius:10px}
.prow{display:flex; justify-content:space-between; gap:10px; font-size:12px}
.prow.big strong{font-size:16px}
.ptbl{width:100%; border-collapse:collapse; margin-top:12px}
.ptbl th,.ptbl td{border:1px solid #eee; padding:7px; font-size:11px; text-align:center}
.ptbl th{background:#fafafa}
.ptot{margin-top:12px; max-width:320px; margin-left:auto; border:1px solid #eee; border-radius:10px; padding:10px}
.pfoot{margin-top:14px; padding-top:10px; border-top:1px solid #eee; font-size:11px; color:#555; text-align:center}
