:root {
  --bg: hsl(232 32% 7%);
  --bg2: hsl(234 28% 11%);
  --glass: hsla(232 40% 18% / .55);
  --line: hsla(230 60% 80% / .10);
  --text: hsl(228 30% 94%);
  --muted: hsl(228 14% 64%);
  --pri: hsl(262 88% 66%);
  --pri2: hsl(196 92% 58%);
  --green: hsl(152 66% 52%);
  --amber: hsl(38 94% 60%);
  --red: hsl(354 82% 63%);
  --blue: hsl(212 90% 64%);
  --radius: 16px;
  --font: "Outfit", "Kantumruy Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, hsl(262 60% 18%) 0, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, hsl(196 70% 14%) 0, transparent 60%), var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.center { display: grid; place-items: center; padding: 24px; }
a { color: var(--pri2); text-decoration: none; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center-text { text-align: center; padding: 28px !important; }

/* animated background orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-orbs span { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .28; animation: float 18s ease-in-out infinite; }
.bg-orbs span:nth-child(1) { background: var(--pri); top: -120px; left: -80px; }
.bg-orbs span:nth-child(2) { background: var(--pri2); bottom: -160px; right: -60px; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { background: hsl(320 80% 60%); top: 40%; left: 55%; width: 300px; height: 300px; opacity: .14; animation-delay: -12s; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px hsla(240 60% 2% / .45), inset 0 1px 0 hsla(0 0% 100% / .05);
}

/* buttons */
.btn {
  --b: linear-gradient(135deg, var(--pri), var(--pri2));
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .62em 1.15em; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--b); color: #fff; font: 600 .95rem var(--font);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 6px 22px hsla(262 88% 60% / .35);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 30px hsla(262 88% 60% / .5); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: hsla(230 60% 90% / .06); box-shadow: none; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: hsla(230 60% 90% / .12); box-shadow: none; }
.btn-warn { background: linear-gradient(135deg, var(--amber), hsl(20 90% 58%)); box-shadow: 0 6px 22px hsla(38 94% 55% / .3); }
.btn-danger { background: linear-gradient(135deg, var(--red), hsl(330 75% 55%)); box-shadow: 0 6px 22px hsla(354 82% 55% / .3); }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-xs { padding: .25em .6em; font-size: .75rem; border-radius: 8px; }
.btn-lg { padding: .85em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.copied { background: linear-gradient(135deg, var(--green), hsl(170 70% 45%)); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 10; background: hsla(232 32% 7% / .6); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav > a:not(.btn) { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav nav > a:not(.btn):hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: .85rem; font-weight: 800;
  background: linear-gradient(135deg, var(--pri), var(--pri2)); box-shadow: 0 4px 18px hsla(262 88% 60% / .45); }
.inline { display: inline; margin: 0; }

/* landing */
.hero { text-align: center; padding: clamp(48px, 9vw, 110px) 20px 40px; max-width: 980px; margin: 0 auto; animation: rise .8s ease both; }
.eyebrow { display: inline-block; padding: .3em .9em; border-radius: 99px; border: 1px solid var(--line); color: var(--pri2); font-weight: 600; font-size: .85rem; background: hsla(196 92% 58% / .08); }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; margin-top: .5em; }
.grad { background: linear-gradient(120deg, var(--pri), var(--pri2) 60%, hsl(320 80% 68%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin: 0 auto 1.8em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-card { margin: 54px auto 0; padding: 28px; max-width: 760px; }
.wave { display: flex; align-items: center; gap: 5px; height: 90px; justify-content: center; }
.wave i { width: 6px; height: var(--h, 40%); border-radius: 4px; background: linear-gradient(var(--pri2), var(--pri));
  animation: eq 1.2s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.hero-stats b { display: block; font-size: 1.35rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.section { max-width: 1120px; margin: 0 auto; padding: 70px 20px 10px; }
.section > h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2em; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { padding: 26px; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-5px); border-color: hsla(262 88% 70% / .45); }
.card p { color: var(--muted); margin: 0; }
.ico { font-size: 1.8rem; margin-bottom: 10px; }
.plan { text-align: center; position: relative; }
.plan h3 { font-size: 1.8rem; margin-bottom: .1em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; color: var(--muted); }
.plan li { padding: 6px 0; border-top: 1px solid var(--line); }
.plan.featured { border-color: hsla(262 88% 70% / .6); box-shadow: 0 0 0 1px hsla(262 88% 70% / .3), 0 20px 60px hsla(262 88% 50% / .25); }
.tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: .2em .9em; border-radius: 99px; font-size: .78rem; font-weight: 700;
  background: linear-gradient(135deg, var(--pri), var(--pri2)); }
.contact { text-align: center; margin: 70px auto 0; padding: 44px 24px; max-width: 760px; }
.footer { text-align: center; color: var(--muted); padding: 50px 20px 30px; font-size: .9rem; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* login */
.login { width: min(420px, 100%); padding: 36px; animation: rise .5s ease both; }
.login h1 { font-size: 1.6rem; margin-top: 18px; }

/* forms */
.form { display: grid; gap: 14px; }
.form.row { display: flex; gap: 10px; margin-bottom: 14px; }
.grid-form { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: span 2; }
label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 500; }
input, select {
  width: 100%; padding: .7em .85em; border-radius: 10px; border: 1px solid var(--line);
  background: hsla(232 40% 6% / .55); color: var(--text); font: 500 .95rem var(--font); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px hsla(262 88% 66% / .22); }
input:disabled { opacity: .6; }

.alert { padding: .75em 1em; border-radius: 12px; background: hsla(212 90% 64% / .12); border: 1px solid hsla(212 90% 64% / .35); animation: rise .35s ease both; }
.alert-err { background: hsla(354 82% 63% / .12); border-color: hsla(354 82% 63% / .4); }

/* dashboard */
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px clamp(14px, 3vw, 32px) 60px; display: grid; gap: 20px; }
.page-title { font-size: 1.7rem; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back { color: var(--muted); font-size: .9rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 120px; height: 120px; border-radius: 50%; background: var(--pri); filter: blur(50px); opacity: .25; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; }
.stat b.sm { font-size: 1.05rem; padding-top: .5em; }
.s-green::after { background: var(--green); } .s-blue::after { background: var(--blue); }
.s-purple::after { background: hsl(290 80% 60%); } .s-amber::after { background: var(--amber); }
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.panel { padding: 22px; }
.panel h2 { font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }
.newkeys { border-color: hsla(152 66% 52% / .45); }
.keylist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.keylist li { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: hsla(232 40% 6% / .5); }
.keylist code { font-size: 1.05rem; color: var(--green); }
.filters { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.rowlink { cursor: pointer; transition: background .15s; }
tr.rowlink:hover { background: hsla(262 88% 66% / .07); }
.badge { display: inline-block; padding: .22em .7em; border-radius: 99px; font-size: .78rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.b-active { color: var(--green); background: hsla(152 66% 52% / .12); border-color: hsla(152 66% 52% / .3); }
.b-unused { color: var(--blue); background: hsla(212 90% 64% / .12); border-color: hsla(212 90% 64% / .3); }
.b-expired { color: var(--amber); background: hsla(38 94% 60% / .12); border-color: hsla(38 94% 60% / .3); }
.b-revoked { color: var(--red); background: hsla(354 82% 63% / .12); border-color: hsla(354 82% 63% / .3); }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.activity li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: hsla(232 40% 6% / .35); font-size: .86rem; flex-wrap: wrap; }
.activity time { margin-left: auto; color: var(--muted); font-size: .78rem; }
.act { padding: .1em .55em; border-radius: 6px; font-size: .74rem; font-weight: 600; background: hsla(230 60% 90% / .08); }
.act-activate, .act-create, .act-restore, .act-extend { color: var(--green); }
.act-verify, .act-admin, .act-update { color: var(--blue); }
.act-revoke, .act-delete, .act-remove, .act-reset { color: var(--red); }
.act-deactivate { color: var(--amber); }

@media (max-width: 860px) {
  .cols, .grid-form { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .filters { grid-template-columns: 1fr; }
  .nav nav > a:not(.btn) { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
