/* ═══════════════════════════════════════════════════════════════
   MELLSTROY Casino — Desktop Site Styles
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg:          #1b0e26;
  --bg2:         #281837;
  --bg3:         #2e1c3d;
  --card:        #342047;
  --card-hover:  #3e2a55;
  --border:      rgba(255,255,255,0.08);
  --accent:      #7c3aed;
  --accent2:     #9333ea;
  --accent-dim:  rgba(124,58,237,0.20);
  --green:       #22c55e;
  --green-dim:   rgba(34,197,94,0.15);
  --gold:        #f4c430;
  --text:        #ffffff;
  --text-muted:  rgba(255,255,255,0.55);
  --sidebar-w:   240px;
  --topbar-h:    60px;
  --radius:      10px;
  --trans:       0.2s ease;
}

html, body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  padding: 8px;
  transition: transform var(--trans), width var(--trans);
  overflow: hidden;
}

/* Inner rounded card wrapping all sidebar content */
.sidebar-card {
  background: var(--card);
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar.collapsed { width: 60px; padding: 8px; }

/* — hide text content in collapsed state — */
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-item-inner,
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-fortune-text,
.sidebar.collapsed .sidebar-app-install .install-text,
.sidebar.collapsed .sidebar-socials,
.sidebar.collapsed .sidebar-online-row,
.sidebar.collapsed .sidebar-mode-inner .mode-btn-label,
.sidebar.collapsed .sidebar-balance-block,
.sidebar.collapsed .sidebar-guest-info,
.sidebar.collapsed .sidebar-guest-login-btn,
.sidebar.collapsed .sidebar-user-block > svg,
.sidebar.collapsed .mode-btn--sport,
.sidebar.collapsed .nav-divider,
.sidebar.collapsed .sidebar-lang-text,
.sidebar.collapsed .support-expanded,
.sidebar.collapsed .install-app-img { display: none; }

/* — center every icon row — */
.sidebar.collapsed .nav-item         { justify-content: center; padding: 10px 0; }
.sidebar.collapsed .sidebar-guest-block { justify-content: center; padding: 6px 0 10px; }
.sidebar.collapsed .sidebar-user-block  { justify-content: center; }
.sidebar.collapsed .sidebar-mode-inner  { height: 40px; justify-content: center; }
.sidebar.collapsed .sidebar-footer-row  { justify-content: center; }

/* collapsed: tighten footer padding so 36px buttons fit in 44px card */
.sidebar.collapsed .sidebar-footer { padding: 8px 4px; }

/* collapsed: lang + support as square icon buttons */
.sidebar.collapsed .sidebar-support-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  padding: 0;
  justify-content: center;
  align-self: center;
  margin: 0 auto;
}
.sidebar.collapsed .sidebar-support-badge { display: none; }
.sidebar.collapsed .sidebar-support-icon { display: block !important; }
.sidebar.collapsed .sidebar-lang {
  width: 36px; height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
  margin: 0 auto;
}
.sidebar.collapsed .sidebar-flag { width: 22px; height: 22px; border-radius: 50%; }
.sidebar.collapsed .sidebar-app-install { justify-content: center; padding: 6px 4px; }

/* — fortune banner as icon — */
.sidebar.collapsed .sidebar-fortune {
  justify-content: center;
  padding: 8px 0;
  margin: 0 0 10px;
  min-height: 44px;
  overflow: hidden;
}
.sidebar.collapsed .sidebar-fortune-img {
  position: static;
  height: 32px;
  width: 32px;
  object-fit: contain;
}

/* — divider row: tighten margin, hide line — */
.sidebar.collapsed .sidebar-divider-row  { margin: 4px 0 8px; height: 30px; }
.sidebar.collapsed .sidebar-divider-line { display: none; }

/* — card radius tighter when narrow — */
.sidebar.collapsed .sidebar-card { border-radius: 14px; }

/* ─── SIDEBAR ONLINE ROW ─────────────────────────────────────── */
.sidebar-online-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px;
  flex-shrink: 0;
  font-size: 14px;
}
.sidebar-online-label { color: var(--text-muted); }
.sidebar-online-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}

/* Pulsing green dot */
.pulse-point {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ─── DIVIDER + COLLAPSE BUTTON ──────────────────────────────── */
.sidebar-divider-row {
  position: relative;
  margin: 4px 14px 12px;
  flex-shrink: 0;
}
.sidebar-divider-line {
  height: 1px;
  background: var(--border);
}
.sidebar-collapse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  z-index: 1;
}
.sidebar-collapse:hover { background: var(--accent-dim); color: var(--text); }
.sidebar-collapse svg { transition: transform var(--trans); }
.sidebar.collapsed .sidebar-collapse svg { transform: rotate(180deg); }

/* ─── USER / GUEST BLOCK ─────────────────────────────────────── */
.sidebar-guest-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 10px;
}
.sidebar-guest-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(124,58,237,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
}
.sidebar-guest-info { flex: 1; min-width: 0; }
.sidebar-guest-name { font-size: 14px; font-weight: 500; }
.sidebar-guest-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sidebar-guest-login-btn {
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background var(--trans);
}
.sidebar-guest-login-btn:hover { background: var(--accent2); }

.sidebar-user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 10px;
  cursor: pointer;
  transition: background var(--trans);
}
.sidebar-user-block:hover { background: var(--accent-dim); }
.sidebar-avatar-wrap { position: relative; flex-shrink: 0; }
.sidebar-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(124,58,237,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-avatar-dot {
  position: absolute;
  top: 2px; right: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--card);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-username { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-userid { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ─── MODE TABS ──────────────────────────────────────────────── */
.sidebar-mode-btns {
  padding: 0 12px 12px;
  flex-shrink: 0;
}
.sidebar-mode-inner {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  height: 40px;
  overflow: hidden;
  display: flex;
}
.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--trans);
  white-space: nowrap;
}
.mode-btn--active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.mode-btn--sport { opacity: 0.5; cursor: default; }

/* ─── FORTUNE BANNER ─────────────────────────────────────────── */
.sidebar-fortune {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 0 12px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184,72,255,0.18), rgba(124,58,237,0.10));
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--trans);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  min-height: 55px;
}
.sidebar-fortune:hover { background: rgba(184,72,255,0.25); }
.sidebar-fortune-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.sidebar-fortune-img {
  position: absolute;
  bottom: 0; right: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
}

/* Casino mode button (legacy, not used) */
.sidebar-casino-btn { padding: 0; }
.casino-mode-btn { display: none; }

/* ─── SIDEBAR BALANCE BLOCK ──────────────────────────────────── */
.sidebar-balance-block {
  padding: 8px 10px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-balance-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color var(--trans);
}
.sidebar-balance-pill:hover { border-color: var(--accent); }

.sidebar-balance-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-rub-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sidebar-balance-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-balance-chev {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sidebar-deposit-btn,
.sidebar-withdraw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  transition: opacity var(--trans);
}
.sidebar-deposit-btn { background: var(--green); color: #fff; }
.sidebar-deposit-btn:hover { opacity: 0.85; }
.sidebar-withdraw-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); }
.sidebar-withdraw-btn:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ─── NAV ────────────────────────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 12px 6px;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: opacity var(--trans);
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}
.nav-item:hover { opacity: 0.75; }
.nav-item.active { font-weight: 500; }

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-icon img { width: 18px; height: 18px; object-fit: contain; }
.nav-icon svg { width: 18px; height: 18px; }

.nav-item-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
.nav-label { overflow: hidden; text-overflow: ellipsis; }

.nav-badge-green {
  background: var(--green);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  width: 28px; height: 18px;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

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

/* ─── SIDEBAR FOOTER ─────────────────────────────────────────── */
.sidebar-footer {
  padding: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-app-install {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--bg3);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  transition: background var(--trans);
}
.sidebar-app-install:hover { background: var(--bg2); }
.install-app-img {
  height: 44px;
  width: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.install-text { flex: 1; font-size: 12px; font-weight: 600; color: var(--text); min-width: 0; }
.install-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--trans);
  border: none;
}
.install-btn:hover { background: rgba(255,255,255,0.18); }

.sidebar-footer-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-socials { display: flex; gap: 4px; flex: 1; }
.social-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--trans);
}
.social-btn:hover { opacity: 0.7; }
.social-btn img { display: block; width: 32px; height: 32px; }

.sidebar-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 8px;
  padding: 0 10px;
  height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--trans);
}
.sidebar-lang:hover { background: var(--accent-dim); }
.sidebar-flag { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sidebar-lang-text { font-size: 14px; font-weight: 600; }

.sidebar-support-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  cursor: pointer;
  transition: background var(--trans);
}
.sidebar-support-btn:hover { background: rgba(255,255,255,0.10); }
.sidebar-support-icon { display: none; }
.support-expanded { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; }
.sidebar-support-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 0 8px;
  height: 20px;
  border-radius: 12px;
  display: flex; align-items: center;
}

/* ─── MAIN WRAP ──────────────────────────────────────────────── */
.main-wrap {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--trans);
}
.main-wrap.expanded { margin-left: 60px; }

/* ─── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: linear-gradient(180deg, #281837 0%, #1b0e26 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  z-index: 100;
}

/* 3-column structure */
.topbar-col { display: flex; align-items: center; }
.topbar-col--left  { grid-column: 1; gap: 10px; }
.topbar-col--center { grid-column: 2; justify-content: center; }
.topbar-col--right { grid-column: 3; justify-content: flex-end; gap: 10px; }

.topbar-brand-group { display: flex; align-items: center; gap: 10px; }

/* Logo button — purple square like mini-app */
.topbar-logo-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7b2fff, #b848ff);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity var(--trans);
  overflow: hidden;
}
.topbar-logo-btn:hover { opacity: 0.88; }
.topbar-logo-img { width: 28px; height: 28px; object-fit: contain; pointer-events: none; }

.topbar-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}

/* Online badge (kept for mobile compat, removed from topbar in desktop) */
.online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.online-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.5; } }

/* Auth buttons (not logged in) */
.topbar-auth-btns { display: flex; align-items: center; gap: 8px; }

/* User area wrapper */
.topbar-user-area { position: relative; display: flex; align-items: center; }

/* Balance card — dark pill matching mini-app */
.topbar-balance-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 3px;
  background: #281837;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.topbar-balance-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.topbar-rub-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #e63946;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

.topbar-wallet-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #2bd96b;
  color: #000;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.topbar-wallet-btn:hover { background: #34e377; }
.topbar-wallet-icon { width: 16px; height: 16px; display: block; }
.topbar-deposit-label { white-space: nowrap; }

/* Wallet dropdown */
.topbar-wallet-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #1e1e30;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 6px;
  z-index: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  animation: dd-open 0.15s ease;
}
.topbar-wallet-dropdown[hidden] { display: none; }
@keyframes dd-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wallet-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  transition: background var(--trans);
}
.wallet-dd-item:hover { background: rgba(255,255,255,0.07); }
.wallet-dd-item svg { color: rgba(255,255,255,0.55); flex-shrink: 0; }

/* Bell button */
.topbar-bell-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: background var(--trans);
}
.topbar-bell-btn:hover { background: rgba(255,255,255,0.12); }

.topbar-bell-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff3d3d;
  border: 2px solid #12102a;
  display: none;
}
.topbar-bell-btn.has-notif .topbar-bell-dot { display: block; }

/* Bell wrapper — positions the dropdown panel */
.topbar-bell-wrap {
  position: relative;
  flex-shrink: 0;
}
.topbar-bell-wrap[hidden] { display: none !important; }

/* Notification panel */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  z-index: 1500;
  border-radius: 12px;
  background: #252232;
  box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  color: #fff;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  max-height: 78dvh;
  overflow: hidden;
  animation: notifPanelIn 0.18s cubic-bezier(0.2,0.8,0.2,1) both;
}
.notif-panel[hidden] { display: none !important; }
@keyframes notifPanelIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.notif-panel__title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.notif-panel__close {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.notif-panel__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.notif-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.notif-panel__body::-webkit-scrollbar { display: none; }

/* Individual notification item */
.notif-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-item__banner {
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}
.notif-item__banner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.notif-item__banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.notif-item__banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  width: 55%;
  line-height: 1.2;
}
.notif-item--bonus .notif-item__banner-copy {
  display: none;
}
.notif-item__text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin: 0;
}
.notif-corvette-status {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}
.notif-corvette-status[hidden] { display: none !important; }
.notif-corvette-status__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.notif-corvette-status__row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-corvette-status__row strong {
  flex-shrink: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.notif-corvette-status__bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.14);
}
.notif-corvette-status__fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7e35f2 0%, #b35cff 100%);
  transition: width 0.25s ease;
}
.notif-item__btn {
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s;
  width: 100%;
}
.notif-item__btn:hover { filter: brightness(1.1); }
.notif-item__btn:active { filter: brightness(0.9); }
.notif-item__btn--activate {
  background: linear-gradient(90deg, #34e377 0%, #1ab95a 100%);
  font-size: 13px;
  letter-spacing: 0.2px;
}

/* Bonus badges */
.notif-item__badges {
  display: flex;
  gap: 8px;
}
.notif-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.notif-badge--green {
  background: rgba(52,227,119,0.15);
  color: #34e377;
  border: 1px solid rgba(52,227,119,0.3);
}
.notif-badge--purple {
  background: rgba(138,80,255,0.18);
  color: #b97dff;
  border: 1px solid rgba(138,80,255,0.3);
}

/* Site toast */
.site-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1230;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(138,80,255,0.35),
    0 8px 24px rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.site-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Deposit success notification */
.deposit-success-notif {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 320px;
  background: #1a1030;
  border: 1px solid rgba(138,80,255,0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.deposit-success-notif--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.deposit-success-notif__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.deposit-success-notif__body {
  padding: 14px 16px 16px;
}
.deposit-success-notif__title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.deposit-success-notif__bonus {
  margin-top: 6px;
  font-size: 13px;
  color: #b97dff;
}
.deposit-success-notif__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-pay-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 2, 12, 0.72);
  backdrop-filter: blur(10px);
}
.site-pay-success-overlay[hidden] {
  display: none;
}
.site-pay-success-card {
  width: min(400px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #171125;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  padding: 34px 28px 30px;
  text-align: center;
}
.site-deposit-credited-icon {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.45);
}
.site-deposit-credited-card {
  border-color: rgba(168, 85, 247, 0.22);
  box-shadow: 0 24px 56px rgba(88, 28, 135, 0.35);
}
.site-pay-success-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #20cf6b;
  color: #fff;
  box-shadow: 0 0 34px rgba(32, 207, 107, 0.48);
}
.site-pay-success-icon svg {
  width: 44px;
  height: 44px;
}
.site-pay-success-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
}
.site-pay-success-card p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  line-height: 1.35;
}
.site-pay-success-card button {
  width: 100%;
  border: 0;
  border-radius: 15px;
  min-height: 62px;
  background: linear-gradient(180deg, #3ce08b, #27c86f);
  color: #100b1d;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.site-pay-success-card button:active {
  transform: translateY(1px);
}

.site-pay-unavailable-overlay {
  position: fixed;
  inset: 0;
  z-index: 9250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-pay-unavailable-overlay[hidden] {
  display: none !important;
}
.site-pay-unavailable-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, #1a1228 0%, #120c1c 55%, #0f0a16 100%);
  border: 1px solid rgba(190, 82, 255, 0.22);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  text-align: center;
}
.site-pay-unavailable-icon-wrap {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.site-pay-unavailable-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.32), 0 0 0 4px rgba(190, 82, 255, 0.18);
}
.site-pay-unavailable-icon {
  width: 34px;
  height: 34px;
  color: #fff;
}
.site-pay-unavailable-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
}
.site-pay-unavailable-sub {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}
.site-pay-unavailable-method {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(251, 191, 36, 0.95);
  line-height: 1.35;
}
.site-pay-unavailable-method[hidden] {
  display: none !important;
}
.site-pay-unavailable-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #9b4dff 0%, #7c3aed 48%, #6d28d9 100%);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}
.site-pay-unavailable-btn:active {
  transform: scale(0.98);
}

