@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/rajdhani-v17-latin_latin-ext-300.woff2') format('woff2');
  font-weight: 300;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/rajdhani-v17-latin_latin-ext-regular.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/rajdhani-v17-latin_latin-ext-500.woff2') format('woff2');
  font-weight: 500;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/rajdhani-v17-latin_latin-ext-600.woff2') format('woff2');
  font-weight: 600;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/rajdhani-v17-latin_latin-ext-700.woff2') format('woff2');
  font-weight: 700;
}
@font-face {
  font-family: 'Share Tech Mono';
  src: url('fonts/share-tech-mono-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
}

:root {
  --blue:   #0a84ff;
  --glass:  rgba(5, 15, 35, 0.65);
  --border: rgba(10, 132, 255, 0.2);
  --text:   #e8f4ff;
  --muted:  rgba(180, 210, 255, 0.5);
  --ok:     #00e5a0;
  --err:    #ff4d6d;
  --warn:   #f59e0b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: #010508;
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
}

/* ── Background layers ── */
.bg {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 20%, #071530 0%, #020810 60%, #010508 100%);
  z-index: 0;
}
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); opacity: .22;
  pointer-events: none; z-index: 0;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, #0a56cc, transparent 70%); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, #0a84ff, transparent 70%); bottom: -80px; right: -60px; animation-duration: 18s; animation-delay: -6s; }
@keyframes orb-drift { 0% { transform: translate(0,0) } 100% { transform: translate(25px,20px) } }

.grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(10,132,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,132,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1; pointer-events: none;
}

.wrap { position: relative; z-index: 10; }

/* ── Navbar ── */
.navbar {
  position: relative; z-index: 100;
  height: 50px; display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(2, 8, 16, .8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.navbar-brand {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px; color: var(--muted);
  letter-spacing: .2em; text-transform: uppercase;
}
.navbar-links { display: flex; gap: 6px; align-items: center; }
.nav-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: .12em;
  padding: 5px 14px; border-radius: 6px;
  text-decoration: none; transition: all .2s;
  cursor: pointer; border: 1px solid; background: none;
}
.nav-btn-blue  { color: var(--blue);  border-color: rgba(10,132,255,.3); }
.nav-btn-blue:hover  { background: rgba(10,132,255,.12); border-color: rgba(10,132,255,.6); }
.nav-btn-amber { color: #f5c26b; border-color: rgba(245,158,11,.3); }
.nav-btn-amber:hover { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.6); }
.nav-btn-red   { color: #ff7a92; border-color: rgba(255,77,109,.3); }
.nav-btn-red:hover   { background: rgba(255,77,109,.12); border-color: rgba(255,77,109,.6); }
.nav-user {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--blue);
  letter-spacing: .1em; padding: 0 8px;
}

/* ── Page layout ── */
.page { padding: 32px 36px 48px; max-width: 1500px; margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  overflow: hidden; margin-bottom: 24px;
}
.card-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--blue);
  letter-spacing: .2em; text-transform: uppercase;
}
.card-body { padding: 20px; }

/* ── Section separators ── */
.sect {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: rgba(10,132,255,.5);
  letter-spacing: .25em; text-transform: uppercase;
  margin: 28px 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.sect::after { content: ''; flex: 1; height: 1px; background: rgba(10,132,255,.1); }

/* ── Stat grid ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.stat-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  backdrop-filter: blur(12px); transition: border-color .2s;
}
.stat-card:hover { border-color: rgba(10,132,255,.5); }
.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px; color: var(--muted);
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px;
}
.stat-val { font-size: 36px; font-weight: 700; line-height: 1; }
.stat-val.blue  { color: var(--blue);  text-shadow: 0 0 16px rgba(10,132,255,.4); }
.stat-val.green { color: var(--ok);    text-shadow: 0 0 14px rgba(0,229,160,.3); }
.stat-val.red   { color: var(--err); }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(10,132,255,.08); }
th {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px; color: rgba(10,132,255,.5);
  letter-spacing: .2em; text-transform: uppercase;
  background: rgba(10,132,255,.04);
}
tr:hover td { background: rgba(10,132,255,.04); }
td { font-size: 13px; font-weight: 500; }

/* ── Badges ── */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 5px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: .08em; font-weight: 600;
}
.badge-green { background: rgba(0,229,160,.1);   border: 1px solid rgba(0,229,160,.3);   color: var(--ok); }
.badge-red   { background: rgba(255,77,109,.1);  border: 1px solid rgba(255,77,109,.3);  color: var(--err); }
.badge-blue  { background: rgba(10,132,255,.1);  border: 1px solid rgba(10,132,255,.3);  color: var(--blue); }
.badge-warn  { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.3);  color: var(--warn); }
.badge-muted { background: rgba(180,210,255,.06); border: 1px solid rgba(180,210,255,.15); color: var(--muted); }

