:root {
  /* Primary & semantic colors */
  --color-primary: #FCBA3F;      /* Primary: CTAs, pool filling >50% */
  --color-primary-light: #E5A82E;
  --color-info: #4A68FF;         /* Blue: info, breadcrumb links (ALT to yellow) */
  --color-success: #80DD6D;      /* Green: success, pool open */
  --color-warning: #FF4646;      /* Red: warnings, pool filling <50% */
  --color-yellow: #FCBA3F;
  --color-red: #FF4646;
  --color-green: #80DD6D;
  --color-blue: #4A68FF;

  --color-bg: #F8F8F8;
  --color-surface: #FFFFFF;
  --color-accent: #FCBA3F;
  --color-text: #333333;
  --color-text-2: #475467;
  --color-text-3: #667085;
  --color-muted: #667085;
  --color-border: #E4E7EC;
  --color-divider: #EEF2F6;

  --cta-deposit: #FCBA3F;
  --cta-join-red: #FF4646;
  --cta-join-orange: #FCBA3F;

  --status-filling-bg: #FFE8E8;
  --status-filling-text: #FF4646;
  --status-open-bg: #E8F9ED;
  --status-open-text: #80DD6D;
  --status-locked-bg: #E0E0E0;
  --status-locked-text: #FFFFFF;

  --tier-main: #000000;
  --tier-mini: #FCBA3F;
  --tier-supermini: #80DD6D;
  --tier-micro: #FCBA3F;

  --link-color: #4A68FF;         /* Blue for breadcrumbs / info links */
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.08);
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", "SF Pro", BlinkMacSystemFont, system-ui, sans-serif;
}

body.theme-dark {
  color-scheme: dark;
  --color-bg: #0a0a0a;
  --color-surface: #1a1a1a;
  --color-primary: #FCBA3F;
  --color-primary-light: #E5A82E;
  --color-accent: #FCBA3F;
  --color-text: #f5f5f5;
  --color-text-2: #d1d5db;
  --color-text-3: #9ca3af;
  --color-muted: #9ca3af;
  --color-border: #374151;
  --color-divider: #2a2a2a;

  --cta-deposit: #FCBA3F;
  --cta-join-red: #FF4646;
  --cta-join-orange: #FCBA3F;

  --status-filling-bg: rgba(255, 70, 70, 0.15);
  --status-filling-text: #FF4646;
  --status-open-bg: rgba(128, 221, 109, 0.15);
  --status-open-text: #80DD6D;
  --status-locked-bg: #374151;
  --status-locked-text: #9ca3af;

  --tier-main: #ffffff;
  --tier-mini: #FCBA3F;
  --tier-supermini: #80DD6D;
  --tier-micro: #FCBA3F;

  --link-color: #4A68FF;

  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.5;
}

/* Visibility Control */
.hidden {
  display: none !important;
}

/* Ensure landing page is visible by default */
#landing-page:not(.hidden) {
  display: block !important;
}

/* Ensure main-app and pool-detail are never visible when landing page is shown */
#landing-page:not(.hidden) ~ #main-app,
#landing-page:not(.hidden) ~ #main-app #pool-detail {
  display: none !important;
  visibility: hidden !important;
}

/* Also ensure pool-detail is hidden by default and only shows when visible */
#pool-detail.panel:not(.visible) {
  display: none !important;
}

.content {
  background: var(--color-bg);
}

/* Landing Page Styles */
.landing-page-container {
  min-height: 100vh;
  background: var(--color-bg);
}

.landing-page-container #landing-pools.panel.visible {
  display: flex !important;
}

.landing-page-container #landing-pool-list {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.landing-page-container #landing-pool-list:empty::before {
  content: "Loading pools...";
  display: block;
  padding: 20px;
  text-align: center;
  color: var(--color-text-2);
}

@media (max-width: 1200px) {
  .landing-page-container #landing-pool-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .landing-page-container #landing-pool-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .landing-page-container #landing-pool-list {
    grid-template-columns: 1fr;
  }
}

.landing-page-container .top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.login-button,
.create-account-button {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.login-button {
  background: var(--color-primary);
  color: #ffffff;
}

.login-button:hover {
  background: var(--color-primary-light);
}

.create-account-button {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.create-account-button:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Login Page Styles */
.login-page-container {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.login-page-container:not(.hidden) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.login-page-container .login-card {
  pointer-events: auto;
}

.login-page-container.is-overlay .login-page-header,
.login-page-container.is-overlay .login-footer {
  display: none;
}

.login-page-container.is-overlay .login-page-content {
  padding: 24px 20px;
}

.login-page-container.is-overlay .login-card {
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.22);
}

.login-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  flex-wrap: wrap;
}

.login-page-header .top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.darkmode-toggle {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.darkmode-toggle:hover {
  background: var(--color-bg);
}

.login-page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.login-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text);
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text);
}

.login-subtitle {
  font-size: 14px;
  color: var(--color-text-2);
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-password-link {
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: var(--color-text-3);
  z-index: 1;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-3);
  padding: 4px;
}

.checkbox-group {
  margin-top: -4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.login-submit-button {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.login-submit-button:hover {
  background: var(--color-primary-light);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--color-text-3);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

.google-signin-button {
  width: 100%;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.google-signin-button:hover {
  background: var(--color-bg);
}

.google-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.signup-link {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-2);
  margin-top: 8px;
}

.create-account-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.create-account-link:hover {
  text-decoration: underline;
}

.login-footer {
  margin-top: 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-text-2);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-links span {
  color: var(--color-text-3);
}

.copyright {
  font-size: 12px;
  color: var(--color-text-3);
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .login-page-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .login-page-header .top-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    margin-top: 8px;
  }
  
  .login-card {
    padding: 24px;
  }
  
  .login-title {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .login-page-header {
    padding: 12px;
  }
  
  .login-button,
  .create-account-button {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .login-card {
    padding: 20px;
    border-radius: var(--radius-md);
  }
  
  .login-title {
    font-size: 22px;
  }
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--color-bg);
  position: relative;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-surface);
  box-shadow: 0 1px 0 var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 44px;
  flex-wrap: nowrap;
  box-sizing: border-box;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 8px 0;
  min-height: 24px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand .logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", "SF Pro", BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.2;
  max-width: 80px;
  color: #d1d5db; /* silver for One and Ten */
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.logo-two {
  color: var(--color-yellow);
  font-size: 1em; /* Same height as T in Ten */
  font-weight: 600;
  margin: 0;
  margin-left: 2px;
  vertical-align: baseline; /* Align with baseline of surrounding text */
}

body.theme-dark .brand .logo {
  color: #e5e7eb; /* lighter silver in dark mode */
}

.primary-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 0;
}

.nav-link {
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link.active {
  font-weight: 700;
  color: var(--color-text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text);
}

.nav-link:hover {
  color: var(--link-color);
}

/* Search bars – match search bar.png: light gray bg, rounded, subtle border & shadow */
.top-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 100px;
  max-width: 220px;
  width: 220px;
  z-index: 1;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6B6B;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.search-input {
  width: 100%;
  height: 34px;
  padding: 6px 10px 6px 32px;
  border: 1px solid #B8B8B8;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-dark .search-input {
  background: #3a3a3a;
  border-color: #505050;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-input::placeholder {
  color: #6B6B6B;
}

body.theme-dark .search-input::placeholder {
  color: #9a9a9a;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--color-primary);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto; /* push balance + deposit + avatar to the right */
}

.balance-display {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.deposit-button {
  background: var(--cta-deposit);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  height: 30px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

body.theme-dark .deposit-button {
  color: #000000;
  font-weight: 800;
}

.deposit-button:hover {
  background: var(--color-primary-light);
}

.menu-toggle {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  display: none; /* Hidden on desktop, shown on mobile */
}

.theme-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

body.theme-dark .theme-toggle {
  border-color: rgba(148, 163, 184, 0.4);
}

.avatar-wrapper {
  position: relative;
}

.avatar-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(74, 104, 255, 0.15), rgba(74, 104, 255, 0.25));
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--link-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-chip:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

/* Avatar Dropdown */
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.avatar-dropdown:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-divider);
}

.dropdown-header span:first-child {
  font-weight: 600;
  color: var(--color-text);
  font-size: 15px;
}

.pro-badge {
  background: var(--link-color);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-section {
  padding: 8px 0;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.dropdown-item:hover {
  background: var(--color-bg);
}

.dropdown-item:not(button) {
  cursor: default;
}

.dropdown-item:not(button):hover {
  background: transparent;
}

.dropdown-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item span:not(.dropdown-icon) {
  flex: 1;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-divider);
  margin: 8px 0;
}

.dropdown-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.language-label {
  font-size: 13px;
  color: var(--color-text-3);
}

.flag-icon {
  font-size: 16px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  cursor: pointer;
}

.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: #E0E0E0;
  transition: 0.3s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--link-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.dropdown-item.sign-out {
  color: var(--color-red);
}

.dropdown-item.sign-out:hover {
  background: rgba(239, 68, 68, 0.1);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(220px, 70vw);
  height: 100%;
  background: var(--color-surface);
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  z-index: 40;
  transform: translateX(-100%) scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
  visibility: hidden;
}

.hamburger-menu:not(.hidden) {
  transform: translateX(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.hamburger-menu.hidden {
  display: flex !important;
  transform: translateX(-100%) scale(0.95);
  opacity: 0;
  visibility: hidden;
}

body.theme-dark .hamburger-menu {
  box-shadow: 12px 0 32px rgba(2, 6, 23, 0.6);
}

.hamburger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.hamburger-header h2 {
  margin: 0;
  font-size: 18px;
  text-align: left;
}

.close-menu {
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 20px;
  cursor: pointer;
}

.hamburger-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
}

.hamburger-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.hamburger-footer .logout-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 10px 8px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-accent);
  border: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hamburger-footer .logout-button:hover {
  background: rgba(249, 115, 22, 0.15);
}

.logout-arrow {
  font-size: 16px;
  font-weight: 400;
}

.quick-nav,
.bottom-nav {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  background: var(--color-surface);
  overflow-x: auto;
  position: sticky;
  top: 68px;
  z-index: 9;
}

.quick-nav {
  /* Prevent the active pill from "pulling" layout on wider screens */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow-x: hidden;
  align-items: center;
}

.quick-nav .nav-item {
  flex: none;
  width: 100%;
  min-width: 0;
}

.bottom-nav {
  bottom: 0;
  top: auto;
  justify-content: space-around;
  border-top: 1px solid var(--color-border);
}

.nav-item {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.hamburger-links .nav-item {
  flex: none;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  justify-content: flex-start;
}

.nav-item.active {
  background: var(--link-color);
  color: #ffffff;
}

.content {
  padding: 0;
  display: grid;
  gap: 0;
  padding-bottom: 80px;
  background: var(--color-bg);
  width: 100%;
}

#pools.panel,
#draws.panel {
  padding-top: 0;
  gap: 0;
  width: 100%;
}

#pools .panel-header,
#draws .panel-header {
  padding: 8px 16px 8px;
  margin-bottom: 0;
}

#pools .panel-header h2 {
  margin-bottom: 8px;
}

#pools .panel-header p {
  margin-top: 4px;
}

.panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

#pools.panel {
  gap: 0;
}

.panel.visible {
  display: flex;
}

.panel-header h2 {
  margin: 0;
  font-size: 22px;
}

