/* =========================================================================
   NOX CONNECTION — Dashboard shell
   Tema: teal-gold (ikut layout.css existing), struktur ala Elite Gamers Arena
   Kombinasi dengan Tailwind CDN (dipakai untuk utility class di Blade)
   ========================================================================= */

:root {
  --nox-bg-900:     #001f1f;
  --nox-bg-800:     #003332;
  --nox-bg-700:     #034c36;
  --nox-bg-600:     #0a6b52;
  --nox-panel:      rgba(8, 48, 44, 0.72);
  --nox-panel-soft: rgba(255, 255, 255, 0.04);
  --nox-border:     rgba(127, 216, 184, 0.12);
  --nox-border-hi:  rgba(127, 216, 184, 0.35);
  --nox-text:       #eafff6;
  --nox-text-muted: #9cbfb3;
  --nox-mint:       #7fd8b8;
  --nox-gold:       #d4af37;
  --nox-gold-soft:  #f7d794;
  --nox-magenta:    #e91e63;
  --nox-magenta-soft: #ff5f8f;

  --sidebar-w: 280px;
  --strip-w:   64px;
  --topbar-h:  68px;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(127, 216, 184, 0.15);
}

* { box-sizing: border-box; }

/* SVG icon utilities (replace emoji icons) */
.nox-heading-icon {
  flex-shrink: 0; color: var(--nox-mint); opacity: 0.85;
  display: inline; vertical-align: -3px; margin-right: 2px;
}
.nox-nav__icon svg {
  display: block; width: 18px; height: 18px;
}

html, body { margin: 0; padding: 0; }

/* ===== Base reset (replaces the removed Tailwind CDN preflight) ===== */
*, ::before, ::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, blockquote, figure, pre, dl, dd { margin: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; cursor: pointer; }
img, svg, video, canvas { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--nox-text);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(127, 216, 184, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(212, 175, 55, 0.05), transparent 60%),
    linear-gradient(180deg, var(--nox-bg-900) 0%, var(--nox-bg-800) 40%, var(--nox-bg-700) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Shell ---------- */

.nox-shell {
  display: flex;
  min-height: 100vh;
}

.nox-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nox-main {
  padding: 28px 36px 48px;
  flex: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.nox-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--nox-border);
  color: var(--nox-text-muted);
  font-size: 0.85rem;
}
.nox-footer a:hover { color: var(--nox-mint); }

/* ---------- Sidebar ---------- */

.nox-sidebar {
  width: var(--sidebar-w);
  display: flex;
  flex-shrink: 0;
  border-right: 1px solid var(--nox-border);
  background: linear-gradient(180deg, rgba(0, 31, 31, 0.95), rgba(3, 76, 54, 0.85));
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  transition: transform 0.25s ease;
}

.nox-sidebar__strip {
  width: var(--strip-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 14px;
  border-right: 1px solid var(--nox-border);
  background: rgba(0, 0, 0, 0.2);
}

.nox-strip-logo img {
  width: 40px; height: 40px; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(127, 216, 184, 0.3);
}

.nox-strip-list {
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto;
  width: 100%; align-items: center; padding-top: 10px;
  border-top: 1px solid var(--nox-border);
  flex: 1;
}
.nox-strip-list::-webkit-scrollbar { display: none; }

.nox-strip-item {
  width: 44px; height: 44px; border-radius: 12px;
  overflow: hidden; position: relative;
  border: 2px solid transparent;
  background: var(--nox-panel-soft);
  transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center;
  color: var(--nox-text-muted); font-weight: 700; font-size: 1.2rem;
}
.nox-strip-item img { width: 100%; height: 100%; object-fit: cover; }
.nox-strip-item:hover { border-color: var(--nox-gold); transform: translateY(-2px); }
.nox-strip-item--add { border-style: dashed; border-color: var(--nox-border-hi); }

.nox-sidebar__panel {
  flex: 1;
  padding: 20px 18px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}

.nox-user {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 0;
  margin-bottom: 18px;
}
.nox-user__avatar {
  width: 44px; height: 44px; border-radius: 50%; position: relative;
  background: var(--nox-bg-600);
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--nox-gold);
}
.nox-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nox-user__badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--nox-magenta); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--nox-bg-800);
}
.nox-user__meta { display: flex; flex-direction: column; min-width: 0; }
.nox-user__greet { font-size: 0.72rem; color: var(--nox-text-muted); }
.nox-user__name  { font-size: 0.95rem; color: var(--nox-gold-soft); }

.nox-nav { display: flex; flex-direction: column; gap: 4px; }

.nox-nav__group {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--nox-text-muted);
  padding: 16px 12px 6px;
  text-transform: uppercase;
}

.nox-nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--nox-text-muted);
  font-size: 0.92rem; font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}
.nox-nav__item:hover {
  background: var(--nox-panel-soft);
  color: var(--nox-text);
}
.nox-nav__item.is-active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), transparent);
  color: var(--nox-gold-soft);
  box-shadow: inset 3px 0 0 var(--nox-gold);
}
.nox-nav__icon { width: 22px; text-align: center; }
.nox-nav__badge {
  margin-left: auto;
  background: var(--nox-bg-600);
  color: var(--nox-mint);
  padding: 1px 8px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
}

