/* ============================================================
   KEROSENE – Polish Layer
   Sits on top of style.css. Refines spacing, focus, loading
   states, toasts, skeletons, empty states. No overrides that
   change the existing aesthetic — only additive improvements.
   ============================================================ */

/* ── Focus rings (keyboard-only, never mouse clicks) ───────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible,
.btn:focus-visible {
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 1px solid rgba(255,255,255,.5);
  outline-offset: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

/* ── Toast variants ────────────────────────────────────────── */
/* Backward compatible with existing .toast styles in style.css */
.toast { display: flex; align-items: center; gap: 12px; padding-left: 16px; }
.toast::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.toast .toast-icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.9); flex-shrink: 0;
}
.toast .toast-msg { flex: 1; line-height: 1.45; }
.toast-success { border-left-color: rgba(74,222,128,.6); }
.toast-success::before { background: #4ade80; color: #4ade80; }
.toast-error   { border-left-color: rgba(248,113,113,.6); }
.toast-error::before { background: #f87171; color: #f87171; }
.toast-info    { border-left-color: rgba(96,165,250,.6); }
.toast-info::before { background: #60a5fa; color: #60a5fa; }
.toast-warn    { border-left-color: rgba(250,204,21,.6); }
.toast-warn::before { background: #facc15; color: #facc15; }

/* Stacking when multiple toasts fire in succession */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-stack .toast {
  position: relative;
  bottom: auto;
  right: auto;
}

/* ── Skeleton loaders ──────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.025) 0%,
    rgba(255,255,255,.06) 50%,
    rgba(255,255,255,.025) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 8px;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}
.skeleton * { visibility: hidden; }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text     { height: 14px; width: 100%; margin: 6px 0; border-radius: 4px; }
.skeleton-text-sm  { height: 11px; width: 60%; }
.skeleton-text-lg  { height: 18px; width: 80%; }
.skeleton-circle   { border-radius: 50%; aspect-ratio: 1; width: 40px; }
.skeleton-card     { height: 180px; border-radius: var(--radius-lg, 16px); }
.skeleton-row      { height: 56px; margin-bottom: 10px; border-radius: 10px; }

/* ── Button loading state ──────────────────────────────────── */
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: wait;
}
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--white);
  animation: btn-spin .7s linear infinite;
}
.btn-white.is-loading::after { color: #000; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Lightweight inline spinner usable anywhere */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
  vertical-align: -2px;
}
.spinner-lg { width: 28px; height: 28px; border-width: 3px; }

/* ── Empty states ──────────────────────────────────────────── */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--g500);
}
.empty-state-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.04);
  color: var(--g600);
  font-size: 22px;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.empty-state-desc {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto 20px;
}

/* ── Input refinements ─────────────────────────────────────── */
input, textarea, select {
  transition: border-color .2s var(--ease-out-expo, ease),
              background-color .2s var(--ease-out-expo, ease),
              box-shadow .25s var(--ease-out-expo, ease);
}
input::placeholder, textarea::placeholder {
  color: var(--g600);
  transition: color .2s;
}
input:focus::placeholder, textarea:focus::placeholder {
  color: var(--g700);
}
/* Autofill cleanup — kill the Chrome yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--g975, #0a0a0a) inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--white);
}

/* ── Disabled state polish ─────────────────────────────────── */
.btn:disabled,
.btn[disabled],
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: .45;
  cursor: not-allowed !important;
  filter: grayscale(.4);
}

/* ── Card hover lift (apply with .lift class) ──────────────── */
.lift {
  transition: transform .35s var(--ease-out-expo, cubic-bezier(.16,1,.3,1)),
              box-shadow .35s var(--ease-out-expo, cubic-bezier(.16,1,.3,1)),
              border-color .35s var(--ease-out-expo, cubic-bezier(.16,1,.3,1));
}
.lift:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: rgba(255,255,255,.18); color: #fff; }

/* ── Section rhythm refinement ─────────────────────────────── */
/* Tightens vertical rhythm so consecutive sections feel intentional */
.section + .section { padding-top: clamp(24px, 3vw, 48px); }

/* ── Reduced motion respect ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Print sanity ──────────────────────────────────────────── */
@media print {
  .nav, .toast, .toast-stack, #neural-bg, body::before { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ── Mobile spacing micro-tune ─────────────────────────────── */
@media (max-width: 640px) {
  .container, .nav-inner { padding-left: 18px; padding-right: 18px; }
  .section-title { letter-spacing: -1.2px; }
  .hero-title { letter-spacing: -2px; }
  .btn { padding: 11px 20px; }
  .btn-lg { padding: 13px 26px; }
}

/* ── Anchor smooth-scroll offset for fixed nav ─────────────── */
:target { scroll-margin-top: calc(var(--nav-h, 64px) + 16px); }

/* ============================================================
   FOOTER 2.0 — Redesigned global footer
   Supplements .footer-* rules in style.css. Higher in cascade,
   so these win where they overlap.
   ============================================================ */

.footer-inner { padding: 56px 0 24px !important; }

/* ── CTA banner ───────────────────────────────────────────── */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  margin: 0 0 56px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 65%);
  background-size: 220% 100%;
  background-position: 200% 0;
  animation: footer-cta-shine 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes footer-cta-shine {
  0%, 90%, 100% { background-position: 200% 0; }
  50%           { background-position: -50% 0; }
}
.footer-cta-side {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}
.footer-cta-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(88, 101, 242, .14);
  border: 1px solid rgba(88, 101, 242, .3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #a4adff;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(88,101,242,.12);
}
.footer-cta-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px !important;
  letter-spacing: -.2px;
  text-transform: none;
  padding: 0 !important;
}
.footer-cta-text h4::after { display: none !important; }
.footer-cta-text p {
  font-size: 13px;
  color: var(--g500);
  margin: 0;
  line-height: 1.5;
}
.footer-cta-btn {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* ── Brand column ─────────────────────────────────────────── */
.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.18));
}
.footer-brand-head h3 {
  margin-bottom: 0 !important;
}
.footer-tagline {
  font-size: 13px;
  color: var(--g400);
  line-height: 1.7;
  margin: 0 0 18px !important;
  max-width: 320px;
}

/* ── Live status pill ─────────────────────────────────────── */
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 222, 128, .06);
  border: 1px solid rgba(74, 222, 128, .2);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--g200);
  margin-bottom: 20px;
  transition: all .25s var(--ease-out-expo, ease);
  text-decoration: none;
}
.footer-status:hover {
  background: rgba(74, 222, 128, .1);
  border-color: rgba(74, 222, 128, .35);
  color: #fff;
  transform: translateY(-1px);
  padding-left: 12px !important;
}
.footer-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80, 0 0 14px rgba(74,222,128,.5);
  animation: footer-status-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes footer-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}
.footer-status-dot-sm {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 6px #4ade80;
  animation: footer-status-pulse 2.4s ease-in-out infinite;
}

/* ── Column "View all" link ───────────────────────────────── */
.footer-link-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-top: 4px;
}

/* ── Dashboard polish ─────────────────────────────────────── */
.dash-hero-inner {
  display:flex;align-items:center;gap:18px;padding:18px;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));border-radius:12px;border:1px solid rgba(255,255,255,.04);box-shadow:0 10px 30px rgba(0,0,0,.45);
}
.dash-hero-avatar { width:84px;height:84px;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.02),transparent);display:flex;align-items:center;justify-content:center;font-size:28px;color:var(--g200);border:1px solid rgba(255,255,255,.03); }
.dash-hero-name { font-size:20px;margin:0;color:var(--white); }
.dash-hero-sub { margin:6px 0 0;color:var(--g500); }
.dash-hero-pill { display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.03);font-size:13px;color:var(--g400); }

.dash-stats { display:flex;gap:14px;flex-wrap:wrap; }
.dash-stat-card { flex:1;min-width:160px;padding:14px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.008));border:1px solid rgba(255,255,255,.03);box-shadow:0 8px 30px rgba(0,0,0,.45); }
.dash-stat-icon { width:42px;height:42px;border-radius:10px;background:rgba(255,255,255,.02);display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--g200);margin-bottom:8px }
.dash-stat-num { font-weight:800;font-size:20px;color:var(--white); }
.dash-stat-label { font-size:12px;color:var(--g500); }

