/* =============================================
   FOOXFPS — PANEL STYLES (REDESIGN 2026)
   ============================================= */

:root {
  --purple:       #7c3aed;
  --purple-light: #a855f7;
  --purple-dim:   rgba(124,58,237,0.15);
  --green:        #10b981;
  --green-dim:    rgba(16,185,129,0.12);
  --red:          #ef4444;
  --red-dim:      rgba(239,68,68,0.12);
  --yellow:       #f59e0b;
  --yellow-dim:   rgba(245,158,11,0.12);
  --blue:         #3b82f6;
  --blue-dim:     rgba(59,130,246,0.12);
  --bg:           #04040a;
  --bg2:          #070710;
  --bg3:          #0a0a14;
  --card:         rgba(255,255,255,0.03);
  --card-hover:   rgba(255,255,255,0.05);
  --border:       rgba(99,0,210,0.2);
  --border2:      rgba(255,255,255,0.07);
  --border3:      rgba(255,255,255,0.04);
  --text:         #e2e2f0;
  --text-muted:   #7070a0;
  --text-dim:     #4a4a6a;
  --white:        #ffffff;
  --sidebar-w:    260px;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow-purple: 0 8px 32px rgba(124,58,237,0.3);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
}

/* ── RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
input, select, button { font-family: 'Inter', sans-serif; }

/* ── CUSTOM SCROLLBAR ──────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ── BACKGROUND GRADIENT ───────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 800px 500px at 20% 0%, rgba(124,58,237,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 100%, rgba(16,185,129,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── AUTH PAGE ─────────────────────────────── */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Partículas */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: .5; }
  90%  { opacity: .2; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.auth-wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  background: rgba(10,10,20,0.95);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 24px 80px rgba(124,58,237,0.2), 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
}

.auth-logo {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px; font-weight: 800; color: var(--white);
  margin-bottom: 6px; letter-spacing: -0.5px; gap: 6px;
}
.auth-logo-img { width: 120px; height: auto; object-fit: contain; }
.auth-logo span { color: var(--green); }
.auth-tagline { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }

/* TABS */
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 32px;
  background: rgba(255,255,255,0.04); border-radius: 12px; padding: 4px;
  border: 1px solid var(--border3);
}
.tab {
  flex: 1; padding: 10px;
  border: none; background: transparent;
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  border-radius: 9px; cursor: pointer; transition: all .2s;
}
.tab.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* FORMS */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-group label i { color: var(--purple-light); }
.form-group input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--border2);
  border-radius: 12px; color: var(--white); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.input-pass { position: relative; }
.input-pass input { padding-right: 46px; }
.toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 4px; transition: color .2s;
}
.toggle-pass:hover { color: var(--white); }