.nox-premium-card {
  margin-top: auto;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(247, 215, 148, 0.05));
  border: 1px solid var(--nox-border-hi);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nox-premium-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(212, 175, 55, 0.25), transparent 70%);
  pointer-events: none;
}
.nox-premium-card__icon {
  font-size: 1.8rem; margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}
.nox-premium-card h4 { font-size: 0.95rem; margin: 0 0 6px; color: var(--nox-gold-soft); }
.nox-premium-card p  { font-size: 0.78rem; color: var(--nox-text-muted); margin: 0 0 14px; line-height: 1.45; }
.nox-premium-card__btn {
  display: inline-block;
  padding: 8px 18px; border-radius: 20px;
  background: linear-gradient(135deg, var(--nox-gold), var(--nox-gold-soft));
  color: var(--nox-bg-900); font-weight: 700; font-size: 0.82rem;
  transition: transform 0.15s;
}
.nox-premium-card__btn:hover { transform: translateY(-2px); }

/* ---------- Top navbar ---------- */

.nox-topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 32px;
  border-bottom: 1px solid var(--nox-border);
  background: rgba(0, 31, 31, 0.8);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 40;
}

.nox-topbar__toggle {
  background: transparent; border: 1px solid var(--nox-border);
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--nox-text); display: flex; align-items: center; justify-content: center;
}

.nox-topbar__crumbs { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nox-topbar__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--nox-gold-soft); }
.nox-topbar__brand img { width: 28px; height: 28px; border-radius: 8px; }
.nox-topbar__sep { color: var(--nox-text-muted); }
.nox-topbar__page { color: var(--nox-text-muted); font-size: 0.9rem; }

.nox-search {
  flex: 1; max-width: 520px;
  position: relative;
  display: flex; align-items: center;
  background: var(--nox-panel-soft);
  border: 1px solid var(--nox-border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color 0.15s;
}
.nox-search:focus-within { border-color: var(--nox-gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); }
.nox-search__icon { color: var(--nox-text-muted); margin-right: 10px; flex-shrink: 0; }
.nox-search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--nox-text); font-size: 0.9rem;
}
.nox-search input::placeholder { color: var(--nox-text-muted); }
.nox-search__kbd {
  font-size: 0.7rem; padding: 2px 7px; border-radius: 5px;
  background: var(--nox-bg-600); color: var(--nox-mint);
  border: 1px solid var(--nox-border);
}

.nox-search__results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 340px; overflow-y: auto;
  background: rgba(0, 20, 20, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--nox-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px;
  z-index: 50;
}
.nox-search__results[hidden] { display: none; }
.nox-search__result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.nox-search__result:hover { background: var(--nox-panel-soft); }
.nox-search__result img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.nox-search__result-meta { display: flex; flex-direction: column; min-width: 0; }
.nox-search__result-meta strong { font-size: 0.9rem; }
.nox-search__result-meta small { color: var(--nox-text-muted); font-size: 0.75rem; }
.nox-search__empty { padding: 14px; text-align: center; color: var(--nox-text-muted); font-size: 0.85rem; }

.nox-topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nox-icon-btn {
  background: var(--nox-panel-soft); border: 1px solid var(--nox-border);
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--nox-text); font-size: 1.05rem;
  position: relative; transition: border-color 0.15s;
}
.nox-icon-btn:hover { border-color: var(--nox-gold); }
.nox-dot {
  position: absolute; top: 6px; right: 8px;
  width: 8px; height: 8px; background: var(--nox-magenta); border-radius: 50%;
  box-shadow: 0 0 8px var(--nox-magenta);
}

.nox-balance {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--nox-border-hi);
}
.nox-balance__coin { font-size: 1.1rem; filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6)); }
.nox-balance__val small  { display: block; font-size: 0.65rem; color: var(--nox-text-muted); }
.nox-balance__val strong { display: block; font-size: 0.88rem; color: var(--nox-gold-soft); }

.nox-login-btn {
  padding: 9px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--nox-gold), var(--nox-gold-soft));
  color: var(--nox-bg-900); font-weight: 700; font-size: 0.88rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nox-login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35); }

/* ---------- Buttons generic ---------- */

.nox-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.nox-btn--gold {
  background: linear-gradient(135deg, var(--nox-gold), var(--nox-gold-soft));
  color: var(--nox-bg-900);
}
.nox-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, 0.35); }
.nox-btn--ghost {
  background: transparent; color: var(--nox-text);
  border-color: var(--nox-border-hi);
}
.nox-btn--ghost:hover { background: var(--nox-panel-soft); }

/* ---------- Hero banner ---------- */

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

/* ---------- Category pills ---------- */

.nox-cat-pills { margin-bottom: 28px; }
.nox-cat-pills__wrap {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--nox-panel);
  border: 1px solid var(--nox-border);
  backdrop-filter: blur(10px);
}
.nox-cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: transparent; border: 1px solid transparent;
  color: var(--nox-text-muted);
  border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.08em;
  transition: all 0.15s ease;
}
.nox-cat-pill:hover {
  color: var(--nox-text);
  background: var(--nox-panel-soft);
  border-color: var(--nox-border);
}
.nox-cat-pill.is-active {
  background: linear-gradient(135deg, var(--nox-magenta), var(--nox-magenta-soft));
  color: #fff;
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.35);
  border-color: transparent;
}