.dash-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px; }
.dash-sub-card, .purchase-card { background:linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.006));border:1px solid rgba(255,255,255,.035);border-radius:12px;padding:12px;box-shadow:0 8px 24px rgba(0,0,0,.45);transition:transform .18s,box-shadow .18s; }
.dash-sub-card:hover, .purchase-card:hover { transform:translateY(-4px);box-shadow:0 20px 60px rgba(0,0,0,.55); }
.sub-icon { width:64px;height:64px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--g200);background:rgba(255,255,255,.01); }
.purchase-head { display:flex;gap:12px;align-items:center }
.purchase-right { margin-left:auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:8px }
.purchase-amt { font-weight:800;color:var(--white); }
.purchase-foot { margin-top:12px;display:flex;gap:12px;color:var(--g500);font-size:13px }

/* Center empties inside dash-grid panels */
.dash-grid .empty { display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;border-radius:12px;background:transparent;color:var(--g500); }

/* Compact tooltips and small helpers */
.dash-toolbar { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px }
.dash-toolbar-info { color:var(--g500);font-size:13px }

/* make badges slightly smaller in dashboard context */
.badge { font-size:11px;padding:6px 8px;border-radius:999px }

.footer-link-cta:hover { padding-left: 0 !important; }
.footer-link-cta i {
  font-size: 10px;
  transition: transform .25s var(--ease-out-expo, ease);
}
.footer-link-cta:hover i { transform: translateX(4px); }

/* ── Bottom bar ───────────────────────────────────────────── */
.footer-bottom {
  flex-wrap: wrap;
  gap: 12px 16px !important;
}
.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--g600);
}
.footer-bottom-right .footer-bottom-link {
  color: var(--g500);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s, transform .2s;
  display: inline-flex;
  align-items: center;
}
.footer-bottom-right .footer-bottom-link:hover {
  color: var(--white);
}
.footer-sep {
  color: rgba(255,255,255,.18);
  font-size: 10px;
  user-select: none;
}

/* ── Tighten existing rules ───────────────────────────────── */
.footer-col h4 { padding-bottom: 12px; }
.footer-col ul li { margin-bottom: 11px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { flex-direction: column; text-align: center; align-items: stretch; gap: 18px; padding: 22px; }
  .footer-cta-side { flex-direction: column; gap: 12px; text-align: center; }
  .footer-cta-btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-tagline { max-width: 100%; }
  .footer-inner { padding: 40px 0 20px !important; }
}

/* ═════════════════════════════════════════════════════════════
   FOOTER — MINIMAL (overrides .footer-minimal variant)
   ═════════════════════════════════════════════════════════════ */
.footer.footer-minimal { padding: 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer.footer-minimal .footer-inner { padding: 48px 0 28px !important; background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 80%); }
.footer.footer-minimal .footer-glow { display: none; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 28px;
}
.footer.footer-minimal .footer-brand .footer-brand-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer.footer-minimal .footer-brand .footer-logo { width: 26px; height: 26px; }
.footer.footer-minimal .footer-brand h3 { font-size: 16px; font-weight: 800; letter-spacing: 1.5px; color: var(--white); margin: 0; }
.footer.footer-minimal .footer-tagline {
  color: var(--g400);
  font-size: 13px;
  line-height: 1.65;
  max-width: 460px;
  margin: 0;
}
.footer-credit { display: inline-block; color: var(--g600); font-size: 12px; margin-top: 6px; }
.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}
.footer-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  color: var(--g300);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,.018);
  text-decoration: none;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.footer-action:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  transform: translateX(2px);
}
.footer-action i { width: 16px; text-align: center; font-size: 13px; color: var(--g500); transition: color .18s; }
.footer-action:hover i { color: var(--white); }
.footer.footer-minimal .footer-divider {
  height: 1px;
  background: rgba(255,255,255,.05);
  margin: 0 0 18px;
  border: none;
}
.footer.footer-minimal .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  border-top: none;
}
.footer.footer-minimal .footer-bottom-left,
.footer.footer-minimal .footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--g600);
  font-size: 12px;
  flex-wrap: wrap;
}
.footer.footer-minimal .footer-bottom-right a {
  color: var(--g400);
  text-decoration: none;
  transition: color .18s;
}
.footer.footer-minimal .footer-bottom-right a:hover { color: var(--white); }

@media (max-width: 720px) {
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .footer.footer-minimal .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .footer-actions { flex-direction: column; }
  .footer-action { width: 100%; justify-content: flex-start; }
  .footer.footer-minimal .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═════════════════════════════════════════════════════════════
   ADMIN — PRODUCT STATUS EDITOR
   ═════════════════════════════════════════════════════════════ */
.status-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.status-editor-card {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .18s, background .18s;
}
.status-editor-card:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.status-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.status-editor-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.status-editor-title > i {
  font-size: 16px;
  color: var(--g400);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.status-editor-name {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.status-editor-game {
  display: block;
  color: var(--g500);
  font-size: 11px;
  margin-top: 2px;
}
.status-editor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-editor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.status-editor-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-editor-label {
  display: block;
  font-size: 11px;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}
.status-editor-select {
  width: 100%;
  padding: 9px 12px;
  background: rgba(0,0,0,.4);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.status-editor-select:focus { outline: none; border-color: rgba(255,255,255,.25); }
.status-editor-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--g400);
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.05);
}
.status-editor-meta .btn-tiny {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: var(--g300);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: all .18s;
}
.status-editor-meta .btn-tiny:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ═════════════════════════════════════════════════════════════
   LEGAL PAGES — Terms / Privacy / Refund
   ═════════════════════════════════════════════════════════════ */
.legal-page .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--g300);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-toc-list {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 28px;
}
@media (max-width: 640px) { .legal-toc-list { columns: 1; } }
.legal-toc-list li {
  margin: 5px 0;
  font-size: 13px;
  break-inside: avoid;
}
.legal-toc-list a {
  color: var(--g300);
  text-decoration: none;
  transition: color .18s;
}
.legal-toc-list a:hover { color: var(--white); }
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 36px 0 12px;
  scroll-margin-top: calc(var(--nav-h, 64px) + 16px);
  letter-spacing: -.2px;
}
.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin: 20px 0 8px;
}
.legal-content p,
.legal-content li {
  color: var(--g300);
  font-size: 14px;
  line-height: 1.75;
}
.legal-content p { margin: 0 0 12px; }
.legal-content ul,
.legal-content ol { padding-left: 22px; margin: 0 0 14px; }
.legal-content li { margin: 4px 0; }
.legal-content a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3);
  text-underline-offset: 2px;
  transition: text-decoration-color .18s;
}
.legal-content a:hover { text-decoration-color: var(--white); }
.legal-content code {
  font-family: 'Space Grotesk', ui-monospace, monospace;
  background: rgba(255,255,255,.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--white);
}
.legal-content strong { color: var(--white); font-weight: 600; }

/* ═════════════════════════════════════════════════════════════
   GLOBAL POLISH — spacing rhythm, dividers, soft load-in
   ═════════════════════════════════════════════════════════════ */

/* Smoother section rhythm on bigger screens (additive — does not
   shrink existing mobile padding). */
@media (min-width: 720px) {
  .section { padding: clamp(56px, 6vw, 96px) 0; }
}

/* Elegant gradient section divider — replaces ugly hard 1px lines. */
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.08) 50%,
    transparent 100%
  );
  margin: 0 auto;
  max-width: 90%;
}

/* Refined hero trust pills — subtle glass capsule with breathing room. */
.hero-trust { gap: 14px !important; margin-top: 28px; }
.hero-trust-item {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.018);
  font-size: 12px !important;
  font-weight: 500;
  color: var(--g300) !important;
  letter-spacing: .2px;
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.hero-trust-item:hover {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--white) !important;
  transform: translateY(-2px);
}
.hero-trust-item .trust-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  margin-right: 2px;
}

/* Soft body fade-in on first load — kills the "instant slap" feel.
   NOTE: opacity-only — using `transform` on <body> turns it into the
   containing block for position:fixed children (modals/toasts), which
   breaks centering. Do NOT add transform here. */