.panel-header .subtitle,
.panel-header p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-label {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-button {
  border: none;
  background: transparent;
  color: var(--link-color);
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
}

.pool-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pool-card {
  min-width: 200px;
  background: linear-gradient(135deg, rgba(74, 104, 255, 0.05), rgba(74, 104, 255, 0.1));
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.pool-card h4 {
  margin: 0;
  font-size: 16px;
}

.pool-card-animate {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

.pool-card-animate.is-visible {
  animation: poolCardIn 0.65s forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes poolCardIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.95) rotate(-2deg);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 104, 255, 0.1);
  color: var(--link-color);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag .pool-img,
.tag img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

.tier-label {
  color: var(--color-muted);
  font-size: 12px;
}

/* Inline tier badge (dashboard carousel) – same as pool tier badge but not positioned */
.pool-tier-badge-inline {
  padding: 6px 12px 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tier-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-muted);
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--color-divider);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--cta-join-red);
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.notification-item {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.notification-item .timestamp {
  color: var(--color-muted);
  font-size: 12px;
}

.notification-empty {
  color: var(--color-muted);
  font-style: italic;
  padding: 12px 0;
}

.notification-preferences {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.notification-preferences-heading {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.notification-categories {
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
}

.notification-preferences-section {
  margin-bottom: 24px;
}

.notification-preferences-title {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.notification-preferences-caption {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--color-muted);
}

.notification-category-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
  display: grid;
  gap: 10px;
}

.notification-category-block:last-of-type {
  border-bottom: none;
}

.notification-category-name {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.recent-notifications-title {
  margin: 20px 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.notification-empty-state {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.notification-empty-state.hidden {
  display: none;
}

.notification-empty-icon {
  font-size: 48px;
  line-height: 1;
  opacity: 0.8;
}

.notification-empty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.notification-empty-text {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.4;
}

.filter-bar,
.voucher-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-tabs {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  /* Outer scroller: inner wrapper provides the width */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
  margin-top: 8px;
  padding: 12px 16px;
  padding-bottom: 8px; /* room for scrollbar */
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* show scrollbar (Windows/Firefox) */
  scrollbar-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.1);
  scrollbar-gutter: stable;
  -ms-overflow-style: auto;
  position: sticky;
  top: 64px;
  z-index: 9;
  box-sizing: border-box;
  width: 100%;
}

.category-tabs-inner {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: max-content; /* forces overflow when needed */
}

.category-scroll-next {
  display: none !important;
}

.category-tabs.is-dragging {
  cursor: grabbing;
}

.category-tabs::-webkit-scrollbar {
  height: 10px; /* show horizontal scrollbar */
  display: block;
}

.category-tabs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.category-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.category-chip {
  border: none;
  background: transparent;
  color: var(--color-text-3);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
  flex-shrink: 0;
  touch-action: manipulation;
}

.category-chip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-text);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.category-chip.category-active {
  color: var(--color-text);
  font-weight: 700;
}

.category-chip.category-active::after {
  transform: scaleX(1);
}

.category-chip:hover {
  color: var(--color-text);
}

.hero-banner {
  margin: 16px;
  margin-top: 8px;
  border-radius: 12px;
  background: #111827;
  min-height: 280px;
  max-height: 300px;
  height: 300px;
  display: block;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  width: calc(100% - 32px);
  box-sizing: border-box;
}

.banner-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
}

.banner-image[src=""],
.banner-image:not([src]) {
  display: none;
}

.banner-placeholder {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.banner-placeholder.hidden {
  display: none;
}

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

.banner-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.banner-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.banner-indicator.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

.pool-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #e0e0e0; /* Darker grey background */
  border: 1px solid var(--color-divider); /* Full border around the filters */
  border-radius: 8px;
  margin: 16px;
}

body.theme-dark .pool-filters {
  background: #2a2a2a; /* Darker grey for dark mode */
}

.filter-search {
  position: relative;
  width: 100%;
}

.filter-dropdowns-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.search-icon-small {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6B6B;
}

.search-icon-small svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.theme-dark .search-icon,
body.theme-dark .search-icon-small {
  color: #9a9a9a;
}

/* Same as search bar.png: light gray, rounded, subtle border & shadow */
.filter-search-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px 8px 32px;
  border: 1px solid #B8B8B8;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-dark .filter-search-input {
  background: #3a3a3a;
  border-color: #505050;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.filter-search-input::placeholder {
  color: #6B6B6B;
}

body.theme-dark .filter-search-input::placeholder {
  color: #9a9a9a;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--color-primary);
}

.filter-dropdowns-row .filter-dropdown {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff; /* White dropdown inside grey block */
  color: var(--color-text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.theme-dark .filter-dropdowns-row .filter-dropdown {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f5f5f5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.theme-dark .filter-dropdowns-row .filter-dropdown option {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  font-family: inherit;
}

.filter-dropdowns-row .filter-dropdown:focus {
  outline: none;
  background-color: var(--color-surface);
  border-color: var(--color-text);
}

@media (max-width: 1100px) {
  .filter-dropdowns-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .filter-dropdowns-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .filter-dropdowns-row {
    grid-template-columns: 1fr;
  }
}

.chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chip-active,
.chip.active {
  background: rgba(74, 104, 255, 0.1);
  border-color: rgba(74, 104, 255, 0.4);
  color: var(--link-color);
}

.pool-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

@media (max-width: 1400px) {
  .pool-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .pool-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pool-list {
    grid-template-columns: 1fr;
  }
}

.pool-list .card {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}


.pool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.pool-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Tier badge: icon (circle with % fill) + text, rounded rect, light bg tint, thin border */
.pool-tier-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tier-circle-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Main 100% - Solid filled circle */
.tier-circle-indicator[data-percentage="100"] {
  background: currentColor;
  border-color: transparent;
}

.tier-circle-indicator[data-percentage="100"]::before {
  display: none;
}

/* Mini 50% - Left half filled */
.tier-circle-indicator[data-percentage="50"] {
  background: transparent;
}

.tier-circle-indicator[data-percentage="50"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background: currentColor;
  border-radius: 50% 0 0 50%;
}

/* Supermini 25% - Top-left quarter */
.tier-circle-indicator[data-percentage="25"] {
  background: transparent;
}

.tier-circle-indicator[data-percentage="25"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 50%;
  background: currentColor;
  border-radius: 100% 0 0 0;
}

/* Micro 12.5% - Top-left eighth (45° sector) */
.tier-circle-indicator[data-percentage="12.5"] {
  background: transparent;
}

.tier-circle-indicator[data-percentage="12.5"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg at 50% 50%, currentColor 45deg, transparent 45deg);
}

.tier-badge-main {
  border-color: var(--tier-main);
  color: var(--tier-main);
  background: rgba(0, 0, 0, 0.06);
}

.tier-badge-mini {
  border-color: var(--tier-mini);
  color: var(--tier-mini);
  background: rgba(252, 186, 63, 0.15);
}

.tier-badge-supermini {
  border-color: var(--tier-supermini);
  color: var(--tier-supermini);
  background: rgba(128, 221, 109, 0.15);
}

.tier-badge-micro {
  border-color: var(--tier-micro);
  color: var(--tier-micro);
  background: rgba(252, 186, 63, 0.12);
}

body.theme-dark .tier-badge-main {
  border-color: var(--tier-main);
  color: var(--tier-main);
  background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .tier-badge-mini,
body.theme-dark .tier-badge-micro {
  background: rgba(252, 186, 63, 0.2);
}

body.theme-dark .tier-badge-supermini {
  background: rgba(128, 221, 109, 0.2);
}

.pool-product-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.pool-product-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.pool-product-image .pool-img,
.pool-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-product-info {
  flex: 1;
}

.pool-product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pool-product-value {
  font-size: 12px;
  color: var(--color-text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pool-blockchain-info {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

.pool-blockchain-info .hash-info {
  margin: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pool-blockchain-info .hash-info strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: 11px;
}

.pool-blockchain-info .hash-code {
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.pool-progress-section {
  margin: 12px 0;
}

.pool-progress-text {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.pool-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--color-divider);
  overflow: hidden;
}

.pool-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.pool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  margin-top: auto;
  gap: 12px;
}

.pool-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.pool-action-button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pool-action-button.join-red {
  background: var(--cta-join-red);
  color: #FFFFFF;
}

.pool-action-button.join-orange {
  background: var(--cta-join-orange);
  color: #FFFFFF;
}

.pool-action-button.closed {
  background: var(--status-locked-bg);
  color: var(--color-text-3);
  cursor: not-allowed;
}

/* New Pool Card Layout Styles */
.pool-card-header-section {
  padding: 5px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(to bottom, rgba(128, 221, 109, 0.15), rgba(255, 255, 255, 0));
}

.pool-card-header-open {
  background: linear-gradient(to bottom, rgba(128, 221, 109, 0.15), rgba(255, 255, 255, 0)); /* Light green gradient */
}

.pool-card-header-filling-red {
  background: linear-gradient(to bottom, rgba(255, 70, 70, 0.15), rgba(255, 255, 255, 0)); /* Light red gradient */
}

.pool-card-header-filling-orange {
  background: linear-gradient(to bottom, rgba(252, 186, 63, 0.15), rgba(255, 255, 255, 0)); /* Light orange gradient */
}

.pool-card-header-closed {
  background: linear-gradient(to bottom, rgba(224, 224, 224, 0.3), rgba(255, 255, 255, 0)); /* Light grey gradient */
}

.pool-card-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pool-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.pool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pool-card-header-text {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text);
}

.pool-card-header-text strong {
  font-weight: 700;
}

.pool-card-header-right {
  display: flex;
  align-items: center;
}

.pool-card-winners-info {
  font-size: 9px;
  font-weight: 400;
  color: var(--color-text-2);
}

.pool-card-winners-info strong {
  font-weight: 700;
}

.pool-product-image-container {
  padding: 0 12px;
  margin: 3px 0;
  display: flex;
  justify-content: center;
}

.pool-product-image-large {
  width: 50%;
  aspect-ratio: 1 / 1;
  background: #F5F5F5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pool-product-image-large .pool-img,
.pool-product-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-product-name-large {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  margin: 3px 12px 3px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pool-product-name-large strong {
  font-weight: 700;
}

.pool-price-info-section {
  padding: 0 12px;
  margin-bottom: 4px;
}

.pool-price-value-line,
.pool-entry-price-line {
  font-size: 10px;
  color: var(--color-text);
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pool-price-value-line strong,
.pool-entry-price-line strong {
  font-weight: 700;
}

.price-icon {
  font-size: 12px;
  opacity: 0.7;
  width: auto;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.pool-status-progress-section {
  padding: 0 12px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pool-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  flex-wrap: nowrap;
  min-width: 0;
}

.pool-status-text-card {
  font-size: 10px;
  font-weight: 600;
}

.pool-slots-filled-text {
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.pool-progress-bar {
  height: 3px;
  border-radius: 999px;
  background: var(--color-divider);
  overflow: hidden;
  width: 100%;
}

.pool-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.pool-action-button {
  padding: 5px 12px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.pool-action-button.join-red {
  background: var(--cta-join-red);
  color: #FFFFFF;
}

.pool-action-button.join-orange {
  background: var(--cta-join-orange);
  color: #FFFFFF;
}

.pool-action-button.join-green {
  background: var(--color-success);
  color: #FFFFFF;
}

.pool-action-button.closed {
  background: var(--status-locked-bg);
  color: var(--color-text-3);
  cursor: not-allowed;
}

.pool-blockchain-info-bottom {
  padding: 5px 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg);
  margin-top: auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.pool-hash-label {
  font-size: 9px;
  color: var(--color-text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.pool-hash-code {
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  font-size: 9px;
  font-weight: 400;
  color: #9CA3AF;
  letter-spacing: 0.05em;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-muted);
}

.pool-actions {
  display: grid;
  gap: 12px;
}

.completed-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(74, 104, 255, 0.05);
}

.winning-slot {
  font-size: 14px;
  color: var(--link-color);
}

.primary-button,
.secondary-button,
.text-danger {
  border: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: var(--color-primary);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--color-primary-light);
}

.secondary-button {
  background: rgba(74, 104, 255, 0.1);
  color: var(--link-color);
}

.text-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-red);
}

.purchase-form,
.profile-form,
.auth-form,
.support-form {
  display: grid;
  gap: 16px;
}

fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  gap: 12px;
}

legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 14px;
}

.profile-notification-panel {
  background: var(--color-surface);
  border: 1px dashed rgba(74, 104, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}

.profile-notification-panel.hidden {
  display: none;
}

.wallet-history-list {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.wallet-history-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
}

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

.wallet-history-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.wallet-history-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wallet-history-desc {
  font-weight: 500;
  color: var(--color-text);
}

.wallet-history-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.wallet-history-amount {
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.wallet-history-credit {
  color: #059669;
}

.wallet-history-debit {
  color: var(--color-text);
}

.wallet-history-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
}

label {
  font-size: 13px;
  color: var(--color-muted);
}

input,
textarea,
select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}

input[type="file"] {
  padding: 6px;
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.checkout-summary .label {
  color: var(--color-muted);
}

.alert {
  padding: 14px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: var(--color-accent);
  border-radius: var(--radius-md);
}

.hidden {
  display: none !important;
}

.participation-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.active,
.status-pill.open {
  background: var(--status-open-bg);
  color: var(--status-open-text);
}

.status-pill.filling {
  background: var(--status-filling-bg);
  color: var(--status-filling-text);
}

.status-pill.completed,
.status-pill.locked {
  background: var(--status-locked-bg);
  color: var(--status-locked-text);
}

.status-pill.won {
  background: rgba(74, 104, 255, 0.15);
  color: var(--link-color);
}

.draw-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

/* New Draws Page Styles */
.draws-filters {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
  margin-top: 8px;
}

.draw-filter-dropdown {
  flex: 1;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #F1F3F5;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  box-sizing: border-box;
}

body.theme-dark .draw-filter-dropdown {
  background: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f5f5f5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.draws-section {
  margin-bottom: 32px;
  padding: 0 16px;
}

.draws-section:first-of-type {
  margin-top: 8px;
}

.draws-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
}

.draws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .draws-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .draws-grid {
    grid-template-columns: 1fr;
  }
}

.draw-card-new {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.draw-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.draw-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Draw tier badge – same as pool tier: icon (circle % fill) + text, rounded rect, light bg, border */
.draw-tier-badge {
  padding: 5px 10px 5px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.draw-tier-badge .tier-circle-indicator {
  width: 12px;
  height: 12px;
}

.draw-card-content {
  display: flex;
  gap: 12px;
  flex: 1;
}

.draw-product-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.draw-product-image .draw-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.draw-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draw-product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.draw-product-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-3);
}

.draw-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.draw-participants {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  font-weight: 500;
}

.participants-avatars {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: relative;
}

.participant-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--link-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  position: relative;
  overflow: hidden;
}

.participant-avatar .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.participant-avatar:first-child {
  margin-left: 0;
}

.draw-time-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 4px;
}

.draw-time-info.automatic .time-text {
  color: var(--link-color);
  font-weight: 600;
}

.draw-time-info.scheduled .time-text,
.draw-time-info.completed .time-text {
  color: var(--color-text-3);
  font-weight: 400;
}

.time-icon {
  font-size: 14px;
}

.time-text {
  font-weight: 600;
}

.draw-winning-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 4px;
  color: var(--color-text);
}

.draw-winning-info .winning-label {
  color: var(--color-text-3);
  font-weight: 400;
}

.draw-winning-info .winning-slot {
  color: var(--link-color);
  font-weight: 700;
  font-size: 14px;
}

.draw-view-button {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.draw-card {
  background: var(--color-surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.live-draw-card {
  gap: 12px;
}

.live-draw-card-header {
  align-items: flex-start;
}

.live-pill {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  align-self: flex-start;
}

.live-draw-stage {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.25), rgba(15, 23, 42, 0.9));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: grid;
  place-items: center;
  padding: 12px;
}

.live-draw-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.number-stream {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.live-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + var(--origin-x, 0px)), calc(-50% + var(--origin-y, 0px)));
  padding: 8px 14px;
  border-radius: 999px;
  background: 
    linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 14px;
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  font-weight: 700;
  box-shadow: 
    0 4px 15px rgba(37, 99, 235, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 11;
}

.live-number.entering {
  animation: floatIntoVault 1.4s cubic-bezier(0.37, 0, 0.63, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes floatIntoVault {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--origin-x, 0px)), calc(-50% + var(--origin-y, 0px))) scale(0.85);
    z-index: 11;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
    z-index: 11;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    z-index: 1;
  }
}

.vault {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: 
    repeating-linear-gradient(
      45deg,
      rgba(140, 150, 170, 0.1) 0px,
      rgba(140, 150, 170, 0.1) 2px,
      rgba(80, 90, 110, 0.15) 2px,
      rgba(80, 90, 110, 0.15) 4px
    ),
    radial-gradient(circle at 35% 25%, rgba(180, 190, 210, 0.4), transparent 45%),
    radial-gradient(circle at 65% 75%, rgba(100, 110, 130, 0.3), transparent 50%),
    linear-gradient(135deg, 
      rgba(70, 80, 100, 0.98) 0%,
      rgba(50, 60, 80, 0.98) 50%,
      rgba(60, 70, 90, 0.98) 100%
    );
  border: 4px solid rgba(120, 130, 150, 0.8);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.7),
    inset 0 3px 15px rgba(255, 255, 255, 0.15),
    inset 0 -15px 40px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(0, 0, 0, 0.3);
  overflow: visible;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
  z-index: 5;
}

.vault-halo {
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: 
    radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.2) 40%, transparent 70%);
  filter: blur(15px);
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: haloPulse 3s ease-in-out infinite;
  z-index: 0;
}

.vault-bolts {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
}

.vault-bolt {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(200, 210, 230, 0.9), rgba(120, 130, 150, 0.8)),
    radial-gradient(circle, rgba(100, 110, 130, 0.9), rgba(60, 70, 90, 0.95));
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.5),
    inset 0 0 1px rgba(150, 160, 180, 0.8);
}

.vault-bolt:nth-child(1) { top: 5px; left: 50%; transform: translateX(-50%); }
.vault-bolt:nth-child(2) { top: 50%; right: 5px; transform: translateY(-50%); }
.vault-bolt:nth-child(3) { bottom: 5px; left: 50%; transform: translateX(-50%); }
.vault-bolt:nth-child(4) { top: 50%; left: 5px; transform: translateY(-50%); }
.vault-bolt:nth-child(5) { top: 25%; right: 25%; }
.vault-bolt:nth-child(6) { bottom: 25%; right: 25%; }
.vault-bolt:nth-child(7) { bottom: 25%; left: 25%; }
.vault-bolt:nth-child(8) { top: 25%; left: 25%; }

.vault-core {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: 
    repeating-linear-gradient(
      30deg,
      rgba(60, 70, 90, 0.3) 0px,
      rgba(60, 70, 90, 0.3) 1px,
      rgba(40, 50, 70, 0.5) 1px,
      rgba(40, 50, 70, 0.5) 2px
    ),
    radial-gradient(circle at 40% 40%, rgba(90, 100, 120, 0.6), rgba(30, 40, 55, 0.95) 70%),
    radial-gradient(circle at 60% 60%, rgba(70, 80, 100, 0.5), transparent 75%);
  border: 3px solid rgba(100, 110, 130, 0.6);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 
    inset 0 5px 25px rgba(0, 0, 0, 0.9),
    inset 0 -5px 20px rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(80, 90, 110, 0.8),
    inset 0 0 0 1px rgba(150, 160, 180, 0.2);
  z-index: 2;
}

.vault-core::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 65%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.4), transparent 70%);
  pointer-events: none;
}