/* CAPTCHA */
.captcha-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--border2);
  border-radius: 12px; padding: 12px 16px;
}
.captcha-box span { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.captcha-box input {
  width: 88px; padding: 9px 12px;
  background: rgba(255,255,255,0.06); border: 1.5px solid var(--border);
  border-radius: 9px; color: var(--white); font-size: 14px; text-align: center;
  outline: none;
}

/* ERRORS */
.form-error {
  background: var(--red-dim); border: 1px solid rgba(239,68,68,0.25);
  color: var(--red); border-radius: 10px; padding: 11px 14px;
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.form-error.hidden { display: none; }
.form-msg {
  padding: 11px 14px; border-radius: 10px; font-size: 13px;
}
.form-msg.success { background: var(--green-dim); border: 1px solid rgba(16,185,129,0.3); color: var(--green); }
.form-msg.error   { background: var(--red-dim); border: 1px solid rgba(239,68,68,0.25); color: var(--red); }
.form-msg.hidden  { display: none; }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; width: 100%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-footer { text-align: center; font-size: 13px; color: var(--text-muted); }
.form-footer a { color: var(--purple-light); cursor: pointer; font-weight: 600; transition: color .2s; }
.form-footer a:hover { color: var(--green); }

/* ── DASHBOARD PAGE ────────────────────────── */
.dashboard-page { display: flex; min-height: 100vh; }

/* ── SIDEBAR ───────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg3);
  border-right: 1px solid rgba(99,0,210,0.2);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at top left, rgba(124,58,237,0.12), transparent 70%);
  pointer-events: none;
}

.sidebar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--white);
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--border3);
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo-img { width: 130px; height: auto; object-fit: contain; }
.sidebar-logo-text { display: flex; flex-direction: column; }
.sidebar-logo span { color: var(--green); }
.sidebar-logo small {
  display: block;
  font-size: 10px; font-weight: 500; color: var(--text-dim);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 1px;
}

.sidebar-nav {
  flex: 1; display: flex; flex-direction: column;
  padding: 18px 14px; gap: 3px;
  position: relative; z-index: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 12px 10px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: all .2s; cursor: pointer;
  position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item span.nav-label { flex: 1; }
.nav-item:hover {
  background: rgba(124,58,237,0.1);
  color: var(--white);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(168,85,247,0.12));
  color: var(--white);
  border: 1px solid rgba(124,58,237,0.25);
  box-shadow: inset 0 0 20px rgba(124,58,237,0.05);
}
.nav-item.active i { color: var(--purple-light); }
.nav-item.hidden { display: none; }

.sidebar-user {
  padding: 16px 14px;
  border-top: 1px solid var(--border3);
  display: flex; align-items: center; gap: 11px;
  position: relative; z-index: 1;
}
.su-avatar {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}
.su-info { flex: 1; min-width: 0; }
.su-info strong {
  display: block; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.su-info span { font-size: 11px; color: var(--text-muted); }

/* Role badge in sidebar */
.role-badge-sidebar {
  display: inline-block; padding: 2px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.role-badge-sidebar.admin   { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.role-badge-sidebar.seller  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.role-badge-sidebar.user    { background: rgba(124,58,237,0.15); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.2); }

.su-logout {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 6px; font-size: 15px;
  transition: color .2s;
}
.su-logout:hover { color: var(--red); }

/* Overlay para mobile */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── MAIN CONTENT ──────────────────────────── */
.dashboard-main {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-height: 100vh;
  position: relative; z-index: 1;
}

/* ── TOPBAR ────────────────────────────────── */
.topbar {
  height: 64px; padding: 0 28px;
  display: flex; align-items: center; gap: 16px;
  background: rgba(10,10,20,0.8);
  border-bottom: 1px solid var(--border3);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
}
.hamburger-dash {
  display: none; background: none; border: none;
  color: var(--text-muted); font-size: 18px; cursor: pointer;
  padding: 4px; transition: color .2s;
}
.hamburger-dash:hover { color: var(--white); }
.topbar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; flex: 1;
}
.topbar-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border3);
  padding: 6px 14px; border-radius: 20px; font-weight: 500;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.active   {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.status-dot.inactive { background: var(--text-dim); }
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50%  { opacity: .6; box-shadow: 0 0 4px var(--green); }
}

/* ── NOTIFICATIONS ─────────────────────────── */
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border3);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: color .2s, background .2s, border-color .2s;
  flex-shrink: 0;
}
.notif-btn:hover {
  color: var(--white);
  background: var(--purple-dim);
  border-color: var(--border);
}
.notif-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px rgba(239,68,68,0.5);
  line-height: 1;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 320px;
  background: rgba(10,10,22,0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.1);
  backdrop-filter: blur(20px);
  z-index: 200;
  overflow: hidden;
}
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border3);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.notif-panel-header button {
  background: none; border: none;
  color: var(--purple-light);
  font-size: 11px; font-weight: 500;
  cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
}
.notif-panel-header button:hover { background: var(--purple-dim); }
.notif-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
}
.notif-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border3);
  transition: background .15s;
  cursor: default;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { background: var(--purple-dim); }
.notif-item.unread:hover { background: rgba(124,58,237,0.2); }
.notif-msg {
  font-size: 13px; color: var(--text); line-height: 1.45;
  margin-bottom: 4px;
}
.notif-time {
  font-size: 11px; color: var(--text-muted);
}

/* Wrapper relativo para posicionar el panel */
.topbar-right {
  display: flex; align-items: center; gap: 12px;
  position: relative;
}

/* ── SECTIONS ──────────────────────────────── */
.dash-section { display: none; padding: 28px; flex: 1; }
.dash-section.active {
  display: block;
  animation: fadeInSection .3s ease;
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; margin-bottom: 24px;
  color: var(--white);
}
.section-title i { color: var(--purple-light); }