body { animation: page-in .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═════════════════════════════════════════════════════════════
   FAQ — accordion (uses native <details>/<summary>)
   ═════════════════════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.faq-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
  overflow: hidden;
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.faq-item:hover {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.035);
  transform: translateX(0);
}
.faq-item[open] {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  box-shadow: 0 6px 28px rgba(0,0,0,.35);
}
.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
  user-select: none;
  letter-spacing: -.005em;
  line-height: 1.4;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; content: ''; }
.faq-ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--g300);
  font-size: 12px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), background .25s, color .25s;
  flex-shrink: 0;
}
.faq-item:hover .faq-ico {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.faq-item[open] .faq-ico {
  transform: rotate(45deg);
  background: var(--white);
  color: var(--black);
}
/* Override style.css clipping (.faq-a{max-height:0;overflow:hidden}) */
.faq-a {
  max-height: none !important;
  overflow: visible !important;
  padding: 4px 24px 22px;
  color: var(--g300);
  font-size: 14.5px;
  line-height: 1.75;
  animation: faq-open .3s cubic-bezier(.16,1,.3,1);
}
.faq-a p {
  margin: 0;
  padding: 0 !important;
  font-size: 14.5px !important;
  color: var(--g300) !important;
  line-height: 1.75 !important;
}
.faq-a p + p { margin-top: 10px; }
.faq-a a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .18s;
}
.faq-a a:hover { text-decoration-color: var(--white); }
.faq-a code {
  font-family: 'Space Grotesk', ui-monospace, monospace;
  background: rgba(255,255,255,.07);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.06);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═════════════════════════════════════════════════════════════
   SKELETON loaders — universal shimmer utility
   Use: <div class="skeleton skeleton-line"></div>
        <div class="skeleton skeleton-block" style="height:120px"></div>
   ═════════════════════════════════════════════════════════════ */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.05) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-line { height: 12px; margin: 6px 0; border-radius: 4px; }
.skeleton-line.sm { height: 10px; width: 60%; }
.skeleton-line.lg { height: 16px; }
.skeleton-block { width: 100%; min-height: 80px; border-radius: 12px; }
.skeleton-circle { border-radius: 50%; }
@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

/* Reduced motion — respect user preference globally for new bits. */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .faq-a { animation: none; }
  .skeleton::after { animation: none; }
}

/* ═════════════════════════════════════════════════════════════
   DASHBOARD — refined hero, stats, tabs, toolbar, cards
   ═════════════════════════════════════════════════════════════ */

/* Hero */
.dash-hero {
  padding: 120px 0 40px;
  position: relative;
}
.dash-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.dash-hero-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.dash-hero-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  flex-shrink: 0;
}
.dash-hero-avatar img, .nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.dash-hero-text { flex: 1; min-width: 220px; }
.dash-hero-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.dash-hero-name span { color: var(--white); }
.dash-hero-sub {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0;
}
.dash-hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--g300);
  letter-spacing: .2px;
}
.dash-hero-pill i { font-size: 10px; opacity: .8; }
.dash-hero-pill-ok {
  background: rgba(74,222,128,.05);
  border-color: rgba(74,222,128,.18);
  color: #86efac;
}
.dash-hero-pill-ok i { color: #4ade80; }
.dash-hero-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Stats section */
.dash-stats-section { padding-top: 36px !important; padding-bottom: 28px !important; }
.dash-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 0 !important;
}
.dash-stat-card {
  position: relative;
  overflow: hidden;
}
.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.dash-stat-card:hover::before { opacity: 1; }
.dash-stat-icon {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.06) !important;
  color: var(--white) !important;
  opacity: 1 !important;
}

/* Tabs — pill style */
.dash-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none; /* Firefox */
  gap: 6px !important;
  padding: 5px !important;
  background: rgba(255,255,255,.015);
  border: 1px solid rgba(255,255,255,.04) !important;
  border-radius: 12px;
  margin-bottom: 28px !important;
}
.dash-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.dash-tab {
  padding: 10px 18px !important;
  border-radius: 8px !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto !important;
  color: var(--g400) !important;
}
.dash-tab i { font-size: 12px; opacity: .7; }
.dash-tab:hover {
  background: rgba(255,255,255,.03);
  color: var(--white) !important;
}
.dash-tab.active {
  background: var(--white) !important;
  color: var(--black) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dash-tab.active i { opacity: 1; color: var(--black); }
@media (max-width: 540px) {
  .dash-tab { padding: 9px 14px !important; }
}

/* Toolbar (filter + sort + search) */
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.dash-toolbar-info {
  font-size: 12px;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.dash-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dash-chip-row { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.dash-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  color: var(--g400);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.dash-chip:hover { color: var(--g200); border-color: rgba(255,255,255,.12); }
.dash-chip.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.dash-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23888' d='M5 6 0 0h10z'/></svg>") no-repeat right 12px center;
  color: var(--g200);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
  font-family: inherit;
}
.dash-select:hover { border-color: rgba(255,255,255,.18); }
.dash-select:focus { outline: none; border-color: rgba(255,255,255,.3); }
.dash-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dash-search i {
  position: absolute;
  left: 11px;
  color: var(--g500);
  font-size: 11px;
  pointer-events: none;
}
.dash-search input {
  padding: 7px 12px 7px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color: var(--white);
  font-size: 12.5px;
  width: 180px;
  transition: border-color .2s, background-color .2s, width .25s;
  font-family: inherit;
}
.dash-search input::placeholder { color: var(--g600); }
.dash-search input:focus {
  outline: none;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  width: 220px;
}

/* Grid for cards */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* Subscription card */
.sub-card {
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  padding: 18px;
  transition: border-color .25s, transform .25s, background .25s;
  animation: fadein-up .35s cubic-bezier(.16,1,.3,1) both;
}
.sub-card:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  transform: translateY(-2px);
}
.sub-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.sub-card-head .sub-icon {
  width: 42px; height: 42px;
  font-size: 16px;
  background: rgba(255,255,255,.04);
  color: var(--white);
  opacity: 1;
}
.sub-card-body { margin-top: 4px; }
.sub-progress {
  height: 4px;
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.sub-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.6));
  border-radius: 999px;
  transition: width .5s cubic-bezier(.16,1,.3,1);
}
.sub-progress-bar.is-warn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.sub-progress-bar.is-lifetime {
  background: linear-gradient(90deg, #a78bfa, #818cf8);
}
.sub-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--g400);
}

/* Badge variants */
.badge-warn {
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.25);
  color: #fcd34d;
}
.badge-lifetime {
  background: rgba(167,139,250,.08);
  border: 1px solid rgba(167,139,250,.25);
  color: #c4b5fd;
}

/* Purchase card */
.purchase-card {
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  padding: 18px;
  transition: border-color .25s, transform .25s, background .25s;
  animation: fadein-up .35s cubic-bezier(.16,1,.3,1) both;
}
.purchase-card:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.purchase-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.purchase-head .sub-icon {
  width: 52px; height: 52px;
  font-size: 16px;
  background: rgba(255,255,255,.04);
  color: var(--white);
  opacity: 1;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.purchase-right { text-align: right; flex-shrink: 0; }
.purchase-amt {
  font-size: 12px;
  color: var(--g500);
  margin-top: 4px;
  font-weight: 500;
}
.purchase-key {
  padding: 12px 14px;
  background: var(--g975, #0a0a0a);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 12px;
}
.purchase-key:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.025);
}
.purchase-key-label {
  font-size: 10.5px;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  font-weight: 600;
}
.purchase-key-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Space Grotesk', ui-monospace, monospace;
  font-size: 13.5px;
  color: var(--white);
  letter-spacing: 1.2px;
  font-weight: 500;
}
.purchase-key-value span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchase-key-value i {
  font-size: 11px;
  color: var(--g600);
  transition: color .2s;
}
.purchase-key:hover .purchase-key-value i { color: var(--white); }
.purchase-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--g500);
}
.purchase-foot i { margin-right: 5px; opacity: .7; }

/* Redeem card form */
.dash-card-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.dash-card-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.dash-card-form-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}
.dash-card-form-head h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--white);
  font-weight: 700;
}
.dash-card-form-head p {
  font-size: 12.5px;
  color: var(--g400);
  margin: 0;
}

/* ═════════════════════════════════════════════════════════════
   DOWNLOAD CARD (single, hero-style)
   ═════════════════════════════════════════════════════════════ */