.site-pay-unavailable-card--manual {
  max-width: 440px;
  padding: 28px 26px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a103f 0%, #1c0b2c 58%, #15081f 100%);
  border-color: rgba(184, 72, 255, 0.3);
  text-align: left;
}
.site-pay-unavailable-card--manual .site-pay-unavailable-icon-wrap {
  display: none;
}
.site-pay-unavailable-card--manual .site-pay-unavailable-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}
.site-pay-unavailable-card--manual .site-pay-unavailable-title::after {
  content: "Ожидает\A оплату";
  white-space: pre-line;
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(142, 57, 203, 0.36);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}
.site-pay-unavailable-card--manual.site-pay-unavailable-card--receipt-sent .site-pay-unavailable-title::after {
  display: none;
}
.manual-deposit-amount {
  margin: 0 0 24px;
  padding: 20px 20px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #9a42ff 0%, #c63cff 54%, #e044f8 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(185, 58, 255, 0.22);
}
.manual-deposit-amount-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
}
.manual-deposit-amount-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}
.site-pay-unavailable-card--manual .manual-deposit-method {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.site-pay-unavailable-card--manual .manual-deposit-method span {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.56);
}
.site-pay-unavailable-card--manual .manual-deposit-method strong {
  display: block;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
  color: #fff;
}
.manual-deposit-requisites {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}
.manual-deposit-row {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.manual-deposit-row span {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.56);
}
.manual-deposit-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.25;
  color: #fff;
}
.manual-deposit-copy {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #16091f;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}
.manual-deposit-receipt {
  margin: 0 0 16px;
}
.manual-deposit-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px dashed rgba(196, 97, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.manual-deposit-file-btn {
  flex: 0 0 auto;
  border-radius: 12px;
  padding: 10px 13px;
  background: rgba(179, 76, 255, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}
.manual-deposit-file-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-deposit-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.site-pay-unavailable-card--manual .site-pay-unavailable-sub {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  text-align: left;
}
.site-pay-unavailable-card--manual .site-pay-unavailable-btn {
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 16px;
}

@media (max-width: 420px) {
  .site-pay-unavailable-card--manual {
    padding: 22px 20px;
  }
  .site-pay-unavailable-card--manual .site-pay-unavailable-title {
    font-size: 22px;
  }
  .manual-deposit-amount-value {
    font-size: 30px;
  }
  .manual-deposit-file {
    align-items: stretch;
    flex-direction: column;
  }
  .manual-deposit-file-btn,
  .manual-deposit-file-name {
    width: 100%;
  }
  .manual-deposit-file-name {
    white-space: normal;
  }
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-ghost {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--trans), border-color var(--trans);
}
.btn-ghost:hover { background: var(--accent-dim); border-color: var(--accent); }

.btn-primary {
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--trans);
}
.btn-primary:hover { opacity: 0.88; }

/* ─── CONTENT ────────────────────────────────────────────────── */
.content { flex: 1; overflow-x: hidden; }

.page { display: none; padding: 24px 28px; }
.page.active { display: block; }

/* Game overlay lives in content flow — no padding, stretches to fill */
.game-overlay { padding: 0; }

.page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   LOBBY PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO CAROUSEL ──────────────────────────────────────────── */
.hero-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--card);
}

.hero-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  min-height: 320px;
  background-image: var(--hero-img);
  background-size: auto 105%;
  background-position: right bottom;
  background-color: var(--card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  justify-content: center;
}
.hero-text h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.hero-accent { color: var(--accent); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  transition: background var(--trans);
  align-self: flex-start;
}
.hero-cta:hover { background: rgba(255,255,255,0.32); }

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background var(--trans), width var(--trans);
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ─── PROMO SLIDER ───────────────────────────────────────────── */
.promo-slider-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  width: 100%;
}

.promo-track {
  display: flex;
  gap: 10px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.promo-slide {
  flex-shrink: 0;
  /* ширина задаётся через JS при инициализации */
}

.promo-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.38);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}
.promo-arr:hover { background: rgba(0,0,0,0.65); }
.promo-arr--prev { left: 14px; }
.promo-arr--next { right: 14px; }

.promo-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}

.promo-dot--active {
  background: #fff;
  width: 20px;
  border-radius: 3px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 240px;
  width: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: none;
  background: #1a0d32;
}
.promo-card:hover { filter: brightness(1.06); }

/* Картинка занимает весь баннер как в TG app */
.promo-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  pointer-events: none;
  z-index: 0;
}

/* Затемняющий градиент слева для читаемости текста */
.promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Текст: заголовок сверху, кнопка снизу — как в TG app */
.promo-card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-card-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  width: 50%; /* как в TG app — текст только на левой половине */
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.promo-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  align-self: flex-start;
}

/* ─── CATEG GRID ─────────────────────────────────────────────── */
.categ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.categ-card {
  position: relative;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.18;
  text-align: left;
  padding: 10px;
  height: 72px;
  cursor: pointer;
  overflow: hidden;
  display: block;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.categ-card:hover { filter: brightness(1.15); }
.categ-card:active { transform: scale(0.97); }

.categ-card-title {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  max-width: 55%;
  white-space: pre-line;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.categ-card-img {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
  width: auto;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Quick cats removed — replaced by categ-grid */

/* ─── SEARCH ROW ─────────────────────────────────────────────── */
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.search-wrap {
  flex: 1;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--trans);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

.search-inline-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.search-inline-wrap .search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--trans);
}
.search-inline-wrap .search-input:focus { border-color: var(--accent); }
.search-inline-wrap .search-input::placeholder { color: var(--text-muted); }

.lobby-search-drop {
  position: relative;
  z-index: 40;
  margin: -6px 0 12px;
  padding: 10px;
  border-radius: 14px;
  background: #1b112f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lobby-search-drop[hidden] { display: none !important; }
.lobby-search-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 540px) {
  .lobby-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lobby-search-empty {
  margin: 0;
  padding: 16px 8px;
  text-align: center;
  color: #b7abcf;
  font-size: 14px;
}

.providers-btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 58px 10px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: visible;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.providers-btn img {
  position: absolute;
  right: 4px;
  bottom: -2px;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.providers-btn:hover { background: var(--card-hover); color: var(--text); border-color: var(--accent); }

/* ─── CAT TABS ───────────────────────────────────────────────── */
.cat-tabs-wrap {
  position: relative;
  margin-bottom: 20px;
}
.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--card);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.cat-tab:hover { background: var(--card-hover); color: var(--text); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
}

/* ─── SECTION ────────────────────────────────────────────────── */
.game-section {
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--topbar-h) + 14px);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-badge {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.all-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--trans);
}
.all-link:hover { background: var(--accent-dim); }

.section-arrows { display: flex; gap: 4px; }
.sec-arrow {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background var(--trans), color var(--trans);
}
.sec-arrow:hover { background: var(--accent-dim); color: var(--text); }

/* ─── GAME ROW (horizontal scroll) ──────────────────────────── */
.game-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.game-row::-webkit-scrollbar { display: none; }

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

/* ─── GAME CARD ──────────────────────────────────────────────── */
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 3/4;
  flex-shrink: 0;
  width: 190px;
  transition: transform var(--trans), box-shadow var(--trans);
  border: 1px solid transparent;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184,72,255,0.3);
  border-color: var(--accent);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  pointer-events: none;
}
.game-card:hover .game-card-overlay { background: rgba(0,0,0,0.55); }

.play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--trans), transform var(--trans);
}
.game-card:hover .play-btn { opacity: 1; transform: scale(1); }

.game-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
}
.game-card-name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.game-card-provider {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* grid mode: full width cards */
.game-grid .game-card {
  width: 100%;
  aspect-ratio: 3/4;
}

/* ─── GAME GRID ──────────────────────────────────────────────── */

/* ─── PROVIDERS STRIP ────────────────────────────────────────── */
.providers-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.provider-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  text-align: center;
  min-height: 48px;
}
.provider-chip:hover { background: var(--card-hover); color: var(--text); border-color: var(--accent); }
.provider-chip img { height: 22px; width: auto; max-width: 90px; object-fit: contain; }

/* ─── WINS STRIP ─────────────────────────────────────────────── */
.wins-online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}
.wins-online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}
.wins-online-badge #winsOnlineCount { color: var(--text); font-weight: 600; }

.wins-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wins-strip::-webkit-scrollbar { display: none; }

.win-item {
  flex-shrink: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background var(--trans);
}
.win-item:hover { background: var(--card-hover); }

.win-mini-game {
  width: 64px; height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a1b45;
}

.win-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.win-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  background: #0dd58a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  width: fit-content;
}
.win-name {
  font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.win-email {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── LIVE BETS STRIP ───────────────────────────────────────── */
.live-bets-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  color: #ef4444; margin-left: auto;
}
.live-bets-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; flex-shrink: 0;
  animation: liveDotPulse 1.4s ease-in-out infinite;
}
@keyframes liveDotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(1.35)} }

.live-bets-strip {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 4px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; touch-action: pan-x;
}
.live-bets-strip::-webkit-scrollbar { display: none; }

.live-bet-item {
  flex-shrink: 0; width: 190px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px;
  display: flex; gap: 9px; align-items: center;
  animation: liveBetIn .3s ease;
}
@keyframes liveBetIn { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:translateX(0)} }
.live-bet-item:hover { background: var(--card-hover); }

.live-bet-mini {
  width: 48px; height: 62px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
  background-color: #2a1b45;
}
.live-bet-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.live-bet-game { font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bet-player { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bet-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 4px; }
.live-bet-stake { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.live-bet-result { font-size: 12px; font-weight: 800; white-space: nowrap; }
.live-bet-result--win { color: #22c55e; }
.live-bet-result--lose { color: rgba(255,255,255,.35); }

/* ─── CATEGORY PAGE ──────────────────────────────────────────── */
.cat-page-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.cat-page-head h2 { font-size: 20px; font-weight: 700; }
.cat-page-head span { font-size: 13px; color: var(--text-muted); }

.show-more-btn {
  display: block;
  margin: 24px auto 0;
  padding: 12px 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--trans), border-color var(--trans);
}
.show-more-btn:hover { background: var(--card-hover); border-color: var(--accent); }

/* ─── BONUSES PAGE (new design) ─────────────────────────────── */
.bonus-page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.bonus-back-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--trans);
}
.bonus-back-btn:hover { background: var(--accent-dim); }
.bonus-page-title { font-size: 22px; font-weight: 700; }

