/* FzMods key panel — same brand as www.fzmods.com, laid out as an app: sidebar + views */
:root {
  --bg: #060607; --card: rgba(255, 255, 255, .025); --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .12);
  --brand: #f0282e; --brand-rgb: 240, 40, 46; --bright: #ff6f69; --green: #4ade80; --green-rgb: 74, 222, 128;
  --discord: #5865f2; --discord-rgb: 88, 101, 242; --yellow: #fde68a;
  --text: #f5f3f4; --muted: #8d888c; --dim: #6f6a6e;
  --f-body: Inter, system-ui, sans-serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace; --f-display: Unbounded, Inter, sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1); --soft: cubic-bezier(.33, 1, .68, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; border: 0; background: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-booting .app, .is-booting .gate { opacity: 0; }

.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-glow { position: absolute; inset: 0; background: radial-gradient(50% 40% at 60% -8%, rgba(var(--brand-rgb), .22), transparent 70%), radial-gradient(30% 30% at 0% 100%, rgba(var(--brand-rgb), .08), transparent 70%); }
.bg-dots { position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 20%, #000, transparent 75%); }

.eyebrow { display: inline-flex; align-items: center; gap: 2px; font: 500 11px var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { font: normal 900 13px var(--f-display); letter-spacing: 0; color: #fff; }
.eyebrow i + i { color: rgba(255, 255, 255, .5); }
.eyebrow i + i + i { color: rgba(255, 255, 255, .2); margin-right: 10px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 14px;
  transition: translate .7s var(--ease), box-shadow .5s var(--soft), background-color .4s, opacity .3s; }
.btn .ic { width: 17px; height: 17px; }
.btn-brand { color: #fff; background: linear-gradient(180deg, var(--bright), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 16px 34px -14px rgba(var(--brand-rgb), .95); }
.btn-brand:hover { translate: 0 -2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 22px 44px -14px rgba(var(--brand-rgb), 1); }
.btn-discord { color: #fff; background: linear-gradient(180deg, #7983f5, var(--discord)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 34px -14px rgba(var(--discord-rgb), .95); }
.btn-discord:hover { translate: 0 -2px; }
.btn-ghost { color: #c8c3c6; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.spin { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; opacity: 0; animation: spin .8s linear infinite; }
.is-loading { pointer-events: none; }
.is-loading .spin { opacity: 1; }
.is-loading .btn-t { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* gate */
.gate { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; transition: opacity .6s; }
.gate-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 30px 30px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); box-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -50px rgba(var(--brand-rgb), .55);
  animation: rise 1.2s var(--ease) both; }
.gate-logo { filter: drop-shadow(0 14px 30px rgba(var(--brand-rgb), .55)); }
.gate h1 { font: 700 30px/1.1 var(--f-display); text-transform: uppercase; }
.gate p { max-width: 330px; font-size: 14px; color: var(--muted); }
.gate .btn { width: 100%; margin-top: 6px; }
.gate-err { color: #ff8a8a; font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } }

/* app layout */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; transition: opacity .6s; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .005)); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px; }
.brand img { filter: drop-shadow(0 8px 18px rgba(var(--brand-rgb), .5)); }
.brand b { display: block; font: 900 15px var(--f-display); letter-spacing: .02em; }
.brand small { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.me { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 10px; align-items: center; padding: 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.me img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #232428; box-shadow: 0 0 0 2px rgba(var(--discord-rgb), .6); }
.me-t { min-width: 0; }
.me-t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .03em;
  color: #fff; background: linear-gradient(180deg, var(--bright), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -6px rgba(var(--brand-rgb), .9); }
.role[data-level="staff"] { color: #aab1ff; background: rgba(var(--discord-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--discord-rgb), .45); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-h { padding: 6px 12px; font: 600 10.5px var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 13px; font-weight: 500; color: #b4afb2;
  transition: color .3s, background-color .3s, box-shadow .3s; }
.nav a .ic { width: 17px; height: 17px; }
.nav a em { margin-left: auto; font-style: normal; font: 600 11.5px var(--f-mono); color: var(--muted); }
.nav a em.on { color: var(--green); }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav a.is-on { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line2); }
.nav a.is-on::before { content: ''; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); box-shadow: 0 0 14px rgba(var(--brand-rgb), .9); }
.side-foot { margin-top: auto; display: grid; gap: 3px; }
.side-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 13px; color: var(--muted); transition: color .3s, background-color .3s; }
.side-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.menu-btn { display: none; }

.main { min-width: 0; padding: 34px clamp(16px, 4vw, 48px) 60px; }
.view { max-width: 1120px; animation: view-in .7s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
.vh { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.vh h1 { font: 700 36px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.vh p { font-size: 14.5px; color: var(--muted); }

/* cards */
.card { position: relative; margin-top: 14px; padding: 20px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); box-shadow: inset 0 0 0 1px var(--line); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h small { font-size: 12px; color: var(--dim); }
.label { display: inline-flex; align-items: center; gap: 10px; font: 600 11px var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: #a8a3a6; }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .3s; }
.card-more .ic { width: 14px; height: 14px; }
.card-more:hover { color: #fff; }
.empty { padding: 26px 12px; border-radius: 14px; text-align: center; font-size: 13px; color: var(--dim); border: 1px dashed rgba(255, 255, 255, .1); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); box-shadow: inset 0 0 0 1px var(--line); --c: var(--brand-rgb); }
.stat::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--c), .16), transparent); }
.stat-g { --c: var(--green-rgb); }
.stat-b { --c: var(--discord-rgb); }
.stat-y { --c: 253, 230, 138; }
.stat small { display: block; font-size: 12.5px; color: #a8a3a6; }
.stat b { display: block; margin-top: 12px; font: 700 34px/1 var(--f-display); }
.stat-g b { color: var(--green); }
.stat span { display: block; margin-top: 8px; font-size: 12px; color: var(--dim); }
.stat-pulse { position: absolute; right: 18px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(var(--green-rgb), .9); }
.stat-pulse::after, .live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s var(--soft) infinite; }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(var(--green-rgb), .9); }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }

/* live */
.live { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 8px; }
.live > li, .keys > li { min-width: 0; }
.lv { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 15px; opacity: .55; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: opacity .5s, box-shadow .4s; animation: line-in .7s var(--ease) both; }
.lv.is-on { opacity: 1; background: linear-gradient(90deg, rgba(var(--green-rgb), .07), rgba(255, 255, 255, .02) 55%); box-shadow: inset 0 0 0 1px rgba(var(--green-rgb), .2); }
.av { position: relative; width: 38px; height: 38px; flex: none; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #232428; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.is-on .av img { box-shadow: 0 0 0 2px rgba(var(--green-rgb), .65), 0 0 18px -2px rgba(var(--green-rgb), .55); }
.av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #5f5a5e; box-shadow: 0 0 0 2.5px #0b0b0d; }
.is-on .av i { background: var(--green); }
.lv-t { flex: 1; min-width: 0; }
.lv-t b { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-t em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.lv-t small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
code { font-family: var(--f-mono); font-size: 11.5px; color: var(--bright); }
.cc { display: inline-block; padding: 0 5px; border-radius: 5px; font: 600 10.5px/16px var(--f-mono); color: #c8c3c6; background: rgba(255, 255, 255, .07); }
.lv-time { display: flex; flex-direction: column; align-items: flex-end; flex: none; min-width: 64px; }
.lv-time b { font: 600 12.5px var(--f-mono); font-variant-numeric: tabular-nums; }
.is-on .lv-time b { color: var(--green); }
.lv-time small { font-size: 10.5px; color: var(--dim); }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }

/* row actions */
.acts-i { display: flex; gap: 2px; flex: none; }
.a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--muted); transition: color .3s, background-color .3s, transform .5s var(--ease); }
.a .ic { width: 14px; height: 14px; }
.a:hover { color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.a[data-a="pause"]:hover { color: var(--yellow); background: rgba(253, 230, 138, .1); }
.a[data-a="resume"] { color: var(--green); }
.a[data-a="resume"]:hover { background: rgba(var(--green-rgb), .12); }
.a[data-a="kick"]:hover, .a[data-a="revoke"]:hover, .k.confirm .a[data-a="revoke"] { color: #ff8a8a; background: rgba(255, 90, 90, .1); }
.a:disabled { opacity: .4; pointer-events: none; }

/* keys */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; color: var(--dim); }
.search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 14px; outline: 0; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .4s; }
.search input:focus { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .75), 0 0 0 4px rgba(var(--brand-rgb), .12); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: #b4afb2; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line2); transition: color .3s, background-color .3s, box-shadow .3s; }
.chip em { font: normal 600 11px var(--f-mono); color: var(--dim); }
.chip:hover { color: #fff; }
.chip.is-on { color: #fff; background: linear-gradient(180deg, var(--bright), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px -10px rgba(var(--brand-rgb), .9); }
.chip.is-on em { color: rgba(255, 255, 255, .75); }
.keys { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.k { display: flex; align-items: center; gap: 12px; padding: 11px 11px 11px 12px; border-radius: 15px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .4s; animation: line-in .6s var(--ease) both; }
.k.is-live { box-shadow: inset 0 0 0 1px rgba(var(--green-rgb), .22); background: linear-gradient(90deg, rgba(var(--green-rgb), .06), rgba(255, 255, 255, .015) 60%); }
.k.confirm { box-shadow: inset 0 0 0 1px rgba(255, 98, 98, .6); }
.k-ic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; color: var(--bright); background: rgba(var(--brand-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3); }
.k-ic img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; }
.k-live { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px #0b0b0d, 0 0 12px rgba(var(--green-rgb), .8); }
.k-t { flex: 1; min-width: 0; }
.k-t b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-t code { margin-right: 6px; }
.k-t small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-t small i { font-style: normal; color: #a8a3a6; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; flex: none; border-radius: 99px; font-size: 11px; font-weight: 600; color: #c8c3c6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.st-active { color: var(--green); box-shadow: inset 0 0 0 1px rgba(var(--green-rgb), .3); }
.pill.st-unused { color: #aab1ff; box-shadow: inset 0 0 0 1px rgba(var(--discord-rgb), .4); }
.pill.st-paused { color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(253, 230, 138, .3); }
.pill.st-revoked, .pill.st-expired { color: #ff8a8a; box-shadow: inset 0 0 0 1px rgba(255, 98, 98, .3); }
.pill.on { color: #052e16; background: var(--green); box-shadow: 0 6px 16px -6px rgba(var(--green-rgb), .8); font-weight: 700; }
.pill.on i { background: #052e16; animation: blink 1.6s ease-in-out infinite; }
.edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 2px; padding: 11px 12px; border-radius: 15px;
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .09), rgba(var(--brand-rgb), .03)); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .35); animation: line-in .5s var(--ease) both; }
.edit > .ic { color: var(--bright); }
.edit > span { font-size: 12.5px; font-weight: 600; }
.date { height: 34px; padding: 0 12px; border-radius: 99px; outline: 0; font: 600 13px var(--f-body); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .6); color-scheme: dark; }
.sm { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #c8c3c6; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: color .3s, background-color .3s; }
.sm .ic { width: 14px; height: 14px; }
.sm:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.sm-brand { margin-left: auto; color: #fff; background: linear-gradient(180deg, var(--bright), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.sm-x { width: 30px; justify-content: center; padding: 0; }

/* create */
.mk { display: grid; gap: 14px; }
.f-l, .f span { font-size: 12px; color: var(--muted); }
.plans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.plan { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #c8c3c6; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: color .4s, background-color .4s, box-shadow .4s; }
.plan .ic { width: 14px; height: 14px; }
.plan:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.plan.is-on { color: #fff; background: linear-gradient(180deg, var(--bright), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px -10px rgba(var(--brand-rgb), .9); }
.plans .date, .plans .days { height: 40px; }
.days { width: 100px; padding: 0 14px; border-radius: 99px; outline: 0; font-weight: 600; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .6); }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f input { height: 46px; padding: 0 14px; border-radius: 13px; outline: 0; font-size: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transition: box-shadow .4s var(--soft); }
.f input:focus { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .75), 0 0 0 4px rgba(var(--brand-rgb), .12); }
.f input::placeholder { color: #5f5a5e; }
.f input:disabled { opacity: .4; }
.mk .btn-brand { margin-top: 4px; }
.made { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.warn { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--yellow); }
.made ul { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.made li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: rgba(var(--green-rgb), .05); box-shadow: inset 0 0 0 1px rgba(var(--green-rgb), .25); animation: line-in .7s var(--ease) both; }
.made li code { font-size: 13.5px; font-weight: 600; color: #fff; word-break: break-all; }
.made li small { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* history */
.acts { list-style: none; display: grid; gap: 2px; }
.act { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.act:last-child { border-bottom: 0; }
.act-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, .04); }
.act-ic .ic { width: 13px; height: 13px; }
.act-ic.g { color: var(--green); background: rgba(var(--green-rgb), .1); }
.act-ic.y { color: var(--yellow); background: rgba(253, 230, 138, .08); }
.act-ic.r { color: #ff8a8a; background: rgba(255, 90, 90, .1); }
.act-t b { font-size: 13px; font-weight: 600; }
.act-t small { margin-left: 6px; font-size: 12px; color: var(--dim); }
.act time { font: 500 11.5px var(--f-mono); color: var(--dim); white-space: nowrap; }

/* ── licenses table (KeyAuth style) ── */
.vh-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
.vh-row > div { display: flex; flex-direction: column; gap: 10px; }
.btn-red { color: #fff; background: linear-gradient(180deg, #ff6b6b, #e5383b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -14px rgba(229, 56, 59, .9); }
.table { margin-top: 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.thead, .tr { display: grid; grid-template-columns: 34px minmax(0, 1.5fr) minmax(0, .9fr) 132px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 0 14px; }
.thead { height: 44px; border-bottom: 1px solid var(--line); font: 600 10.5px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.tbody { list-style: none; }
.tr { min-height: 64px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .045); transition: background-color .3s; animation: line-in .5s var(--ease) both; }
.tr:last-child { border-bottom: 0; }
.tr:hover { background: rgba(255, 255, 255, .025); }
.tr.is-sel { background: rgba(var(--brand-rgb), .07); }
.tr.is-live { background: linear-gradient(90deg, rgba(var(--green-rgb), .06), transparent 60%); }
.ck { position: relative; display: grid; place-items: center; width: 22px; height: 22px; cursor: pointer; }
.ck input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ck i { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: background-color .25s, box-shadow .25s; }
.ck input:checked + i { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: none; }
.ck input:indeterminate + i { background: var(--brand) linear-gradient(#fff, #fff) center / 9px 2px no-repeat; box-shadow: none; }
.ck input:focus-visible + i { box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .4); }
.kc { min-width: 0; }
.kc-k { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kc-k code { font: 600 13px var(--f-mono); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-k code.hint { color: var(--bright); }
.cp { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; color: var(--dim); transition: color .3s, background-color .3s; }
.cp .ic { width: 13px; height: 13px; }
.cp:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.kc small { display: block; margin-top: 1px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc small b { font-weight: 500; color: #b4afb2; }
.who { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; color: #c8c3c6; }
.who img { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover; background: #232428; }
.who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who.none { color: var(--dim); }
.stc { display: flex; flex-wrap: wrap; gap: 5px; }
.tm { min-width: 0; font-size: 12.5px; color: #c8c3c6; }
.tm small { display: block; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); box-shadow: inset 0 0 0 1px transparent; transition: color .3s, background-color .3s, box-shadow .3s; }
.more:hover, .more.is-open { color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line2); }
.more .ic { width: 18px; height: 18px; }
.tr .edit { grid-column: 1 / -1; margin: 6px 0 2px; }
.sm-red { color: #ff8a8a; }
.sm-red:hover { color: #fff; background: rgba(229, 56, 59, .5); }

/* row menu */
.menu { position: fixed; z-index: 40; min-width: 210px; padding: 6px; border-radius: 14px; background: rgba(18, 18, 21, .98); box-shadow: inset 0 0 0 1px var(--line2), 0 24px 60px -16px #000;
  animation: menu-in .35s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 13px; font-weight: 500; color: #d6d1d4; text-align: left; transition: background-color .2s, color .2s; }
.menu button .ic { width: 15px; height: 15px; color: var(--muted); }
.menu button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.menu button:hover .ic { color: #fff; }
.menu button.red { color: #ff8a8a; }
.menu button.red .ic { color: #ff8a8a; }
.menu button.red:hover { background: rgba(229, 56, 59, .16); }
.menu hr { height: 1px; margin: 5px 4px; border: 0; background: var(--line); }

/* bulk bar */
.bulk { position: fixed; z-index: 35; left: 50%; bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 8px 8px 16px; translate: -50% 0; border-radius: 16px;
  background: rgba(18, 18, 21, .97); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .4), 0 24px 60px -16px #000; animation: toast-in .5s var(--ease) both; }
.bulk b { margin-right: 6px; font-size: 13px; }

/* popups */
.modal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 20px 14px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .35s both; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 22px 20px; border-radius: 22px;
  background: linear-gradient(180deg, #151518, #0e0e10); box-shadow: inset 0 0 0 1px var(--line2), 0 50px 120px -30px #000, 0 0 120px -60px rgba(var(--brand-rgb), .7); animation: rise .6s var(--ease) both; }
.modal-sm { max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 22px 22px; }
.modal-sm h2 { font: 700 18px var(--f-display); text-transform: uppercase; }
.modal-sm p { font-size: 13.5px; color: var(--muted); }
.modal-sm .made-act { width: 100%; }
.modal-sm .made-act .btn { flex: 1; }
.warn-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #ff8a8a; background: rgba(229, 56, 59, .12); box-shadow: inset 0 0 0 1px rgba(229, 56, 59, .35); }
.warn-ic .ic { width: 22px; height: 22px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-h h2 { font: 700 20px var(--f-display); text-transform: uppercase; }
.seg, .case { display: inline-flex; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.seg button, .case button { height: 36px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #b4afb2; transition: color .3s, background-color .3s, box-shadow .3s; }
.case button { height: 30px; padding: 0 12px; font-family: var(--f-mono); }
.seg button:hover, .case button:hover { color: #fff; }
.seg button.is-on, .case button.is-on { color: #fff; background: linear-gradient(180deg, var(--bright), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px -8px rgba(var(--brand-rgb), .9); }
.fmt-box { display: grid; gap: 8px; }
.fmt-box[data-fmt-box="pattern"] { grid-template-columns: 1fr auto; align-items: center; }
.fmt-box[data-fmt-box="pattern"] .hint { grid-column: 1 / -1; }
.fmt-box .f input { font-family: var(--f-mono); font-weight: 600; letter-spacing: .04em; }
.hint { font-size: 12px; color: var(--dim); }
.hint.bad { color: #ff8a8a; }
.hint b { color: #fff; }
.preview { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: rgba(var(--brand-rgb), .06); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .25); }
.preview small { font: 600 10.5px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.preview code { font: 600 15px var(--f-mono); color: #fff; word-break: break-all; }
.quota { text-align: center; font-size: 12px; color: var(--dim); }
.ok-t { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ok-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #052e16; background: var(--green); }
.ok-ic .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.made-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.made-act .btn { height: 42px; }
.made-act .btn-brand { margin-left: auto; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 50; display: grid; gap: 8px; translate: -50% 0; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 14px; font-size: 13px; background: rgba(20, 20, 23, .96); box-shadow: inset 0 0 0 1px var(--line2), 0 20px 50px -20px #000;
  animation: toast-in .6s var(--ease) both; }
.toast .ic { width: 16px; height: 16px; color: var(--green); }
.toast.err .ic { color: #ff8a8a; }
.toast.out { animation: toast-out .4s var(--soft) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thead { display: none; }
  .tr { grid-template-columns: 34px minmax(0, 1fr) auto 44px; grid-template-areas: 'c k s m' 'c w t m'; row-gap: 6px; }
  .tr > .ck { grid-area: c; } .tr > .kc { grid-area: k; } .tr > .stc { grid-area: s; justify-content: flex-end; }
  .tr > .who { grid-area: w; } .tr > .tm { grid-area: t; text-align: right; } .tr > .more { grid-area: m; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: 0; top: 0; width: 280px; translate: -100% 0; transition: translate .6s var(--ease); background: #0b0b0d; }
  .side.is-open { translate: 0 0; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); }
  .menu-btn { position: fixed; z-index: 31; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(20, 20, 23, .9); box-shadow: inset 0 0 0 1px var(--line2); }
  .main { padding-top: 70px; }
  .vh h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .row, .row-2 { grid-template-columns: 1fr; }
  .live { grid-template-columns: 1fr; }
  .pill:not(.on) { display: none; }
}
