/* ============================================================
   MetaSense.cc — style.css
   Formal dark theme: White & Green palette, zero neon effects
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --white:      #ffffff;
  --green:      #ffffff;
  --green-mid:  #e2e8f0;
  --green-dark: #27272a;
  --green-dim:  rgba(255,255,255,0.06);
  --green-border: rgba(255,255,255,0.16);
  --red:        #dc2626;
  --red-dim:    rgba(220,38,38,0.10);

  /* Backgrounds */
  --bg:         #0c0c0e;
  --bg2:        #111115;
  --bg3:        #16161c;
  --bg4:        #1c1c24;
  --card:       #13131a;

  /* Text */
  --text:       #e2e2e8;
  --text-dim:   #a1a1b0;
  --muted:      #6b6b7e;

  /* Borders */
  --border:     rgba(255,255,255,0.06);
  --border-md:  rgba(255,255,255,0.10);
  --border-green: var(--green-border);

  /* Gold (VIP) */
  --gold:       #d97706;
  --gold-dim:   rgba(217,119,6,0.12);

  /* Misc */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  18px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);

  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', 'Courier New', monospace;

  --sidebar-w:  240px;
  --navbar-h:   60px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

::selection { background: rgba(22,163,74,0.25); color: var(--white); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.15; color: var(--white); }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2;  color: var(--white); }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3;  color: var(--white); }
h4 { font-size: 0.95rem;font-weight: 600; line-height: 1.35; color: var(--white); }
h5 { font-size: 0.85rem;font-weight: 600; color: var(--text); }

p  { color: var(--text-dim); line-height: 1.7; }

