/* ============================================
   NinjaBet Predictor - Global Styles
   ============================================ */

:root {
  --bg-dark: #0a0a1a;
  --bg-card: rgba(20, 20, 45, 0.75);
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.5);
  --purple-glow: rgba(124, 58, 237, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-glass: rgba(255, 255, 255, 0.1);
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --wood-dark: #3d2314;
  --wood-light: #6b4423;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font-ar: 'Segoe UI', Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   Elite Theme — All Pages
   ============================================ */

.page-elite {
  --login-primary: #c0c1ff;
  --login-secondary: #ddb7ff;
  --login-on-surface: #dae2fd;
  --login-on-surface-variant: #c7c4d7;
  --login-outline: #908fa0;
  --login-outline-variant: #464554;
  --login-surface-low: #131b2e;
  --login-surface-lowest: #060e20;
  --elite-gold: #d4af37;
  --elite-gold-soft: rgba(212, 175, 55, 0.14);

  background-color: #070b14;
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -15%, rgba(212, 175, 55, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 85% 55% at 100% 85%, rgba(124, 58, 237, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 75% 50% at 0% 75%, rgba(6, 182, 212, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(192, 193, 255, 0.08) 0%, transparent 60%),
    linear-gradient(165deg, #0c1224 0%, #080d18 38%, #050810 100%);
  background-attachment: fixed;
  color: var(--login-on-surface);
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.page-elite .glass-card {
  background: rgba(18, 26, 46, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 0.75rem;
  position: relative;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-elite .neon-border,
.page-elite .glow-effect {
  box-shadow:
    0 0 40px rgba(192, 193, 255, 0.18),
    0 0 80px rgba(212, 175, 55, 0.06);
}

.page-elite .glass-card:hover {
  box-shadow:
    0 0 50px rgba(192, 193, 255, 0.24),
    0 0 90px rgba(212, 175, 55, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.page-elite .login-glass-border {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  pointer-events: none;
  transition: border-color 0.5s ease;
  z-index: 0;
}

.page-elite .glass-card:hover .login-glass-border {
  border-color: rgba(192, 193, 255, 0.3);
}

.page-elite .gradient-text {
  background: linear-gradient(to right, var(--login-primary), var(--login-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-elite .btn-primary,
.page-elite .login-submit-style {
  background: linear-gradient(to right, var(--login-primary), var(--login-secondary));
  color: #1000a9;
  box-shadow: 0 4px 20px rgba(192, 193, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-elite .btn-primary:hover,
.page-elite .login-submit-style:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(192, 193, 255, 0.4);
}

.page-elite .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--login-on-surface);
}

.page-elite .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.02);
}

.page-elite .btn-outline {
  border-color: var(--login-primary);
  color: var(--login-primary);
  background: transparent;
}

.page-elite .btn-outline:hover {
  background: rgba(192, 193, 255, 0.1);
}

.page-elite .btn-copy {
  background: rgba(192, 193, 255, 0.15);
  border: 1px solid var(--login-primary);
  color: var(--login-primary);
}

.page-elite .link-btn {
  color: var(--login-primary);
}

.page-elite .back-link {
  color: var(--login-on-surface-variant);
}

.page-elite .back-link:hover {
  color: var(--login-primary);
}

.page-elite .alert-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.page-elite .alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.page-elite .elite-select,
.page-elite .elite-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--login-surface-lowest);
  border: 1px solid rgba(70, 69, 84, 0.5);
  border-radius: 0.5rem;
  color: var(--login-on-surface);
  font-family: inherit;
  font-size: 1rem;
}

.page-elite .elite-select:focus,
.page-elite .elite-form select:focus {
  outline: none;
  border-color: var(--login-primary);
  box-shadow: 0 0 0 1px var(--login-primary);
}

/* Shared ambient background */
.login-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.login-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 193, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 193, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 78%);
}

.login-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.07) 0%, transparent 42%),
    radial-gradient(ellipse at center, transparent 35%, rgba(2, 4, 10, 0.55) 100%);
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: blobFloat 8s ease-in-out infinite;
}

.ambient-blob-1 {
  top: -12%;
  left: -8%;
  width: 52%;
  height: 52%;
  background: rgba(192, 193, 255, 0.11);
  filter: blur(110px);
}

.ambient-blob-2 {
  bottom: -12%;
  right: -8%;
  width: 44%;
  height: 44%;
  background: rgba(221, 183, 255, 0.1);
  filter: blur(100px);
  animation-delay: -3s;
}

.ambient-blob-3 {
  top: 28%;
  left: 58%;
  width: 34%;
  height: 34%;
  background: rgba(255, 185, 95, 0.08);
  filter: blur(90px);
  animation-delay: -5s;
}

.ambient-blob-4 {
  bottom: 8%;
  left: 12%;
  width: 38%;
  height: 38%;
  background: rgba(212, 175, 55, 0.09);
  filter: blur(95px);
  animation-delay: -2s;
}

.ambient-blob-5 {
  top: 55%;
  right: 18%;
  width: 28%;
  height: 28%;
  background: rgba(6, 182, 212, 0.08);
  filter: blur(80px);
  animation-delay: -6s;
}

.ambient-shine {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 140%;
  height: 55%;
  transform: translateX(-50%) rotate(-8deg);
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.06) 0%,
    rgba(192, 193, 255, 0.04) 35%,
    transparent 72%
  );
  animation: ambientShine 10s ease-in-out infinite alternate;
}

