@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #1A2C38;
  --bg-card: #0F212E;
  --bg-hover: #2F4553;
  --text-main: #FFFFFF;
  --text-muted: #B1BAD3;
  --accent-gold: #fbbf24;
  --accent-gold-dark: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-green: #00E701;
  --accent-red: #ef4444;
  --border-color: #2F4553;
  --glass-bg: #1A2C38;
  --glass-border: #0F212E;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Login Page --- */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at top right, #1e293b, #0b0f19);
}

.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--accent-gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, var(--accent-gold-dark), var(--accent-gold));
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

/* --- Main Lobby --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--bg-card);
  font-size: 10px;
  font-weight: bold;
  cursor: help;
  position: relative;
  margin-left: 6px;
}

.info-tooltip {
  position: absolute;
  bottom: 150%;
  left: -10px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  width: max-content;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  line-height: 1.4;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.3);
  text-align: left;
  backdrop-filter: blur(8px);
}

.info-icon:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 130%;
}

.info-tooltip-title {
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #cbd5e1;
}

.info-tooltip-row span:first-child {
  color: #fff;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-pill {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bonus-pill {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.main-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-section {
  padding-bottom: 60px;
}

.hero-section {
  margin-bottom: 40px;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.game-card {
  background: var(--bg-card);
  height: 180px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
  color: var(--accent-gold);
}

.game-card:hover::before {
  opacity: 1;
}

.game-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.game-name {
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  padding: 0 10px;
}

/* --- Hidden Demo Panel --- */
.demo-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: none;
  backdrop-filter: blur(5px);
}

.demo-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  padding: 15px 20px 20px 20px;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.demo-panel.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.demo-overlay.active {
  display: block;
}

.demo-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.demo-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-panel-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 32px;
  height: 32px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.close-panel-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.4);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.demo-section {
  margin-bottom: 20px;
}

.demo-section h4 {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-btn {
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.demo-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.demo-btn.danger { border-left: 3px solid var(--accent-red); }
.demo-btn.warning { border-left: 3px solid var(--accent-gold); }
.demo-btn.success { border-left: 3px solid var(--accent-green); }

.balance-control {
  display: flex;
  gap: 10px;
}

.balance-control input {
  flex: 1;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
}

.demo-log {
  margin-top: 20px;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-green);
  max-height: 100px;
  overflow-y: auto;
}

.presenter-toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10005;
  opacity: 0.9;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.presenter-toggle-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

.presenter-tooltip {
  position: fixed;
  bottom: 30px;
  left: 80px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 10005;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  animation: pulseTooltip 2s infinite;
}

@keyframes pulseTooltip {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 10px rgba(59,130,246,0.6); }
  100% { transform: scale(1); opacity: 0.9; }
}

.presenter-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent rgba(0, 0, 0, 0.85) transparent transparent;
}

/* --- CATEGORIES & GAME VIEW --- */
.category-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.category-pills::-webkit-scrollbar {
  height: 4px;
}
.category-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-weight: 500;
}
.category-pill:hover, .category-pill.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.game-view-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.game-view-frame {
  width: 100%;
  height: 600px;
  background: #000;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.game-loading-screen {
  text-align: center;
}
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--border-color);
  border-bottom-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- NEW PAGE COMPONENTS --- */

/* Promotions */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.promo-card {
  background: var(--bg-hover);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.promo-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}