.mono { font-family: var(--mono); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--muted); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold); }
.text-sm     { font-size: 0.8rem; }
.text-xs     { font-size: 0.72rem; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container   { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-4       { gap: 4px; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.gap-16      { gap: 16px; }
.gap-24      { gap: 24px; }
.mb-4        { margin-bottom: 4px; }
.mb-8        { margin-bottom: 8px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.mb-32       { margin-bottom: 32px; }
.mt-auto     { margin-top: auto; }
.w-full      { width: 100%; }
.hidden      { display: none !important; }
.sr-only     { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8000;
  background: var(--bg3);
  border-top: 1px solid var(--border-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner p { font-size: 0.8rem; color: var(--text-dim); flex: 1; }
.cookie-banner p a { color: var(--green); }
.cookie-banner p a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================
   DISCLAIMER BANNER
   ============================================================ */
.disclaimer-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.disclaimer-bar strong { color: var(--text-dim); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: rgba(12,12,14,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-logo .logo-accent { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--white); background: var(--bg3); }
.nav-link.active { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  border-color: #f87171;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  color: #fff;
}

.btn-secondary {
  background: var(--bg4);
  color: var(--text);
  border-color: var(--border-md);
}
.btn-secondary:hover { background: var(--bg3); border-color: rgba(255,255,255,0.14); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: var(--border-md); background: var(--bg3); }

.btn-danger {
  background: rgba(220,38,38,0.12);
  color: #f87171;
  border-color: rgba(220,38,38,0.25);
}
.btn-danger:hover { background: rgba(220,38,38,0.18); }

.btn-outline-green, .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-outline-green:hover, .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 11px 24px; font-size: 0.95rem; }
.btn-full { width: 100%; }

.btn-icon {
  width: 34px; height: 34px;
  padding: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
}
.btn-icon:hover { color: var(--white); border-color: var(--border-md); }

.btn-download {
  background: #ffffff;
  color: #0c0c0e;
  border-color: #ffffff;
  font-weight: 700;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
}
.btn-download:hover { background: #e2e8f0; color: #000; transform: translateY(-1px); }
.btn-download svg { flex-shrink: 0; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-required { color: var(--red); margin-left: 2px; }

.form-control {
  background: var(--bg2);
  border: 1px solid var(--border-md);
  color: var(--white);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.form-control::placeholder { color: var(--muted); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%236b6b7e' stroke-width='1.5' stroke-linecap='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.form-error-msg { font-size: 0.78rem; color: #f87171; margin-top: 4px; display: none; }
.form-error-msg.visible { display: block; }

/* Input states */
.form-control.is-error { border-color: #ef4444; }
.form-control.is-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-control.is-success { border-color: var(--green); }

/* File drop zone */
.file-zone {
  border: 1.5px dashed var(--border-md);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
  background: var(--bg2);
}
.file-zone:hover, .file-zone.dragover {
  border-color: var(--green);
  background: var(--green-dim);
}
.file-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-zone-icon { color: var(--muted); margin-bottom: 8px; }
.file-zone-text { font-size: 0.85rem; color: var(--text-dim); }
.file-zone-text strong { color: var(--green); }
.file-zone-hint { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* Image upload preview */
.img-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.img-preview-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-remove {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%; border: none;
  color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Form section divider */
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

/* Checkbox & Radio */
.check-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}
.check-wrap input[type=checkbox],
.check-wrap input[type=radio] {
  width: 15px; height: 15px;
  accent-color: var(--green);
  cursor: pointer;
}
.check-wrap span { font-size: 0.85rem; color: var(--text-dim); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body { padding: 20px; }
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 0.92rem; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.card-hover { transition: border-color .15s, transform .15s; }
.card-hover:hover { border-color: var(--border-md); transform: translateY(-2px); }

/* Stat card */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.stat-card-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.stat-card-value { font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-card-sub { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.table-empty { text-align: center; padding: 40px; color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 28px;
  position: relative;
  transform: translateY(8px);
  transition: transform .2s;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal-lg { max-width: 680px; }

.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-close {
  width: 28px; height: 28px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 50%; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.modal-close:hover { border-color: var(--border-md); color: var(--white); }

/* Auth tabs */
.auth-tabs {
  display: flex; gap: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 3px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 7px; background: none; border: none;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  cursor: pointer; border-radius: 4px; transition: all .15s;
}
.auth-tab.active { background: var(--green); color: #fff; }

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--navbar-h));
  margin-top: var(--navbar-h);
}

.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  position: sticky;
  top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  padding: 12px 10px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s;
  position: relative;
}
.sidebar-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.sidebar-item:hover { background: var(--bg3); color: var(--white); }
.sidebar-item.active {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.sidebar-item .sidebar-badge {
  margin-left: auto;
  font-size: 0.68rem;
  background: var(--red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-divider { height: 1px; background: var(--border); margin: 6px 0; }
.sidebar-spacer { flex: 1; }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-content {
  padding: 32px;
  overflow-y: auto;
  min-height: calc(100vh - var(--navbar-h));
}

.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.4rem; margin-bottom: 3px; }
.page-header p { font-size: 0.85rem; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text);
  min-width: 240px; max-width: 340px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  animation: toastIn .2s ease;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.info    { border-color: rgba(59,130,246,0.3); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.ann-bar {
  background: var(--green-dark);
  border-bottom: 1px solid rgba(22,163,74,0.3);
  padding: 8px 24px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #bbf7d0;
  position: relative;
  display: none;
}
.ann-bar.visible { display: block; }
.ann-bar-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 16px; line-height: 1;
}

/* ============================================================
   PRELOADER (REMOVED - DISABLED PERMANENTLY)
   ============================================================ */
.page-loader, #page-loader, #preloader {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   MULTI-GAME SELECTOR & PRODUCT SHOWCASE (CS2 & Valorant)
   ============================================================ */
.game-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 32px;
}

.game-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.game-nav-tab:hover {
  background: #161720;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.game-nav-tab.active {
  background: #171217;
  border-color: rgba(239, 68, 68, 0.65);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.3);
}

.game-nav-tab-badge {
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.game-nav-tab.active .game-nav-tab-badge {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.38);
  color: #fca5a5;
}

.game-showcase-wrapper {
  max-width: 980px;
  margin: 0 auto 48px;
}

.game-showcase-card {
  background: #0d0e13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 38px 46px;
  display: flex;
  align-items: center;
  gap: 52px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  transition: border-color .25s ease;
}

.game-showcase-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 860px) {
  .game-showcase-card {
    flex-direction: column;
    padding: 30px 24px;
    gap: 32px;
    align-items: center;
    text-align: center;
  }
}

.game-poster-box {
  position: relative;
  width: 250px;
  height: 420px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .game-poster-box {
    width: 220px;
    height: 370px;
  }
}

.game-poster-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 5;
  background: #090a0e;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
}

.game-poster-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #14151b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-poster-img-wrap.is-logo-wrap {
  background: radial-gradient(circle at center, rgba(32, 24, 18, 0.9) 0%, rgba(12, 13, 18, 0.98) 100%);
  padding: 28px;
}

.game-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.game-cover-img.is-logo {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.game-showcase-card:hover .game-cover-img {
  transform: scale(1.025);
}

.game-showcase-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
}

@media (max-width: 860px) {
  .game-showcase-info {
    align-items: center;
  }
}

.game-showcase-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.game-showcase-sub {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.5;
}

.game-showcase-pixel {
  display: inline-block;
  background: #14151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 28px;
}

.game-showcase-cta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .game-showcase-cta-bar {
    justify-content: center;
  }
}

.btn-showcase-plan {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 13px 26px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45) !important;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-showcase-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6) !important;
}

.btn-showcase-feat {
  background: #171822 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 13px 26px !important;
  border-radius: 10px !important;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-showcase-feat:hover {
  background: #20222e !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ============================================================
   USER MENU
   ============================================================ */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 10px 5px 5px;
  cursor: pointer; transition: border-color .15s;
}
.user-btn:hover { border-color: var(--border-md); }
.user-btn-name { font-size: 0.82rem; font-weight: 600; color: var(--white); }
.user-btn-role { font-size: 0.7rem; color: var(--muted); }

.user-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg3); border: 1px solid var(--border-md);
  border-radius: var(--radius-md); min-width: 210px;
  padding: 6px; box-shadow: var(--shadow-lg);
  display: none; z-index: 500;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown-header {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.ud-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.ud-email { font-size: 0.72rem; color: var(--muted); margin-top: 1px; }
.ud-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 0.82rem; color: var(--text-dim);
  cursor: pointer; transition: background .12s, color .12s;
  border: none; background: none; width: 100%; text-align: left;
  text-decoration: none;
}
.ud-item svg { width: 14px; height: 14px; }
.ud-item:hover { background: var(--bg2); color: var(--white); }
.ud-item.danger:hover { color: #f87171; }

/* ============================================================
   HERO (landing page)
   ============================================================ */
.hero {
  padding: calc(var(--navbar-h) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #ffffff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero-title .white { color: var(--white); }
.hero-title .red   { color: var(--red); }
.hero-desc { font-size: 1rem; color: var(--text-dim); line-height: 1.7; max-width: 680px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.hero-divider { width: 100%; max-width: 500px; height: 1px; background: var(--border); margin: 0 auto 28px; }
.hero-stats { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero visual panel */
.hero-panel {
  background: var(--bg2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.hero-panel-bar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
  background: var(--bg3);
}
.panel-dot { width: 8px; height: 8px; border-radius: 50%; }
.panel-dot.r { background: #ef4444; }
.panel-dot.y { background: #eab308; }
.panel-dot.g { background: #38bdf8; }
.hero-panel-title { font-size: 0.75rem; color: var(--muted); margin-left: 4px; }
.hero-panel canvas { display: block; width: 100%; }
.hero-panel-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
  display: flex; align-items: center; gap: 8px;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg2); }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #cbd5e1; margin-bottom: 8px;
}
.section-title { margin-bottom: 10px; }
.section-desc { font-size: 0.9rem; color: var(--text-dim); max-width: 520px; line-height: 1.75; }
.section-header { margin-bottom: 40px; }

/* ============================================================
   FEATURE GRID (CLEAN MODERN CARDS - NO GREEN, NO RED ICONS)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-item {
  background: linear-gradient(145deg, rgba(19, 19, 26, 0.8) 0%, rgba(13, 13, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 26px 24px;
  transition: all .25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.feature-item:hover {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.9) 0%, rgba(16, 16, 24, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.feature-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  margin-bottom: 16px;
  transition: all .2s ease;
}
.feature-icon-wrap svg { width: 22px; height: 22px; stroke: #ffffff; }
.feature-item:hover .feature-icon-wrap {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.feature-item h3 { font-size: 1.05rem; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.feature-item p { font-size: 0.84rem; color: #94a3b8; line-height: 1.65; }
.feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ftag {
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   PRICING (MODERN CARDS - NO GREEN)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: linear-gradient(145deg, rgba(18, 18, 25, 0.85) 0%, rgba(11, 11, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: all .25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
}
.pricing-card.best {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(155deg, rgba(239, 68, 68, 0.08) 0%, rgba(18, 18, 26, 0.95) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.15);
}
.pricing-badge-pill {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.plan-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.plan-price-wrap { line-height: 1; }
.plan-price { font-size: 2.1rem; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.plan-price-sym { font-size: 1rem; font-weight: 600; color: #ffffff; vertical-align: top; margin-top: 6px; display: inline-block; }
.plan-alts { font-size: 0.75rem; color: #94a3b8; margin-top: 5px; }
.plan-alts span { display: block; }
.plan-hr { height: 1px; background: rgba(255, 255, 255, 0.08); }
.plan-feats { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-feat {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: #cbd5e1;
}
.plan-feat svg { width: 14px; height: 14px; color: #ef4444; flex-shrink: 0; }

/* ============================================================
   STATUS / SYSTEM BAR
   ============================================================ */
.sys-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}
.sys-bar-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sys-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-dim); }
.sys-item .status-dot { width: 6px; height: 6px; }

/* ============================================================
   FORM SUBMISSION CARDS (forms list page)
   ============================================================ */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s;
}
.form-card:hover { border-color: var(--border-md); }
.form-card-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg3);
  object-fit: cover;
}
.form-card-body { padding: 16px; }
.form-card-title { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 5px; }
.form-card-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 10px; }
.form-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-card-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--muted);
}

/* LUA WARNING BANNER */
.lua-warning {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.8rem; color: #c4b5fd;
  margin-bottom: 14px;
}
.lua-warning svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 6px;
}
.faq-question {
  width: 100%; background: var(--card); border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer;
  font-size: 0.88rem; font-weight: 500; color: var(--white);
  font-family: var(--font); text-align: left;
  transition: background .12s;
}
.faq-question:hover { background: var(--bg3); }
.faq-arrow { width: 16px; height: 16px; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  background: var(--bg2);
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.7;
  transition: max-height .3s ease, padding .3s;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 14px 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-logo .accent { color: var(--red); }
.footer-tagline { font-size: 0.8rem; color: var(--muted); line-height: 1.7; max-width: 240px; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px;
}
.footer-col a {
  display: block; font-size: 0.82rem; color: var(--text-dim);
  margin-bottom: 8px; transition: color .12s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem; color: var(--muted);
}
.footer-disclaimer {
  padding-top: 12px;
  font-size: 0.7rem; color: #3d3d4a; line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .main-content { padding: 20px 16px; }
  .nav-links { display: none; }
}
