/* ═══════════════════════════════════════════════════════════
   NEONBET  ·  Design System
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #06060f;
  --bg-2:      #0c0c1a;
  --bg-3:      #111128;
  --card-bg:   #13132a;
  --card-2:    #1a1a35;

  --cyan:      #00f5ff;
  --pink:      #ff00cc;
  --purple:    #8b00ff;
  --green:     #00ff88;
  --gold:      #ffd700;
  --red:       #ff2244;
  --orange:    #ff6600;

  --text:      #f0f0ff;
  --text-2:    rgba(240,240,255,.6);
  --text-3:    rgba(240,240,255,.35);

  --border:    rgba(0,245,255,.12);
  --border-glow: rgba(0,245,255,.3);

  --header-h:  70px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-cyan:   0 0 20px rgba(0,245,255,.3);
  --shadow-pink:   0 0 20px rgba(255,0,204,.3);
  --shadow-purple: 0 0 20px rgba(139,0,255,.3);

  --cp-yellow:  #f5d300;
  --cp-yellow2: #ff9900;
  --font-cyber: 'Orbitron', sans-serif;
  --font-body:  'Rajdhani', sans-serif;
  --font-mono:  'Share Tech Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  letter-spacing: .3px;
}

/* Subtle scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
}

/* CP2077 heading font */
h1, h2, h3, h4, h5 {
  font-family: var(--font-cyber);
  letter-spacing: .05em;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: var(--cyan); text-decoration: none; }
input, select { font-family: inherit; }

/* ── Canvas ─────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

/* ── Screens ────────────────────────────────────────────── */
.screen { position: relative; z-index: 1; }
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════
   AUTH SCREEN
══════════════════════════════════════════════════════════ */
#auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,0,255,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(0,245,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(255,0,204,.10) 0%, transparent 60%);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  animation: fadeUp .6s ease;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo-text {
  font-family: var(--font-cyber);
  font-size: 46px;
  font-weight: 900;
  color: var(--cp-yellow);
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow:
    0 0 10px var(--cp-yellow),
    0 0 30px var(--cp-yellow2),
    0 0 60px rgba(245,211,0,.4);
}
.auth-logo-sub {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: .7;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .25s;
  letter-spacing: .5px;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--cyan)22, var(--purple)22);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,245,255,.2);
}

.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeUp .3s ease; }

/* Widen container when register tab is active */
.auth-container.reg-active { max-width: 560px; }

/* Two-column field row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-2 .form-group { margin-bottom: 0; }

/* Scrollable register form body */
#register-form {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glow) transparent;
}
#register-form::-webkit-scrollbar { width: 4px; }
#register-form::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 2px; }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,245,255,.2);
}
.form-input::placeholder { color: var(--text-3); }

.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  animation: shake .3s ease;
}

.btn-auth {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg);
  margin-top: 8px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.btn-auth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.15), transparent);
  transform: translateX(-100%);
  transition: transform .4s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: var(--shadow-cyan); }
.btn-auth:hover::after { transform: translateX(100%); }
.btn-auth:active { transform: translateY(0); }

.auth-bonus {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--green);
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(6,6,15,.92);
  border-bottom: 1px solid rgba(245,211,0,.15);
  backdrop-filter: blur(20px);
  gap: 0;
}

.header-logo {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 900;
  color: var(--cp-yellow);
  letter-spacing: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
  text-shadow:
    0 0 8px var(--cp-yellow),
    0 0 20px var(--cp-yellow2),
    0 0 40px rgba(245,211,0,.3);
  animation: cpLogoPulse 4s ease-in-out infinite;
}
.header-logo::before,
.header-logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}
.header-logo::before { color: var(--cyan);  animation: glitchTop 5s infinite; }
.header-logo::after  { color: var(--pink);  animation: glitchBot 5s infinite; }

@keyframes cpLogoPulse {
  0%,100% { text-shadow: 0 0 8px var(--cp-yellow), 0 0 20px var(--cp-yellow2), 0 0 40px rgba(245,211,0,.3); }
  50%      { text-shadow: 0 0 14px var(--cp-yellow), 0 0 35px var(--cp-yellow2), 0 0 70px rgba(245,211,0,.5); }
}
@keyframes glitchTop {
  0%,94%,100% { opacity:0; transform:none; }
  95% { opacity:.7; transform:translate(-2px,-1px) skewX(-2deg); clip-path:inset(0 0 70% 0); }
  97% { opacity:.5; transform:translate(2px,0) skewX(1deg);  clip-path:inset(20% 0 50% 0); }
}
@keyframes glitchBot {
  0%,96%,100% { opacity:0; transform:none; }
  97% { opacity:.6; transform:translate(2px,1px) skewX(2deg);  clip-path:inset(60% 0 0 0); }
  99% { opacity:.4; transform:translate(-2px,0) skewX(-1deg); clip-path:inset(80% 0 0 0); }
}

.header-nav {
  display: flex;
  gap: 0;
  margin-left: 24px;
  border-left: 1px solid rgba(255,255,255,.07);
}
.header-nav a {
  padding: 0 18px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  font-family: var(--font-cyber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  transition: all .2s;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cp-yellow);
  transform: scaleX(0);
  transition: transform .2s;
}
.header-nav a:hover {
  color: var(--cp-yellow);
  background: rgba(245,211,0,.04);
}
.header-nav a:hover::after { transform: scaleX(1); }

.header-spacer { flex: 1; }

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

.balance-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,245,255,.06);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: 2px;
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.balance-icon { font-size: 16px; }
#header-balance {
  color: var(--cyan);
  min-width: 90px;
  text-align: right;
}

.btn-deposit-header {
  padding: 10px 22px;
  border-radius: 2px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(245,211,0,.12), rgba(255,153,0,.08));
  border: 1px solid var(--cp-yellow);
  color: var(--cp-yellow);
  transition: all .2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-deposit-header:hover {
  background: linear-gradient(135deg, rgba(245,211,0,.22), rgba(255,153,0,.16));
  box-shadow: 0 0 18px rgba(245,211,0,.35);
  color: #fff;
}

.header-guest {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sign-in {
  padding: 8px 18px;
  border-radius: 2px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(200,216,232,.3);
  color: rgba(200,216,232,.75);
  cursor: pointer;
  transition: all .2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-sign-in:hover { border-color: rgba(200,216,232,.7); color: #fff; }

.btn-register-header {
  padding: 8px 18px;
  border-radius: 2px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(0,245,255,.1), rgba(0,180,255,.07));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  cursor: pointer;
  transition: all .2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-register-header:hover { background: rgba(0,245,255,.18); box-shadow: 0 0 14px rgba(0,245,255,.25); }

.user-menu-wrap { position: relative; }
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cyber);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--purple);
  transition: all .2s;
  box-shadow: 0 0 12px rgba(139,0,255,.3);
}
.user-avatar:hover { box-shadow: 0 0 20px rgba(139,0,255,.6); transform: scale(1.05); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(-8px) scale(.95);
  pointer-events: none;
  transition: all .2s;
  z-index: 200;
}
.user-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: rgba(0,245,255,.08); color: var(--text); }
.dropdown-separator { height: 1px; background: var(--border); margin: 4px 0; }

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 48px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(139,0,255,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(0,245,255,.15) 0%, transparent 55%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cp-yellow);
  margin-bottom: 16px;
  opacity: .8;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.6;
  letter-spacing: .4px;
  max-width: 520px;
  text-align: center;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn-neon {
  padding: 13px 32px;
  border-radius: 2px;
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(245,211,0,.12), rgba(255,153,0,.08));
  border: 1px solid var(--cp-yellow);
  color: var(--cp-yellow);
  transition: all .2s;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cp-yellow), var(--cp-yellow2));
  opacity: 0;
  transition: opacity .2s;
}
.btn-neon span { position: relative; z-index: 1; }
.btn-neon:hover {
  color: var(--bg);
  box-shadow: 0 0 20px rgba(245,211,0,.4), 0 0 40px rgba(245,211,0,.2);
  transform: translateY(-2px);
}
.btn-neon:hover::before { opacity: 1; }

.btn-outline {
  padding: 13px 32px;
  border-radius: 2px;
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(0,245,255,.4);
  color: var(--cyan);
  transition: all .2s;
  clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 100%, 8px 100%);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--bg);
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0,245,255,.4);
}

/* ── Nav SVG icons ── */
.nav-svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  margin-top: -1px;
  transition: filter .2s;
}
.header-nav a:hover .nav-svg { filter: drop-shadow(0 0 4px var(--cp-yellow)); }

/* ── Dropdown SVG icons ── */
.dd-svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -1px;
  opacity: .75;
  flex-shrink: 0;
}
.dropdown-item:hover .dd-svg { opacity: 1; }