/* ---------- Flash sale ---------- */

.nox-flash {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  margin-bottom: 28px;
}
.nox-flash__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.nox-flash__title-wrap { display: flex; align-items: center; gap: 14px; }
.nox-flash__title {
  margin: 0; font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--nox-gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.04em;
}
.nox-flash__timer {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nox-magenta), var(--nox-magenta-soft));
  color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
  font-variant-numeric: tabular-nums;
}
.nox-flash__link { color: var(--nox-mint); font-size: 0.88rem; font-weight: 600; }
.nox-flash__link:hover { color: var(--nox-gold-soft); }

.nox-flash__grid {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
}
.nox-flash__grid::-webkit-scrollbar { height: 6px; }
.nox-flash__grid::-webkit-scrollbar-thumb { background: var(--nox-border-hi); border-radius: 3px; }
.nox-flash__grid > .nox-flash__card { flex: 0 0 300px; scroll-snap-align: start; }

.nox-flash__card {
  display: flex; gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 30, 30, 0.65);
  border: 1px solid var(--nox-border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.nox-flash__card:hover {
  border-color: var(--nox-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.nox-flash__card-media {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--nox-bg-600);
}
.nox-flash__card-media img { width: 100%; height: 100%; object-fit: cover; }

.nox-flash__card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nox-flash__card-body h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--nox-text); }

.nox-flash__price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.nox-flash__price strong { color: var(--nox-gold-soft); font-size: 1rem; font-weight: 700; }
.nox-flash__price-strike { color: var(--nox-text-muted); font-size: 0.78rem; text-decoration: line-through; }
.nox-flash__badge {
  background: var(--nox-magenta); color: #fff;
  padding: 2px 8px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.35);
}

.nox-flash__stock {
  margin-top: 4px;
}
.nox-flash__stock-bar {
  height: 6px; border-radius: 999px;
  background: rgba(127, 216, 184, 0.1);
  position: relative; overflow: hidden;
  margin-bottom: 5px;
}
.nox-flash__stock-bar::after {
  content: ''; position: absolute; inset: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--nox-magenta), var(--nox-magenta-soft));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}
.nox-flash__stock small { color: var(--nox-text-muted); font-size: 0.72rem; }

/* ---------- Section headings ---------- */

.nox-section {
  margin-bottom: 32px;
}
.nox-section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 18px; gap: 20px; flex-wrap: wrap;
}
.nox-section__eyebrow {
  display: block; font-size: 0.72rem; font-weight: 700;
  color: var(--nox-mint); letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.nox-section__title {
  margin: 0; font-size: 1.6rem; font-weight: 800;
  color: #fff;
}
.nox-section__link { color: var(--nox-mint); font-size: 0.88rem; }
.nox-section__link:hover { color: var(--nox-gold-soft); }

/* ---------- Game grid ---------- */

.nox-game-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.nox-game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--nox-panel);
  border: 1px solid var(--nox-border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.nox-game-card:hover {
  transform: translateY(-6px);
  border-color: var(--nox-gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}
.nox-game-card__img {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden;
}
.nox-game-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.nox-game-card:hover .nox-game-card__img img { transform: scale(1.06); }
.nox-game-card__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85));
}
.nox-game-card__region {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px);
  padding: 4px 8px; border-radius: 6px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex; align-items: center; gap: 4px;
}
.nox-game-card__region svg {
  width: 12px; height: 12px; opacity: 0.8;
}
.nox-game-card__crown {
  position: absolute; top: 10px; right: 10px;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}
.nox-game-card__info {
  padding: 12px 14px;
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2;
}
.nox-game-card__title { margin: 0; font-size: 0.95rem; font-weight: 700; color: #fff; }
.nox-game-card__genre { display: block; margin-top: 3px; color: var(--nox-mint); font-size: 0.72rem; font-weight: 600; }
.nox-game-card__price { display: block; margin-top: 5px; color: var(--nox-text-muted); font-size: 0.72rem; }
.nox-game-card__price strong { color: var(--nox-gold-soft); font-weight: 700; font-size: 0.82rem; }

/* ---------- Promo popup ---------- */

.nox-promo-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  animation: noxFadeIn 0.25s ease;
}
.nox-promo-backdrop[hidden] { display: none; }

