:root {
  --bg: #07080c;
  --panel: rgba(20, 22, 29, 0.72);
  --panel-solid: #14161d;
  --field: #1a1d26;
  --field-border: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.07);
  --text: #f3f4f6;
  --text-dim: #8b90a0;
  --text-dimmer: #5b5f6d;
  --blue: #3b6bed;
  --blue-bright: #5c85ff;
  --blue-deep: #16224d;
  --success: #37c88a;
  --error: #e5566f;
  --glass-highlight: rgba(255, 255, 255, 0.10);
  --scene-glow-1: #0d1430;
  --scene-glow-2: #0a1226;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --bar-height: 56px;
  --bottom-bar-height: 64px;
}

[data-theme="light"] {
  --bg: #f2f4f9;
  --panel: rgba(255, 255, 255, 0.68);
  --panel-solid: #ffffff;
  --field: #eaeef6;
  --field-border: rgba(15, 23, 42, 0.10);
  --border: rgba(15, 23, 42, 0.08);
  --text: #12141a;
  --text-dim: #5b6072;
  --text-dimmer: #8b90a0;
  --blue: #3b6bed;
  --blue-bright: #2c4fc4;
  --blue-deep: #e4eaff;
  --success: #1f9d68;
  --error: #d13b52;
  --glass-highlight: rgba(255, 255, 255, 0.55);
  --scene-glow-1: #dbe6ff;
  --scene-glow-2: #eef1ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

html.preload * {
  transition: none !important;
}

body.sidebar-open {
  overflow: hidden;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-content {
  animation: pageFadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

a, button, .nav-item, .bottom-item, .game-card, .social-btn, .tab, .solid-btn, .ghost-btn, .info-card, .username-pill, .balance-btn {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

button:active, a:active, .game-card:active, .bottom-item:active, .solid-btn:active, .ghost-btn:active {
  transform: scale(0.95);
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, var(--scene-glow-1) 0%, transparent 50%), var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -120px;
  left: -100px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--blue-bright) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  opacity: 0.25;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.solid-btn, .ghost-btn, .username-pill, .balance-btn {
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.solid-btn {
  background: linear-gradient(135deg, var(--blue), #2c4fc4);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 107, 237, 0.28);
}

.solid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(59, 107, 237, 0.38);
  filter: brightness(1.06);
}

.ghost-btn {
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
}

.ghost-btn:hover {
  border-color: var(--blue);
  background: rgba(59, 107, 237, 0.08);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
  min-width: 0;
}

.balance-btn {
  background: linear-gradient(135deg, rgba(59, 107, 237, 0.18), rgba(44, 79, 196, 0.10));
  border: 1px solid rgba(92, 133, 255, 0.25);
  color: var(--blue-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.balance-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 133, 255, 0.5);
}

.username-pill {
  background: var(--field);
  border: 1px solid var(--field-border);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  cursor: default;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-solid);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.file-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #5c2b2b;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

.tabs {
  position: relative;
  display: flex;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 4px;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--blue), #2c4fc4);
  border-radius: 9px;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}

.tabs[data-active="register"] .tab-indicator,
.tabs[data-active="light"] .tab-indicator,
.tabs[data-active="withdraw"] .tab-indicator {
  transform: translateX(100%);
}

.tab {
  flex: 1;
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 0;
  cursor: pointer;
  border-radius: 9px;
}

.tab.active {
  color: #fff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.field input, .field select {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--field-border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.field input:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 107, 237, 0.18);
}

.error-text {
  font-size: 12px;
  color: var(--error);
  min-height: 14px;
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--field-border);
  transition: .3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider { background-color: var(--blue); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  z-index: 35;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(16, 18, 26, 0.88);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 12px 0 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-profile-box {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  cursor: pointer;
}

.sp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2c4fc4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.sp-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.sp-id {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.sp-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.sp-banner {
  background: linear-gradient(90deg, #3a4a3e, #242e26);
  border: 1px solid #4a5d4e;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sp-banner:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.sp-banner-text {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sidebar-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 16px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--field);
  color: var(--text);
}

.nav-item.active {
  color: #fff;
  border-left: 3px solid var(--blue-bright);
  padding-left: 9px;
  background: linear-gradient(135deg, rgba(59, 107, 237, 0.28), rgba(44, 79, 196, 0.14));
  box-shadow: inset 0 0 0 1px rgba(92, 133, 255, 0.28);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.sf-socials {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.sf-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--field);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sf-icon:hover {
  color: var(--blue-bright);
  background: rgba(59, 107, 237, 0.1);
  transform: translateY(-2px);
}

.sf-icon svg {
  width: 16px;
  height: 16px;
}

.sf-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--field);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.sf-lang:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.sf-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--field);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.sf-support:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.sf-badge {
  background: var(--blue-bright);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
}

.topbar {
  position: fixed;
  top: 14px;
  left: 262px;
  right: 14px;
  height: var(--bar-height);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(20, 22, 29, 0.50);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 32px rgba(0, 0, 0, 0.22);
}

.topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.08) 100%);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.main-content {
  margin-left: 250px;
  padding: 92px 28px 60px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.bottom-bar {
  display: none;
}

@media (max-width: 900px) {
  .sidebar {
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-110%);
    border-radius: 0 20px 20px 0;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar {
    left: 14px;
    right: 14px;
    height: 52px;
    padding: 0 14px;
  }
  .main-content {
    margin-left: 0;
    padding: 82px 14px 90px;
  }
  .games-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .promo-grid {
    grid-template-columns: 1fr !important;
  }
  .promo-sub {
    grid-column: 1 / -1 !important;
  }
  .bottom-bar {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: var(--bottom-bar-height);
    z-index: 30;
    background: rgba(20, 22, 29, 0.50);
    backdrop-filter: blur(36px) saturate(200%);
    -webkit-backdrop-filter: blur(36px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 32px rgba(0, 0, 0, 0.22);
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
  }
  .bottom-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.08) 100%);
  }
  .bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    padding: 8px 6px;
    min-width: 44px;
    position: relative;
    z-index: 1;
    background: transparent;
  }
  .bottom-item.active {
    color: var(--blue-bright);
  }
  .bottom-item svg {
    width: 20px;
    height: 20px;
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
}

.promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
}

.promo-main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.promo-main:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

.promo-main h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.promo-sub {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  min-height: 120px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.promo-sub:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

.promo-sub h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.promo-sub p {
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
  z-index: 2;
}

.promo-free {
  grid-column: 1;
  background: linear-gradient(135deg, #4a3b2c, #2a2218);
}

.promo-bonus {
  grid-column: 2;
  background: linear-gradient(135deg, #2c3e50, #1e293b);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

/* GLOBAL FIX FOR GAME CARDS (No cropping, no 0px collapse) */
.game-card {
  all: unset;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.game-card img {
  position: relative !important; 
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain !important; 
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.15);
}

.game-card:hover img {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.game-card:active {
  transform: translateY(-2px) scale(0.98);
}

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

.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
}

.game-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.game-stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.game-controls {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bet-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.bet-row .field {
  flex: 1;
  min-width: 140px;
}

.bet-row .field input {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.bet-btn {
  min-width: 120px;
}

.cashout-btn {
  background: linear-gradient(135deg, var(--success), #1f9d68) !important;
}

.cashout-btn:hover {
  box-shadow: 0 10px 24px rgba(55, 200, 138, 0.35) !important;
}

.game-history {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.game-history h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.history-row:last-child {
  border-bottom: none;
}

.history-win {
  color: var(--success);
  font-weight: 700;
}

.history-loss {
  color: var(--error);
  font-weight: 700;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.crypto-option {
  background: var(--field);
  border: 2px solid var(--field-border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.crypto-option:hover {
  border-color: rgba(92, 133, 255, 0.4);
  transform: translateY(-2px);
}

.crypto-option.selected {
  border-color: var(--blue-bright);
  background: rgba(59, 107, 237, 0.12);
}

.crypto-option .crypto-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.crypto-btc {
  background: #f7931a;
  color: #fff;
}

.crypto-eth {
  background: #627eea;
  color: #fff;
}

.crypto-sol {
  background: #14f195;
  color: #000;
}

.crypto-usdt {
  background: #26a17b;
  color: #fff;
}

.crypto-ltc {
  background: #345d9d;
  color: #fff;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  margin: 16px auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1px;
  padding: 8px;
}

.qr-cell {
  background: var(--text);
  border-radius: 1px;
}

.qr-cell.empty {
  background: transparent;
}

.address-box {
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 32px;
}

.quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.quick-amounts button {
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.quick-amounts button:hover {
  border-color: var(--blue);
  color: var(--text);
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.currency-option {
  background: var(--field);
  border: 2px solid var(--field-border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
}

.currency-option:hover {
  border-color: rgba(92, 133, 255, 0.4);
  transform: translateY(-2px);
}

.currency-option.selected {
  border-color: var(--blue-bright);
  background: rgba(59, 107, 237, 0.12);
}

.currency-code {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.currency-name {
  font-size: 11px;
  color: var(--text-dimmer);
  margin-top: 4px;
}

.currency-bal {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-bright);
  margin-top: 6px;
}

/* GLOBAL FIX FOR FOOTER (Edge-to-edge, un-rounded, centered) */
.main-content {
  padding-bottom: 0 !important;
}
.global-footer {
  margin-top: 60px;
  margin-left: -28px; 
  margin-right: -28px; 
  margin-bottom: 0;
  padding: 40px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  background: var(--panel-solid);
  border-radius: 0 !important; 
  justify-content: center !important; 
  max-width: none !important; 
}

.footer-col {
  width: auto !important;
  text-align: center !important; 
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--blue-bright);
}

@media (max-width: 900px) {
  .global-footer {
    margin-left: -14px;
    margin-right: -14px;
    padding: 32px 16px 100px; /* 100px padding for bottom bar */
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 15vw !important;
  }
}

@media (max-width: 600px) {
  .crypto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .currency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bet-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bet-row .field {
    min-width: 100%;
  }
  .game-stage {
    padding: 18px;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}