/* Casino Demo Backdrop — matches demo.fluidpayments.io */

.casino-page {
  min-height: 100vh;
  background: #f5f3ff;
  font-family: var(--fluid-font);
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Sidebar */
.casino-sidebar {
  width: 200px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  z-index: 1;
}

.casino-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--fluid-text);
}

.casino-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--fluid-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.casino-wallet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1a1a2e;
  color: white;
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--fluid-font);
}
.casino-wallet-btn:hover { background: #2a2a4e; }
.casino-wallet-btn svg { width: 16px; height: 16px; }

.casino-balance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.casino-balance-row {
  display: flex;
  justify-content: space-between;
}
.casino-balance-label { color: var(--fluid-text-secondary); }
.casino-balance-value { font-weight: 700; color: var(--fluid-text); }

.casino-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.casino-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fluid-text-secondary);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.casino-nav-item:hover { background: rgba(124, 92, 252, 0.06); }
.casino-nav-item.active {
  background: rgba(124, 92, 252, 0.08);
  color: var(--fluid-text);
  font-weight: 600;
}
.casino-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(124, 92, 252, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Main Content */
.casino-main {
  flex: 1;
  padding: 20px 24px 20px 0;
  overflow-y: auto;
  min-height: 100vh;
}

/* Hero Banner */
.casino-hero {
  background: linear-gradient(135deg, #b794f6 0%, #7c5cfc 30%, #5f6cfa 60%, #93c5fd 100%);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.casino-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.casino-hero h2 {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.casino-hero h3 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}
.casino-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #1a1a2e;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fluid-font);
}
.casino-hero-terms {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
/* Floating coins decoration */
.casino-hero::before, .casino-hero::after {
  content: '🪙';
  position: absolute;
  font-size: 32px;
  opacity: 0.7;
  animation: floatCoin 6s ease-in-out infinite;
}
.casino-hero::before { top: 15px; right: 60px; animation-delay: -2s; }
.casino-hero::after { bottom: 20px; left: 40px; animation-delay: -4s; font-size: 24px; }

@keyframes floatCoin {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(15deg); }
}

/* Lightning decorations */
.hero-lightning {
  position: absolute;
  font-size: 28px;
  opacity: 0.6;
}
.hero-lightning:nth-child(1) { top: 30px; left: 80px; }
.hero-lightning:nth-child(2) { top: 60px; right: 120px; transform: rotate(20deg); }
.hero-lightning:nth-child(3) { bottom: 40px; right: 50px; font-size: 22px; }

/* Game Grid */
.casino-section {
  margin-bottom: 24px;
}
.casino-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.casino-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fluid-text);
}
.casino-section-link {
  font-size: 12px;
  color: var(--fluid-text-tertiary);
  cursor: pointer;
}

.casino-game-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.casino-game-row::-webkit-scrollbar { display: none; }

.casino-game-card {
  flex-shrink: 0;
  width: 140px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.casino-game-card:hover { transform: scale(1.03); }
.casino-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder game cards with gradients */
.game-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Predefined game colors */
.game-g1 { background: linear-gradient(145deg, #ff6b6b, #c44569); }
.game-g2 { background: linear-gradient(145deg, #ffd93d, #ff6348); }
.game-g3 { background: linear-gradient(145deg, #6c5ce7, #a29bfe); }
.game-g4 { background: linear-gradient(145deg, #00b894, #00cec9); }
.game-g5 { background: linear-gradient(145deg, #fd79a8, #e84393); }
.game-g6 { background: linear-gradient(145deg, #0984e3, #74b9ff); }
.game-g7 { background: linear-gradient(145deg, #e17055, #d63031); }
.game-g8 { background: linear-gradient(145deg, #00b894, #55efc4); }

/* Cashier Overlay */
.cashier-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayIn 0.3s ease;
}
.cashier-overlay.hidden { display: none; }

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cashier-widget {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03);
  animation: widgetIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

@keyframes widgetIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Cashier Header — matches Fluid demo */
.cashier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.cashier-toggle {
  display: flex;
  background: #f5f5f5;
  border-radius: 100px;
  padding: 3px;
  position: relative;
}
.cashier-toggle-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--fluid-text-secondary);
  background: transparent;
  font-family: var(--fluid-font);
}
.cashier-toggle-btn.active {
  background: white;
  color: var(--fluid-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cashier-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fluid-text);
}

.cashier-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--fluid-text-secondary);
  font-family: var(--fluid-font);
}

/* Cashier Content */
.cashier-content {
  padding: 20px;
  flex: 1;
}

/* Step indicator bar */
.cashier-step-bar {
  height: 3px;
  background: #f0f0f0;
  position: relative;
  margin: 0 20px;
}
.cashier-step-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Continue / CTA button */
.cashier-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #1a1a2e;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--fluid-font);
}
.cashier-cta:hover { background: #2a2a4e; }
.cashier-cta svg { width: 16px; height: 16px; }

.cashier-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--fluid-text);
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fluid-font);
}

.cashier-footer {
  padding: 12px 20px 16px;
  display: flex;
  gap: 10px;
}
.cashier-footer .cashier-cta { flex: 1; }

/* SSL badge */
.cashier-ssl {
  text-align: center;
  padding: 8px 20px 16px;
  font-size: 11px;
  color: var(--fluid-text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Bottom bar help */
.casino-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--fluid-text-tertiary);
  z-index: 0;
}
.casino-help-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  font-size: 11px;
  color: var(--fluid-text-secondary);
  cursor: pointer;
  background: white;
  font-family: var(--fluid-font);
}

/* Responsive */
@media (max-width: 768px) {
  .casino-sidebar { display: none; }
  .casino-main { padding: 12px; }
  .casino-hero { padding: 24px 20px; min-height: 160px; }
  .casino-game-card { width: 120px; height: 155px; }
  .cashier-widget { max-width: 100%; border-radius: 16px; }
}