/* ── Buttons ── */
.btn {
  padding: 5px 12px; border: 1px solid; border-radius: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: .1em;
  cursor: pointer; transition: all .2s;
  background: none; white-space: nowrap;
}
.btn-green { color: var(--ok);   border-color: rgba(0,229,160,.3); }
.btn-green:hover { background: rgba(0,229,160,.12);  border-color: rgba(0,229,160,.6); }
.btn-red   { color: var(--err);  border-color: rgba(255,77,109,.3); }
.btn-red:hover   { background: rgba(255,77,109,.12); border-color: rgba(255,77,109,.6); }
.btn-blue  { color: var(--blue); border-color: rgba(10,132,255,.3); }
.btn-blue:hover  { background: rgba(10,132,255,.12); border-color: rgba(10,132,255,.6); }
.btn-warn  { color: var(--warn); border-color: rgba(245,158,11,.3); }
.btn-warn:hover  { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.6); }
.btn-lg { padding: 11px 24px; font-size: 12px; }

/* ── Full-width primary action button ── */
.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #0a5dcc, #0a84ff 50%, #0aa8ff);
  border: none; border-radius: 10px;
  color: #fff; font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(10,132,255,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(10,132,255,.5); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 8px;
}
.form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }

input[type=text], input[type=password], input[type=number], select {
  padding: 10px 14px;
  background: rgba(10,132,255,.06);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 8px; color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 500;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
input[type=text]:focus, input[type=password]:focus,
input[type=number]:focus, select:focus {
  border-color: rgba(10,132,255,.6);
  box-shadow: 0 0 0 3px rgba(10,132,255,.1);
}
input::placeholder { color: rgba(180,210,255,.25); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a84ff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select option { background: #071530; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }

/* ── Alerts ── */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: .05em;
  margin-bottom: 20px;
  animation: fade-in .25s ease;
}
.alert-ok   { background: rgba(0,229,160,.08);  border: 1px solid rgba(0,229,160,.3);   color: var(--ok); }
.alert-err  { background: rgba(255,77,109,.08); border: 1px solid rgba(255,77,109,.3);  color: #ff7a92; }
.alert-info { background: rgba(10,132,255,.08); border: 1px solid rgba(10,132,255,.25); color: rgba(180,210,255,.9); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }

/* ── HWID ── */
.hwid {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--muted);
  max-width: 140px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; vertical-align: middle;
}

/* ── License colors ── */
.lic-ok   { color: var(--ok);   font-size: 12px; }
.lic-warn { color: var(--warn); font-size: 12px; }
.lic-exp  { color: var(--err);  font-size: 12px; font-weight: 600; }
.lic-none { color: var(--muted); font-size: 12px; }
.lic-sub  { font-size: 11px; color: var(--muted); }
.lic-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(10,132,255,.2); border-radius: 2px; }

/* ── Pagination ── */
.pag { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.pag a {
  padding: 6px 14px;
  background: rgba(10,132,255,.06);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 6px; text-decoration: none;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: .1em; transition: all .2s;
}
.pag a:hover, .pag a.active { background: rgba(10,132,255,.15); border-color: rgba(10,132,255,.5); color: var(--blue); }

/* ── Welcome panel (dashboard) ── */
.welcome-panel {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 14px; backdrop-filter: blur(16px);
  padding: 28px 32px; text-align: center; margin-bottom: 24px;
  transition: border-color .2s;
}
.welcome-panel:hover { border-color: rgba(10,132,255,.35); }
.welcome-panel h2 { font-size: 22px; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; }
.welcome-panel p { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: .1em; }

/* ── 2FA setup page ── */
.twofa-wrap {
  position: relative; z-index: 10;
  max-width: 560px; margin: 48px auto;
  padding: 0 16px 48px;
}
.twofa-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; backdrop-filter: blur(20px);
  overflow: hidden;
}
.twofa-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.twofa-header h1 {
  font-size: 18px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 4px;
}
.twofa-header p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: .15em;
}
.twofa-step {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(10,132,255,.08);
}
.twofa-step:last-of-type { border-bottom: none; }
.twofa-step-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(10,132,255,.15);
  border: 1px solid rgba(10,132,255,.4);
  color: var(--blue);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.twofa-step-header h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--blue);
  letter-spacing: .15em; text-transform: uppercase;
}
.app-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px;
}
.app-list li {
  font-size: 13px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.app-list li::before {
  content: '▸'; color: var(--blue); font-size: 10px;
}
.qr-block {
  display: flex; justify-content: center; margin: 16px 0 12px;
}
.qr-frame {
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: 0 0 24px rgba(10,132,255,.15);
  display: inline-block;
  line-height: 0;
}
.qr-frame img { width: 180px; height: 180px; display: block; }
.secret-box {
  background: rgba(10,132,255,.06);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 8px; padding: 12px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px; color: var(--blue);
  text-align: center; letter-spacing: .12em;
  word-break: break-all; margin-top: 10px;
}
.secret-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px; color: var(--muted);
  letter-spacing: .2em; text-transform: uppercase;
  text-align: center; margin-bottom: 6px;
}
.code-input {
  width: 100%;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 24px !important;
  letter-spacing: 10px !important;
  padding: 14px !important;
}
.twofa-cancel {
  display: block; text-align: center;
  margin-top: 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: .15em; text-decoration: none;
  transition: color .2s;
}
.twofa-cancel:hover { color: var(--blue); }
.success-panel {
  padding: 48px 28px;
  text-align: center;
}
.success-icon { font-size: 56px; margin-bottom: 20px; }
.success-panel h2 {
  font-size: 20px; font-weight: 700;
  letter-spacing: .06em; margin-bottom: 10px;
}
.success-panel p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: .08em; line-height: 1.7;
}