/* ── Hero floats ── */
.hero-floats {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
  opacity: .65;
}
.hf-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatBob 3s ease-in-out infinite;
}
.hf-item:nth-child(2) { animation-delay: .5s;  filter: drop-shadow(0 0 6px #ff00cc); }
.hf-item:nth-child(3) { animation-delay: 1s; }
.hf-item:nth-child(4) { animation-delay: 1.5s; filter: drop-shadow(0 0 6px #00f5ff); }
.hf-item:nth-child(5) { animation-delay: 2s;   filter: drop-shadow(0 0 6px #8b00ff); }

/* Slot reels */
.hf-slots {
  gap: 4px;
  padding: 7px 6px;
  border: 1px solid rgba(0,245,255,.4);
  background: rgba(0,245,255,.04);
  border-radius: 3px;
  filter: drop-shadow(0 0 6px rgba(0,245,255,.5));
}
.hf-reel {
  width: 9px;
  height: 28px;
  border-radius: 1px;
  background: linear-gradient(to bottom,
    #ff00cc 0%, #f5d300 20%, #00f5ff 40%, #00ff88 60%, #8b00ff 80%, #ff00cc 100%);
  background-size: 100% 300%;
  animation: reelScroll .75s linear infinite;
}
.hf-reel:nth-child(2) { animation-delay: .14s; }
.hf-reel:nth-child(3) { animation-delay: .28s; }
@keyframes reelScroll {
  from { background-position: 0% 0%; }
  to   { background-position: 0% 100%; }
}

/* Coin */
.hf-coin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,200,.3), transparent 60%),
              linear-gradient(135deg, #f5d300, #ff9900);
  border: 1.5px solid rgba(255,215,0,.8);
  box-shadow: 0 0 14px rgba(245,211,0,.3);
  color: rgba(80,40,0,.9);
  font-family: var(--font-cyber);
  font-weight: 900;
  font-size: 18px;
  animation: floatBob 3s ease-in-out infinite 1s, coinFlip 4s ease-in-out infinite 2s;
  filter: none !important;
}
@keyframes coinFlip {
  0%, 55%, 100% { transform: rotateY(0); }
  65%  { transform: rotateY(90deg); }
  75%  { transform: rotateY(0deg); }
}

/* ── Category tab icons ── */
.cat-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

/* Custom category emoji icon (admin-created categories) */
.cat-icon-emoji {
  display: inline-block;
  font-size: .85rem;
  line-height: 1;
  flex-shrink: 0;
}
.cat-icon::before {
  content: '';
  position: absolute;
  inset: 0;
}
/* Hot — upward triangle (flame) */
.ci-hot::before {
  clip-path: polygon(50% 0%, 85% 60%, 70% 60%, 90% 100%, 10% 100%, 30% 60%, 15% 60%);
  background: linear-gradient(to bottom, #ff6600, #ff2200);
  box-shadow: 0 0 6px #ff4400;
  animation: hotPulse 1s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { opacity: .85; }
  50%       { opacity: 1; filter: brightness(1.3); }
}
/* New — lightning bolt */
.ci-new::before {
  clip-path: polygon(65% 0%, 35% 52%, 55% 52%, 35% 100%, 65% 48%, 45% 48%);
  background: #00f5ff;
  animation: newFlash .8s ease-in-out infinite;
}
@keyframes newFlash {
  0%, 100% { opacity: .8; }
  50%       { opacity: 1; filter: brightness(1.5); }
}
/* Slots — 3 vertical bars */
.ci-slots::before {
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,.7) 0px, rgba(255,255,255,.7) 3px,
    transparent 3px, transparent 6.5px
  );
}
/* Books — horizontal lines */
.ci-books::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.6) 0px, rgba(255,255,255,.6) 2px,
    transparent 2px, transparent 5px
  );
}
/* Fruits — circle */
.ci-fruits::before {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6699, #cc0044);
  width: 14px; height: 14px;
  top: 1px; left: 1px;
}
/* Bonus — diamond */
.ci-bonus::before {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: linear-gradient(135deg, #cc00ff, #8800aa);
  animation: bonusPulse 2s ease-in-out infinite;
}
@keyframes bonusPulse {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.6); }
}
/* Jackpot — crown (triangle) */
.ci-jackpot::before {
  clip-path: polygon(0% 100%, 0% 50%, 25% 0%, 50% 50%, 75% 0%, 100% 50%, 100% 100%);
  background: linear-gradient(to bottom, #f5d300, #ff9900);
  animation: hotPulse 1.5s ease-in-out infinite;
}
/* Crash — right-pointing chevron */
.ci-crash::before {
  clip-path: polygon(0% 0%, 60% 50%, 0% 100%, 30% 100%, 100% 50%, 30% 0%);
  background: linear-gradient(to right, #ff6600, #ff3300);
}
/* Favourites — heart */
.ci-fav::before {
  clip-path: path('M8 14 C4 11 0 8 0 5 C0 2.5 2 1 4 1 C5.5 1 7 2 8 3.5 C9 2 10.5 1 12 1 C14 1 16 2.5 16 5 C16 8 12 11 8 14Z');
  background: #ff3366;
  animation: favBeat .9s ease-in-out infinite;
}
@keyframes favBeat {
  0%, 100% { transform: scale(1); }
  40%       { transform: scale(1.15); }
}

/* ── Jackpot ticker ────────────────────────────────────── */
.jackpot-ticker {
  position: relative;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,211,0,.07) 20%,
    rgba(245,211,0,.12) 50%,
    rgba(245,211,0,.07) 80%,
    transparent 100%);
  border-top: 1px solid rgba(245,211,0,.25);
  border-bottom: 1px solid rgba(245,211,0,.25);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.jackpot-ticker::before,
.jackpot-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  pointer-events: none;
}
.jackpot-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(6,6,15,1), transparent);
}
.jackpot-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(6,6,15,1), transparent);
}
.jackpot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.jackpot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 6px;
  color: rgba(245,211,0,.7);
  text-transform: uppercase;
}
#jackpot-amount {
  font-family: var(--font-cyber);
  font-size: 32px;
  font-weight: 900;
  color: var(--cp-yellow);
  letter-spacing: 3px;
  text-shadow:
    0 0 8px var(--cp-yellow),
    0 0 24px rgba(245,211,0,.6),
    0 0 60px rgba(245,211,0,.3);
  animation: goldPulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   GAMES SECTION
══════════════════════════════════════════════════════════ */
.games-section {
  padding: 28px 24px 48px;
}

.games-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ── Category tabs ─────────────────────────────────────── */
.category-tabs-wrap {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
}
.category-tabs-wrap::-webkit-scrollbar { display: none; }

#category-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 2px;
  min-width: max-content;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid transparent;
  background: var(--card-bg);
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .3px;
}
.cat-tab:hover { color: var(--text); background: var(--card-2); }
.cat-tab.active {
  color: var(--cyan);
  border-color: rgba(0,245,255,.3);
  background: rgba(0,245,255,.06);
  box-shadow: 0 0 12px rgba(0,245,255,.15);
}
.cat-icon { font-size: 16px; }

/* ── Search ─────────────────────────────────────────────── */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  max-width: 380px;
}
.search-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all .2s;
}
.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0,245,255,.15);
}
.search-input::placeholder { color: var(--text-3); }
.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 16px;
  pointer-events: none;
}

/* ── Games grid (lobby sections wrapper) ─────────────────── */
.games-grid {
  display: block;
}

/* ── Lobby sections ─────────────────────────────────────── */
.lobby-section {
  margin-bottom: 48px;
}
.lobby-section:last-child { margin-bottom: 0; }

.lobby-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.lobby-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lobby-section-icon { font-size: 20px; }
.lobby-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .05em;
}
.lobby-section-count {
  font-size: 12px;
  color: var(--text-3);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
}

.lobby-section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.show-all-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0,245,255,.06);
  border: 1px solid rgba(0,245,255,.25);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  letter-spacing: .03em;
  transition: all .2s;
  white-space: nowrap;
}
.show-all-btn:hover {
  background: rgba(0,245,255,.14);
  border-color: rgba(0,245,255,.6);
}

.lobby-row-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-nav {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,245,255,.08);
  border: 1px solid rgba(0,245,255,.25);
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  padding: 0;
}
.row-nav:hover {
  background: rgba(0,245,255,.2);
  border-color: rgba(0,245,255,.6);
}
.lobby-section.expanded .row-nav { display: none; }

.lobby-games-grid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.lobby-games-grid::-webkit-scrollbar { display: none; }
.lobby-games-grid .game-card {
  flex-shrink: 0;
  width: 175px;
}