.dl-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.04), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.03), transparent 50%),
    rgba(255,255,255,.02);
  animation: fadein-up .4s cubic-bezier(.16,1,.3,1) both;
}
.dl-card-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%);
  pointer-events: none;
}
.dl-card-inner { position: relative; padding: 32px; }
.dl-card-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.dl-card-logo {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.dl-card-logo img { width: 42px; height: 42px; object-fit: contain; }
.dl-card-info { flex: 1; min-width: 240px; }
.dl-card-eyebrow {
  font-size: 11px;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dl-card-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.dl-card-desc {
  font-size: 13.5px;
  color: var(--g300);
  line-height: 1.6;
  margin: 0;
  max-width: 540px;
}
.dl-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 12px;
}
.dl-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--g300);
}
.dl-meta-item i {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--white);
  flex-shrink: 0;
}
.dl-card-unlocks { margin-bottom: 24px; }
.dl-card-unlocks-label {
  font-size: 11px;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.dl-card-unlocks-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(74,222,128,.06);
  border: 1px solid rgba(74,222,128,.2);
  color: #86efac;
  font-size: 11.5px;
  font-weight: 500;
}
.dl-chip i { font-size: 9px; }
.dl-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.dl-card-tip {
  font-size: 12px;
  color: var(--g500);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.dl-card-tip i {
  margin-right: 8px;
  color: var(--g400);
}

/* Locked state */
.dl-locked {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  padding: 48px 32px;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.012);
}
.dl-locked-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--g400);
}
.dl-locked h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 8px;
  font-weight: 700;
}
.dl-locked p {
  font-size: 13.5px;
  color: var(--g400);
  margin: 0;
  line-height: 1.6;
}

/* Card animations */
@keyframes fadein-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile tightening */
@media (max-width: 640px) {
  .dash-toolbar { gap: 10px; }
  .dash-toolbar-controls { width: 100%; }
  .dash-search input { flex: 1; width: 100%; }
  .dash-search input:focus { width: 100%; }
  .dash-search { flex: 1; }
  .dl-card-inner { padding: 24px 20px; }
  .dl-card-actions .btn { flex: 1; justify-content: center; }
}

/* ═════════════════════════════════════════════════════════════
   DASHBOARD V2 — even tabs, segmented filters, polished settings
   ═════════════════════════════════════════════════════════════ */

/* Tabs: stretch evenly across the row */
.dash-tabs.dash-tabs-even {
  width: 100%;
}
.dash-tabs.dash-tabs-even .dash-tab {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .dash-tabs.dash-tabs-even .dash-tab { padding: 11px 6px !important; }
}

/* Segmented control (filter group) — sleek pill row */
.dash-segmented {
  display: inline-flex;
  padding: 4px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  gap: 2px;
}
.dash-seg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: var(--g400);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.dash-seg i { font-size: 10px; opacity: .7; }
.dash-seg:hover {
  color: var(--g100);
  background: rgba(255,255,255,.025);
}
.dash-seg.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.dash-seg.active i { opacity: 1; color: var(--black); }
@media (max-width: 640px) {
  .dash-segmented { width: 100%; overflow-x: auto; }
  .dash-seg { flex: 1; justify-content: center; }
}

/* Wider standalone search bar (purchases) */
.dash-search-wide {
  display: flex;
  width: 100%;
  margin-bottom: 18px;
}
.dash-search-wide input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  font-size: 13.5px;
  border-radius: 10px;
}
.dash-search-wide input:focus { width: 100%; }
.dash-search-wide i {
  left: 14px;
  font-size: 13px;
}

/* Redeem key input — big, monospaced, centered feel */
.redeem-key-input {
  font-family: 'Space Grotesk', ui-monospace, monospace !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  font-size: 16px !important;
  padding: 14px 16px !important;
  font-weight: 600 !important;
}
.redeem-key-input::placeholder {
  letter-spacing: 3px;
  opacity: .35;
  font-weight: 500;
}

/* Download card — refined spacing */
.dl-card-inner { padding: 36px 38px !important; }
.dl-card-head { margin-bottom: 30px !important; gap: 24px !important; }
.dl-card-title { margin-bottom: 10px !important; }
.dl-card-desc { line-height: 1.65 !important; max-width: 560px !important; }
.dl-card-meta {
  padding: 18px 20px !important;
  gap: 14px !important;
  margin-bottom: 28px !important;
  border-radius: 14px !important;
}
.dl-meta-item { font-size: 13px !important; }
.dl-meta-item i {
  width: 28px !important;
  height: 28px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
}
.dl-card-unlocks { margin-bottom: 28px !important; }
.dl-card-unlocks-chips { gap: 8px !important; }
.dl-chip { padding: 6px 13px !important; font-size: 12px !important; }
.dl-card-actions { gap: 12px !important; margin-bottom: 22px !important; }
.dl-card-tip {
  padding-top: 20px !important;
  font-size: 12.5px !important;
  line-height: 1.6;
}

/* ───────────────────────────────────────────────
   SETTINGS V2 — card-based layout
   ─────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .settings-grid { grid-template-columns: 1fr; }
}
.settings-card {
  background: rgba(255,255,255,.018);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 22px;
  transition: border-color .25s, background .25s;
  animation: fadein-up .35s cubic-bezier(.16,1,.3,1) both;
}
.settings-card:hover {
  border-color: rgba(255,255,255,.10);
}
.settings-card-wide { grid-column: 1 / -1; }

.settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.settings-card-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--white);
  flex-shrink: 0;
}
.settings-card-head h3 {
  font-size: 0.98rem;
  margin: 0 0 4px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.settings-card-head p {
  font-size: 12px;
  color: var(--g500);
  margin: 0;
  line-height: 1.4;
}

/* Profile fields grid */
.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 540px) {
  .settings-fields { grid-template-columns: 1fr; }
}
.settings-field {
  padding: 12px 14px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 10px;
}
.settings-field-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--g500);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-field-label i { font-size: 10px; opacity: .8; }
.settings-field-value {
  font-size: 13.5px;
  color: var(--white);
  font-weight: 500;
  word-break: break-all;
}
.settings-field-mono {
  font-family: 'Space Grotesk', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .5px;
}

/* Toggle row (2FA) and action row (Reset HWID) */
.settings-toggle-row,
.settings-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 10px;
}
.settings-toggle-row + .settings-action-row { margin-top: 10px; }
.settings-toggle-title {
  font-size: 13.5px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 2px;
}
.settings-toggle-desc {
  font-size: 11.5px;
  color: var(--g500);
  line-height: 1.4;
}

/* Custom switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch input { display: none; }
.switch-track {
  width: 38px;
  height: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  position: relative;
  transition: background .25s, border-color .25s;
  flex-shrink: 0;
}
.switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.switch input:checked + .switch-track {
  background: #4ade80;
  border-color: #4ade80;
}
.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(16px);
  background: var(--white);
}
.switch-label {
  font-size: 12px;
  color: var(--g400);
  font-weight: 500;
  min-width: 56px;
}
.switch input:checked ~ .switch-label { color: #86efac; }

/* Discord card */
.discord-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(88,101,242,.06);
  border: 1px solid rgba(88,101,242,.18);
  border-radius: 12px;
  margin-bottom: 10px;
}
.discord-profile-card img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(88,101,242,.4);
  flex-shrink: 0;
}
.discord-profile-info { flex: 1; min-width: 0; }
.discord-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discord-profile-handle {
  font-size: 12px;
  color: #8b95f7;
}
.settings-hint {
  font-size: 12px;
  color: var(--g500);
  margin: 0 0 10px;
  line-height: 1.5;
}
.settings-inline-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.settings-inline-form .input-icon-wrapper { flex: 1; }
.settings-inline-form .btn { flex-shrink: 0; }
.settings-status {
  font-size: 12px;
  color: var(--g500);
  margin: 8px 0 0;
}

/* Danger card */
.settings-card-danger .settings-card-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  align-items: center;
}
.settings-card-danger .settings-card-head h3 { color: var(--white); }