/* ── WELCOME BANNER ────────────────────────── */
.welcome-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(16,185,129,0.05));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius); padding: 30px 32px;
  margin-bottom: 24px; gap: 20px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 300px; height: 100%;
  background: radial-gradient(ellipse at right, rgba(124,58,237,0.1), transparent 70%);
  pointer-events: none;
}
.welcome-banner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 800; margin-bottom: 6px;
  line-height: 1.2;
}
.welcome-banner p  { color: var(--text-muted); font-size: 14px; }
.license-badge {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  position: relative; z-index: 1;
}
.license-badge.active {
  background: var(--green-dim);
  border-color: rgba(16,185,129,0.3);
  color: var(--green);
}
.license-badge i { font-size: 16px; }

/* ── STATS GRID ────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all .25s;
  backdrop-filter: blur(10px);
  animation: fadeInCard .4s ease both;
}
.stat-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-card:nth-child(1) { animation-delay: .05s; }
.stat-card:nth-child(2) { animation-delay: .10s; }
.stat-card:nth-child(3) { animation-delay: .15s; }
.stat-card:nth-child(4) { animation-delay: .20s; }

.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; margin-bottom: 14px;
}
.stat-icon.purple { background: var(--purple-dim); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.2); }
.stat-icon.green  { background: var(--green-dim);  color: var(--green);        border: 1px solid rgba(16,185,129,0.2); }
.stat-icon.red    { background: var(--red-dim);    color: var(--red);          border: 1px solid rgba(239,68,68,0.2); }
.stat-icon.yellow { background: var(--yellow-dim); color: var(--yellow);       border: 1px solid rgba(245,158,11,0.2); }
.stat-icon.blue   { background: var(--blue-dim);   color: var(--blue);         border: 1px solid rgba(59,130,246,0.2); }

.stat-num   {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--white);
  line-height: 1.1;
}
.stat-label {
  display: block; font-size: 12px;
  color: var(--text-muted); margin-top: 4px;
  font-weight: 500;
}

/* ── QUICK ACTIONS ─────────────────────────── */
.quick-actions {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 22px 24px;
  backdrop-filter: blur(10px);
}
.quick-actions h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--white); }
.qa-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.qa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: var(--radius-sm); cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border2);
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all .2s; text-decoration: none;
}
.qa-btn i { font-size: 15px; }
.qa-btn:hover {
  background: var(--purple-dim);
  border-color: rgba(124,58,237,0.4);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}

/* ── CARDS ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.card:hover { border-color: rgba(124,58,237,0.2); }
.card h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; color: var(--white);
}
.card h3 i { color: var(--purple-light); }
.card-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.card-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.card-header-row h3 { margin-bottom: 0; }

/* ── LICENSE STATUS CARD ───────────────────── */
.license-status-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.license-status-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--purple), var(--purple-light));
  border-radius: 4px 0 0 4px;
}

.lsc-top { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.lsc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.lsc-icon.active   {
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(16,185,129,0.3);
  box-shadow: 0 4px 16px rgba(16,185,129,0.2);
}
.lsc-icon.inactive {
  background: var(--purple-dim); color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.2);
}
.lsc-info { flex: 1; min-width: 0; }
.lsc-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: var(--white); }
.lsc-info p  { font-size: 13px; color: var(--text-muted); }
.lsc-expiry { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 4px; }

/* ── COUNTDOWN BLOCKS ──────────────────────── */
.lsc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lsc-countdown {
  display: flex; align-items: center; gap: 8px;
  background: var(--purple-dim); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px; padding: 9px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--purple-light);
}
.lsc-countdown i { font-size: 13px; }
.lsc-countdown.hidden { display: none; }

/* Countdown digits (visual clock) */
.countdown-blocks {
  display: flex; gap: 10px; align-items: center;
  margin-top: 20px;
}
.cd-block {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px; padding: 14px 18px; min-width: 72px;
  position: relative;
}
.cd-block::after {
  content: '';
  position: absolute; left: 50%; right: auto;
  width: calc(100% - 2px); height: 1px;
  top: 50%; transform: translateY(-50%);
  background: rgba(124,58,237,0.2);
}
.cd-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 800; color: var(--white);
  line-height: 1; position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 6px; position: relative; z-index: 1;
}
.cd-sep {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--purple-light);
  margin-bottom: 20px; opacity: .7;
  animation: blink-sep 1s step-end infinite;
}
@keyframes blink-sep {
  0%,100% { opacity: .7; } 50% { opacity: .2; }
}

