:root{
  --bg:#07060b; --panel:#100e18; --line:#241f33; --text:#ece9f5; --muted:#8a839d;
  --accent:#ff3d6e; --accent2:#7c3aed; --ok:#3ddc97;
  --ease:cubic-bezier(.22,.8,.24,1);
}
*{box-sizing:border-box;margin:0}
html{color-scheme:dark}
body{
  min-height:100vh; background:var(--bg); color:var(--text);
  font:500 16px/1.5 'Manrope',system-ui,sans-serif; overflow-x:hidden;
}
.glow{position:fixed;border-radius:50%;filter:blur(120px);opacity:.35;pointer-events:none;z-index:0}
.g1{width:480px;height:480px;background:var(--accent2);top:-160px;left:-120px;animation:drift 18s ease-in-out infinite alternate}
.g2{width:420px;height:420px;background:var(--accent);bottom:-180px;right:-100px;opacity:.28;animation:drift 22s ease-in-out infinite alternate-reverse}
@keyframes drift{to{transform:translate(60px,40px) scale(1.12)}}

.wrap{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.5rem;padding:2rem 1.25rem}

.hero{
  font:800 clamp(2.2rem,8vw,4.8rem)/1 'Unbounded',sans-serif; letter-spacing:-.03em; text-align:center;
  background:linear-gradient(100deg,#fff 20%,var(--accent) 55%,var(--accent2) 90%);
  background-size:200% 100%; -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 0 28px rgba(255,61,110,.35));
  animation:rise 1s var(--ease) both, shine 7s linear 1s infinite alternate;
}
@keyframes rise{from{opacity:0;transform:translateY(18px);filter:blur(10px)}}
@keyframes shine{to{background-position:100% 0}}

.card{
  width:100%;max-width:400px;display:flex;flex-direction:column;gap:1.1rem;
  background:linear-gradient(180deg,rgba(24,20,38,.8),rgba(14,12,22,.8));
  border:1px solid var(--line);border-radius:20px;padding:2rem;
  backdrop-filter:blur(14px);box-shadow:0 30px 80px -30px #000;
  animation:rise .9s var(--ease) .15s both;
}
.card.wide{max-width:760px}

label{display:flex;flex-direction:column;gap:.4rem;font-size:.85rem;color:var(--muted)}
input{
  width:100%;background:#0b0912;color:var(--text);font:inherit;
  border:1px solid var(--line);border-radius:12px;padding:.8rem 1rem;
  transition:border-color .25s,box-shadow .25s,background .25s;
}
input::placeholder{color:#4d4660}
input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(255,61,110,.15);background:#0e0b16}
.mono{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;letter-spacing:.04em}

button{
  font:600 1rem 'Manrope',sans-serif;color:#fff;cursor:pointer;border:0;border-radius:12px;padding:.85rem 1.2rem;
  background:linear-gradient(100deg,var(--accent),var(--accent2));background-size:140% 100%;
  box-shadow:0 10px 30px -10px rgba(255,61,110,.6);
  transition:transform .25s var(--ease),background-position .4s,box-shadow .25s;
}
button:hover{transform:translateY(-2px);background-position:100% 0;box-shadow:0 14px 34px -10px rgba(255,61,110,.75)}
button:active{transform:translateY(0)}
button:focus-visible,a:focus-visible{outline:2px solid #fff;outline-offset:3px}
button.ghost{background:transparent;border:1px solid var(--line);box-shadow:none;color:var(--muted)}
button.ghost:hover{color:var(--text);border-color:var(--accent)}
button.small{padding:.4rem .8rem;font-size:.82rem}

.alt{font-size:.88rem;color:var(--muted);text-align:center}
a{color:var(--text);text-decoration-color:var(--accent);text-underline-offset:3px;transition:color .2s}
a:hover{color:var(--accent)}
.welcome{font-size:1.15rem;text-align:center}
.msg{padding:.75rem 1rem;border-radius:12px;font-size:.9rem}
.msg.err{background:rgba(255,61,110,.1);border:1px solid rgba(255,61,110,.35);color:#ff9db6;animation:shake .4s}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

.row{display:flex;gap:.8rem;align-items:end;flex-wrap:wrap}
.row .grow{flex:1;min-width:160px}
.row input[type=number]{width:80px}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
table{width:100%;border-collapse:collapse;font-size:.9rem}
th,td{padding:.75rem 1rem;text-align:left;white-space:nowrap}
th{color:var(--muted);font-weight:600;border-bottom:1px solid var(--line)}
tr+tr td{border-top:1px solid #1a1628}
.empty{text-align:center;color:var(--muted);padding:1.5rem}
.pill{padding:.2rem .65rem;border-radius:99px;font-size:.78rem}
.pill.free{background:rgba(61,220,151,.12);color:var(--ok)}
.pill.used{background:rgba(138,131,157,.15);color:var(--muted)}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