/* Re-tune the toolbar so .dash-segmented sits right */
.dash-toolbar {
  align-items: center;
}
.dash-toolbar-controls { gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
   KX — Admin tabs (Overview / Activity Log / Server Health)
   Self-contained namespace. Do not rely on global classes.
═══════════════════════════════════════════════════════════════ */

/* Layout primitives */
.kx-section { margin-top: 20px; }
.kx-section:first-child { margin-top: 0; }

.kx-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.kx-toolbar-spacer { flex: 1 1 auto; }
.kx-toolbar-meta { font-size: 12px; color: var(--g500); }

.kx-input {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--white);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, background .15s;
  min-width: 220px;
}
.kx-input:focus { border-color: var(--accent); background: rgba(255,255,255,.05); }
.kx-input::placeholder { color: var(--g600); }

.kx-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--g400);
  user-select: none;
}
.kx-checkbox input { accent-color: var(--accent); }

.kx-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.06);
  color: var(--g300);
  vertical-align: middle;
}

/* Card primitive */
.kx-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.kx-card + .kx-card { margin-top: 20px; }
.kx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.kx-card-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.kx-card-head h4 i { color: var(--g400); font-size: 13px; }
.kx-card-sub { font-size: 12px; color: var(--g500); }

/* Two-column responsive split for the overview */
.kx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 980px) {
  .kx-split { grid-template-columns: 1fr; }
}

/* Stat-card grid (used by health stats + overview health summary) */
.kx-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.kx-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
}
.kx-stat-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius);
  background: rgba(255,107,53,.10);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.kx-stat-body { min-width: 0; flex: 1; }
.kx-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kx-stat-label {
  font-size: 11px;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

/* Activity log — row layout */
.kx-log {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.015);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kx-log-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  border-left: 3px solid transparent;
  transition: background .15s;
}
.kx-log-row:last-child { border-bottom: none; }
.kx-log-row:hover { background: rgba(255,255,255,.02); }
.kx-log-row.sev-success { border-left-color: #4ade80; }
.kx-log-row.sev-info    { border-left-color: #60a5fa; }
.kx-log-row.sev-warn    { border-left-color: #fbbf24; }
.kx-log-row.sev-danger  { border-left-color: #f87171; }
.kx-log-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g400);
  font-size: 12px;
}
.kx-log-body { flex: 1; min-width: 0; }
.kx-log-headline {
  font-size: 13px;
  color: var(--g200);
  line-height: 1.4;
}
.kx-log-headline strong { color: var(--white); font-weight: 600; }
.kx-log-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--g500);
  font-variant-numeric: tabular-nums;
}
.kx-log-meta .kx-log-ago { opacity: .7; margin-left: 6px; }
.kx-log-details {
  margin-top: 4px;
  font-size: 11px;
  color: var(--g400);
  font-family: 'Space Grotesk', monospace;
  word-break: break-word;
}
.kx-log-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--g500);
  font-size: 13px;
}
.kx-log-empty i { display: block; font-size: 22px; margin-bottom: 8px; opacity: .5; }

/* Server Health — verdict pill */
.kx-verdict {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.kx-verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--white);
}
.kx-verdict-pill.ok   { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.35);  color: #4ade80; }
.kx-verdict-pill.warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4);  color: #fbbf24; }
.kx-verdict-pill.down { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.4);   color: #f87171; }
.kx-verdict-sub { font-size: 12px; color: var(--g400); flex: 1; min-width: 200px; }

/* Server Health — traffic chart */
.kx-chart-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--g500);
}
.kx-chart-legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.kx-canvas {
  display: block;
  width: 100%;
  height: 220px;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius);
}
.kx-chart-foot {
  margin-top: 10px;
  font-size: 11px;
  color: var(--g500);
  text-align: right;
}

/* Server Health — subsystem checks list */
.kx-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kx-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
}
.kx-check-icon {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  color: var(--g400);
}
.kx-check.ok   .kx-check-icon { background: rgba(34,197,94,.12);  color: #4ade80; }
.kx-check.warn .kx-check-icon { background: rgba(245,158,11,.12); color: #fbbf24; }
.kx-check.down .kx-check-icon { background: rgba(239,68,68,.12);  color: #f87171; }
.kx-check-body { flex: 1; min-width: 0; }
.kx-check-name { font-size: 13px; font-weight: 600; color: var(--white); }
.kx-check-msg  { font-size: 11px; color: var(--g500); margin-top: 2px; }
.kx-check-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  flex: 0 0 auto;
}
.kx-check.ok   .kx-check-pill { background: rgba(34,197,94,.15);  color: #4ade80; }
.kx-check.warn .kx-check-pill { background: rgba(245,158,11,.15); color: #fbbf24; }
.kx-check.down .kx-check-pill { background: rgba(239,68,68,.15);  color: #f87171; }

/* Server Health — recent errors */
.kx-errors {
  display: flex;
  flex-direction: column;
}
.kx-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 12px;
}
.kx-error:last-child { border-bottom: none; }
.kx-error-status {
  flex: 0 0 56px;
  text-align: center;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  color: #f87171;
  background: rgba(239,68,68,.12);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.kx-error-path {
  flex: 1;
  min-width: 0;
  color: var(--g300);
  font-family: 'Space Grotesk', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kx-error-ts { color: var(--g500); font-size: 11px; flex: 0 0 auto; }

/* Overview Recent Activity — cap height so card doesn't tower */
.kx-overview-activity { max-height: 380px; overflow-y: auto; }



/* -- Segmented timeframe control --- */
.kx-seg {
    display: inline-flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-full, 999px);
    padding: 3px;
    gap: 2px;
}
.kx-seg-btn {
    background: transparent;
    color: var(--g400);
    border: none;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full, 999px);
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
    font-family: inherit;
}
.kx-seg-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.kx-seg-btn.active {
    background: var(--accent);
    color: #fff;
}

/* -- Overview health strip --- */
.kx-overview-health {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 4px 2px;
}
.kx-overview-health-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.kx-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}
.kx-mini-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--g500);
    font-weight: 600;
}
.kx-mini-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* === Configs page === */

/* ---------------------------------------------------------------
   Configs Page � full restyle (.cfg-* namespace)
   --------------------------------------------------------------- */
.cfg-hero {
    padding: calc(var(--nav-h) + 56px) 0 32px;
    position: relative;
    overflow: hidden;
}
.cfg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.05) 0%, transparent 60%);
    pointer-events: none;
}
.cfg-hero-inner { text-align: center; position: relative; z-index: 1; }
.cfg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--g300);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.cfg-hero-eyebrow i { font-size: 10px; opacity: .8; }
.cfg-hero-title {
    font-size: clamp(38px, 5.6vw, 64px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.02;
    margin: 0 0 14px;
    background: linear-gradient(180deg, #fff 0%, #b8b8c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cfg-hero-sub {
    color: var(--g400);
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto;
}

/* Stats bar */
.cfg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 28px;
}
@media (max-width: 700px) { .cfg-stats { grid-template-columns: 1fr; } }
.cfg-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(22,22,28,.7), rgba(14,14,18,.7));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    transition: border-color .25s, transform .25s;
}
.cfg-stat:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px); }
.cfg-stat-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.cfg-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.cfg-stat-label {
    font-size: 11.5px;
    color: var(--g500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 2px;
}

/* Toolbar */
.cfg-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
    padding: 10px 12px;
    background: rgba(14,14,18,.6);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
}
.cfg-filter-group {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}
.cfg-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--g400);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
}
.cfg-filter-btn i { font-size: 11px; opacity: .75; }
.cfg-filter-btn:hover { color: #fff; background: rgba(255,255,255,.04); }
.cfg-filter-btn.active {
    color: #0a0a0e;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(255,255,255,.12);
}
.cfg-filter-btn.active i { opacity: 1; }
.cfg-toolbar-actions { display: flex; gap: 8px; align-items: center; }

/* Grid + cards */
.cfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.cfg-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(22,22,28,.85), rgba(13,13,17,.85));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative;
}
.cfg-card:hover {
    border-color: rgba(255,255,255,.18);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.cfg-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0e;
}
.cfg-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.cfg-card:hover .cfg-card-media img { transform: scale(1.04); }
.cfg-card-media-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at center, rgba(255,255,255,.05), transparent 70%);
    color: var(--g600);
    font-size: 42px;
}
.cfg-card-game {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0,0,0,.7);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 99px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    backdrop-filter: blur(8px);
}
.cfg-card-game i { font-size: 10px; opacity: .85; }
.cfg-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}
.cfg-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -.01em;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.cfg-card-desc {
    font-size: 13px;
    color: var(--g400);
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}
.cfg-card-desc-empty { font-style: italic; color: var(--g600); }
.cfg-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.05);
}
.cfg-card-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cfg-card-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #c8c8d0);
    color: #0a0a0e;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}
