/* ==========================================================================
   ⚡ BÓNG X — CYBER GLASSMORPHISM DESIGN SYSTEM (PREMIUM 2026)
   ========================================================================== */

:root {
  --bg-dark: #080c14;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 58, 0.82);
  --bg-card-solid: #0f172a;
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(11, 18, 33, 0.85);

  --line: rgba(255, 255, 255, 0.08);
  --line-light: rgba(255, 255, 255, 0.14);
  --line-glow: rgba(56, 189, 248, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Neon Cyber Palette */
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --cyber-blue: #38bdf8;
  --cyber-blue-glow: rgba(56, 189, 248, 0.4);

  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.4);

  --sunset-amber: #f59e0b;
  --sunset-amber-glow: rgba(245, 158, 11, 0.4);

  --crimson-rose: #f43f5e;
  --crimson-rose-glow: rgba(244, 63, 94, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-neon: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Silky Smooth Motion Curves */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-tactile: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

/* ── Custom Silky Scrollbar ── */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(8, 12, 20, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  transition: background 0.2s var(--ease-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.6);
}

body {
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Monospace fonts */
.mono, .card-value, .live-pill b, .gen-key-code, .key-text, code {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-smooth);
}
a:hover {
  color: #34d399;
}

/* ─────────────────────────────────────────────────────────────
   DYNAMIC CYBER AMBIENT BACKGROUND (Optimized GPU Acceleration)
   ───────────────────────────────────────────────────────────── */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.orb-1 {
  width: 650px;
  height: 650px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, #10b981 0%, rgba(5, 150, 105, 0) 70%);
  animation: orbDrift1 26s var(--ease-smooth) infinite alternate;
}

.orb-2 {
  width: 750px;
  height: 750px;
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(14, 165, 233, 0) 70%);
  animation: orbDrift2 30s var(--ease-smooth) infinite alternate;
}

.orb-3 {
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: 25%;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  animation: orbDrift3 34s var(--ease-smooth) infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.55;
  transform: translateZ(0);
}

@keyframes orbDrift1 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(60px, 80px, 0); }
  100% { transform: translate3d(20px, 40px, 0); }
}

@keyframes orbDrift2 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-70px, -50px, 0); }
  100% { transform: translate3d(-20px, 40px, 0); }
}

@keyframes orbDrift3 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(50px, -60px, 0); }
  100% { transform: translate3d(-30px, -20px, 0); }
}

/* ─────────────────────────────────────────────────────────────
   TOP NAVIGATION
   ───────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.brand:hover .brand-logo {
  transform: rotate(-10deg) scale(1.12);
}

.logo-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--primary-glow);
  filter: blur(6px);
  opacity: 0.6;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-text b {
  color: var(--primary);
  margin-left: 2px;
  text-shadow: 0 0 12px var(--primary-glow);
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  object-fit: cover;
}

.avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.hi {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.admin-badge-nav {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.2));
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 150%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.38);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 7px;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-main);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-glow-primary {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 24px;
}

.btn-icon-spin:hover i {
  animation: spin 0.7s ease infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT WRAPPER
   ───────────────────────────────────────────────────────────── */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ─────────────────────────────────────────────────────────────
   FLASH MESSAGES
   ───────────────────────────────────────────────────────────── */
.flashes {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  animation: flashIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  border: 1px solid transparent;
}

.flash-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.flash-text {
  flex: 1;
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.flash-close:hover { opacity: 1; }

.flash.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.flash.danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.flash.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   HERO COMMAND BANNER
   ───────────────────────────────────────────────────────────── */
.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 148px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(8, 12, 20, 0.94) 0%, rgba(8, 12, 20, 0.8) 55%, rgba(15, 23, 42, 0.6) 100%);
  backdrop-filter: blur(4px);
}

.banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-logo-container {
  position: relative;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.banner-logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.5);
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  100% { transform: rotate(360deg); }
}

.banner-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-inner h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
}

.banner-chip-admin {
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.banner-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-sep {
  color: var(--line-light);
  font-size: 10px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  position: relative;
}

.live-pill .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #34d399;
  animation: radarRing 2s ease-out infinite;
}

@keyframes radarRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.meta-time b {
  color: var(--text-main);
  font-weight: 600;
}

.meta-clock {
  color: var(--cyber-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─────────────────────────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 18px;
}

.section-head h2 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.section-head h2 i {
  color: var(--primary);
  font-size: 16px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-light), rgba(255, 255, 255, 0.01));
}