.lobby-games-grid.expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  overflow-x: visible;
  padding-bottom: 0;
}
.lobby-games-grid.expanded .game-card {
  width: auto;
}

/* ══════════════════════════════════════════════════════════
   GAME CARD  (PP thumbnail version)
══════════════════════════════════════════════════════════ */
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .25s cubic-bezier(.34,1.4,.64,1), box-shadow .25s, border-color .25s;
  animation: cardEnter .4s ease backwards;
  background: var(--card-bg);
  will-change: transform;
  contain: layout paint style;
}

/* Hover lift + glow */
.game-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 20px 50px rgba(0,0,0,.7),
    0 0 0 1px color-mix(in srgb, var(--card-glow, #00f5ff) 80%, transparent),
    0 0 30px color-mix(in srgb, var(--card-glow, #00f5ff) 30%, transparent);
  border-color: color-mix(in srgb, var(--card-glow, #00f5ff) 70%, transparent);
  z-index: 2;
}

/* ── Thumbnail image ──────────────────────────────────── */
.card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .3s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.game-card:hover .card-thumb {
  transform: scale(1.1);
}

/* ── Gradient fallback (shown when no thumbnail) ─────── */
.card-gradient-bg {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity .3s;
}

/* ── Overlay layers ──────────────────────────────────── */
/* Top vignette (softens top edge) */
.card-vignette-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(6,6,15,.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Bottom content panel */
.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(to top,
    rgba(4,4,14,.97) 0%,
    rgba(4,4,14,.88) 40%,
    rgba(4,4,14,.5)  70%,
    transparent 100%);
  z-index: 2;
  transition: padding .3s;
}
.game-card:hover .card-overlay { padding-top: 50px; }

/* ── Shimmer sweep (hover only) ──────────────────────── */
.card-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,.08) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity .2s;
}
.game-card:hover .card-shimmer {
  opacity: 1;
  animation: shimmerSweep 1.2s ease-in-out;
}

/* ── Provider badge (top-left) ───────────────────────── */
.card-provider {
  position: absolute;
  top: 9px;
  left: 10px;
  z-index: 4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
}

/* ── Fav button ──────────────────────────────────────── */
.fav-btn {
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .2s, background .2s;
  z-index: 4;
}
.fav-btn:hover { transform: scale(1.25); background: rgba(0,0,0,.7); }
.fav-btn.active { filter: drop-shadow(0 0 8px var(--pink)); }

/* ── Fallback emoji icon (shown only when no thumbnail) */
.game-icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  filter: drop-shadow(0 0 16px rgba(255,255,255,.2));
  pointer-events: none;
  z-index: 1;
  transition: transform .3s;
}
.game-card:hover .game-icon-fallback { transform: scale(1.12) rotate(5deg); }

/* ── Badges ──────────────────────────────────────────────── */
.game-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-hot    { background: rgba(255,70,0,.35);   color: #ff8855; border: 1px solid rgba(255,70,0,.4); }
.badge-new    { background: rgba(0,245,255,.2);   color: var(--cyan); border: 1px solid rgba(0,245,255,.35); }
.badge-jackpot{ background: rgba(255,215,0,.2);   color: var(--gold); border: 1px solid rgba(255,215,0,.35); }

/* ── Game info in card overlay ───────────────────────────── */
.game-info { margin-bottom: 8px; }
.game-name {
  font-family: var(--font-cyber);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.game-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.game-rtp { font-size: 11px; color: rgba(255,255,255,.6); }
.game-vol {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
.vol-high       { background: rgba(255,150,0,.25); color: #ffaa44; }
.vol-very-high  { background: rgba(255,50,50,.25); color: #ff7070; }
.vol-medium     { background: rgba(0,200,100,.2);  color: #00dd77; }
.game-maxwin { font-size: 10px; color: var(--gold); font-weight: 600; text-shadow: 0 0 8px rgba(255,215,0,.4); }

/* ── Card action buttons ────────────────────────────────── */
.game-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.game-card:hover .game-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-play-card {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg);
  transition: filter .2s;
}
.btn-play-card:hover { filter: brightness(1.2); }

.demo-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
}
.demo-btn:hover { background: rgba(0,245,255,.25); }

.no-games {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-3);
}
.no-games-icon { font-size: 48px; margin-bottom: 12px; }

/* ══════════════════════════════════════════════════════════
   GAME MODAL
══════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
}

/* ── Game modal ─────────────────────────────────────────── */
.game-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  transform: scale(.92) translateY(20px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal.open .game-modal-box {
  transform: scale(1) translateY(0);
}
.game-modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), var(--purple), transparent);
  z-index: 2;
}

.gm-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 16px;
}
#gm-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.gm-title-wrap { flex: 1; }
.gm-name {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gm-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.gm-stats span { display: flex; align-items: center; gap: 4px; }
#gm-rtp   { color: var(--green); }
#gm-max   { color: var(--gold); }
.gm-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-2);
  transition: all .2s;
  flex-shrink: 0;
}
.gm-close-btn:hover { background: rgba(255,0,0,.2); color: var(--red); }

/* Divider */
.gm-divider { height: 1px; background: var(--border); margin: 0 24px; }

.gm-body { padding: 20px 24px; }

/* Balance display in modal */
.gm-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.gm-balance-label { font-size: 12px; color: var(--text-2); letter-spacing: .5px; }
#gm-balance {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
}

/* Bet selector */
.bet-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}
.bet-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.bet-chip {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .18s;
  font-family: var(--font-cyber);
}
.bet-chip:hover { border-color: var(--cyan); color: var(--text); }
.bet-chip.active {
  background: rgba(0,245,255,.1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0,245,255,.2);
}

.bet-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.bet-input-label { font-size: 12px; color: var(--text-2); white-space: nowrap; }
#bet-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-cyber);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  outline: none;
  transition: border-color .2s;
}
#bet-input:focus { border-color: var(--cyan); }

/* Spin button */
.spin-btn-wrap { position: relative; margin-bottom: 16px; }
#spin-btn {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
#spin-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}
#spin-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,245,255,.4); }
#spin-btn:hover::after { transform: translateX(100%); }
#spin-btn:active { transform: translateY(0); }
#spin-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#spin-btn.spinning {
  animation: spinPulse .5s ease-in-out infinite alternate;
}

/* Spin reel animation */
#spin-reel {
  text-align: center;
  font-size: 28px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
#spin-reel .reel-sym {
  display: inline-block;
  transition: transform .3s;
}
#spin-reel.rolling .reel-sym {
  animation: reelRoll .15s linear infinite;
}

/* Result display */
.gm-result {
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  display: none;
  margin-bottom: 12px;
  animation: resultPop .4s cubic-bezier(.34,1.56,.64,1);
}
.gm-result.show { display: block; }
.gm-result.win {
  background: rgba(0,255,136,.12);
  border: 1px solid rgba(0,255,136,.3);
  color: var(--green);
  text-shadow: 0 0 20px var(--green);
}
.gm-result.loss {
  background: rgba(255,0,50,.08);
  border: 1px solid rgba(255,0,50,.2);
  color: var(--red);
}

/* Demo link */
.gm-footer {
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gm-demo-link {
  font-size: 13px;
  color: var(--text-3);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gm-demo-link:hover { color: var(--cyan); }

/* ══════════════════════════════════════════════════════════
   OFFICE PANEL
══════════════════════════════════════════════════════════ */
#office-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  z-index: 600;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
#office-panel.open { transform: translateX(0); }
#office-panel::before {
  content: '';
  position: sticky;
  top: 0;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  z-index: 1;
}

.office-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  position: sticky;
  top: 2px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.office-title {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
}
#close-office {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
#close-office:hover { background: rgba(255,0,0,.2); color: var(--red); }

#office-content { padding: 24px; }

/* Office profile */
.office-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.office-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-cyber);
  font-size: 32px;
  font-weight: 700;
  transition: box-shadow .3s;
}
.office-avatar:hover { box-shadow: 0 0 24px currentColor; }
.office-username {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}
.office-level {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.office-email { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.office-section { margin-bottom: 24px; }
.section-title {
  font-family: var(--font-cyber);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--cyan); }
.stat-value {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-label { font-size: 11px; color: var(--text-3); letter-spacing: .5px; }

.stats-list { display: flex; flex-direction: column; gap: 8px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.stat-row span:last-child { font-weight: 600; }

.office-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.office-actions .btn-neon,
.office-actions .btn-outline {
  width: 100%;
  text-align: center;
  padding: 11px;
  font-size: 14px;
}

/* History table */
.history-table-wrap { overflow-x: auto; }
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.history-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: .5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-2);
}
.row-win td:last-child { }
.row-loss td:last-child { }

/* Transactions */
.tx-list { display: flex; flex-direction: column; gap: 6px; }
.tx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 6px;
  font-size: 13px;
}
.tx-icon { font-size: 16px; flex-shrink: 0; }
.tx-desc { flex: 1; color: var(--text-2); }
.tx-amount { font-weight: 700; font-family: var(--font-cyber); }