.cfg-card-author-meta { display: flex; flex-direction: column; min-width: 0; }
.cfg-card-author-name {
    font-size: 12.5px;
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}
.cfg-card-author-date {
    font-size: 11px;
    color: var(--g500);
}
.cfg-card-downloads {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    color: var(--g300);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}
.cfg-card-downloads i { font-size: 10px; opacity: .8; }
.cfg-card-actions { display: flex; gap: 8px; align-items: center; }
.cfg-card-dl { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 6px; }
.cfg-card-dl i { font-size: 11px; }
.cfg-card-del {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.18);
    color: #f87171;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.cfg-card-del:hover { background: rgba(239,68,68,.18); color: #fff; border-color: rgba(239,68,68,.45); }

/* Empty / loading state */
.cfg-empty {
    grid-column: 1 / -1;
    padding: 64px 24px;
    text-align: center;
    color: var(--g500);
    background: rgba(14,14,18,.45);
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 16px;
}
.cfg-empty p { margin: 12px 0 0; font-size: 13.5px; }
.cfg-empty i { font-size: 22px; opacity: .6; }
.cfg-empty-lg { padding: 80px 24px; }
.cfg-empty-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--g500);
    font-size: 26px;
}
.cfg-empty-lg h3 { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.cfg-empty-lg p { color: var(--g500); font-size: 14px; max-width: 360px; margin: 0 auto; }

/* === Nav user avatar: default grey-guy state === */
.nav-user-avatar.is-default {
    background: #4f5660;
    border-color: #5a626d;
    color: #fff;
    font-size: 14px;
}
.nav-user-avatar.is-default i { opacity: .95; }
.nav-user-avatar.has-discord {
    background: transparent;
    border-color: rgba(255,255,255,.16);
    padding: 0;
    overflow: hidden;
}
.nav-user-avatar.has-discord img { display: block; }

/* === Product card: live status pill + unavailable state === */
.product-status-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    z-index: 2;
}
.product-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.2); opacity: .7; }
}
.product-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7));
    z-index: 1;
}
.product-card-unavailable {
    cursor: not-allowed;
    opacity: .85;
}
.product-card-unavailable:hover {
    transform: none !important;
    border-color: rgba(255,255,255,.05) !important;
    box-shadow: none !important;
}
.product-card-unavailable .product-thumb img,
.product-card-unavailable .product-thumb-placeholder {
    filter: grayscale(.6) brightness(.55);
}
.product-unavailable-text {
    color: #f87171 !important;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-unavailable-text i { font-size: 11px; }

/* === Product detail: status banner === */
.pd-status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    margin-bottom: 28px;
}
.pd-status-banner.is-blocked {
    background: linear-gradient(90deg, rgba(239,68,68,.08), rgba(239,68,68,.02));
    border-color: rgba(239,68,68,.25);
}
.pd-status-banner-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    font-size: 16px;
    flex-shrink: 0;
}
.pd-status-banner-text { flex: 1; min-width: 0; }
.pd-status-banner-title { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 2px; }
.pd-status-banner-sub   { font-size: 12px; color: var(--g400); margin: 0; }
.btn-disabled-locked {
    opacity: .5;
    cursor: not-allowed !important;
    pointer-events: none;
}



/* ------------------------------------------------------------------
   ADMIN � Key Management (rewritten)
   ------------------------------------------------------------------ */
.km-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.km-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255,255,255,.018);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    transition: border-color .2s, background .2s;
}
.km-stat:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.km-stat-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    font-size: 18px;
    flex-shrink: 0;
}
.km-stat-num   { font-size: 22px; font-weight: 800; color: #fff; font-family: 'Space Grotesk', sans-serif; line-height: 1; }
.km-stat-label { font-size: 11px; color: var(--g500); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.km-card {
    background: rgba(255,255,255,.018);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.km-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.km-card-head h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.km-card-head h3 i { font-size: 13px; opacity: .7; }
.km-card-head h3 span { color: var(--accent, #fff); font-family: 'Space Grotesk', sans-serif; }

.km-tabs {
    display: inline-flex;
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
.km-tab {
    background: transparent;
    border: 0;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--g400);
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.km-tab:hover { color: #fff; }
.km-tab.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.km-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.km-form-grid .form-group { margin-bottom: 0; }
.km-form-grid .form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--g500);
    margin-bottom: 6px;
    display: block;
}
.km-note-group { grid-column: 1 / -1; }
.km-form-foot {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.km-hint {
    font-size: 12px;
    color: var(--g400);
    background: rgba(255,255,255,.02);
    border-left: 2px solid rgba(255,255,255,.15);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
    line-height: 1.5;
}

.km-multi-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.km-multi-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px;
    transition: border-color .15s;
}
.km-multi-row:hover { border-color: rgba(255,255,255,.1); }
.km-multi-num {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    font-size: 11px;
    font-weight: 700;
    color: var(--g300);
    flex-shrink: 0;
}
.km-multi-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.km-multi-remove {
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,.05);
    background: transparent;
    color: var(--g500);
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.km-multi-remove:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #f87171; }

/* Output card */
.km-output-card {
    border-color: rgba(34,197,94,.2);
    background: linear-gradient(180deg, rgba(34,197,94,.04), rgba(34,197,94,.01));
    animation: km-output-in .35s cubic-bezier(.16,1,.3,1);
}
@keyframes km-output-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.km-out-actions { display: flex; gap: 6px; }

/* Browse toolbar */
.km-browse-toolbar {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    margin-bottom: 16px;
}
.km-search {
    position: relative;
}
.km-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--g500);
    font-size: 12px;
    pointer-events: none;
}
.km-search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    transition: border-color .15s, background .15s;
}
.km-search input:focus {
    outline: none;
    border-color: rgba(255,255,255,.2);
    background: rgba(0,0,0,.55);
}
.km-filter {
    min-width: 140px;
    padding: 0 14px;
    border-radius: 10px !important;
    background: rgba(0,0,0,.4) !important;
    border-color: rgba(255,255,255,.06) !important;
}

.km-browse-meta {
    font-size: 11px;
    color: var(--g500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Key rows */
.km-key-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 4px;
}
.km-key-list::-webkit-scrollbar { width: 6px; }
.km-key-list::-webkit-scrollbar-track { background: transparent; }
.km-key-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }
.km-key-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); }

.km-key-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px;
    transition: border-color .15s, background .15s;
}
.km-key-row:hover {
    border-color: rgba(255,255,255,.12);
    background: rgba(0,0,0,.5);
}
.km-key-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.km-key-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.km-key-code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.04);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: .3px;
    word-break: break-all;
}
.km-key-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.km-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.05);
    font-size: 10px;
    color: var(--g300);
    font-weight: 500;
    letter-spacing: .2px;
}
.km-tag-multi {
    background: rgba(167,139,250,.06);
    border-color: rgba(167,139,250,.15);
    color: #c4b5fd;
}
.km-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.km-type-pill i { font-size: 9px; }
.km-type-multi {
    background: rgba(167,139,250,.12);
    border-color: rgba(167,139,250,.3);
    color: #c4b5fd;
}
.km-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.km-status-fresh {
    background: rgba(251,191,36,.1);
    border: 1px solid rgba(251,191,36,.25);
    color: #fcd34d;
}
.km-status-used {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--g400);
}
.km-note {
    font-size: 11px;
    color: var(--g500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.km-note i { font-size: 10px; opacity: .7; }
.km-key-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.km-action {
    width: 32px; height: 32px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.05);
    color: var(--g400);
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    font-size: 12px;
}
.km-action:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
    color: #fff;
}
.km-action-danger:hover {
    background: rgba(239,68,68,.1);
    border-color: rgba(239,68,68,.35);
    color: #f87171;
}

