@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg:      #050508;
  --surface: #0E0E14;
  --surface2:#141420;
  --border:  rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.14);
  --text:    #E8E8F0;
  --muted:   #6A6A7C;
  --accent:  #5BA4FF;
  --accent2: #8B6FFF;
  --glow:    rgba(91,164,255,.25);
  --ok:      #3DDF8F;
  --danger:  #FF7B7B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(91,164,255,.10) 0%, transparent 65%);
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
header.top {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(22px) saturate(160%);
}
header.top .inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.brand b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.brand span { display: block; font-size: 9px; letter-spacing: .18em; color: var(--muted); font-weight: 500; }
header.top nav { display: flex; align-items: center; gap: 4px; }
header.top nav a {
  color: var(--muted); font-size: 13px; font-weight: 500;
  padding: 8px 13px; border-radius: 8px; text-decoration: none;
  transition: color .2s, background .2s;
}
header.top nav a:hover { color: #fff; background: rgba(255,255,255,.05); }

/* layout */
main { padding: 46px 0 90px; position: relative; z-index: 1; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 6px; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #fff; margin-bottom: 18px; }
.muted { color: var(--muted); font-size: 13px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 16px;
  position: relative;
}
.card.narrow { max-width: 440px; margin: 56px auto; }
.card.narrow h2 { margin-bottom: 18px; }

/* buttons */
button {
  font-family: inherit; cursor: pointer; border: none; border-radius: 10px;
  font-weight: 700; font-size: 13px; height: 42px; padding: 0 20px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
button:disabled { opacity: .5; cursor: default; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(255,255,255,.15); }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); }
.btn-danger { background: transparent; border: 1px solid rgba(255,123,123,.35); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(255,123,123,.09); }
.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; border-radius: 10px; text-decoration: none;
}
.btn-primary:hover, .btn-ghost:hover, .btn-danger:hover { text-decoration: none; }
.btn-mini { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-full { width: 100%; height: 48px; font-size: 14px; }

/* inputs */
input, select {
  font-family: inherit; width: 100%; height: 46px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border2);
  border-radius: 11px; padding: 0 15px;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: #4A4A58; }
input:focus { border-color: var(--accent); background: rgba(91,164,255,.04); box-shadow: 0 0 0 4px rgba(91,164,255,.10); }
.remember {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted); font-weight: 500;
  margin: 2px 0 18px; cursor: pointer; user-select: none;
}
.remember input { width: 16px !important; height: 16px !important; accent-color: var(--accent); cursor: pointer; padding: 0; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}

.error { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 18px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 16px; text-align: center; }

/* tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 22px; padding: 5px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; }
.tabs button { flex: 1; height: 40px; background: transparent; color: var(--muted); border: none; }
.tabs button:hover:not(.active) { color: var(--text); }
.tabs button.active { background: #fff; color: #000; }

/* license key */
.key-box {
  font-family: 'Consolas', 'SFMono-Regular', monospace;
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent); background: rgba(91,164,255,.05);
  border: 1px dashed rgba(91,164,255,.35);
  border-radius: 14px; padding: 20px; text-align: center; word-break: break-all;
}

/* stats */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; padding: 15px 16px; }
.stat .k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 15px; font-weight: 700; margin-top: 5px; color: #fff; word-break: break-all; }

/* badges */
.badge { display: inline-block; padding: 4px 11px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.free { background: rgba(91,164,255,.1); color: var(--accent); border: 1px solid rgba(91,164,255,.28); }
.badge.active { background: rgba(61,223,143,.1); color: var(--ok); border: 1px solid rgba(61,223,143,.28); }
.badge.banned { background: rgba(255,123,123,.1); color: var(--danger); border: 1px solid rgba(255,123,123,.28); }

/* table */
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
td.mono { font-family: 'Consolas', monospace; font-weight: 700; white-space: nowrap; color: #fff; }
td.hwid { font-family: 'Consolas', monospace; color: var(--muted); font-size: 11px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 150px; }
.empty { text-align: center; color: var(--muted); padding: 34px 0; }

/* toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  background: var(--surface); border: 1px solid rgba(91,164,255,.4);
  color: #fff; padding: 13px 20px; border-radius: 12px; font-size: 13px;
  box-shadow: 0 16px 50px rgba(0,0,0,.7), 0 0 30px rgba(91,164,255,.12);
  opacity: 0; transform: translateY(12px); transition: .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* admin views */
.view { display: none; }
.view.show { display: block; }

@media (max-width: 720px) {
  h1 { font-size: 24px; }
  th.hide-m, td.hide-m { display: none; }
  .card { padding: 22px; }
}