.btn-danger {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,0,50,.1);
  border: 1px solid rgba(255,0,50,.3);
  color: var(--red);
  transition: all .2s;
}
.btn-danger:hover { background: rgba(255,0,50,.2); box-shadow: 0 0 12px rgba(255,0,50,.2); }

.empty-state { font-size: 13px; color: var(--text-3); text-align: center; padding: 16px; }

/* ══════════════════════════════════════════════════════════
   DEPOSIT / WITHDRAW MODALS
══════════════════════════════════════════════════════════ */
.deposit-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  transform: scale(.92) translateY(20px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  padding: 28px;
}
.modal.open .deposit-box { transform: scale(1) translateY(0); }
.deposit-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.deposit-title {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.close-deposit, .close-withdraw {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.close-deposit:hover, .close-withdraw:hover {
  background: rgba(255,0,0,.2);
  color: var(--red);
}

.amount-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.amount-preset {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font-cyber);
}
.amount-preset:hover { border-color: var(--cyan); color: var(--cyan); }

/* ══════════════════════════════════════════════════════════
   TOASTS
══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(20px);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  background: var(--card-bg);
  color: var(--text);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-color: rgba(0,255,136,.4); color: var(--green); }
.toast-error   { border-color: rgba(255,0,50,.4);  color: var(--red); }
.toast-info    { border-color: var(--border); }

/* ══════════════════════════════════════════════════════════
   COLOR UTILITIES
══════════════════════════════════════════════════════════ */
.neon-cyan   { color: var(--cyan)   !important; }
.neon-pink   { color: var(--pink)   !important; }
.neon-green  { color: var(--green)  !important; }
.neon-gold   { color: var(--gold)   !important; }
.neon-purple { color: var(--purple) !important; }
.neon-red    { color: var(--red)    !important; }
.profit-positive { color: var(--green) !important; }
.profit-negative { color: var(--red)   !important; }
.text-muted { color: var(--text-3) !important; }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

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

@keyframes textFlicker {
  0%, 100% { filter: drop-shadow(0 0 20px var(--cyan)); }
  48%       { filter: drop-shadow(0 0 40px var(--pink)) drop-shadow(0 0 60px var(--cyan)); }
  50%       { filter: drop-shadow(0 0 10px var(--cyan)); }
  52%       { filter: drop-shadow(0 0 40px var(--pink)) drop-shadow(0 0 60px var(--cyan)); }
}

@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 10px var(--gold); }
  50%       { text-shadow: 0 0 24px var(--gold), 0 0 48px var(--orange); }
}

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

@keyframes spinPulse {
  from { box-shadow: 0 0 12px var(--cyan); }
  to   { box-shadow: 0 0 32px var(--pink), 0 0 60px var(--purple); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

@keyframes reelRoll {
  from { transform: translateY(0);   }
  to   { transform: translateY(-4px);}
}

@keyframes resultPop {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes thumbBreathe {
  0%, 100% { transform: scale(1);     filter: brightness(1) saturate(1); }
  50%       { transform: scale(1.04); filter: brightness(1.06) saturate(1.1); }
}

@keyframes shimmerSweep {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ══════════════════════════════════════════════════════════
   PP GAME IFRAME MODAL
══════════════════════════════════════════════════════════ */
.pp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: #000;
  animation: fadeUp .2s ease;
}
.pp-modal.hidden { display: none !important; }

.pp-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}

.pp-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cyber);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pp-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.pp-modal-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pp-modal-btn--outline {
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  background: transparent;
}
.pp-modal-btn--outline:hover { background: rgba(0,245,255,.1); }
.pp-modal-btn--close {
  background: rgba(255,0,80,.15);
  border: 1px solid rgba(255,0,80,.3);
  color: #ff4466;
}
.pp-modal-btn--close:hover { background: rgba(255,0,80,.3); }

#pp-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
/* ── #header-user flex fix (needed on all sizes) ── */
#header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
#header-user.hidden { display: none; }

@media (max-width: 768px) {
  /* Header */
  .header { padding: 0 12px; gap: 8px; }
  .header-nav { display: none; }
  .header-lang { display: none; }
  .header-right { gap: 8px; }

  /* Guest buttons — compact on mobile */
  .btn-sign-in    { padding: 7px 12px; font-size: 10px; letter-spacing: 1px; }
  .btn-register-header { padding: 7px 12px; font-size: 10px; letter-spacing: 1px; }

  /* Logged-in header — hide balance label, keep deposit + avatar */
  .balance-display { display: none; }
  .btn-deposit-header { padding: 7px 12px; font-size: 10px; letter-spacing: 1px; }

  /* Hero */
  .hero { padding: 24px 14px; }
  .hero-floats { display: none; }

  /* Games section */
  .games-section { padding: 16px 12px 40px; }
  .category-tabs-wrap { margin-bottom: 14px; }
  .cat-tab { padding: 7px 12px; font-size: 12px; }

  /* Lobby sections */
  .lobby-section { margin-bottom: 32px; }
  .lobby-section-header { margin-bottom: 12px; padding-bottom: 10px; }
  .lobby-section-title { font-size: 13px; }
  .lobby-games-grid .game-card { width: 130px; }
  .lobby-games-grid.expanded { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }

  /* Row nav buttons — hidden on mobile, swipe is used instead */
  .row-nav { display: none; }

  /* Swipe-scroll game rows */
  .lobby-row-wrap {
    position: relative;
    /* Right-edge fade to hint there's more content */
  }
  .lobby-row-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 8px; /* above scroll bar */
    width: 36px;
    background: linear-gradient(to right, transparent, rgba(6,6,18,.85));
    pointer-events: none;
    z-index: 2;
  }
  /* Hide the fade when row is fully expanded */
  .lobby-section.expanded .lobby-row-wrap::after { display: none; }

  /* Smooth iOS momentum scrolling */
  .lobby-games-grid {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto; /* let native momentum handle it on mobile */
    /* Show a thin scroll-progress bar as swipe indicator */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,245,255,.45) rgba(255,255,255,.05);
    padding-bottom: 8px;
  }
  .lobby-games-grid::-webkit-scrollbar { height: 3px; }
  .lobby-games-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
    border-radius: 2px;
  }
  .lobby-games-grid::-webkit-scrollbar-thumb {
    background: rgba(0,245,255,.5);
    border-radius: 2px;
  }

  /* Auth screen */
  .auth-card { padding: 20px 16px; }
  .auth-logo-text { font-size: 32px; letter-spacing: 4px; }
  .auth-container.reg-active { max-width: 100%; }
  .form-row-2 { grid-template-columns: 1fr; }

  /* Modals */
  .game-modal-box { max-width: 100%; margin: 0 4px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pay-method-grid { grid-template-columns: repeat(2, 1fr); }

  /* Search */
  .search-wrap { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: rgba(6,6,15,.97);
  border-top: 1px solid rgba(245,211,0,.15);
  padding: 44px 0 20px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

/* Logo — identical glitch style to header */
.footer-logo {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 900;
  color: var(--cp-yellow);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow:
    0 0 8px var(--cp-yellow),
    0 0 20px var(--cp-yellow2),
    0 0 40px rgba(245,211,0,.3);
  animation: cpLogoPulse 4s ease-in-out infinite;
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}
.footer-logo::before,
.footer-logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}
.footer-logo::before { color: var(--cyan); animation: glitchTop 5s infinite; }
.footer-logo::after  { color: var(--pink); animation: glitchBot 5s infinite; }

.footer-by {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(245,211,0,.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 12px;
  color: rgba(240,240,255,.38);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 280px;
  font-family: var(--font-mono);
}
.footer-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  border: 1px solid rgba(255,50,50,.5);
  color: rgba(255,80,80,.9);
  font-family: var(--font-cyber);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Column headers — same as header nav style */
.footer-col-title {
  font-family: var(--font-cyber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cp-yellow);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,211,0,.15);
}
.footer-link {
  display: block;
  font-family: var(--font-cyber);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(240,240,255,.38);
  margin-bottom: 10px;
  transition: color .2s;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding-left: 10px;
}
.footer-link::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: rgba(245,211,0,.3);
  transition: color .2s;
}
.footer-link:hover { color: var(--cp-yellow); }
.footer-link:hover::before { color: var(--cp-yellow); }