.vault-dial {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 35% 35%, rgba(180, 190, 210, 0.9), rgba(100, 110, 130, 0.95)),
    radial-gradient(circle, rgba(120, 130, 150, 0.95), rgba(70, 80, 100, 0.98));
  border: 3px solid rgba(50, 60, 80, 0.9);
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.4),
    inset 0 -4px 12px rgba(0, 0, 0, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(200, 210, 230, 0.3);
  display: grid;
  place-items: center;
  z-index: 4;
}

.vault-dial-markers {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
}

.dial-marker {
  position: absolute;
  width: 2px;
  height: 8px;
  background: rgba(40, 50, 70, 0.9);
  border-radius: 1px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.dial-marker:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.dial-marker:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); }
.dial-marker:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.dial-marker:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); }

.vault-dial-center {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(200, 210, 230, 0.9), rgba(100, 110, 130, 0.8));
  border: 2px solid rgba(50, 60, 80, 0.9);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.vault-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid rgba(59, 130, 246, 1);
  border-right: 4px solid rgba(59, 130, 246, 0.8);
  border-bottom: 4px solid rgba(148, 163, 184, 0.5);
  border-left: 4px solid rgba(148, 163, 184, 0.7);
  background: 
    radial-gradient(circle, rgba(30, 40, 55, 0.8) 38%, transparent 42%),
    radial-gradient(circle, transparent 48%, rgba(59, 130, 246, 0.15) 49%, rgba(59, 130, 246, 0.15) 51%, transparent 52%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.5),
    inset 0 0 12px rgba(59, 130, 246, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 6;
  opacity: 0;
  position: relative;
}

.vault-winning {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: 
    linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(22, 163, 74, 0.95)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  font-weight: 900;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 
    0 10px 30px rgba(34, 197, 94, 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.3),
    inset 0 3px 8px rgba(255, 255, 255, 0.5),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.4);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(255, 255, 255, 0.4);
  z-index: 10;
}

.vault-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  background: 
    repeating-linear-gradient(
      45deg,
      rgba(120, 130, 150, 0.2) 0px,
      rgba(120, 130, 150, 0.2) 3px,
      rgba(80, 90, 110, 0.3) 3px,
      rgba(80, 90, 110, 0.3) 6px
    ),
    radial-gradient(circle at 50% 50%, rgba(160, 170, 190, 0.5), rgba(100, 110, 130, 0.7)),
    linear-gradient(135deg, 
      rgba(140, 150, 170, 0.8) 0%,
      rgba(100, 110, 130, 0.85) 50%,
      rgba(120, 130, 150, 0.8) 100%
    );
  border: 3px solid rgba(70, 80, 100, 0.9);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, opacity 0.3s ease;
  z-index: 4;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.6),
    inset -6px 0 15px rgba(0, 0, 0, 0.5),
    inset 0 3px 10px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(150, 160, 180, 0.3);
  pointer-events: none;
}

.vault-door-bolt {
  position: absolute;
  width: 6px;
  height: 20px;
  background: 
    linear-gradient(to bottom,
      rgba(180, 190, 210, 0.9) 0%,
      rgba(120, 130, 150, 0.8) 50%,
      rgba(80, 90, 110, 0.9) 100%
    );
  border: 1px solid rgba(50, 60, 80, 0.8);
  border-radius: 3px;
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.4),
    inset 0 -1px 3px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vault-door-left .vault-door-bolt:nth-child(1) {
  top: 35%;
  right: 15px;
}

.vault-door-left .vault-door-bolt:nth-child(2) {
  bottom: 35%;
  right: 15px;
}

.vault-door-right .vault-door-bolt:nth-child(1) {
  top: 35%;
  left: 15px;
}

.vault-door-right .vault-door-bolt:nth-child(2) {
  bottom: 35%;
  left: 15px;
}

.vault-door-left {
  left: 0;
  transform: translateX(-115%);
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
  border-right: 4px solid rgba(50, 60, 80, 0.9);
  box-shadow: 
    inset -6px 0 20px rgba(0, 0, 0, 0.7),
    inset 0 0 25px rgba(0, 0, 0, 0.5),
    inset 0 4px 12px rgba(255, 255, 255, 0.08),
    3px 0 10px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(150, 160, 180, 0.2);
}

.vault-door-right {
  right: 0;
  transform: translateX(115%);
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  border-left: 4px solid rgba(50, 60, 80, 0.9);
  box-shadow: 
    inset 6px 0 20px rgba(0, 0, 0, 0.7),
    inset 0 0 25px rgba(0, 0, 0, 0.5),
    inset 0 4px 12px rgba(255, 255, 255, 0.08),
    -3px 0 10px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(150, 160, 180, 0.2);
}

.vault.is-loading .vault-halo {
  opacity: 1;
  transform: scale(1.1);
  animation: haloPulse 2s ease-in-out infinite;
}

.vault.is-closed .vault-door-left {
  transform: translateX(0);
}

.vault.is-closed .vault-door-right {
  transform: translateX(0);
}

.vault.is-closed .vault-door {
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.7),
    inset -6px 0 20px rgba(0, 0, 0, 0.6),
    inset 6px 0 20px rgba(0, 0, 0, 0.6),
    inset 0 4px 12px rgba(255, 255, 255, 0.05),
    0 0 0 2px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(50, 60, 80, 0.5);
}

.vault.is-closed .vault-door-bolt {
  opacity: 1;
}

.vault.is-spinning {
  filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.5));
  animation: vaultWholeSpin 2s linear infinite;
}

.vault.is-spinning .vault-halo {
  opacity: 0.9;
  animation: haloPulse 1.5s ease-in-out infinite;
}

.vault.is-spinning .vault-spinner {
  animation: vaultSpin 0.8s linear infinite;
  opacity: 1 !important;
  box-shadow: 
    0 0 25px rgba(59, 130, 246, 0.7),
    inset 0 0 18px rgba(59, 130, 246, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 7;
  display: block;
}

.vault.is-spinning .vault-dial {
  animation: dialRotate 2s linear infinite;
  opacity: 0.6;
}

.vault.is-spinning .vault-dial-markers {
  animation: dialRotate 2s linear infinite reverse;
}

.vault:not(.is-spinning) .vault-spinner {
  opacity: 0;
}

.vault.is-revealing {
  animation: vaultReveal 1s ease-out;
  animation-fill-mode: forwards;
}

.vault:not(.is-spinning):not(.is-revealing) {
  animation: none !important;
  transform: rotate(0deg) !important;
}

.vault.is-revealing {
  animation: vaultReveal 1s ease-out;
  animation-fill-mode: forwards;
}

.vault.is-revealing .vault-door-left {
  transform: translateX(-115%);
  opacity: 0.4;
}

.vault.is-revealing .vault-door-right {
  transform: translateX(115%);
  opacity: 0.4;
}

.vault.is-revealing .vault-door-bolt {
  opacity: 0;
}

.vault.is-revealing .vault-winning {
  animation: popWinner 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.vault.is-revealing .vault-halo {
  opacity: 1;
  animation: haloExplode 1s ease-out forwards;
}

@keyframes vaultRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dialRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes haloExplode {
  0% {
    opacity: 0.7;
    transform: scale(1);
    filter: blur(12px);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
    filter: blur(16px);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.2);
    filter: blur(14px);
  }
}

@keyframes vaultSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes vaultWholeSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes vaultReveal {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes popWinner {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(0) rotate(-10deg);
    filter: blur(4px);
  }
  30% {
    opacity: 0.8;
    transform: scale(0.9) translateY(-10px) rotate(5deg);
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    transform: scale(1.2) translateY(-20px) rotate(-2deg);
    filter: blur(0px);
    box-shadow: 
      0 12px 35px rgba(34, 197, 94, 0.7),
      0 0 0 3px rgba(255, 255, 255, 0.3),
      inset 0 2px 5px rgba(255, 255, 255, 0.4);
  }
  80% {
    transform: scale(1.1) translateY(-18px) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(-15px) rotate(0deg);
    filter: blur(0px);
    box-shadow: 
      0 10px 30px rgba(34, 197, 94, 0.6),
      0 0 0 2px rgba(255, 255, 255, 0.25),
      inset 0 2px 5px rgba(255, 255, 255, 0.35);
  }
}

.live-draw-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-draw-actions {
  display: flex;
  gap: 10px;
}

.live-draw-actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.draw-countdown {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(74, 104, 255, 0.1), rgba(15, 23, 42, 0.45));
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  --progress: 0%;
}

.dial-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.dial-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-primary) var(--progress),
    rgba(255, 255, 255, 0.1) var(--progress)
  );
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.25));
  transition: background 0.4s ease;
}

.dial-core {
  position: absolute;
  inset: 12px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 4px;
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dial-time {
  font-size: 22px;
  font-weight: 700;
}

.dial-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
}

.draw-countdown.is-complete .dial-core {
  animation: rngPulse 1.2s ease-out infinite;
}

@keyframes rngPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  80% {
    box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.countdown-meta {
  color: #f8fafc;
  flex: 1;
}

.countdown-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.countdown-sub {
  margin: 4px 0;
  font-size: 14px;
  color: rgba(248, 250, 252, 0.85);
}

.draw-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-muted);
}

.voucher-summary {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(74, 104, 255, 0.9), rgba(74, 104, 255, 0.85));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.voucher-list {
  display: grid;
  gap: 12px;
}

.voucher-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.voucher-card.is-redeeming {
  animation: voucherFlip 0.7s forwards;
}

@keyframes voucherFlip {
  0% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
  60% {
    transform: rotateY(90deg) scale(1.02);
    opacity: 0.8;
  }
  100% {
    transform: rotateY(180deg) scale(0.98);
    opacity: 0;
  }
}

.voucher-card .code {
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(74, 104, 255, 0.1);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.voucher-card .hash-info {
  margin-top: 8px;
  font-size: 13px;
}

.voucher-card .hash-info strong {
  color: var(--color-text);
  font-weight: 600;
}

.voucher-card .hash-code {
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  display: inline-block;
  margin-left: 6px;
  letter-spacing: 0.05em;
}

.status-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  background: rgba(74, 104, 255, 0.05);
  display: grid;
  gap: 6px;
}

#avatar-fieldset {
  display: grid;
  gap: 12px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.avatar-option {
  border: 1px solid rgba(74, 104, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 6px;
  background: rgba(74, 104, 255, 0.05);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.avatar-option span {
  font-size: 28px;
}

.avatar-option-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.avatar-option.is-selected {
  border-color: var(--link-color);
  box-shadow: 0 12px 24px rgba(74, 104, 255, 0.2);
  transform: translateY(-2px);
}

.avatar-option.locked {
  opacity: 0.6;
  cursor: not-allowed;
  animation: avatarBounce 1.6s ease-in-out infinite;
}

.avatar-option.locked::after {
  content: "Unlock at Tier 2";
  position: absolute;
  inset: 6px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-size: 11px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px;
}

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

.avatar-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(74, 104, 255, 0.1);
}

.avatar-bubble {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #f8fafc, rgba(74, 104, 255, 0.2));
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-name {
  margin: 0;
  font-weight: 700;
}

.status-card.pending {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
}

.status-card.action {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.4);
}

.status-label {
  font-weight: 700;
  margin: 0;
}

.badge {
  align-self: start;
  padding: 4px 10px;
  background: var(--color-green);
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.auth-card ol {
  margin: 0 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.faq-container {
  max-height: 280px;
  overflow-y: auto;
}

.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--link-color);
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--link-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 8px 0 0;
}

.faq-answer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  font-size: 14px;
  animation: fade-in 0.3s ease;
}

#password-toast {
  position: sticky;
  bottom: 16px;
  background: rgba(74, 104, 255, 0.95);
  color: #fff;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Secure Gateway Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  /* No animation - appears instantly */
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-overlay:not(.hidden) {
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Forgot password & set password modals must appear above login page */
#password-recovery-modal,
#set-password-modal {
  z-index: 2100;
}

.modal-dialog {
  background: var(--color-surface);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  /* No animation or transition - modal appears instantly */
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.modal-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-divider);
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 24px;
  line-height: 1;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.modal-body {
  padding: 20px;
}

.modal-info-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg);
  padding: 16px;
  border-radius: 8px;
}

.info-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  flex-shrink: 0;
}

.purchase-summary {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: 8px;
}

/* Confirm Purchase modal – screenshot-style content */
.purchase-confirm-content {
  padding: 0;
}

.purchase-confirm-line {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.purchase-confirm-line:last-child {
  margin-bottom: 0;
}

.purchase-confirm-line strong {
  font-weight: 700;
  color: var(--color-text);
}

.purchase-confirm-total {
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid #FF9500;
  display: inline-block;
}

.purchase-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.purchase-summary-row:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
}

.purchase-label {
  font-size: 14px;
  color: var(--color-text-2);
  font-weight: 500;
}

.purchase-value {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 600;
}

.purchase-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.modal-info-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.modal-info-message p strong {
  font-weight: 600;
  color: var(--color-text);
}

.modal-footer {
  padding: 16px 20px 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--color-divider);
}

.modal-button {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.modal-button.cancel-button {
  background: var(--color-surface);
  color: var(--color-text-2);
  border: 1px solid var(--color-divider);
}

.modal-button.cancel-button:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.modal-button.continue-button {
  background: #FF9500;
  color: #ffffff;
}

.modal-button.continue-button:hover {
  background: #E68900;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.modal-button.continue-button:active {
  transform: translateY(0);
}

/* Dark mode adjustments for modal */
body.theme-dark .modal-info-message {
  background: rgba(255, 255, 255, 0.05);
}

body.theme-dark .info-icon {
  background: #ffffff;
  color: #000000;
}

/* Create Account Modal & Auth modals (recovery, set password) */
.create-account-dialog,
.password-recovery-dialog,
.set-password-dialog {
  max-width: 480px;
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-modal-form .form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.auth-modal-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-modal-form .input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  font-size: 18px;
  color: var(--color-text-3);
}

.auth-modal-form input[type="email"],
.auth-modal-form input[type="password"] {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  box-sizing: border-box;
}

.auth-modal-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.auth-modal-form .password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-3);
  padding: 4px;
}

.recovery-intro,
.recovery-success-text {
  font-size: 14px;
  color: var(--color-text-2);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.recovery-error {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.4;
}

.recovery-error.hidden {
  display: none;
}

.recovery-success {
  margin-top: 8px;
}

.recovery-success-text {
  margin-bottom: 16px;
}

.recovery-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recovery-back-btn {
  margin-top: 4px;
}

.full-width {
  width: 100%;
}

.modal-header {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-3);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.create-account-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.create-account-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-account-form .form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.create-account-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.create-account-form .input-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: var(--color-text-3);
  z-index: 1;
}

.create-account-form input[type="text"],
.create-account-form input[type="email"],
.create-account-form input[type="tel"],
.create-account-form input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.create-account-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(252, 186, 63, 0.15);
}

.create-account-form .password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-3);
  padding: 4px;
  z-index: 2;
}

.create-account-form .password-toggle:hover {
  color: var(--color-text);
}

.create-account-form .checkbox-group {
  margin-top: -4px;
}

.create-account-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.5;
}

.create-account-form .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.create-account-form .terms-link {
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}

.create-account-form .terms-link:hover {
  text-decoration: none;
}