@media (max-width: 768px) {
    .km-stats { grid-template-columns: 1fr; }
    .km-form-grid { grid-template-columns: 1fr; }
    .km-multi-fields { grid-template-columns: 1fr; }
    .km-browse-toolbar { grid-template-columns: 1fr 1fr; }
    .km-search { grid-column: 1 / -1; }
    .km-key-row { flex-direction: column; align-items: stretch; }
    .km-key-actions { justify-content: flex-end; }
}


/* ═══════════════════════════════════════════════════════════════════
   FINAL POLISH PASS — site-wide refinement layer
   Applied last so it overrides earlier rules where intentional.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Typography refinements ─────────────────────────────── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
    font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
}
h1 { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.02em; }

::selection {
    background: rgba(255,255,255,.16);
    color: #fff;
}

/* ── Scrollbar polish ───────────────────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.10) transparent;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.16);
    background-clip: padding-box;
    border: 2px solid transparent;
}

/* ── Focus visibility (a11y + polish) ───────────────────── */
:focus-visible {
    outline: 2px solid rgba(255,255,255,.6);
    outline-offset: 2px;
    border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid rgba(255,255,255,.7);
    outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

/* ── Navbar polish ──────────────────────────────────────── */
.nav {
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    background: rgba(0,0,0,.62);
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled {
    background: rgba(0,0,0,.78);
    border-bottom-color: rgba(255,255,255,.07);
}
.nav-links a {
    transition: color .18s ease, background .18s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: width .25s cubic-bezier(.4,0,.2,1), left .25s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 18px;
    left: calc(50% - 9px);
}

/* ── Button refinements ─────────────────────────────────── */
.btn, button[class*="btn-"] {
    transition: transform .15s cubic-bezier(.4,0,.2,1),
                box-shadow .2s ease,
                background .18s ease,
                border-color .18s ease,
                color .18s ease,
                opacity .18s ease;
    will-change: transform;
}
.btn:active, button[class*="btn-"]:active {
    transform: translateY(1px) scale(.99);
}
.btn-white {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 6px rgba(255,255,255,.04);
}
.btn-white:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 14px rgba(255,255,255,.10), 0 1px 0 rgba(0,0,0,.04);
    transform: translateY(-1px);
}

/* ── Card hover refinement (subtler, cleaner) ───────────── */
.product-card,
.pricing-card,
.feature-card,
.purchase-card {
    transition: transform .25s cubic-bezier(.4,0,.2,1),
                border-color .25s ease,
                box-shadow .25s ease,
                background .25s ease;
    will-change: transform;
}
.product-card:hover,
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 14px 40px rgba(0,0,0,.42), 0 2px 0 rgba(255,255,255,.02) inset;
}
.pricing-card:hover {
    border-color: rgba(255,255,255,.14);
    box-shadow: 0 16px 44px rgba(0,0,0,.5);
}

/* ── Input refinements ──────────────────────────────────── */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.input:hover:not(:focus),
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: rgba(255,255,255,.14);
}
.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(255,255,255,.32);
    box-shadow: 0 0 0 3px rgba(255,255,255,.05);
    outline: none;
}

/* ── Modal polish ───────────────────────────────────────── */
.modal-overlay {
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    background: rgba(0,0,0,.72);
    transition: opacity .22s ease;
}
.modal {
    box-shadow: 0 24px 80px rgba(0,0,0,.6),
                0 1px 0 rgba(255,255,255,.04) inset;
    animation: modalRise .26s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes modalRise {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.modal-close:hover {
    transform: rotate(90deg);
}

/* ── Link refinements ───────────────────────────────────── */
a {
    transition: color .15s ease, opacity .15s ease;
}

/* ── Badge / chip polish ────────────────────────────────── */
.badge,
.pill,
.chip {
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    font-feature-settings: "tnum" 1;
}

/* ── Footer polish ──────────────────────────────────────── */
footer .footer-action,
.footer-action {
    transition: background .18s ease, border-color .18s ease,
                color .18s ease, transform .18s ease;
}
.footer-action:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.16);
}

/* ── Toast polish ───────────────────────────────────────── */
.toast {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    animation: toastSlide .3s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Hero / section spacing rhythm ──────────────────────── */
.hero-eyebrow,
.section-eyebrow,
.eyebrow {
    letter-spacing: 2.4px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
}

/* ── Product card image polish (centering tweaks) ───────── */
.product-thumb {
    position: relative;
    overflow: hidden;
}
.product-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
    pointer-events: none;
    opacity: .7;
    transition: opacity .25s ease;
}
.product-card:hover .product-thumb::after {
    opacity: .5;
}
.product-thumb img {
    transition: transform .5s cubic-bezier(.2,.8,.25,1), filter .3s ease;
}
.product-card:hover .product-thumb img {
    transform: scale(1.04);
}

/* ── Subscription / purchase head icon (already 52×52)  ─── */
.purchase-head .sub-icon {
    transition: transform .25s ease, border-color .25s ease;
}
.purchase-card:hover .purchase-head .sub-icon {
    transform: scale(1.04);
    border-color: rgba(255,255,255,.14);
}

/* ── Loading / skeleton polish ──────────────────────────── */
.skeleton,
[data-skeleton] {
    background: linear-gradient(90deg,
        rgba(255,255,255,.03) 25%,
        rgba(255,255,255,.07) 50%,
        rgba(255,255,255,.03) 75%);
    background-size: 200% 100%;
    animation: skeletonShine 1.6s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes skeletonShine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Dropdown polish ────────────────────────────────────── */
.nav-dropdown {
    box-shadow: 0 20px 50px rgba(0,0,0,.55),
                0 1px 0 rgba(255,255,255,.04) inset;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.nav-dropdown-item {
    transition: background .15s ease, color .15s ease, padding .15s ease;
}
.nav-dropdown-item:hover {
    padding-left: 22px;
}

/* ── Tag / status dot polish ────────────────────────────── */
.status-dot {
    box-shadow: 0 0 0 0 currentColor;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
    50%      { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.status-dot.status-offline {
    animation: none;
    box-shadow: none;
}

/* ── Image rendering ───────────────────────────────────── */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* ── Code / mono polish ─────────────────────────────────── */
code, pre, kbd, samp, .mono {
    font-feature-settings: "calt" 0, "liga" 0, "tnum" 1, "zero" 1;
}

/* ── Disabled state consistency ─────────────────────────── */
button:disabled,
.btn:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: .45;
}

/* ── Reduced motion respect ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Print: keep clean ──────────────────────────────────── */
@media print {
    .nav, footer, .modal-overlay, #neural-bg {
        display: none !important;
    }
    body { background: #fff; color: #000; }
}

/* ── Tiny universal hover-lift utility ──────────────────── */
.hover-lift {
    transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* ── Smooth anchor scroll site-wide ─────────────────────── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ── Container max-width consistency (gentle nudge) ─────── */
.container, .page-container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

/* ── Cart nav badge polish (matches new cart UI) ────────── */
.cart-nav-icon {
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.cart-nav-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.18);
}
.cart-nav-badge {
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
    font-feature-settings: "tnum" 1;
    animation: cartBadgePop .3s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes cartBadgePop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   MENU 3D CARD — interactive tilt card for menu preview showcase
═══════════════════════════════════════════════════════════════════ */

.menu-showcase {
    position: relative;
    overflow: hidden;
}
.menu-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.035) 0%, transparent 70%);
    pointer-events: none;
}

.menu-showcase-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
}
.menu-showcase-inner .section-label {
    margin-bottom: 12px;
}
.menu-showcase-inner .section-title {
    margin-bottom: 14px;
    line-height: 1.1;
}
.menu-showcase-inner .section-desc {
    margin-bottom: 0;
}

/* Scene wrapper — Three.js canvas injected here */
.menu-3d-scene {
    position: relative;
    width: 100%;
    max-width: 820px;
    padding: 12px;
    box-sizing: border-box;
    cursor: default;
}

/* Outer glow ring — subtle gradient border */
.menu-3d-glow-ring {
    position: relative;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.16) 0%,
        rgba(255,255,255,.04) 40%,
        rgba(100,120,255,.08) 70%,
        rgba(255,255,255,.10) 100%
    );
    box-shadow:
        0 0  0 1px rgba(255,255,255,.04),
        0 48px 90px rgba(0,0,0,.72),
        0 0  80px rgba(120,140,255,.06);
    transition: box-shadow .4s ease;
}
.menu-3d-glow-ring:hover {
    box-shadow:
        0 0  0 1px rgba(255,255,255,.07),
        0 70px 130px rgba(0,0,0,.82),
        0 0  120px rgba(140,160,255,.10);
}