/* Payment row */
.footer-payments {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(245,211,0,.1);
  border-bottom: 1px solid rgba(245,211,0,.1);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.footer-payments-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,211,0,.45);
  white-space: nowrap;
}
.footer-pay-logos { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fpay-logo {
  height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,5,12,.8);
}
.fpay-visa { color: #fff; font-style: italic; font-size: 16px; letter-spacing: 1px; border-color: rgba(26,31,113,.8); }
.fpay-mc { gap: 0; padding: 0 10px; }
.mc-c { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.mc-r { background: #eb001b; }
.mc-o { background: #f79e1b; margin-left: -7px; opacity: .9; }
.fpay-apple { color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500; }
.fpay-revolut { color: rgba(255,255,255,.8); font-size: 12px; letter-spacing: -.3px; }

/* Footer bottom */
.footer-bottom { text-align: center; }
.footer-badges-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 2px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  background: rgba(0,5,12,.85);
  border: 1px solid rgba(245,211,0,.2);
  color: rgba(245,211,0,.65);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(240,240,255,.28);
  line-height: 1.8;
}
.footer-copy a { color: rgba(0,245,255,.6); }
.footer-copy a:hover { color: var(--cyan); }
.footer-copy strong { color: rgba(240,240,255,.5); }

/* ══════════════════════════════════════════════════════════
   DEPOSIT MODAL — PAYMENT METHODS
══════════════════════════════════════════════════════════ */
.deposit-box--wide { max-width: 480px; }

.pay-method-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.pay-method-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}
.pay-method-card:hover { border-color: var(--border-glow); background: var(--bg-3); }
.pay-method-card.active {
  border-color: var(--cyan);
  background: rgba(0,245,255,.08);
  box-shadow: 0 0 14px rgba(0,245,255,.2);
  transform: translateY(-1px);
}
.pm-logo { display: flex; align-items: center; justify-content: center; }

/* Visa */
.pm-visa {
  font-weight: 800;
  font-style: italic;
  font-size: 16px;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: linear-gradient(135deg, #1a1f71, #2563eb);
  width: 100%;
  height: 36px;
  border-radius: 5px;
}
/* Mastercard */
.pm-mc {
  position: relative;
  flex-direction: column;
  gap: 2px;
}
.pm-mc-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
}
.pm-mc-red  { background: #eb001b; left: 4px; }
.pm-mc-orange { background: #f79e1b; left: 16px; opacity: .95; }
.pm-mc-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text-2);
  margin-top: 22px;
  position: relative;
}
/* Apple Pay */
.pm-apple {
  background: #000;
  width: 100%;
  height: 36px;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.3px;
}
/* Revolut */
.pm-revolut {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  background: linear-gradient(135deg, #191c1f, #2c3036);
  width: 100%;
  height: 36px;
  border-radius: 5px;
  flex-direction: row;
}
.pm-revolut-r {
  background: linear-gradient(135deg, #0075eb, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 14px;
  margin-right: 1px;
}

/* ══════════════════════════════════════════════════════════
   CARD FIELDS
══════════════════════════════════════════════════════════ */
.card-fields {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s, margin .3s;
  margin-top: 0;
}
.card-fields.show {
  max-height: 600px;
  opacity: 1;
  margin-top: 18px;
}

/* Card preview widget */
.card-preview {
  position: relative;
  background: linear-gradient(135deg, rgba(4,8,24,.95) 0%, rgba(12,4,28,.95) 100%);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: 14px;
  padding: 22px 24px 18px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 0 80px rgba(0,245,255,.03);
}
.card-preview::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,255,.07), transparent 70%);
  pointer-events: none;
}
.card-preview::after {
  content: '';
  position: absolute;
  bottom: -30%; left: 20%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,0,255,.06), transparent 70%);
  pointer-events: none;
}

.card-preview-chip {
  width: 38px; height: 28px;
  border: 1px solid rgba(245,211,0,.45);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(245,211,0,.08), rgba(245,211,0,.22));
  margin-bottom: 22px;
  position: relative;
}
.card-preview-chip::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0; height: 1px;
  background: rgba(245,211,0,.35);
  transform: translateY(-50%);
}
.card-preview-chip::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0; width: 1px;
  background: rgba(245,211,0,.35);
  transform: translateX(-50%);
}

.card-preview-number {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 3.5px;
  color: rgba(255,255,255,.9);
  margin-bottom: 22px;
  text-shadow: 0 0 10px rgba(0,245,255,.25);
  transition: color .15s;
}

.card-preview-bottom {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.card-preview-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.card-preview-val {
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}
.card-preview-brand {
  margin-left: auto;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  font-family: var(--font-cyber);
  color: rgba(255,255,255,.9);
  letter-spacing: 1px;
  flex-shrink: 0;
}
/* Mastercard two-circles brand */
.card-preview-brand.mc {
  display: flex;
  align-items: center;
  font-size: 0;
}
.card-preview-brand.mc::before,
.card-preview-brand.mc::after {
  content: '';
  width: 28px; height: 28px;
  border-radius: 50%;
  display: block;
}
.card-preview-brand.mc::before { background: rgba(235,0,27,.8); }
.card-preview-brand.mc::after  { background: rgba(247,158,27,.75); margin-left: -10px; }

/* Card fields row (expiry + cvv) */
.card-fields-row {
  display: flex;
  gap: 12px;
}
.card-fields-row .form-group { flex: 1; }
.card-cvv-group { max-width: 110px; flex: 0 0 110px !important; }

/* ══════════════════════════════════════════════════════════
   CONTENT PANEL  (Promotions / VIP / App / T&C / RG …)
══════════════════════════════════════════════════════════ */
.content-panel {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg);
  overflow-y: auto;
  animation: fadeUp .25s ease;
}
.content-panel.hidden { display: none !important; }

.cp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  height: 56px;
  background: rgba(6,6,15,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.cp-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,245,255,.3);
  transition: background .2s;
  white-space: nowrap;
}
.cp-back:hover { background: rgba(0,245,255,.1); }
.cp-title {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}
.cp-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* Promotions cards */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.promo-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}
.promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  background: inherit;
}
.promo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.promo-icon { font-size: 36px; margin-bottom: 12px; }
.promo-title {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.promo-amount {
  font-family: var(--font-cyber);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.promo-desc { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 18px; }
.promo-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--bg);
  background: rgba(255,255,255,.9);
  transition: opacity .2s;
  cursor: pointer;
}
.promo-cta:hover { opacity: .85; }

/* VIP tier table */
.vip-hero {
  text-align: center;
  margin-bottom: 40px;
}
.vip-hero-icon { font-size: 64px; margin-bottom: 12px; }
.vip-hero-title {
  font-family: var(--font-cyber);
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.vip-hero-sub { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 540px; margin: 0 auto; }
.vip-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.vip-tier-card {
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--card-bg);
  transition: transform .25s, box-shadow .25s;
}
.vip-tier-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.vip-tier-icon { font-size: 32px; margin-bottom: 8px; }
.vip-tier-name { font-family: var(--font-cyber); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.vip-tier-perks { font-size: 12px; color: var(--text-2); line-height: 1.8; text-align: left; }
.vip-tier-perks li { list-style: none; padding-left: 14px; position: relative; }
.vip-tier-perks li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }

/* App coming soon */
/* ══════════════════════════════════════════════════════════
   APP PAGE — CP2077 REDESIGN
══════════════════════════════════════════════════════════ */
.app-page { padding: 8px 0 0; }

.app-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}