.recaptcha-group {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.recaptcha-group .g-recaptcha {
  transform: scale(0.9);
  transform-origin: 0 0;
}

.create-account-submit-button {
  width: 100%;
  padding: 14px;
  background: #FF9500;
  color: #000000;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.create-account-submit-button:hover {
  background: #E68900;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.create-account-submit-button:active {
  transform: translateY(0);
}

.create-account-submit-button:disabled {
  background: #E4E7EC;
  color: #98A2B3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Dark mode adjustments for create account form */
body.theme-dark .create-account-form input[type="text"],
body.theme-dark .create-account-form input[type="email"],
body.theme-dark .create-account-form input[type="tel"],
body.theme-dark .create-account-form input[type="password"] {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

body.theme-dark .create-account-form input:focus {
  border-color: var(--color-primary);
}

body.theme-dark .auth-modal-form input[type="email"],
body.theme-dark .auth-modal-form input[type="password"] {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

body.theme-dark .auth-modal-form input:focus {
  border-color: var(--color-primary);
}

/* Payment Gateway */
#payment-gateway {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 2000;
  overflow-y: auto;
}

#payment-gateway.hidden {
  display: none !important;
}

#payment-gateway:not(.hidden) {
  display: block !important;
}

.payment-gateway-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: 100vh;
}

.payment-header {
  margin-bottom: 32px;
}

.payment-back-btn {
  background: none;
  border: none;
  color: var(--link-color);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  font-family: inherit;
}

.payment-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px 0;
}

.payment-security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-2);
  font-size: 14px;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--link-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.payment-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--link-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 8px;
}

.payment-submit-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 104, 255, 0.3);
}

.payment-submit-btn:active {
  transform: translateY(0);
}

.payment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn-loader {
  display: none;
}

/* Success Modal */
.success-modal-dialog {
  background: var(--color-surface);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modal-slide-in 0.3s ease;
}

.success-modal-content {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.success-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.success-checkmark {
  width: 50px;
  height: 50px;
}

.success-checkmark-circle {
  stroke: #ffffff;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(74, 104, 255, 0.8) 0%, rgba(74, 104, 255, 0) 70%);
  border-radius: 50%;
  animation: sunburst-pulse 1s ease-out;
  z-index: 1;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes sunburst-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

.success-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.success-continue-btn {
  width: 100%;
  padding: 16px;
  background: #FF9500;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.success-continue-btn:hover {
  background: #E68900;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.success-continue-btn:active {
  transform: translateY(0);
}

/* Dark mode adjustments */
body.theme-dark .success-icon-circle {
  background: #1f2937;
}

body.theme-dark .success-checkmark-circle,
body.theme-dark .success-checkmark-check {
  stroke: #ffffff;
}

/* Win Modal */
.win-modal-dialog {
  background: var(--color-surface);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: visible;
  animation: modal-slide-in 0.3s ease;
  position: relative;
  z-index: 10;
}

/* Win Modal – gold coin fountain video */
.win-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.win-fountain-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.win-confetti-hidden {
  display: none !important;
  visibility: hidden !important;
}

.win-video-hidden {
  display: none !important;
}

/* Win Modal – gold coins from fountain (CSS fallback, hidden when video used) */
.win-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Confetti pieces: base positioning shared across tiers */
.win-confetti-container .confetti-piece {
  position: absolute;
}

/* Default confetti pieces (coin style - ONLY when modal is Prize Draw; never applied for Mini/Super Mini)
   Target the win modal by its id (#win-modal) since the outer element does not use a .win-modal class. */
#win-modal:not(.win-modal-mini) .win-confetti-container .confetti-piece {
  width: 70px;
  height: 70px;
  left: 50%;
  bottom: 15%;
  margin-left: -35px;
  margin-bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF8DC, #E6C200 25%, #B8860B 60%, #8B6914 100%);
  box-shadow: inset 2px 2px 6px rgba(255, 255, 255, 0.6), inset -3px -3px 8px rgba(0, 0, 0, 0.25), 2px 4px 10px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(184, 134, 11, 0.6);
  animation: coin-fountain 5s ease-in-out infinite;
  --bx: 0vmin;
}

/* Mini/Super Mini: NO coins – confetti strips only, explode from center */
#win-modal.win-modal-mini .win-confetti-container .confetti-piece {
  position: absolute !important;
  width: 10px !important;
  height: 18px !important;
  min-width: 10px !important;
  min-height: 18px !important;
  border-radius: 2px !important;
  background: var(--balloon-color, var(--color-primary)) !important;
  box-shadow: none !important;
  border: none !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  margin-left: -5px !important;
  margin-top: -9px !important;
  margin-bottom: 0 !important;
  animation-name: confetti-burst-explode !important;
  animation-duration: 1.2s !important;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: forwards !important;
}