/* ── REDEEM ROW ────────────────────────────── */
.redeem-row { display: flex; gap: 12px; flex-wrap: wrap; }
.key-input {
  flex: 1; min-width: 200px; padding: 13px 16px;
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--border);
  border-radius: 12px; color: var(--white); font-size: 15px;
  font-family: 'Space Grotesk', sans-serif; letter-spacing: 1.5px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.key-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.key-input::placeholder { letter-spacing: 1px; color: var(--text-dim); }

/* ── BUTTONS ───────────────────────────────── */
.btn-primary-d {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; border: none; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .25s; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.btn-primary-d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.5);
}
.btn-primary-d:active { transform: translateY(0); }

.btn-ghost-d {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border2);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.btn-ghost-d:hover {
  border-color: rgba(124,58,237,0.4);
  color: var(--white);
  background: var(--purple-dim);
}

/* ── KEY HISTORY ───────────────────────────── */
.key-history { display: flex; flex-direction: column; gap: 10px; }
.key-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border3);
  border-radius: var(--radius-sm); padding: 14px 18px;
  transition: border-color .2s;
}
.key-row:hover { border-color: rgba(124,58,237,0.2); }
.key-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600; flex: 1;
  letter-spacing: 1px; color: var(--white);
}
.key-dur  { font-size: 12px; color: var(--text-muted); }
.key-stat {
  padding: 3px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.key-stat.redeemed {
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
}
.key-stat.expired  {
  background: var(--red-dim); color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}
.key-exp { font-size: 12px; color: var(--text-muted); }

/* ── DOWNLOADS LIST ────────────────────────── */
.downloads-list { display: flex; flex-direction: column; gap: 14px; }
.dl-item {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 22px 26px;
  transition: all .25s; backdrop-filter: blur(10px);
}
.dl-item:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.dl-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--purple-dim); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--purple-light); flex-shrink: 0;
  border: 1px solid rgba(124,58,237,0.2);
}
.dl-info { flex: 1; }
.dl-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.dl-info p  { font-size: 13px; color: var(--text-muted); }
.dl-version {
  font-size: 11px; color: var(--purple-light);
  background: var(--purple-dim); padding: 2px 9px; border-radius: 8px;
  margin-top: 6px; display: inline-block; font-weight: 600;
}
.dl-actions { display: flex; align-items: center; gap: 10px; }
.dl-lock {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border3);
  padding: 8px 14px; border-radius: 9px;
}
.dl-lock i { color: var(--yellow); }
.btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; border: none; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.45);
}
.btn-download:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── LICENSE WARN ──────────────────────────── */
.license-warn {
  display: flex; align-items: center; gap: 12px;
  background: var(--yellow-dim); border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px;
  font-size: 14px; color: var(--yellow);
}
.license-warn a { color: var(--purple-light); font-weight: 600; cursor: pointer; }
.license-warn.hidden { display: none; }

/* ── ADMIN SECTION ─────────────────────────── */
.gen-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 18px;
}
.form-group-d { display: flex; flex-direction: column; gap: 6px; }
.form-group-d label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.form-group-d input,
.form-group-d select {
  padding: 11px 13px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border2); border-radius: var(--radius-sm);
  color: var(--white); font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group-d input:focus,
.form-group-d select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-group-d select option { background: #0a0a14; }

.gen-result {
  margin-top: 16px; padding: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); font-size: 13px;
}
.gen-result.hidden { display: none; }
.gen-success-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3);
  color: var(--green); border-radius: 10px; padding: 12px 16px;
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.gen-success-banner i { font-size: 18px; }
.gen-error-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: var(--red); border-radius: 10px; padding: 12px 16px;
  font-weight: 700; font-size: 14px;
}
.gen-keys-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.gen-result .key-generated {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; color: var(--green);
  padding: 6px 10px; display: block; letter-spacing: 1.5px;
  background: rgba(16,185,129,0.06); border-radius: 6px;
  border-left: 3px solid var(--green);
}
.btn-download-txt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; cursor: pointer;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.4);
  color: var(--purple-light); font-size: 13px; font-weight: 600;
  transition: all .2s; margin-top: 4px;
}
.btn-download-txt:hover { background: rgba(124,58,237,0.25); color: #fff; }

/* ── KEYS TABLE ────────────────────────────── */
.keys-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.keys-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.keys-table th {
  text-align: left; padding: 11px 14px;
  background: rgba(255,255,255,0.03); color: var(--text-dim);
  font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid var(--border3);
  white-space: nowrap;
}
.keys-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border3);
  vertical-align: middle;
}
.keys-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.01); }
.keys-table tbody tr:hover td { background: rgba(124,58,237,0.06); }
.keys-table .key-mono {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; color: var(--text); letter-spacing: .8px;
}