/* ── Phone column ── */
.app-phone-col {
  display: flex;
  justify-content: center;
}
.app-phone-wrap {
  position: relative;
  width: 160px;
}
.app-phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(0,245,255,.18) 0%, transparent 70%);
  pointer-events: none;
  animation: appGlowPulse 3s ease-in-out infinite;
}
@keyframes appGlowPulse {
  0%,100% { opacity: .7; }
  50%      { opacity: 1; }
}
.app-phone-frame {
  width: 160px;
  height: 300px;
  border-radius: 24px;
  border: 2px solid rgba(0,245,255,.45);
  background: rgba(0,5,12,.95);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,245,255,.1),
    0 0 30px rgba(0,245,255,.12),
    inset 0 0 20px rgba(0,0,0,.6);
}
/* side buttons */
.app-btn-vol {
  position: absolute;
  left: -3px; top: 64px;
  width: 3px; height: 32px;
  background: rgba(0,245,255,.3);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 20px 0 rgba(0,245,255,.3);
}
.app-btn-pwr {
  position: absolute;
  right: -3px; top: 80px;
  width: 3px; height: 24px;
  background: rgba(0,245,255,.3);
  border-radius: 0 2px 2px 0;
}
/* screen */
.app-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-screen-notch {
  width: 50px; height: 14px;
  background: rgba(0,5,12,.95);
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0,245,255,.2);
  border-top: none;
}
.app-screen-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(0,245,255,.6);
}
.app-screen-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  border-bottom: 1px solid rgba(245,211,0,.15);
}
.app-screen-logo {
  font-family: var(--font-cyber);
  font-size: 9px;
  font-weight: 900;
  color: var(--cp-yellow);
  letter-spacing: 2px;
  text-shadow: 0 0 6px var(--cp-yellow);
}
.app-screen-bal {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #00f5ff;
  text-shadow: 0 0 5px rgba(0,245,255,.6);
}
.app-screen-jp {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(245,211,0,.8);
  text-align: center;
  padding: 4px 0;
  background: rgba(245,211,0,.05);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(245,211,0,.5);
}
.app-screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 6px 8px;
  flex: 1;
}
.app-screen-tile {
  border-radius: 4px;
  aspect-ratio: 1;
  opacity: .85;
}
.app-screen-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid rgba(0,245,255,.1);
}
.app-nav-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0,245,255,.25);
}
.app-nav-dot.active { background: var(--cp-yellow); box-shadow: 0 0 5px var(--cp-yellow); }
.app-screen-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.12) 3px,
    rgba(0,0,0,.12) 4px
  );
  pointer-events: none;
}
/* CP2077 corner brackets */
.app-corner {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.app-corner-tl { top: -4px; left: -4px; border-top: 2px solid var(--cp-yellow); border-left: 2px solid var(--cp-yellow); }
.app-corner-tr { top: -4px; right: -4px; border-top: 2px solid var(--cp-yellow); border-right: 2px solid var(--cp-yellow); }
.app-corner-bl { bottom: -4px; left: -4px; border-bottom: 2px solid var(--cp-yellow); border-left: 2px solid var(--cp-yellow); }
.app-corner-br { bottom: -4px; right: -4px; border-bottom: 2px solid var(--cp-yellow); border-right: 2px solid var(--cp-yellow); }

/* ── Info column ── */
.app-info-col { padding-top: 4px; }

.app-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(0,245,255,.8);
  border: 1px solid rgba(0,245,255,.3);
  background: rgba(0,245,255,.06);
  padding: 4px 12px;
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
  margin-bottom: 14px;
}
.app-headline {
  font-family: var(--font-cyber);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(255,255,255,.08);
}
.app-headline-accent {
  color: var(--cp-yellow);
  text-shadow: 0 0 10px var(--cp-yellow), 0 0 30px rgba(245,211,0,.3);
}
.app-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(240,240,255,.45);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 380px;
}

/* Feature spec rows */
.app-specs { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.app-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  transition: border-color .15s, background .15s;
}
.app-spec-row:not(:last-child) { border-bottom: 1px solid rgba(0,245,255,.07); }
.app-spec-row:hover {
  border-left-color: var(--cp-yellow);
  background: rgba(245,211,0,.03);
}
.app-spec-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,5,12,.8);
  border: 1px solid rgba(0,245,255,.2);
  clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
  color: rgba(0,245,255,.8);
}
.app-spec-body { display: flex; flex-direction: column; gap: 2px; }
.app-spec-title {
  font-family: var(--font-cyber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(245,211,0,.9);
}
.app-spec-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(240,240,255,.4);
}

/* Store buttons */
/* PWA install button */
.pwa-install-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 6px;
  padding: 13px 28px;
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #060612;
  background: linear-gradient(135deg, #00f5ff, #00aacc);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 0 20px rgba(0,245,255,.4);
}
.pwa-install-btn:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.pwa-install-btn:disabled {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
  box-shadow: none;
  cursor: default;
}
.app-install-hint {
  font-size: 11px;
  color: var(--text-3);
  margin: 0 0 16px;
}

/* iOS add-to-home guide */
.ios-guide {
  background: rgba(0,245,255,.05);
  border: 1px solid rgba(0,245,255,.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 20px;
}
.ios-guide-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ios-guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ios-guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.ios-guide-steps li strong { color: var(--text-1); }
.ios-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,245,255,.15);
  border: 1px solid rgba(0,245,255,.3);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ios-share-icon {
  display: inline-block;
  vertical-align: middle;
  color: var(--cyan);
  margin-left: 3px;
  margin-top: -2px;
}

.app-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.app-store-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(240,240,255,.75);
  background: rgba(0,5,12,.85);
  border: 1px solid rgba(0,245,255,.25);
  clip-path: polygon(7px 0%,100% 0%,calc(100% - 7px) 100%,0% 100%);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.app-store-btn:hover {
  border-color: var(--cp-yellow);
  color: var(--cp-yellow);
  background: rgba(245,211,0,.05);
}