@keyframes noxFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes noxPopIn   { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.nox-promo-popup {
  position: relative;
  width: 100%; max-width: 820px;
  display: grid; grid-template-columns: 1fr 1.1fr;
  border-radius: 0;
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  overflow: hidden;
  background: linear-gradient(135deg, #002727, #034c36);
  border: 1px solid var(--nox-border-hi);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(127, 216, 184, 0.1);
  animation: noxPopIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nox-promo-popup__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  border: 1px solid var(--nox-border);
  font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background 0.15s;
}
.nox-promo-popup__close:hover { background: var(--nox-magenta); }

.nox-promo-popup__image {
  position: relative;
  background: #01151C; /* warna panel kiri (poster) — dari Figma, ubah di sini */
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 280px;
}
.nox-promo-popup__image img,
.nox-promo-popup__image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}
.nox-promo-popup__image img    { animation: noxFloat 4s ease-in-out infinite; }
.nox-promo-popup__image video  { background: #01151C; }
.nox-promo-popup__shine {
  display: none;
}

.nox-promo-popup__body {
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.nox-promo-popup__eyebrow {
  display: inline-block; margin-bottom: 12px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(127, 216, 184, 0.08);
  color: var(--nox-gold-soft);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  border: 1px solid var(--nox-border-hi);
  align-self: flex-start;
}
.nox-promo-popup__title {
  margin: 0 0 10px; font-size: 1.7rem; font-weight: 800; line-height: 1.15;
  background: linear-gradient(135deg, #fff, var(--nox-gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nox-promo-popup__subtitle { margin: 0 0 14px; font-size: 1rem; color: var(--nox-mint); font-weight: 600; }
.nox-promo-popup__desc  { margin: 0 0 22px; color: var(--nox-text-muted); font-size: 0.9rem; line-height: 1.55; }
.nox-promo-popup__desc strong { color: var(--nox-gold-soft); }

.nox-promo-popup__code {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--nox-border-hi);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}
.nox-promo-popup__code span {
  flex: 1;
  color: var(--nox-gold-soft); font-weight: 800; letter-spacing: 0.18em; font-size: 1.05rem;
}
.nox-promo-popup__code button {
  background: var(--nox-gold); color: var(--nox-bg-900);
  border: 0; padding: 8px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.82rem;
  transition: background 0.15s;
}
.nox-promo-popup__code button:hover { background: var(--nox-gold-soft); }
.nox-promo-popup__code button.is-copied { background: var(--nox-mint); }

.nox-promo-popup__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Dots indicator for multi-promo */
.nox-promo-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.nox-promo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer; padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.nox-promo-dot.is-active { background: var(--nox-gold); border-color: var(--nox-gold); }

/* Multiple slide support */
.nox-promo-slide {
  transition: opacity 0.3s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nox-hero__slide { grid-template-columns: 1fr; padding: 40px 28px; text-align: left; }
  .nox-hero__art   { display: none; }
}

@media (max-width: 900px) {
  .nox-sidebar {
    position: fixed; top: 0; left: 0;
    transform: translateX(-100%);
  }
  .nox-sidebar.is-open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,0.5); }
  .nox-main { padding: 18px 18px 80px; }
  .nox-topbar { padding: 0 18px; }
  .nox-balance, .nox-search__kbd { display: none; }
  .nox-promo-popup { grid-template-columns: 1fr; max-width: 440px; }
  .nox-promo-popup__image { min-height: 200px; }
  .nox-promo-popup__body { padding: 24px; }
}

@media (max-width: 560px) {
  .nox-topbar { gap: 10px; }
  .nox-topbar__crumbs .nox-topbar__sep, .nox-topbar__page, .nox-topbar__brand span { display: none; }
  .nox-icon-btn { width: 34px; height: 34px; }
  .nox-login-btn { padding: 8px 16px; font-size: 0.8rem; }
  .nox-search { min-width: 0; padding: 6px 12px; }
  .nox-search input { min-width: 0; width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .nox-topbar__actions { gap: 6px; }
  .nox-hero__slides { min-height: 300px; }
  .nox-hero__title { font-size: 1.8rem; }
  .nox-flash__title { font-size: 1.2rem; }
  .nox-flash__timer { font-size: 0.78rem; padding: 6px 12px; }
  
  .nox-game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nox-game-card__title { font-size: 0.85rem; }
  .nox-game-card__genre { font-size: 0.65rem; }
  .nox-game-card__price strong { font-size: 0.75rem; }
}

/* ---------- Bottom Navigation (Mobile) ---------- */
.nox-bottom-nav {
  display: none;
}
@media (max-width: 900px) {
  .nox-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(0, 31, 31, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--nox-border);
    z-index: 45;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nox-bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    color: var(--nox-text-muted);
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: color 0.15s;
  }
  .nox-bottom-nav__item:hover, .nox-bottom-nav__item.is-active {
    color: var(--nox-gold-soft);
  }
  .nox-bottom-nav__item svg {
    width: 22px; height: 22px;
  }
  .nox-bottom-nav__item span {
    font-size: 0.65rem; font-weight: 600;
  }
  .hide-on-mobile {
    display: none !important;
  }
}

/* Overlay untuk sidebar mobile */
.nox-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 49;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.nox-sidebar-overlay.is-active { opacity: 1; pointer-events: auto; }

/* ---------- Sidebar collapse (desktop, icons-only) ---------- */
.nox-topbar__collapse {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; margin-right: 4px;
  background: var(--nox-panel-soft); color: var(--nox-text-muted);
  border: 1px solid var(--nox-border); cursor: pointer;
  transition: all 0.15s ease; flex-shrink: 0;
}
.nox-topbar__collapse:hover { color: var(--nox-mint); border-color: var(--nox-border-hi); }

@media (min-width: 769px) {
  .nox-topbar__collapse { display: inline-flex; }
  .sidebar-collapsed { --sidebar-w: 78px; }
  .sidebar-collapsed .nox-sidebar__panel { padding: 18px 12px; }
  .sidebar-collapsed .nox-nav { gap: 6px; }
  .sidebar-collapsed .nox-nav__item { justify-content: center; gap: 0; padding: 11px 0; }
  .sidebar-collapsed .nox-nav__item > span:not(.nox-nav__icon) { display: none; }
  .sidebar-collapsed .nox-nav__group { display: none; }
  .sidebar-collapsed .nox-premium-card { display: none; }
  .sidebar-collapsed .nox-user { margin-bottom: 8px; }
}

/* ---------- Category game sections ---------- */
.nox-cat-expand { background: none; border: none; cursor: pointer; font: inherit; }

@media (min-width: 769px) {
  /* Collapsed: show only the first 10 games, rest revealed via "Lihat Semua" */
  .nox-cat-grid.is-collapsed > a:nth-child(n+11) { display: none; }
}

@media (max-width: 768px) {
  /* Mobile: horizontal slider instead of a 2-col grid */
  .nox-cat-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .nox-cat-grid > a { flex: 0 0 42%; scroll-snap-align: start; }
  .nox-cat-grid::-webkit-scrollbar { display: none; }
}

/* ================= Gaming card theme ================= */
/* Flash sale: gold-foil collectible card (landscape) */
.nox-flash__grid > .nox-flash__card.nox-gcard { flex: 0 0 360px; }
.nox-gcard {
  display: block; padding: 3px; border: none;
  background: linear-gradient(160deg, #f6d365, #b8860b 38%, #fff3b0 52%, #b8860b 66%, #8a6d1b);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nox-gcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 26px rgba(246, 211, 101, 0.35);
}
.nox-gcard__inner {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0a2b3a, #06202b);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  padding: 12px; display: flex; flex-direction: row; gap: 12px; align-items: stretch;
}
.nox-gcard__inner::before {
  content: ''; position: absolute; top: -40%; left: -30%; width: 45%; height: 180%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(8deg); pointer-events: none;
}
.nox-gcard__art {
  position: relative; width: 118px; flex-shrink: 0; aspect-ratio: 1 / 1;
  border-radius: 6px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08);
}
.nox-gcard__art img { width: 100%; height: 100%; object-fit: cover; }
.nox-gcard__disc {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--nox-magenta); color: #fff; font-weight: 800; font-size: 0.68rem;
  padding: 2px 8px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.nox-gcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nox-gcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.nox-gcard__title { margin: 0; font-size: 0.95rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nox-gcard__coin {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #d4af37);
  display: flex; align-items: center; justify-content: center;
  color: #5a4500; font-size: 0.75rem; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}
.nox-gcard__sub { font-size: 0.73rem; color: var(--nox-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nox-gcard__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nox-gcard__price strong { color: var(--nox-gold-soft); font-size: 1.02rem; font-weight: 800; }
.nox-gcard__strike { color: var(--nox-text-muted); font-size: 0.72rem; text-decoration: line-through; }
.nox-gcard__stock-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; margin-bottom: 3px; }
.nox-gcard__stock-bar::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: linear-gradient(90deg, var(--nox-magenta), var(--nox-magenta-soft)); box-shadow: 0 0 10px rgba(233, 30, 99, 0.5); }
.nox-gcard__stock small { color: var(--nox-text-muted); font-size: 0.68rem; }
.nox-gcard__cta {
  margin-top: auto; text-align: center; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.02em;
  color: #06202b; padding: 7px 10px;
  background: linear-gradient(180deg, #ffe9a8, #d4af37);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nox-gcard:hover .nox-gcard__cta { background: linear-gradient(180deg, #fff3c4, #e6c14a); }

/* Game grid: gaming tile (foil edge + angular corners + price chip) */
.nox-game-card {
  border: none; border-radius: 0; padding: 2px;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.55), rgba(127, 216, 184, 0.18) 42%, rgba(212, 175, 55, 0.45));
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.nox-game-card:hover {
  border: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 175, 55, 0.4);
}
.nox-game-card__img {
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nox-game-card__region {
  border-radius: 0; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.nox-game-card__price {
  display: inline-block; margin-top: 7px; color: #06202b;
  background: linear-gradient(180deg, #ffe9a8, #d4af37);
  font-weight: 800; font-size: 0.7rem; padding: 5px 11px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.nox-game-card__price strong { color: inherit; font-size: 0.78rem; }

/* ================= Phase 2: angular gaming theme ================= */
/* De-round site-wide: sharpen the shared radius scale */
:root {
  --radius-lg: 5px;
  --radius-md: 4px;
  --radius-sm: 3px;
}

/* Angular, neon buttons */
.nox-btn {
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  letter-spacing: 0.02em; font-weight: 700;
}
.nox-btn:hover { transform: translateY(-2px); }
.nox-btn--gold:hover { box-shadow: none; filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.5)); }
.nox-btn--mint:hover { filter: drop-shadow(0 6px 14px rgba(127, 216, 184, 0.5)); }
.nox-btn--lg {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.nox-login-btn {
  border-radius: 0;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

/* Crisp inputs with a neon focus ring */
.nox-form-input { border-radius: 3px; }
.nox-form-input:focus {
  outline: none; border-color: var(--nox-mint);
  box-shadow: 0 0 0 2px rgba(127, 216, 184, 0.25);
}

/* Neon angular accent before each section title */
.nox-section__title { position: relative; padding-left: 16px; }
.nox-section__title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 0.85em;
  background: linear-gradient(180deg, var(--nox-mint), var(--nox-gold));
  clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%);
}

/* Subtle neon top-edge accent on the main panels */
.nox-checkout__panel, .nox-order-extra__panel {
  position: relative;
}
.nox-checkout__panel::after, .nox-order-extra__panel::after {
  content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--nox-mint), transparent);
}

/* Extend angular theme to nav pills, badges & bottom-nav */
.nox-search {
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.nox-balance {
  border-radius: 0;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.nox-flash__timer {
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nox-nav__badge {
  border-radius: 0;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.nox-search__kbd { border-radius: 2px; }
.nox-bottom-nav__item.is-active { position: relative; }
.nox-bottom-nav__item.is-active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px;
  background: linear-gradient(90deg, var(--nox-mint), var(--nox-gold));
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 100%, 0 100%);
}

/* ===== Angular WITH stroke (no rounded, outlined bevel) ===== */
/* Kill rounded corners everywhere that uses the shared scale */
:root { --radius-lg: 0; --radius-md: 0; --radius-sm: 0; }

/* Sharp (square) surfaces */
.nox-search__kbd, .nox-form-input, .nox-premium-card__btn { clip-path: none; border-radius: 0; }

/* Top-bar chips: outlined bevel so they match the buttons */
.nox-search, .nox-balance {
  position: relative; z-index: 0; border: none !important; background: transparent !important; border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nox-search::before, .nox-balance::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: var(--nox-border-hi);
}
.nox-search::after, .nox-balance::after {
  content: ''; position: absolute; inset: 1.5px; z-index: -1;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background: var(--nox-panel);
}
.nox-search:focus-within::before { background: var(--nox-gold); }

/* Solid chips just need the bevel (no stroke needed) */
.nox-flash__timer {
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nox-nav__badge {
  border-radius: 0;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

/* Buttons: outlined bevel (stroke layer + inset fill layer) */
.nox-btn {
  position: relative; z-index: 0; border: none !important; background: transparent !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nox-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: var(--nox-gold-soft);
}
.nox-btn::after {
  content: ''; position: absolute; inset: 2px; z-index: -1;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: var(--nox-bg-800);
}
.nox-btn--gold::before { background: #fff3c4; }
.nox-btn--gold::after  { background: linear-gradient(135deg, var(--nox-gold), var(--nox-gold-soft)); }
.nox-btn--gold { color: var(--nox-bg-900) !important; }
.nox-btn--mint::before { background: var(--nox-mint); }
.nox-btn--mint::after  { background: var(--nox-bg-900); }
.nox-btn--mint { color: var(--nox-mint) !important; }
.nox-btn--ghost::before { background: var(--nox-border-hi); }
.nox-btn--ghost::after  { background: var(--nox-panel); }
.nox-btn--danger::before { background: var(--nox-magenta-soft); }
.nox-btn--danger::after  { background: rgba(233, 30, 99, 0.14); }
.nox-btn--danger { color: var(--nox-magenta-soft) !important; }
.nox-btn--lg, .nox-btn--lg::before {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.nox-btn--lg::after {
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* Login button: same outlined bevel */
.nox-login-btn {
  position: relative; z-index: 0; border: none; background: transparent;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  color: var(--nox-bg-900);
}
.nox-login-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background: #fff3c4;
}
.nox-login-btn::after {
  content: ''; position: absolute; inset: 2px; z-index: -1;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: linear-gradient(135deg, var(--nox-gold), var(--nox-gold-soft));
}

/* Sidebar nav: active & hover become an outlined bevel (parallelogram-style) */
.nox-nav__item { border-radius: 0; z-index: 0; }
.nox-nav__item:hover, .nox-nav__item.is-active {
  background: transparent; box-shadow: none;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}
.nox-nav__item:hover::before, .nox-nav__item.is-active::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  background: var(--nox-gold);
}
.nox-nav__item:hover::after, .nox-nav__item.is-active::after {
  content: ''; position: absolute; inset: 1.5px; z-index: -1;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(127, 216, 184, 0.05));
}
.nox-nav__item.is-active { color: var(--nox-gold-soft); }
.nox-nav__item:hover { color: #fff; }

/* ===== Language & currency switcher (topbar) ===== */
.nox-locale-switch { display: inline-flex; gap: 6px; margin-right: 10px; }
.nox-locale-switch select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nox-border-hi);
  color: var(--nox-mint);
  font-size: 0.78rem; font-weight: 700;
  padding: 5px 6px; cursor: pointer; border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.nox-locale-switch select:focus { outline: none; border-color: var(--nox-gold); }
.nox-locale-switch select option { background: #04211f; color: #e6f2ec; }

/* ===== Flag language toggle (visible on mobile too) ===== */
.nox-lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; margin-right: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nox-border-hi);
  padding: 2px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.nox-lang-toggle a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
  color: var(--nox-text-muted); text-decoration: none; line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.nox-lang-toggle a .nox-flag { font-size: 0.95rem; }
.nox-lang-toggle a.is-active {
  background: linear-gradient(135deg, var(--nox-gold), var(--nox-gold-soft));
  color: var(--nox-bg-900);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.nox-lang-toggle a:not(.is-active):hover { color: #fff; }
@media (max-width: 640px) {
  .nox-lang-toggle { margin-right: 4px; }
  .nox-lang-toggle a { padding: 4px 5px; }
  .nox-lang-toggle a .nox-lang-code { display: none; } /* flags only on small screens */
}

.nox-lang-toggle .nox-flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }

/* ===== Utility classes (the few Tailwind utilities still referenced) ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.text-white { color: #fff; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.opacity-80 { opacity: 0.8; }
.min-h-screen { min-height: 100vh; }
.container { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) {
  .container { max-width: 768px; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* ==================== Sidebar gaming revamp ==================== */
/* Ambient glow inside the panel (kept behind the nav via isolation) */
.nox-sidebar__panel { position: relative; isolation: isolate; }
.nox-sidebar__panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(280px 200px at 15% 2%, rgba(212, 175, 55, 0.10), transparent 62%),
    radial-gradient(300px 260px at 95% 100%, rgba(127, 216, 184, 0.09), transparent 60%);
}

/* Brand: glow + neon divider under the logo */
.nox-user { position: relative; padding: 12px 0 18px; margin-bottom: 14px; }
.nox-user img { filter: drop-shadow(0 0 16px rgba(127, 216, 184, 0.35)); transition: filter 0.3s; }
.nox-user:hover img { filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.5)); }
.nox-user::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 216, 184, 0.5), rgba(212, 175, 55, 0.5), transparent);
}

/* Group labels as HUD brackets: diamond tick + trailing line */
.nox-nav__group { display: flex; align-items: center; gap: 8px; padding: 18px 6px 8px; }
.nox-nav__group::before {
  content: ''; width: 7px; height: 7px; flex-shrink: 0;
  background: var(--nox-mint);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 8px rgba(127, 216, 184, 0.55);
}
.nox-nav__group::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--nox-border-hi), transparent);
}

