/* NEON ARENA license panel — neon gaming theme (matches the app) */
@font-face { font-family: 'Vazirmatn'; src: url('vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #07050f; --panel: rgba(24, 18, 48, .82); --panel2: #1d1640; --line: rgba(170, 140, 255, .18); --line2: rgba(190, 160, 255, .35);
  --text: #f6f3ff; --muted: #b3abd6; --dim: #7c74a3;
  --pink: #ff2bd6; --cyan: #00e5ff; --purple: #9b6bff; --green: #22f59a; --amber: #ffb020; --red: #ff3b5c; --lime: #b6ff3b;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Vazirmatn', Tahoma, sans-serif; background: var(--bg); color: var(--text); font-weight: 500; font-size: 15.5px; min-height: 100vh; line-height: 1.7; }
a { color: var(--cyan); text-decoration: none; }
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 85% 0%, rgba(255, 43, 214, .18), transparent 70%), radial-gradient(35% 30% at 0% 100%, rgba(0, 229, 255, .14), transparent 70%); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 16px 40px; }
.foot { text-align: center; color: var(--dim); font-size: 12px; padding: 18px; direction: ltr; }

/* header */
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 14, 42, .95), rgba(12, 8, 28, .85)); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand b { display: block; font-size: 18px; font-weight: 900; line-height: 1.3; }
.brand small { color: var(--muted); font-size: 12px; }
.logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 18px; direction: ltr;
  background: #0d0a1c; border: 2px solid var(--pink); box-shadow: 0 0 16px rgba(255, 43, 214, .5); color: var(--cyan); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; align-items: center; }
.nav { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; color: var(--muted); font-weight: 800; font-size: 14px;
  border: 1px solid transparent; background: transparent; cursor: pointer; font-family: inherit; }
.nav i { font-style: normal; }
.nav:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav.active { color: #fff; border-color: rgba(255, 43, 214, .5); background: linear-gradient(160deg, rgba(255, 43, 214, .28), rgba(0, 229, 255, .1)); box-shadow: 0 0 14px rgba(255, 43, 214, .25); }
.nav.exit { color: #ff8ea2; }
form.inline { display: inline; margin: 0; }

/* headings */
h1 { font-size: 26px; font-weight: 900; margin: 6px 0 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h1 .spacer { flex: 1; }
h2 { font-size: 18px; font-weight: 800; margin: 0 0 14px; color: #fff; }
.sub { color: var(--muted); font-size: 14px; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; position: relative; overflow: hidden; }
.stat b { display: block; font-size: 30px; font-weight: 900; line-height: 1.3; }
.stat span { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.stat::after { content: ''; position: absolute; left: -24px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--c, var(--pink)), transparent 70%); opacity: .35; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; white-space: nowrap; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--pink), var(--purple)); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(255, 43, 214, .4); }
.btn.cyan { background: linear-gradient(135deg, var(--cyan), #2f6bff); border-color: transparent; color: #031018; }
.btn.green { background: linear-gradient(135deg, #22f59a, #0fb37a); border-color: transparent; color: #02140c; }
.btn.amber { background: linear-gradient(135deg, #ffb020, #ff7a1a); border-color: transparent; color: #1a0d00; }
.btn.red { background: linear-gradient(135deg, #ff3b5c, #c0123a); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 11px; }
.btn.lg { height: 56px; font-size: 18px; padding: 0 26px; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* forms */
label { display: block; font-weight: 700; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { color: var(--dim); font-size: 12.5px; margin-top: 4px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(5, 3, 14, .6); color: var(--text);
  font-family: inherit; font-size: 16px; font-weight: 700; outline: none; }
textarea { height: auto; min-height: 90px; padding: 12px 14px; line-height: 1.8; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .15); }
select option { background: #171233; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 13px; border: 1.5px solid var(--line2); cursor: pointer; color: var(--text); }
.choice input { accent-color: var(--pink); width: 18px; height: 18px; }
.choice label:has(input:checked) { border-color: var(--pink); background: rgba(255, 43, 214, .15); }
.ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.mono { font-family: Consolas, 'Courier New', monospace; letter-spacing: .5px; }

/* tables */
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: right; padding: 11px 12px; font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, rgba(255, 43, 214, .5), rgba(155, 107, 255, .45)); }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: rgba(255, 255, 255, .03); }
tr.link { cursor: pointer; }
td.n { direction: ltr; text-align: left; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* badges, flash */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 800; background: rgba(255, 255, 255, .08); white-space: nowrap; }
.badge.green { background: rgba(34, 245, 154, .15); color: #7dffc6; }
.badge.amber { background: rgba(255, 176, 32, .17); color: #ffd07a; }
.badge.red { background: rgba(255, 59, 92, .18); color: #ff8ea2; }
.badge.cyan { background: rgba(0, 229, 255, .15); color: #7ff2ff; }
.badge.purple { background: rgba(155, 107, 255, .2); color: #c8b2ff; }
.flash { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 700; border: 1px solid rgba(34, 245, 154, .5); background: rgba(34, 245, 154, .1); }
.flash.err { border-color: rgba(255, 59, 92, .6); background: rgba(255, 59, 92, .12); }
.flash.warn { border-color: rgba(255, 176, 32, .6); background: rgba(255, 176, 32, .12); }
.callout { padding: 12px 14px; border-radius: 14px; background: rgba(0, 229, 255, .07); border: 1px solid rgba(0, 229, 255, .3); line-height: 1.9; margin-bottom: 14px; }
.callout.warn { background: rgba(255, 176, 32, .08); border-color: rgba(255, 176, 32, .4); }
.callout.err { background: rgba(255, 59, 92, .08); border-color: rgba(255, 59, 92, .4); }

/* license code / copy boxes */
.code-big { font-family: Consolas, monospace; font-size: 26px; font-weight: 900; letter-spacing: 2px; direction: ltr; color: var(--cyan); text-shadow: 0 0 14px rgba(0, 229, 255, .5); }
.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox textarea, .copybox input { flex: 1; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); }
.kv:first-child { border-top: 0; }
.kv span:first-child { color: var(--muted); font-weight: 700; }
.kv span:last-child { font-weight: 800; }

/* login */
.login { max-width: 420px; margin: 9vh auto 0; }
.login .logo { width: 76px; height: 76px; font-size: 28px; margin: 0 auto 12px; border-radius: 22px; }
.center { text-align: center; }
.req { list-style: none; padding: 0; margin: 0 0 14px; }
.req li { padding: 8px 0; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; }
.req li:first-child { border-top: 0; }

@media (max-width: 720px) { .top { padding: 10px 12px; } .nav { padding: 0 10px; height: 36px; font-size: 13px; } h1 { font-size: 22px; } }