/* Notify strip */
.app-notify-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(0,5,12,.8);
  border: 1px solid rgba(0,245,255,.15);
  border-left: 3px solid var(--cp-yellow);
  clip-path: polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%);
  flex-wrap: wrap;
}
.app-notify-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(245,211,0,.7);
  white-space: nowrap;
}
.app-notify-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.app-notify-input { flex: 1; min-width: 0; }
.app-notify-btn {
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0 18px;
  height: 40px;
  background: linear-gradient(135deg, rgba(245,211,0,.15), rgba(255,153,0,.1));
  border: 1px solid rgba(245,211,0,.4);
  color: var(--cp-yellow);
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.app-notify-btn:hover {
  background: linear-gradient(135deg, rgba(245,211,0,.25), rgba(255,153,0,.15));
  border-color: var(--cp-yellow);
}

/* legacy stubs kept for old references */
.app-hero { display: none; }
.app-soon-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0,245,255,.12);
  border: 1px solid rgba(0,245,255,.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.app-title {
  font-family: var(--font-cyber);
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.app-sub { font-size: 16px; color: var(--text-2); max-width: 480px; margin: 0 auto 40px; line-height: 1.6; }
.app-features {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.app-feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 180px;
  text-align: center;
}
.app-feature-icon { font-size: 32px; margin-bottom: 10px; }
.app-feature-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.app-phone-mock {
  width: 180px;
  height: 320px;
  border-radius: 32px;
  border: 3px solid rgba(255,255,255,.15);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}

/* Legal / T&C / RG text pages */
.legal-title {
  font-family: var(--font-cyber);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 36px;
  letter-spacing: .5px;
}
.legal-section { margin-bottom: 32px; }
.legal-section h3 {
  font-family: var(--font-cyber);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.legal-section p, .legal-section li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-section ul { padding-left: 20px; }
.legal-section li { list-style: disc; }
.legal-highlight {
  background: rgba(0,245,255,.06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.rg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.rg-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.rg-card-icon { font-size: 28px; margin-bottom: 8px; }
.rg-card-title { font-family: var(--font-cyber); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rg-card-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.rg-helpline {
  background: linear-gradient(135deg, rgba(139,0,255,.15), rgba(0,245,255,.1));
  border: 1px solid rgba(139,0,255,.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: 32px;
}
.rg-helpline-title { font-family: var(--font-cyber); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rg-helpline-num { font-size: 28px; font-weight: 700; color: var(--cyan); margin-bottom: 6px; }
.rg-helpline-sub { font-size: 13px; color: var(--text-2); }
.rg-helpline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}
.rg-helpline-row a {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(0,245,255,.3);
  border-radius: 6px;
  transition: background .2s;
}
.rg-helpline-row a:hover { background: rgba(0,245,255,.1); }
.rg-helpline-phone {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 600;
}
.rg-helpline-phone strong { color: var(--cyan); }

/* Panel generic content wrappers */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
}

/* Promo card coloring */
.promo-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--promo-clr) 18%, transparent), color-mix(in srgb, var(--promo-clr) 6%, var(--card-bg)));
}
.promo-card::before { background: var(--promo-clr); }
.promo-badge { background: color-mix(in srgb, var(--promo-clr) 30%, transparent); color: var(--promo-clr); }
.promo-card h3 {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.promo-value {
  font-family: var(--font-cyber);
  font-size: 28px;
  font-weight: 700;
  color: var(--promo-clr);
  margin-bottom: 10px;
}
.promo-card > p:not(.promo-value) { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 18px; }

/* VIP hero h2/p direct tags */
.vip-hero h2 {
  font-family: var(--font-cyber);
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.vip-hero p { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 540px; margin: 0 auto; }

/* VIP tier dynamic border */
.vip-tier-card { border-top: 3px solid var(--tier-clr, #cd7f32); }
.vip-tier-name { color: var(--tier-clr, #cd7f32); }
.vip-tier-req {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.vip-tier-perks { list-style: none; padding: 0; text-align: left; }

/* App feature card (alias) */

/* RG card direct h4/p tags */
.rg-card h4 {
  font-family: var(--font-cyber);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.rg-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   NEON SIGN
══════════════════════════════════════════════════════════ */
.neon-sign-wrap {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 36px 56px 28px;
  margin-bottom: 28px;
  text-align: center;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 3px;
  box-shadow:
    inset 0 0 80px rgba(0,0,0,.8),
    0 0 40px rgba(0,0,0,.5);
  contain: layout paint;
  isolation: isolate;
}
/* Top & bottom decorative wire */
.neon-sign-wrap::before,
.neon-sign-wrap::after {
  content: '';
  position: absolute;
  left: 10%; width: 80%; height: 1px;
  background: rgba(255,255,255,.07);
}
.neon-sign-wrap::before { top: 12px; }
.neon-sign-wrap::after  { bottom: 12px; }

.neon-sign {
  font-family: var(--font-cyber);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ns-line   { display: block; white-space: nowrap; }
.ns-line-1 { font-size: clamp(30px, 5.5vw, 68px); }
.ns-line-2 { font-size: clamp(26px, 4.5vw, 56px); margin-top: 4px; }

.ns-word   { display: inline-block; transition: text-shadow .04s, color .04s; will-change: filter; }

/* ── Cyan tube ── */
.ns-cyan {
  color: #eaffff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #00f5ff,
    0 0 82px #00f5ff,
    0 0 92px #00f5ff,
    0 0 160px #00f5ff;
}

/* ── Gold tube ── */
.ns-gold {
  color: #fffff0;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #ffd700,
    0 0 82px #ffd700,
    0 0 92px #ff8800,
    0 0 160px #ff8800;
  animation: neonGoldPulse 2.8s ease-in-out infinite;
}

/* ── Pink tube ── */
.ns-pink {
  color: #ffe8ff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #ff00cc,
    0 0 82px #ff00cc,
    0 0 92px #ff00cc,
    0 0 160px #8800aa;
}

/* ── Dim connectors ── */
.ns-warm {
  color: rgba(255,235,200,.45);
  text-shadow: 0 0 8px rgba(255,200,150,.3);
  font-size: .72em;
  font-weight: 400;
  letter-spacing: .03em;
}
.ns-dim {
  color: rgba(255,255,255,.3);
  text-shadow: 0 0 6px rgba(255,255,255,.15);
  font-size: .6em;
  font-weight: 400;
  letter-spacing: .03em;
}

/* ── Flicker-off state (JS toggles this) ── */
.ns-flicker {
  color: rgba(255,255,255,.06) !important;
  text-shadow: none !important;
  animation: none !important;
}

/* ── Gold tube breathing ── */
@keyframes neonGoldPulse {
  0%,100% {
    text-shadow:
      0 0 5px #fff, 0 0 10px #fff, 0 0 21px #fff,
      0 0 42px #ffd700, 0 0 82px #ffd700,
      0 0 92px #ff8800, 0 0 160px #ff8800;
  }
  50% {
    text-shadow:
      0 0 3px #fff, 0 0 7px #fff, 0 0 14px #fff,
      0 0 28px #ffd700, 0 0 55px #ffd700,
      0 0 65px #ff8800, 0 0 110px #ff8800;
  }
}

/* ══════════════════════════════════════════════════════════
   SHARE TECH MONO – data / stats / readouts
══════════════════════════════════════════════════════════ */
.stat-value, #header-balance, #jackpot-amount,
.game-rtp, .game-vol, .game-maxwin,
.gm-balance, #gm-rtp, #gm-vol, #gm-max,
.tx-amount, .balance-display span,
.form-input, .search-input,
#bet-input,
.history-table td,
.office-email,
.footer-copy,
.footer-badge {
  font-family: var(--font-mono) !important;
}

/* Auth tabs */
.auth-tab {
  font-family: var(--font-cyber);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Auth submit button */
.btn-auth {
  font-family: var(--font-cyber) !important;
  letter-spacing: 2px !important;
  font-size: 13px !important;
  border-radius: 2px !important;
}

/* Form labels */
.form-label {
  font-family: var(--font-cyber) !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--text-3) !important;
}

/* Dropdown items */
.dropdown-item {
  font-family: var(--font-cyber) !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}

/* Game name on card */
.game-name {
  font-family: var(--font-cyber) !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
}

/* Office username */
.office-username {
  font-family: var(--font-cyber) !important;
  letter-spacing: 2px !important;
}

/* Stat labels */
.stat-label, .stat-row span:first-child {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: .5px !important;
}

/* Toast */
.toast {
  font-family: var(--font-cyber) !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
}

/* Deposit/withdraw input */
#deposit-amount, #withdraw-amount {
  font-family: var(--font-mono) !important;
  font-size: 18px !important;
}

/* Amount presets */
.amount-preset {
  font-family: var(--font-cyber) !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
}

/* Pay method label */
.pay-method-label {
  font-family: var(--font-cyber) !important;
  letter-spacing: 2px !important;
}

/* Search placeholder */
.search-input {
  font-family: var(--font-mono) !important;
}

/* ══════════════════════════════════════════════════════════
   CYBERPUNK GLOBAL OVERRIDES
══════════════════════════════════════════════════════════ */
/* Section titles */
.section-title {
  font-family: var(--font-cyber) !important;
  letter-spacing: .05em !important;
}
/* Category tabs */
.cat-tab {
  font-family: var(--font-cyber);
  font-size: 10px !important;
  letter-spacing: 1px;
}
/* Game card play button */
.btn-play-card {
  font-family: var(--font-cyber) !important;
  letter-spacing: 2px !important;
  font-size: 10px !important;
  border-radius: 2px !important;
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
}
/* Office panel title */
.office-title {
  font-family: var(--font-cyber) !important;
  letter-spacing: 3px !important;
  color: var(--cp-yellow) !important;
  text-shadow: 0 0 12px rgba(245,211,0,.4) !important;
}
/* Deposit title */
.deposit-title {
  font-family: var(--font-cyber) !important;
  letter-spacing: 2px !important;
}
/* Content panel title */
.cp-title {
  font-family: var(--font-cyber) !important;
  letter-spacing: 2px !important;
}

/* ══════════════════════════════════════════════════════════
   CP2077 NUMBER & FIELD STYLING
══════════════════════════════════════════════════════════ */

/* Remove browser number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

/* Base terminal input */
.form-input {
  background: rgba(0,5,12,.9) !important;
  border: 1px solid rgba(0,245,255,.18) !important;
  border-radius: 2px !important;
  color: rgba(180,240,255,.85) !important;
  letter-spacing: .5px;
}
.form-input:focus {
  border-color: rgba(0,245,255,.55) !important;
  box-shadow: 0 0 0 1px rgba(0,245,255,.06), 0 0 20px rgba(0,245,255,.12), inset 0 0 30px rgba(0,245,255,.04) !important;
  color: #e8f8ff !important;
}
.form-input::placeholder {
  color: rgba(0,245,255,.18) !important;
}

/* Money / amount inputs — gold */
#deposit-amount,
#withdraw-amount {
  color: var(--cp-yellow) !important;
  font-size: 22px !important;
  letter-spacing: 2px !important;
  text-align: center;
  border-color: rgba(245,211,0,.22) !important;
}
#deposit-amount:focus,
#withdraw-amount:focus {
  border-color: rgba(245,211,0,.5) !important;
  box-shadow: 0 0 20px rgba(245,211,0,.1), inset 0 0 24px rgba(245,211,0,.04) !important;
}
#deposit-amount::placeholder,
#withdraw-amount::placeholder {
  color: rgba(245,211,0,.2) !important;
}

/* Card number / expiry / CVV — cyan readout */
#card-number {
  color: #b0f0ff !important;
  letter-spacing: 3px !important;
  font-size: 16px !important;
}
#card-expiry,
#card-cvv {
  color: #b0f0ff !important;
  letter-spacing: 2px !important;
}
#card-name {
  text-transform: uppercase;
  color: rgba(255,255,255,.8) !important;
  letter-spacing: 2px !important;
}

/* Amount preset chips — angular, gold */
.amount-preset {
  border-radius: 2px !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  color: rgba(245,211,0,.65) !important;
  border-color: rgba(245,211,0,.2) !important;
  background: rgba(245,211,0,.04) !important;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: all .15s !important;
}
.amount-preset:hover {
  color: var(--cp-yellow) !important;
  border-color: rgba(245,211,0,.5) !important;
  background: rgba(245,211,0,.09) !important;
  box-shadow: 0 0 14px rgba(245,211,0,.2);
}

/* Stat values — glow matching their color */
.neon-cyan  { text-shadow: 0 0 12px rgba(0,245,255,.55) !important; }
.neon-green { text-shadow: 0 0 12px rgba(0,255,136,.55) !important; }
.neon-gold  { text-shadow: 0 0 12px rgba(255,215,0,.55)  !important; }
.neon-pink  { text-shadow: 0 0 12px rgba(255,0,204,.55)  !important; }

/* Header balance — stronger pulse */
#header-balance {
  text-shadow: 0 0 8px rgba(0,245,255,.6), 0 0 20px rgba(0,245,255,.3) !important;
}

/* Jackpot amount — gold pulse already applied, boost */
#jackpot-amount {
  text-shadow:
    0 0 8px var(--cp-yellow),
    0 0 28px rgba(245,211,0,.6),
    0 0 60px rgba(245,211,0,.25) !important;
}

/* Game RTP / maxwin */
.game-rtp {
  letter-spacing: .5px;
  text-shadow: 0 0 6px rgba(255,255,255,.15);
}
.game-maxwin {
  letter-spacing: .5px;
  text-shadow: 0 0 10px rgba(255,215,0,.5) !important;
}

/* Transaction amounts */
.tx-amount { letter-spacing: 1px; }

/* ── Header Balance — CP2077 terminal readout ── */
.balance-display {
  background: rgba(0,5,12,.92) !important;
  border: 1px solid rgba(0,245,255,.35) !important;
  border-radius: 2px !important;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%) !important;
  padding: 5px 14px 5px 10px !important;
  gap: 7px !important;
  box-shadow: 0 0 12px rgba(0,245,255,.15), inset 0 0 8px rgba(0,245,255,.05) !important;
}
#header-balance {
  font-family: var(--font-mono) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  color: #00f5ff !important;
  text-shadow: 0 0 8px rgba(0,245,255,.9), 0 0 22px rgba(0,245,255,.45) !important;
  min-width: unset !important;
}