/* Nav item: icon chip + HUD hover/active. Overrides the older gold-layer treatment. */
.nox-nav__item { padding: 10px 12px; gap: 11px; clip-path: none; }
.nox-nav__icon {
  width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; text-align: center;
  color: var(--nox-text-muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--nox-border);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.nox-nav__icon svg { width: 17px; height: 17px; }

/* Left neon indicator (repurpose ::before) */
.nox-nav__item:hover::before, .nox-nav__item.is-active::before {
  content: ''; position: absolute; left: 0; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); z-index: 1;
  width: 4px; height: 54%;
  clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
  background: var(--nox-mint); box-shadow: 0 0 8px rgba(127, 216, 184, 0.6);
}
.nox-nav__item.is-active::before {
  height: 62%;
  background: linear-gradient(180deg, var(--nox-gold-soft), var(--nox-gold));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.75);
}
/* Cut-corner fill (repurpose ::after) */
.nox-nav__item:hover::after, .nox-nav__item.is-active::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background: rgba(127, 216, 184, 0.07); inset: 0;
}
.nox-nav__item.is-active::after {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.03) 65%, transparent);
}
.nox-nav__item:hover { background: transparent; color: #fff; clip-path: none; box-shadow: none; }
.nox-nav__item:hover .nox-nav__icon {
  color: var(--nox-mint); border-color: var(--nox-border-hi); background: rgba(127, 216, 184, 0.12);
}
.nox-nav__item.is-active { background: transparent; color: var(--nox-gold-soft); font-weight: 700; clip-path: none; box-shadow: none; }
.nox-nav__item.is-active .nox-nav__icon {
  color: #04100f; border-color: transparent;
  background: linear-gradient(160deg, var(--nox-gold-soft), var(--nox-gold));
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.45);
}