.confetti-piece:nth-child(1)  { --bx: 80vmin;  --by: 0vmin;    --balloon-color: var(--color-primary); animation-delay: 0s;    animation-duration: 6s; }
.confetti-piece:nth-child(2)  { --bx: 76vmin;  --by: 25vmin;  --balloon-color: #FF4646; animation-delay: 0.2s; animation-duration: 6.2s; }
.confetti-piece:nth-child(3)  { --bx: 65vmin;  --by: 47vmin;  --balloon-color: #80DD6D; animation-delay: 0.4s; animation-duration: 5.8s; }
.confetti-piece:nth-child(4)  { --bx: 47vmin;  --by: 65vmin;  --balloon-color: #FCBA3F; animation-delay: 0.1s; animation-duration: 6.4s; }
.confetti-piece:nth-child(5)  { --bx: 25vmin;  --by: 76vmin;  --balloon-color: #4A68FF; animation-delay: 0.3s; animation-duration: 6.1s; }
.confetti-piece:nth-child(6)  { --bx: 0vmin;   --by: 80vmin;  --balloon-color: var(--color-primary); animation-delay: 0.5s; animation-duration: 6.3s; }
.confetti-piece:nth-child(7)  { --bx: -25vmin; --by: 76vmin;  --balloon-color: #FF4646; animation-delay: 0.2s; animation-duration: 5.9s; }
.confetti-piece:nth-child(8)  { --bx: -47vmin; --by: 65vmin;  --balloon-color: #80DD6D; animation-delay: 0.4s; animation-duration: 6.2s; }
.confetti-piece:nth-child(9)  { --bx: -65vmin; --by: 47vmin;  --balloon-color: #FCBA3F; animation-delay: 0.1s; animation-duration: 6s; }
.confetti-piece:nth-child(10) { --bx: -76vmin; --by: 25vmin;  --balloon-color: #4A68FF; animation-delay: 0.6s; animation-duration: 6.1s; }
.confetti-piece:nth-child(11) { --bx: -80vmin; --by: 0vmin;   --balloon-color: var(--color-primary); animation-delay: 0.3s; animation-duration: 6.3s; }
.confetti-piece:nth-child(12) { --bx: -76vmin; --by: -25vmin; --balloon-color: #FF4646; animation-delay: 0.5s; animation-duration: 5.8s; }
.confetti-piece:nth-child(13) { --bx: -65vmin; --by: -47vmin; --balloon-color: #80DD6D; animation-delay: 0.2s; animation-duration: 6.4s; }
.confetti-piece:nth-child(14) { --bx: -47vmin; --by: -65vmin; --balloon-color: #FCBA3F; animation-delay: 0.4s; animation-duration: 6s; }
.confetti-piece:nth-child(15) { --bx: -25vmin; --by: -76vmin; --balloon-color: #4A68FF; animation-delay: 0.1s; animation-duration: 5.9s; }
.confetti-piece:nth-child(16) { --bx: 0vmin;   --by: -80vmin; --balloon-color: var(--color-primary); animation-delay: 0.6s; animation-duration: 6.2s; }
.confetti-piece:nth-child(17) { --bx: 25vmin;  --by: -76vmin; --balloon-color: #FF4646; animation-delay: 0.3s; animation-duration: 6.1s; }
.confetti-piece:nth-child(18) { --bx: 47vmin;  --by: -65vmin; --balloon-color: #80DD6D; animation-delay: 0.5s; animation-duration: 6.3s; }
.confetti-piece:nth-child(19) { --bx: 65vmin;  --by: -47vmin; --balloon-color: #FCBA3F; animation-delay: 0.2s; animation-duration: 5.8s; }
.confetti-piece:nth-child(20) { --bx: 76vmin;  --by: -25vmin; --balloon-color: #4A68FF; animation-delay: 0.4s; animation-duration: 6s; }
/* Extra confetti 21–50: repeat directions with staggered delays */
.confetti-piece:nth-child(21) { --bx: 80vmin;  --by: 0vmin;    --balloon-color: #FF4646; animation-delay: 0.5s; animation-duration: 6.1s; }
.confetti-piece:nth-child(22) { --bx: 76vmin;  --by: 25vmin;  --balloon-color: #80DD6D; animation-delay: 0.7s; animation-duration: 5.9s; }
.confetti-piece:nth-child(23) { --bx: 65vmin;  --by: 47vmin;  --balloon-color: #FCBA3F; animation-delay: 0.35s; animation-duration: 6.2s; }
.confetti-piece:nth-child(24) { --bx: 47vmin;  --by: 65vmin;  --balloon-color: #4A68FF; animation-delay: 0.55s; animation-duration: 6.4s; }
.confetti-piece:nth-child(25) { --bx: 25vmin;  --by: 76vmin;  --balloon-color: var(--color-primary); animation-delay: 0.15s; animation-duration: 6s; }
.confetti-piece:nth-child(26) { --bx: 0vmin;   --by: 80vmin;  --balloon-color: #FF4646; animation-delay: 0.75s; animation-duration: 5.8s; }
.confetti-piece:nth-child(27) { --bx: -25vmin; --by: 76vmin;  --balloon-color: #80DD6D; animation-delay: 0.4s; animation-duration: 6.3s; }
.confetti-piece:nth-child(28) { --bx: -47vmin; --by: 65vmin;  --balloon-color: #FCBA3F; animation-delay: 0.6s; animation-duration: 6.1s; }
.confetti-piece:nth-child(29) { --bx: -65vmin; --by: 47vmin;  --balloon-color: #4A68FF; animation-delay: 0.25s; animation-duration: 5.7s; }
.confetti-piece:nth-child(30) { --bx: -76vmin; --by: 25vmin;  --balloon-color: var(--color-primary); animation-delay: 0.65s; animation-duration: 6.2s; }
.confetti-piece:nth-child(31) { --bx: -80vmin; --by: 0vmin;   --balloon-color: #FF4646; animation-delay: 0.1s; animation-duration: 6s; }
.confetti-piece:nth-child(32) { --bx: -76vmin; --by: -25vmin; --balloon-color: #80DD6D; animation-delay: 0.8s; animation-duration: 5.9s; }
.confetti-piece:nth-child(33) { --bx: -65vmin; --by: -47vmin; --balloon-color: #FCBA3F; animation-delay: 0.45s; animation-duration: 6.3s; }
.confetti-piece:nth-child(34) { --bx: -47vmin; --by: -65vmin; --balloon-color: #4A68FF; animation-delay: 0.2s; animation-duration: 6.1s; }
.confetti-piece:nth-child(35) { --bx: -25vmin; --by: -76vmin; --balloon-color: var(--color-primary); animation-delay: 0.7s; animation-duration: 5.8s; }
.confetti-piece:nth-child(36) { --bx: 0vmin;   --by: -80vmin; --balloon-color: #FF4646; animation-delay: 0.3s; animation-duration: 6.4s; }
.confetti-piece:nth-child(37) { --bx: 25vmin;  --by: -76vmin; --balloon-color: #80DD6D; animation-delay: 0.55s; animation-duration: 6s; }
.confetti-piece:nth-child(38) { --bx: 47vmin;  --by: -65vmin; --balloon-color: #FCBA3F; animation-delay: 0.85s; animation-duration: 5.7s; }
.confetti-piece:nth-child(39) { --bx: 65vmin;  --by: -47vmin; --balloon-color: #4A68FF; animation-delay: 0.4s; animation-duration: 6.2s; }
.confetti-piece:nth-child(40) { --bx: 76vmin;  --by: -25vmin; --balloon-color: var(--color-primary); animation-delay: 0.6s; animation-duration: 5.9s; }
.confetti-piece:nth-child(41) { --bx: 80vmin;  --by: 0vmin;    --balloon-color: #80DD6D; animation-delay: 0.9s; animation-duration: 6.1s; }
.confetti-piece:nth-child(42) { --bx: 76vmin;  --by: 25vmin;  --balloon-color: #FCBA3F; animation-delay: 0.5s; animation-duration: 5.8s; }
.confetti-piece:nth-child(43) { --bx: 65vmin;  --by: 47vmin;  --balloon-color: #4A68FF; animation-delay: 0.15s; animation-duration: 6.3s; }
.confetti-piece:nth-child(44) { --bx: 47vmin;  --by: 65vmin;  --balloon-color: var(--color-primary); animation-delay: 0.65s; animation-duration: 6s; }
.confetti-piece:nth-child(45) { --bx: 25vmin;  --by: 76vmin;  --balloon-color: #FF4646; animation-delay: 0.35s; animation-duration: 6.2s; }
.confetti-piece:nth-child(46) { --bx: 0vmin;   --by: 80vmin;  --balloon-color: #80DD6D; animation-delay: 0.95s; animation-duration: 5.9s; }
.confetti-piece:nth-child(47) { --bx: -25vmin; --by: 76vmin;  --balloon-color: #FCBA3F; animation-delay: 0.45s; animation-duration: 6.4s; }
.confetti-piece:nth-child(48) { --bx: -47vmin; --by: 65vmin;  --balloon-color: #4A68FF; animation-delay: 0.7s; animation-duration: 6.1s; }
.confetti-piece:nth-child(49) { --bx: -65vmin; --by: 47vmin;  --balloon-color: var(--color-primary); animation-delay: 0.2s; animation-duration: 5.7s; }
.confetti-piece:nth-child(50) { --bx: -76vmin; --by: 25vmin;  --balloon-color: #FF4646; animation-delay: 0.85s; animation-duration: 6.2s; }
.confetti-piece:nth-child(51) { --bx: 80vmin;  --by: 0vmin;    --balloon-color: #80DD6D; animation-delay: 0.1s;  animation-duration: 6.3s; }
.confetti-piece:nth-child(52) { --bx: 76vmin;  --by: 25vmin;  --balloon-color: #FCBA3F; animation-delay: 0.55s; animation-duration: 5.7s; }
.confetti-piece:nth-child(53) { --bx: 65vmin;  --by: 47vmin;  --balloon-color: #4A68FF; animation-delay: 0.95s; animation-duration: 6.1s; }
.confetti-piece:nth-child(54) { --bx: 47vmin;  --by: 65vmin;  --balloon-color: var(--color-primary); animation-delay: 0.25s; animation-duration: 5.9s; }
.confetti-piece:nth-child(55) { --bx: 25vmin;  --by: 76vmin;  --balloon-color: #FF4646; animation-delay: 0.6s;  animation-duration: 6.4s; }
.confetti-piece:nth-child(56) { --bx: 0vmin;   --by: 80vmin;  --balloon-color: #80DD6D; animation-delay: 0.4s;  animation-duration: 6s; }
.confetti-piece:nth-child(57) { --bx: -25vmin; --by: 76vmin;  --balloon-color: #FCBA3F; animation-delay: 0.8s;  animation-duration: 5.8s; }
.confetti-piece:nth-child(58) { --bx: -47vmin; --by: 65vmin;  --balloon-color: #4A68FF; animation-delay: 0.15s; animation-duration: 6.2s; }
.confetti-piece:nth-child(59) { --bx: -65vmin; --by: 47vmin;  --balloon-color: var(--color-primary); animation-delay: 0.65s; animation-duration: 5.7s; }
.confetti-piece:nth-child(60) { --bx: -76vmin; --by: 25vmin;  --balloon-color: #FF4646; animation-delay: 0.45s; animation-duration: 6.1s; }
.confetti-piece:nth-child(61) { --bx: -80vmin; --by: 0vmin;   --balloon-color: #80DD6D; animation-delay: 0.9s;  animation-duration: 6.3s; }
.confetti-piece:nth-child(62) { --bx: -76vmin; --by: -25vmin; --balloon-color: #FCBA3F; animation-delay: 0.2s;  animation-duration: 5.9s; }
.confetti-piece:nth-child(63) { --bx: -65vmin; --by: -47vmin; --balloon-color: #4A68FF; animation-delay: 0.7s;  animation-duration: 6.1s; }
.confetti-piece:nth-child(64) { --bx: -47vmin; --by: -65vmin; --balloon-color: var(--color-primary); animation-delay: 0.35s; animation-duration: 6.4s; }
.confetti-piece:nth-child(65) { --bx: -25vmin; --by: -76vmin; --balloon-color: #FF4646; animation-delay: 0.75s; animation-duration: 6s; }
.confetti-piece:nth-child(66) { --bx: 0vmin;   --by: -80vmin; --balloon-color: #80DD6D; animation-delay: 0.5s;  animation-duration: 5.8s; }
.confetti-piece:nth-child(67) { --bx: 25vmin;  --by: -76vmin; --balloon-color: #FCBA3F; animation-delay: 0.85s; animation-duration: 6.2s; }
.confetti-piece:nth-child(68) { --bx: 47vmin;  --by: -65vmin; --balloon-color: #4A68FF; animation-delay: 0.3s;  animation-duration: 5.7s; }
.confetti-piece:nth-child(69) { --bx: 65vmin;  --by: -47vmin; --balloon-color: var(--color-primary); animation-delay: 0.95s; animation-duration: 6.1s; }
.confetti-piece:nth-child(70) { --bx: 76vmin;  --by: -25vmin; --balloon-color: #FF4646; animation-delay: 0.55s; animation-duration: 5.9s; }
.confetti-piece:nth-child(71) { --bx: 80vmin;  --by: 0vmin;    --balloon-color: #80DD6D; animation-delay: 0.05s; animation-duration: 6.3s; }
.confetti-piece:nth-child(72) { --bx: 76vmin;  --by: 25vmin;  --balloon-color: #FCBA3F; animation-delay: 0.5s;  animation-duration: 6s; }
.confetti-piece:nth-child(73) { --bx: 65vmin;  --by: 47vmin;  --balloon-color: #4A68FF; animation-delay: 0.6s;  animation-duration: 5.8s; }
.confetti-piece:nth-child(74) { --bx: 47vmin;  --by: 65vmin;  --balloon-color: var(--color-primary); animation-delay: 0.2s;  animation-duration: 6.2s; }
.confetti-piece:nth-child(75) { --bx: 25vmin;  --by: 76vmin;  --balloon-color: #FF4646; animation-delay: 0.8s;  animation-duration: 5.7s; }
.confetti-piece:nth-child(76) { --bx: 0vmin;   --by: 80vmin;  --balloon-color: #80DD6D; animation-delay: 0.4s;  animation-duration: 6.1s; }
.confetti-piece:nth-child(77) { --bx: -25vmin; --by: 76vmin;  --balloon-color: #FCBA3F; animation-delay: 0.65s; animation-duration: 5.9s; }
.confetti-piece:nth-child(78) { --bx: -47vmin; --by: 65vmin;  --balloon-color: #4A68FF; animation-delay: 0.1s;  animation-duration: 6.4s; }
.confetti-piece:nth-child(79) { --bx: -65vmin; --by: 47vmin;  --balloon-color: var(--color-primary); animation-delay: 0.7s;  animation-duration: 6s; }
.confetti-piece:nth-child(80) { --bx: -76vmin; --by: 25vmin;  --balloon-color: #FF4646; animation-delay: 0.9s;  animation-duration: 5.8s; }
.confetti-piece:nth-child(81) { --bx: 80vmin;  --by: 0vmin;    --balloon-color: #80DD6D; animation-delay: 0.1s;  animation-duration: 6.3s; }
.confetti-piece:nth-child(82) { --bx: 76vmin;  --by: 25vmin;  --balloon-color: #FCBA3F; animation-delay: 0.55s; animation-duration: 5.7s; }
.confetti-piece:nth-child(83) { --bx: 65vmin;  --by: 47vmin;  --balloon-color: #4A68FF; animation-delay: 0.95s; animation-duration: 6.1s; }
.confetti-piece:nth-child(84) { --bx: 47vmin;  --by: 65vmin;  --balloon-color: var(--color-primary); animation-delay: 0.25s; animation-duration: 5.9s; }
.confetti-piece:nth-child(85) { --bx: 25vmin;  --by: 76vmin;  --balloon-color: #FF4646; animation-delay: 0.6s;  animation-duration: 6.4s; }
.confetti-piece:nth-child(86) { --bx: 0vmin;   --by: 80vmin;  --balloon-color: #80DD6D; animation-delay: 0.4s;  animation-duration: 6s; }
.confetti-piece:nth-child(87) { --bx: -25vmin; --by: 76vmin;  --balloon-color: #FCBA3F; animation-delay: 0.8s;  animation-duration: 5.8s; }
.confetti-piece:nth-child(88) { --bx: -47vmin; --by: 65vmin;  --balloon-color: #4A68FF; animation-delay: 0.15s; animation-duration: 6.2s; }
.confetti-piece:nth-child(89) { --bx: -65vmin; --by: 47vmin;  --balloon-color: var(--color-primary); animation-delay: 0.65s; animation-duration: 5.7s; }
.confetti-piece:nth-child(90) { --bx: -76vmin; --by: 25vmin;  --balloon-color: #FF4646; animation-delay: 0.45s; animation-duration: 6.1s; }
.confetti-piece:nth-child(91) { --bx: -80vmin; --by: 0vmin;   --balloon-color: #80DD6D; animation-delay: 0.9s;  animation-duration: 6.3s; }
.confetti-piece:nth-child(92) { --bx: -76vmin; --by: -25vmin; --balloon-color: #FCBA3F; animation-delay: 0.2s;  animation-duration: 5.9s; }
.confetti-piece:nth-child(93) { --bx: -65vmin; --by: -47vmin; --balloon-color: #4A68FF; animation-delay: 0.7s;  animation-duration: 6.1s; }
.confetti-piece:nth-child(94) { --bx: -47vmin; --by: -65vmin; --balloon-color: var(--color-primary); animation-delay: 0.35s; animation-duration: 6.4s; }
.confetti-piece:nth-child(95) { --bx: -25vmin; --by: -76vmin; --balloon-color: #FF4646; animation-delay: 0.75s; animation-duration: 6s; }
.confetti-piece:nth-child(96) { --bx: 0vmin;   --by: -80vmin; --balloon-color: #80DD6D; animation-delay: 0.5s;  animation-duration: 5.8s; }
.confetti-piece:nth-child(97) { --bx: 25vmin;  --by: -76vmin; --balloon-color: #FCBA3F; animation-delay: 0.85s; animation-duration: 6.2s; }
.confetti-piece:nth-child(98) { --bx: 47vmin;  --by: -65vmin; --balloon-color: #4A68FF; animation-delay: 0.3s;  animation-duration: 5.7s; }
.confetti-piece:nth-child(99) { --bx: 65vmin;  --by: -47vmin; --balloon-color: var(--color-primary); animation-delay: 0.95s; animation-duration: 6.1s; }
.confetti-piece:nth-child(100){ --bx: 76vmin;  --by: -25vmin; --balloon-color: #FF4646; animation-delay: 0.55s; animation-duration: 5.9s; }

@keyframes coin-fountain {
  0% {
    transform: translate(0, 0) scale(0.4) rotate(0deg);
    opacity: 1;
  }
  20% {
    transform: translate(calc(var(--bx) * 0.3), -25vh) scale(0.85) rotate(90deg);
    opacity: 1;
  }
  45% {
    transform: translate(var(--bx), -50vh) scale(1) rotate(200deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--bx) * 1.25), 45vh) scale(1) rotate(720deg);
    opacity: 1;
  }
}

/* Mini/Super Mini win: confetti exploding from center (no coins) – above dialog so it’s visible */
#win-modal.win-modal-mini .win-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
}

#win-modal.win-modal-mini .win-confetti-container .confetti-piece:nth-child(3n) {
  width: 12px !important;
  height: 8px !important;
  margin-left: -6px !important;
  margin-top: -4px !important;
  border-radius: 1px !important;
}

@keyframes confetti-burst-explode {
  0% {
    transform: translate(0, 0) scale(0.2) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--bx), var(--by)) scale(1) rotate(720deg);
    opacity: 0.9;
  }
}

/* Win Modal Balloons (hidden - using video only) */
.win-balloons {
  display: none;
}

.balloon {
  position: absolute;
  font-size: 40px;
  animation: balloon-float 3s ease-in-out infinite;
}

.balloon-1 {
  left: 10%;
  top: -50px;
  animation-delay: 0s;
  animation-duration: 4s;
}

.balloon-2 {
  left: 25%;
  top: -50px;
  animation-delay: 0.5s;
  animation-duration: 3.5s;
}

.balloon-3 {
  left: 40%;
  top: -50px;
  animation-delay: 1s;
  animation-duration: 4.5s;
}

.balloon-4 {
  left: 60%;
  top: -50px;
  animation-delay: 0.3s;
  animation-duration: 3.8s;
}

.balloon-5 {
  left: 75%;
  top: -50px;
  animation-delay: 0.8s;
  animation-duration: 4.2s;
}

.balloon-6 {
  left: 90%;
  top: -50px;
  animation-delay: 1.2s;
  animation-duration: 3.6s;
}

@keyframes balloon-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0.8;
  }
}

.win-modal-content {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.win-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FCBA3F 0%, #FFA500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(252, 186, 63, 0.4);
}

.win-trophy {
  font-size: 60px;
  line-height: 1;
  animation: bounce 0.6s ease;
}

.win-sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(252, 186, 63, 0.6) 0%, rgba(252, 186, 63, 0) 70%);
  border-radius: 50%;
  animation: sunburst-pulse 1s ease-out;
  z-index: 1;
}

.win-title {
  font-size: 32px;
  font-weight: 800;
  color: #FCBA3F;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(252, 186, 63, 0.3);
}

.win-message {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.win-message span {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
}

.win-subtitle {
  font-size: 14px;
  color: var(--color-text-2);
  margin: 0;
}

.win-continue-btn {
  width: 100%;
  padding: 16px;
  background: #FF9500;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.win-continue-btn:hover {
  background: #E68900;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.win-continue-btn:active {
  transform: translateY(0);
}

/* Loss Modal */
.loss-modal-dialog {
  background: var(--color-surface);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modal-slide-in 0.3s ease;
}

.loss-modal-content {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loss-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loss-icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.loss-icon {
  font-size: 60px;
  line-height: 1;
}

.loss-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.loss-message {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.loss-message span {
  font-size: 24px;
  font-weight: 800;
  color: #DC2626;
}

.loss-subtitle {
  font-size: 14px;
  color: var(--color-text-2);
  margin: 0;
}

.loss-subtitle span {
  font-weight: 600;
  color: var(--color-text);
}

.loss-continue-btn {
  width: 100%;
  padding: 16px;
  background: #FF9500;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.loss-continue-btn:hover {
  background: #E68900;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.loss-continue-btn:active {
  transform: translateY(0);
}

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

/* Draw Countdown Timer Modal (alarm clock as per alarm clock count down.jpg) */
.draw-countdown-dialog {
  background: var(--color-surface);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.draw-countdown-content {
  padding: 48px 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Digital countdown timer (no alarm image) */
.countdown-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.countdown-digital-time {
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff2222;
  text-shadow: 0 0 12px rgba(255, 50, 50, 0.8), 0 0 4px rgba(255, 80, 80, 0.6);
  line-height: 1.1;
  animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.02);
  }
}

/* Prize Draw Step 1: Alarm clock countdown modal */
.prize-draw-countdown-dialog {
  background: #000000;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.prize-draw-countdown-content {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prize-draw-countdown-number {
  font-size: 96px;
  font-weight: 700;
  font-family: "SF Mono", "SF Pro", "Consolas", "Monaco", monospace;
  color: #E53935;
  line-height: 1;
  min-height: 1em;
  letter-spacing: 0.08em;
  padding: 24px 48px;
  background: #0a0a0a;
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.4);
  text-shadow: 0 0 24px rgba(229, 57, 53, 0.8);
}

/* Prize Draw Step 2: Bingo box modal */
.prize-draw-bingo-dialog {
  background: var(--color-surface);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.prize-draw-bingo-content {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.prize-draw-bingo-box-wrap {
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 600px;
}

.prize-draw-bingo-box-wrap.mixing {
  animation: bingo-box-mix 5s ease-in-out;
}

@keyframes bingo-box-mix {
  0% { transform: rotateY(0deg) rotateZ(0deg); }
  15% { transform: rotateY(90deg) rotateZ(5deg); }
  30% { transform: rotateY(180deg) rotateZ(-5deg); }
  45% { transform: rotateY(270deg) rotateZ(5deg); }
  60% { transform: rotateY(360deg) rotateZ(-5deg); }
  75% { transform: rotateY(450deg) rotateZ(3deg); }
  90% { transform: rotateY(540deg) rotateZ(-3deg); }
  100% { transform: rotateY(720deg) rotateZ(0deg); }
}

.prize-draw-bingo-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.prize-draw-winning-number {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  min-height: 1.2em;
  opacity: 0;
  transform: scale(0.3);
  transition: none;
}

.prize-draw-winning-number.pop {
  opacity: 1;
  transform: scale(1);
  animation: number-pop 0.6s ease-out forwards;
}

@keyframes number-pop {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  70% {
    transform: scale(1.15) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* One2Ten Draw Machine (3D canvas) */
.draw-machine-canvas-dialog {
  position: relative;
  background: #060913;
  border-radius: 18px;
  overflow: visible;
  width: min(920px, 96vw);
  max-width: 96vw;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;
}

.draw-machine-canvas-dialog canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1.65/1;
  border-radius: 12px;
  display: block;
}

.draw-machine-canvas-dialog .draw-machine-close-btn {
  margin-top: 12px;
}

/* Congratulations sale sticker (gold & silver, One2Ten) */
.congratulations-sticker {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 140px;
  padding: 14px 12px;
  text-align: center;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    inset 0 2px 8px rgba(255, 215, 0, 0.35),
    0 0 0 2px rgba(192, 192, 192, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(145deg,
    #fffef5 0%,
    #f5e6b3 18%,
    #d4af37 40%,
    #c5a028 55%,
    #e8d48b 72%,
    #c0c0c0 88%,
    #e8e8e8 100%);
  animation: sticker-pop 0.5s ease-out;
}

.congratulations-sticker.hidden {
  display: none !important;
}

@keyframes sticker-pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.sticker-congratulations {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  line-height: 1.1;
}

.sticker-winning-number {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.sticker-logo {
  font-size: 18px;
  font-weight: 800;
  color: #2a2a2a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.sticker-logo .sticker-two {
  color: #b8860b;
  text-shadow: 0 0 8px rgba(218, 165, 32, 0.6);
}

.draw-machine-dialog {
  background: #0d0d0d;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.draw-machine-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.one2ten-logo-overlay {
  font-size: 28px;
  font-weight: 800;
  color: #d1d5db;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.one2ten-logo-overlay.visible {
  opacity: 1;
  transform: scale(1);
}

.one2ten-logo-overlay .logo-one,
.one2ten-logo-overlay .logo-ten {
  color: #d1d5db;
}

.one2ten-logo-overlay .logo-highlight {
  color: var(--color-yellow, #FFD700);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  padding: 0 2px;
}

/* Metal frame around drum */
.draw-machine-frame {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  background: linear-gradient(145deg, #4a4a4a 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: 20px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.5);
}

/* Glass drum */
.draw-machine-drum {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 280px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.12) 100%);
  box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.draw-machine-drum.mixing {
  animation: drum-mix 4s ease-in-out;
}

@keyframes drum-mix {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-8deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  75% { transform: rotate(-5deg); }
  90% { transform: rotate(3deg); }
}

.draw-machine-drum.settled .draw-machine-ball {
  animation: ball-settle 1.2s ease-out forwards;
}

@keyframes ball-settle {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.draw-machine-balls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 80px;
}

.draw-machine-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.3);
  flex-shrink: 0;
  opacity: 0.9;
  transform: translateY(-120px) scale(0.85);
}

.draw-machine-ball.mixing {
  animation: ball-mix 4s ease-in-out infinite;
}

.draw-machine-ball:nth-child(1) { background: linear-gradient(145deg, #E53935, #B71C1C); animation-delay: 0s; }
.draw-machine-ball:nth-child(2) { background: linear-gradient(145deg, #FF9800, #E65100); animation-delay: 0.1s; }
.draw-machine-ball:nth-child(3) { background: linear-gradient(145deg, #FFEB3B, #F9A825); animation-delay: 0.2s; }
.draw-machine-ball:nth-child(4) { background: linear-gradient(145deg, #4CAF50, #2E7D32); animation-delay: 0.3s; }
.draw-machine-ball:nth-child(5) { background: linear-gradient(145deg, #2196F3, #1565C0); animation-delay: 0.4s; }
.draw-machine-ball:nth-child(6) { background: linear-gradient(145deg, #9C27B0, #6A1B9A); animation-delay: 0.5s; }
.draw-machine-ball:nth-child(7) { background: linear-gradient(145deg, #00BCD4, #00838F); animation-delay: 0.6s; }
.draw-machine-ball:nth-child(8) { background: linear-gradient(145deg, #795548, #4E342E); animation-delay: 0.7s; }
.draw-machine-ball:nth-child(9) { background: linear-gradient(145deg, #607D8B, #37474F); animation-delay: 0.8s; }
.draw-machine-ball:nth-child(10) { background: linear-gradient(145deg, #E91E63, #AD1457); animation-delay: 0.9s; }

@keyframes ball-mix {
  0%, 100% { transform: translateY(-120px) scale(0.85) rotate(0deg); }
  25% { transform: translateY(-80px) translateX(4px) scale(0.9) rotate(10deg); }
  50% { transform: translateY(-100px) translateX(-4px) scale(0.88) rotate(-8deg); }
  75% { transform: translateY(-90px) translateX(2px) scale(0.9) rotate(5deg); }
}

.draw-machine-ball.winner {
  animation: ball-winner-rise 0.8s ease-out forwards;
  z-index: 10;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.9), inset 0 -2px 4px rgba(0,0,0,0.2);
}

.draw-machine-ball.winner.pulse {
  animation: ball-winner-rise 0.8s ease-out forwards, ball-pulse 0.6s ease-in-out 0.8s infinite;
}

@keyframes ball-winner-rise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-140px) scale(1.2); opacity: 1; }
}

@keyframes ball-pulse {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 24px rgba(255, 215, 0, 0.9); }
  50% { filter: brightness(1.4); box-shadow: 0 0 32px rgba(255, 215, 0, 1); }
}

/* Draw Roulette Wheel Modal */
.draw-alarm-dialog {
  background: var(--color-surface);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.draw-alarm-content {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Timer at top for Mini/Super Mini draw (digital countdown, centered) */
.draw-timer-at-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 8px;
}

.draw-timer-at-top.hidden {
  display: none;
}

.draw-product-display {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.draw-product-image-container {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  background: var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
}

.draw-product-image-container .pool-img,
.draw-product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draw-product-image-container:not(:has(img)) {
  font-size: 80px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #FCBA3F 0deg 36deg,
    #4A68FF 36deg 72deg,
    #FCBA3F 72deg 108deg,
    #4A68FF 108deg 144deg,
    #FCBA3F 144deg 180deg,
    #4A68FF 180deg 216deg,
    #FCBA3F 216deg 252deg,
    #4A68FF 252deg 288deg,
    #FCBA3F 288deg 324deg,
    #4A68FF 324deg 360deg
  );
  border: 8px solid var(--color-border);
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  transform-origin: center;
}

.roulette-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-170px) rotate(calc(-1 * var(--rotation)));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  /* Keep numbers upright by counter-rotating */
  transform-origin: center center;
}

/* Counter-rotate numbers to keep them upright as wheel spins */
.roulette-wheel {
  /* Numbers will counter-rotate via the transform in .roulette-number */
}

.roulette-number.winning-number {
  background: #FCBA3F;
  color: #000000;
  border-color: #FCBA3F;
  transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-170px) rotate(calc(-1 * var(--rotation))) scale(1.3);
  box-shadow: 0 0 20px rgba(252, 186, 63, 0.8);
  z-index: 10;
}

/* Dark mode: Ensure numbers are visible on white background */
body.theme-dark .roulette-number {
  color: #000000;
}

body.theme-dark .roulette-number.winning-number {
  color: #000000;
}

.roulette-pointers {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 20;
}

.roulette-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 25px solid #FCBA3F;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* For Prize Draw: arrow is fixed at top circumference, pointing straight down */
.roulette-pointer:not(.moving) {
  transform: translateX(-50%) rotate(0deg) translateY(-200px);
}

.roulette-pointer.moving {
  animation: arrowOrbit 2s ease-in-out infinite;
}

.roulette-pointer.moving:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 1.8s;
}

.roulette-pointer.moving:nth-child(2) {
  animation-delay: 0.3s;
  animation-duration: 2.1s;
}

.roulette-pointer.moving:nth-child(3) {
  animation-delay: 0.6s;
  animation-duration: 1.9s;
}

.roulette-pointer.moving:nth-child(4) {
  animation-delay: 0.15s;
  animation-duration: 2.2s;
}

.roulette-pointer.moving:nth-child(5) {
  animation-delay: 0.45s;
  animation-duration: 1.95s;
}

@keyframes arrowOrbit {
  0% {
    transform: translateX(-50%) rotate(var(--start-angle, 0deg)) translateY(-200px);
  }
  20% {
    transform: translateX(-50%) rotate(calc(var(--start-angle, 0deg) + var(--orbit-offset-1, 72deg))) translateY(-200px);
  }
  40% {
    transform: translateX(-50%) rotate(calc(var(--start-angle, 0deg) + var(--orbit-offset-2, 144deg))) translateY(-200px);
  }
  60% {
    transform: translateX(-50%) rotate(calc(var(--start-angle, 0deg) + var(--orbit-offset-3, 216deg))) translateY(-200px);
  }
  80% {
    transform: translateX(-50%) rotate(calc(var(--start-angle, 0deg) + var(--orbit-offset-4, 288deg))) translateY(-200px);
  }
  100% {
    transform: translateX(-50%) rotate(calc(var(--start-angle, 0deg) + 360deg)) translateY(-200px);
  }
}

@media (max-width: 500px) {
  .roulette-container {
    width: 300px;
    height: 300px;
  }
  
  .roulette-number {
    font-size: 16px;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-130px) rotate(calc(-1 * var(--rotation)));
  }
  
  .roulette-number.winning-number {
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-130px) rotate(calc(-1 * var(--rotation))) scale(1.3);
  }
}

/* Betty Chat Widget – site orange */
.chatbot-toggle {
  position: fixed;
  bottom: 120px; /* Moved higher up, closer to pools section */
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(252, 186, 63, 0.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 20px;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(252, 186, 63, 0.5);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.chatbot-icon {
  font-size: 24px;
  line-height: 1;
}

.chatbot-badge {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.9;
}

.chatbot-widget {
  position: fixed;
  bottom: 190px; /* Moved higher up to match toggle button position */
  right: 20px;
  width: min(360px, calc(100vw - 40px));
  max-height: 500px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 51;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.chatbot-widget:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-widget.hidden {
  display: flex !important;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
}

body.theme-dark .chatbot-widget {
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.6);
}

/* Dark mode specific adjustments */
body.theme-dark .top-bar {
  border-bottom: 1px solid var(--color-border);
}

body.theme-dark .hero-banner {
  background: #1a1a1a;
}

body.theme-dark .avatar-dropdown {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

body.theme-dark .dropdown-header {
  background: var(--color-bg);
}

body.theme-dark .slot-selection-grid {
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .slot-selection-btn {
  background: #2a2a2a;
  border-color: #404040;
  color: #f5f5f5;
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.theme-dark .slot-selection-btn:hover:not(:disabled) {
  background: #333;
  border-color: #505050;
}

body.theme-dark .slot-selection-btn.selected {
  background: #FF9500;
  color: #FFFFFF;
  border-color: #E68600;
}

body.theme-dark .slot-selection-btn.filled {
  background: #2a2a2a;
  color: transparent;
  border-color: #404040;
}

body.theme-dark .slot-display.filled {
  background: #2a2a2a;
  border-color: #374151;
  opacity: 0.6;
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background: var(--color-surface);
  color: var(--color-text);
}

body.theme-dark .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

body.theme-dark .status-pill {
  border: 1px solid transparent;
}

body.theme-dark .status-pill.active,
body.theme-dark .status-pill.open {
  background: var(--status-open-bg);
  color: var(--status-open-text);
}

body.theme-dark .status-pill.filling {
  background: var(--status-filling-bg);
  color: var(--status-filling-text);
}

body.theme-dark .status-pill.completed,
body.theme-dark .status-pill.locked {
  background: var(--status-locked-bg);
  color: var(--status-locked-text);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  font-size: 28px;
  line-height: 1;
}

.chatbot-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.chatbot-status {
  margin: 2px 0 0;
  font-size: 11px;
  opacity: 0.9;
}

.chatbot-close {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 350px;
}

.chatbot-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: messageSlideIn 0.3s ease;
}

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

.chatbot-message.user-message {
  align-items: flex-end;
}

.chatbot-message.bot-message {
  align-items: flex-start;
}

.message-content {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.user-message .message-content {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.message-time {
  font-size: 11px;
  color: var(--color-muted);
  padding: 0 4px;
}

.chatbot-input-container {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.chatbot-send {
  border: none;
  background: var(--color-primary);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chatbot-send:hover {
  background: var(--color-primary-light);
  transform: scale(1.05);
}

.chatbot-send:active {
  transform: scale(0.95);
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.celebration-overlay.show {
  opacity: 1;
  visibility: visible;
}

.celebration-content {
  position: relative;
  background: var(--color-surface);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.celebration-content .eyebrow {
  color: var(--link-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
}

#celebration-pool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

#celebration-pool .celebration-pool-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  vertical-align: middle;
}

.slot-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.slot-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 104, 255, 0.15);
  font-weight: 600;
  color: var(--link-color);
  box-shadow: inset 0 0 0 1px rgba(74, 104, 255, 0.3);
}

/* Purchase celebration – confetti rain over whole screen and modal */
.celebration-overlay .confetti.confetti-rain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.celebration-overlay .celebration-content {
  position: relative;
  z-index: 1;
}

.celebration-overlay .confetti.confetti-rain span {
  position: absolute;
  width: 6px;
  height: 16px;
  top: -30px;
  left: var(--start-x, 50%);
  margin-left: -3px;
  border-radius: 1px;
  animation: celebrationConfettiRain 4s linear forwards;
  --start-x: 50%;
  --end-x: 0;
}

.celebration-overlay .confetti.confetti-rain span:nth-child(odd) {
  background: var(--color-accent);
}

.celebration-overlay .confetti.confetti-rain span:nth-child(even) {
  background: var(--color-green);
}

.celebration-overlay .confetti.confetti-rain span:nth-child(3n) {
  background: var(--color-primary);
}

.celebration-overlay .confetti.confetti-rain span:nth-child(5n) {
  background: #FF4646;
}

.celebration-overlay .confetti.confetti-rain span:nth-child(7n) {
  background: #4A68FF;
}

/* Rain: spread across full width, staggered delays for continuous rain */
.celebration-overlay .confetti.confetti-rain span:nth-child(1)  { --start-x: 2%;  --end-x: -1vw; animation-delay: 0s;    animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(2)  { --start-x: 5%;  --end-x: 1vw;  animation-delay: 0.15s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(3)  { --start-x: 8%;  --end-x: -2vw; animation-delay: 0.3s;  animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(4)  { --start-x: 11%; --end-x: 2vw;  animation-delay: 0.05s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(5)  { --start-x: 14%; --end-x: -1vw; animation-delay: 0.4s;  animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(6)  { --start-x: 17%; --end-x: 1vw;  animation-delay: 0.2s;  animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(7)  { --start-x: 20%; --end-x: -3vw; animation-delay: 0.35s; animation-duration: 3.9s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(8)  { --start-x: 23%; --end-x: 2vw;  animation-delay: 0.1s;  animation-duration: 3.1s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(9)  { --start-x: 26%; --end-x: -1vw; animation-delay: 0.45s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(10) { --start-x: 29%; --end-x: 1vw;  animation-delay: 0.25s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(11) { --start-x: 32%; --end-x: -2vw; animation-delay: 0.5s;  animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(12) { --start-x: 35%; --end-x: 3vw;  animation-delay: 0.08s; animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(13) { --start-x: 38%; --end-x: -1vw; animation-delay: 0.55s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(14) { --start-x: 41%; --end-x: 2vw;  animation-delay: 0.18s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(15) { --start-x: 44%; --end-x: -3vw; animation-delay: 0.6s;  animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(16) { --start-x: 47%; --end-x: 1vw;  animation-delay: 0.12s; animation-duration: 3.9s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(17) { --start-x: 50%; --end-x: -2vw; animation-delay: 0.65s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(18) { --start-x: 53%; --end-x: 2vw;  animation-delay: 0.22s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(19) { --start-x: 56%; --end-x: -1vw; animation-delay: 0.7s;  animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(20) { --start-x: 59%; --end-x: 3vw;  animation-delay: 0.05s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(21) { --start-x: 62%; --end-x: -2vw; animation-delay: 0.75s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(22) { --start-x: 65%; --end-x: 1vw;  animation-delay: 0.28s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(23) { --start-x: 68%; --end-x: -3vw; animation-delay: 0.8s;  animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(24) { --start-x: 71%; --end-x: 2vw;  animation-delay: 0.1s;  animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(25) { --start-x: 74%; --end-x: -1vw; animation-delay: 0.85s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(26) { --start-x: 77%; --end-x: 1vw;  animation-delay: 0.32s; animation-duration: 3.9s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(27) { --start-x: 80%; --end-x: -2vw; animation-delay: 0.9s;  animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(28) { --start-x: 83%; --end-x: 3vw;  animation-delay: 0.15s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(29) { --start-x: 86%; --end-x: -1vw; animation-delay: 0.95s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(30) { --start-x: 89%; --end-x: 2vw;  animation-delay: 0.38s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(31) { --start-x: 92%; --end-x: -2vw; animation-delay: 1s;   animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(32) { --start-x: 95%; --end-x: 1vw;  animation-delay: 0.2s;  animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(33) { --start-x: 4%;  --end-x: 2vw;  animation-delay: 0.42s; animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(34) { --start-x: 10%; --end-x: -1vw; animation-delay: 0.55s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(35) { --start-x: 16%; --end-x: 1vw;  animation-delay: 0.48s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(36) { --start-x: 22%; --end-x: -2vw; animation-delay: 0.62s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(37) { --start-x: 28%; --end-x: 2vw;  animation-delay: 0.52s; animation-duration: 3.9s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(38) { --start-x: 34%; --end-x: -1vw; animation-delay: 0.68s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(39) { --start-x: 40%; --end-x: 1vw;  animation-delay: 0.58s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(40) { --start-x: 46%; --end-x: -3vw; animation-delay: 0.72s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(41) { --start-x: 52%; --end-x: 2vw;  animation-delay: 0.45s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(42) { --start-x: 58%; --end-x: -1vw; animation-delay: 0.78s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(43) { --start-x: 64%; --end-x: 1vw;  animation-delay: 0.5s;  animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(44) { --start-x: 70%; --end-x: -2vw; animation-delay: 0.82s; animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(45) { --start-x: 76%; --end-x: 2vw;  animation-delay: 0.35s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(46) { --start-x: 82%; --end-x: -1vw; animation-delay: 0.88s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(47) { --start-x: 88%; --end-x: 3vw;  animation-delay: 0.4s;  animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(48) { --start-x: 94%; --end-x: -2vw; animation-delay: 0.92s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(49) { --start-x: 7%;  --end-x: 1vw;  animation-delay: 0.65s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(50) { --start-x: 13%; --end-x: -1vw; animation-delay: 0.7s;  animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(51) { --start-x: 19%; --end-x: 2vw;  animation-delay: 0.58s; animation-duration: 3.9s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(52) { --start-x: 25%; --end-x: -2vw; animation-delay: 0.75s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(53) { --start-x: 31%; --end-x: 1vw;  animation-delay: 0.62s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(54) { --start-x: 37%; --end-x: -1vw; animation-delay: 0.8s;  animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(55) { --start-x: 43%; --end-x: 2vw;  animation-delay: 0.68s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(56) { --start-x: 49%; --end-x: -3vw; animation-delay: 0.85s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(57) { --start-x: 55%; --end-x: 1vw;  animation-delay: 0.72s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(58) { --start-x: 61%; --end-x: -1vw; animation-delay: 0.9s;  animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(59) { --start-x: 67%; --end-x: 2vw;  animation-delay: 0.78s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(60) { --start-x: 73%; --end-x: -2vw; animation-delay: 0.95s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(61) { --start-x: 79%; --end-x: 1vw;  animation-delay: 0.82s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(62) { --start-x: 85%; --end-x: -1vw; animation-delay: 1s;   animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(63) { --start-x: 91%; --end-x: 3vw;  animation-delay: 0.88s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(64) { --start-x: 97%; --end-x: -2vw; animation-delay: 0.25s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(65) { --start-x: 3%;  --end-x: 1vw;  animation-delay: 0.9s;  animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(66) { --start-x: 9%;  --end-x: -1vw; animation-delay: 0.95s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(67) { --start-x: 15%; --end-x: 2vw;  animation-delay: 0.85s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(68) { --start-x: 21%; --end-x: -2vw; animation-delay: 1.02s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(69) { --start-x: 27%; --end-x: 1vw;  animation-delay: 0.92s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(70) { --start-x: 33%; --end-x: -1vw; animation-delay: 1.05s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(71) { --start-x: 39%; --end-x: 2vw;  animation-delay: 0.98s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(72) { --start-x: 45%; --end-x: -3vw; animation-delay: 1.08s; animation-duration: 3.9s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(73) { --start-x: 51%; --end-x: 1vw;  animation-delay: 1s;   animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(74) { --start-x: 57%; --end-x: -1vw; animation-delay: 1.12s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(75) { --start-x: 63%; --end-x: 2vw;  animation-delay: 1.05s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(76) { --start-x: 69%; --end-x: -2vw; animation-delay: 1.15s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(77) { --start-x: 75%; --end-x: 1vw;  animation-delay: 1.02s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(78) { --start-x: 81%; --end-x: -1vw; animation-delay: 1.18s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(79) { --start-x: 87%; --end-x: 3vw;  animation-delay: 1.08s; animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(80) { --start-x: 93%; --end-x: -2vw; animation-delay: 1.2s;  animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(81) { --start-x: 6%;  --end-x: 1vw;  animation-delay: 1.1s;  animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(82) { --start-x: 12%; --end-x: -1vw; animation-delay: 1.15s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(83) { --start-x: 18%; --end-x: 2vw;  animation-delay: 1.22s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(84) { --start-x: 24%; --end-x: -2vw; animation-delay: 1.08s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(85) { --start-x: 30%; --end-x: 1vw;  animation-delay: 1.25s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(86) { --start-x: 36%; --end-x: -1vw; animation-delay: 1.18s; animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(87) { --start-x: 42%; --end-x: 3vw;  animation-delay: 1.28s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(88) { --start-x: 48%; --end-x: -2vw; animation-delay: 1.12s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(89) { --start-x: 54%; --end-x: 1vw;  animation-delay: 1.3s;  animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(90) { --start-x: 60%; --end-x: -1vw; animation-delay: 1.2s;  animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(91) { --start-x: 66%; --end-x: 2vw;  animation-delay: 1.32s; animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(92) { --start-x: 72%; --end-x: -3vw; animation-delay: 1.14s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(93) { --start-x: 78%; --end-x: 1vw;  animation-delay: 1.35s; animation-duration: 3.8s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(94) { --start-x: 84%; --end-x: -1vw; animation-delay: 1.24s; animation-duration: 3.5s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(95) { --start-x: 90%; --end-x: 2vw;  animation-delay: 1.38s; animation-duration: 3.3s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(96) { --start-x: 96%; --end-x: -2vw; animation-delay: 1.16s; animation-duration: 3.6s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(97) { --start-x: 4%;  --end-x: 1vw;  animation-delay: 1.26s; animation-duration: 3.4s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(98) { --start-x: 11%; --end-x: -1vw; animation-delay: 1.4s;  animation-duration: 3.7s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(99) { --start-x: 19%; --end-x: 3vw;  animation-delay: 1.28s; animation-duration: 3.2s; }
.celebration-overlay .confetti.confetti-rain span:nth-child(100){ --start-x: 26%; --end-x: -2vw; animation-delay: 1.42s; animation-duration: 3.6s; }

@keyframes celebrationConfettiRain {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateX(var(--end-x, 0)) translateY(calc(100vh + 30px)) rotate(360deg);
    opacity: 0;
  }
}

@keyframes celebrationConfettiDrop {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateX(var(--end-x, 0)) translateY(calc(100vh + 20px)) rotate(720deg);
    opacity: 0;
  }
}

/* Win Modal Shooting Star Confetti (double size, explodes outward) */
.win-shooting-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.win-shooting-stars span {
  position: absolute;
  width: 16px;
  height: 24px;
  left: 50%;
  top: 50%;
  margin-left: -8px;
  margin-top: -12px;
  border-radius: 2px;
  animation: shootingStarBurst 4s ease-out infinite;
  --sx: 0;
  --sy: 0;
}

.win-shooting-stars span:nth-child(odd) {
  background: #FCBA3F;
}

.win-shooting-stars span:nth-child(even) {
  background: #4A68FF;
}

.win-shooting-stars span:nth-child(1)  { --sx: 90vmin;  --sy: 0;      animation-delay: 0s;    animation-duration: 4s;    }
.win-shooting-stars span:nth-child(2)  { --sx: 75vmin;  --sy: 52vmin; animation-delay: 0.1s;  animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(3)  { --sx: 30vmin;  --sy: 85vmin; animation-delay: 0.2s;  animation-duration: 3.8s;  }
.win-shooting-stars span:nth-child(4)  { --sx: -30vmin; --sy: 85vmin; animation-delay: 0.05s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(5)  { --sx: -75vmin; --sy: 52vmin; animation-delay: 0.3s;  animation-duration: 4s;    }
.win-shooting-stars span:nth-child(6)  { --sx: -90vmin; --sy: 0;     animation-delay: 0.02s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(7)  { --sx: -75vmin; --sy: -52vmin; animation-delay: 0.25s; animation-duration: 3.9s; }
.win-shooting-stars span:nth-child(8)  { --sx: -30vmin; --sy: -85vmin; animation-delay: 0.4s;  animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(9)  { --sx: 30vmin;  --sy: -85vmin; animation-delay: 0.1s;  animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(10) { --sx: 75vmin;  --sy: -52vmin; animation-delay: 0.3s;  animation-duration: 4s;   }
.win-shooting-stars span:nth-child(11) { --sx: 85vmin;  --sy: 15vmin; animation-delay: 0.35s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(12) { --sx: 60vmin;  --sy: 60vmin; animation-delay: 0.15s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(13) { --sx: 15vmin;  --sy: 90vmin; animation-delay: 0.45s; animation-duration: 3.7s;  }
.win-shooting-stars span:nth-child(14) { --sx: -15vmin; --sy: 90vmin; animation-delay: 0.2s;  animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(15) { --sx: -60vmin; --sy: 60vmin; animation-delay: 0.5s;  animation-duration: 4s;   }
.win-shooting-stars span:nth-child(16) { --sx: -85vmin; --sy: 15vmin; animation-delay: 0.05s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(17) { --sx: -85vmin; --sy: -15vmin; animation-delay: 0.4s; animation-duration: 3.9s; }
.win-shooting-stars span:nth-child(18) { --sx: -60vmin; --sy: -60vmin; animation-delay: 0.25s; animation-duration: 4.5s;  }
.win-shooting-stars span:nth-child(19) { --sx: -15vmin; --sy: -90vmin; animation-delay: 0.55s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(20) { --sx: 15vmin;  --sy: -90vmin; animation-delay: 0.12s; animation-duration: 3.8s;  }
.win-shooting-stars span:nth-child(21) { --sx: 60vmin;  --sy: -60vmin; animation-delay: 0.38s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(22) { --sx: 85vmin;  --sy: -15vmin; animation-delay: 0.08s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(23) { --sx: 80vmin;  --sy: 30vmin; animation-delay: 0.42s; animation-duration: 4s;   }
.win-shooting-stars span:nth-child(24) { --sx: 50vmin;  --sy: 70vmin; animation-delay: 0.18s; animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(25) { --sx: 0vmin;   --sy: 95vmin; animation-delay: 0.48s; animation-duration: 3.9s;  }
.win-shooting-stars span:nth-child(26) { --sx: -50vmin; --sy: 70vmin; animation-delay: 0.15s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(27) { --sx: -80vmin; --sy: 30vmin; animation-delay: 0.35s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(28) { --sx: -80vmin; --sy: -30vmin; animation-delay: 0.22s; animation-duration: 4s;   }
.win-shooting-stars span:nth-child(29) { --sx: -50vmin; --sy: -70vmin; animation-delay: 0.52s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(30) { --sx: 0vmin;   --sy: -95vmin; animation-delay: 0.1s;  animation-duration: 3.8s;  }
.win-shooting-stars span:nth-child(31) { --sx: 50vmin;  --sy: -70vmin; animation-delay: 0.4s;  animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(32) { --sx: 80vmin;  --sy: -30vmin; animation-delay: 0.28s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(33) { --sx: 70vmin;  --sy: 45vmin; animation-delay: 0.45s; animation-duration: 3.9s;  }
.win-shooting-stars span:nth-child(34) { --sx: 35vmin;  --sy: 80vmin; animation-delay: 0.12s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(35) { --sx: -35vmin; --sy: 80vmin; animation-delay: 0.38s; animation-duration: 4s;   }
.win-shooting-stars span:nth-child(36) { --sx: -70vmin; --sy: 45vmin; animation-delay: 0.25s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(37) { --sx: -70vmin; --sy: -45vmin; animation-delay: 0.5s;  animation-duration: 3.7s; }
.win-shooting-stars span:nth-child(38) { --sx: -35vmin; --sy: -80vmin; animation-delay: 0.18s; animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(39) { --sx: 35vmin;  --sy: -80vmin; animation-delay: 0.42s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(40) { --sx: 70vmin;  --sy: -45vmin; animation-delay: 0.08s; animation-duration: 3.9s;  }
.win-shooting-stars span:nth-child(41) { --sx: 65vmin;  --sy: 55vmin; animation-delay: 0.32s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(42) { --sx: 20vmin;  --sy: 88vmin; animation-delay: 0.15s; animation-duration: 4s;   }
.win-shooting-stars span:nth-child(43) { --sx: -20vmin; --sy: 88vmin; animation-delay: 0.48s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(44) { --sx: -65vmin; --sy: 55vmin; animation-delay: 0.22s; animation-duration: 3.8s;  }
.win-shooting-stars span:nth-child(45) { --sx: -65vmin; --sy: -55vmin; animation-delay: 0.4s;  animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(46) { --sx: -20vmin; --sy: -88vmin; animation-delay: 0.1s;  animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(47) { --sx: 20vmin;  --sy: -88vmin; animation-delay: 0.35s; animation-duration: 3.9s;  }
.win-shooting-stars span:nth-child(48) { --sx: 65vmin;  --sy: -55vmin; animation-delay: 0.28s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(49) { --sx: 55vmin;  --sy: 65vmin; animation-delay: 0.45s; animation-duration: 4s;   }
.win-shooting-stars span:nth-child(50) { --sx: -55vmin; --sy: 65vmin; animation-delay: 0.18s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(51) { --sx: -55vmin; --sy: -65vmin; animation-delay: 0.5s;  animation-duration: 3.7s; }
.win-shooting-stars span:nth-child(52) { --sx: 55vmin;  --sy: -65vmin; animation-delay: 0.12s; animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(53) { --sx: 45vmin;  --sy: 75vmin; animation-delay: 0.38s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(54) { --sx: -45vmin; --sy: 75vmin; animation-delay: 0.25s; animation-duration: 3.9s;  }
.win-shooting-stars span:nth-child(55) { --sx: -45vmin; --sy: -75vmin; animation-delay: 0.42s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(56) { --sx: 45vmin;  --sy: -75vmin; animation-delay: 0.15s; animation-duration: 4s;   }
.win-shooting-stars span:nth-child(57) { --sx: 40vmin;  --sy: 82vmin; animation-delay: 0.48s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(58) { --sx: -40vmin; --sy: 82vmin; animation-delay: 0.3s;  animation-duration: 3.8s;  }
.win-shooting-stars span:nth-child(59) { --sx: -40vmin; --sy: -82vmin; animation-delay: 0.2s;  animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(60) { --sx: 40vmin;  --sy: -82vmin; animation-delay: 0.52s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(61) { --sx: 25vmin;  --sy: 92vmin; animation-delay: 0.35s; animation-duration: 3.9s;  }
.win-shooting-stars span:nth-child(62) { --sx: -25vmin; --sy: 92vmin; animation-delay: 0.18s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(63) { --sx: -25vmin; --sy: -92vmin; animation-delay: 0.45s; animation-duration: 4s;   }
.win-shooting-stars span:nth-child(64) { --sx: 25vmin;  --sy: -92vmin; animation-delay: 0.28s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(65) { --sx: 10vmin;  --sy: 98vmin; animation-delay: 0.5s;  animation-duration: 3.7s;  }
.win-shooting-stars span:nth-child(66) { --sx: -10vmin; --sy: 98vmin; animation-delay: 0.12s; animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(67) { --sx: -10vmin; --sy: -98vmin; animation-delay: 0.38s; animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(68) { --sx: 10vmin;  --sy: -98vmin; animation-delay: 0.22s; animation-duration: 3.9s;  }
.win-shooting-stars span:nth-child(69) { --sx: 5vmin;   --sy: 100vmin; animation-delay: 0.48s; animation-duration: 4.3s;  }
.win-shooting-stars span:nth-child(70) { --sx: -5vmin;  --sy: 100vmin; animation-delay: 0.3s;  animation-duration: 4s;   }
.win-shooting-stars span:nth-child(71) { --sx: -5vmin;  --sy: -100vmin; animation-delay: 0.15s; animation-duration: 4.2s;  }
.win-shooting-stars span:nth-child(72) { --sx: 5vmin;   --sy: -100vmin; animation-delay: 0.42s; animation-duration: 3.8s;  }
.win-shooting-stars span:nth-child(73) { --sx: 95vmin;  --sy: 8vmin; animation-delay: 0.25s; animation-duration: 4.4s;  }
.win-shooting-stars span:nth-child(74) { --sx: -95vmin; --sy: 8vmin; animation-delay: 0.5s;  animation-duration: 4.1s;  }
.win-shooting-stars span:nth-child(75) { --sx: -95vmin; --sy: -8vmin; animation-delay: 0.2s;  animation-duration: 3.9s;  }

@keyframes shootingStarBurst {
  0% {
    transform: translate(0, 0) scale(0.1) rotate(0deg);
    opacity: 1;
  }
  15% {
    transform: translateX(var(--sx)) translateY(var(--sy)) scale(1.2) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translateX(calc(var(--sx) * 1.5)) translateY(calc(var(--sy) * 1.5)) scale(0.8) rotate(720deg);
    opacity: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 430px) {
  .top-bar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }
  
  .brand {
    order: 1;
  }
  
  .primary-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-divider);
  }
  
  .top-search {
    order: 2;
    position: relative;
    left: auto;
    transform: none;
    flex: 1;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  
  .top-actions {
    order: 4;
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-divider);
  }
  
  .menu-toggle {
    display: block;
    order: 5;
  }
  
  .balance-display {
    font-size: 13px;
  }
  
  .deposit-button {
    padding: 6px 12px;
    font-size: 12px;
    height: 32px;
  }
  
  .category-tabs {
    padding: 8px 12px;
    padding-bottom: 8px; /* keep scrollbar space on mobile */
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable;
    top: auto;
    position: relative;
  }
  
  .category-chip {
    font-size: 13px;
    padding: 6px 0;
  }
  
  .hero-banner {
    margin: 12px;
    margin-top: 8px;
    min-height: 240px;
    height: 280px;
    width: calc(100% - 24px);
    border-radius: 12px; /* ensure all corners, including right, are rounded on mobile */
    overflow: hidden;
  }
  
  .banner-slide {
    width: 100%;
    height: 100%;
  }
  
  .banner-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (min-width: 431px) {
  .top-bar {
    flex-wrap: nowrap;
  }
  
  .primary-nav {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
}

/* Pool Detail Screen – fit to one page */
#pool-detail.panel {
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  display: none; /* Hidden by default, shown only when .visible */
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
}

#pool-detail.panel.visible {
  display: flex;
}

.pool-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
  min-height: 0;
  align-content: start;
}

@media (max-width: 900px) {
  .pool-detail-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  color: var(--color-text-3);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--color-text-3);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--link-color);
}

.breadcrumbs span {
  margin: 0 8px;
  color: var(--color-text-3);
}

/* Product Images */
.product-images {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.product-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--link-color);
}

.product-thumbnail .pool-img,
.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.pool-detail-main-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.pool-detail-main-image-wrap .pool-img,
.pool-detail-main-image-wrap img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.product-main-image {
  flex: 1;
  min-height: 220px;
  max-height: 280px;
  border-radius: 12px;
  background: var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, rgba(74, 104, 255, 0.1), rgba(74, 104, 255, 0.05));
}

@media (max-width: 600px) {
  .product-images {
    flex-direction: column-reverse;
  }
  
  .product-thumbnails {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .product-thumbnail {
    flex-shrink: 0;
  }
  
  .product-main-image {
    min-height: 200px;
    max-height: 240px;
    font-size: 60px;
  }
}

/* Product Title and Meta */
.product-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}

.product-meta-and-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--color-text-3);
}

.product-value,
.product-entry-price,
.product-draw-type {
  font-weight: 400;
  color: var(--color-text-3);
}

/* Product Description – clamp so page fits */
.product-description {
  margin-top: 4px;
}

.product-description h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text);
}

.product-description p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pool Interaction Right Column */
.pool-detail-right {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 0;
}

.pool-detail-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  min-width: 0;
}

.pool-detail-right-header .pools-heading {
  margin: 0;
}

.pool-detail-right-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pool-detail-right-logo {
  max-height: 88px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Smaller size for Incredible Connection logo */
.pool-detail-right-logo[alt="Incredible Connection"],
.pool-detail-right-logo[src*="Incredible_Connection"] {
  max-height: 44px;
}

/* Slightly smaller size for Hirsch's logo */
.pool-detail-right-logo[alt="Hirsch's"],
.pool-detail-right-logo[src*="Hirsch"] {
  max-height: 66px;
}

/* Slightly smaller size for Flight Centre logo */
.pool-detail-right-logo[alt="Flight Centre"],
.pool-detail-right-logo[src*="logo-flight-logo"] {
  max-height: 70px;
}

/* Bigger size for iStore logo on right */
.pool-detail-right-logo[alt="iStore"],
.pool-detail-right-logo[src*="iStore-logo"] {
  max-height: 150px;
}

/* Bigger size for Studio88 logo on right */
.pool-detail-right-logo[alt="Studio88"],
.pool-detail-right-logo[src*="studio88 logo"] {
  max-height: 120px;
}

/* Size for Shell logo on right */
.pool-detail-right-logo[alt="Shell"],
.pool-detail-right-logo[src*="Shell logo"] {
  max-height: 100px;
}

.pools-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

/* Pool Type Tabs – component tabs style guide */
.pool-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.pool-type-tab {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}

.pool-type-tab .lock-icon {
  flex-shrink: 0;
  order: -1;
}

.pool-type-tab .pool-type-tab-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Not selected – Locked */
.pool-type-tab.locked:not(.active) {
  background: #FFFFFF;
  color: #212121;
  border-color: #E4E7EC;
  cursor: not-allowed;
}

/* Not selected – Open */
.pool-type-tab.status-open:not(.active) {
  background: #E8F7DC;
  color: #5a9e3d;
  border-color: #b8e0a0;
}

/* Not selected – Filling (early) */
.pool-type-tab.status-filling.filling-early:not(.active) {
  background: #F7E8DC;
  color: #b8723d;
  border-color: #e8c4a8;
}

/* Not selected – Filling (late) */
.pool-type-tab.status-filling.filling-late:not(.active) {
  background: #F7DCDC;
  color: #c43d3d;
  border-color: #f0b0b0;
}

/* Not selected – Filled */
.pool-type-tab.status-filled:not(.active) {
  background: #FFFFFF;
  color: #6b7280;
  border-color: #E4E7EC;
}

/* Not selected – Unavailable (pool isn't available) */
.pool-type-tab.unavailable:not(.active) {
  background: #F0F0F0;
  color: #9ca3af;
  border-color: #e5e7eb;
}

/* Selected – Locked */
.pool-type-tab.active.locked {
  background: #FFFFFF;
  color: #000000;
  border-color: #000000;
  font-weight: 600;
}

/* Selected – Open */
.pool-type-tab.active.status-open {
  background: #80DD6D;
  color: #1a4d0d;
  border-color: #5ab84a;
  font-weight: 600;
}

/* Selected – Filling (early, &lt;50%) */
.pool-type-tab.active.status-filling.filling-early {
  background: #D88F51;
  color: #4a2a10;
  border-color: #b8723d;
  font-weight: 600;
}

/* Selected – Filling (late, >50%): primary yellow */
.pool-type-tab.active.status-filling.filling-late {
  background: #FCBA3F;
  color: #2a2000;
  border-color: #E5A82E;
  font-weight: 600;
}

/* Selected – Filled */
.pool-type-tab.active.status-filled {
  background: #FFFFFF;
  color: #000000;
  border-color: #000000;
  font-weight: 600;
}

.pool-type-tab span {
  flex-shrink: 0;
}

/* Dark theme overrides for pool type tabs */
body.theme-dark .pool-type-tab.locked:not(.active) {
  background: #1a1a1a;
  color: #d1d5db;
  border-color: #374151;
}

body.theme-dark .pool-type-tab.status-open:not(.active) {
  background: rgba(128, 221, 109, 0.12);
  color: #80DD6D;
  border-color: rgba(128, 221, 109, 0.4);
}

body.theme-dark .pool-type-tab.status-filling.filling-early:not(.active) {
  background: rgba(216, 143, 81, 0.15);
  color: #e8a85c;
  border-color: rgba(216, 143, 81, 0.35);
}

body.theme-dark .pool-type-tab.status-filling.filling-late:not(.active) {
  background: rgba(255, 70, 70, 0.15);
  color: #ff7070;
  border-color: rgba(255, 70, 70, 0.4);
}

body.theme-dark .pool-type-tab.status-filled:not(.active) {
  background: #1a1a1a;
  color: #9ca3af;
  border-color: #374151;
}

body.theme-dark .pool-type-tab.unavailable:not(.active) {
  background: #2a2a2a;
  color: #6b7280;
  border-color: #374151;
}

body.theme-dark .pool-type-tab.active.locked,
body.theme-dark .pool-type-tab.active.status-filled {
  background: #1a1a1a;
  color: #f5f5f5;
  border-color: #e5e7eb;
}

body.theme-dark .pool-type-tab.active.status-open {
  background: #80DD6D;
  color: #0a2e06;
  border-color: #5ab84a;
}

body.theme-dark .pool-type-tab.active.status-filling.filling-early {
  background: #D88F51;
  color: #1a0d04;
  border-color: #b8723d;
}

body.theme-dark .pool-type-tab.active.status-filling.filling-late {
  background: #FCBA3F;
  color: #2a2000;
  border-color: #E5A82E;
}

@media (max-width: 900px) {
  .pool-type-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .pool-type-tab {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .pool-type-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .pool-type-tab {
    padding: 10px 8px;
    font-size: 12px;
  }
}

/* Sponsor logo above pool code (e.g. Breitling on Navitimer pool) */
.pool-detail-sponsor-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
}

.pool-detail-sponsor-logo {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  vertical-align: top;
}

/* Smaller size for Incredible Connection logo */
.pool-detail-sponsor-logo[alt="Incredible Connection"],
.pool-detail-sponsor-logo[src*="Incredible_Connection"] {
  max-height: 60px;
}

/* Slightly smaller size for Hirsch's logo */
.pool-detail-sponsor-logo[alt="Hirsch's"],
.pool-detail-sponsor-logo[src*="Hirsch"] {
  max-height: 90px;
}

/* Slightly smaller size for Flight Centre logo */
.pool-detail-sponsor-logo[alt="Flight Centre"],
.pool-detail-sponsor-logo[src*="logo-flight-logo"] {
  max-height: 95px;
}

/* Bigger size for iStore logo */
.pool-detail-sponsor-logo[alt="iStore"],
.pool-detail-sponsor-logo[src*="iStore-logo"] {
  max-height: 180px;
}

/* Bigger size for Studio88 logo */
.pool-detail-sponsor-logo[alt="Studio88"],
.pool-detail-sponsor-logo[src*="studio88 logo"] {
  max-height: 150px;
}

/* Size for Shell logo */
.pool-detail-sponsor-logo[alt="Shell"],
.pool-detail-sponsor-logo[src*="Shell logo"] {
  max-height: 130px;
}

/* Pool Status Info */
.pool-status-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-divider);
  flex-wrap: wrap;
  min-width: 0;
}

.pool-status-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-success);
  white-space: nowrap;
  flex-shrink: 0;
}

.pool-status-text.locked {
  color: #9CA3AF;
}

.pool-code {
  font-size: 12px;
  color: var(--color-text-3);
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  white-space: normal;
  min-width: 0;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-all;
  text-align: right;
}

.pool-code code {
  font-family: "SF Mono", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, monospace;
  color: var(--link-color);
  overflow-wrap: break-word;
  word-break: break-all;
}

/* Slots Grid – one line per slot: number, profile picture, user name */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.slot-display {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.slot-display.filled {
  background: #F5F5F5;
  border-color: #E0E0E0;
}

body.theme-dark .slot-display.filled {
  background: #2a2a2a;
  border-color: #374151;
}

.slot-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  min-width: 1.25em;
  flex-shrink: 0;
}

.slot-status {
  font-size: 12px;
  color: var(--color-text-3);
}

.slot-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--link-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #FFFFFF;
  flex-shrink: 0;
  overflow: hidden;
}

.slot-user-avatar .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.slot-user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Buy Slots Section */
.buy-slots-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
}

.buy-slots-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-text);
}

/* Container: white, rounded corners, subtle shadow */
.slot-selection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Buy slot buttons: wider, light grey, shading at bottom; numbers bold black, filled = blank */
.slot-selection-btn {
  min-height: 44px;
  height: 44px;
  min-width: 52px;
  width: 100%;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #F0F0F0;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.slot-selection-btn:hover:not(:disabled) {
  background: #E8E8E8;
  border-color: #D5D5D5;
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.slot-selection-btn.selected {
  background: #FF9500;
  color: #FFFFFF;
  border-color: #E68600;
  box-shadow: 0 3px 0 0 rgba(200, 100, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.slot-selection-btn:disabled,
.slot-selection-btn.filled {
  cursor: not-allowed;
  background: #F0F0F0;
  color: transparent;
  border-color: #E0E0E0;
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.slot-selection-btn.filled:hover {
  background: #F0F0F0;
  border-color: #E0E0E0;
}

.slot-price-info {
  margin-bottom: 8px;
}

.slot-price-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.slot-total-info {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--color-text-2);
}

.slot-total-label {
  font-weight: 500;
}

.slot-total-value {
  font-weight: 700;
  color: var(--color-text);
}

.enter-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

.enter-button:hover {
  background: var(--color-primary-light) !important;
}

.draw-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.draw-button:hover {
  background: #B91C1C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.draw-button:active {
  transform: translateY(0);
}

.draw-buttons-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.draw-buttons-row .draw-button,
.draw-buttons-row .enter-button,
.draw-buttons-row .auto-pick-button,
.draw-buttons-row .demo-button {
  flex: 1;
  margin-bottom: 0;
}

.demo-notice {
  font-size: 12px;
  color: var(--color-text-3);
  margin: 10px 0 6px;
  font-style: italic;
}

.draw-demo-row {
  margin-top: 0;
}

.demo-button {
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #C41E3A !important;
  color: #ffffff !important;
}

.demo-button:hover {
  background: #A01830 !important;
  filter: brightness(1.05);
}

.auto-pick-button {
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-surface) !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auto-pick-button:hover {
  background: rgba(252, 186, 63, 0.1) !important;
}

.ticket-draw-info {
  background: var(--color-primary);
  color: #000000;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
}

.forced-win-button {
  background: var(--color-divider) !important;
  color: var(--color-text) !important;
  font-size: 14px;
}

.forced-win-button:hover {
  background: var(--color-text-muted) !important;
  color: var(--color-surface) !important;
}
}

.back-to-pools-button {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .app-shell {
    width: 100%;
    max-width: 1100px;   /* wider than original mobile, not full screen */
    border-radius: 24px; /* keep nice rounded frame on desktop/tablet */
    overflow: hidden;
  }

  .quick-nav {
    justify-content: initial;
  }

  .chatbot-widget,
  .chatbot-toggle {
    right: 20px;
  }
}