.promo-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.promo-content {
  padding: 20px;
}
.promo-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.promo-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Cashier */
.cashier-container, .profile-container, .verification-container, .kyc-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-hover);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.payment-method {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.payment-method.active, .payment-method:hover {
  border-color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 1rem;
}

/* Profile */
.profile-avatar-large {
  width: 80px;
  height: 80px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 30px auto;
}

/* Verification & KYC */
.verify-box, .kyc-step {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.kyc-step {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.kyc-icon {
  font-size: 2.5rem;
}

/* --- Responsive Menu --- */
.hamburger-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 6px;
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 260px;
  height: 100vh;
  background: #0f212e;
  z-index: 10001;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.side-menu.active {
  left: 0;
}

.sidebar-header {
  height: 70px;
  flex-shrink: 0;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-toggle-wrapper {
  padding: 15px;
  background: #0f212e;
}

.sidebar-toggles {
  display: flex;
  gap: 10px;
}

.sidebar-toggles .toggle-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #b1bad3;
  background: #1a2c38;
  cursor: pointer;
  transition: 0.2s;
}

.sidebar-toggles .toggle-btn.active {
  background: linear-gradient(180deg, #2a3d4a 0%, #1a2c38 100%);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.sidebar-toggles .toggle-btn:hover:not(.active) {
  background: #213543;
  color: #fff;
}

.sidebar-container {
  padding: 10px 0 15px 0;
  flex: 1;
  overflow-y: auto;
}

.stake-sidebar .menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stake-sidebar .menu-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  margin: 4px 10px;
  color: #b1bad3;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 8px;
}

.stake-sidebar .menu-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.stake-sidebar .menu-link.active {
  background: #213543;
  color: #fff;
}

.stake-sidebar .menu-link svg {
  color: #b1bad3;
  transition: 0.2s;
  flex-shrink: 0;
}

.stake-sidebar .menu-link:hover svg {
  color: #fff;
}

.stake-sidebar .menu-link.has-chevron {
  justify-content: flex-start;
}

.stake-sidebar .menu-link .chevron {
  margin-left: auto;
  opacity: 0.5;
  width: 14px;
  height: 14px;
}

.sidebar-divider {
  height: 1px;
  background: #2a3d4a;
  margin: 10px 15px;
}

/* PRESENTER CONTROLS MODERN UI */
.demo-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.4;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: rgba(0, 0, 0, 0.15);
  padding: 15px;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
}

.context-simulator-form {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 12px 12px;
}

.primary-submit-btn {
  width: 100%;
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-submit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.primary-submit-btn:active {
  transform: translateY(1px);
}

.text-link-btn {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.text-link-btn:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

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

.input-group label {
  font-size: 0.7rem;
  color: #a3a3a3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  color: #e5e5e5;
  padding: 5px 0;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .menu-mobile-only {
    display: block;
  }
  .navbar {
    padding: 15px 20px;
  }
  .main-content {
    padding: 20px;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* Stake.com Style Overrides */
#page-games .stake-search-bar {
  background-color: var(--bg-card);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 24px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#page-games .stake-search-bar:focus-within {
  border-color: var(--text-muted);
}
#page-games .stake-search-bar svg {
  color: var(--text-muted);
  margin-right: 12px;
}
#page-games .stake-search-bar input {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 100%;
  padding: 16px 0;
  font-size: 1rem;
  outline: none;
}
#page-games .stake-search-bar input::placeholder {
  color: var(--text-muted);
}

.category-pills.stake-nav {
  margin-bottom: 30px;
  gap: 12px;
  padding-bottom: 8px;
  display: flex;
  overflow-x: auto;
}
.category-pills.stake-nav::-webkit-scrollbar {
  height: 4px;
}
.category-pill {
  background: var(--bg-card);
  color: var(--text-muted);
  border: none;
  border-radius: 20px;
  font-size: 0.95rem;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.category-pill:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: transparent;
}
.category-pill.active {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: transparent;
}

.stake-section {
  margin-bottom: 40px;
}
.stake-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.stake-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}
.stake-section-view-all {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 12px;
}
.stake-section-view-all:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}

.stake-game-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.stake-game-cover {
  background: var(--bg-card);
  border-radius: 10px;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.stake-game-item:hover .stake-game-cover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.stake-game-item:hover .stake-game-cover::after {
  content: '▶';
  position: absolute;
  font-size: 2.5rem;
  color: white;
  background: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.stake-game-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  z-index: 1;
}
.stake-game-name {
  font-weight: 800;
  font-size: 1.3rem;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  padding: 0 12px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  z-index: 1;
  line-height: 1.1;
}
.stake-game-provider {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  margin-top: 8px;
  z-index: 1;
  font-weight: 600;
}
.stake-game-stats {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0 4px;
}
.stake-game-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}
.stake-load-more {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  margin: 40px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.stake-load-more:hover {
  color: var(--text-main);
}
.stake-load-more::before,
.stake-load-more::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid var(--bg-card);
}
.stake-load-more:not(:empty)::before {
  margin-right: 1em;
}
.stake-load-more:not(:empty)::after {
  margin-left: 1em;
}

/* DESKTOP SIDEBAR COLLAPSE LOGIC */
@media (min-width: 768px) {
  .side-menu {
    left: 0;
  }
  
  .navbar {
    padding-left: 280px;
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .main-content {
    margin-left: 260px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Hide the navbar's brand and hamburger on desktop since they are in the sidebar */
  .navbar .hamburger-btn,
  .navbar .nav-brand {
    display: none;
  }

  /* Show navbar brand again when sidebar is collapsed */
  .sidebar-collapsed .navbar .nav-brand {
    display: flex;
  }

  .sidebar-collapsed .side-menu {
    width: 70px;
  }

  .sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
  }

  .sidebar-collapsed .navbar {
    padding-left: 90px;
  }

  .sidebar-collapsed .main-content {
    margin-left: 70px;
  }

  .sidebar-collapsed .menu-text-item {
    display: none;
  }

  .sidebar-collapsed .menu-link {
    justify-content: center;
    padding: 0;
    width: 44px;
    height: 44px;
    margin: 4px auto;
    border-radius: 8px;
  }

  .sidebar-collapsed .menu-link svg:not(.chevron) {
    margin: 0;
  }

  .sidebar-collapsed .menu-link .chevron {
    display: none;
  }
}

/* MOBILE SIDEBAR LOGIC */
@media (max-width: 767px) {
  .desktop-toggle {
    display: none;
  }
}

/* FOOTER STYLES */
.site-footer {
  margin-top: auto;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: -40px;
  padding: 40px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer .footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.site-footer a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent-gold);
}