/* Premium card: angular frame + animated shine */
.nox-premium-card {
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  border-color: color-mix(in srgb, var(--nox-gold) 45%, transparent);
}
.nox-premium-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(125deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  background-size: 280% 280%; animation: noxSideShine 5s linear infinite;
}
@keyframes noxSideShine { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.nox-premium-card > * { position: relative; z-index: 1; }
.nox-premium-card__icon { color: var(--nox-gold-soft); animation: noxCrownFloat 3.5s ease-in-out infinite; }
@keyframes noxCrownFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.nox-premium-card__btn {
  border-radius: 0;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.nox-premium-card__btn:hover { filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.5)); }

/* Collapsed sidebar: keep the icon chip tidy, drop the left indicator */
.sidebar-collapsed .nox-nav__item::before { display: none; }
.sidebar-collapsed .nox-nav__item { padding: 9px 0; }

/* Sidebar game-rank badge */
.nox-sb-rank { --acc: #cd7f32; --acc2: #eaa564; display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 10px;
  border: 1px solid var(--nox-border); background: rgba(0, 0, 0, 0.22); transition: border-color 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.nox-sb-rank:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.nox-sb-rank--bronze   { --acc: #cd7f32; --acc2: #eaa564; }
.nox-sb-rank--silver   { --acc: #9fb3c2; --acc2: #e8f0f6; }
.nox-sb-rank--gold     { --acc: var(--nox-gold); --acc2: var(--nox-gold-soft); }
.nox-sb-rank--platinum { --acc: #7fd8b8; --acc2: #b8f0dc; }
.nox-sb-rank--diamond  { --acc: #55d6ff; --acc2: #c4f2ff; }
.nox-sb-rank__badge { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; color: #04100f; padding: 4px 9px; flex-shrink: 0;
  background: linear-gradient(160deg, var(--acc2), var(--acc));
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.nox-sb-rank__xp { font-size: 0.78rem; font-weight: 700; color: #fff; white-space: nowrap; }
.nox-sb-rank__xp small { font-size: 0.6rem; color: var(--acc2); letter-spacing: 0.08em; }
.sidebar-collapsed .nox-sb-rank { justify-content: center; padding: 8px 0; }
.sidebar-collapsed .nox-sb-rank__xp { display: none; }

/* ==================== Profile dropdown menu ==================== */
.nox-profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 234px; z-index: 100; padding: 8px;
  background: linear-gradient(160deg, rgba(6, 32, 30, 0.98), rgba(2, 20, 18, 0.98));
  border: 1px solid var(--nox-border-hi);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 30px rgba(127, 216, 184, 0.08);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  animation: noxProfileMenuIn 0.18s ease both;
}
.nox-profile-menu::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--nox-gold), transparent);
}
@keyframes noxProfileMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nox-profile-menu__head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--nox-border); }
.nox-profile-menu__name { font-weight: 700; font-size: 0.9rem; color: #fff; }
.nox-profile-menu__email { font-size: 0.78rem; color: var(--nox-text-muted); }
.nox-profile-menu__item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; color: var(--nox-text); font-size: 0.9rem; font-weight: 500;
  background: none; border: none; cursor: pointer; transition: background 0.15s, color 0.15s;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.nox-profile-menu__item svg { color: var(--nox-mint); flex-shrink: 0; transition: color 0.15s; }
.nox-profile-menu__item:hover { background: rgba(127, 216, 184, 0.1); color: #fff; }
.nox-profile-menu__item--danger, .nox-profile-menu__item--danger svg { color: var(--nox-magenta-soft); }
.nox-profile-menu__item--danger:hover { background: rgba(233, 30, 99, 0.12); color: #fff; }
.nox-profile-menu__sep { height: 1px; margin: 6px 8px; background: var(--nox-border); }

/* ==================== Pagination (custom, replaces Tailwind's) ==================== */
.nox-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.nox-pagination__btn {
  min-width: 38px; height: 38px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--nox-text); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--nox-border); background: rgba(255, 255, 255, 0.03); transition: all 0.15s;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.nox-pagination__btn:hover { border-color: var(--nox-border-hi); background: rgba(127, 216, 184, 0.1); color: #fff; }
.nox-pagination__btn.is-active { background: linear-gradient(160deg, var(--nox-gold-soft), var(--nox-gold)); color: #04100f; border-color: transparent; font-weight: 800; }
.nox-pagination__btn.is-disabled { opacity: 0.35; cursor: default; }
.nox-pagination__dots { color: var(--nox-text-muted); padding: 0 4px; }

/* ==================== Shared data tables (profile, deposit, ...) ==================== */
.nox-section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; color: var(--nox-gold-soft); display: flex; align-items: center; gap: 10px; }
.nox-section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212,175,55,0.3), transparent); }

.nox-table-wrap {
  border: none; background: transparent; position: relative; z-index: 0; border-radius: 0; overflow: hidden;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.nox-table-wrap::before { content: ''; position: absolute; inset: 0; z-index: -2; clip-path: inherit; background: var(--nox-border-hi); }
.nox-table-wrap::after {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
  background: linear-gradient(180deg, rgba(0,31,31,0.6), rgba(3,51,50,0.5));
}
.nox-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.nox-table th {
  background: rgba(212, 175, 55, 0.15); color: var(--nox-gold); padding: 16px 20px;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; text-align: left; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.nox-table td { padding: 16px 20px; border-bottom: 1px solid var(--nox-border); font-size: 0.95rem; vertical-align: middle; }
.nox-table tr:last-child td { border-bottom: none; }
.nox-table tr:hover td { background: rgba(255,255,255,0.03); }

.tx-status {
  display: inline-block; padding: 6px 14px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nox-empty-state { padding: 60px 20px; text-align: center; color: var(--nox-text-muted); font-size: 1rem; background: rgba(0,0,0,0.2); }

@media (max-width: 768px) {
  .nox-table-wrap { background: transparent; border: none; overflow: visible; }
  .nox-table-wrap::before, .nox-table-wrap::after { display: none; }
  .nox-table { min-width: auto; }
  .nox-table, .nox-table thead, .nox-table tbody, .nox-table tr, .nox-table td, .nox-table th { display: block; }
  .nox-table thead { display: none; }
  .nox-table tr {
    border: none; background: transparent; position: relative; z-index: 0; margin-bottom: 16px; padding: 16px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  }
  .nox-table tr::before { content: ''; position: absolute; inset: 0; z-index: -2; clip-path: inherit; background: var(--nox-border); }
  .nox-table tr::after {
    content: ''; position: absolute; inset: 1px; z-index: -1;
    clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
    background: linear-gradient(180deg, rgba(0,31,31,0.7), rgba(3,51,50,0.6));
  }
  .nox-table td { border: none; padding: 6px 0 6px 45%; text-align: right; position: relative; }
  .nox-table td::before {
    content: attr(data-label); position: absolute; left: 0; width: 45%; padding-right: 10px;
    white-space: nowrap; text-align: left; font-weight: 600; color: var(--nox-text-muted); font-size: 0.85rem; text-transform: uppercase;
  }
}