.section-badge {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* ─────────────────────────────────────────────────────────────
   STAT CARDS (5 METRIC TILES)
   ───────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-light);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

/* Accent Glows on Cards */
.card-glow-emerald:hover::before { background: var(--primary); }
.card-glow-blue:hover::before    { background: var(--cyber-blue); }
.card-glow-rose:hover::before    { background: var(--crimson-rose); }
.card-glow-purple:hover::before  { background: var(--neon-purple); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-ico {
  transform: scale(1.15) rotate(-5deg);
}

.card-glow-emerald .card-ico { color: #34d399; background: rgba(16, 185, 129, 0.1); }
.card-glow-blue .card-ico    { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.card-glow-rose .card-ico    { color: #f43f5e; background: rgba(244, 63, 94, 0.1); }
.card-glow-purple .card-ico  { color: #a855f7; background: rgba(168, 85, 247, 0.1); }

.card-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tag-green  { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.tag-blue   { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.tag-red    { background: rgba(244, 63, 94, 0.12); color: #fb7185; }
.tag-purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; }

.card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.card-unit {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.card-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-mini {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-green { background: linear-gradient(90deg, #10b981, #34d399); }
.fill-blue  { background: linear-gradient(90deg, #0284c7, #38bdf8); }

.card-value.bump {
  animation: bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); color: var(--primary); }
  100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────────────────────
   CHARTS SECTION
   ───────────────────────────────────────────────────────────── */
.charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.chart-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.chart-box.wide {
  grid-column: 1 / -1;
}

.chart-box:hover {
  border-color: var(--line-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.chart-header {
  margin-bottom: 18px;
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-icon {
  font-size: 18px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.chart-icon.green  { color: #34d399; }
.chart-icon.blue   { color: #38bdf8; }
.chart-icon.purple { color: #c084fc; }

.chart-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.chart-header p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.chart-canvas {
  position: relative;
  width: 100%;
  height: 250px;
}

.chart-canvas.tall {
  height: 280px;
}

/* ─────────────────────────────────────────────────────────────
   ADMIN PANEL — KEY GENERATOR STUDIO
   ───────────────────────────────────────────────────────────── */
.admin-panel {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 16, 30, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.12), var(--shadow-md);
  margin-bottom: 30px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.panel-title-group h2 {
  font-size: 17px;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.admin-badge {
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-body {
  padding: 24px;
}

/* Preset Pills */
.presets-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.presets-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.presets-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-pill {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.preset-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-light);
  color: var(--text-main);
  transform: translateY(-1px);
}

.preset-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

/* Keygen Form */
.keygen-form-modern {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.form-inputs-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.field-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-custom label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 42px 10px 14px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  outline: none;
  width: 140px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.input-suffix {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

/* Key Result Box */
.gen-result-card {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
  animation: resultPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes resultPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gen-result-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gen-icon-success {
  font-size: 24px;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.gen-info {
  flex: 1;
}

.gen-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #34d399;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gen-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gen-key-code {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: var(--bg-dark);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px dashed rgba(16, 185, 129, 0.5);
  user-select: all;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  color: var(--text-main);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary);
  color: #34d399;
}

.gen-meta-text {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   KEY MANAGEMENT TABLE & FILTER BAR
   ───────────────────────────────────────────────────────────── */
.key-table-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.panel-head-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  flex: 1;
  max-width: 380px;
}

.search-icon {
  position: absolute;
  left: 13px;
  color: var(--text-dim);
  font-size: 13px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 9px 36px 9px 36px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}
.search-clear-btn:hover { color: #fff; }

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

.filter-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.tab-badge {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.25);
}

.dot-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-status.ok   { background: #34d399; }
.dot-status.warn { background: #f59e0b; }
.dot-status.dead { background: #f43f5e; }

.table-results-summary {
  font-size: 12.5px;
  color: var(--text-dim);
}

.table-admin-notice {
  padding: 9px 20px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(56, 189, 248, 0.04);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-admin-notice i { color: var(--cyber-blue); }

.table-wrap {
  overflow-x: auto;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--line);
}

.tbl td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tbl tbody tr {
  transition: background 0.15s ease;
}

.tbl tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.key-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key-text {
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn-copy-inline {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  transition: all 0.15s ease;
  border-radius: 4px;
}

.btn-copy-inline:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  transform: scale(1.15);
}

.device-usage-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}

.usage-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.usage-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.usage-bar-fill.full {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.cell-date {
  color: var(--text-main);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cell-date i { color: var(--text-dim); font-size: 11px; }

.cell-date-sub {
  color: var(--text-dim);
  font-size: 12.5px;
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge.ok {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge.warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge.dead {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Row Actions */
.actions {
  white-space: nowrap;
}

.row-act {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-right: 5px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.row-act:last-child { margin-right: 0; }

.row-act:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-light);
  color: #fff;
  transform: translateY(-1px);
}

.row-act.info:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.row-act.reset:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.row-act.del:hover {
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.empty-state {
  padding: 45px 20px;
  text-align: center;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 38px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────
   SHOWCASE GALLERY
   ───────────────────────────────────────────────────────────── */
.gallery {
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gcard {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card-solid);
}

.gcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gcard:hover img {
  transform: scale(1.08);
}

.gcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 12, 20, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: opacity 0.3s ease;
}

.gallery-cap h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.gallery-cap p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   MODAL DIALOG (Key Details)
   ───────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.modal-card {
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.modal-title-group h3 {
  font-size: 17.5px;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-dim);
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}

.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.modal-row span {
  color: var(--text-muted);
  font-size: 13px;
}

.modal-row code {
  color: #38bdf8;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

.dev-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-list li {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.dev-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dev-main code {
  word-break: break-all;
  font-size: 13px;
  color: #e2e8f0;
}

.dev-date {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────────────────────────────────────────────────────────
   TOAST NOTIFICATION COMPONENT
   ───────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-light);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #fff;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: all 0.3s ease;
}

.toast.toast-leave {
  animation: toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-icon.success { color: #34d399; }
.toast-icon.error   { color: #fb7185; }
.toast-icon.info    { color: #38bdf8; }

.toast-message {
  flex: 1;
  line-height: 1.4;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px) scale(0.9); }
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.85);
  padding: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
}

.foot-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 600;
  font-size: 12px;
}

.foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

/* ─────────────────────────────────────────────────────────────
   AUTH PAGES (LOGIN & REGISTER)
   ───────────────────────────────────────────────────────────── */
.auth-page .wrap {
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero {
  position: relative;
  min-height: 540px;
  background: url('img/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(8, 12, 20, 0.78), rgba(8, 12, 20, 0.95));
}

.hero-inner {
  position: relative;
  padding: 44px;
}

.hero-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.hero-inner h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 16px 0 10px;
}

.hero-inner h2 span {
  color: var(--primary);
}

.hero-inner p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero-feats {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-feats li {
  color: #e2e8f0;
  font-size: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-feats li i {
  color: var(--primary);
  font-size: 14px;
}

.auth-card {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-card .sub {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
}

.form input {
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.captcha-img {
  height: 48px;
  width: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0d1117;
}

.captcha-refresh {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  margin: 20px 0;
  font-size: 12.5px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider span { padding: 0 12px; }

.btn.google {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}
.btn.google:hover {
  background: #f1f5f9;
}

.switch {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 20px;
}

/* ─────────────────────────────────────────────────────────────
   MOTION & ANIMATION (Scroll Reveal & Micro-Interactions)
   ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

#scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 999;
  background: linear-gradient(90deg, #10b981, #38bdf8, #8b5cf6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  transition: width 0.1s linear;
}

/* Table row staggered entrance */
.tbl tbody tr.row-in {
  animation: rowIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE MEDIA QUERIES
   ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .charts { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .hero { min-height: 220px; }
  .hero-inner { padding: 30px; }
  .hero-feats { display: none; }
}

@media (max-width: 768px) {
  .nav { padding: 12px 18px; }
  .wrap { padding: 18px 14px; }
  .banner-inner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .banner-right { width: 100%; display: flex; justify-content: flex-end; }
  .banner-inner h1 { font-size: 21px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-value { font-size: 28px; }
  .keygen-form-modern { flex-direction: column; align-items: stretch; }
  .input-with-icon input { width: 100%; }
  .panel-head-filter { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; min-width: 100%; }
  .filter-tabs { overflow-x: auto; max-width: 100%; padding: 4px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hi, .brand-sub { display: none; }
  .auth-card { padding: 28px 20px; }
}

@keyframes genPop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.key-cell .key-text {
  word-break: break-all;
}

/* ── Tactile Physical Press Feedback ── */
.btn:active, .preset-pill:active, .filter-tab:active, .btn-copy:active, .row-act:active, .btn-copy-inline:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s var(--ease-tactile) !important;
}

/* ── GPU Composite Layers for Silky Smooth 60fps Scrolling ── */
.card, .banner, .chart-box, .admin-panel, .key-table-panel, .modal-card, .toast {
  transform: translateZ(0);
  backface-visibility: hidden;
}