@keyframes ambientShine {
  from { opacity: 0.65; transform: translateX(-50%) rotate(-8deg) scale(1); }
  to { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1.04); }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.animate-in {
  animation: loginFadeUp 0.7s ease forwards;
  opacity: 0;
}

.animate-in-delay {
  animation-delay: 0.15s;
}

.animate-in-delay-2 {
  animation-delay: 0.3s;
}

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

/* Shared logo — game & admin header */
.game-logo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.55);
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.35),
    0 0 40px rgba(192, 193, 255, 0.15);
  background: radial-gradient(circle at 50% 42%, #2a2218 0%, #0a0806 100%);
  flex-shrink: 0;
}

.game-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  transform: translate(-50%, -50%) scale(1.28);
  transform-origin: center center;
}

.game-header-brand,
.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Background glow effects (legacy — hidden on elite pages) */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-purple {
  width: 500px;
  height: 500px;
  background: var(--purple);
  top: -150px;
  right: -100px;
}

.bg-glow-blue {
  width: 400px;
  height: 400px;
  background: var(--blue);
  bottom: -100px;
  left: -100px;
}

/* Glass card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

.neon-border {
  box-shadow:
    0 0 20px var(--purple-glow),
    0 0 40px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card {
  padding: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--purple-glow), 0 0 20px var(--cyan-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-copy {
  background: rgba(6, 182, 212, 0.2);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-copy:hover {
  background: rgba(6, 182, 212, 0.35);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.link-btn {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: underline;
  transition: color var(--transition);
}

.link-btn:hover {
  color: var(--purple-light);
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* Alerts */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  animation: modalIn 0.3s ease;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--warning);
}

.modal-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

/* ============================================
   Warning Page
   ============================================ */

.page-warning {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.warning-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
}