/* ── Mega Jackpot — CP2077 gold terminal block ── */
.jackpot-label {
  font-family: var(--font-cyber) !important;
  font-size: 11px !important;
  letter-spacing: 8px !important;
  color: rgba(245,211,0,.95) !important;
  text-shadow: 0 0 10px rgba(245,211,0,.55) !important;
}
#jackpot-amount {
  font-family: var(--font-mono) !important;
  font-size: 36px !important;
  letter-spacing: 5px !important;
  background: rgba(0,5,12,.88) !important;
  border: 1px solid rgba(245,211,0,.45) !important;
  border-radius: 2px !important;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%) !important;
  padding: 4px 24px !important;
  box-shadow: 0 0 18px rgba(245,211,0,.22), inset 0 0 14px rgba(245,211,0,.07) !important;
  text-shadow:
    0 0 8px var(--cp-yellow),
    0 0 28px rgba(245,211,0,.65),
    0 0 60px rgba(245,211,0,.28) !important;
}

/* ── Language switcher (header) ── */
.header-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 14px;
  background: rgba(0,5,12,.8);
  border: 1px solid rgba(0,245,255,.2);
  color: rgba(0,245,255,.45);
  clip-path: polygon(5px 0%,100% 0%,calc(100% - 5px) 100%,0% 100%);
  cursor: pointer;
  transition: all .15s;
}
.lang-btn.active {
  background: rgba(245,211,0,.1);
  border-color: rgba(245,211,0,.5);
  color: var(--cp-yellow);
  box-shadow: 0 0 8px rgba(245,211,0,.18);
}
.lang-btn:hover:not(.active) {
  border-color: rgba(0,245,255,.4);
  color: rgba(0,245,255,.75);
}

/* Card preview number — stronger glow */
.card-preview-number {
  text-shadow: 0 0 8px rgba(0,245,255,.4), 0 0 20px rgba(0,245,255,.15) !important;
}
.card-preview-val {
  text-shadow: 0 0 6px rgba(255,255,255,.2);
}

/* ══════════════════════════════════════════════════════════
   GAME IFRAME OVERLAY
══════════════════════════════════════════════════════════ */
.game-iframe-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.game-iframe-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.gio-bar {
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(6,6,15,.97);
  border-bottom: 1px solid rgba(0,245,255,.15);
}
.gio-game-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
}
.gio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
#gio-name {
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#gio-provider {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(0,245,255,.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.gio-newtab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(0,245,255,.07);
  border: 1px solid rgba(0,245,255,.2);
  border-radius: 2px;
  color: rgba(0,245,255,.7);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.gio-newtab-btn:hover {
  background: rgba(0,245,255,.15);
  color: #00f5ff;
}
.gio-close-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.gio-close-btn:hover {
  background: rgba(255,50,50,.25);
  border-color: rgba(255,50,50,.5);
  color: #fff;
}
.gio-frame-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.gio-blocked {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0,0,5,.9);
  color: rgba(255,255,255,.55);
  font-family: var(--font-mono);
  font-size: 13px;
}
.gio-blocked p { margin: 0; }
.gio-blocked .btn-primary {
  font-size: 12px;
  padding: 10px 24px;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   MOBILE OVERRIDES (must be last to win specificity order)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-lang { display: none; }
  .header-right { gap: 8px; }
  .header { padding: 0 12px; gap: 8px; }

  .btn-sign-in,
  .btn-register-header {
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .balance-display { display: none; }
  .btn-deposit-header { padding: 7px 12px; font-size: 10px; letter-spacing: 1px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }

  .auth-logo-text { font-size: 32px; letter-spacing: 4px; }
  .auth-card { padding: 20px 16px; overflow: visible; }
  .auth-container.reg-active { max-width: 100%; }

  /* Allow the auth screen to scroll so all register fields are reachable */
  #auth-screen {
    align-items: flex-start;
    overflow-y: auto;
    padding: 24px 16px 40px;
  }
  .auth-logo { margin-bottom: 20px; }

  /* Remove inner form scroll — let the page scroll instead */
  #register-form {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(240,240,255,.85);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  /* Hide desktop register button — it lives in the mobile drawer */
  .btn-register-header { display: none; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
.mobile-menu.open { pointer-events: all; }

.mm-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  opacity: 0;
  transition: opacity .25s;
  backdrop-filter: blur(2px);
}
.mobile-menu.open .mm-bg { opacity: 1; }

.mm-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 290px;
  max-width: 88vw;
  height: 100%;
  background: #0d1117;
  border-left: 1px solid rgba(0,245,255,.12);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open .mm-drawer { transform: translateX(0); }

/* Top bar */
.mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.mm-logo {
  font-family: var(--font-cyber);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--cp-yellow), var(--cp-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mm-close {
  background: none;
  border: none;
  color: rgba(240,240,255,.5);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.mm-close:hover { color: #fff; background: rgba(255,255,255,.07); }

/* Guest auth section */
.mm-auth-section {
  display: flex;
  gap: 10px;
  padding: 20px 20px 16px;
}
.mm-auth-btn {
  flex: 1;
  padding: 11px 8px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.mm-auth-btn:hover { opacity: .85; transform: translateY(-1px); }
.mm-signin-btn {
  background: none;
  border: 1px solid rgba(0,245,255,.45);
  color: var(--cp-cyan);
}
.mm-register-btn {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  color: #fff;
}

/* User info section */
.mm-user-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
}
.mm-avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--purple);
  box-shadow: 0 0 14px rgba(139,0,255,.35);
}
.mm-user-text { min-width: 0; }
.mm-username {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  color: #e0e0ff;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-balance {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 700;
  color: var(--cp-cyan);
  margin-top: 2px;
  text-shadow: 0 0 10px rgba(0,245,255,.4);
}

/* Divider */
.mm-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 4px 0;
  flex-shrink: 0;
}

/* Nav links */
.mm-nav {
  padding: 8px 12px;
}
.mm-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  color: rgba(240,240,255,.65);
  text-decoration: none;
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.mm-nav-link:hover, .mm-nav-link.active { background: rgba(0,245,255,.07); color: var(--cp-cyan); }
.mm-nav-link svg { flex-shrink: 0; opacity: .7; }
.mm-nav-link:hover svg, .mm-nav-link.active svg { opacity: 1; }

/* Account actions */
.mm-actions {
  padding: 8px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mm-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  background: none;
  border: none;
  color: rgba(240,240,255,.65);
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mm-action:hover { background: rgba(255,255,255,.05); color: #e0e0ff; }
.mm-logout-btn { color: rgba(248,81,73,.7); margin-top: 4px; }
.mm-logout-btn:hover { background: rgba(248,81,73,.08); color: #f85149; }
