/* M2 Casino - Desktop Homepage Redesign Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  --primary: #a14000;
  --primary-container: #ff6a00;
  --primary-hover: #e55e00;
  --primary-fixed: #ffdbcc;
  --primary-fixed-dim: #ffb694;
  --on-primary: #ffffff;
  --on-primary-container: #571f00;
  
  --secondary: #0f172a;
  --secondary-muted: #565e74;
  --secondary-container: #dae2fd;
  --on-secondary: #ffffff;
  
  --tertiary: #815600;
  --tertiary-container: #cd8b00;
  --tertiary-fixed: #ffddb1;
  --tertiary-fixed-dim: #ffba48;
  
  --background: #f8f9ff;
  --surface: #f8f9ff;
  --surface-dim: #cbdbf5;
  --surface-bright: #ffffff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eff4ff;
  --surface-container: #e5eeff;
  --surface-container-high: #dce9ff;
  --surface-container-highest: #d3e4fe;
  
  --on-surface: #0b1c30;
  --on-surface-variant: #5a4136;
  --inverse-surface: #0f172a;
  --inverse-on-surface: #eaf1ff;
  
  --emerald: #10b981;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(11, 28, 48, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(255, 106, 0, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 48px -8px rgba(15, 23, 42, 0.12);
  --glow-orange: 0 8px 28px -2px rgba(255, 106, 0, 0.38);
  --glow-orange-lg: 0 12px 36px rgba(255, 106, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--on-surface);
  background-color: var(--background);
}

body {
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Draggable daily rebate notice */
.rebate-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(430px, calc(100vw - 32px));
  padding: 11px 12px;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  color: var(--on-surface);
  transition: width .22s ease, padding .22s ease, border-radius .22s ease;
  touch-action: none;
}
.rebate-drag-handle,
.rebate-notice-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: grab;
  font-size: 20px;
  line-height: 1;
}
.rebate-drag-handle:active { cursor: grabbing; }
.rebate-notice-toggle { cursor: pointer; color: var(--on-surface-variant); }
.rebate-notice-toggle:hover { background: var(--surface-container-high); }
.rebate-notice-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-container);
  box-shadow: 0 0 0 5px rgba(255, 106, 0, .12);
}
.rebate-notice-text {
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rebate-notice.is-minimized {
  gap: 7px;
  width: auto;
  padding: 8px 7px 8px 10px;
  border-radius: 18px 0 0 18px;
  border-right: 0;
  box-shadow: -6px 8px 22px rgba(15, 23, 42, .14);
}
.rebate-notice.is-minimized .rebate-notice-text { display: none; }
.rebate-notice.is-minimized .rebate-notice-dot { width: 9px; height: 9px; }
@media (max-width: 640px) {
  .rebate-notice { right: 16px; bottom: 16px; gap: 8px; padding: 9px 10px; }
  .rebate-notice-text { max-width: 205px; font-size: 10px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface-container-low);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-container-highest);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-fixed-dim);
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.fill-1 {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Ambient Radiant Glow Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

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

@keyframes tickerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-pulse-glow {
  animation: pulseGlow 4s infinite ease-in-out;
}

.animate-float {
  animation: floatSmooth 3.5s infinite ease-in-out;
}

/* Marquee Scroller */
.marquee-track {
  display: flex;
  width: max-content;
  animation: tickerMarquee 35s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Glassmorphism Styles */
.glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Interactive Card Hover Effects */
.interactive-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 106, 0, 0.3);
}

/* Provider Chips */
.provider-chip {
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.provider-chip:hover, .provider-chip.active {
  background: #ffffff;
  border-color: rgba(255, 106, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.12);
}
.provider-chip.active {
  color: var(--primary-container);
  border-color: var(--primary-container);
}

/* Modal Overlay */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 48, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.game-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.game-modal-box {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-modal-overlay.active .game-modal-box {
  transform: scale(1);
}

/* Custom Gradients */
.bg-gradient-brand {
  background: linear-gradient(135deg, #ff6a00 0%, #a14000 100%);
}

.bg-gradient-solar {
  background: linear-gradient(135deg, #ff8400 0%, #ff6a00 50%, #d84315 100%);
}

.text-gradient-solar {
  background: linear-gradient(90deg, #ff6a00 0%, #a14000 50%, #815600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Category Filter Active States */
.cat-pill.active {
  background: linear-gradient(135deg, #ff6a00 0%, #a14000 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: #ffffff;
  z-index: 90;
  box-shadow: -8px 0 24px rgba(11, 28, 48, 0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 48, 0.5);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: none;
}
.mobile-nav-backdrop.open {
  display: block;
}