.warning-card {
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.warning-card-inner {
  position: relative;
  z-index: 1;
}

.warning-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.warning-subtitle {
  color: var(--login-on-surface-variant);
  margin-bottom: 1.5rem;
}

.page-elite .rules-list li {
  color: var(--login-on-surface);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.page-elite .promo-box {
  background: var(--login-surface-lowest);
  border-color: var(--login-primary);
}

.page-elite .promo-code {
  color: var(--login-primary);
  text-shadow: 0 0 20px rgba(192, 193, 255, 0.4);
}

.page-elite .modal-content {
  background: rgba(30, 41, 59, 0.95);
  position: relative;
  overflow: hidden;
}

.page-elite .modal-inner {
  position: relative;
  z-index: 1;
}

.page-elite .modal-title {
  color: var(--login-secondary);
}

.rules-list {
  list-style: none;
  text-align: right;
  margin-bottom: 1.5rem;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.check-icon {
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

.promo-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--cyan);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.promo-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.promo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.promo-code {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

/* ============================================
   Login Page — Elite Design
   ============================================ */

.page-login-elite {
  --login-bg: #000000;
  --login-primary: #c0c1ff;
  --login-secondary: #ddb7ff;
  --login-tertiary: #ffb95f;
  --login-surface-low: #131b2e;
  --login-surface-lowest: #060e20;
  --login-on-surface: #dae2fd;
  --login-on-surface-variant: #c7c4d7;
  --login-outline: #908fa0;
  --login-outline-variant: #464554;

  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient blobs defined in Elite Theme section above */

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.login-header {
  text-align: center;
}

.login-logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(212, 175, 55, 0.6);
  box-shadow:
    0 0 28px rgba(212, 175, 55, 0.35),
    0 0 55px rgba(192, 193, 255, 0.15),
    inset 0 0 18px rgba(212, 175, 55, 0.08);
  background: radial-gradient(circle at 50% 42%, #2a2218 0%, #0a0806 100%);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: logoRingGlow 3s ease-in-out infinite alternate;
}

.login-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
  display: block;
  transform: translate(-50%, -50%) scale(1.28);
  transform-origin: center center;
  transition: transform 0.4s ease;
}

.login-logo-wrap:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 36px rgba(212, 175, 55, 0.45),
    0 0 65px rgba(192, 193, 255, 0.2);
}

.login-logo-wrap:hover .login-logo {
  transform: translate(-50%, -50%) scale(1.32);
}

@keyframes logoRingGlow {
  from {
    box-shadow:
      0 0 22px rgba(212, 175, 55, 0.25),
      0 0 45px rgba(192, 193, 255, 0.1);
  }
  to {
    box-shadow:
      0 0 34px rgba(212, 175, 55, 0.42),
      0 0 60px rgba(192, 193, 255, 0.18);
  }
}

.login-brand {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: clamp(2.5rem, 8vw, 3rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(to right, var(--login-primary), var(--login-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-tagline {
  color: var(--login-on-surface-variant);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Glass card */
.login-glass {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  overflow: hidden;
  transition: box-shadow 0.5s ease;
}

.login-glass.glow-effect {
  box-shadow: 0 0 40px rgba(192, 193, 255, 0.15);
}

.login-glass:hover {
  box-shadow: 0 0 50px rgba(192, 193, 255, 0.25);
}

.login-glass-border {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  pointer-events: none;
  transition: border-color 0.5s ease;
}

.login-glass:hover .login-glass-border {
  border-color: rgba(192, 193, 255, 0.3);
}

.login-glass-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-alert {
  margin-bottom: 0;
}

/* Platform toggle */
.platform-label {
  color: var(--login-on-surface-variant);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.5rem 0 0.75rem;
  text-align: center;
}

.platform-toggle {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: var(--login-surface-low);
  border: 1px solid rgba(70, 69, 84, 0.3);
  border-radius: 0.5rem;
}

.platform-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: transparent;
}

.platform-toggle-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-toggle-btn.active {
  background: rgba(192, 193, 255, 0.15);
  border-color: var(--login-primary);
  box-shadow: 0 4px 20px rgba(192, 193, 255, 0.2);
}

.platform-toggle-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
}

.platform-toggle-logo {
  width: 100%;
  max-width: 100px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.platform-toggle-btn.active .platform-toggle-logo {
  transform: scale(1.05);
}

/* Icon inputs */
.login-form-elite {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-icon-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--login-outline);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.input-icon-wrap input {
  width: 100%;
  padding: 0.875rem 2.75rem;
  background: var(--login-surface-lowest);
  border: 1px solid rgba(70, 69, 84, 0.5);
  border-radius: 0.5rem;
  color: var(--login-on-surface);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-icon-wrap input::placeholder {
  color: var(--login-outline-variant);
}

.input-icon-wrap input:focus {
  outline: none;
  border-color: var(--login-primary);
  box-shadow: 0 0 0 1px var(--login-primary);
}

.password-toggle {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--login-outline);
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--login-primary);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .icon-hide {
  display: none;
}

.password-toggle.visible .icon-show {
  display: none;
}

.password-toggle.visible .icon-hide {
  display: block;
}

/* Submit button */
.login-submit {
  position: relative;
  width: 100%;
  padding: 0.875rem 1.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(to right, var(--login-primary), var(--login-secondary));
  color: #1000a9;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(192, 193, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(192, 193, 255, 0.4);
}

.login-submit:active {
  transform: scale(0.98);
}

.login-submit-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-submit-text svg {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}

.login-submit-shine {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 1;
}

.login-submit:hover .login-submit-shine {
  transform: translateY(0);
}

/* Divider & footer */
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-divider span:first-child,
.login-divider span:last-child {
  flex: 1;
  height: 1px;
  background: rgba(70, 69, 84, 0.3);
}

.login-divider-text {
  color: var(--login-outline);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.login-footer-text {
  text-align: center;
  color: var(--login-on-surface-variant);
  font-size: 1rem;
  margin: 0;
}

.login-footer-link {
  color: var(--login-secondary);
  font-weight: 700;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

.login-footer-link:hover {
  color: var(--login-primary);
}

/* Trust footer */
.login-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  font-size: 0.75rem;
  color: var(--login-outline);
  flex-wrap: wrap;
}

.login-trust svg {
  width: 16px;
  height: 16px;
}

.login-trust-dot {
  margin: 0 0.25rem;
}

/* Entrance animations — defined in Elite Theme section */

/* Legacy login classes (other pages) */
.page-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.login-card {
  animation: fadeUp 0.6s ease;
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--purple-glow);
}

.logo-text {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.page-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.platform-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.platform-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-card.selected {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.platform-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.platform-logo {
  width: 100%;
  max-width: 140px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
  display: block;
  margin: 0 auto;
}

.platform-card.selected .platform-logo {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .login-glass {
    padding: 1.5rem;
  }

  .login-logo-wrap {
    width: 150px;
    height: 150px;
  }

  .platform-toggle {
    flex-direction: column;
  }

  .platform-toggle-logo {
    max-width: 120px;
    height: 32px;
  }
}

.admin-note {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.page-elite .admin-note strong {
  color: var(--login-primary);
  letter-spacing: 0.1em;
}

.warning-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   Game Page — Pro
   ============================================ */

.page-game-pro {
  min-height: 100vh;
  padding: 1rem 1rem 2rem;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.game-spotlight {
  position: fixed;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: min(720px, 70vh);
  background:
    radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(192, 193, 255, 0.06) 32%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: spotlightPulse 4s ease-in-out infinite alternate;
}

@keyframes spotlightPulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Header */
.game-header-pro {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.game-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.game-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--login-outline);
  font-weight: 600;
}

.game-title-pro {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.game-logo-wrap-lg {
  width: 64px;
  height: 64px;
  border-width: 3px;
}

.game-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  min-width: 90px;
}

.stat-pill-label {
  font-size: 0.65rem;
  color: var(--login-outline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-pill-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--login-on-surface);
}

.stat-pill-live {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.stat-pill-live .stat-pill-value {
  color: #86efac;
  font-size: 0.8rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: liveBlink 1.5s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Main layout */
.game-main-pro {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
}

.game-hero-card {
  position: relative;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
  overflow: hidden;
}

.game-hero-inner {
  position: relative;
  z-index: 1;
}

.game-hero-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--login-on-surface-variant);
  letter-spacing: 0.02em;
}

.game-layout-pro {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Board */
.game-board-pro {
  position: relative;
  flex: 1;
  min-width: 300px;
  max-width: 620px;
  width: 100%;
  padding: 1.25rem;
  overflow: hidden;
}

.board-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(192, 193, 255, 0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: boardShimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes boardShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.game-board-pro.scanning .board-shimmer {
  animation: scanFlash 0.6s ease-in-out;
}

@keyframes scanFlash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; background: rgba(192, 193, 255, 0.12); }
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.board-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  background: rgba(192, 193, 255, 0.12);
  border: 1px solid rgba(192, 193, 255, 0.25);
  border-radius: 20px;
  color: var(--login-primary);
}

.board-status {
  font-size: 0.8rem;
  color: var(--login-outline);
  transition: color 0.3s ease;
}

.board-status[data-state="loading"] {
  color: var(--login-secondary);
  animation: statusPulse 1s ease-in-out infinite;
}

.board-status[data-state="done"] {
  color: #86efac;
}

.board-status[data-state="error"] {
  color: #fca5a5;
}

.game-quota-hint {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--login-primary);
}

.game-quota-hint.quota-empty {
  color: #fca5a5;
}

.stat-pill-quota.quota-depleted {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.predict-btn-count {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-inline-start: 0.35rem;
}

.predict-limit-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.predict-limit-input {
  width: 4.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(70, 69, 84, 0.55);
  background: rgba(8, 8, 16, 0.65);
  color: var(--login-primary);
  font-family: inherit;
  font-weight: 700;
}

.predict-usage-badge {
  display: inline-block;
  font-weight: 700;
  color: var(--login-primary);
}

.predict-used-hint {
  display: block;
  margin-top: 0.25rem;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.board-with-rows {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.row-labels {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 0.65rem;
  min-width: 76px;
  align-self: stretch;
  padding: 0;
}

.row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  background: rgba(8, 8, 16, 0.55);
  border: 1px solid rgba(70, 69, 84, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.02em;
  transition: all 0.35s ease;
  min-height: 0;
}

.row-mult-value {
  white-space: nowrap;
}

.row-label.active {
  color: var(--login-primary);
  border-color: rgba(192, 193, 255, 0.55);
  background: rgba(192, 193, 255, 0.12);
  box-shadow: 0 0 18px rgba(192, 193, 255, 0.25);
  transform: scale(1.06);
  text-shadow: 0 0 12px rgba(192, 193, 255, 0.5);
}

.grid-container-pro {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0.65rem;
}

.tile-pro {
  aspect-ratio: 1;
  position: relative;
}

.tile-inner-pro {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, #ef5350 0%, #c62828 38%, #8b1515 68%, #5a0a0a 100%);
  border: 3px solid #3a0808;
  box-shadow:
    inset 0 4px 14px rgba(255, 170, 170, 0.38),
    inset 0 -6px 16px rgba(0, 0, 0, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tile-pro:hover .tile-inner-pro {
  transform: scale(1.04);
  box-shadow:
    inset 0 4px 14px rgba(255, 170, 170, 0.45),
    0 0 20px rgba(198, 40, 40, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.5);
}

.tile-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 220, 220, 0.18);
  box-shadow:
    inset 0 2px 8px rgba(255, 200, 200, 0.12),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

.apple-icon-pro {
  width: 92%;
  height: 92%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.35) rotate(-12deg);
  transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 2;
}

.tile-pro.revealed .apple-icon-pro {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  width: 100%;
  height: 100%;
}

.tile-pro.revealed .tile-inner-pro {
  border-color: #2d6b3d;
  background: #0f2e1a;
  animation: appleGlowPro 1.2s ease-in-out infinite alternate;
}

.tile-pro.revealed .tile-ring {
  opacity: 0;
}

.tile-pro.pulse .tile-inner-pro {
  animation: tilePop 0.5s ease;
}

@keyframes tilePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes appleGlowPro {
  from {
    box-shadow:
      0 0 16px rgba(61, 159, 88, 0.45),
      0 0 32px rgba(61, 159, 88, 0.2),
      inset 0 0 12px rgba(86, 184, 106, 0.18);
  }
  to {
    box-shadow:
      0 0 26px rgba(86, 184, 106, 0.75),
      0 0 50px rgba(61, 159, 88, 0.35),
      inset 0 0 18px rgba(140, 230, 160, 0.22);
  }
}

.game-board-pro.revealed-state {
  box-shadow: 0 0 60px rgba(192, 193, 255, 0.2), 0 0 30px rgba(34, 197, 94, 0.15);
}

/* Multipliers ladder */
.multipliers-pro {
  position: relative;
  padding: 1.25rem;
  min-width: 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
}

.multipliers-header {
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.multipliers-title-pro {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  background: linear-gradient(to right, var(--login-primary), var(--login-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.multipliers-sub {
  font-size: 0.75rem;
  color: var(--login-outline);
}

.multiplier-ladder {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.multiplier-item-pro {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(70, 69, 84, 0.45);
  border-radius: 0.5rem;
  transition: all 0.35s ease;
}

.mult-row {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: var(--login-outline);
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.mult-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.mult-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(to right, var(--login-primary), var(--login-secondary));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.multiplier-value-pro {
  font-weight: 800;
  font-size: 1rem;
  color: var(--login-outline);
  min-width: 52px;
  text-align: left;
  transition: all 0.35s ease;
}

.multiplier-item-pro.active {
  border-color: var(--login-primary);
  background: rgba(192, 193, 255, 0.1);
  box-shadow: 0 0 20px rgba(192, 193, 255, 0.2);
  transform: translateX(-4px);
}

.multiplier-item-pro.active .mult-row {
  background: linear-gradient(135deg, var(--login-primary), var(--login-secondary));
  color: #1000a9;
}

.multiplier-item-pro.active .mult-bar::after {
  width: 100%;
}

.multiplier-item-pro.active .multiplier-value-pro {
  color: var(--login-primary);
  text-shadow: 0 0 15px rgba(192, 193, 255, 0.5);
}

/* Controls */
.game-controls-pro {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.5rem;
}

.predict-btn-pro {
  position: relative;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #c0c1ff 0%, #ddb7ff 50%, #ffb95f 100%);
  background-size: 200% 200%;
  animation: btnGradient 4s ease infinite;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 4px 25px rgba(192, 193, 255, 0.35),
    0 0 40px rgba(221, 183, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.predict-btn-pro:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 35px rgba(192, 193, 255, 0.5),
    0 0 60px rgba(221, 183, 255, 0.25);
}

.predict-btn-pro:active:not(:disabled) {
  transform: scale(0.98);
}

.predict-btn-pro:disabled {
  cursor: wait;
  opacity: 0.92;
}

.predict-btn-pro.loading {
  pointer-events: none;
}

.predict-btn-pro.loading .predict-btn-content {
  visibility: hidden;
}

.predict-btn-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1.25rem;
  z-index: 2;
}

.predict-btn-pro.loading .predict-btn-loading {
  display: flex;
}

.predict-btn-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(16, 0, 169, 0.2);
  border-top-color: #1000a9;
  border-radius: 50%;
  animation: predictSpin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes predictSpin {
  to { transform: rotate(360deg); }
}

.predict-btn-loading-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1000a9;
  white-space: nowrap;
}

.predict-btn-pro.loading .predict-btn-glow {
  animation: btnShine 1.2s ease-in-out infinite;
}

.predict-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  animation: btnShine 2.5s ease-in-out infinite;
}

@keyframes btnShine {
  0% { transform: translateX(-100%); }
  40%, 100% { transform: translateX(100%); }
}

.predict-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1000a9;
}

.predict-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  animation: appleBounce 2s ease-in-out infinite;
}

.predict-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

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

.reset-btn-pro {
  padding: 1rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--login-on-surface);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.reset-btn-pro:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(192, 193, 255, 0.35);
  transform: translateY(-2px);
}

/* Particles */
.game-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: 30%;
  font-size: 1.2rem;
  animation: particleFloat 1.2s ease-out forwards;
  opacity: 0;
}

.particle img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  display: block;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.2);
  }
}

/* Legacy game + shared */
.page-game {
  min-height: 100vh;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.game-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.game-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.header-info {
  display: flex;
  gap: 1.5rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--login-outline);
}

.info-value {
  font-weight: 600;
  color: var(--login-on-surface);
}

.page-elite .platform-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  background: rgba(192, 193, 255, 0.15);
  color: var(--login-primary);
  border: 1px solid rgba(192, 193, 255, 0.25);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.game-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.game-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.game-board {
  padding: 1.5rem;
  flex: 1;
  min-width: 280px;
  max-width: 520px;
  position: relative;
  overflow: hidden;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.tile { aspect-ratio: 1; position: relative; }

.tile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--wood-light), var(--wood-dark));
  border: 3px solid #2a1810;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-icon { font-size: 0; opacity: 0; }

.multipliers { padding: 1.5rem; min-width: 160px; }

.multipliers-title {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.multiplier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.multiplier-item {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-glass);
  transition: all var(--transition);
}

.multiplier-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
}

.game-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .game-header-pro {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .game-header-brand {
    justify-content: center;
  }

  .game-stats-bar {
    justify-content: center;
  }

  .game-layout-pro {
    flex-direction: column;
    align-items: center;
  }

  .multipliers-pro {
    width: 100%;
    max-width: 540px;
  }

  .multiplier-ladder {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .multiplier-item-pro {
    flex: 1;
    min-width: 140px;
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .mult-bar {
    width: 100%;
  }

  .row-label.active {
    transform: scale(1.04);
  }

  .grid-container-pro {
    gap: 0.45rem;
  }

  .row-labels {
    gap: 0.45rem;
    min-width: 64px;
  }

  .predict-btn-pro {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .reset-btn-pro {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .row-labels {
    min-width: 58px;
    gap: 0.45rem;
  }

  .row-label {
    font-size: 0.62rem;
    padding: 0.25rem 0.3rem;
  }

  .stat-pill {
    min-width: auto;
    flex: 1;
  }
}

.disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 1rem;
}

/* ============================================
   Admin Pages
   ============================================ */

.page-admin-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.admin-login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.admin-login-card {
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.admin-login-inner {
  position: relative;
  z-index: 1;
}

.admin-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-elite .page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.page-elite .admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-admin-dashboard {
  min-height: 100vh;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.admin-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.admin-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.admin-main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-elite .stat-label {
  color: var(--login-on-surface-variant);
}

.page-elite .section-title {
  color: var(--login-on-surface);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.page-elite .admin-note {
  color: var(--login-on-surface-variant);
}

.page-elite .admin-note strong {
  color: var(--login-primary);
}

.page-elite .users-table th {
  color: var(--login-outline);
}

.page-elite .users-table td {
  color: var(--login-on-surface);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.page-elite .users-table tbody tr:hover {
  background: rgba(192, 193, 255, 0.04);
}

.page-elite .empty-row {
  color: var(--login-outline);
}

.page-elite .admin-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.id-generate-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.id-mode-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.id-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(12, 12, 20, 0.55);
  border: 1px solid rgba(70, 69, 84, 0.45);
  border-radius: 0.85rem;
}

.id-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--login-on-surface-variant);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.id-mode-btn.active {
  background: linear-gradient(135deg, rgba(192, 193, 255, 0.18), rgba(100, 220, 255, 0.12));
  color: var(--login-primary);
  box-shadow: inset 0 0 0 1px rgba(192, 193, 255, 0.25);
}

.id-mode-icon {
  font-size: 1rem;
  line-height: 1;
}

.id-mode-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.id-panel-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--login-primary);
}

.id-length-options {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.id-length-btn {
  min-width: 3.25rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(70, 69, 84, 0.55);
  background: rgba(18, 18, 28, 0.85);
  color: var(--login-on-surface-variant);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.id-length-btn.active {
  border-color: rgba(192, 193, 255, 0.55);
  background: linear-gradient(135deg, rgba(192, 193, 255, 0.22), rgba(100, 220, 255, 0.14));
  color: var(--login-primary);
  box-shadow: 0 0 18px rgba(100, 220, 255, 0.12);
}

.id-length-desc {
  margin-top: 0.35rem;
}

.id-input-block {
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(8, 8, 14, 0.45);
  border: 1px solid rgba(70, 69, 84, 0.35);
}

.id-field-input {
  flex: 1;
  padding: 0.95rem 1rem;
  background: var(--login-surface-lowest);
  border: 1px solid rgba(70, 69, 84, 0.5);
  border-radius: 0.65rem;
  color: var(--login-primary);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.id-field-input:focus {
  outline: none;
  border-color: rgba(192, 193, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 193, 255, 0.12);
}

.id-field-input.id-field-manual {
  letter-spacing: 0.12em;
  cursor: text;
}

.id-field-input:read-only {
  cursor: default;
}

.id-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.id-generate-btn.hidden {
  display: none;
}

.id-generate-btn-icon {
  font-size: 1rem;
  line-height: 1;
}

.id-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.id-char-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--login-outline);
  letter-spacing: 0.06em;
}

.id-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.id-status-pill.ready {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.id-status-pill.pending {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

.id-status-pill.error {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.create-user-actions {
  display: flex;
  justify-content: flex-start;
}

[dir="rtl"] .create-user-actions {
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

.field-label {
  font-size: 0.875rem;
  color: var(--login-on-surface-variant);
  font-weight: 600;
}

.id-generate-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.id-readonly {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--login-surface-lowest);
  border: 1px solid rgba(70, 69, 84, 0.5);
  border-radius: 0.5rem;
  color: var(--login-primary);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  cursor: default;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--login-outline);
  margin: 0;
}

.admin-platform-hint {
  margin-bottom: 1rem;
  color: var(--login-primary);
}

.create-user-row {
  align-items: flex-end;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.admin-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-action {
  margin-bottom: 1.25rem;
}

.table-wrapper {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border-glass);
}

.users-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.users-table tbody tr {
  transition: background var(--transition);
}

.users-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.empty-row {
  text-align: center !important;
  color: var(--text-muted);
  padding: 2rem !important;
}

.inline-form {
  display: inline;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .game-header {
    flex-direction: column;
    text-align: center;
  }

  .header-info {
    justify-content: center;
  }

  .game-layout {
    flex-direction: column;
    align-items: center;
  }

  .multipliers {
    width: 100%;
    max-width: 520px;
  }

  .multiplier-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .multiplier-item {
    flex: 1;
    min-width: 80px;
  }

  .grid-container {
    gap: 0.5rem;
  }

  .tile.revealed .apple-icon {
    font-size: 1.25rem;
  }

  .warning-title {
    font-size: 1.5rem;
  }

  .promo-code {
    font-size: 1.25rem;
  }

  .promo-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.25rem;
  }

  .platform-cards {
    grid-template-columns: 1fr;
  }

  .game-controls {
    flex-direction: column;
  }

  .game-controls .btn {
    width: 100%;
  }

  .stat-value {
    font-size: 2rem;
  }
}