/* Canvas wrapper — clips WebGL to rounded rect */
.menu-3d-canvas-wrap {
    position: relative;
    border-radius: 19px;
    overflow: hidden;
    background: #080808;
    display: block;
    line-height: 0;
}
.menu-3d-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* Live badge bottom-right of canvas wrap */
.menu-3d-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(0,0,0,.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .3px;
    box-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.menu-3d-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80, 0 0 16px rgba(74,222,128,.4);
    animation: menu-badge-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes menu-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(.85); }
}

/* Feature pills row below card */
.menu-float-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 680px;
}
.menu-float-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--g300);
    transition: border-color .22s, background .22s, color .22s, transform .22s;
    cursor: default;
}
.menu-float-pill:hover {
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #fff;
    transform: translateY(-2px);
}
.menu-float-pill i {
    font-size: 10px;
    opacity: .7;
}

/* Hero 3D card variant (inside pd-hero-grid column) */
.pd-hero-media-3d {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-hero-media-3d .menu-3d-scene {
    max-width: 100%;
    padding: 12px;
}

/* ── DayZ product page: hero improvements ──────────────────── */
.pd-hero.pd-hero-dayz .pd-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}
.pd-hero.pd-hero-dayz .pd-hero-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}
.pd-hero.pd-hero-dayz .pd-hero-img {
    object-position: center center;
}
.pd-hero.pd-hero-dayz .pd-title {
    font-size: clamp(34px, 4.5vw, 52px);
}
.pd-hero.pd-hero-dayz .pd-desc {
    font-size: 15px;
    line-height: 1.7;
}

/* ── Lifetime pricing card ──────────────────────────────────── */
.pricing-lifetime {
    border-color: rgba(139, 92, 246, .28) !important;
    background: linear-gradient(160deg,
        rgba(139,92,246,.06) 0%,
        rgba(79,70,229,.02) 100%) !important;
    position: relative;
    overflow: hidden;
}
.pricing-lifetime::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,.1), transparent 65%);
    pointer-events: none;
}
.pricing-badge-lifetime {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    color: #fff !important;
}
.pricing-amount-inf {
    margin: 8px 0 !important;
}
.pricing-amount-inf .fa-infinity {
    font-size: 38px;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    text-align: center;
}
.btn-lifetime {
    background: rgba(139,92,246,.10) !important;
    border: 1px solid rgba(139,92,246,.35) !important;
    color: #c4b5fd !important;
    transition: background .2s, border-color .2s, color .2s !important;
}
.btn-lifetime:hover {
    background: rgba(139,92,246,.20) !important;
    border-color: rgba(139,92,246,.65) !important;
    color: #fff !important;
}

/* ── Products page — cleaner card layout ─────────────────────── */
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 20px !important;
}
.product-card {
    border-radius: 16px !important;
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s !important;
}
.product-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(255,255,255,.12) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.55) !important;
}
.product-thumb {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
}
.product-info {
    padding: 18px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}
.product-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}
.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--g400);
    letter-spacing: .3px;
}
.product-tag-type {
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.05);
    color: var(--g600);
}
.product-game { display: none !important; }
.product-type { display: none !important; }
.product-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    letter-spacing: -.4px !important;
    line-height: 1.2 !important;
    margin: 0 0 8px !important;
}
.product-desc {
    font-size: 13px !important;
    color: var(--g500) !important;
    line-height: 1.55 !important;
    margin: 0 0 14px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.product-price-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.05);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.product-from {
    font-size: 13px !important;
    color: var(--g400) !important;
}
.product-from strong {
    color: var(--white) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}
.product-arrow {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    color: var(--g400) !important;
    transition: background .2s, border-color .2s, color .2s, transform .2s !important;
    transform: none !important;
}
.product-card:hover .product-arrow {
    background: var(--white) !important;
    border-color: var(--white) !important;
    color: var(--black) !important;
    transform: translateX(3px) !important;
}

@media (max-width: 860px) {
    .pd-hero.pd-hero-dayz .pd-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .menu-showcase-inner { gap: 36px; }
    .menu-3d-scene { padding: 10px; }
}
@media (max-width: 520px) {
    .menu-float-pills { gap: 6px; }
    .menu-float-pill { padding: 6px 11px; font-size: 11px; }
    .menu-3d-badge { font-size: 10.5px; padding: 6px 11px; }
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN — Enhanced User Detail Panel
═══════════════════════════════════════════════════════════════════ */

.ud-section {
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}
.ud-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--g200);
    border-bottom: 1px solid rgba(255,255,255,.04);
    background: rgba(255,255,255,.012);
}
.ud-section-head i { color: var(--accent); font-size: 11px; opacity: .65; }

.ud-subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 14px;
}
.ud-sub-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 14px;
    transition: border-color .2s;
}
.ud-sub-card:hover { border-color: rgba(255,255,255,.14); }

.ud-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.ud-two-col .ud-section { margin-bottom: 0; }

.ud-action-card {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.035);
}
.ud-action-card:last-child { border-bottom: none; }
.ud-action-card label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--g500);
    font-weight: 600;
    margin-bottom: 6px;
}

@media (max-width: 860px) {
    .ud-two-col { grid-template-columns: 1fr; }
    .ud-subs-grid { grid-template-columns: 1fr; }
}

/* ── DayZ Product Gallery & Lightbox Styles ─────────────────── */
.pd-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.pd-gallery-viewport {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-gallery-media-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: pdGalleryFadeIn 0.3s ease-in-out;
}

.pd-gallery-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
}

.pd-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: none; /* Controlled by js but flex when shown */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.pd-gallery-container:hover .pd-gallery-nav {
    opacity: 1;
}

.pd-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.pd-gallery-prev {
    left: 14px;
}

.pd-gallery-next {
    right: 14px;
}

.pd-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 5;
    transition: opacity 0.25s;
}

.pd-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.pd-gallery-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* Lightbox Modal */
.pd-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 3, 0.96);
    backdrop-filter: blur(16px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-lightbox.active {
    display: flex;
    opacity: 1;
}

.pd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    z-index: 100000;
}

.pd-lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.pd-lightbox-content {
    max-width: 92%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pd-lightbox-media {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: pdLightboxZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes pdLightboxZoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ── Hero Scattered Screenshots (Premium Look) ─────────────── */
.hero-content {
    position: relative;
    z-index: 2 !important;
}

.hero-scattered-images {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.scattered-image {
    position: absolute;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.6);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    object-fit: cover;
    opacity: 0.85;
    aspect-ratio: 16 / 9;
    will-change: transform;
    animation-fill-mode: forwards;
}

.scattered-image-1 {
    width: min(220px, 20vw);
    left: 5%;
    top: 25%;
    transform: rotate(-10deg);
    animation: heroFloatLeft 12s ease-in-out infinite;
}

.scattered-image-2 {
    width: min(340px, 28vw);
    right: 4%;
    top: 15%;
    transform: rotate(6deg);
    animation: heroFloatRight 15s ease-in-out infinite;
}

.scattered-image-3 {
    width: min(180px, 16vw);
    right: 15%;
    bottom: 12%;
    transform: rotate(-8deg);
    animation: heroFloatBottom 10s ease-in-out infinite;
}

@keyframes heroFloatLeft {
    0% { transform: translate(0, 0) rotate(-10deg); }
    50% { transform: translate(-8px, 12px) rotate(-8deg); }
    100% { transform: translate(0, 0) rotate(-10deg); }
}

@keyframes heroFloatRight {
    0% { transform: translate(0, 0) rotate(6deg); }
    50% { transform: translate(10px, -15px) rotate(4deg); }
    100% { transform: translate(0, 0) rotate(6deg); }
}

@keyframes heroFloatBottom {
    0% { transform: translate(0, 0) rotate(-8deg); }
    50% { transform: translate(-6px, -10px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(-8deg); }
}

@media (max-width: 1024px) {
    .scattered-image {
        opacity: 0.45;
    }
}

@media (max-width: 768px) {
    .hero-scattered-images {
        display: none;
    }
}