.empty-cell {
  text-align: center; padding: 36px;
  color: var(--text-muted); font-size: 14px;
}

.btn-revoke {
  padding: 5px 12px; border-radius: 7px;
  background: var(--red-dim); border: 1px solid rgba(239,68,68,0.2);
  color: var(--red); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-revoke:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); }

/* ── STATUS BADGES ─────────────────────────── */
.badge-status {
  display: inline-block; padding: 4px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-status.active   {
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
}
.badge-status.redeemed {
  background: var(--purple-dim); color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.25);
}
.badge-status.expired  {
  background: var(--red-dim); color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}
.badge-status.revoked  {
  background: rgba(255,255,255,0.05); color: var(--text-muted);
  border: 1px solid var(--border3);
}

/* ── EMPTY STATE ───────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 40px;
  color: var(--text-muted); font-size: 14px;
}
.empty-state i { font-size: 32px; opacity: .3; }

/* ── ADMIN TABS ────────────────────────────── */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border2);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.admin-tab:hover { border-color: rgba(124,58,237,0.4); color: var(--white); }
.admin-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.admin-tab.hidden { display: none; }

/* ── USERS TABLE ───────────────────────────── */
.role-select {
  padding: 6px 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2); border-radius: 7px;
  color: var(--white); font-size: 12px; font-weight: 600; cursor: pointer;
  outline: none; transition: border-color .2s;
}
.role-select:focus { border-color: var(--purple); }
.role-select option { background: #0a0a14; }
.hash-cell {
  font-family: monospace; font-size: 11px; color: var(--text-muted); cursor: help;
}
.hwid-tag {
  font-family: monospace; font-size: 11px; color: var(--text-muted);
  background: rgba(255,255,255,0.05); padding: 2px 7px;
  border-radius: 5px; cursor: help;
}
.cell-email { font-size: 12px; color: var(--text-muted); }
.actions-cell { display: flex; gap: 6px; align-items: center; }
.btn-sm { padding: 5px 10px !important; font-size: 12px !important; }

/* User avatar initials */
.user-avatar-sm {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
  vertical-align: middle; margin-right: 8px;
  flex-shrink: 0;
}
.user-cell { display: flex; align-items: center; gap: 8px; }

/* ── ANALYTICS SECTION ─────────────────────── */
.analytics-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 24px;
}

.analytics-device-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.device-card {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 14px;
  backdrop-filter: blur(10px);
}
.device-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.device-icon.mobile  { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(59,130,246,0.2); }
.device-icon.desktop { background: var(--purple-dim); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.2); }
.device-icon.tablet  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(16,185,129,0.2); }
.device-num   { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; color: var(--white); display: block; }
.device-label { font-size: 12px; color: var(--text-muted); }

/* visitors table */
#visitorsTableBody td { font-size: 12px; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .gen-grid { grid-template-columns: 1fr 1fr; }
  .analytics-device-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .hamburger-dash { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gen-grid   { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
  .dash-section { padding: 20px 16px; }
  .welcome-banner { padding: 22px 20px; }
  .analytics-stats { grid-template-columns: 1fr; }
  .countdown-blocks { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .auth-wrapper { padding: 30px 22px; }
  .stats-grid { grid-template-columns: 1fr; }
  .analytics-stats { grid-template-columns: 1fr; }
  .analytics-device-grid { grid-template-columns: 1fr; }
  .gen-grid { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; align-items: flex-start; }
  .dl-item { flex-direction: column; align-items: flex-start; }
  .countdown-blocks { gap: 6px; }
  .cd-block { min-width: 60px; padding: 12px 14px; }
  .cd-num { font-size: 26px; }
  .topbar-title { font-size: 15px; }
  .topbar-status { display: none; }
}