/* 3×2 bonus cards grid */
.bonus-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.bcard {
  position: relative;
  border-radius: 14px;
  padding: 16px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Color variants */
.bcard--purple { background: linear-gradient(145deg, #4a1e8f 0%, #6b32b5 50%, #7d3fca 100%); }
.bcard--blue   { background: linear-gradient(145deg, #1a3060 0%, #2a4a90 50%, #1e5c8a 100%); }
.bcard--pink   { background: linear-gradient(145deg, #7a1060 0%, #b0258a 50%, #d040b0 100%); }
.bcard--gold   { background: linear-gradient(145deg, #8a5000 0%, #c07a10 50%, #d4a020 100%); }

.bcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.bcard-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 20px;
}
.bcard-info {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: none;
  cursor: pointer;
}
.bcard-timer {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.bcard-amount {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 2px 0;
}
.bcard-gift {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 4px;
}
.bcard-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
.bcard-progress-wrap { margin-top: 4px; }
.bcard-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.bcard-progress-fill {
  height: 100%;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}
.bcard-progress-label { font-size: 11px; color: rgba(255,255,255,0.55); }

.bcard-char {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: auto;
  max-width: 45%;
  object-fit: cover;
  object-position: right;
  opacity: 0.35;
  pointer-events: none;
}

.bcard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
  border: none;
  transition: opacity 0.15s;
}
.bcard-action--white { background: #fff; color: #1a0b30; }
.bcard-action--white:hover { opacity: 0.88; }
.bcard-action--locked {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  cursor: not-allowed;
  font-size: 16px;
}

/* Daily bonuses section */
.bonus-section-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.daily-bonus-strip { min-height: 80px; }
.daily-bonus-placeholder {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── BONUSES ────────────────────────────────────────────────── */
.bonus-ref-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  max-width: 600px;
}
.bonus-ref-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bonus-ref-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.bonus-ref-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BONUS TG-STYLE CARD GRID
   ═══════════════════════════════════════════════════════════════ */
.bonus-tg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .bonus-tg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bonus-tg-grid { grid-template-columns: 1fr; } }

.bonus-tg-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 14px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.bonus-tg-card--purple1 { background: linear-gradient(90deg, #130130 0%, #3a0190 55%, #6803ED 100%); }
.bonus-tg-card--purple2 { background: linear-gradient(90deg, #100128 0%, #2e0180 55%, #6803EF 100%); }
.bonus-tg-card--purple3 { background: linear-gradient(90deg, #0f0020 0%, #350060 55%, #5E008D 100%); }
.bonus-tg-card--blue    { background: linear-gradient(90deg, #000d22 0%, #001570 55%, #002EC6 100%); }
.bonus-tg-card--pink    { background: linear-gradient(90deg, #200030 0%, #7a0070 55%, #FA17DF 100%); }
.bonus-tg-card--gold    { background: linear-gradient(90deg, #251200 0%, #7a4800 55%, #FBAF00 100%); }
.bonus-tg-card--wager {
  min-height: 160px;
  padding: 14px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 32%, rgba(198, 64, 255, 0.72) 0%, rgba(101, 0, 218, 0.34) 36%, transparent 62%),
    linear-gradient(100deg, #3d006f 0%, #5b00ba 48%, #8a13ff 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.bonus-tg-card--wager .bonus-tg-img {
  right: -22px;
  bottom: -8px;
  left: auto;
  top: auto;
  width: min(50%, 210px);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: right bottom;
  opacity: 1;
  filter: drop-shadow(0 18px 24px rgba(20, 0, 56, 0.36));
}

.bonus-tg-card--wager .bonus-tg-status {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-bottom: 8px;
  padding: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
}

.bonus-tg-card--wager .bonus-tg-info {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #7b1dff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bonus-tg-card--wager .bonus-tg-info:active {
  transform: scale(0.94);
}

.bonus-tg-card--wager .bonus-tg-body {
  max-width: 58%;
  gap: 5px;
}

.bonus-tg-card--wager .bonus-tg-amount {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.bonus-tg-card--wager .bonus-tg-sub {
  min-height: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.bonus-wager-progress {
  width: min(220px, 100%);
  margin-top: 2px;
}

.bonus-wager-progress__bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.bonus-wager-progress__bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  transition: width 0.2s ease;
}

.bonus-wager-progress__text {
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.bonus-tg-card--wager .bonus-tg-actions {
  margin-top: 8px;
}

.bonus-tg-card--wager .bonus-tg-btn {
  width: 140px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  color: #05020b;
  font-size: 14px;
  font-weight: 800;
}

.bonus-tg-card--wager .bonus-tg-btn:disabled {
  opacity: 1;
  color: rgba(5, 2, 11, 0.72);
}

/* Timer — absolute top-right pill */
.bonus-tg-timer {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  z-index: 4;
}

.bonus-tg-status {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.bonus-tg-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  max-width: 62%;
}

.bonus-tg-amount {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.bonus-tg-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.45;
}
.bonus-tg-gift {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Progress bar — TG style: white track + white fill */
.bonus-tg-progress { margin-top: 4px; }
.bonus-tg-progress-bar {
  position: relative;
  max-width: 200px;
  height: 5px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 4px;
}
.bonus-tg-progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
}
.bonus-tg-progress-fill {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  z-index: 1;
}
.bonus-tg-progress-txt {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Action button — white bg, black text */
.bonus-tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  padding: 0;
  box-sizing: border-box;
  transition: opacity 0.18s;
  flex-shrink: 0;
}
.bonus-tg-btn:hover:not(:disabled) { opacity: 0.85; }
.bonus-tg-actions--hidden { display: none !important; }
.bonus-tg-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bonus-tg-terms {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.bonus-tg-terms:hover { color: rgba(255,255,255,0.8); text-decoration: underline; }
.bonus-tg-btn--locked {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.45);
  cursor: not-allowed;
  width: 40px;
}

/* Decorative image — clipped inside card, bottom-right */
.bonus-tg-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  z-index: 1;
}

/* ── BONUSES PAGE FOOTER ─────────────────────────────────────── */
.bonuses-footer {
  margin-top: 48px;
  padding: 28px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bonuses-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.bonuses-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}
.bonuses-footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.bonuses-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.bonuses-footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.bonuses-footer-links a:hover { color: #fff; }
.bonuses-footer-socials { display: flex; gap: 10px; }
.bonuses-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin: 0;
}
@media (max-width: 700px) {
  .bonuses-footer-inner { flex-direction: column; align-items: flex-start; }
}

.bonus-showcase-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 12px;
}
.bonus-showcase-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.bonus-showcase-card {
  position: relative;
  border-radius: 12px;
  background: var(--bonus-grad, var(--card));
  overflow: hidden;
  display: flex;
  min-height: 160px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--trans);
}
.bonus-showcase-card:hover { transform: translateY(-2px); }
.bonus-showcase-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}
.bonus-showcase-main { flex: 1; }
.bonus-showcase-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.bonus-showcase-text {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.bonus-showcase-meta { display: flex; align-items: center; gap: 10px; }
.bonus-showcase-status {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 10px;
}
.bonus-showcase-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans);
  align-self: flex-start;
  border: none;
}
.bonus-showcase-btn:hover { background: rgba(255,255,255,0.36); }
.bonus-showcase-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
}
.bonus-showcase-btn--ghost:hover { background: rgba(255,255,255,0.12); }
.bonus-showcase-image {
  position: absolute;
  right: 0; bottom: 0;
  height: 90%;
  width: auto;
  max-width: 45%;
  object-fit: contain;
  pointer-events: none;
}

.bonus-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--trans);
}
.bonus-card:hover { border-color: var(--accent); }

.bonus-card-body {
  padding: 20px;
}
.bonus-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.bonus-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }

/* ─── RULES ──────────────────────────────────────────────────── */
.rules-section-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.rules-section-icon {
  color: #5ba3ff;
  flex-shrink: 0;
  display: flex;
}
.rules-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.rules-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 15px 16px;
  cursor: pointer;
  text-align: left;
  gap: 10px;
  transition: background var(--trans), border-color var(--trans);
  font-family: inherit;
  line-height: 1.4;
}
.rules-acc-toggle:hover,
.rules-acc-toggle[aria-expanded="true"] {
  background: rgba(91,163,255,0.1);
  border-color: rgba(91,163,255,0.3);
}
.rules-acc-toggle[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.rules-acc-toggle[aria-expanded="true"] .rules-chev {
  transform: rotate(0deg);
}
.rules-chev {
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.rules-acc-panel {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.35s ease;
}
.rules-acc-panel.is-collapsed {
  max-height: 0;
}
.rules-acc-content {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg3);
  border-radius: 0 0 10px 10px;
  border: 1px solid var(--border);
  border-top: none;
}
.rules-acc-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.rules-acc-content strong { color: var(--text); font-weight: 600; }

.rules-article {
  margin-top: 8px;
}
.rules-article h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.rules-article h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 6px;
}
.rules-article p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ─── BONUS CARD IMAGE ───────────────────────────────────────── */
.bonus-card-img {
  width: 100%;
  height: 140px;
  background: var(--bg3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bonus-img-welcome  { background-image: url('https://mellstroy.space/assets/hero/slide-01.avif'); }
.bonus-img-freespins{ background-image: url('https://mellstroy.space/assets/hero/slide-02.avif'); }
.bonus-img-mines    { background-image: url('https://mellstroy.space/assets/hero/slide-03.avif'); }
.bonus-img-cashback { background-image: url('https://mellstroy.space/assets/hero/slide-04.avif'); }
.bonus-img-bgaming  { background-image: url('https://mellstroy.space/assets/hero/slide-05.avif'); }
.bonus-img-pragmatic{ background-image: url('https://mellstroy.space/assets/hero/slide-06.avif'); }

/* ─── VOUCHER SECTION ────────────────────────────────────────── */
.voucher-section {
  margin-top: 32px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
}
.voucher-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.voucher-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.voucher-row {
  display: flex;
  gap: 10px;
}
.voucher-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--trans);
}
.voucher-input:focus { border-color: var(--accent); }
.voucher-input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
@media (max-width: 768px) {
  .modal-overlay { align-items: flex-start; padding: 16px 12px 80px; }
}

.modal-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--text);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.modal-close:hover { background: var(--accent); }

.login-logo { margin-bottom: 16px; }
.login-logo img { margin: 0 auto; }

.modal-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.tg-widget-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 48px;
}

.login-hint { font-size: 12px; color: var(--text-muted); }

/* ─── AUTH MODALS (Login / Register) ────────────────────────── */
.auth-modal-card {
  background: #1e1230;
  border-radius: 16px;
  padding: 24px 24px 20px;
  width: 100%;
  max-width: 400px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 0 0 1px rgba(138, 80, 255, 0.35),
    0 0 24px 4px rgba(120, 60, 220, 0.25),
    0 0 60px 10px rgba(100, 40, 200, 0.12);
}
.auth-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.auth-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.auth-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.auth-modal-close:hover { background: rgba(255,255,255,0.15); }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field-label { font-size: 13px; color: var(--text-muted); }
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #13092a;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color var(--trans);
}
.auth-input-wrap:focus-within { border-color: var(--accent); }
.auth-input-icon {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.auth-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 14px 0;
  min-width: 0;
}
.auth-input-eye {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text-muted);
  transition: color var(--trans);
}
.auth-input-eye:hover { color: var(--text); }
.auth-forgot {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-top: -6px;
}
.auth-forgot:hover { text-decoration: underline; }
.auth-submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: #2ddb72;
  color: #0a1a0f;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: background var(--trans), transform 0.1s;
}
.auth-submit-btn:hover { background: #25c462; }
.auth-submit-btn:active { transform: scale(0.98); }
.auth-agree-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: -4px;
}
.auth-agree-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}
.auth-agree-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.auth-tg-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #2aabee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--trans);
}
.auth-tg-btn:hover { background: #229ed9; }
.auth-switch {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -2px;
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── LEGAL PAGES ────────────────────────────────────────────────────────── */
.legal-content {
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  font-size: 14px;
}
.legal-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 8px;
}
.legal-content p {
  margin-bottom: 10px;
}
.legal-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 18px 0;
}
.legal-content a {
  color: #9b7ff5;
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }
.legal-content .legal-version {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.legal-contact-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.legal-contact-row a { color: #9b7ff5; }
.legal-open-btn {
  background: none;
  border: none;
  color: #9b7ff5;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
}
.legal-open-btn:hover { color: #c0a8ff; }

/* ─── PROFILE MODAL ─────────────────────────────────────────────────────── */
.profile-modal-card {
  background: #1e1230;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 20px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow:
    0 0 0 1px rgba(138, 80, 255, 0.3),
    0 0 32px 6px rgba(100, 40, 200, 0.2);
}
.profile-modal-card::-webkit-scrollbar { display: none; }
.profile-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.profile-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.profile-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.profile-modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.profile-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-user-info { flex: 1; min-width: 0; }
.profile-username {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-userid {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}
.profile-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.profile-copy-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.profile-balance-section { margin-bottom: 16px; }
.profile-balance-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.profile-balance-amount {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.profile-rub-sign { font-size: 28px; font-weight: 700; }
.profile-action-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.profile-deposit-action {
  flex: 1.6;
  height: 44px;
  border-radius: 10px;
  background: #3dd68c;
  color: #0b1f13;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.profile-deposit-action:hover { background: #34c47f; }
.profile-withdraw-action {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}
.profile-withdraw-action:hover { background: rgba(255,255,255,0.14); }
.profile-menu-list {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  overflow: hidden;
}
.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: rgba(255,255,255,0.05); }
.profile-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-menu-icon--gift    { background: rgba(106,90,205,0.22); color: #9b7ff5; }
.profile-menu-icon--history { background: rgba(52,168,83,0.18);  color: #3dd68c; }
.profile-menu-icon--voucher { background: rgba(255,167,38,0.18); color: #ffb930; }
.profile-menu-icon--settings{ background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
.profile-menu-icon--support { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
.profile-menu-text { flex: 1; }
.profile-menu-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: block;
}
.profile-menu-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-top: 2px;
}
.profile-menu-chev { color: rgba(255,255,255,0.25); flex-shrink: 0; }

.profile-voucher-panel { padding: 4px 18px 18px; }
.profile-voucher-header { display: flex; align-items: center; gap: 8px; padding: 8px 0 14px; }
.profile-voucher-back { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 4px; display: inline-flex; align-items: center; border-radius: 6px; }
.profile-voucher-back:hover { color: #fff; }
.profile-voucher-title { font-size: 15px; font-weight: 600; color: #fff; }
.profile-voucher-card { background: rgba(184,72,255,0.07); border: 1px solid rgba(184,72,255,0.2); border-radius: 16px; padding: 16px 15px 15px; display: flex; flex-direction: column; gap: 12px; }
.profile-voucher-icon-wrap { width: 46px; height: 46px; background: rgba(184,72,255,0.18); border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #c060ff; flex-shrink: 0; }
.profile-voucher-card-title { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 3px; }
.profile-voucher-card-hint { font-size: 12px; color: rgba(255,255,255,0.45); margin: 0; line-height: 1.4; }
.profile-voucher-input-row { display: flex; gap: 8px; }
.profile-voucher-input { flex: 1 1 0; min-width: 0; height: 42px; background: rgba(255,255,255,0.06); border: 1px solid rgba(184,72,255,0.25); border-radius: 10px; color: #fff; font-size: 14px; padding: 0 12px; outline: none; transition: border-color 0.15s; }
.profile-voucher-input:focus { border-color: rgba(184,72,255,0.55); }
.profile-voucher-input::placeholder { color: rgba(255,255,255,0.28); }
.profile-voucher-btn { flex-shrink: 0; height: 42px; padding: 0 14px; background: linear-gradient(120deg, #7c3aed, #a855f7); border: none; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; white-space: nowrap; }
.profile-voucher-btn:hover { opacity: 0.9; }
.profile-voucher-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── WALLET MODAL (unified: deposit / withdraw / history) ─────────────── */
.wallet-modal-card {
  background: #1e1230;
  border-radius: 16px;
  padding: 20px 20px 16px;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 0 0 1px rgba(138, 80, 255, 0.35),
    0 0 24px 4px rgba(120, 60, 220, 0.25),
    0 0 60px 10px rgba(100, 40, 200, 0.12);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.wallet-modal-card::-webkit-scrollbar { display: none; }
.wallet-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.wallet-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.wallet-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.wallet-modal-close:hover { background: rgba(255,255,255,0.14); }
.wallet-tabs-bar {
  background: rgba(255,255,255,0.045);
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.wallet-tab {
  flex: 1;
  height: 37px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wallet-tab.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.wallet-panel { display: none; flex-direction: column; gap: 12px; }
.wallet-panel--active { display: flex; }
.wallet-panel[hidden] { display: none !important; }
.wallet-amount-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wallet-field-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  display: block;
}
.wallet-amount-wrap {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  height: 45px;
}
.wallet-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 0 14px;
}
.wallet-amount-input::placeholder { color: rgba(255,255,255,0.35); }
.wallet-amount-input.is-invalid { color: #ff8da8; }
.wallet-min-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.wallet-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wallet-quick-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wallet-quick-btn:hover { background: rgba(138,80,255,0.25); color: #fff; border-color: var(--accent); }
.wallet-section-title {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.wallet-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wallet-method {
  background: rgba(255,255,255,0.045);
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  height: 72px;
  background-size: auto 124%;
  background-position: right -4px center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, filter 0.15s, border-color 0.15s;
  text-align: left;
}
.wallet-method:hover { filter: brightness(1.08); }
.wallet-method:active { transform: scale(0.97); }
.wallet-method.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 999px rgba(138,80,255,0.1);
}
.wallet-method-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  border: 1px solid rgba(46, 229, 139, 0.32);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(21, 199, 111, 0.18);
  color: #8ff4bc;
  box-shadow: 0 8px 20px rgba(21, 199, 111, 0.12);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}
.wallet-method-badge--best {
  border-color: rgba(255, 77, 94, 0.45);
  background: rgba(220, 38, 38, 0.22);
  color: #ff8a96;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.18);
}
.wallet-method--popular .wallet-method-name,
.wallet-method--best .wallet-method-name {
  max-width: 62%;
}
.wallet-method-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px;
  gap: 4px;
}
.wallet-method-name {
  font-size: 14px;
  color: #fff;
  font-weight: 400;
}
.wallet-method-min {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}
.wallet-methods-grid--withdraw .wallet-method {
  height: 64px;
}
.wallet-balance-card {
  background: rgba(255,255,255,0.045);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wallet-balance-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.wallet-balance-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.wallet-field-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wallet-field-row[hidden] { display: none !important; }
.wallet-input-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  height: 45px;
  display: flex;
  align-items: stretch;
}
.wallet-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 0 14px;
}
.wallet-input::placeholder { color: rgba(255,255,255,0.35); }
.wallet-input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); border-radius: 12px; }
.wallet-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
  color: #fff;
}
.wallet-primary-btn {
  width: 100%;
  height: 45px;
  border-radius: 80px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.wallet-primary-btn:hover { filter: brightness(1.1); }
.wallet-primary-btn:active { transform: scale(0.985); }
.crypto-bonus-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(54, 227, 155, 0.12);
  border: 1px solid rgba(54, 227, 155, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: #36e39b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.crypto-bonus-banner svg { flex-shrink: 0; margin-top: 1px; }
.wallet-panel.wallet-panel--confirming > .crypto-bonus-banner,
.wallet-panel.wallet-panel--confirming > .wallet-section-title,
.wallet-panel.wallet-panel--confirming > .wallet-methods-grid {
  display: none !important;
}
.site-deposit-confirm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-deposit-confirm[hidden] { display: none !important; }
.site-confirm-method {
  min-height: 86px;
  border-radius: 14px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.055);
}
.site-confirm-method-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(255,255,255,0.08);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
}
.site-confirm-method-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.site-confirm-label,
.site-confirm-method-min {
  color: rgba(255,255,255,0.52);
  font-size: 14px;
  line-height: 1.25;
}
.site-confirm-method-name {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
}
.site-confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.site-confirm-network-select-wrap {
  position: relative;
}
.site-confirm-network-select-wrap[hidden] {
  display: none !important;
}
.site-confirm-network-select-wrap::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.site-confirm-network-select {
  appearance: none;
  min-width: 78px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0 24px 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  outline: 0;
}
.site-confirm-network-select:focus {
  border-color: rgba(54, 211, 134, 0.65);
  box-shadow: 0 0 0 2px rgba(54, 211, 134, 0.16);
}
.site-confirm-network-select option {
  color: #121018;
  background: #fff;
}
.site-confirm-networks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-confirm-networks[hidden] {
  display: none !important;
}
.site-confirm-network-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.site-confirm-network-chip {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
.site-confirm-network-chip.active {
  border-color: rgba(190, 82, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(190, 82, 255, 0.35) inset;
  background: rgba(126, 29, 190, 0.34);
}
.site-confirm-network-chip-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.2);
}
.site-confirm-network-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.site-confirm-network-chip-text b {
  font-size: 13px;
  line-height: 1.1;
}
.site-confirm-network-chip-text small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
}
.site-confirm-change {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.site-confirm-amount-slot .wallet-amount-row {
  gap: 10px;
}
.site-confirm-amount-slot .wallet-field-label {
  font-size: 16px;
}
.site-confirm-amount-slot .wallet-amount-wrap {
  height: 56px;
  border-radius: 14px;
}
.site-confirm-amount-slot .wallet-amount-input {
  font-size: 20px;
}
.site-confirm-amount-slot .wallet-quick-amounts {
  display: none !important;
}
.site-confirm-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-confirm-quick button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 18px;
  background: rgba(255,255,255,0.075);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.site-confirm-quick button:first-child {
  background: #b33cff;
}
.site-confirm-bonus-line {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
}
.site-confirm-toggle {
  border: 0;
  width: 50px;
  height: 26px;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}
.site-confirm-toggle span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b33cff;
  transition: transform 0.16s ease;
}
.site-confirm-toggle[aria-pressed="true"] {
  background: rgba(179,60,255,0.36);
}
.site-confirm-toggle[aria-pressed="true"] span {
  transform: translateX(24px);
}
.site-confirm-bonus-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.site-confirm-bonus-options button {
  min-height: 62px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  color: #fff;
  font: inherit;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.site-confirm-bonus-options b {
  font-size: 16px;
  line-height: 1.1;
}
.site-confirm-bonus-options span {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.site-confirm-bonus-options button.active {
  border-color: rgba(190,82,255,0.95);
  box-shadow: 0 0 0 1px rgba(190,82,255,0.32) inset;
  background: rgba(126,29,190,0.34);
}
.site-confirm-bonus-options button.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Deposit bonus visuals */
#siteCryptoBonusBanner,
#siteFirstDepositBanner {
  display: none !important;
}

.site-confirm-bonus-options button[hidden] {
  display: none !important;
}

.site-confirm-bonus-options button[data-site-confirm-bonus] {
  position: relative;
  min-height: 66px;
  overflow: hidden;
  background-color: #14051f;
  background-repeat: no-repeat, no-repeat;
  background-position: right -10px center, center;
  background-size: auto 125%, cover;
  filter: brightness(0.72);
  transition: filter 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-confirm-bonus-options button[data-site-confirm-bonus="first_deposit"] {
  background-image: url("./img/dep1.c22d2aff.png"), linear-gradient(90deg, #130130 0%, #3a0190 55%, #6803ED 100%) !important;
}

.site-confirm-bonus-options button[data-site-confirm-bonus="second_deposit"] {
  background-image: url("./img/dep2.237638dd.png"), linear-gradient(90deg, #000d22 0%, #001570 55%, #002EC6 100%) !important;
}

.site-confirm-bonus-options button[data-site-confirm-bonus="third_deposit"] {
  background-image: url("./img/dep3.f35869a7.png"), linear-gradient(90deg, #200030 0%, #7a0070 55%, #FA17DF 100%) !important;
}

.site-confirm-bonus-options button[data-site-confirm-bonus="fourth_deposit"] {
  background-image: url("./img/dep4.6a408611.png"), linear-gradient(90deg, #251200 0%, #7a4800 55%, #FBAF00 100%) !important;
}

.site-confirm-bonus-options button[data-site-confirm-bonus="crypto_15"] {
  background-image: url("./img/dep1.c22d2aff.png"), linear-gradient(90deg, #0f0020 0%, #350060 55%, #5E008D 100%) !important;
}

.site-confirm-bonus-options button[data-site-confirm-bonus].active {
  filter: brightness(1);
  border-color: rgba(190, 82, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(190, 82, 255, 0.35) inset;
}

.site-confirm-bonus-options button[data-site-confirm-bonus] b,
.site-confirm-bonus-options button[data-site-confirm-bonus] span {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.58);
}

.site-confirm-bonus-options button[data-site-confirm-bonus] b {
  font-size: 15px;
  font-weight: 800;
}

.site-confirm-bonus-options button[data-site-confirm-bonus] span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}


.site-confirm-bonus-card {
  min-height: 150px;
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #610086 0%, #7e04b2 50%, #4b006b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.site-confirm-bonus-card[hidden] { display: none !important; }
.site-confirm-bonus-kicker,
.site-confirm-bonus-desc {
  color: rgba(255,255,255,0.84);
  font-size: 15px;
  line-height: 1.35;
}
.site-confirm-bonus-title {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}
.site-confirm-bonus-subtitle {
  font-size: 16px;
  line-height: 1.3;
}
.site-confirm-summary {
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-confirm-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
}
.site-confirm-summary div[hidden] { display: none !important; }
.site-confirm-summary span {
  color: rgba(255,255,255,0.84);
}
.site-confirm-summary b {
  font-weight: 700;
  white-space: nowrap;
}
.site-confirm-submit {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #39d98f;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 640px) {
  .wallet-modal-card {
    max-width: calc(100vw - 20px);
    padding: 16px 14px;
  }
  .site-confirm-method {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    padding: 12px;
  }
  .site-confirm-method-icon {
    width: 50px;
    height: 50px;
  }
  .site-confirm-method-name {
    font-size: 17px;
  }
  .site-confirm-change {
    font-size: 13px;
  }
  .site-confirm-quick button {
    padding: 0 12px;
    font-size: 14px;
  }
  .site-confirm-summary div {
    font-size: 16px;
  }
}
.wallet-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 80px;
}
.wallet-history-empty {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}
.wallet-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.045);
  border-radius: 12px;
  padding: 12px 14px;
}
.wallet-history-item__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wallet-history-item__title {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.wallet-history-item__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.wallet-history-item__amount {
  font-size: 15px;
  font-weight: 600;
}
.wallet-history-item--deposit .wallet-history-item__amount { color: #34e377; }
.wallet-history-item--withdrawal .wallet-history-item__amount { color: #ff6b6b; }
.wallet-history-item--pending .wallet-history-item__amount,
.wallet-history-item__status--pending { color: #ffb340; }
.wallet-history-item--paid .wallet-history-item__amount,
.wallet-history-item__status--paid { color: #34e377; }
.wallet-history-item--failed .wallet-history-item__amount,
.wallet-history-item__status--failed { color: #ff6b6b; }

/* ─── DEPOSIT / WITHDRAW MODAL (legacy — keep sidebar button styles) ─── */
.deposit-card {
  text-align: left;
  max-width: 480px;
  padding: 28px 24px;
}

.deposit-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.deposit-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.deposit-quick-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.deposit-quick {
  padding: 9px 6px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background var(--trans), border-color var(--trans);
}
.deposit-quick:hover { background: var(--card-hover); border-color: var(--accent); }
.deposit-quick.active { background: var(--accent-dim); border-color: var(--accent); color: var(--text); }

.deposit-amount-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color var(--trans);
}
.deposit-amount-row:focus-within { border-color: var(--accent); }

.deposit-rub {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.deposit-amount-input {
  flex: 1;
  padding: 11px 12px 11px 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  width: 100%;
}
.deposit-amount-input::placeholder { color: var(--text-muted); font-weight: 400; }

/* Standalone input (not inside .deposit-amount-row) */
input.deposit-amount-input:not(.deposit-amount-row *) {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--trans);
}
input.deposit-amount-input:not(.deposit-amount-row *):focus { border-color: var(--accent); }

.deposit-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.deposit-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.deposit-method:hover { background: var(--card-hover); color: var(--text); border-color: var(--accent); }
.deposit-method.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

.deposit-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.deposit-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   GAME OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.game-overlay {
  display: flex;
  flex-direction: column;
  background: #0d0816;
  min-height: calc(100vh - var(--topbar-h));
}
.game-overlay[hidden] { display: none; }

.game-topbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
}

.game-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--trans), color var(--trans);
}
.game-back:hover { background: var(--accent-dim); color: var(--text); }

.game-overlay-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.game-fullscreen {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background var(--trans), color var(--trans);
}
.game-fullscreen:hover { background: var(--accent-dim); color: var(--text); }

#gameFrame {
  flex: 1;
  border: none;
  width: 100%;
  height: calc(100vh - var(--topbar-h) - 48px);
  min-height: 400px;
  overflow: auto;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════════════ */
/* ─── SITE FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: #281837;
  padding: 0 16px 16px;
  border-radius: 16px;
}
.footer-inner {
  padding: 20px;
}

/* footer top row */
.footer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.footer-brand-img { height: 28px; width: auto; }
.footer-brand-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.footer-head-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.footer-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.footer-lang-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card-hover);
  border-radius: 8px;
  padding: 0 12px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--trans);
}
.footer-lang-pill:hover { background: var(--accent-dim); }
.footer-lang-flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.footer-scroll-up {
  width: 32px;
  height: 32px;
  background: var(--card-hover);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.footer-scroll-up:hover { background: var(--accent); color: #fff; }

/* footer body */
.footer-body {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.footer-body-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-link-cols { display: flex; gap: 48px; }
.footer-link-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--trans);
}
.footer-link:hover { color: var(--text); }
.footer-socials { display: flex; gap: 6px; }
.footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background var(--trans), color var(--trans);
}
.footer-social-btn:hover { background: var(--accent); color: #fff; }

/* footer right: support card */
.footer-body-right { width: 300px; flex-shrink: 0; }
.footer-support-card {
  position: relative;
  background: linear-gradient(135deg, rgba(70,24,140,0.7) 0%, rgba(40,12,90,0.6) 100%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 150px;
}
.footer-support-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.footer-support-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}
.footer-support-desc {
  font-size: 12px;
  color: var(--text-muted);
  width: 55%;
  margin-bottom: 14px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}
.footer-support-action {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0 16px;
  height: 32px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans);
  position: relative;
  z-index: 2;
}
.footer-support-action:hover { background: var(--accent2); }
.footer-support-char {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 105%;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
}
.footer-contact-block { margin-bottom: 10px; }
.footer-contact-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.footer-contact-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--trans);
}
.footer-contact-link:hover { color: var(--accent2); }

/* footer bottom */
.footer-hr { height: 1px; background: var(--border); margin-bottom: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  flex: 1;
}
.footer-bottom-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.footer-age {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.footer-cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.footer-cert-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.cert-modal-card {
  max-width: 640px;
  padding: 24px 20px 20px;
  text-align: left;
}
.cert-modal-frame-wrap {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}
.cert-modal-frame {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
}

/* ─── LANGUAGE MODAL ─────────────────────────────────────────── */
.lang-modal-card {
  max-width: 400px;
  width: 100%;
  text-align: left;
  padding: 24px 20px 20px;
  max-height: 80vh;
  overflow-y: auto;
}
.lang-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.lang-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
  padding: 0;
}
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid transparent;
  transition: background var(--trans), border-color var(--trans);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.lang-item:hover { background: var(--card-hover); }
.lang-item.active { border-color: var(--accent); background: rgba(124,58,237,0.12); }
.lang-flag { width: 32px; height: 24px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.lang-copy { flex: 1; min-width: 0; }
.lang-copy strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.lang-copy small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.lang-check { font-size: 18px; color: var(--accent); flex-shrink: 0; opacity: 0; transition: opacity 0.2s; line-height: 1; }
.lang-item.active .lang-check { opacity: 1; }

/* ─── INSTALL APP MODAL ──────────────────────────────────────── */
.install-modal-card {
  max-width: 380px;
  width: 100%;
  padding: 0 0 24px;
  overflow: hidden;
  text-align: center;
}
.install-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 24px 16px;
  color: var(--text);
  text-align: left;
}
.install-modal-video-wrap {
  background: #fff;
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-modal-video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.install-steps {
  list-style: none;
  padding: 0 24px;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.install-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.install-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-modal-close-btn {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px;
  padding: 13px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--trans);
}
.install-modal-close-btn:hover { background: #6d28d9; }

@media (max-width: 1280px) {
  .game-card { width: 170px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .hero-slide { min-height: 280px; }
  .hero-text { min-height: 280px; }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
  .game-card { width: 155px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .hero-slide { min-height: 250px; }
  .hero-text { min-height: 250px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px) — mini-app style
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --topbar-h: 52px; }

  .sidebar {
    transform: translateX(-100%);
    width: 240px !important;
    height: calc(100vh - 74px) !important;
    z-index: 300;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.collapsed { transform: translateX(-100%); }

  .sidebar-card {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-nav {
    flex: none;
    overflow-y: visible;
    overflow-x: visible;
  }

  .main-wrap, .main-wrap.expanded { margin-left: 0; }

  .hamburger { display: flex; }
  .topbar { padding: 0 10px; grid-template-columns: auto auto 1fr; }
  .topbar-brand { display: none; }
  .topbar-deposit-label { display: none; }
  .topbar-logo-btn { width: 36px; height: 36px; border-radius: 10px; }
  .topbar-logo-img { width: 22px; height: 22px; }

  .page { padding: 14px 14px; }

  .promo-card { height: 180px; }
  .promo-card-title { font-size: 18px; width: 60%; }
  .promo-arr { width: 30px; height: 30px; }

  .categ-card { height: 72px; font-size: 13px; }

  .bonus-cards-grid { grid-template-columns: 1fr; }

  .game-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
  .game-card { width: 118px; }

  .bonus-cards { grid-template-columns: 1fr; }

  /* Overlay for sidebar backdrop */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 250;
  }
  .sidebar-overlay.active { display: block; }
}

/* ─── SIDEBAR OVERLAY (desktop hidden) ───────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
}

/* ═══════════════════════════════════════════════════════════════
   APP START LOADER
   ═══════════════════════════════════════════════════════════════ */
.app-start-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.app-start-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mell-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  transform: translateY(-16px);
}

.mell-loader-logo {
  display: block;
  width: min(60vw, 280px);
  max-height: 54px;
  object-fit: contain;
}

.mell-loader-rings {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}
.mell-loader-rings::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(124,58,237,0.10);
}

.mell-loader-ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  pointer-events: none;
}
.mell-loader-ring--core {
  border: 2px solid rgba(124,58,237,0.95);
  box-shadow: 0 0 18px rgba(124,58,237,0.25);
  animation: mell-core 1.45s ease-in-out infinite;
}
.mell-loader-ring--halo {
  border: 1px solid rgba(124,58,237,0.46);
  animation: mell-halo 1.45s cubic-bezier(0.2, 0.72, 0.18, 1) infinite;
}

@keyframes mell-core {
  0%,100% { opacity: 0.72; transform: scale(0.96); }
  45%     { opacity: 1;    transform: scale(1.02); }
}
@keyframes mell-halo {
  0%   { opacity: 0;    transform: scale(0.58); }
  18%  { opacity: 0.82; }
  72%  { opacity: 0.14; transform: scale(1.72); }
  100% { opacity: 0;    transform: scale(1.92); }
}

/* ─── FOOTER MOBILE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-footer { padding: 0 8px 12px; }
  .footer-inner { padding: 14px; }
  .footer-body { flex-direction: column; }
  .footer-body-right { width: 100%; }
  .footer-link-cols { gap: 24px; }
  .footer-col-title { font-size: 16px; }
  .footer-head-line { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   WELCOME BONUS POPUP
   ═══════════════════════════════════════════════════════════════ */
.welcome-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  animation: wpo-fadein 0.32s ease;
}
.welcome-popup-overlay[hidden] { display: none; }

@keyframes wpo-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.welcome-popup-card {
  position: relative;
  background: #1a1535;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: wpo-slidein 0.32s cubic-bezier(0.22,1,0.36,1);
}

@keyframes wpo-slidein {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.welcome-popup-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background var(--trans);
  flex-shrink: 0;
}
.welcome-popup-close:hover { background: rgba(255,255,255,0.22); }

/* Full-width banner image */
.welcome-popup-banner {
  width: 100%;
  line-height: 0;
  position: relative;
  overflow: hidden;
}
.welcome-popup-img-wrap {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.welcome-popup-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
.welcome-popup-img {
  width: 100%;
  height: auto;
  display: block;
}
.welcome-popup-banner.is-image-i18n::before,
.welcome-popup-img-wrap.is-image-i18n::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(61, 19, 120, 0.98) 0%, rgba(72, 21, 140, 0.96) 58%, rgba(72, 21, 140, 0.72) 82%, rgba(72, 21, 140, 0) 100%);
}
.image-i18n-welcome {
  display: none;
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 17%;
  width: 52%;
  color: #fff;
  line-height: 1.05;
  pointer-events: none;
  text-transform: uppercase;
}
.welcome-popup-banner.is-image-i18n .image-i18n-welcome,
.welcome-popup-img-wrap.is-image-i18n .image-i18n-welcome {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-i18n-welcome__title {
  font-size: 28px;
  font-weight: 950;
}
.image-i18n-welcome__subtitle {
  max-width: 92%;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}
.image-i18n-welcome__amount {
  margin-top: 4px;
  font-size: 48px;
  font-weight: 950;
  letter-spacing: 0;
}
.image-i18n-welcome__fs {
  width: fit-content;
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d43cff, #9b35ff);
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

/* Content below banner */
.welcome-popup-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 20px;
}

.welcome-popup-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* Code row — dark pill with border */
.welcome-popup-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  cursor: pointer;
  transition: background var(--trans);
}
.welcome-popup-code-row:hover { background: rgba(255,255,255,0.08); }
.welcome-popup-code-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}
.welcome-popup-copy {
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center;
  transition: color var(--trans);
}
.welcome-popup-copy:hover { color: #fff; }
.welcome-popup-copy.copied { color: #34e377; }

.welcome-popup-activate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  border-radius: 80px;
  background: linear-gradient(90deg, #34e377 0%, #1ab95a 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: opacity var(--trans), transform 0.1s;
  border: none;
  cursor: pointer;
}
.welcome-popup-activate:hover { opacity: 0.9; }
.welcome-popup-activate:active { transform: scale(0.98); opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════════
   WEEKLY CARD
   ═══════════════════════════════════════════════════════════════ */
/* weekly card wrapper centers the card */
.weekly-card-wrap {
  margin: 24px 0;
  width: 100%;
}
.weekly-card {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  border-radius: 24px;
  padding: 28px 32px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 270px 190px at calc(100% - 255px) 90%, #47E4CD 0%, rgba(0,210,245,0.6) 42%, transparent 66%),
    linear-gradient(90deg, transparent 0%, transparent 38%, rgba(21,48,238,0.4) 50%, #1530ee 62%, #0890f0 75%, #00ddff 100%),
    linear-gradient(160deg, #320755 0%, #ff44ee 100%);
}
.weekly-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  max-width: 50%;
}
.weekly-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.weekly-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}
.weekly-provider-txt { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0; }
.weekly-origin-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 0; padding: 0;
  background: transparent;
  color: #fff; font-size: 13px; font-weight: 400;
  cursor: pointer;
}
.weekly-origin-link img { width: 26px; height: 26px; object-fit: contain; }
.weekly-play {
  border: 0; border-radius: 8px;
  background: #fff; color: #1a0d32;
  width: 110px; height: 38px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: opacity var(--trans);
}
.weekly-play:hover { opacity: 0.88; }
.weekly-fortuna-back {
  position: absolute;
  bottom: 0; right: 155px; z-index: 1;
  width: 200px; height: auto;
  max-width: none;
  pointer-events: none;
}
.weekly-fortuna-front {
  position: absolute;
  bottom: 30px; right: 180px; z-index: 2;
  height: 190px; width: auto;
  max-width: none;
  pointer-events: none;
}
.weekly-content-desktop {
  position: absolute;
  top: 0; right: 0; z-index: 3;
  height: 115%;
  width: auto;
  max-width: none;
  pointer-events: none;
}
.weekly-spin {
  position: absolute;
  right: 155px; bottom: -80px; z-index: 3;
  width: 195px; height: 195px;
  pointer-events: none;
  object-fit: contain;
}
.weekly-preview {
  position: absolute;
  right: 187px; bottom: 15px; z-index: 4;
  width: 130px; height: 190px;
  border: 0; border-radius: 8px; padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.weekly-preview-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 768px) {
  .weekly-card {
    border-radius: 32px;
    padding: 24px;
    background: linear-gradient(0deg, rgb(202, 96, 255) 0%, rgb(67, 13, 97) 100%);
  }
  .weekly-content { max-width: 55%; }
  .weekly-card h3 { font-size: 24px; max-width: 112px; }
  .weekly-content-desktop { display: none; }
  .weekly-spin { display: none; }
  .weekly-provider-txt { display: none; }
  .weekly-fortuna-back {
    right: 5px; bottom: 0;
    width: 170px;
  }
  .weekly-fortuna-front {
    right: 28px; bottom: 30px;
    height: 150px; width: auto;
  }
  .weekly-preview {
    right: 32px; bottom: 33px;
    width: 106px; height: auto;
    aspect-ratio: 1;
  }
  .weekly-play { width: 100px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════════
   PROVIDER CHIP (updated)
   ═══════════════════════════════════════════════════════════════ */
.provider-chip {
  flex: 0 0 auto;
  min-width: 140px;
  background: #2d1f48;
  color: #ddd6eb;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  align-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.provider-chip:hover {
  border-color: rgba(197,145,255,0.75);
  background: #382658;
  transform: translateY(-1px);
}
.provider-name {
  font-size: 14px;
  line-height: 1.1;
  color: #f3ecff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.provider-count {
  font-size: 12px;
  line-height: 1;
  color: #a99fc4;
}
.providers-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.providers-strip::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════════════════
   BONUSES PAGE (TG app style)
   ═══════════════════════════════════════════════════════════════ */
.bonuses-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
  width: 100%;
}
.bonus-ref-container {
  width: 100%;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.bonus-ref-container--title {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 8px;
}
.bonus-ref-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.bonus-ref-back {
  width: 28px; height: 28px;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.bonus-page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.voucher-box-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.referral-invite-heading { font-size: 17px; }
.voucher-box-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}
.referral-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.referral-link-row { padding: 0 2px; }
.referral-link-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.voucher-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.voucher-input {
  flex: 1 1 160px;
  height: 42px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
}
.voucher-input:focus { border-color: rgba(162,62,247,0.6); }
.voucher-input::placeholder { color: rgba(255,255,255,0.35); }
.voucher-submit {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--trans);
}
.voucher-submit:hover { opacity: 0.85; }
.referral-copy-btn { background: rgba(162,62,247,0.3); border: 1px solid rgba(162,62,247,0.5); }

/* Bonus showcase */
.bonus-showcase { display: flex; flex-direction: column; gap: 0; }
.bonus-showcase-heading {
  margin: 16px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #f1ecfa;
}
.bonus-showcase-heading:first-child { margin-top: 0; }
.bonus-showcase-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .bonus-showcase-list { grid-template-columns: repeat(2, 1fr); }
}
.bonus-showcase-card {
  position: relative;
  display: flex;
  min-height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bonus-grad);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 -36px 72px rgba(8,10,20,0.16);
}
.bonus-showcase-card--future { filter: saturate(0.74) brightness(0.9); }
.bonus-showcase-content {
  position: relative;
  z-index: 3;
  width: 62%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(90deg, rgba(8,10,20,0.38) 0%, rgba(8,10,20,0.24) 62%, rgba(8,10,20,0) 100%);
}
.bonus-showcase-main { display: flex; flex-direction: column; gap: 8px; }
.bonus-showcase-title { margin: 0; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.2; }
.bonus-showcase-text { margin: 0; color: rgba(255,255,255,0.9); font-size: 12px; line-height: 1.35; }
.bonus-showcase-meta { display: flex; flex-direction: column; gap: 5px; }
.bonus-showcase-status { color: rgba(255,255,255,0.9); font-size: 12px; font-weight: 700; }
.bonus-showcase-time {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8,7,18,0.36);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 11px; font-weight: 700;
}
.bonus-showcase-btn {
  width: fit-content;
  min-width: 120px;
  height: 38px;
  border: 0; border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #161324;
  font-size: 13px; font-weight: 800;
  cursor: pointer;
  transition: opacity var(--trans);
}
.bonus-showcase-btn:hover { opacity: 0.88; }
.bonus-showcase-btn--ghost { background: rgba(255,255,255,0.88); }
.bonus-showcase-image {
  position: absolute;
  z-index: 2;
  right: 4px; bottom: 2px;
  height: 96%; width: 43%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.bonus-showcase-used-empty {
  min-height: 56px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.68);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Promotions rollup */
.bonuses-info-block { display: block; }
.bonus-ref-container--promos {
  margin-top: 8px; margin-bottom: 14px;
  background: transparent; border: none; padding: 0;
}
.promotions-rollup-title {
  margin: 0 0 12px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800; line-height: 1.15;
  color: #f1ecfa;
}
.promotions-rollup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.promo-rollup-card {
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.promo-rollup-card-title {
  width: 100%;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.promo-rollup-card-title::after {
  content: "";
  width: 18px; height: 18px;
  flex: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 -960 960 960' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z' fill='rgba(216,54,255,0.9)'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.22s ease;
}
.promo-rollup-card-title[aria-expanded="true"]::after { transform: rotate(180deg); }
.promo-rollup-body {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.84);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4,0,0.2,1);
}
.promo-rollup-body.is-collapsed { grid-template-rows: 0fr; }
.promo-rollup-body > * { min-height: 0; overflow: hidden; }
.promo-rollup-body p { margin: 0 0 8px; padding: 0 16px; }
.promo-rollup-body p:first-child { padding-top: 4px; }
.promo-rollup-body p:last-child { margin-bottom: 14px; }
.promo-rollup-play {
  display: inline-block;
  margin: 0 16px 14px;
  padding: 0 18px;
  height: 38px;
  border: 0; border-radius: 10px;
  background: var(--accent);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: opacity var(--trans);
}
.promo-rollup-play:hover { opacity: 0.85; }
.promotions-rollup-more {
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
}
.promotions-rollup-more-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.promotions-rollup-more-summary::-webkit-details-marker { display: none; }
.promotions-rollup-more-summary::after {
  content: "";
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 -960 960 960' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z' fill='rgba(216,54,255,0.9)'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.22s ease;
}
.promotions-rollup-more[open] .promotions-rollup-more-summary::after { transform: rotate(180deg); }
.promotions-rollup-more-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px 8px;
}

/* FAQ */
.bonuses-faq-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.bonuses-faq-heading {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  line-height: 1.15;
}
.bonuses-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 640px) {
  .bonuses-faq-grid { grid-template-columns: repeat(2, 1fr); }
}
.bonuses-faq-col { display: flex; flex-direction: column; gap: 6px; }
.bonuses-faq-item {
  border: 1px solid rgba(255,255,255,0.095);
  border-radius: 16px;
  background: rgba(255,255,255,0.048);
  overflow: hidden;
  transition: border-color 0.24s, background 0.24s;
}
.bonuses-faq-item:has(.bonuses-faq-question[aria-expanded="true"]) {
  border-color: rgba(216,54,255,0.35);
  background: rgba(255,255,255,0.064);
}
.bonuses-faq-question {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  cursor: pointer;
}
.bonuses-faq-question .mat-content { flex: 1 1 auto; min-width: 0; }
.bonuses-faq-question .mat-expansion-panel-header-title { margin: 0; color: #fff; line-height: 1.25; }
.bonuses-faq-question .mat-expansion-indicator {
  width: 26px; height: 26px; flex: 0 0 26px;
  color: rgba(216,54,255,0.9);
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  transition: transform 0.22s ease;
}
.bonuses-faq-question[aria-expanded="true"] .mat-expansion-indicator { transform: rotate(180deg); }
.bonuses-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease;
  opacity: 0;
}
.bonuses-faq-answer:not(.is-collapsed) {
  grid-template-rows: 1fr;
  opacity: 1;
}
.bonuses-faq-answer .mat-expansion-panel-content { min-height: 0; overflow: hidden; }
.bonuses-faq-answer .mat-expansion-panel-body { padding: 0 16px 14px; }
.bonuses-faq-answer .accordion-body_root-2Vw1D {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 10px;
}
.bonuses-faq-answer .custom-html_root-jGMem {
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV (site — mirrors TG mini-app)
   ═══════════════════════════════════════════════════════════════ */
.site-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .site-bottom-nav {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(80px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    background: #1a0e25;
    padding: 6px 7px calc(4px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    z-index: 1400;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 36px rgba(15, 6, 25, 0.74);
    overflow: visible;
  }
  .site-bottom-nav::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    right: 6px;
    height: 45px;
    background: #2a173b;
    border: 1px solid rgba(255,255,255,0.045);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    pointer-events: none;
    z-index: 0;
  }
  .site-bnav-item {
    min-width: 0;
    height: 70px;
    border: 0;
    background: transparent;
    color: rgba(226, 219, 238, 0.68);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 11px 2px 0;
    gap: 14px;
    font-size: clamp(8px, 2.25vw, 10.5px);
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    letter-spacing: 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    font-family: inherit;
  }
  .site-bnav-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: none;
  }
  .site-bnav-icon svg {
    width: 100%;
    height: 100%;
  }
  #siteBnavMenu { order: 1; }
  #siteBnavCasino { order: 2; }
  #siteBnavDeposit { order: 3; }
  #siteBnavBonuses { order: 4; }
  #siteBnavSupport { order: 5; }
  #siteBnavDeposit {
    gap: 10px;
    padding-top: 0;
    color: rgba(226, 219, 238, 0.78);
  }
  #siteBnavDeposit .site-bnav-icon {
    width: 52px;
    height: 52px;
    margin-top: -12px;
    border-radius: 50%;
    background: #35e29a;
    color: #06170f;
    box-shadow: 0 8px 18px rgba(38, 211, 137, 0.3);
  }
  #siteBnavDeposit .site-bnav-icon img {
    width: 25px;
    height: 25px;
    display: block;
  }
  #siteBnavBonuses .site-bnav-icon::after {
    content: "4";
    position: absolute;
    top: -12px;
    right: -13px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #91f000;
    color: #13081c;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(145, 240, 0, 0.22);
  }
  .site-bnav-item--active { color: rgba(226, 219, 238, 0.68); }
  .site-bnav-item:active { transform: scale(0.92); }
  body.game-open .site-bottom-nav { display: none !important; }

  /* Main content: add bottom padding so footer doesn't overlap */
  .main-wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { margin-bottom: 0; }

  /* On mobile: hide hamburger from topbar, show brand */
  .hamburger { display: none !important; }
  .topbar-brand { display: block !important; }
  .topbar { padding: 0 12px; grid-template-columns: auto 1fr auto; }
  .topbar-col--left { gap: 8px; }
  .topbar-logo-btn { display: flex; }
  /* Shrink auth buttons so they fit on narrow screens */
  .topbar-auth-btns { gap: 6px; }
  .topbar-auth-btns .btn-ghost,
  .topbar-auth-btns .btn-primary { padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 600px) {
  /* On phones hide brand text — logo alone is enough, frees space for auth buttons */
  .topbar-brand { display: none !important; }
}


/* Withdraw Gate */
.withdraw-gate-banner { border-radius:16px; padding:14px 16px 12px; background:linear-gradient(135deg,#7b2ff7,#a855f7 55%,#9333ea); box-shadow:0 10px 28px rgba(0,0,0,.35); display:flex; flex-direction:column; gap:8px; margin-bottom:14px; opacity:0; transform:translateY(-6px); transition:opacity .32s ease,transform .32s ease; }
.withdraw-gate-banner.is-revealed { opacity:1; transform:translateY(0); }
.withdraw-gate-banner[hidden] { display:none !important; }
#withdrawGateBody { font-size:14px; font-weight:600; color:#fff; line-height:1.45; }
.withdraw-gate-progress { width:100%; display:flex; flex-direction:column; gap:8px; }
.withdraw-gate-progress[hidden] { display:none !important; }
.withdraw-gate-progress-bar { position:relative; height:6px; border-radius:999px; background:rgba(255,255,255,.22); overflow:hidden; }
.withdraw-gate-progress-bar-fill { position:absolute; inset:0 auto 0 0; width:0%; border-radius:999px; background:rgba(255,255,255,.92); transition:width .28s ease; }
.withdraw-gate-progress-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.withdraw-gate-progress-text { display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; background:rgba(255,255,255,.18); color:#fff; font-size:12px; font-weight:700; }
.withdraw-gate-aux-btn { border:0; background:transparent; color:rgba(255,255,255,.92); font-size:13px; font-weight:600; text-decoration:underline; text-underline-offset:3px; padding:4px 0; cursor:pointer; }
#withdrawGateActions[hidden] { display:none !important; }
.withdraw-gate-support-link { color:#fff; text-decoration:underline; font-weight:700; cursor:pointer; }
.wallet-field-row.is-invalid .wallet-input-wrap { box-shadow:inset 0 0 0 1px #ef4444; }
.withdraw-field-error { margin-top:6px; font-size:13px; color:#ef4444; font-weight:500; }
.withdraw-field-error[hidden] { display:none !important; }
#withdrawInfoModal { display:none; position:fixed; inset:0; z-index:9100; background:rgba(0,0,0,.6); align-items:center; justify-content:center; padding:16px; }
#withdrawInfoModal.open { display:flex; }
.withdraw-info-modal-card { width:min(100%,420px); max-height:calc(100vh - 32px); display:flex; flex-direction:column; border-radius:16px; padding:20px; border:1px solid rgba(255,255,255,.12); background:linear-gradient(180deg,#221936,#171126); color:#fff; box-shadow:0 22px 44px rgba(0,0,0,.48); }
.withdraw-info-modal-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.withdraw-info-modal-title { margin:0; font-size:20px; font-weight:800; }
.withdraw-info-modal-close { width:34px; height:34px; border-radius:10px; background:rgba(255,255,255,.08); border:none; color:#fff; font-size:20px; cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.withdraw-info-modal-body { overflow-y:auto; flex:1; min-height:0; margin-bottom:14px; }
.withdraw-info-modal-body p { margin:0 0 10px; color:rgba(255,255,255,.9); font-size:14px; line-height:1.5; }
.withdraw-info-modal-body p:last-child { margin-bottom:0; }
.withdraw-info-modal-body .withdraw-gate-support-link { color:#a855f7; }
.withdraw-info-modal-btn { width:100%; min-height:44px; border:0; border-radius:12px; cursor:pointer; color:#fff; font-size:14px; font-weight:700; background:linear-gradient(135deg,#7b2ff7,#a855f7); }

/* Упрощённая верификация (KYC) на сайте — как в боте */
.site-verify-open-btn { display:block; width:100%; min-height:44px; margin-top:12px; border:0; border-radius:12px; cursor:pointer; color:#fff; font-size:14px; font-weight:800; background:linear-gradient(135deg,#7b2ff7,#a855f7); box-shadow:0 10px 24px rgba(123,47,247,.32); }
.site-verify-open-btn:active { transform:scale(.985); }
.site-verify-form { display:grid; gap:13px; }
.site-verify-form .site-verify-intro { margin:0 0 2px; color:rgba(255,255,255,.62); font-size:13.5px; line-height:1.45; }
.site-verify-field { display:block; }
.site-verify-field > span { display:block; margin-bottom:7px; padding-left:2px; font-size:13px; font-weight:600; color:rgba(255,255,255,.6); }
.site-verify-field > input { width:100%; height:46px; padding:0 14px; background:rgba(255,255,255,.05); color:#fff; border:1px solid rgba(255,255,255,.12); border-radius:12px; outline:0; font-size:15px; font-weight:600; transition:border-color .18s, box-shadow .18s, background .18s; }
.site-verify-field > input::placeholder { color:rgba(255,255,255,.34); font-weight:500; }
.site-verify-field > input:focus { border-color:rgba(168,85,247,.7); background:rgba(168,85,247,.08); box-shadow:0 0 0 3px rgba(168,85,247,.18); }
.site-verify-btn { margin-top:6px; width:100%; min-height:46px; border:0; border-radius:12px; cursor:pointer; color:#fff; font-size:15px; font-weight:800; background:linear-gradient(135deg,#7b2ff7,#a855f7); box-shadow:0 10px 24px rgba(123,47,247,.32); }
.site-verify-btn:disabled { opacity:.6; cursor:wait; }

.wager-info-modal { display:none; position:fixed; inset:0; z-index:9300; background:rgba(0,0,0,.68); align-items:center; justify-content:center; padding:16px; }
.wager-info-modal.open { display:flex; }
.wager-info-card { width:min(100%,752px); max-height:calc(100vh - 32px); overflow-y:auto; border-radius:18px; border:1px solid rgba(168,85,247,.46); background:#251036; color:#fff; padding:22px 20px 24px; box-shadow:0 0 26px rgba(168,85,247,.48),0 24px 52px rgba(0,0,0,.5); }
.wager-info-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.wager-info-head h3 { margin:0; font-size:22px; line-height:1.2; font-weight:900; }
.wager-info-close { width:34px; height:34px; border:0; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; cursor:pointer; color:#fff; background:rgba(255,255,255,.1); font-size:26px; line-height:1; }
.wager-info-section { margin:0 0 20px; }
.wager-info-section h4 { margin:0 0 10px; color:#fff; font-size:21px; line-height:1.2; font-weight:900; }
.wager-info-table { overflow:hidden; border-radius:14px; background:rgba(255,255,255,.06); }
.wager-info-row { min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 20px; border-bottom:1px solid rgba(255,255,255,.06); color:rgba(255,255,255,.74); font-size:16px; font-weight:700; }
.wager-info-row:last-child { border-bottom:0; }
.wager-info-row strong { color:#fff; font-size:16px; font-weight:900; white-space:nowrap; }
.wager-info-rules { margin-bottom:22px; }
.wager-info-rules ol { margin:0; padding-left:22px; color:rgba(255,255,255,.82); font-size:18px; line-height:1.28; font-weight:700; }
.wager-info-activate { width:100%; min-height:48px; border:0; border-radius:12px; cursor:pointer; background:linear-gradient(135deg,#7b2ff7,#a855f7); color:#fff; font-size:16px; font-weight:900; }
.wager-info-activate:disabled { opacity:.55; cursor:not-allowed; }
@media (max-width:600px) {
  .wager-info-card { padding:20px; border-radius:16px; }
  .wager-info-head h3 { font-size:20px; }
  .wager-info-section h4 { font-size:19px; }
  .wager-info-row { min-height:56px; padding:0 14px; font-size:15px; }
  .wager-info-rules ol { font-size:16px; }
}

/* ─── REFERRAL PAGE ──────────────────────────────────────────── */
.ref-page-hero { margin: 0 0 20px; border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, #2e0b4e 0%, #5b1e9e 50%, #8b3ee0 100%); }
.ref-page-hero-inner { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px; min-height: 160px; gap: 16px; }
.ref-page-hero-text { flex: 1; min-width: 0; }
.ref-page-hero-title { font-size: clamp(20px, 3vw, 30px); font-weight: 900; color: #fff; letter-spacing: 0.04em; margin: 0 0 10px; line-height: 1.1; text-transform: uppercase; }
.ref-page-hero-sub { font-size: clamp(11px, 1.4vw, 13px); color: rgba(255,255,255,0.85); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.55; margin: 0; }
.ref-page-hero-img { width: min(200px, 32%); max-height: 180px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.ref-page-section { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.ref-page-section-title { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.ref-page-hint { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; }
.ref-page-link-row { display: flex; gap: 8px; }
.ref-page-link-input { flex: 1 1 0; min-width: 0; height: 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(124,58,237,0.3); border-radius: 10px; color: #fff; font-size: 13px; padding: 0 12px; outline: none; font-family: inherit; }
.ref-page-link-input::placeholder { color: rgba(255,255,255,0.3); font-size: 12px; }
.ref-page-copy-btn { height: 44px; padding: 0 18px; background: linear-gradient(120deg, #7c3aed, #a855f7); border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-shrink: 0; white-space: nowrap; cursor: pointer; }
.ref-page-copy-btn:hover { opacity: 0.88; }
.ref-page-msg { font-size: 12px; color: var(--green); margin-top: 8px; display: block; }
.ref-page-msg--err { color: #f87171; }
.ref-page-stats-row { display: flex; gap: 12px; margin-bottom: 12px; }
.ref-page-stat { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); border-radius: 12px; padding: 16px 20px; min-width: 100px; text-align: center; }
.ref-page-stat-num { display: block; font-size: 28px; font-weight: 700; color: #a855f7; margin-bottom: 2px; }
.ref-page-stat-lbl { font-size: 12px; color: var(--text-muted); }
.ref-page-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 4px 0 0; margin: 0; }
@media (max-width: 600px) { .ref-page-hero-inner { padding: 20px 18px; } .ref-page-hero-img { width: min(130px, 36%); } }
.ref-page-card2 { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 0; }
.ref-page-card2-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ref-page-card2-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.07); color: #fff; flex-shrink: 0; }
.ref-page-card2-label { font-size: 14px; font-weight: 600; color: #fff; }
.ref-page-link-box { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 0 12px; height: 40px; margin-bottom: 0; }
.ref-page-link-text { flex: 1 1 0; min-width: 0; background: transparent; border: none; color: #fff; font-size: 13px; outline: none; font-family: inherit; }
.ref-page-link-text::placeholder { color: rgba(255,255,255,0.35); }
.ref-page-copy-icon-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 4px; display: flex; align-items: center; flex-shrink: 0; opacity: 0.75; transition: opacity 0.15s; }
.ref-page-copy-icon-btn:hover { opacity: 1; }
.ref-page-empty-center { font-size: 14px; color: rgba(255,255,255,0.5); text-align: center; padding: 16px 0; margin: 0; }
.withdraw-ready-banner { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-120px); z-index: 9999; display: flex; align-items: center; gap: 10px; background: #0f1f14; border: 1.5px solid #4ade80; border-radius: 14px; padding: 14px 20px; color: #e8fdf0; font-size: 14px; font-weight: 500; line-height: 1.4; box-shadow: 0 4px 24px rgba(74,222,128,0.18), 0 2px 8px rgba(0,0,0,0.4); max-width: calc(100vw - 32px); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease; opacity: 0; pointer-events: none; }
.withdraw-ready-banner.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.withdraw-ready-banner svg { flex-shrink: 0; }

/* ── Search overlay (как в Telegram mini-app) ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(7, 3, 18, 0.46);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  overscroll-behavior: contain;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-sheet {
  width: min(100%, 920px);
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 22px 22px 0 0;
  background: #1b112f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-overlay.open .search-sheet { transform: translateY(0); }
.search-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 16px 14px;
  flex: 0 0 auto;
}
.search-sheet-head h2 {
  margin: 0;
  color: #f4efff;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}
.search-close-btn {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  color: rgba(230, 220, 255, 0.74);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-tabs {
  margin: 0 16px;
  background: #281a42;
  border-radius: 14px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
}
.search-tab-btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 10px;
  background: transparent;
  color: #d5caee;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.search-tab-btn.is-active { background: #474875; color: #fff; }
.search-field {
  margin: 16px 16px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #27193f;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 55px;
  flex: 0 0 auto;
}
.search-field-icon { color: #a8a0c2; display: inline-flex; }
.search-sheet-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #ece4ff;
  font-size: 18px;
  padding: 15px 0;
  outline: none;
}
.search-sheet-input::placeholder { color: #8f84ad; }
.search-clear-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.search-clear-btn.is-visible { opacity: 1; pointer-events: auto; }
.search-results-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 22px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.search-tab-panel { display: grid; gap: 10px; }
.search-tab-panel[hidden] { display: none !important; }
.search-categories { display: grid; gap: 18px; }
.search-categories[hidden] { display: none !important; }
.search-category-group { display: grid; gap: 10px; }
.search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.search-group-head h3 {
  margin: 0;
  font-size: clamp(22px, 4.6vw, 32px);
  color: #f2ecff;
  line-height: 1;
}
.search-mini-all-btn {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e0ff;
  cursor: pointer;
}
.search-mini-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.search-mini-card {
  position: relative;
  aspect-ratio: 0.8;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #311f52;
  display: grid;
  align-content: end;
  padding: 8px;
  cursor: pointer;
}
.search-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 24%, rgba(12, 7, 26, 0.76) 82%);
}
.search-mini-card > * { position: relative; z-index: 1; }
.search-mini-title {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.08;
  font-weight: 800;
  text-transform: uppercase;
}
.search-mini-provider {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}
.search-games-grid {
  margin-top: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 540px) {
  .search-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.search-games-grid .game-card {
  width: 100%;
}
.search-overlay.open .search-games-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}
.search-overlay.open .search-games-grid .game-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.search-result-card { aspect-ratio: 0.8; }
.search-more-btn { width: 100%; margin-top: 2px; }
.search-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.search-provider-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #303052;
  min-height: 110px;
  padding: 15px 10px 12px;
  display: grid;
  gap: 8px;
  align-content: center;
  cursor: pointer;
}
.search-provider-name {
  margin: 0;
  color: #f2edff;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}
.search-section-label {
  width: max-content;
  margin: 0;
  border-radius: 999px;
  background: #373251;
  color: #f1ecfb;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 11px;
}
.search-section-label[hidden] { display: none !important; }
.search-empty, .search-hint {
  text-align: center;
  color: #b7abcf;
  padding: 34px 8px;
  font-size: 15px;
}
body.search-open { overflow: hidden; }
html.search-open { overflow: hidden; }

/* Mobile casino rows aligned with Telegram mini-app */
@media (max-width: 768px) {
  :root {
    --site-game-cover-w: 145px;
    --site-game-cover-h: 193.33px;
  }

  .section-head {
    min-width: 0;
    align-items: center;
    gap: 8px;
  }

  .section-title {
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-arrows {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .all-link {
    min-height: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0 18px;
    border-radius: 8px;
    background: #332047;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 40px;
    white-space: nowrap;
  }

  .sec-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: #332047;
    color: #fff;
    font-size: 26px;
    line-height: 1;
  }

  .game-row {
    gap: 20px;
    padding-bottom: 6px;
  }

  .game-grid:not(.search-games-grid) {
    grid-template-columns: repeat(auto-fill, var(--site-game-cover-w));
    justify-content: start;
    gap: 20px;
  }

  .game-row > .game-card,
  .game-grid:not(.search-games-grid) > .game-card {
    flex: 0 0 var(--site-game-cover-w) !important;
    width: var(--site-game-cover-w) !important;
    min-width: var(--site-game-cover-w) !important;
    max-width: var(--site-game-cover-w) !important;
    height: var(--site-game-cover-h) !important;
    min-height: var(--site-game-cover-h) !important;
    max-height: var(--site-game-cover-h) !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
    border: 0 !important;
    background-size: cover;
    background-position: center;
  }

  .game-row > .game-card .game-card-overlay,
  .game-row > .game-card .game-card-info,
  .game-grid:not(.search-games-grid) > .game-card .game-card-overlay,
  .game-grid:not(.search-games-grid) > .game-card .game-card-info {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .all-link {
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    font-size: 16px;
    line-height: 38px;
  }

  .sec-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 24px;
  }
}

/* Final mobile reference pass: sidebar and casino headings match the mini-app. */
@media (max-width: 768px) {
  .sidebar {
    top: 0 !important;
    left: 0 !important;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(352px, calc(100vw - 92px)) !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: 320 !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .sidebar-card {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 22px 22px 0 !important;
    background: #2a1538 !important;
    overflow: hidden !important;
    box-shadow: 18px 0 38px rgba(7, 3, 14, 0.42), inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
  }

  .sidebar-online-row {
    flex: 0 0 auto !important;
    min-height: 46px !important;
    padding: 17px 32px 12px !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .sidebar-online-right strong {
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  .pulse-point {
    width: 9px !important;
    height: 9px !important;
  }

  .sidebar-divider-row,
  .sidebar-balance-block {
    display: none !important;
  }

  .sidebar-guest-block,
  .sidebar-user-block {
    flex: 0 0 auto !important;
    min-height: 74px !important;
    padding: 12px 32px !important;
    gap: 12px !important;
    background: transparent !important;
    border: 0 !important;
  }

  .sidebar-guest-avatar,
  .sidebar-avatar {
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
  }

  .sidebar-guest-name,
  .sidebar-username {
    font-size: 18px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
  }

  .sidebar-guest-sub,
  .sidebar-userid {
    margin-top: 2px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
  }

  .sidebar-mode-btns {
    flex: 0 0 auto !important;
    margin: 0 32px 18px !important;
  }

  .sidebar-mode-inner {
    height: 51px !important;
    padding: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
  }

  .mode-btn {
    width: 100% !important;
    height: 51px !important;
    border-radius: 13px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  .sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 96px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 2px 32px 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent !important;
  }

  .sidebar-nav::-webkit-scrollbar {
    width: 4px !important;
  }

  .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.34) !important;
    border-radius: 999px !important;
  }

  .nav-item {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    padding: 7px 0 !important;
    gap: 12px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
  }

  .nav-item.active {
    color: #fff !important;
    background: transparent !important;
  }

  .nav-icon,
  .nav-icon svg,
  .nav-icon img {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
  }

  .nav-divider {
    flex: 0 0 auto !important;
    height: 1px !important;
    margin: 12px 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .nav-badge-green {
    min-width: 34px !important;
    height: 22px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 22px !important;
    font-weight: 900 !important;
  }

  .sidebar-footer {
    flex: 0 0 auto !important;
    padding: 9px 32px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px !important;
    background: #2a1538 !important;
  }

  .sidebar-app-install {
    min-height: 64px !important;
    padding: 5px 12px 5px 5px !important;
    border-radius: 13px !important;
  }

  .install-app-img {
    width: 54px !important;
    height: 54px !important;
  }

  .install-text {
    font-size: 15px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
  }

  .install-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  .social-btn,
  .social-btn img {
    width: 34px !important;
    height: 34px !important;
  }

  .sidebar-lang {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  .sidebar-support-btn {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 13px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  .sidebar-support-badge {
    height: 23px !important;
    min-width: 53px !important;
    font-size: 13px !important;
    line-height: 23px !important;
  }

  .section-head {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .section-title {
    font-size: 21px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
  }

  .all-link {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 21px !important;
    border-radius: 8px !important;
    background: #2f1b45 !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 40px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
  }

  .sec-arrow {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 8px !important;
    background: #2f1b45 !important;
    color: #fff !important;
    font-size: 0 !important;
    font-weight: 400 !important;
  }

  .sec-arrow::before {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    display: block !important;
    border-top: 2px solid currentColor !important;
    border-right: 2px solid currentColor !important;
  }

  .sec-arrow:first-child::before {
    transform: rotate(-135deg) !important;
    margin-left: 4px !important;
  }

  .sec-arrow:last-child::before {
    transform: rotate(45deg) !important;
    margin-right: 4px !important;
  }
}

@media (max-width: 390px) {
  .sidebar {
    width: min(352px, calc(100vw - 72px)) !important;
  }

  .sidebar-online-row,
  .sidebar-guest-block,
  .sidebar-user-block,
  .sidebar-nav,
  .sidebar-footer {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .sidebar-mode-btns {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }

  .section-title {
    font-size: 20px !important;
  }

  .all-link {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    font-size: 17px !important;
    line-height: 38px !important;
  }

  .sec-arrow {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
}

/* Reference correction: smaller mobile menu, bottom-bar overlap, exact 145 x 193.33 game cards. */
@media (max-width: 768px) {
  .sidebar {
    width: min(340px, calc(100vw - 76px)) !important;
    max-width: 340px !important;
    bottom: 0 !important;
  }

  .sidebar-card {
    border-radius: 0 20px 20px 0 !important;
  }

  .sidebar-online-row {
    min-height: 44px !important;
    padding: 16px 20px 11px !important;
    font-size: 14px !important;
  }

  .sidebar-online-right strong {
    font-size: 15px !important;
  }

  .sidebar-guest-block,
  .sidebar-user-block {
    min-height: 70px !important;
    padding: 11px 20px 12px !important;
  }

  .sidebar-guest-avatar,
  .sidebar-avatar {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  .sidebar-guest-name,
  .sidebar-username {
    font-size: 16px !important;
  }

  .sidebar-guest-sub,
  .sidebar-userid {
    font-size: 13px !important;
  }

  .sidebar-mode-btns {
    margin: 0 20px 16px !important;
  }

  .sidebar-mode-inner,
  .mode-btn {
    height: 48px !important;
    min-height: 48px !important;
  }

  .mode-btn {
    font-size: 16px !important;
  }

  .sidebar-nav {
    min-height: 92px !important;
    padding: 0 20px 11px !important;
  }

  .nav-item {
    min-height: 38px !important;
    padding: 6px 0 !important;
    gap: 10px !important;
    font-size: 16px !important;
  }

  .nav-icon,
  .nav-icon svg,
  .nav-icon img {
    width: 19px !important;
    height: 19px !important;
    flex-basis: 19px !important;
  }

  .nav-divider {
    margin: 10px 0 !important;
  }

  .nav-badge-green {
    min-width: 32px !important;
    height: 20px !important;
    font-size: 13px !important;
    line-height: 20px !important;
  }

  .sidebar-footer {
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sidebar-app-install {
    min-height: 60px !important;
  }

  .install-app-img {
    width: 50px !important;
    height: 50px !important;
  }

  .install-text {
    font-size: 14px !important;
  }

  .social-btn,
  .social-btn img {
    width: 32px !important;
    height: 32px !important;
  }

  .sidebar-lang {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 14px !important;
  }

  .sidebar-support-btn {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 13px !important;
  }

  .sidebar-support-badge {
    height: 22px !important;
    min-width: 50px !important;
    font-size: 12px !important;
    line-height: 22px !important;
  }

  :root {
    --site-game-cover-w: 145px;
    --site-game-cover-h: 193.33px;
  }

  .game-row {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .game-grid:not(.search-games-grid) {
    grid-template-columns: repeat(auto-fill, var(--site-game-cover-w)) !important;
    gap: 10px !important;
    justify-content: start !important;
  }

  .game-row > .game-card,
  .game-grid:not(.search-games-grid) > .game-card {
    flex: 0 0 var(--site-game-cover-w) !important;
    width: var(--site-game-cover-w) !important;
    min-width: var(--site-game-cover-w) !important;
    max-width: var(--site-game-cover-w) !important;
    height: var(--site-game-cover-h) !important;
    min-height: var(--site-game-cover-h) !important;
    max-height: var(--site-game-cover-h) !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
  }

  .section-title {
    font-size: 20px !important;
  }

  .all-link {
    height: 39px !important;
    min-height: 39px !important;
    padding: 0 20px !important;
    font-size: 17px !important;
    line-height: 39px !important;
  }

  .sec-arrow {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
  }

  .sec-arrow::before {
    width: 9px !important;
    height: 9px !important;
    border-width: 2px !important;
  }
}

@media (max-width: 390px) {
  .sidebar {
    width: min(340px, calc(100vw - 64px)) !important;
  }

  .sidebar-online-row,
  .sidebar-guest-block,
  .sidebar-user-block,
  .sidebar-nav,
  .sidebar-footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .sidebar-mode-btns {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }
}

/* Reference typography pass: copy the compact 14px/12px sidebar scale. */
@media (max-width: 768px) {
  .sidebar {
    width: clamp(318px, calc(100vw - 104px), 360px) !important;
    max-width: 360px !important;
    top: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .sidebar-card {
    height: 100% !important;
    border-radius: 20px !important;
    background: #2b173c !important;
  }

  .sidebar-divider-row,
  .sidebar-balance-block {
    display: none !important;
  }

  .sidebar-online-row {
    min-height: 42px !important;
    padding: 16px 16px 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: rgba(255, 255, 255, 0.5) !important;
  }

  .sidebar-online-right strong {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
  }

  .sidebar-guest-block,
  .sidebar-user-block {
    min-height: 62px !important;
    padding: 8px 16px 12px !important;
    gap: 8px !important;
  }

  .sidebar-guest-avatar,
  .sidebar-avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }

  .sidebar-guest-name,
  .sidebar-username {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.12 !important;
  }

  .sidebar-guest-sub,
  .sidebar-userid {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
  }

  .sidebar-mode-btns {
    margin: 0 16px 16px !important;
    padding: 0 !important;
  }

  .sidebar-mode-inner {
    display: block !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
  }

  .mode-btn {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  .mode-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .mode-btn--sport {
    display: none !important;
  }

  .sidebar-fortune,
  .sidebar-fortune-card {
    min-height: 55px !important;
    height: 55px !important;
    margin: 0 16px 16px !important;
    padding: 12px 80px 12px 16px !important;
    border-radius: 12px !important;
  }

  .sidebar-fortune-text,
  .sidebar-fortune-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.12 !important;
  }

  .sidebar-fortune-img {
    width: 72px !important;
    height: 55px !important;
    right: 0 !important;
    bottom: 0 !important;
    object-fit: contain !important;
  }

  .sidebar-nav {
    min-height: 110px !important;
    padding: 0 16px 8px !important;
  }

  .nav-item {
    min-height: 34px !important;
    padding: 7px 0 8px !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
  }

  .nav-icon,
  .nav-icon svg,
  .nav-icon img {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  .nav-badge-green {
    width: 28px !important;
    min-width: 28px !important;
    height: 18px !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
  }

  .nav-divider {
    margin: 12px 0 !important;
  }

  .sidebar-footer {
    padding: 8px 16px 12px !important;
    gap: 8px !important;
  }

  .sidebar-app-install {
    min-height: 60px !important;
    padding: 4px 8px 4px 4px !important;
    border-radius: 12px !important;
  }

  .install-app-img {
    width: 54px !important;
    height: 54px !important;
  }

  .install-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.12 !important;
  }

  .install-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  .sidebar-footer-row,
  .sidebar-socials {
    gap: 4px !important;
  }

  .social-btn,
  .social-btn img {
    width: 32px !important;
    height: 32px !important;
  }

  .sidebar-lang {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  .sidebar-support-btn {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .sidebar-support-badge {
    height: 20px !important;
    min-width: 50px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
  }
}

@media (max-width: 390px) {
  .sidebar {
    width: clamp(306px, calc(100vw - 72px), 340px) !important;
  }
}

/* Exact reference pass: compact mobile sidebar over bottom bar + 145 x 193.33 game covers. */
@media (max-width: 768px) {
  .sidebar {
    width: min(340px, calc(100vw - 76px)) !important;
    max-width: 340px !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1600 !important;
  }

  .sidebar-card {
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 20px 20px 0 !important;
    background: #2b173c !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar-online-row {
    min-height: 45px !important;
    padding: 14px 20px 9px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  .sidebar-online-right strong {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  .sidebar-guest-block,
  .sidebar-user-block {
    min-height: 70px !important;
    padding: 10px 20px 12px !important;
  }

  .sidebar-guest-avatar,
  .sidebar-avatar {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  .sidebar-guest-name,
  .sidebar-username {
    font-size: 16px !important;
    line-height: 1.05 !important;
  }

  .sidebar-guest-sub,
  .sidebar-userid {
    font-size: 13px !important;
    line-height: 1.05 !important;
  }

  .sidebar-mode-btns {
    margin: 0 20px 16px !important;
  }

  .sidebar-mode-inner {
    display: block !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
  }

  .mode-btn {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .mode-btn--sport {
    display: none !important;
  }

  .sidebar-fortune-card {
    min-height: 68px !important;
    margin: 0 20px 16px !important;
    padding: 10px 92px 10px 20px !important;
  }

  .sidebar-fortune-title {
    font-size: 14px !important;
    line-height: 1.05 !important;
  }

  .sidebar-fortune-img {
    width: 86px !important;
    right: 2px !important;
  }

  .sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 120px !important;
    overflow-y: auto !important;
    padding: 4px 20px 10px !important;
  }

  .nav-item {
    min-height: 38px !important;
    padding: 6px 0 !important;
    gap: 10px !important;
    font-size: 16px !important;
    line-height: 1.08 !important;
  }

  .nav-icon,
  .nav-icon svg,
  .nav-icon img {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
  }

  .nav-divider {
    margin: 10px 0 !important;
  }

  .sidebar-footer {
    flex: 0 0 auto !important;
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sidebar-app-install {
    min-height: 60px !important;
  }

  .install-app-img {
    width: 50px !important;
    height: 50px !important;
  }

  .install-text {
    font-size: 14px !important;
    line-height: 1.05 !important;
  }

  .social-btn,
  .social-btn img {
    width: 32px !important;
    height: 32px !important;
  }

  .sidebar-lang,
  .sidebar-support-btn {
    height: 32px !important;
    min-height: 32px !important;
  }

  .sidebar-support-badge {
    height: 22px !important;
    min-width: 50px !important;
    font-size: 12px !important;
  }

  .site-bottom-nav {
    z-index: 1400 !important;
  }

  :root {
    --site-game-cover-w: 145px;
    --site-game-cover-h: 193.33px;
  }

  .game-row {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .game-row::-webkit-scrollbar {
    display: none !important;
  }

  .game-grid:not(.search-games-grid) {
    grid-template-columns: repeat(auto-fill, var(--site-game-cover-w)) !important;
    gap: 10px !important;
    justify-content: start !important;
  }

  .game-row > .game-card,
  .game-grid:not(.search-games-grid) > .game-card {
    flex: 0 0 var(--site-game-cover-w) !important;
    width: var(--site-game-cover-w) !important;
    min-width: var(--site-game-cover-w) !important;
    max-width: var(--site-game-cover-w) !important;
    height: var(--site-game-cover-h) !important;
    min-height: var(--site-game-cover-h) !important;
    max-height: var(--site-game-cover-h) !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
  }

  .game-card-title,
  .game-card-provider,
  .game-card::before {
    display: none !important;
  }

  .section-head {
    gap: 10px !important;
  }

  .section-title {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .all-link {
    height: 39px !important;
    min-height: 39px !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    line-height: 39px !important;
  }

  .all-link::after {
    content: none !important;
  }

  .sec-arrow {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
  }

  .sec-arrow::before {
    width: 8px !important;
    height: 8px !important;
    border-width: 2px !important;
  }
}

@media (max-width: 390px) {
  .sidebar {
    width: min(340px, calc(100vw - 64px)) !important;
  }

  .sidebar-online-row,
  .sidebar-guest-block,
  .sidebar-user-block,
  .sidebar-nav,
  .sidebar-footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .sidebar-mode-btns,
  .sidebar-fortune-card {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }
}

/* Final compact section controls: same scale as Telegram mini app. */
@media (max-width: 768px) {
  .section-head {
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
  }

  .section-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 34px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .section-arrows {
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
  }

  .all-link {
    width: auto !important;
    min-width: 112px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #321b49 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .all-link::after {
    content: none !important;
    display: none !important;
  }

  .sec-arrow {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #321b49 !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  .sec-arrow::before {
    content: "" !important;
    width: 7px !important;
    height: 7px !important;
    display: block !important;
    border-top: 1.8px solid currentColor !important;
    border-right: 1.8px solid currentColor !important;
    margin: 0 !important;
  }

  .sec-arrow:first-child::before {
    transform: translateX(1px) rotate(-135deg) !important;
  }

  .sec-arrow:last-child::before {
    transform: translateX(-1px) rotate(45deg) !important;
  }
}

@media (max-width: 390px) {
  .section-head {
    gap: 6px !important;
  }

  .section-title {
    font-size: 17px !important;
  }

  .section-arrows {
    gap: 6px !important;
  }

  .all-link {
    min-width: 104px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
  }

  .sec-arrow {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
}

/* Desktop correction: compact centered section controls. */
.section-head {
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.section-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 32px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.section-arrows {
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

.all-link {
  width: auto !important;
  min-width: 106px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #321b49 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.all-link::after {
  content: none !important;
  display: none !important;
}

.sec-arrow {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #321b49 !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative !important;
}

.sec-arrow::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  display: block !important;
  border-top: 1.7px solid currentColor !important;
  border-right: 1.7px solid currentColor !important;
  margin: 0 !important;
}

.sec-arrow:first-child::before {
  transform: translateX(1px) rotate(-135deg) !important;
}

.sec-arrow:last-child::before {
  transform: translateX(-1px) rotate(45deg) !important;
}

/* Hard center arrows: hide legacy ‹/› glyphs and draw centered SVG-mask icons. */
.sec-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  color: transparent !important;
}

.sec-arrow::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: 14px !important;
  height: 14px !important;
  margin: auto !important;
  display: block !important;
  border: 0 !important;
  background: #fff !important;
  transform: none !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: 14px 14px !important;
  mask-size: 14px 14px !important;
}

.sec-arrow:first-child::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M8.75 3.2 4.95 7l3.8 3.8' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M8.75 3.2 4.95 7l3.8 3.8' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.sec-arrow:last-child::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5.25 3.2 9.05 7l-3.8 3.8' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5.25 3.2 9.05 7l-3.8 3.8' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Compact sidebar fortune card with Wheel.png. */
.sidebar-fortune,
.sidebar-fortune-card {
  min-height: 52px !important;
  height: 52px !important;
  margin: 0 16px 14px !important;
  padding: 0 62px 0 13px !important;
  border-radius: 8px !important;
  background: #2f1b45 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.sidebar-fortune-text,
.sidebar-fortune-title {
  max-width: 130px !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

.sidebar-fortune-img {
  width: 50px !important;
  height: 50px !important;
  right: 1px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  object-fit: contain !important;
  object-position: center right !important;
}

.sidebar.collapsed .sidebar-fortune {
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  justify-content: center !important;
}

.sidebar.collapsed .sidebar-fortune-text {
  display: none !important;
}

.sidebar.collapsed .sidebar-fortune-img {
  position: static !important;
  width: 32px !important;
  height: 32px !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}