/* ── Footer ── */
.footer {
  position: relative; z-index: 10;
  text-align: center; padding: 28px 20px;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: .08em;
  border-top: 1px solid rgba(10,132,255,.07);
}

@media (max-width: 900px) {
  .page { padding: 16px; }
  .form-row { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .twofa-step { padding: 16px; }
}

/* ── Login page ── */
body.login-page { display: flex; align-items: center; justify-content: center; padding: 20px; }
.lc {
  position: relative; z-index: 10; width: 360px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 36px 36px;
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  animation: ci-anim .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes ci-anim { from { opacity: 0; transform: translateY(20px) scale(.97) } to { opacity: 1; transform: none } }
.lw { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 32px; }
.li {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(10,132,255,.1); border: 1px solid rgba(10,132,255,.3);
  display: flex; align-items: center; justify-content: center;
  position: relative; box-shadow: 0 0 24px rgba(10,132,255,.15);
}
.li svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(10,132,255,.7)); }
.lr { position: absolute; inset: -6px; border-radius: 20px; border: 1px solid rgba(10,132,255,.15); animation: rp 3s ease-in-out infinite; }
@keyframes rp { 0%,100% { opacity: .3; transform: scale(1) } 50% { opacity: .7; transform: scale(1.04) } }
.lt { font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 20px rgba(10,132,255,.4); }
.ls { font-family: 'Share Tech Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; }
.iw { position: relative; }
.ii { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ii svg { width: 15px; height: 15px; stroke: rgba(10,132,255,.5); fill: none; stroke-width: 1.8; }
input[type=text], input[type=password] { width: 100%; padding: 12px 14px 12px 40px; }
input[type=password] { font-family: 'Share Tech Mono', monospace; font-size: 13px; letter-spacing: .1em; }
.ci { text-align: center; font-family: 'Share Tech Mono', monospace; font-size: 22px; letter-spacing: 12px; padding-left: 14px !important; width: 100%; }
.bs {
  width: 100%; margin-top: 8px; padding: 13px;
  background: linear-gradient(135deg, #0a5dcc, #0a84ff 50%, #0aa8ff);
  border: none; border-radius: 10px; color: #fff;
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(10,132,255,.35);
}
.bs:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(10,132,255,.5); }
.cl { display: block; text-align: center; margin-top: 14px; font-family: 'Share Tech Mono', monospace; font-size: 10px; letter-spacing: .15em; color: var(--muted); text-decoration: none; }
.cl:hover { color: var(--blue); }

/* ── Dashboard page ── */
body.dashboard-page { display: flex; flex-direction: column; min-height: 100vh; }
.content { position: relative; z-index: 10; flex: 1; padding: 28px 32px 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
