/* =====================================================
   SATTA MATKA — Modern Clean Result Portal
   Matching Reference Layout with Live Draw, Pulse, & Badges
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@700;800&family=Poppins:wght@600;700;800;900&display=swap');

:root {
  /* Brand palette */
  --maroon-dark:     #5c0919;
  --maroon-header:   #800000;
  --red-title:       #990000;
  --red-accent:      #dc2626;
  --red-divider:     #cc0000;
  
  /* Cool colors palette */
  --panel-blue:      #0284c7;
  --panel-blue-dark: #0369a1;
  --jodi-charcoal:   #0f172a;
  --jodi-red:        #dc2626;
  --slate-border:    #e2e8f0;
  --slate-time:      #334155;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

  /* Tables */
  --table-border:    #111111;
  --table-header-bg: #5c0919;
  --date-col-bg:     #fbf7ee;
  --text-main:       #111827;
  --text-muted:      #4b5563;
}

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

body {
  font-family: var(--font-sans);
  background-color: #f1f5f9;
  color: var(--text-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   HEADER & TOP BAR
   =================================================== */
.site-header {
  background: #f0f9ff;
  border-bottom: 2px solid #bae6fd;
  box-shadow: 0 3px 12px rgba(14, 165, 233, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 12px 16px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Cool Frosty Cyan & Arctic Azure Ambient Luxury Gradient & Micro-Dot Texture */
  background: 
    radial-gradient(ellipse 70% 60% at 50% 18%, rgba(186, 230, 253, 0.75) 0%, rgba(56, 189, 248, 0.2) 45%, transparent 75%),
    radial-gradient(ellipse 45% 55% at 8% 45%, rgba(56, 189, 248, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 92% 45%, rgba(14, 165, 233, 0.22) 0%, transparent 65%),
    radial-gradient(circle, rgba(56, 189, 248, 0.18) 0.8px, transparent 0.8px),
    linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 35%, #e6f4fe 70%, #dbeafe 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 20px 20px, 100% 100%;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 -4px 10px rgba(14, 165, 233, 0.04);
}

.site-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2px;
}

/* ===================================================
   FALLING CURRENCY NOTES ANIMATION (₹500 BANKNOTES)
   =================================================== */
.header-notes-container,
.header-coins-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  perspective: 700px;
}

.falling-note {
  position: absolute;
  top: -45px;
  left: var(--n-x, 50%);
  width: var(--n-w, 42px);
  height: auto;
  pointer-events: none;
  animation: noteFallCascade var(--n-dur, 4.5s) linear infinite;
  animation-delay: var(--n-delay, 0s);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.falling-note .note-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
  animation: noteFlutter3D calc(var(--n-dur, 4.5s) * 0.75) ease-in-out infinite alternate;
  animation-delay: var(--n-delay, 0s);
  transform-origin: center center;
}

@keyframes noteFallCascade {
  0% {
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  85% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(225px) translateX(var(--n-sway, 18px));
    opacity: 0;
  }
}

@keyframes noteFlutter3D {
  0% {
    transform: rotateZ(-12deg) rotateY(-22deg) rotateX(15deg);
  }
  33% {
    transform: rotateZ(6deg) rotateY(18deg) rotateX(-10deg);
  }
  66% {
    transform: rotateZ(-4deg) rotateY(-12deg) rotateX(20deg);
  }
  100% {
    transform: rotateZ(14deg) rotateY(25deg) rotateX(-15deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-notes-container,
  .header-coins-container {
    display: none !important;
  }
}

.site-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.site-logo {
  height: 122px;
  max-width: 500px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 40%, #db2777 80%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1.2;
}

.site-subtitle {
  font-family: var(--font-sans);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #0369a1;
  opacity: 0.85;
  text-transform: none;
  text-align: center;
  margin-top: 1px;
}

.live-time-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  color: #0c4a6e;
  margin-top: 2px;
}

.live-time-box #ist-today-date {
  color: #000000;
  font-weight: 700;
  font-size: 0.65rem;
}

.live-time-sep {
  color: #7dd3fc;
  font-size: 0.56rem;
}

.live-time-text {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.68rem;
  color: #0284c7;
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 45%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  letter-spacing: 0.4px;
}

.live-time-zone {
  font-size: 0.58rem;
  color: #0284c7;
  font-weight: 800;
}

/* Navigation Tabs */
/* ===================================================
   NAVIGATION TABS BAR — COOL THEMED BACKGROUND & 5 UNIQUE BUTTON COLORS
   =================================================== */
.nav-tabs {
  background: linear-gradient(180deg, #edf4f9 0%, #e2ecf5 55%, #d5e3f0 100%);
  border-top: 1px solid rgba(186, 210, 233, 0.85);
  border-bottom: 2px solid #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: safe center;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  gap: 7px;
  padding: 6px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

/* Base Nav Button (Pill Style) */
.nav-tab-btn {
  flex-shrink: 0;
  padding: 5px 13px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.nav-tab-btn[data-tab="buy-ticket"],
.nav-tab-btn[data-tab="jodi"],
.nav-tab-btn[data-tab="panel"] {
  display: none !important;
}

.nav-tab-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: inline-block;
  transition: all 0.2s ease;
}

.nav-tab-btn.active::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-left: 3px;
  flex-shrink: 0;
}

/* ---------------------------------------------------
   BUTTON 1: TODAY'S RESULTS — Cool Azure / Sky Blue
   --------------------------------------------------- */
.nav-tab-btn[data-tab="today"] {
  color: #0284c7;
  border-color: #38bdf8;
  background: #ffffff;
}
.nav-tab-btn[data-tab="today"] .nav-tab-icon {
  stroke: #0284c7;
}
.nav-tab-btn[data-tab="today"]:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22);
}
.nav-tab-btn[data-tab="today"].active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border-color: #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.45);
}
.nav-tab-btn[data-tab="today"].active .nav-tab-icon {
  stroke: #ffffff;
}
.nav-tab-btn[data-tab="today"].active::after {
  background: #bae6fd;
  box-shadow: 0 0 6px rgba(186, 230, 253, 1);
}

/* ---------------------------------------------------
   BUTTON 2: MY TICKETS — Cool Emerald / Mint Green
   --------------------------------------------------- */
.nav-tab-btn[data-tab="my-tickets"] {
  color: #059669;
  border-color: #34d399;
  background: #ffffff;
}
.nav-tab-btn[data-tab="my-tickets"] .nav-tab-icon {
  stroke: #059669;
}
.nav-tab-btn[data-tab="my-tickets"]:hover {
  background: #ecfdf5;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.22);
}
.nav-tab-btn[data-tab="my-tickets"].active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border-color: #059669;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.45);
}
.nav-tab-btn[data-tab="my-tickets"].active .nav-tab-icon {
  stroke: #ffffff;
}
.nav-tab-btn[data-tab="my-tickets"].active::after {
  background: #a7f3d0;
  box-shadow: 0 0 6px rgba(167, 243, 208, 1);
}

/* ---------------------------------------------------
   BUTTON 3: WALLET — Cool Radiant Amber / Gold
   --------------------------------------------------- */
.nav-tab-btn[data-tab="wallet"] {
  color: #d97706;
  border-color: #fbbf24;
  background: #ffffff;
}
.nav-tab-btn[data-tab="wallet"] .nav-tab-icon {
  stroke: #d97706;
}
.nav-tab-btn[data-tab="wallet"]:hover {
  background: #fffbeb;
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.22);
}
.nav-tab-btn[data-tab="wallet"].active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border-color: #d97706;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.45);
}
.nav-tab-btn[data-tab="wallet"].active .nav-tab-icon {
  stroke: #ffffff;
}
.nav-tab-btn[data-tab="wallet"].active::after {
  background: #fef08a;
  box-shadow: 0 0 6px rgba(254, 240, 138, 1);
}

/* ---------------------------------------------------
   BUTTON 4: PROFILE — Cool Royal Violet / Purple
   --------------------------------------------------- */
.nav-tab-btn[data-tab="profile"] {
  color: #7c3aed;
  border-color: #c084fc;
  background: #ffffff;
}
.nav-tab-btn[data-tab="profile"] .nav-tab-icon {
  stroke: #7c3aed;
}
.nav-tab-btn[data-tab="profile"]:hover {
  background: #faf5ff;
  border-color: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.22);
}
.nav-tab-btn[data-tab="profile"].active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff !important;
  border-color: #7c3aed;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.45);
}
.nav-tab-btn[data-tab="profile"].active .nav-tab-icon {
  stroke: #ffffff;
}
.nav-tab-btn[data-tab="profile"].active::after {
  background: #ddd6fe;
  box-shadow: 0 0 6px rgba(221, 214, 254, 1);
}

/* ---------------------------------------------------
   BUTTON 5: ADMIN PORTAL — Hidden by default (Only visible for admin)
   --------------------------------------------------- */
.nav-tab-btn[data-tab="admin"],
.admin-nav-btn {
  display: none !important;
  color: #e11d48;
  border-color: #fb7185;
  background: #ffffff;
}
.nav-tab-btn[data-tab="admin"].admin-visible,
.admin-nav-btn.admin-visible {
  display: inline-flex !important;
}
.nav-tab-btn[data-tab="admin"] .nav-tab-icon,
.admin-nav-btn .nav-tab-icon {
  stroke: #e11d48;
}
.nav-tab-btn[data-tab="admin"]:hover,
.admin-nav-btn:hover {
  background: #fff1f2;
  border-color: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22);
}
.nav-tab-btn[data-tab="admin"].active,
.admin-nav-btn.active {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff !important;
  border-color: #e11d48;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.45);
}
.nav-tab-btn[data-tab="admin"].active .nav-tab-icon,
.admin-nav-btn.active .nav-tab-icon {
  stroke: #ffffff;
}
.nav-tab-btn[data-tab="admin"].active::after,
.admin-nav-btn.active::after {
  background: #fecdd3;
  box-shadow: 0 0 6px rgba(254, 205, 211, 1);
}

/* Main Container */
.main-content {
  max-width: 1000px;
  margin: 0 auto 32px;
  padding: 0 10px;
}

/* Section Containers */
.view-section {
  display: none !important;
}

.view-section.active {
  display: block !important;
}

.section-header-banner {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 2px 0;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.banner-accent-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8 50%, #0284c7 100%);
  border-radius: 999px;
}

.banner-accent-line:last-child {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, transparent 100%);
}

.section-header-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
}

.section-header-title {
  color: #0284c7;
  font-family: var(--font-display, inherit);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.section-header-sub {
  color: #64748b;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1.2;
}

#view-today {
  background: radial-gradient(circle at 12% 12%, rgba(186, 230, 253, 0.45) 0%, transparent 35%),
              radial-gradient(circle at 88% 22%, rgba(224, 231, 255, 0.5) 0%, transparent 40%),
              radial-gradient(circle at 50% 65%, rgba(207, 250, 254, 0.35) 0%, transparent 45%),
              radial-gradient(circle at 80% 90%, rgba(254, 240, 138, 0.25) 0%, transparent 35%),
              linear-gradient(180deg, #eaf4fd 0%, #f1f8fe 35%, #edf4fc 100%);
  border-radius: 16px;
  padding: 4px 10px 18px;
  margin-top: 1px;
}

/* ===================================================
   RESULT CARDS — 3D Liquid Glass & Water Droplets Style
   (Matching Snapshot media_1789271328182.jpg Exactly)
   =================================================== */

.results-grid-container {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

/* Base Result Card — Translucent 3D Jelly Glass Slab */
.result-card {
  border-radius: 26px;
  padding: 12px 18px 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 3px 8px rgba(15, 23, 42, 0.06);
}

.result-card:hover {
  transform: translateY(-3px) scale(1.008);
}

/* Top curved specular glass reflection sheen */
.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 100%);
  border-radius: 24px 24px 80px 80px / 24px 24px 30px 30px;
  pointer-events: none;
  z-index: 2;
}

/* Vector Water Droplets Overlay Layer */
.card-water-drops {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.card-drops-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.water-drop {
  will-change: transform, opacity;
}

/* Individual Falling & Trickling Water Droplets Across the Card */
.w-drop-f1 { animation: waterDropFallDown 3.2s cubic-bezier(0.4, 0, 0.25, 1) infinite 0.1s; }
.w-drop-f2 { animation: waterDropFallDown 2.7s cubic-bezier(0.4, 0, 0.25, 1) infinite 0.9s; }
.w-drop-f3 { animation: waterDropFallDown 3.5s cubic-bezier(0.4, 0, 0.25, 1) infinite 1.6s; }
.w-drop-f4 { animation: waterDropFallDown 2.9s cubic-bezier(0.4, 0, 0.25, 1) infinite 0.4s; }
.w-drop-f5 { animation: waterDropFallDown 3.3s cubic-bezier(0.4, 0, 0.25, 1) infinite 1.2s; }
.w-drop-f6 { animation: waterDropFallDown 2.6s cubic-bezier(0.4, 0, 0.25, 1) infinite 2.0s; }
.w-drop-f7 { animation: waterDropFallDown 3.6s cubic-bezier(0.4, 0, 0.25, 1) infinite 0.7s; }
.w-drop-f8 { animation: waterDropFallDown 3.0s cubic-bezier(0.4, 0, 0.25, 1) infinite 1.5s; }

@keyframes waterDropFallDown {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  12% {
    transform: translateY(5px) scale(0.95);
    opacity: 0.95;
  }
  28% {
    transform: translateY(14px) scale(1, 1.08);
    opacity: 1;
  }
  42% {
    transform: translateY(32px) scale(0.96, 1.2);
    opacity: 0.95;
  }
  70% {
    transform: translateY(88px) scale(0.9, 1.4);
    opacity: 0.9;
  }
  90% {
    transform: translateY(148px) scale(0.8, 1.6);
    opacity: 0.85;
  }
  100% {
    transform: translateY(185px) scale(0.65, 1.8);
    opacity: 0;
  }
}

/* Dripping Edge Teardrops Falling Down Completely */
.w-teardrop-f1 { animation: teardropFallDrip 3.4s cubic-bezier(0.35, 0, 0.2, 1) infinite 0.2s; }
.w-teardrop-f2 { animation: teardropFallDrip 3.8s cubic-bezier(0.35, 0, 0.2, 1) infinite 1.4s; }
.w-teardrop-f3 { animation: teardropFallDrip 3.1s cubic-bezier(0.35, 0, 0.2, 1) infinite 2.2s; }

@keyframes teardropFallDrip {
  0% {
    transform: translateY(0) scaleY(0.7) scaleX(0.8);
    opacity: 0;
  }
  16% {
    transform: translateY(0) scaleY(1) scaleX(1);
    opacity: 0.95;
  }
  45% {
    transform: translateY(6px) scaleY(1.22) scaleX(0.92);
    opacity: 1;
  }
  65% {
    transform: translateY(18px) scaleY(1.48) scaleX(0.85);
    opacity: 0.95;
  }
  82% {
    transform: translateY(65px) scaleY(1.85) scaleX(0.72);
    opacity: 0.9;
  }
  100% {
    transform: translateY(185px) scaleY(2.3) scaleX(0.55);
    opacity: 0;
  }
}

/* Real Rain Falling Drops & Liquid Streams */
.card-rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.rain-streak {
  position: absolute;
  top: -25px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.85) 60%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  opacity: 0;
  will-change: transform, opacity;
}

.r-s1 { left: 12%; height: 18px; animation: rainStreakFall 1.3s cubic-bezier(0.4, 0.0, 0.2, 1) infinite 0.1s; }
.r-s2 { left: 28%; height: 26px; animation: rainStreakFall 1.1s cubic-bezier(0.4, 0.0, 0.2, 1) infinite 0.65s; }
.r-s3 { left: 45%; height: 16px; animation: rainStreakFall 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite 0.3s; }
.r-s4 { left: 63%; height: 24px; animation: rainStreakFall 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite 0.85s; }
.r-s5 { left: 78%; height: 28px; animation: rainStreakFall 1.05s cubic-bezier(0.4, 0.0, 0.2, 1) infinite 0.4s; }
.r-s6 { left: 89%; height: 20px; animation: rainStreakFall 1.4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite 0.95s; }
.r-s7 { left: 95%; height: 22px; animation: rainStreakFall 1.25s cubic-bezier(0.4, 0.0, 0.2, 1) infinite 0.2s; }

@keyframes rainStreakFall {
  0% {
    transform: translateY(-20px) scaleY(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(185px) scaleY(1.4);
    opacity: 0;
  }
}

/* Slower natural liquid trickles running down glass pane */
.rain-trickle {
  position: absolute;
  top: -15px;
  width: 4px;
  height: 7px;
  border-radius: 50% 50% 60% 60%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.2) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 1px #fff;
  opacity: 0;
  will-change: transform, opacity;
}

.r-t1 { left: 22%; animation: rainTrickleSlide 3.4s cubic-bezier(0.45, 0.05, 0.25, 1) infinite 0.5s; }
.r-t2 { left: 54%; animation: rainTrickleSlide 4.0s cubic-bezier(0.45, 0.05, 0.25, 1) infinite 1.8s; }
.r-t3 { left: 82%; animation: rainTrickleSlide 3.1s cubic-bezier(0.45, 0.05, 0.25, 1) infinite 1.1s; }

@keyframes rainTrickleSlide {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
    transform: translateY(15px) scale(0.9);
  }
  40% {
    opacity: 0.95;
    transform: translateY(55px) scale(1);
  }
  75% {
    opacity: 0.85;
    transform: translateY(110px) scale(1.1);
  }
  95% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(175px) scale(1.2, 0.7);
    opacity: 0;
  }
}

/* 3D Liquid Rain Drop Beads Falling Across Pane */
.rain-drop-bead {
  position: absolute;
  top: -15px;
  border-radius: 50% 50% 60% 60%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, rgba(255, 255, 255, 0.85) 35%, rgba(255, 255, 255, 0.25) 75%, rgba(0, 0, 0, 0.15) 100%);
  border: 0.8px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 1px #ffffff;
  opacity: 0;
  will-change: transform, opacity;
}

.r-d1 { left: 16%; width: 7px; height: 10px; animation: rainDropBeadFall 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.3s; }
.r-d2 { left: 38%; width: 8px; height: 12px; animation: rainDropBeadFall 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.2s; }
.r-d3 { left: 68%; width: 6px; height: 9px;  animation: rainDropBeadFall 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.8s; }
.r-d4 { left: 88%; width: 8px; height: 11px; animation: rainDropBeadFall 3.0s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.7s; }

@keyframes rainDropBeadFall {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    transform: translateY(18px) scale(0.95);
    opacity: 0.95;
  }
  40% {
    transform: translateY(50px) scale(1, 1.15);
    opacity: 1;
  }
  75% {
    transform: translateY(115px) scale(0.9, 1.35);
    opacity: 0.9;
  }
  100% {
    transform: translateY(185px) scale(0.8, 1.5);
    opacity: 0;
  }
}

/* Content Container relative z-index so buttons and text sit cleanly above glass sheen */
.card-header-row,
.card-result-box,
.card-meta-row,
.card-footer-row {
  position: relative;
  z-index: 4;
}

/* ---------------------------------------------------
   61 UNIQUE COOL COLOR THEMES (CSS Custom Properties)
   --------------------------------------------------- */
.result-card[class*="card-theme-"],
.result-card.card-standard,
.result-card.card-highlighted {
  background: linear-gradient(180deg, var(--c-bg1, #e0f2fe) 0%, var(--c-bg2, #bae6fd) 22%, var(--c-bg3, #7dd3fc) 55%, var(--c-bg4, #38bdf8) 82%, var(--c-bg5, #0284c7) 100%) !important;
  border: 1px solid var(--c-border, rgba(56, 189, 248, 0.8)) !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9),
              inset 0 -2px 4px var(--c-sh-in, rgba(3, 105, 161, 0.35)),
              0 14px 32px var(--c-sh-out, rgba(56, 189, 248, 0.34)),
              0 3px 8px var(--c-sh-sub, rgba(2, 132, 199, 0.2)) !important;
}

.result-card[class*="card-theme-"]:hover,
.result-card.card-standard:hover,
.result-card.card-highlighted:hover {
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.95),
              inset 0 -2px 4px var(--c-sh-in, rgba(3, 105, 161, 0.4)),
              0 18px 40px var(--c-sh-out, rgba(56, 189, 248, 0.45)),
              0 6px 14px var(--c-sh-sub, rgba(2, 132, 199, 0.25)) !important;
}

.result-card[class*="card-theme-"] .card-game-name,
.result-card.card-standard .card-game-name,
.result-card.card-highlighted .card-game-name {
  color: var(--c-txt, #0c4a6e) !important;
  text-shadow: 0 1.5px 0 rgba(255, 255, 255, 0.8), 0 -1px 1px rgba(0, 0, 0, 0.18);
}

.result-card[class*="card-theme-"] .card-time-pill,
.result-card.card-standard .card-time-pill,
.result-card.card-highlighted .card-time-pill {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--c-txt, #0c4a6e) !important;
}

.result-card[class*="card-theme-"] .footer-tag,
.result-card.card-standard .footer-tag,
.result-card.card-highlighted .footer-tag {
  color: var(--c-txt, #0c4a6e) !important;
}

.result-card[class*="card-theme-"] .btn-card-jodi,
.result-card[class*="card-theme-"] .btn-card-panel,
.result-card.card-standard .btn-card-jodi,
.result-card.card-standard .btn-card-panel,
.result-card.card-highlighted .btn-card-jodi,
.result-card.card-highlighted .btn-card-panel {
  color: var(--c-btn, #0369a1) !important;
  border: 1.2px solid var(--c-btn-bd, #38bdf8) !important;
}

.result-card[class*="card-theme-"] .btn-card-jodi:hover,
.result-card[class*="card-theme-"] .btn-card-panel:hover,
.result-card.card-standard .btn-card-jodi:hover,
.result-card.card-standard .btn-card-panel:hover,
.result-card.card-highlighted .btn-card-jodi:hover,
.result-card.card-highlighted .btn-card-panel:hover {
  background: var(--c-btn, #0369a1) !important;
  color: #ffffff !important;
  border-color: var(--c-btn, #0369a1) !important;
}

.card-theme-0 { --c-bg1: #e6f9ec; --c-bg2: #bcf0cd; --c-bg3: #79e29c; --c-bg4: #3fd571; --c-bg5: #239f4c; --c-border: rgba(54, 211, 106, 0.8); --c-sh-in: rgba(11, 70, 31, 0.35); --c-sh-out: rgba(46, 209, 100, 0.34); --c-sh-sub: rgba(35, 159, 76, 0.2); --c-txt: #0b5122; --c-btn: #1c9b47; --c-btn-bd: #4fd87d; }
.card-theme-1 { --c-bg1: #e3f5fd; --c-bg2: #b4e5f8; --c-bg3: #69ccf2; --c-bg4: #27b5ec; --c-bg5: #1085b2; --c-border: rgba(30, 178, 235, 0.8); --c-sh-in: rgba(3, 57, 78, 0.35); --c-sh-out: rgba(20, 175, 235, 0.34); --c-sh-sub: rgba(16, 133, 178, 0.2); --c-txt: #02415a; --c-btn: #0a80ae; --c-btn-bd: #3abcee; }
.card-theme-2 { --c-bg1: #e9e3fc; --c-bg2: #c4b6f7; --c-bg3: #896cef; --c-bg4: #562ce8; --c-bg5: #3613ae; --c-border: rgba(79, 35, 231, 0.8); --c-sh-in: rgba(21, 5, 77, 0.35); --c-sh-out: rgba(71, 25, 230, 0.34); --c-sh-sub: rgba(54, 19, 174, 0.2); --c-txt: #170458; --c-btn: #310eaa; --c-btn-bd: #653eea; }
.card-theme-3 { --c-bg1: #e3fcf4; --c-bg2: #b5f8e1; --c-bg3: #6af0c3; --c-bg4: #2aeaa9; --c-bg5: #11b07b; --c-border: rgba(32, 233, 165, 0.8); --c-sh-in: rgba(4, 78, 53, 0.35); --c-sh-out: rgba(23, 232, 161, 0.34); --c-sh-sub: rgba(17, 176, 123, 0.2); --c-txt: #03593c; --c-btn: #0cac76; --c-btn-bd: #3cecb0; }
.card-theme-4 { --c-bg1: #e3edfd; --c-bg2: #b3cff9; --c-bg3: #679ef4; --c-bg4: #2574ef; --c-bg5: #0e4fb4; --c-border: rgba(27, 110, 238, 0.8); --c-sh-in: rgba(2, 33, 79, 0.35); --c-sh-out: rgba(18, 104, 237, 0.34); --c-sh-sub: rgba(14, 79, 180, 0.2); --c-txt: #01245b; --c-btn: #084aaf; --c-btn-bd: #3880f0; }
.card-theme-5 { --c-bg1: #f1e3fc; --c-bg2: #dab6f7; --c-bg3: #b46cef; --c-bg4: #942ce8; --c-bg5: #6913ae; --c-border: rgba(143, 35, 231, 0.8); --c-sh-in: rgba(45, 5, 77, 0.35); --c-sh-out: rgba(138, 25, 230, 0.34); --c-sh-sub: rgba(105, 19, 174, 0.2); --c-txt: #320458; --c-btn: #640eaa; --c-btn-bd: #9d3eea; }
.card-theme-6 { --c-bg1: #e3fdfc; --c-bg2: #b4f8f8; --c-bg3: #69f2f1; --c-bg4: #27ecea; --c-bg5: #10b2b1; --c-border: rgba(30, 235, 234, 0.8); --c-sh-in: rgba(3, 78, 78, 0.35); --c-sh-out: rgba(20, 235, 233, 0.34); --c-sh-sub: rgba(16, 178, 177, 0.2); --c-txt: #025a59; --c-btn: #0aaeac; --c-btn-bd: #3aeeec; }
.card-theme-7 { --c-bg1: #e4e6fb; --c-bg2: #b8bcf4; --c-bg3: #7179ea; --c-bg4: #333ee1; --c-bg5: #1922a9; --c-border: rgba(42, 53, 223, 0.8); --c-sh-in: rgba(7, 12, 74, 0.35); --c-sh-out: rgba(33, 45, 222, 0.34); --c-sh-sub: rgba(25, 34, 169, 0.2); --c-txt: #060b55; --c-btn: #131ca4; --c-btn-bd: #454fe3; }
.card-theme-8 { --c-bg1: #e4fbed; --c-bg2: #b7f5ce; --c-bg3: #6feb9e; --c-bg4: #31e373; --c-bg5: #17ab4e; --c-border: rgba(40, 226, 109, 0.8); --c-sh-in: rgba(7, 75, 32, 0.35); --c-sh-out: rgba(31, 224, 103, 0.34); --c-sh-sub: rgba(23, 171, 78, 0.2); --c-txt: #065624; --c-btn: #11a649; --c-btn-bd: #43e57f; }
.card-theme-9 { --c-bg1: #e3f4fd; --c-bg2: #b4e3f8; --c-bg3: #69c6f2; --c-bg4: #27adec; --c-bg5: #107eb2; --c-border: rgba(30, 170, 235, 0.8); --c-sh-in: rgba(3, 54, 78, 0.35); --c-sh-out: rgba(20, 166, 235, 0.34); --c-sh-sub: rgba(16, 126, 178, 0.2); --c-txt: #023e5a; --c-btn: #0a79ae; --c-btn-bd: #3ab4ee; }
.card-theme-10 { --c-bg1: #eae3fd; --c-bg2: #c6b3f9; --c-bg3: #8c67f4; --c-bg4: #5a25ef; --c-bg5: #3a0eb4; --c-border: rgba(83, 27, 238, 0.8); --c-sh-in: rgba(23, 2, 79, 0.35); --c-sh-out: rgba(76, 18, 237, 0.34); --c-sh-sub: rgba(58, 14, 180, 0.2); --c-txt: #19015b; --c-btn: #3508af; --c-btn-bd: #6938f0; }
.card-theme-11 { --c-bg1: #e4fbf4; --c-bg2: #b7f5e3; --c-bg3: #6febc7; --c-bg4: #31e3ae; --c-bg5: #17ab7f; --c-border: rgba(40, 226, 170, 0.8); --c-sh-in: rgba(7, 75, 55, 0.35); --c-sh-out: rgba(31, 224, 167, 0.34); --c-sh-sub: rgba(23, 171, 127, 0.2); --c-txt: #06563e; --c-btn: #11a67a; --c-btn-bd: #43e5b5; }
.card-theme-12 { --c-bg1: #e3ecfd; --c-bg2: #b3ccf9; --c-bg3: #6799f4; --c-bg4: #256cef; --c-bg5: #0e48b4; --c-border: rgba(27, 101, 238, 0.8); --c-sh-in: rgba(2, 29, 79, 0.35); --c-sh-out: rgba(18, 95, 237, 0.34); --c-sh-sub: rgba(14, 72, 180, 0.2); --c-txt: #01215b; --c-btn: #0843af; --c-btn-bd: #3878f0; }
.card-theme-13 { --c-bg1: #f2e3fc; --c-bg2: #dcb6f7; --c-bg3: #ba6cef; --c-bg4: #9b2ce8; --c-bg5: #7013ae; --c-border: rgba(151, 35, 231, 0.8); --c-sh-in: rgba(48, 5, 77, 0.35); --c-sh-out: rgba(147, 25, 230, 0.34); --c-sh-sub: rgba(112, 19, 174, 0.2); --c-txt: #360458; --c-btn: #6b0eaa; --c-btn-bd: #a43eea; }
.card-theme-14 { --c-bg1: #e5fafb; --c-bg2: #b9f2f4; --c-bg3: #73e4e8; --c-bg4: #35d9de; --c-bg5: #1ba2a7; --c-border: rgba(44, 215, 221, 0.8); --c-sh-in: rgba(8, 71, 73, 0.35); --c-sh-out: rgba(36, 213, 219, 0.34); --c-sh-sub: rgba(27, 162, 167, 0.2); --c-txt: #075254; --c-btn: #159ea2; --c-btn-bd: #47dce1; }
.card-theme-15 { --c-bg1: #e3e3fd; --c-bg2: #b3b5f9; --c-bg3: #676af4; --c-bg4: #2529ef; --c-bg5: #0e11b4; --c-border: rgba(27, 32, 238, 0.8); --c-sh-in: rgba(2, 4, 79, 0.35); --c-sh-out: rgba(18, 23, 237, 0.34); --c-sh-sub: rgba(14, 17, 180, 0.2); --c-txt: #01035b; --c-btn: #080caf; --c-btn-bd: #383cf0; }
.card-theme-16 { --c-bg1: #e4fbee; --c-bg2: #b7f5d1; --c-bg3: #6feba3; --c-bg4: #31e37b; --c-bg5: #17ab54; --c-border: rgba(40, 226, 117, 0.8); --c-sh-in: rgba(7, 75, 35, 0.35); --c-sh-out: rgba(31, 224, 111, 0.34); --c-sh-sub: rgba(23, 171, 84, 0.2); --c-txt: #065627; --c-btn: #11a64f; --c-btn-bd: #43e586; }
.card-theme-17 { --c-bg1: #e2f4fd; --c-bg2: #b1e0fb; --c-bg3: #64c2f7; --c-bg4: #20a7f3; --c-bg5: #0a79b8; --c-border: rgba(22, 163, 243, 0.8); --c-sh-in: rgba(1, 52, 81, 0.35); --c-sh-out: rgba(13, 159, 242, 0.34); --c-sh-sub: rgba(10, 121, 184, 0.2); --c-txt: #003b5c; --c-btn: #0574b3; --c-btn-bd: #34aff4; }
.card-theme-18 { --c-bg1: #ebe3fc; --c-bg2: #cab6f7; --c-bg3: #946cef; --c-bg4: #652ce8; --c-bg5: #4313ae; --c-border: rgba(95, 35, 231, 0.8); --c-sh-in: rgba(27, 5, 77, 0.35); --c-sh-out: rgba(88, 25, 230, 0.34); --c-sh-sub: rgba(67, 19, 174, 0.2); --c-txt: #1e0458; --c-btn: #3e0eaa; --c-btn-bd: #733eea; }
.card-theme-19 { --c-bg1: #e4fbf5; --c-bg2: #b7f5e5; --c-bg3: #6febcc; --c-bg4: #31e3b5; --c-bg5: #17ab85; --c-border: rgba(40, 226, 178, 0.8); --c-sh-in: rgba(7, 75, 58, 0.35); --c-sh-out: rgba(31, 224, 175, 0.34); --c-sh-sub: rgba(23, 171, 133, 0.2); --c-txt: #065642; --c-btn: #11a680; --c-btn-bd: #43e5bc; }
.card-theme-20 { --c-bg1: #e3ebfd; --c-bg2: #b3c9f9; --c-bg3: #6793f4; --c-bg4: #2563ef; --c-bg5: #0e41b4; --c-border: rgba(27, 93, 238, 0.8); --c-sh-in: rgba(2, 26, 79, 0.35); --c-sh-out: rgba(18, 86, 237, 0.34); --c-sh-sub: rgba(14, 65, 180, 0.2); --c-txt: #011d5b; --c-btn: #083caf; --c-btn-bd: #3871f0; }
.card-theme-21 { --c-bg1: #f3e5fa; --c-bg2: #debaf2; --c-bg3: #bc76e5; --c-bg4: #9f3ad9; --c-bg5: #731fa3; --c-border: rgba(155, 49, 216, 0.8); --c-sh-in: rgba(49, 10, 72, 0.35); --c-sh-out: rgba(151, 41, 214, 0.34); --c-sh-sub: rgba(115, 31, 163, 0.2); --c-txt: #380953; --c-btn: #6e199f; --c-btn-bd: #a84bdd; }
.card-theme-22 { --c-bg1: #e3fbfd; --c-bg2: #b4f3f8; --c-bg3: #69e8f2; --c-bg4: #27deec; --c-bg5: #10a6b2; --c-border: rgba(30, 220, 235, 0.8); --c-sh-in: rgba(3, 73, 78, 0.35); --c-sh-out: rgba(20, 219, 235, 0.34); --c-sh-sub: rgba(16, 166, 178, 0.2); --c-txt: #02545a; --c-btn: #0aa2ae; --c-btn-bd: #3ae1ee; }
.card-theme-23 { --c-bg1: #e3e3fd; --c-bg2: #b4b3f9; --c-bg3: #6a67f4; --c-bg4: #2925ef; --c-bg5: #110eb4; --c-border: rgba(31, 27, 238, 0.8); --c-sh-in: rgba(4, 2, 79, 0.35); --c-sh-out: rgba(22, 18, 237, 0.34); --c-sh-sub: rgba(17, 14, 180, 0.2); --c-txt: #03015b; --c-btn: #0b08af; --c-btn-bd: #3b38f0; }
.card-theme-24 { --c-bg1: #e3fcef; --c-bg2: #b5f8d3; --c-bg3: #6af0a8; --c-bg4: #2aea81; --c-bg5: #11b05a; --c-border: rgba(32, 233, 124, 0.8); --c-sh-in: rgba(4, 78, 38, 0.35); --c-sh-out: rgba(23, 232, 118, 0.34); --c-sh-sub: rgba(17, 176, 90, 0.2); --c-txt: #03592a; --c-btn: #0cac55; --c-btn-bd: #3cec8c; }
.card-theme-25 { --c-bg1: #e3f2fd; --c-bg2: #b4ddf8; --c-bg3: #69bbf2; --c-bg4: #279dec; --c-bg5: #1071b2; --c-border: rgba(30, 153, 235, 0.8); --c-sh-in: rgba(3, 48, 78, 0.35); --c-sh-out: rgba(20, 148, 235, 0.34); --c-sh-sub: rgba(16, 113, 178, 0.2); --c-txt: #02375a; --c-btn: #0a6cae; --c-btn-bd: #3aa5ee; }
.card-theme-26 { --c-bg1: #ece3fc; --c-bg2: #ccb6f7; --c-bg3: #9a6cef; --c-bg4: #6d2ce8; --c-bg5: #4913ae; --c-border: rgba(103, 35, 231, 0.8); --c-sh-in: rgba(30, 5, 77, 0.35); --c-sh-out: rgba(96, 25, 230, 0.34); --c-sh-sub: rgba(73, 19, 174, 0.2); --c-txt: #210458; --c-btn: #440eaa; --c-btn-bd: #7a3eea; }
.card-theme-27 { --c-bg1: #e3fdf7; --c-bg2: #b4f8ea; --c-bg3: #69f2d5; --c-bg4: #27ecc2; --c-bg5: #10b28f; --c-border: rgba(30, 235, 191, 0.8); --c-sh-in: rgba(3, 78, 62, 0.35); --c-sh-out: rgba(20, 235, 189, 0.34); --c-sh-sub: rgba(16, 178, 143, 0.2); --c-txt: #025a47; --c-btn: #0aae8a; --c-btn-bd: #3aeec7; }
.card-theme-28 { --c-bg1: #e4eafb; --c-bg2: #b8c8f4; --c-bg3: #7191ea; --c-bg4: #3362e1; --c-bg5: #1940a9; --c-border: rgba(42, 91, 223, 0.8); --c-sh-in: rgba(7, 25, 74, 0.35); --c-sh-out: rgba(33, 84, 222, 0.34); --c-sh-sub: rgba(25, 64, 169, 0.2); --c-txt: #061c55; --c-btn: #133aa4; --c-btn-bd: #456fe3; }
.card-theme-29 { --c-bg1: #f4e3fc; --c-bg2: #e2b6f7; --c-bg3: #c46cef; --c-bg4: #ab2ce8; --c-bg5: #7c13ae; --c-border: rgba(167, 35, 231, 0.8); --c-sh-in: rgba(53, 5, 77, 0.35); --c-sh-out: rgba(164, 25, 230, 0.34); --c-sh-sub: rgba(124, 19, 174, 0.2); --c-txt: #3d0458; --c-btn: #770eaa; --c-btn-bd: #b23eea; }
.card-theme-30 { --c-bg1: #e3fafd; --c-bg2: #b4f1f8; --c-bg3: #69e2f2; --c-bg4: #27d6ec; --c-bg5: #10a0b2; --c-border: rgba(30, 212, 235, 0.8); --c-sh-in: rgba(3, 70, 78, 0.35); --c-sh-out: rgba(20, 210, 235, 0.34); --c-sh-sub: rgba(16, 160, 178, 0.2); --c-txt: #02505a; --c-btn: #0a9bae; --c-btn-bd: #3ad9ee; }
.card-theme-31 { --c-bg1: #e3e2fe; --c-bg2: #b5b1fc; --c-bg3: #6b62f8; --c-bg4: #2b1ef6; --c-bg5: #1208ba; --c-border: rgba(34, 20, 245, 0.8); --c-sh-in: rgba(5, 0, 82, 0.35); --c-sh-out: rgba(24, 10, 245, 0.34); --c-sh-sub: rgba(18, 8, 186, 0.2); --c-txt: #06005c; --c-btn: #0d03b5; --c-btn-bd: #3d31f6; }
.card-theme-32 { --c-bg1: #e4fbf0; --c-bg2: #b7f5d6; --c-bg3: #6febad; --c-bg4: #31e389; --c-bg5: #17ab61; --c-border: rgba(40, 226, 132, 0.8); --c-sh-in: rgba(7, 75, 41, 0.35); --c-sh-out: rgba(31, 224, 127, 0.34); --c-sh-sub: rgba(23, 171, 97, 0.2); --c-txt: #06562e; --c-btn: #11a65b; --c-btn-bd: #43e594; }
.card-theme-33 { --c-bg1: #e3f1fd; --c-bg2: #b3daf9; --c-bg3: #67b5f4; --c-bg4: #2595ef; --c-bg5: #0e6ab4; --c-border: rgba(27, 145, 238, 0.8); --c-sh-in: rgba(2, 45, 79, 0.35); --c-sh-out: rgba(18, 140, 237, 0.34); --c-sh-sub: rgba(14, 106, 180, 0.2); --c-txt: #01335b; --c-btn: #0865af; --c-btn-bd: #389ef0; }
.card-theme-34 { --c-bg1: #ede3fc; --c-bg2: #cfb6f7; --c-bg3: #9f6cef; --c-bg4: #752ce8; --c-bg5: #5013ae; --c-border: rgba(111, 35, 231, 0.8); --c-sh-in: rgba(33, 5, 77, 0.35); --c-sh-out: rgba(105, 25, 230, 0.34); --c-sh-sub: rgba(80, 19, 174, 0.2); --c-txt: #250458; --c-btn: #4a0eaa; --c-btn-bd: #813eea; }
.card-theme-35 { --c-bg1: #e5fbf7; --c-bg2: #b9f4e9; --c-bg3: #73e8d4; --c-bg4: #35dec1; --c-bg5: #1ba78e; --c-border: rgba(44, 221, 190, 0.8); --c-sh-in: rgba(8, 73, 62, 0.35); --c-sh-out: rgba(36, 219, 187, 0.34); --c-sh-sub: rgba(27, 167, 142, 0.2); --c-txt: #075447; --c-btn: #15a28a; --c-btn-bd: #47e1c6; }
.card-theme-36 { --c-bg1: #e3e9fd; --c-bg2: #b3c3f9; --c-bg3: #6787f4; --c-bg4: #2553ef; --c-bg5: #0e34b4; --c-border: rgba(27, 75, 238, 0.8); --c-sh-in: rgba(2, 20, 79, 0.35); --c-sh-out: rgba(18, 68, 237, 0.34); --c-sh-sub: rgba(14, 52, 180, 0.2); --c-txt: #01155b; --c-btn: #082eaf; --c-btn-bd: #3862f0; }
.card-theme-37 { --c-bg1: #f5e3fc; --c-bg2: #e4b6f7; --c-bg3: #ca6cef; --c-bg4: #b32ce8; --c-bg5: #8313ae; --c-border: rgba(175, 35, 231, 0.8); --c-sh-in: rgba(56, 5, 77, 0.35); --c-sh-out: rgba(172, 25, 230, 0.34); --c-sh-sub: rgba(131, 19, 174, 0.2); --c-txt: #400458; --c-btn: #7e0eaa; --c-btn-bd: #b93eea; }
.card-theme-38 { --c-bg1: #e2f9fd; --c-bg2: #b1effb; --c-bg3: #64e0f7; --c-bg4: #20d2f3; --c-bg5: #0a9db8; --c-border: rgba(22, 208, 243, 0.8); --c-sh-in: rgba(1, 68, 81, 0.35); --c-sh-out: rgba(13, 207, 242, 0.34); --c-sh-sub: rgba(10, 157, 184, 0.2); --c-txt: #004e5c; --c-btn: #0598b3; --c-btn-bd: #34d6f4; }
.card-theme-39 { --c-bg1: #e6e3fc; --c-bg2: #bcb6f7; --c-bg3: #796cef; --c-bg4: #3f2ce8; --c-bg5: #2313ae; --c-border: rgba(54, 35, 231, 0.8); --c-sh-in: rgba(12, 5, 77, 0.35); --c-sh-out: rgba(46, 25, 230, 0.34); --c-sh-sub: rgba(35, 19, 174, 0.2); --c-txt: #0c0458; --c-btn: #1e0eaa; --c-btn-bd: #503eea; }
.card-theme-40 { --c-bg1: #e4fbf1; --c-bg2: #b7f5d9; --c-bg3: #6febb2; --c-bg4: #31e391; --c-bg5: #17ab67; --c-border: rgba(40, 226, 140, 0.8); --c-sh-in: rgba(7, 75, 43, 0.35); --c-sh-out: rgba(31, 224, 135, 0.34); --c-sh-sub: rgba(23, 171, 103, 0.2); --c-txt: #065631; --c-btn: #11a662; --c-btn-bd: #43e59a; }
.card-theme-41 { --c-bg1: #e3f0fd; --c-bg2: #b3d7f9; --c-bg3: #67b0f4; --c-bg4: #258def; --c-bg5: #0e63b4; --c-border: rgba(27, 136, 238, 0.8); --c-sh-in: rgba(2, 42, 79, 0.35); --c-sh-out: rgba(18, 131, 237, 0.34); --c-sh-sub: rgba(14, 99, 180, 0.2); --c-txt: #012f5b; --c-btn: #085eaf; --c-btn-bd: #3897f0; }
.card-theme-42 { --c-bg1: #eee5fa; --c-bg2: #d2baf2; --c-bg3: #a676e5; --c-bg4: #7f3ad9; --c-bg5: #581fa3; --c-border: rgba(121, 49, 216, 0.8); --c-sh-in: rgba(36, 10, 72, 0.35); --c-sh-out: rgba(115, 41, 214, 0.34); --c-sh-sub: rgba(88, 31, 163, 0.2); --c-txt: #290953; --c-btn: #52199f; --c-btn-bd: #8a4bdd; }
.card-theme-43 { --c-bg1: #e3fdf9; --c-bg2: #b4f8ef; --c-bg3: #69f2e0; --c-bg4: #27ecd2; --c-bg5: #10b29d; --c-border: rgba(30, 235, 208, 0.8); --c-sh-in: rgba(3, 78, 68, 0.35); --c-sh-out: rgba(20, 235, 206, 0.34); --c-sh-sub: rgba(16, 178, 157, 0.2); --c-txt: #025a4e; --c-btn: #0aae98; --c-btn-bd: #3aeed6; }
.card-theme-44 { --c-bg1: #e3e7fd; --c-bg2: #b3c0f9; --c-bg3: #6781f4; --c-bg4: #254aef; --c-bg5: #0e2db4; --c-border: rgba(27, 67, 238, 0.8); --c-sh-in: rgba(2, 17, 79, 0.35); --c-sh-out: rgba(18, 59, 237, 0.34); --c-sh-sub: rgba(14, 45, 180, 0.2); --c-txt: #01125b; --c-btn: #0827af; --c-btn-bd: #385af0; }
.card-theme-45 { --c-bg1: #f7e3fd; --c-bg2: #e8b3f9; --c-bg3: #d267f4; --c-bg4: #be25ef; --c-bg5: #8c0eb4; --c-border: rgba(187, 27, 238, 0.8); --c-sh-in: rgba(61, 2, 79, 0.35); --c-sh-out: rgba(184, 18, 237, 0.34); --c-sh-sub: rgba(140, 14, 180, 0.2); --c-txt: #45015b; --c-btn: #8708af; --c-btn-bd: #c438f0; }
.card-theme-46 { --c-bg1: #e3f7fd; --c-bg2: #b4ebf8; --c-bg3: #69d7f2; --c-bg4: #27c5ec; --c-bg5: #1092b2; --c-border: rgba(30, 195, 235, 0.8); --c-sh-in: rgba(3, 64, 78, 0.35); --c-sh-out: rgba(20, 192, 235, 0.34); --c-sh-sub: rgba(16, 146, 178, 0.2); --c-txt: #02495a; --c-btn: #0a8dae; --c-btn-bd: #3acaee; }
.card-theme-47 { --c-bg1: #e7e3fc; --c-bg2: #bfb6f7; --c-bg3: #7f6cef; --c-bg4: #472ce8; --c-bg5: #2913ae; --c-border: rgba(63, 35, 231, 0.8); --c-sh-in: rgba(15, 5, 77, 0.35); --c-sh-out: rgba(55, 25, 230, 0.34); --c-sh-sub: rgba(41, 19, 174, 0.2); --c-txt: #100458; --c-btn: #240eaa; --c-btn-bd: #573eea; }
.card-theme-48 { --c-bg1: #e4fbf2; --c-bg2: #b7f5db; --c-bg3: #6febb7; --c-bg4: #31e398; --c-bg5: #17ab6d; --c-border: rgba(40, 226, 147, 0.8); --c-sh-in: rgba(7, 75, 46, 0.35); --c-sh-out: rgba(31, 224, 143, 0.34); --c-sh-sub: rgba(23, 171, 109, 0.2); --c-txt: #065634; --c-btn: #11a668; --c-btn-bd: #43e5a1; }
.card-theme-49 { --c-bg1: #e4effb; --c-bg2: #b8d5f4; --c-bg3: #71aaea; --c-bg4: #3385e1; --c-bg5: #195da9; --c-border: rgba(42, 128, 223, 0.8); --c-sh-in: rgba(7, 39, 74, 0.35); --c-sh-out: rgba(33, 123, 222, 0.34); --c-sh-sub: rgba(25, 93, 169, 0.2); --c-txt: #062c55; --c-btn: #1358a4; --c-btn-bd: #4590e3; }
.card-theme-50 { --c-bg1: #efe3fc; --c-bg2: #d4b6f7; --c-bg3: #aa6cef; --c-bg4: #842ce8; --c-bg5: #5c13ae; --c-border: rgba(127, 35, 231, 0.8); --c-sh-in: rgba(39, 5, 77, 0.35); --c-sh-out: rgba(122, 25, 230, 0.34); --c-sh-sub: rgba(92, 19, 174, 0.2); --c-txt: #2b0458; --c-btn: #570eaa; --c-btn-bd: #8f3eea; }
.card-theme-51 { --c-bg1: #e3fdfa; --c-bg2: #b4f8f2; --c-bg3: #69f2e5; --c-bg4: #27ecda; --c-bg5: #10b2a3; --c-border: rgba(30, 235, 217, 0.8); --c-sh-in: rgba(3, 78, 71, 0.35); --c-sh-out: rgba(20, 235, 215, 0.34); --c-sh-sub: rgba(16, 178, 163, 0.2); --c-txt: #025a52; --c-btn: #0aae9f; --c-btn-bd: #3aeedd; }
.card-theme-52 { --c-bg1: #e2e6fe; --c-bg2: #b1bcfc; --c-bg3: #6278f8; --c-bg4: #1e3df6; --c-bg5: #0822ba; --c-border: rgba(20, 53, 245, 0.8); --c-sh-in: rgba(0, 12, 82, 0.35); --c-sh-out: rgba(10, 44, 245, 0.34); --c-sh-sub: rgba(8, 34, 186, 0.2); --c-txt: #000d5c; --c-btn: #031db5; --c-btn-bd: #314ef6; }
.card-theme-53 { --c-bg1: #f7e3fc; --c-bg2: #eab6f7; --c-bg3: #d56cef; --c-bg4: #c22ce8; --c-bg5: #8f13ae; --c-border: rgba(191, 35, 231, 0.8); --c-sh-in: rgba(62, 5, 77, 0.35); --c-sh-out: rgba(189, 25, 230, 0.34); --c-sh-sub: rgba(143, 19, 174, 0.2); --c-txt: #470458; --c-btn: #8b0eaa; --c-btn-bd: #c73eea; }
.card-theme-54 { --c-bg1: #e3f6fd; --c-bg2: #b4e8f8; --c-bg3: #69d1f2; --c-bg4: #27bdec; --c-bg5: #108cb2; --c-border: rgba(30, 187, 235, 0.8); --c-sh-in: rgba(3, 60, 78, 0.35); --c-sh-out: rgba(20, 184, 235, 0.34); --c-sh-sub: rgba(16, 140, 178, 0.2); --c-txt: #02455a; --c-btn: #0a87ae; --c-btn-bd: #3ac3ee; }
.card-theme-55 { --c-bg1: #e8e3fc; --c-bg2: #c2b6f7; --c-bg3: #846cef; --c-bg4: #4e2ce8; --c-bg5: #3013ae; --c-border: rgba(71, 35, 231, 0.8); --c-sh-in: rgba(18, 5, 77, 0.35); --c-sh-out: rgba(63, 25, 230, 0.34); --c-sh-sub: rgba(48, 19, 174, 0.2); --c-txt: #130458; --c-btn: #2a0eaa; --c-btn-bd: #5e3eea; }
.card-theme-56 { --c-bg1: #e6f9f2; --c-bg2: #bcf0dd; --c-bg3: #79e2ba; --c-bg4: #3fd59c; --c-bg5: #239f70; --c-border: rgba(54, 211, 152, 0.8); --c-sh-in: rgba(11, 70, 48, 0.35); --c-sh-out: rgba(46, 209, 147, 0.34); --c-sh-sub: rgba(35, 159, 112, 0.2); --c-txt: #0b5136; --c-btn: #1c9b6b; --c-btn-bd: #4fd8a5; }
.card-theme-57 { --c-bg1: #e3eefd; --c-bg2: #b3d2f9; --c-bg3: #67a4f4; --c-bg4: #257cef; --c-bg5: #0e56b4; --c-border: rgba(27, 119, 238, 0.8); --c-sh-in: rgba(2, 36, 79, 0.35); --c-sh-out: rgba(18, 113, 237, 0.34); --c-sh-sub: rgba(14, 86, 180, 0.2); --c-txt: #01285b; --c-btn: #0851af; --c-btn-bd: #3888f0; }
.card-theme-58 { --c-bg1: #f0e3fc; --c-bg2: #d7b6f7; --c-bg3: #af6cef; --c-bg4: #8c2ce8; --c-bg5: #6313ae; --c-border: rgba(135, 35, 231, 0.8); --c-sh-in: rgba(42, 5, 77, 0.35); --c-sh-out: rgba(130, 25, 230, 0.34); --c-sh-sub: rgba(99, 19, 174, 0.2); --c-txt: #2f0458; --c-btn: #5e0eaa; --c-btn-bd: #963eea; }
.card-theme-59 { --c-bg1: #e2fdfc; --c-bg2: #b1fbf7; --c-bg3: #64f7ef; --c-bg4: #20f3e9; --c-bg5: #0ab8af; --c-border: rgba(22, 243, 232, 0.8); --c-sh-in: rgba(1, 81, 77, 0.35); --c-sh-out: rgba(13, 242, 231, 0.34); --c-sh-sub: rgba(10, 184, 175, 0.2); --c-txt: #005c57; --c-btn: #05b3aa; --c-btn-bd: #34f4eb; }
.card-theme-60 { --c-bg1: #e3e5fd; --c-bg2: #b3baf9; --c-bg3: #6776f4; --c-bg4: #253aef; --c-bg5: #0e1fb4; --c-border: rgba(27, 49, 238, 0.8); --c-sh-in: rgba(2, 10, 79, 0.35); --c-sh-out: rgba(18, 41, 237, 0.34); --c-sh-sub: rgba(14, 31, 180, 0.2); --c-txt: #010a5b; --c-btn: #081aaf; --c-btn-bd: #384bf0; }

.result-card.card-standard {
  border: 1px solid rgba(203, 213, 225, 0.8);
}

/* Card Header Row */
.card-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
}

/* Left: Clean Dimming Green Dot (No glowing radar pulse or outer ripple ring) */
.card-live-draw {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  white-space: nowrap;
}

.radar-pulse {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radar-dot {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 35% 30%, #4ade80 0%, #22c55e 50%, #15803d 100%);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  animation: livePulseDim 1.5s ease-in-out infinite alternate;
}

@keyframes livePulseDim {
  0% {
    opacity: 0.22;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.live-draw-text {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Center: Game Name */
.card-title-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: center;
  text-align: center;
}

.card-game-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  text-align: center;
}

.card-header-spacer {
  justify-self: end;
  width: 1px;
  height: 1px;
}

/* Result Digits Box — Recessed Milky White Glass Capsule */
.card-result-box {
  border-radius: 999px;
  padding: 6px 20px;
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(241, 245, 249, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2.5px 5px rgba(0, 0, 0, 0.14),
              inset 0 1px 2px rgba(0, 0, 0, 0.08),
              0 2px 4px rgba(255, 255, 255, 0.85),
              0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-result-digits {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.panel-digits {
  color: #0f2b5c;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.panel-sep {
  color: #0f2b5c;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 8px;
}

.jodi-digits {
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
  min-width: 2ch;
  display: inline-block;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.jodi-digits.jodi-red {
  color: #dc2626 !important;
  text-shadow: 0 0 12px rgba(220, 38, 38, 0.45), 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.digits-pending {
  color: #0f2b5c !important;
  letter-spacing: 3px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 -1px 1px rgba(0, 0, 0, 0.25) !important;
}

/* Card Meta Row (Schedule & Tag) */
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  padding: 0 4px;
}

.card-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 1px #fff, 0 2px 5px rgba(0, 0, 0, 0.06);
}

.card-time-pill .clock-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-tag.tag-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.15;
}

.footer-tag .tag-sub {
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  border: none;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
}

.footer-tag .tag-main {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Card Footer Row (Action Buttons) */
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

/* Jodi and Panel Buttons: 3D Glossy Frosted Glass Pills */
.btn-card-chart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fdfdfd 50%, #f8fafc 100%);
  border-radius: 999px;
  padding: 6px 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12),
              inset 0 2px 2px rgba(255, 255, 255, 0.95),
              inset 0 -1.5px 2px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  text-transform: uppercase;
  min-width: 72px;
}

.btn-card-chart:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18),
              inset 0 2px 2px #ffffff;
}

.btn-card-chart:active {
  transform: translateY(1px) scale(0.97);
}

.btn-card-jodi:active,
.btn-card-panel:active {
  transform: scale(0.96);
}

.btn-back-to-results,
.btn-back-to-today,
.btn-back,
#btn-back-from-jodi,
#btn-back-from-panel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  height: 36px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-back-to-results:hover,
.btn-back-to-today:hover,
.btn-back:hover,
#btn-back-from-jodi:hover,
#btn-back-from-panel:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.chart-top-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}

.footer-tag {
  display: flex;
  flex-direction: column;
}

.footer-tag.tag-left {
  text-align: left;
}

.footer-tag.tag-right {
  text-align: right;
}

.tag-sub {
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.3px;
  border-top: 1.5px solid currentColor;
  padding-top: 1px;
}

.tag-main {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Center Time Pill */
.card-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.clock-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* ===================================================
   FILTER BAR STYLING (JODI & PANEL CHARTS)
   =================================================== */

.filter-bar {
  background: #ffffff;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-select, .filter-input {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  background-color: #fff;
  font-family: var(--font-sans);
  height: 36px;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--maroon-header);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: var(--maroon-dark);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* ===================================================
   HISTORICAL CHARTS (JODI & PANEL CHARTS)
   =================================================== */

.chart-table-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chart-table-card .section-header-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 12px;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0;
  margin: 0;
  max-width: none;
  border-bottom: 1.5px solid #0284c7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Standard Dense Matrix Table */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  border: 1.5px solid var(--table-border);
  background: #ffffff;
}

.matrix-table th, .matrix-table td {
  border: 1px solid var(--table-border);
  padding: 6px 4px;
}

.matrix-table th {
  background: #ffffff;
  color: #000000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 6px;
}

/* Sticky Date Column on Mobile */
.matrix-table td.col-date, .matrix-table th.col-date {
  position: sticky;
  left: 0;
  background: var(--date-col-bg);
  z-index: 2;
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 110px;
  white-space: pre-line;
  line-height: 1.2;
}

.matrix-table th.col-date {
  background: #ffffff;
  z-index: 3;
}

/* Jodi Chart Cells */
.jodi-cell-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
}

.jodi-cell-val.jodi-red {
  color: var(--red-accent) !important;
}

.jodi-cell-empty {
  color: #94a3b8;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Panel Chart Cell */
.panel-cell-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  min-width: 80px;
  height: 58px;
}

.panel-digits-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.05;
  color: #111827;
  text-align: center;
  font-family: var(--font-mono);
}

.panel-center-jodi {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  color: #000000;
  text-align: center;
}

.panel-center-jodi.jodi-red {
  color: var(--red-accent) !important;
}

.panel-cell-empty {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  color: #9ca3af;
  font-weight: 700;
}

/* ===================================================
   ADMIN PORTAL STYLES (Cool Themed Based on Project)
   =================================================== */

/* Page Background & Layout for Admin */
body[data-active-tab="admin"] {
  background-color: #f1f5f9 !important;
  transition: background-color 0.3s ease;
}

#view-admin {
  background: radial-gradient(circle at 12% 12%, rgba(186, 230, 253, 0.45) 0%, transparent 35%),
              radial-gradient(circle at 88% 22%, rgba(224, 231, 255, 0.5) 0%, transparent 40%),
              radial-gradient(circle at 50% 65%, rgba(207, 250, 254, 0.35) 0%, transparent 45%),
              radial-gradient(circle at 80% 90%, rgba(254, 240, 138, 0.25) 0%, transparent 35%),
              linear-gradient(180deg, #eaf4fd 0%, #f1f8fe 35%, #edf4fc 100%) !important;
  border: 1px solid #bae6fd !important;
  border-radius: 16px;
  padding: 8px 6px 28px;
  margin-top: 1px;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
  min-height: calc(100vh - 180px);
  color: #0f172a;
  font-family: var(--font-sans) !important;
  box-sizing: border-box;
}

/* Standard Font Style throughout Admin Panel */
.admin-dashboard-root,
.admin-login-card,
.admin-dashboard-root *,
.admin-login-card * {
  font-family: var(--font-sans) !important;
  box-sizing: border-box;
}

/* Admin Login Card */
.admin-login-card {
  max-width: 370px;
  width: 92%;
  margin: 32px auto;
  background: #ffffff;
  padding: 22px 18px;
  border-radius: 14px;
  border: 1px solid #bae6fd;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  color: #0f172a;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 16px;
}

.admin-login-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.admin-login-card h2 {
  color: #0369a1;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
  text-align: center;
}

.admin-login-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.admin-login-sub strong {
  color: #0284c7;
}

.admin-alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  margin-bottom: 12px;
  border: 1px solid #fca5a5;
  line-height: 1.35;
}

.admin-alert-success {
  background: #dcfce7;
  color: #166534;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  margin-bottom: 12px;
  border: 1px solid #86efac;
  line-height: 1.35;
}

/* Google Sign-in Button */
.admin-google-btn {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.80rem;
  font-weight: 700;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.admin-google-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
  transform: translateY(-1px);
}

.admin-divider {
  display: flex;
  align-items: center;
  margin: 14px 0;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.admin-divider hr {
  flex: 1;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.admin-divider span {
  padding: 0 10px;
  white-space: nowrap;
}

/* Primary Submit & Action Buttons (Cool Theme Based on Project) */
.admin-submit-btn {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  transition: all 0.18s ease;
}

.admin-submit-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.70rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #334155;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

textarea.form-control {
  height: auto;
  min-height: 58px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

/* Dashboard Root & Header Bar (Cool Sky Theme) */
.admin-dashboard-root {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4px;
  box-sizing: border-box;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 9px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  gap: 8px;
}

.admin-header-left {
  min-width: 0;
  flex: 1;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 900;
  color: #0369a1;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.admin-shield-icon {
  font-size: 1rem;
}

.admin-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
  flex-wrap: wrap;
}

.admin-user-name {
  font-weight: 700;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 180px;
  display: inline-block;
  vertical-align: middle;
}

.admin-role-tag {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.60rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

.admin-header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-action-btn {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid #bae6fd;
  background: #ffffff;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.admin-action-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0369a1;
  transform: translateY(-1px);
}

.admin-logout-btn {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.admin-logout-btn:hover {
  background: #ffe4e6;
  border-color: #e11d48;
  color: #be123c;
  transform: translateY(-1px);
}

/* Sub-Navigation Tabs (Matching Navigation Tabs Bar) */
.admin-subnav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 5px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #edf4f9 0%, #e2ecf5 55%, #d5e3f0 100%);
  padding: 6px 7px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.admin-subnav::-webkit-scrollbar {
  display: none;
}

.admin-subtab-btn {
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.admin-subtab-btn:hover {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.admin-subtab-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
}

.admin-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-badge.badge-pending {
  background: #fef08a;
  border: 1px solid #fde047;
  color: #854d0e;
}

.admin-subtab-btn.active .admin-badge.badge-pending {
  background: #ffffff;
  border-color: #ffffff;
  color: #854d0e;
}

.admin-badge.badge-approved,
.admin-badge.badge-completed {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.admin-badge.badge-rejected {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.badge-games-count {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Admin Cards & Filter Bar (Cool Elevated White Cards) */
.admin-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
  box-sizing: border-box;
  color: #0f172a;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.admin-card-title {
  font-family: var(--font-sans);
  font-size: 0.90rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-title-count {
  font-size: 0.72rem;
  color: #0284c7;
  font-weight: 700;
}

.admin-card-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin: 2px 0 10px 0;
  line-height: 1.4;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.admin-filter-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.admin-filter-btn:hover {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #0284c7;
}

.admin-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.admin-empty-state {
  text-align: center;
  padding: 24px 12px;
  color: #64748b;
}

.admin-empty-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.admin-empty-text {
  font-weight: 600;
  font-size: 0.78rem;
  color: #475569;
}

/* Item Cards (Deposits / Withdrawals) */
.admin-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  color: #0f172a;
  transition: all 0.18s ease;
}

.admin-item-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
  transform: translateY(-1px);
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-item-amount-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-item-amount {
  font-weight: 800;
  font-size: 0.96rem;
  font-family: var(--font-mono);
}

.admin-item-amount.green {
  color: #166534;
}

.admin-item-amount.red {
  color: #dc2626;
}

.admin-item-id {
  font-size: 0.68rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.admin-item-time {
  font-size: 0.66rem;
  color: #64748b;
}

.admin-item-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.74rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #334155;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-field-label {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-field-val {
  font-size: 0.76rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-user-truncate {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #0f172a;
}

.admin-uid-tag {
  font-size: 0.62rem;
  color: #0369a1;
  font-family: var(--font-mono);
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 1px 5px;
  border-radius: 4px;
}

.admin-mono-txt {
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  font-size: 0.82rem;
  color: #0284c7;
}

.copy-badge-btn {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.65rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.copy-badge-btn:hover {
  background: #bae6fd;
  color: #0369a1;
}

.admin-dest-pill {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-bank-details {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #334155;
}

.admin-amount-highlight {
  font-size: 0.88rem;
  color: #0284c7;
  font-weight: 800;
}

.admin-item-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.admin-item-actions button {
  flex: 1;
  min-height: 32px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-approve-deposit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-approve-deposit:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-reject-deposit {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
}

.btn-reject-deposit:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff;
  border-color: #e11d48;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25);
  transform: translateY(-1px);
}

.btn-approve-withdraw {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-approve-withdraw:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}

.btn-reject-withdraw {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
}

.btn-reject-withdraw:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff;
  border-color: #e11d48;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25);
  transform: translateY(-1px);
}

.admin-log-success {
  font-size: 0.72rem;
  color: #166534;
  font-weight: 600;
}

.admin-log-rejected {
  font-size: 0.72rem;
  color: #dc2626;
  font-weight: 600;
}



/* User Management */
.admin-search-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.admin-search-input {
  flex: 1;
  height: 34px;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-sans);
}

.admin-search-input:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.admin-search-btn {
  height: 34px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 14px;
  white-space: nowrap;
  border-radius: 7px;
  border: 1px solid #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.18s ease;
  font-family: var(--font-sans);
}

.admin-search-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  transform: translateY(-1px);
}

.users-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-user-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.18s ease;
}

.admin-user-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transform: translateY(-1px);
}

.admin-user-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #bae6fd;
  flex-shrink: 0;
}

.admin-user-meta {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.admin-user-name-line {
  font-weight: 800;
  font-size: 0.80rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  color: #0f172a;
}

.admin-user-email-line {
  font-size: 0.68rem;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.admin-user-uid-row {
  font-size: 0.66rem;
  color: #64748b;
  font-family: var(--font-mono);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-balance-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 0.70rem;
  color: #334155;
}

.admin-bal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.admin-bal-lbl {
  color: #64748b;
  font-size: 0.68rem;
}

.admin-bal-val {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-bal-val.green {
  color: #166534;
}

.admin-bal-val.gold {
  color: #b45309;
}

.admin-bal-row.total-row {
  border-top: 1px solid #cbd5e1;
  margin-top: 4px;
  padding-top: 4px;
  font-weight: 800;
}

.admin-bal-val.total {
  color: #0284c7;
  font-size: 0.80rem;
}

.admin-user-actions {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
}

.admin-sm-btn {
  font-size: 0.70rem;
  padding: 4px 8px;
  border-radius: 7px;
  min-height: 28px;
  cursor: pointer;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-family: var(--font-sans);
  transition: all 0.18s ease;
}

.admin-sm-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0369a1;
}

.btn-role-demote {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}

.btn-role-demote:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff;
}

.btn-role-promote {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.btn-role-promote:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

/* Wallet Settings */
.admin-settings-card {
  max-width: 540px;
  margin: 0 auto 16px auto;
}

.admin-alert-box {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  margin-bottom: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.admin-form-hint {
  color: #64748b;
  font-size: 0.66rem;
  display: block;
  margin-top: 3px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.admin-checkbox-wrap {
  margin-top: 6px;
  margin-bottom: 10px;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
}

.admin-divider-thin {
  border-top: 1px solid #e2e8f0;
  margin: 10px 0;
}

/* Games Scraper & Retention */
.admin-games-container {
  width: 100%;
}

.admin-games-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.admin-fetch-all-btn {
  font-size: 0.76rem;
  padding: 6px 14px;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #0284c7;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.18s ease;
  font-family: var(--font-sans);
}

.admin-fetch-all-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  transform: translateY(-1px);
}

.admin-controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-cleanup {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
}

.btn-cleanup:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff;
}

.admin-mini-status {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-table-card {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #bae6fd;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
}

.admin-table-banner {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  border-bottom: 1px solid #bae6fd;
}

.admin-table-wrap {
  max-height: 380px;
  overflow: auto;
}

.admin-squeezed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.70rem;
}

.admin-squeezed-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0369a1;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-squeezed-table td {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  white-space: nowrap;
  font-size: 0.70rem;
}

.admin-squeezed-table tr:hover td {
  background: #f0f9ff;
}

.game-tbl-name {
  font-weight: 700;
  font-size: 0.72rem;
  color: #0f172a;
}

.admin-mini-highlight {
  background: #fef08a;
  border: 1px solid #fde047;
  color: #854d0e;
  font-size: 0.60rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 2px;
}

.admin-status-active {
  color: #166534;
  font-weight: 700;
}

.admin-status-disabled {
  color: #dc2626;
  font-weight: 700;
}

.admin-source-cell {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
  color: #64748b;
}

.admin-mini-time {
  font-size: 0.64rem;
  color: #64748b;
}

.admin-actions-cell button {
  padding: 2px 7px;
  font-size: 0.66rem;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-actions-cell button:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

.admin-logs-scroll {
  max-height: 190px;
  overflow-y: auto;
  font-size: 0.70rem;
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
}

.admin-log-item {
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.70rem;
  line-height: 1.35;
}

.admin-log-item:last-child {
  border-bottom: none;
}

.admin-log-top {
  font-weight: 700;
  color: #0369a1;
}

.admin-log-diff {
  color: #475569;
  margin: 1px 0;
}

.admin-log-diff .green {
  color: #166534;
  font-weight: 700;
}

.admin-log-diff .red {
  color: #dc2626;
  font-weight: 700;
}

.admin-log-meta {
  font-size: 0.64rem;
  color: #94a3b8;
}

.admin-log-reason {
  font-style: italic;
  color: #64748b;
  font-size: 0.68rem;
}

.admin-empty-log {
  color: #64748b;
  font-size: 0.72rem;
  margin: 6px 0;
}

.status-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
}

.status-tag.tag-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.status-tag.tag-waiting { background: #fef08a; border: 1px solid #fde047; color: #854d0e; }
.status-tag.tag-failed { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* Ticket Refund Management Styles (Cool Theme Based on Project) */
.admin-refund-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
}

.btn-refund-single-ticket {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #d97706 !important;
  color: #ffffff !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.18s ease;
}

.btn-refund-single-ticket:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  transform: translateY(-1px);
}

#admin-run-auto-refund-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.18s ease;
}

#admin-run-auto-refund-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

#bulk-draw-submit-btn {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.18s ease;
}

#bulk-draw-submit-btn:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25);
}

.admin-refund-notice-box {
  font-size: 0.68rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
}

/* Responsive Media Queries (Desktop/Tablet) */
@media (min-width: 640px) {
  .admin-controls-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .users-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .admin-item-body {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .admin-header-title {
    font-size: 1.05rem;
  }
  .admin-subtab-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* Modal Dialogs (Cool Theme Matching Project) */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 35px -5px rgba(2, 132, 199, 0.2);
  color: #0f172a;
  font-family: var(--font-sans);
}

.modal-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #bae6fd;
}

.modal-header h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0369a1;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #0f172a;
}

.modal-body {
  padding: 16px;
  max-height: 80vh;
  overflow-y: auto;
  color: #334155;
}

.modal-footer {
  padding: 12px 16px;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 24px 16px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .main-content {
    margin: 0 auto 20px;
    padding: 0 6px;
  }
  #view-today {
    border-radius: 14px;
    padding: 2px 5px 14px;
    margin-top: 1px;
  }
  .section-header-banner {
    padding: 1px 0;
    margin: 0 auto 3px;
    gap: 8px;
  }
  .section-header-title {
    font-size: 0.78rem;
    letter-spacing: 2px;
  }
  .section-header-sub {
    font-size: 0.52rem;
    letter-spacing: 1.4px;
  }
  .banner-accent-line {
    max-width: 55px;
  }
  .results-grid-container {
    gap: 10px;
    padding: 0;
  }
  .site-logo {
    height: 98px;
    max-width: min(380px, 90vw);
  }
  .site-subtitle {
    font-size: 0.44rem;
    letter-spacing: 0.2px;
  }
  .live-time-box {
    gap: 4px;
    font-size: 0.54rem;
    margin-top: 1px;
  }
  .live-time-box #ist-today-date {
    font-size: 0.55rem;
  }
  .live-time-sep {
    font-size: 0.48rem;
  }
  .live-time-text {
    font-size: 0.58rem;
    letter-spacing: 0.3px;
  }
  .live-time-zone {
    font-size: 0.48rem;
  }
  .header-edge-wallet {
    right: 4px;
    bottom: 5px;
  }
  .header-wallet-pill {
    padding: 1px 4px;
    font-size: 0.60rem;
    gap: 3px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .wallet-pill-icon {
    font-size: 0.62rem;
  }
  .wallet-pill-plus {
    width: 12px;
    height: 12px;
    font-size: 0.58rem;
  }
  .site-title {
    font-size: 1.35rem;
  }
  .card-result-box {
    padding: 3px 8px;
    margin: 2px 0 5px;
  }
  .card-game-name {
    font-size: 0.98rem;
  }
  .live-draw-text {
    font-size: 0.52rem;
  }
  .panel-digits {
    font-size: 1.25rem;
  }
  .jodi-digits {
    font-size: 1.45rem;
  }
  .result-card {
    border-radius: 20px;
    padding: 10px 12px 12px;
  }
  .card-game-name {
    font-size: 1.08rem;
  }
  .btn-card-chart {
    padding: 5px 14px;
    font-size: 0.76rem;
    min-width: 58px;
  }
  .btn-card-play {
    padding: 5px 16px !important;
    font-size: 0.8rem !important;
    min-width: 86px !important;
  }
  .card-time-pill {
    padding: 2px 8px;
    font-size: 0.68rem;
  }
  .matrix-table th, .matrix-table td {
    padding: 2px 1px;
  }
  .panel-cell-container {
    min-width: 44px;
    max-width: 52px;
    width: 46px;
    height: 33px;
    padding: 1px 2px;
  }
  .panel-center-jodi {
    font-size: 0.80rem;
  }
  .panel-digits-stack {
    width: 9px;
    font-size: 0.54rem;
    line-height: 0.90;
    letter-spacing: -0.5px;
  }
  .nav-container {
    justify-content: flex-start !important;
    gap: 6px;
    padding: 5px 10px !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .nav-tab-btn {
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 0.72rem;
    gap: 4px;
    letter-spacing: 0.2px;
  }
  .nav-tab-icon {
    width: 12px;
    height: 12px;
  }
}

/* ===================================================
   TICKET BUYING & PLAY SYSTEM STYLING (Mobile-First)
   =================================================== */

/* Play button on Result Card — 3D Glossy Emerald Green Jelly Pill */
.btn-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #34d399 0%, #10b981 20%, #059669 60%, #047857 90%, #064e3b 100%) !important;
  color: #ffffff !important;
  border: 1.2px solid #059669 !important;
  border-radius: 999px;
  padding: 6px 24px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: inset 0 2.5px 3px rgba(255, 255, 255, 0.8),
              inset 0 -2px 4px rgba(0, 0, 0, 0.35),
              0 6px 16px rgba(4, 120, 87, 0.45);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  text-transform: uppercase;
  min-width: 104px;
}

.btn-card-play:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: inset 0 2.5px 3px rgba(255, 255, 255, 0.95),
              inset 0 -2px 4px rgba(0, 0, 0, 0.35),
              0 8px 22px rgba(4, 120, 87, 0.6) !important;
}

.btn-card-play:active {
  transform: translateY(1px) scale(0.97);
}

.btn-card-play-locked {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  border: 1px solid #475569 !important;
  opacity: 0.9;
}

.btn-card-play-locked:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  transform: none !important;
  box-shadow: none !important;
}

.play-svg-icon {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.play-btn-label {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Ticket Buy Page Container */
/* ===================================================
   ULTRA-MODERN BUY TICKET PAGE (Snapshot Match)
   =================================================== */
.ticket-buy-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 4px 6px 16px;
}

/* 1. Top Navigation Bar */
.tkt-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  gap: 6px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 9px;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-back:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.tkt-brand-center {
  text-align: center;
  flex: 1;
}

.tkt-brand-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.brand-satta {
  color: #0f172a;
}

.brand-matka {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tkt-brand-slogan {
  font-size: 0.48rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1.1px;
  margin-top: 1px;
}

.btn-ghost-tickets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.btn-ghost-tickets:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* 2. Midnight Game Hero Banner */
.tkt-game-banner {
  background: linear-gradient(135deg, #070d1e 0%, #0d1a38 50%, #11254e 100%) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  margin-bottom: 7px;
  box-shadow: 0 4px 14px rgba(7, 13, 30, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
}

.tkt-banner-left-col {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.tkt-banner-moon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tkt-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tkt-hero-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkt-schedule-line {
  font-size: 0.66rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tkt-schedule-line .schedule-lbl {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
}

.tkt-schedule-line strong {
  color: #ffffff;
  font-weight: 700;
}

.tkt-cutoff-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.tkt-cutoff-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.tkt-cutoff-pill.cutoff-active {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

.tkt-cutoff-pill.cutoff-active .pill-dot {
  width: 5px;
  height: 5px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 5px #16a34a;
}

.tkt-cutoff-pill.cutoff-closed {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}

.tkt-cutoff-pill.cutoff-closed .pill-alert-icon {
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.tkt-banner-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
  min-width: 75px;
  z-index: 1;
}

.tkt-live-market-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  font-size: 0.54rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.tkt-live-market-pill .live-dot {
  font-size: 0.58rem;
  line-height: 1;
  color: #34d399;
}

.tkt-skyline-silhouette {
  position: absolute;
  right: -6px;
  bottom: -4px;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}

.tkt-watermark-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  z-index: 1;
}

.tkt-accent-bar {
  width: 20px;
  height: 2px;
  background: #8b5cf6;
  border-radius: 2px;
  margin-bottom: 2px;
}

.wm-txt {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1.15;
}

/* 3. 6 Bet Category Cards (Horizontal Carousel) */
.tkt-category-scroller {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tkt-category-scroller::-webkit-scrollbar {
  display: none;
}

.tkt-cat-tab {
  min-width: 52px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 5px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tkt-cat-tab:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.tkt-cat-tab.active {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
  transform: translateY(-1px);
}

.cat-tab-icon {
  color: #2563eb;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.tkt-cat-tab.active .cat-tab-icon {
  color: #ffffff !important;
}

.cat-tab-name {
  font-size: 0.64rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  text-align: center;
  line-height: 1.1;
}

.tkt-cat-tab.active .cat-tab-name {
  color: #ffffff !important;
}

.cat-tab-rate {
  font-size: 0.52rem;
  font-weight: 700;
  color: #16a34a;
  margin-top: 1px;
  white-space: nowrap;
  line-height: 1;
}

.tkt-cat-tab.active .cat-tab-rate {
  color: #ffffff !important;
}

/* 4. Play Card Container */
.tkt-play-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* 5. Category Info Header Card */
.cat-info-banner {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cat-info-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.cat-target-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-info-banner-text {
  min-width: 0;
}

.cat-info-title-rate {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}

.cat-info-title-rate strong {
  font-weight: 800;
}

.cat-info-title-rate .rate-accent {
  color: #16a34a;
  font-weight: 800;
}

.cat-info-desc-sub {
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.2;
}

.cat-info-banner-right {
  border-left: 1px solid #f1f5f9;
  padding-left: 8px;
  flex-shrink: 0;
  text-align: center;
}

.cat-lucky-badge-text {
  font-size: 0.48rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.cat-lucky-accent-line {
  width: 18px;
  height: 2px;
  background: #a855f7;
  border-radius: 2px;
  margin: 2px auto 0;
}

/* 6. Session Selector */
.tkt-section-block {
  margin-bottom: 7px;
}

.tkt-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

.session-selector-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.session-pill-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.session-btn-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-icon.sun-icon {
  color: #94a3b8;
}

.session-icon.moon-icon {
  color: #0f172a;
}

.session-meta {
  display: flex;
  flex-direction: column;
}

.session-btn-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.session-btn-status {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 1px;
}

.session-btn-status.status-avail {
  color: #16a34a;
  font-weight: 700;
}

.session-btn-status.status-closed {
  color: #94a3b8;
}

.session-check-badge {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #22c55e;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(34, 197, 94, 0.4);
  flex-shrink: 0;
}

.session-pill-btn.active {
  background: #f0fdf4 !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1) !important;
}

.session-pill-btn.active .session-check-badge {
  display: flex !important;
}

.session-pill-btn.active .session-btn-status {
  color: #16a34a !important;
  font-weight: 700;
}

.session-pill-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

/* 7. Choose Your Number & Quick Select */
.tkt-number-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  flex-wrap: wrap;
  gap: 4px;
}

.tkt-bulk-quick-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tkt-quick-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 1px;
}

.tkt-quick-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  color: #475569;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.tkt-quick-btn:hover {
  border-color: #93c5fd;
  color: #2563eb;
  background: #eff6ff;
}

.tkt-quick-btn.quick-all {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  font-weight: 700;
}

.tkt-quick-btn.tkt-quick-clear {
  background: #ffffff;
  border-color: #fca5a5;
  color: #ef4444;
  font-weight: 700;
}

.tkt-quick-btn.tkt-quick-clear:hover {
  background: #fee2e2;
}

/* 0–9 Numbers Grid */
.ank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 7px;
}

.ank-chip {
  height: 38px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ank-digit {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Cambria Math", "STIXGeneral", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  letter-spacing: 0.5px;
}

.ank-chip:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.ank-chip.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4) !important;
  transform: scale(1.02);
}

/* Bulk Input Row */
.tkt-bulk-input-row {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 7px;
}

.bulk-input-with-icon {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.bulk-input-with-icon .pencil-icon {
  position: absolute;
  left: 9px;
  width: 13px;
  height: 13px;
  color: #64748b;
  pointer-events: none;
}

.tkt-bulk-field {
  width: 100%;
  height: 34px;
  padding-left: 28px;
  padding-right: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.76rem;
  color: #0f172a;
  transition: all 0.15s ease;
}

.tkt-bulk-field:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.btn-bulk-add {
  height: 34px;
  padding: 0 12px;
  background: #6366f1;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-bulk-add:hover {
  background: #4f46e5;
}

/* Selected Numbers Tray */
.tkt-bulk-tray {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 6px 8px;
  margin-bottom: 7px;
}

.tkt-bulk-tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.tkt-bulk-count {
  font-size: 0.74rem;
  font-weight: 800;
  color: #1d4ed8;
}

.tkt-bulk-clear-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.tkt-bulk-clear-btn:hover {
  color: #dc2626;
}

.tkt-bulk-chips-wrap {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tkt-bulk-chip {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #15803d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
}

.tkt-bulk-chip-del {
  background: none;
  border: none;
  color: #15803d;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-weight: 800;
}

.tkt-bulk-chip-del:hover {
  color: #dc2626;
}

/* Other Bet Types Pickers (Jodi, Pana, Sangam) */
.jodi-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jodi-chips-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.jodi-chip {
  padding: 4px 7px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 800;
  border-radius: 7px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.12s ease;
}

.jodi-chip:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.jodi-chip.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.pana-family-selector {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pana-family-tabs-scroller {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.pana-family-tabs-scroller::-webkit-scrollbar {
  display: none;
}

.pana-family-tab {
  flex: 0 0 auto;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.pana-family-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.pana-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.pana-chip {
  height: 30px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  cursor: pointer;
}

.pana-chip.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.triple-pana-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.triple-chip {
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  cursor: pointer;
}

.triple-chip.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.triple-number {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 800;
}

.triple-tag {
  font-size: 0.54rem;
  color: #64748b;
  margin-top: 1px;
}

.triple-chip.active .triple-tag {
  color: #dbeafe;
}

.sangam-builder-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
}

.sangam-type-radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 7px;
}

.sangam-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.sangam-inputs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.sangam-times-sep {
  font-size: 1.1rem;
  font-weight: 900;
  color: #94a3b8;
  text-align: center;
}

.sangam-input-col label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.sangam-input-col input {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
}

/* 8. Stake Amount Selector */
.quick-stake-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.stake-chip {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 9px;
  font-weight: 800;
  font-size: 0.74rem;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.stake-chip:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.stake-chip.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.custom-stake-input-group {
  position: relative;
  max-width: 120px;
}

.currency-prefix {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: #64748b;
  font-size: 0.82rem;
}

.tkt-stake-field {
  padding-left: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  height: 34px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tkt-stake-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* 9. Real-Time Payout Estimate Card (Exact match to media_1789232480925.png) */
.payout-estimate-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 7px 10px;
  margin-top: 7px;
}

.payout-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #166534;
  margin-bottom: 2px;
}

.payout-num-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.payout-stake-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.total-win-row {
  border-top: 1px dashed #86efac;
  padding-top: 5px;
  margin-top: 4px;
  margin-bottom: 0;
}

.payout-win-text {
  font-size: 1.08rem;
  color: #15803d;
  font-weight: 900;
  font-family: var(--font-display);
}

/* 10. User Wallet Balance Bar */
.tkt-wallet-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 9px;
  padding: 5px 9px;
  margin-top: 7px;
}

.tkt-wallet-lbl {
  font-size: 0.68rem;
  color: #1e40af;
  font-weight: 700;
  margin-right: 4px;
}

.tkt-wallet-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1d4ed8;
  font-family: var(--font-mono);
}

.tkt-add-funds-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tkt-add-funds-btn:hover {
  background: #1d4ed8;
}

/* 11. Confirm Ticket Purchase Button */
.tkt-buy-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  background: linear-gradient(90deg, #7c3aed 0%, #6366f1 50%, #4338ca 100%) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #ffffff !important;
  text-shadow: none !important;
  position: relative;
  overflow: hidden;
}

.tkt-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
}

.tkt-buy-btn:active {
  transform: translateY(1px);
}

.tkt-buy-cart-icon {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.tkt-buy-btn-text {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #ffffff;
}

.tkt-buy-knob-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.tkt-buy-btn:hover .tkt-buy-knob-arrow {
  transform: translateX(2px);
}

.tkt-buy-btn:disabled {
  background: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.8;
}

/* 12. Trust Footer */
.tkt-page-trust-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #e2e8f0;
  gap: 6px;
}

.tkt-trust-left {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  color: #475569;
}

.tkt-trust-divider {
  width: 1px;
  height: 12px;
  background: #cbd5e1;
}

.tkt-trust-right {
  text-align: right;
  font-size: 0.54rem;
  color: #475569;
  font-weight: 700;
}

.tkt-trust-brand {
  font-weight: 800;
  color: #0f172a;
  margin-right: 3px;
}

/* ===================================================
   MODERN CONFIRMATION MODAL (Snapshot Match)
   =================================================== */
.tkt-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center; /* Center in the middle of the screen */
  justify-content: center;
  padding: 12px;
  animation: fadeIn 0.2s ease;
}

.tkt-drawer {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 375px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  animation: modalPopCenter 0.26s cubic-bezier(0.34, 1.45, 0.64, 1);
  box-sizing: border-box;
  padding: 0;
  border: none;
  scrollbar-width: none;
}

.tkt-drawer::-webkit-scrollbar {
  display: none;
}

@keyframes modalPopCenter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 1. Cosmic Aurora Header */
.confirm-modal-header {
  padding: 16px 16px 14px;
  background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.25) 0%, transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(217, 70, 239, 0.25) 0%, transparent 45%),
              linear-gradient(135deg, #091742 0%, #151d5c 35%, #2c1a63 70%, #4c1d68 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.confirm-hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.confirm-neon-ticket-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.confirm-hdr-title-wrap {
  display: flex;
  flex-direction: column;
}

.confirm-hdr-title {
  margin: 0;
  font-family: 'Poppins', var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.15;
}

.confirm-hdr-title .txt-cyan {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.confirm-hdr-title .txt-pink {
  color: #e879f9;
  text-shadow: 0 0 10px rgba(232, 121, 249, 0.6);
}

.confirm-hdr-subtitle {
  margin: 2px 0 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  line-height: 1.25;
}

.confirm-hdr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.confirm-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.confirm-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.confirm-hdr-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 0.50rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1.4px;
  line-height: 1.25;
  margin-top: 2px;
}

/* 2. Scrollable Modal Body */
.confirm-modal-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
}

.confirm-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

/* Card A: Meta Bar */
.confirm-meta-card {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-cal-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-date-text-wrap {
  display: flex;
  flex-direction: column;
}

.confirm-date-val {
  font-family: 'Poppins', var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.confirm-time-val {
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 1px;
}

.confirm-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.confirm-meta-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.confirm-id-box {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.confirm-id-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
}

/* Card B: Golden Market Banner */
.confirm-banner-card {
  padding: 8px 10px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(245, 158, 11, 0.08);
}

.confirm-banner-disc {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-gaming-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(180, 83, 9, 0.22));
  transition: transform 0.2s ease;
}

.confirm-gaming-badge:hover {
  transform: scale(1.05) rotate(2deg);
}

.confirm-banner-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.confirm-market-name {
  margin: 0;
  font-family: 'Poppins', var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.15;
}

.confirm-t-navy {
  color: #0f172a;
}

.confirm-t-gold {
  color: #b45309;
}

.confirm-market-tags {
  font-size: 0.58rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.confirm-time-pill {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #fcd34d;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #78350f;
}

.confirm-banner-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.48rem;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: right;
  flex-shrink: 0;
}

.confirm-badge-line {
  width: 28px;
  height: 1.5px;
  background: #d97706;
  margin-top: 2px;
}

/* Card C: 3 × 2 Details Grid */
.confirm-grid-card {
  padding: 8px 6px;
}

.confirm-grid-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  text-align: center;
}

.confirm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px;
}

.confirm-col-mid {
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
}

.confirm-col-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.confirm-col-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.confirm-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.confirm-pill-blue {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.confirm-pill-green {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.confirm-num-chips-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  max-height: 48px;
  overflow-y: auto;
}

.confirm-num-chip {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: var(--font-mono, monospace);
  font-size: 1.05rem;
  font-weight: 900;
  color: #e11d48;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.08);
}

.confirm-grid-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 4px;
}

.confirm-val-stake {
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.confirm-sub-calc {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 600;
}

.confirm-val-win {
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 900;
  color: #16a34a;
}

.confirm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.status-low-bal {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-ready {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.confirm-status-icon-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-low-bal .confirm-status-icon-dot {
  background: #dc2626;
  color: #ffffff;
}

.status-ready .confirm-status-icon-dot {
  background: #15803d;
  color: #ffffff;
}

/* Card D: Wallet Balance Row */
.confirm-wallet-card {
  padding: 8px 12px;
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-wallet-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-wallet-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-wallet-info {
  display: flex;
  flex-direction: column;
}

.confirm-wallet-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.confirm-wallet-sub {
  font-size: 0.64rem;
  color: #64748b;
  font-weight: 500;
}

.confirm-wallet-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.confirm-wallet-amount {
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.confirm-wallet-amount.val-danger,
.confirm-wallet-status.val-danger {
  color: #dc2626;
}

.confirm-wallet-amount.val-success,
.confirm-wallet-status.val-success {
  color: #16a34a;
}

.confirm-wallet-status {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 1px;
}

/* Card E: Warning Banner */
.confirm-warning-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-warn-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-warn-msg {
  font-size: 0.68rem;
  font-weight: 600;
  color: #92400e;
  line-height: 1.3;
}

/* Card F: Swipe Slider */
.confirm-swipe-container {
  margin: 2px 0;
}

.confirm-swipe-track {
  position: relative;
  height: 48px;
  background: linear-gradient(135deg, #046a38 0%, #067d44 50%, #009846 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3px;
  user-select: none;
  box-shadow: 0 4px 14px rgba(4, 106, 56, 0.4);
}

.confirm-swipe-track::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--swipe-fill-width, 0%);
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  transition: width 0.05s linear;
  z-index: 1;
}

.confirm-swipe-track.swipe-completed::before {
  width: 100% !important;
}

.confirm-swipe-thumb {
  position: relative;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  cursor: grab;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  touch-action: pan-y;
  transition: box-shadow 0.2s ease;
}

.confirm-swipe-thumb:active {
  cursor: grabbing;
}

.confirm-swipe-center-text {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.confirm-swipe-primary-txt {
  font-family: 'Poppins', var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.confirm-swipe-sub-txt {
  font-size: 0.54rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.8px;
  margin-top: 1px;
}

.confirm-swipe-chevrons {
  position: absolute;
  right: 14px;
  display: flex;
  gap: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.2rem;
  font-weight: 800;
  pointer-events: none;
  z-index: 2;
}

/* Card G: Footer */
.confirm-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 0;
  font-size: 0.60rem;
  color: #64748b;
}

.confirm-footer-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.confirm-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 0.50rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.2;
}

/* ===================================================
   AUTHENTIC GAME TICKET PASS (Aurora Wave Ribbon Style)
   =================================================== */

.ticket-wrapper {
  max-width: 410px;
  width: 100%;
  margin: 0 auto 24px;
  padding: 0 4px;
}

.ticket-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* 1. Top Ticket Meta Bar */
.tkt-pass-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 6px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.tkt-pass-meta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tkt-pass-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tkt-pass-cal-icon {
  flex-shrink: 0;
}

.tkt-pass-date {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.tkt-pass-time {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  padding-left: 21px;
}

.tkt-pass-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.tkt-pass-id-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tkt-pass-id-row {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0f172a;
}

.tkt-pass-id-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.tkt-pass-copy-icon {
  stroke: #64748b;
  flex-shrink: 0;
  transition: stroke 0.15s ease;
}

.tkt-pass-id-row:hover .tkt-pass-copy-icon {
  stroke: #2563eb;
}

/* 2. OFFICIAL GAME TICKET Divider */
.tkt-pass-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 16px 4px;
}

.tkt-pass-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #cbd5e1 30%, #cbd5e1 70%, transparent);
}

.tkt-pass-divider-title {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #475569;
  text-transform: uppercase;
}

/* 3. Aurora Wave Market Banner */
.tkt-pass-banner {
  margin: 6px 14px 10px;
  border-radius: 14px;
  border: 1px solid #fbcfe8;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f8 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 10px rgba(244, 63, 94, 0.08);
}

.tkt-pass-aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.tkt-aurora-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tkt-pass-banner-info {
  position: relative;
  z-index: 2;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tkt-pass-game-title {
  font-family: var(--font-display, inherit);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}

.tkt-pass-game-title .title-prefix {
  color: #1e1b4b;
}

.tkt-pass-game-title .title-suffix {
  color: #e11d48;
}

.tkt-pass-game-tags {
  font-size: 0.64rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.tkt-pass-time-pill {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fce7f3;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #831843;
  letter-spacing: 0.2px;
}

/* 4. Ticket Details Grid (3 x 2 columns) */
.tkt-pass-grid-card {
  margin: 0 14px 8px;
  padding: 10px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tkt-pass-grid-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  text-align: center;
}

.tkt-pass-grid-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 2px;
}

.tkt-pass-grid-center {
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
}

.tkt-pass-col-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tkt-pill-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tkt-pill-badge.pill-blue {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.tkt-pill-badge.pill-green {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.tkt-pass-big-num {
  font-family: var(--font-mono, monospace);
  font-size: 1.7rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}

.tkt-pass-col-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.tkt-pass-grid-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 8px;
}

.tkt-pass-status-badge.status-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #16a34a;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 3px 8px;
}

/* 5. Perforated Cutout Divider with Punch Notches */
.ticket-perforated-divider {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  margin: 3px 0;
}

.tkt-notch {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #f1f5f9;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.notch-left {
  left: -9px;
  box-shadow: inset -1.5px 0 3px rgba(0, 0, 0, 0.09);
  border: 1px solid #e2e8f0;
  border-left: none;
}

.notch-right {
  right: -9px;
  box-shadow: inset 1.5px 0 3px rgba(0, 0, 0, 0.09);
  border: 1px solid #e2e8f0;
  border-right: none;
}

.tkt-dashed-line {
  width: 90%;
  height: 0;
  border-top: 1.5px dashed #cbd5e1;
}

/* 6. Verification Stub Section (Meta + QR) */
.tkt-pass-stub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 6px;
  gap: 12px;
  background: #ffffff;
}

.tkt-pass-stub-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tkt-stub-line {
  display: flex;
  align-items: center;
  font-size: 0.70rem;
}

.tkt-stub-key {
  width: 90px;
  color: #475569;
  font-weight: 600;
  flex-shrink: 0;
}

.tkt-stub-sep {
  width: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.tkt-stub-val {
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkt-pass-stub-qr {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tkt-qr-wrap {
  padding: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ticket-qr-svg {
  display: block;
  width: 76px;
  height: 76px;
}

.tkt-qr-label {
  font-size: 0.56rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.6px;
}

/* 7. Barcode Section */
.tkt-pass-barcode-section {
  padding: 4px 16px 8px;
  text-align: center;
  background: #ffffff;
}

.tkt-barcode-svg {
  width: 100%;
  max-width: 270px;
  height: 28px;
  display: block;
  margin: 0 auto;
}

.tkt-pass-barcode-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

/* 8. Aurora Wave Footer Banner */
.tkt-pass-footer-banner {
  position: relative;
  width: 100%;
  height: 38px;
  background: linear-gradient(135deg, #d946ef 0%, #6366f1 35%, #2563eb 65%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  margin-top: 2px;
}

.tkt-pass-footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.4;
}

.tkt-footer-wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tkt-pass-footer-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tkt-footer-tag {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tkt-footer-sep {
  opacity: 0.65;
  font-weight: 400;
}

/* 9. Action Buttons below ticket */
.ticket-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.tkt-pass-btn {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tkt-pass-btn-primary {
  background: #0f172a;
  color: #ffffff;
  grid-column: 1 / -1;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
}

.tkt-pass-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.tkt-pass-btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

.tkt-pass-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* ===================================================
   MY TICKETS VIEW (Modern Status Style - Snapshot Match)
   =================================================== */

.my-tickets-container {
  max-width: 760px;
  width: 100%;
  margin: 0 auto 30px;
  padding: 0 4px;
}

.my-tickets-container {
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  padding: 0 4px;
}

.tickets-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.my-ticket-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 4px rgba(15, 23, 42, 0.03);
}

.my-ticket-card:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.my-ticket-card.ticket-won {
  border-color: #86efac;
}

.my-ticket-card.ticket-won:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.my-ticket-card.ticket-lost {
  border-color: #fca5a5;
}

.my-ticket-card.ticket-lost:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* 1. Hero Header Banner */
.my-tkt-hero-header {
  position: relative;
  padding: 8px 12px 7px;
  background: radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.35) 0%, transparent 55%),
              radial-gradient(circle at 18% 90%, rgba(30, 58, 138, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #091a3e 0%, #0d2766 45%, #15459e 85%, #1d5bbf 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.my-tkt-hero-left {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.my-tkt-disc-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.my-tkt-title-block {
  display: flex;
  flex-direction: column;
}

.my-tkt-market-name {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.15;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.my-tkt-word-white {
  color: #ffffff;
}

.my-tkt-word-cyan {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.my-tkt-category-tag {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Center dot matrix grid */
.my-tkt-dot-grid {
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(6, 3px);
  gap: 4px;
  opacity: 0.22;
  pointer-events: none;
}

.my-tkt-dot-grid span {
  width: 2.5px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 50%;
}

/* Right Status Pill & Slogan */
.my-tkt-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  z-index: 2;
  flex-shrink: 0;
}

.my-tkt-status-pill {
  padding: 2.5px 8px;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.status-pill-active {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.status-pill-won {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  box-shadow: 0 1px 5px rgba(22, 163, 74, 0.22);
}

.status-pill-closed,
.status-pill-lost {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  box-shadow: 0 1px 5px rgba(220, 38, 38, 0.2);
}

.status-pill-refunded {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.my-tkt-status-dot {
  font-size: 0.6rem;
  color: #0284c7;
  line-height: 1;
}

.status-pill-active .my-tkt-status-dot {
  color: #0284c7;
}

.status-pill-won .my-tkt-status-dot {
  color: #16a34a;
}

.status-pill-closed .my-tkt-status-dot,
.status-pill-lost .my-tkt-status-dot {
  color: #dc2626;
}

.status-pill-refunded .my-tkt-status-dot {
  color: #ea580c;
}

.my-tkt-hero-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 0.44rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1px;
  line-height: 1.15;
}

/* 2. Middle Body Row */
.my-tkt-body-row {
  padding: 7px 10px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
}

.my-tkt-stat-cards {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.my-tkt-stat-card {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  padding: 4px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.my-tkt-box-number {
  background: #fff5f5;
  border: 1px solid #fee2e2;
}

.my-tkt-box-stake {
  background: #f0f7ff;
  border: 1px solid #e0eeff;
}

.my-tkt-box-win {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.my-tkt-stat-label {
  font-size: 0.52rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.my-tkt-stat-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.my-tkt-circle-placeholder {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-tkt-chip-red {
  background: #ffe4e6;
}

.my-tkt-chip-blue {
  background: #dbeafe;
}

.my-tkt-chip-green {
  background: #dcfce7;
}

.my-tkt-stat-num {
  font-family: var(--font-mono, monospace);
  font-size: 1.15rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}

.my-tkt-stat-stake {
  font-family: var(--font-display, inherit);
  font-size: 1.02rem;
  font-weight: 900;
  color: #0f3ba8;
  line-height: 1;
}

.my-tkt-stat-win {
  font-family: var(--font-display, inherit);
  font-size: 1.02rem;
  font-weight: 900;
  color: #15803d;
  line-height: 1;
}

/* Action Column (Date & View Pass) */
.my-tkt-action-col {
  flex-shrink: 0;
  border-left: 1px solid #f1f5f9;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.my-tkt-date-block {
  display: flex;
  align-items: center;
  gap: 5px;
}

.my-tkt-date-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.my-tkt-date-info {
  display: flex;
  flex-direction: column;
}

.my-tkt-date-text {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.my-tkt-time-text {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 600;
}

.my-tkt-view-pass-btn {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #e0e7ff;
  border-radius: 9999px;
  padding: 3px 9px;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.my-tkt-arrow-icon {
  font-size: 0.72rem;
  transition: transform 0.15s ease;
}

.my-ticket-card:hover .my-tkt-view-pass-btn {
  background: #e0e7ff;
  color: #3730a3;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

.my-ticket-card:hover .my-tkt-arrow-icon {
  transform: translateX(2px);
}

/* 3. Perforated Notch Divider */
.my-tkt-tear-row {
  position: relative;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  margin: 0;
}

.my-tkt-notch {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #f1f5f9;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.my-tkt-notch-l {
  left: -6px;
  box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  border-left: none;
}

.my-tkt-notch-r {
  right: -6px;
  box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  border-right: none;
}

.my-tkt-tear-line {
  width: 93%;
  height: 0;
  border-top: 1px dashed #cbd5e1;
}

/* 4. Bottom Stub */
.my-tkt-stub-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: #ffffff;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: hidden;
}

.my-tkt-stub-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 5px;
}

.my-tkt-barcode-box {
  width: 80px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.my-tkt-barcode-box .tkt-barcode-svg {
  width: 100%;
  height: 18px;
  display: block;
}

.my-tkt-stub-vsep {
  width: 1px;
  height: 16px;
  background: #cbd5e1;
}

.my-tkt-id-meta {
  display: flex;
  flex-direction: column;
}

.my-tkt-id-caption {
  font-size: 0.48rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.my-tkt-id-value {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.my-tkt-stub-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 3px 10px 3px 16px;
  background: linear-gradient(135deg, #e0eeff 0%, #cce2ff 100%);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
  border-right: 3px solid #2563eb;
}

.my-tkt-badge-brand {
  font-size: 0.54rem;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.15;
}

.my-tkt-badge-sub {
  font-size: 0.44rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Mobile Responsiveness for narrow screens */
@media (max-width: 620px) {
  .my-tkt-dot-grid {
    display: none;
  }
  .my-tkt-market-name {
    font-size: 0.95rem;
  }
  .my-tkt-body-row {
    padding: 6px 8px 5px;
    gap: 6px;
  }
  .my-tkt-stat-cards {
    gap: 4px;
  }
  .my-tkt-stat-card {
    padding: 3px 5px;
  }
  .my-tkt-circle-placeholder {
    width: 18px;
    height: 18px;
  }
  .my-tkt-circle-placeholder svg {
    width: 10px;
    height: 10px;
  }
  .my-tkt-stat-num {
    font-size: 1.05rem;
  }
  .my-tkt-stat-stake,
  .my-tkt-stat-win {
    font-size: 0.92rem;
  }
  .my-tkt-action-col {
    padding-left: 6px;
    gap: 3px;
  }
  .my-tkt-date-text {
    font-size: 0.65rem;
  }
  .my-tkt-time-text {
    font-size: 0.54rem;
  }
  .my-tkt-view-pass-btn {
    padding: 2.5px 7px;
    font-size: 0.6rem;
  }
  .my-tkt-barcode-box {
    width: 65px;
  }
  .my-tkt-barcode-box .tkt-barcode-svg {
    height: 15px;
  }
  .my-tkt-stub-left {
    gap: 6px;
    padding: 3px 8px 4px;
  }
  .my-tkt-id-value {
    font-size: 0.58rem;
  }
  .my-tkt-stub-badge {
    padding: 2px 8px 2px 12px;
  }
}

@media (max-width: 440px) {
  .my-tkt-body-row {
    flex-wrap: wrap;
  }
  .my-tkt-stat-cards {
    width: 100%;
  }
  .my-tkt-action-col {
    width: 100%;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 4px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.empty-tickets-box {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  max-width: 480px;
  margin: 20px auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-ticket, #printable-ticket * {
    visibility: visible;
  }
  #printable-ticket {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: 1px solid #000;
  }
  .ticket-actions-bar {
    display: none !important;
  }
}

/* =========================================================
   USER AUTH & WALLET HEADER BAR
   ========================================================= */
.header-auth-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.google-sign-in-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.google-sign-in-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.google-icon {
  flex-shrink: 0;
}

.user-profile-widget {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.user-profile-widget.hidden {
  display: none !important;
}

.header-edge-wallet {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
}

.header-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease;
  line-height: 1;
}

.header-wallet-pill:hover {
  background: #f1f5f9;
  transform: none;
  box-shadow: none;
}

.wallet-pill-icon {
  font-size: 0.76rem;
  line-height: 1;
}

.wallet-pill-amount {
  color: #15803d;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.wallet-pill-plus {
  background: #16a34a;
  color: #ffffff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  margin-left: 1px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3px 10px 3px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.user-pill-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
}

.user-pill-name {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-logout-icon-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-logout-icon-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* =========================================================
   TICKET BUY PAGE WALLET STATUS BAR
   ========================================================= */
.tkt-wallet-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px dashed #94a3b8;
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.tkt-wallet-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
}

.tkt-wallet-lbl {
  color: #64748b;
  font-weight: 500;
  font-size: 0.72rem;
}

.tkt-wallet-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
  font-size: 0.88rem;
}

.tkt-add-funds-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tkt-add-funds-btn:hover {
  background: #15803d;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* =========================================================
   WALLET MODAL COMPONENT
   ========================================================= */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

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

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.wallet-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: wmFadeIn 0.22s ease-out;
}

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

.wallet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: #0f172a;
  color: #ffffff;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.wallet-modal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.wm-title-icon {
  font-size: 1.05rem;
}

.wallet-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.wallet-modal-close:hover {
  color: #ffffff;
}

/* Balance Cards Ribbon - Squeezed */
.wm-balance-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 6px 8px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.wm-bal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wm-bal-card.total {
  border-color: #f59e0b;
  background: linear-gradient(to bottom, #fffbeb, #ffffff);
}

.wm-bal-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  margin-bottom: 1px;
}

.wm-bal-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.wm-bal-card.total .wm-bal-val {
  color: #b45309;
}

.wm-bal-sub {
  font-size: 0.54rem;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.1;
}

.wm-bal-sub.green {
  color: #16a34a;
  font-weight: 600;
}

/* Tabs Navigation - Squeezed */
.wm-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid #e2e8f0;
  background: #f1f5f9;
}

.wm-tab-btn {
  background: transparent;
  border: none;
  padding: 7px 4px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.wm-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
}

.wm-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f59e0b;
}

/* Tab Content - Squeezed */
.wm-tab-content {
  padding: 8px 10px 12px;
}

/* Instruction box - Small font size & compact */
.wm-instruction-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 7px;
  font-size: 0.64rem;
  color: #92400e;
  line-height: 1.25;
}

.wm-instruction-title {
  font-weight: 700;
  font-size: 0.67rem;
  margin-bottom: 2px;
  color: #854d0e;
}

.wm-instruction-box ol {
  margin: 2px 0 0 14px;
  padding: 0;
}

.wm-instruction-box li {
  margin-bottom: 1px;
}

/* QR Code Section - Squeezed */
.wm-qr-section {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 7px;
}

.wm-qr-wrap {
  flex-shrink: 0;
  text-align: center;
}

.wm-qr-image {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px;
  border: 1px solid #cbd5e1;
  display: block;
}

.wm-qr-hint {
  display: block;
  font-size: 0.55rem;
  color: #64748b;
  margin-top: 2px;
}

.wm-upi-info {
  flex: 1;
  min-width: 0;
}

.wm-field-lbl {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
}

.wm-copy-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.wm-copy-input {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: #0f172a;
}

.wm-copy-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.wm-copy-btn:hover {
  background: #1e293b;
}

.wm-badge-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.wm-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.56rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Direct UPI Apps Section */
.wm-upi-apps-section {
  margin-bottom: 7px;
}

.wm-upi-apps-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.wm-upi-apps-sub {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 500;
}

.wm-upi-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.wm-upi-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.wm-upi-app-btn:hover,
.wm-upi-app-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.wm-upi-app-btn.phonepe:hover,
.wm-upi-app-btn.phonepe:active {
  border-color: #5f259f;
  background: #faf5ff;
}

.wm-upi-app-btn.gpay:hover,
.wm-upi-app-btn.gpay:active {
  border-color: #1a73e8;
  background: #eff6ff;
}

.wm-upi-app-btn.paytm:hover,
.wm-upi-app-btn.paytm:active {
  border-color: #00baf2;
  background: #f0f9ff;
}

.wm-upi-app-btn.allupi {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.wm-upi-app-btn.allupi:hover,
.wm-upi-app-btn.allupi:active {
  border-color: #10b981;
  background: #bbf7d0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.wm-allupi-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

.wm-allupi-text {
  font-size: 0.54rem;
  font-weight: 900;
  color: #059669;
  line-height: 1;
  letter-spacing: -0.2px;
  font-family: var(--font-sans);
}

.wm-app-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wm-app-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.wm-upi-app-btn.phonepe .wm-app-label {
  color: #5f259f;
}

.wm-upi-app-btn.gpay .wm-app-label {
  color: #1a73e8;
}

.wm-upi-app-btn.paytm .wm-app-label {
  color: #002970;
}

.wm-upi-app-btn.allupi .wm-app-label {
  color: #047857;
  font-weight: 800;
}

/* Direct Payment Link Box (lottery-web feature) */
.wm-paylink-box {
  margin-bottom: 8px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.05);
  overflow: hidden;
}

.wm-paylink-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-bottom: 1px solid #bae6fd;
}

.wm-paylink-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wm-paylink-icon {
  font-size: 0.82rem;
}

.wm-paylink-label {
  font-size: 0.70rem;
  font-weight: 700;
  color: #0369a1;
}

.wm-paylink-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wm-paylink-content {
  padding: 7px 9px;
}

.wm-paylink-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.wm-paylink-fetch-btn {
  width: 100%;
  padding: 7px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 7px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wm-paylink-fetch-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
}

.wm-paylink-idle-hint {
  font-size: 0.58rem;
  color: #64748b;
  text-align: center;
}

.wm-paylink-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px;
  font-size: 0.70rem;
  color: #0284c7;
  font-weight: 600;
}

.wm-paylink-active {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wm-paylink-row {
  display: flex;
  gap: 4px;
  align-items: center;
}

.wm-paylink-input {
  flex: 1;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #0369a1;
  font-weight: 600;
}

.wm-paylink-input:focus {
  outline: none;
  border-color: #0284c7;
}

.wm-paylink-btn {
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wm-paylink-btn.copy {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.wm-paylink-btn.copy:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wm-paylink-btn.open {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #0284c7;
  color: #ffffff;
}

.wm-paylink-btn.open:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.wm-paylink-hint {
  font-size: 0.58rem;
  color: #64748b;
  margin: 0;
  line-height: 1.25;
}

.wm-paylink-empty {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.62rem;
  color: #92400e;
  line-height: 1.3;
}

.wm-paylink-empty-head {
  font-weight: 700;
  color: #b45309;
  margin-bottom: 2px;
}

.wm-paylink-empty-msg {
  margin: 0 0 5px 0;
}

.wm-paylink-fetch-btn.retry {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  padding: 4px 8px;
  font-size: 0.64rem;
  font-weight: 700;
  border-radius: 5px;
}

.wm-paylink-fetch-btn.retry:hover {
  background: #fde68a;
}

/* Preset Buttons - Squeezed */
.wm-presets-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 7px;
}

.wm-preset-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 5px;
  padding: 5px 2px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wm-preset-btn:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

/* Forms - Squeezed */
.wm-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wm-form-group {
  display: flex;
  flex-direction: column;
}

.wm-input {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 0.80rem;
  color: #0f172a;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.wm-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.wm-input.monospace {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.wm-input.uppercase {
  text-transform: uppercase;
}

.wm-field-help {
  font-size: 0.60rem;
  color: #64748b;
  margin-top: 1px;
}

.wm-submit-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: none;
  border-radius: 7px;
  padding: 9px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2px;
}

.wm-submit-btn:hover {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

.wm-submit-btn.withdraw {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.wm-submit-btn.withdraw:hover {
  background: #059669;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.wm-submit-btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.wm-error-sub {
  font-size: 0.68rem;
  color: #dc2626;
  text-align: center;
  margin-top: 2px;
}

/* Feedback alerts */
.wm-feedback {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
}

.wm-feedback.hidden {
  display: none;
}

.wm-feedback.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.wm-feedback.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.wm-feedback.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Withdraw specific - Squeezed */
.wm-withdraw-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 0.70rem;
  color: #166534;
}

.wm-icon-info {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.wm-withdraw-notice p {
  margin: 1px 0 0;
  color: #15803d;
  font-size: 0.64rem;
}

.wm-method-toggle {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}

.wm-radio-lbl {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: #334155;
  cursor: pointer;
}

.wm-method-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wm-method-fields.hidden {
  display: none !important;
}

/* History tab - Squeezed */
.wm-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wm-refresh-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 0.68rem;
  color: #64748b;
  cursor: pointer;
}

.wm-refresh-btn:hover {
  background: #f1f5f9;
}

.wm-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.wm-tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
}

.wm-tx-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wm-tx-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.wm-tx-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.wm-tx-icon.red {
  background: #fee2e2;
  color: #dc2626;
}

.wm-tx-info {
  min-width: 0;
}

.wm-tx-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-tx-date {
  font-size: 0.62rem;
  color: #64748b;
}

.wm-tx-right {
  text-align: right;
  flex-shrink: 0;
}

.wm-tx-amount {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  font-weight: 800;
}

.wm-tx-amount.green {
  color: #16a34a;
}

.wm-tx-amount.red {
  color: #dc2626;
}

.wm-tx-status {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 8px;
  margin-top: 1px;
}

.wm-tx-status.badge-completed {
  background: #dcfce7;
  color: #15803d;
}

.wm-tx-status.badge-pending {
  background: #fef3c7;
  color: #b45309;
}

.wm-tx-status.badge-failed {
  background: #fee2e2;
  color: #991b1b;
}

.wm-loading-state,
.wm-empty-state,
.wm-error-state {
  text-align: center;
  padding: 20px 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.wm-error-state {
  color: #dc2626;
}

@media (max-width: 480px) {
  .wallet-modal-overlay {
    padding: 6px 4px;
  }
  .wallet-modal-dialog {
    max-width: 100%;
    max-height: 96vh;
    border-radius: 12px;
  }
  .wallet-modal-header {
    padding: 8px 12px;
  }
  .wallet-modal-title {
    font-size: 0.90rem;
  }
  .wm-balance-ribbon {
    padding: 5px 6px;
    gap: 4px;
  }
  .wm-bal-val {
    font-size: 0.82rem;
  }
  .wm-tab-content {
    padding: 6px 8px 10px;
  }
  .wm-qr-section {
    padding: 6px 8px;
    gap: 6px;
  }
  .wm-qr-image {
    width: 68px;
    height: 68px;
  }
  .wm-upi-apps-grid {
    gap: 4px;
  }
  .wm-upi-app-btn {
    padding: 4px 2px;
  }
  .wm-app-label {
    font-size: 0.60rem;
  }
}

/* =========================================================
   AUTH MODAL & SIGN-IN PROMPT COMPONENT
   ========================================================= */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(5px);
}

.auth-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: authModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-modal-dialog-minimal {
  max-width: 320px;
  width: 90%;
  border-radius: 24px;
  padding: 44px 20px 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
}

.auth-modal-close-minimal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 10;
}

.auth-modal-close-minimal:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.06);
}

.auth-modal-body-minimal {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-google-btn-minimal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.auth-google-btn-minimal:hover {
  background: #f9fafb;
  border-color: #4285F4;
  color: #111827;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.22);
  transform: translateY(-1.5px);
}

.auth-google-btn-minimal:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-google-btn-minimal .google-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

@keyframes authModalPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0f172a;
  color: #ffffff;
}

.auth-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.auth-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.auth-modal-close:hover {
  color: #ffffff;
}

.auth-modal-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.auth-game-lbl {
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.auth-game-name {
  color: #1e293b;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.auth-hero-graphic {
  margin-bottom: 20px;
}

.auth-icon-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #bfdbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.auth-hero-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.auth-hero-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

.auth-modal-error {
  width: 100%;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  text-align: left;
}

.auth-modal-error.hidden {
  display: none;
}

/* Standalone & Modal Google Sign In Button */
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.auth-google-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.auth-google-btn:active {
  transform: translateY(0);
  background: #f3f4f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.auth-google-btn.loading {
  opacity: 0.75;
  cursor: wait;
}

.auth-perks-list {
  width: 100%;
  margin: 20px 0 16px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.4;
}

.perk-check {
  color: #16a34a;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.auth-cancel-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s;
}

.auth-cancel-btn:hover {
  color: #1e293b;
  text-decoration: underline;
}

.auth-required-tickets-box {
  max-width: 520px;
  margin: 40px auto;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  text-align: center;
}

/* ===================================================
   USER PILL CLICKABLE STYLES
   =================================================== */
.user-pill.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.user-pill.clickable:hover {
  background: #f1f5f9;
  box-shadow: 0 0 0 2px #0ea5e9;
  transform: translateY(-1px);
}

/* ===================================================
   SATTA MATKA: CLEAN LIGHT THEME (PROFILE & WALLET)
   Matching Satta Matka Portal Aesthetic
   =================================================== */

#view-profile, #view-wallet {
  background: #f8fafc;
  color: #0f172a;
  min-height: calc(100vh - 160px);
  padding: 24px 16px 80px;
}

.lw-profile-container, .lw-wallet-container {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  font-family: var(--font-sans);
}

.lw-profile-ambient-orb, .lw-wallet-ambient-orb {
  display: none;
}

/* Guest / Sign-in Card */
.lw-profile-guest, .lw-wallet-guest {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 24px 16px;
}

.lw-guest-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  max-width: 440px;
  width: 100%;
}

.lw-guest-icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.lw-neon-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.lw-guest-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Core Buttons */
.lw-glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-sans);
}

.lw-glow-btn-cyan {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.lw-glow-btn-cyan:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.lw-glow-btn-emerald {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.lw-glow-btn-emerald:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.lw-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.lw-outline-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.lw-full-btn {
  width: 100%;
}

/* ===================================================
   PROFILE VIEW
   =================================================== */

.lw-profile-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

.lw-profile-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.lw-profile-avatar-img, .lw-profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #e0e7ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lw-profile-avatar-fallback {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lw-profile-edit-avatar-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.lw-profile-edit-avatar-btn svg {
  width: 11px;
  height: 11px;
}
.lw-profile-edit-avatar-btn:hover {
  background: #0369a1;
  transform: scale(1.1);
}

.lw-profile-user-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.lw-profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.lw-profile-contact-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lw-profile-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #bae6fd;
}

.lw-profile-add-phone-btn {
  background: none;
  border: 1px dashed #0284c7;
  color: #0284c7;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.lw-profile-add-phone-btn:hover {
  background: #f0f9ff;
}

.lw-profile-email {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Balance Card */
.lw-wallet-card-wrap {
  margin-bottom: 12px;
}

.lw-wallet-card {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 14px;
  padding: 12px 18px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.3);
}

.lw-wallet-card-left {
  display: flex;
  flex-direction: column;
}

.lw-wallet-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #bae6fd;
  margin-bottom: 2px;
}

.lw-wallet-card-figure {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lw-wallet-card-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.lw-wallet-card-amount {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  margin: 0;
}

.lw-wallet-curr {
  font-size: 1.05rem;
  margin-right: 2px;
}

.lw-wallet-card-sub {
  margin-top: 3px;
  font-size: 0.75rem;
  color: #e0f2fe;
}
.lw-wallet-card-sub strong {
  color: #fef08a;
  font-weight: 700;
}

.lw-wallet-card-action {
  background: #ffffff;
  color: #0284c7;
  border: none;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lw-wallet-card-action:hover {
  background: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

/* Profile Menu Sections */
.lw-menu-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
}

.lw-menu-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
  padding-left: 2px;
}

.lw-menu-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lw-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: left;
}
.lw-menu-btn:hover {
  background: #f1f5f9;
}

.lw-menu-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lw-menu-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lw-icon-blue { background: #e0f2fe; color: #0284c7; }
.lw-icon-purple { background: #f3e8ff; color: #9333ea; }
.lw-icon-green { background: #dcfce7; color: #16a34a; }
.lw-icon-orange { background: #ffedd5; color: #ea580c; }
.lw-icon-slate { background: #f1f5f9; color: #64748b; }
.lw-icon-red { background: #fee2e2; color: #dc2626; }

.lw-menu-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.lw-menu-arrow {
  color: #94a3b8;
  transition: transform 0.15s;
}
.lw-menu-btn:hover .lw-menu-arrow {
  color: #0284c7;
  transform: translateX(3px);
}

.lw-logout-wrap {
  margin-top: 8px;
  margin-bottom: 24px;
}

.lw-logout-btn {
  width: 100%;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lw-logout-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.lw-logout-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
}

.lw-logout-icon {
  display: flex;
  align-items: center;
}

/* Subviews (Earnings, Referrals, Withdrawals, Transactions) */
.lw-subview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.lw-subview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.lw-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lw-back-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lw-subview-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

/* Earnings Hero */
.lw-earnings-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.lw-earnings-icon-wrap {
  display: inline-flex;
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  margin-bottom: 10px;
}
.lw-earnings-icon-wrap svg {
  stroke: #16a34a;
}

.lw-earnings-hero-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #047857;
  margin-bottom: 4px;
}

.lw-earnings-hero-amount {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #065f46;
  margin: 0;
}

/* Glass Box Generic */
.lw-glass-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.lw-box-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

/* Summary Rows */
.lw-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.lw-summary-row:last-child {
  border-bottom: none;
}

.lw-summary-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.lw-summary-val {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.lw-summary-val.green { color: #16a34a; }
.lw-summary-val.cyan { color: #0284c7; }

/* Wins List */
.lw-wins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lw-win-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.lw-win-game-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.lw-win-session {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.lw-win-amount {
  font-size: 1rem;
  font-weight: 800;
  color: #16a34a;
  font-family: var(--font-mono);
}

/* Empty States */
.lw-empty-box {
  text-align: center;
  padding: 36px 16px;
}
.lw-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.lw-empty-box p {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.lw-empty-sub {
  font-size: 0.85rem;
  color: #94a3b8;
}
.lw-empty-msg {
  text-align: center;
  padding: 24px 16px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Transaction and Withdrawal Cards */
.lw-transactions-list, .lw-withdrawals-list, .lw-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lw-tx-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lw-tx-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lw-tx-card-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lw-tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lw-tx-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lw-tx-date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.lw-tx-type {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.lw-tx-note {
  font-size: 0.8rem;
  color: #475569;
  margin: 2px 0;
}

.lw-tx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.lw-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: capitalize;
}
.lw-status-approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.lw-status-pending {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fef08a;
}
.lw-status-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.lw-utr-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-family: var(--font-mono);
}

.lw-reject-reason {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 4px;
}

.lw-tx-card-right {
  text-align: right;
  flex-shrink: 0;
}

.lw-tx-amount {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 0;
}
.lw-amount-pos { color: #16a34a; }
.lw-amount-neg { color: #dc2626; }

/* Referrals View */
.lw-ref-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.lw-ref-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.lw-ref-stat-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lw-ref-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #0f172a;
  margin: 0;
}
.lw-ref-stat-num.green { color: #16a34a; }

.lw-ref-link-card {
  text-align: left;
}

.lw-ref-code-box {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  word-break: break-all;
  text-align: center;
}
.lw-ref-code-box code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #0284c7;
  font-weight: 700;
}

.lw-ref-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.lw-ref-actions button {
  flex: 1;
}

.lw-ref-steps {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.lw-ref-steps-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
}
.lw-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.lw-step-num {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lw-step-text strong {
  font-size: 0.88rem;
  color: #0f172a;
  display: block;
}
.lw-step-text p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

/* Modals & Form Inputs */
.lw-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lw-modal-dialog {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: lwModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lwModalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lw-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.lw-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.lw-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}
.lw-modal-close-btn:hover { color: #0f172a; }

.lw-modal-body {
  padding: 20px;
}

.lw-policy-text p {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.lw-policy-text strong {
  color: #0284c7;
}

.lw-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* Inputs */
.lw-input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.lw-text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lw-text-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.lw-input-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
}

.lw-input-error-text {
  font-size: 0.82rem;
  color: #dc2626;
  margin-top: 6px;
  font-weight: 600;
}

/* ===================================================
   WALLET VIEW
   =================================================== */

.lw-wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lw-wallet-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.lw-wallet-user-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.lw-wallet-avatar-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lw-wallet-avatar-letter {
  font-weight: 800;
  color: #0284c7;
  font-size: 0.95rem;
}

/* Wallet Hero Card */
.lw-wallet-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
  position: relative;
}

.lw-hero-card-glow {
  display: none;
}

.lw-hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.lw-hero-card-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 1px;
}

.lw-hero-card-amount {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #0f172a;
  margin: 0;
  line-height: 1.15;
}

.lw-hero-card-usd {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-top: 1px;
  font-weight: 500;
}

.lw-currency-toggle-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.lw-currency-toggle-btn:hover {
  background: #e2e8f0;
  color: #0369a1;
}

.lw-hero-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-top: 1px solid #f1f5f9;
  padding-top: 5px;
}

.lw-breakdown-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
}
.lw-breakdown-pill.lw-pill-winning {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.lw-breakdown-lbl {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1px;
}
.lw-breakdown-pill.lw-pill-winning .lw-breakdown-lbl {
  color: #15803d;
}

.lw-breakdown-val {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #0f172a;
  line-height: 1.2;
}
.lw-breakdown-val.green {
  color: #16a34a;
}

.lw-breakdown-sub {
  display: block;
  font-size: 0.58rem;
  color: #94a3b8;
  margin-top: 0;
}
.lw-breakdown-sub.green {
  color: #16a34a;
}

/* Tabs */
.lw-wallet-tabs {
  display: flex;
  background: #e2e8f0;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 10px;
}

.lw-wallet-tab-btn {
  flex: 1;
  padding: 7px 4px;
  background: transparent;
  border: none;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.lw-wallet-tab-btn:hover {
  color: #0f172a;
}
.lw-wallet-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Quick Actions in Overview */
.lw-quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.lw-action-big-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.lw-action-icon svg {
  width: 17px;
  height: 17px;
}

.lw-action-deposit {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.lw-action-deposit:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.lw-action-withdraw {
  background: #ffffff;
  color: #16a34a;
  border: 2px solid #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.1);
}
.lw-action-withdraw:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.18);
}

.lw-action-icon {
  display: flex;
  align-items: center;
}

/* Portfolio Allocation */
.lw-portfolio-section {
  margin-bottom: 10px;
}

.lw-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lw-portfolio-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.lw-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lw-portfolio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.lw-portfolio-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lw-port-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lw-port-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.lw-port-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.lw-portfolio-row-right {
  text-align: right;
}

.lw-port-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #0f172a;
  margin: 0;
}
.lw-port-val.green { color: #16a34a; }

.lw-port-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

.lw-link-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.lw-link-btn:hover {
  text-decoration: underline;
}

.lw-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.lw-activity-item:last-child {
  border-bottom: none;
}

.lw-activity-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lw-activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.lw-activity-avatar.credit {
  background: #dcfce7;
  color: #16a34a;
}
.lw-activity-avatar.debit {
  background: #fee2e2;
  color: #dc2626;
}

.lw-act-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.lw-act-date {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

.lw-activity-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.lw-act-amt {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 0;
}
.lw-act-amt.green { color: #16a34a; }
.lw-act-amt.white { color: #0f172a; }

.lw-security-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-top: 8px;
}
.lw-security-shield {
  font-size: 1.3rem;
}
.lw-security-banner h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: #15803d;
  margin: 0;
}
.lw-security-banner p {
  font-size: 0.72rem;
  color: #166534;
  margin: 0;
  line-height: 1.3;
}

/* Add Funds Tab */
.lw-funds-balance-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
}
.lw-funds-bal-icon {
  font-size: 1.4rem;
}
.lw-funds-bal-text {
  display: flex;
  flex-direction: column;
}
.lw-funds-bal-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}
.lw-funds-bal-num {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #0f172a;
}

.lw-amount-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 5px 12px;
  margin: 8px 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lw-amount-input-wrap:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.lw-amount-input-prefix {
  font-size: 1.3rem;
  font-weight: 500;
  color: #94a3b8;
  margin-right: 4px;
}

.lw-amount-huge-input {
  border: none;
  outline: none;
  font-size: 1.5rem;
  font-weight: 400;
  font-family: var(--font-mono);
  color: #1e293b;
  width: 140px;
  text-align: left;
  background: transparent;
}

.lw-amount-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.lw-amount-chip {
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.lw-amount-chip:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}

.lw-min-notice {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 18px;
}

/* Selected Amount Bar */
.lw-selected-amount-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  margin-bottom: 14px;
}

.lw-selected-amt-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lw-selected-amt-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0369a1;
}

.lw-selected-amt-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #0c4a6e;
}

.lw-change-amt-btn {
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0284c7;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lw-change-amt-btn:hover {
  background: #e0f2fe;
  color: #0369a1;
}

/* Step 2 QR Card */
.lw-qr-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lw-qr-prompt {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.lw-qr-frame {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
}

.lw-qr-img {
  width: 200px;
  height: 200px;
  display: block;
}

.lw-qr-amount-badge {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 12px;
}
.lw-qr-amount-badge strong {
  color: #16a34a;
  font-size: 1.25rem;
  font-family: var(--font-mono);
}

.lw-upi-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #334155;
}
.lw-copy-icon-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.lw-copy-icon-btn:hover {
  background: #0369a1;
}

.lw-intent-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
}

.lw-upi-app-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.lw-upi-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.15s;
}
.lw-upi-app-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.lw-app-icon-circ {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
}
.lw-app-icon-circ.purple { background: #5f259f; color: #ffffff; }
.lw-app-icon-circ.multicolor { background: #4285f4; color: #ffffff; }
.lw-app-icon-circ.blue { background: #00baf2; color: #ffffff; font-size: 0.65rem; }
.lw-app-icon-circ.green { background: #059669; color: #ffffff; }
.lw-allupi-text {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1;
}
.lw-btn-allupi span:last-child {
  color: #047857;
}

/* Direct Payment Link Box (lottery-web feature) in Wallet Page */
.lw-paylink-box {
  margin: 10px 0 16px 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #7dd3fc;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  overflow: hidden;
  text-align: left;
}

.lw-paylink-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-bottom: 1px solid #bae6fd;
}

.lw-paylink-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lw-paylink-icon {
  font-size: 0.9rem;
}

.lw-paylink-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0369a1;
  font-family: var(--font-mono, monospace);
}

.lw-paylink-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lw-paylink-content {
  padding: 10px 12px;
}

.lw-paylink-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lw-paylink-input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-family: var(--font-mono, monospace);
  color: #0284c7;
  font-weight: 600;
  outline: none;
  min-width: 0;
}

.lw-paylink-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.lw-paylink-btn.copy {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.lw-paylink-btn.copy:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lw-paylink-btn.open {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.lw-paylink-btn.open:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
}

.lw-paylink-hint {
  margin-top: 6px;
  font-size: 0.70rem;
  color: #64748b;
  text-align: left;
}

.lw-paylink-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.lw-paylink-busy {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}

.lw-paylink-busy-title {
  font-size: 0.80rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lw-paylink-busy-desc {
  font-size: 0.72rem;
  color: #92400e;
  line-height: 1.4;
  margin-bottom: 8px;
}

.lw-paylink-retry-btn,
.lw-paylink-fetch-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
  transition: all 0.15s ease;
  width: 100%;
}

.lw-paylink-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lw-paylink-idle-hint {
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
}

/* Step 1 Preview Card */
.lw-step1-payment-preview {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #e0f2fe;
  text-align: left;
}

.lw-preview-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.lw-preview-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.lw-preview-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.lw-preview-badge-item.wide {
  grid-column: span 2;
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.lw-app-icon-circ.mini {
  width: 20px;
  height: 20px;
  font-size: 0.62rem;
  flex-shrink: 0;
}

.lw-pay-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* UTR Step */
.lw-utr-prompt-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.lw-utr-input-wrap {
  margin: 16px 0;
}
.lw-utr-input {
  font-family: var(--font-mono);
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Withdraw Tab */
.lw-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  margin-bottom: 16px;
}
.lw-notice-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.lw-notice-content {
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.5;
}

.lw-win-bal-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.lw-win-bal-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
}

.lw-win-bal-num {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #15803d;
  margin: 2px 0 0 0;
}

.lw-max-btn {
  background: #16a34a;
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.lw-max-btn:hover {
  background: #15803d;
}

.lw-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.lw-method-chip {
  padding: 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.lw-method-chip.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

.lw-withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lw-form-group {
  display: flex;
  flex-direction: column;
}

/* History Filters */
.lw-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.lw-filter-chip {
  padding: 6px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.lw-filter-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.lw-filter-chip.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Animations */
.animate-fade-in {
  animation: lwFadeIn 0.25s ease-out;
}

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

/* ===================================================
   MOBILE VIEW STYLE: ZERO-SCROLL AUTO-FIT FOR ALL PHONES
   App-like Ergonomic View for Wallet & Profile
   =================================================== */

@media (max-width: 640px) {
  /* 1. Header Bar Condensation when on Wallet / Profile / Buy Ticket / Jodi / Panel */
  body[data-active-tab="wallet"] .site-logo-wrap,
  body[data-active-tab="profile"] .site-logo-wrap,
  body[data-active-tab="buy-ticket"] .site-logo-wrap,
  body[data-active-tab="jodi"] .site-logo-wrap,
  body[data-active-tab="panel"] .site-logo-wrap,
  body:has(#view-wallet.active) .site-logo-wrap,
  body:has(#view-profile.active) .site-logo-wrap,
  body:has(#view-buy-ticket.active) .site-logo-wrap,
  body:has(#view-jodi.active) .site-logo-wrap,
  body:has(#view-panel.active) .site-logo-wrap {
    display: none !important;
  }

  body[data-active-tab="wallet"] .site-title,
  body[data-active-tab="profile"] .site-title,
  body[data-active-tab="buy-ticket"] .site-title,
  body[data-active-tab="jodi"] .site-title,
  body[data-active-tab="panel"] .site-title,
  body:has(#view-wallet.active) .site-title,
  body:has(#view-profile.active) .site-title,
  body:has(#view-buy-ticket.active) .site-title,
  body:has(#view-jodi.active) .site-title,
  body:has(#view-panel.active) .site-title {
    font-size: 0.92rem !important;
    letter-spacing: 0.4px;
    margin: 0;
  }

  body[data-active-tab="wallet"] .site-subtitle,
  body[data-active-tab="profile"] .site-subtitle,
  body[data-active-tab="buy-ticket"] .site-subtitle,
  body[data-active-tab="jodi"] .site-subtitle,
  body[data-active-tab="panel"] .site-subtitle,
  body:has(#view-wallet.active) .site-subtitle,
  body:has(#view-profile.active) .site-subtitle,
  body:has(#view-buy-ticket.active) .site-subtitle,
  body:has(#view-jodi.active) .site-subtitle,
  body:has(#view-panel.active) .site-subtitle,
  body[data-active-tab="wallet"] .live-time-box,
  body[data-active-tab="profile"] .live-time-box,
  body[data-active-tab="buy-ticket"] .live-time-box,
  body[data-active-tab="jodi"] .live-time-box,
  body[data-active-tab="panel"] .live-time-box,
  body:has(#view-wallet.active) .live-time-box,
  body:has(#view-profile.active) .live-time-box,
  body:has(#view-buy-ticket.active) .live-time-box,
  body:has(#view-jodi.active) .live-time-box,
  body:has(#view-panel.active) .live-time-box,
  body[data-active-tab="wallet"] .header-coins-container,
  body[data-active-tab="profile"] .header-coins-container,
  body[data-active-tab="buy-ticket"] .header-coins-container,
  body[data-active-tab="jodi"] .header-coins-container,
  body[data-active-tab="panel"] .header-coins-container,
  body:has(#view-wallet.active) .header-coins-container,
  body:has(#view-profile.active) .header-coins-container,
  body:has(#view-buy-ticket.active) .header-coins-container,
  body:has(#view-jodi.active) .header-coins-container,
  body:has(#view-panel.active) .header-coins-container,
  body[data-active-tab="wallet"] .header-notes-container,
  body[data-active-tab="profile"] .header-notes-container,
  body[data-active-tab="buy-ticket"] .header-notes-container,
  body[data-active-tab="jodi"] .header-notes-container,
  body[data-active-tab="panel"] .header-notes-container,
  body:has(#view-wallet.active) .header-notes-container,
  body:has(#view-profile.active) .header-notes-container,
  body:has(#view-buy-ticket.active) .header-notes-container,
  body:has(#view-jodi.active) .header-notes-container,
  body:has(#view-panel.active) .header-notes-container,
  body[data-active-tab="wallet"] .header-edge-wallet,
  body[data-active-tab="profile"] .header-edge-wallet,
  body[data-active-tab="buy-ticket"] .header-edge-wallet,
  body[data-active-tab="jodi"] .header-edge-wallet,
  body[data-active-tab="panel"] .header-edge-wallet,
  body:has(#view-wallet.active) .header-edge-wallet,
  body:has(#view-profile.active) .header-edge-wallet,
  body:has(#view-buy-ticket.active) .header-edge-wallet,
  body:has(#view-jodi.active) .header-edge-wallet,
  body:has(#view-panel.active) .header-edge-wallet {
    display: none !important;
  }

  body[data-active-tab="wallet"] .header-top,
  body[data-active-tab="profile"] .header-top,
  body[data-active-tab="buy-ticket"] .header-top,
  body[data-active-tab="jodi"] .header-top,
  body[data-active-tab="panel"] .header-top,
  body:has(#view-wallet.active) .header-top,
  body:has(#view-profile.active) .header-top,
  body:has(#view-buy-ticket.active) .header-top,
  body:has(#view-jodi.active) .header-top,
  body:has(#view-panel.active) .header-top {
    padding: 5px 12px !important;
    min-height: auto;
  }

  body[data-active-tab="wallet"] .nav-tabs,
  body[data-active-tab="profile"] .nav-tabs,
  body[data-active-tab="buy-ticket"] .nav-tabs,
  body[data-active-tab="jodi"] .nav-tabs,
  body[data-active-tab="panel"] .nav-tabs,
  body:has(#view-wallet.active) .nav-tabs,
  body:has(#view-profile.active) .nav-tabs,
  body:has(#view-buy-ticket.active) .nav-tabs,
  body:has(#view-jodi.active) .nav-tabs,
  body:has(#view-panel.active) .nav-tabs {
    border-bottom: 1.5px solid #e2e8f0;
  }

  body[data-active-tab="wallet"] .nav-tab-btn,
  body[data-active-tab="profile"] .nav-tab-btn,
  body[data-active-tab="buy-ticket"] .nav-tab-btn,
  body[data-active-tab="jodi"] .nav-tab-btn,
  body[data-active-tab="panel"] .nav-tab-btn,
  body:has(#view-wallet.active) .nav-tab-btn,
  body:has(#view-profile.active) .nav-tab-btn,
  body:has(#view-buy-ticket.active) .nav-tab-btn,
  body:has(#view-jodi.active) .nav-tab-btn,
  body:has(#view-panel.active) .nav-tab-btn {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
  }

  body[data-active-tab="wallet"] .site-header,
  body[data-active-tab="profile"] .site-header,
  body[data-active-tab="buy-ticket"] .site-header,
  body[data-active-tab="jodi"] .site-header,
  body[data-active-tab="panel"] .site-header,
  body:has(#view-wallet.active) .site-header,
  body:has(#view-profile.active) .site-header,
  body:has(#view-buy-ticket.active) .site-header,
  body:has(#view-jodi.active) .site-header,
  body:has(#view-panel.active) .site-header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }

  /* 2. Zero-Scroll View Container */
  #view-profile:not(.active), #view-wallet:not(.active), #view-buy-ticket:not(.active), #view-jodi:not(.active), #view-panel:not(.active) {
    display: none !important;
  }

  #view-buy-ticket.active {
    padding: 6px 8px 16px;
    box-sizing: border-box;
    display: block !important;
  }

  #view-jodi.active, #view-panel.active {
    padding: 6px 4px 28px;
    box-sizing: border-box;
    display: block !important;
    width: 100%;
    overflow-x: hidden;
  }

  #view-profile.active, #view-wallet.active {
    padding: 6px 8px 16px;
    min-height: auto;
    height: calc(100dvh - 70px);
    height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
  }

  .lw-profile-container, .lw-wallet-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
  }

  .lw-profile-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    min-height: 0;
  }

  /* 3. Profile Page - Mobile App Header (Horizontal & Compact) */
  .lw-profile-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px 10px;
    margin-bottom: 0;
    border-radius: 12px;
    gap: 10px;
    flex-shrink: 0;
  }

  .lw-profile-avatar-wrap {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .lw-profile-avatar-fallback {
    font-size: 1.25rem;
  }

  .lw-profile-edit-avatar-btn {
    width: 20px;
    height: 20px;
  }
  .lw-profile-edit-avatar-btn svg {
    width: 10px;
    height: 10px;
  }

  .lw-profile-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .lw-profile-name {
    font-size: 0.96rem;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lw-profile-contact-meta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
  }

  .lw-profile-phone {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
  }

  .lw-profile-add-phone-btn {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

  .lw-profile-email {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  /* Profile Available Balance Card - Squeezed & Mobile Optimized */
  .lw-wallet-card-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .lw-wallet-card {
    padding: 7px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.25);
  }

  .lw-wallet-card-label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    margin-bottom: 1px;
  }

  .lw-wallet-card-figure {
    gap: 6px;
  }

  .lw-wallet-card-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .lw-wallet-card-icon svg {
    width: 12px;
    height: 12px;
  }

  .lw-wallet-card-amount {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
  }

  .lw-wallet-curr {
    font-size: 0.92rem;
  }

  .lw-wallet-card-sub {
    margin-top: 1px;
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .lw-wallet-card-action {
    padding: 5px 9px;
    font-size: 0.72rem;
    border-radius: 8px;
    gap: 4px;
  }
  .lw-wallet-card-action svg {
    width: 12px;
    height: 12px;
  }

  /* Menu Sections in Profile */
  .lw-menu-section {
    padding: 6px 8px;
    margin-bottom: 0;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .lw-menu-section-title {
    font-size: 0.62rem;
    margin-bottom: 4px;
    padding-left: 2px;
    letter-spacing: 0.06em;
  }

  /* Wallet & Activity Section: Squeezed 2x2 Grid of App Tiles */
  .lw-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .lw-activity-grid .lw-menu-btn {
    padding: 6px 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
  }

  .lw-activity-grid .lw-menu-btn:hover {
    background: #f1f5f9;
  }

  .lw-activity-grid .lw-menu-btn-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .lw-activity-grid .lw-menu-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .lw-activity-grid .lw-menu-icon svg {
    width: 13px;
    height: 13px;
  }

  .lw-activity-grid .lw-menu-label {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .lw-activity-grid .lw-menu-arrow {
    display: none;
  }

  /* Admin Shortcut Section Mobile */
  .lw-admin-shortcut-section {
    margin-top: 6px !important;
  }
  .lw-admin-shortcut-section .lw-menu-btn {
    padding: 6px 8px;
    border-radius: 8px;
  }
  .lw-admin-shortcut-section .lw-menu-icon {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }
  .lw-admin-shortcut-section .lw-menu-label {
    font-size: 0.72rem;
  }

  /* Policies Section: 4-column compact grid */
  .lw-policies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .lw-policies-grid .lw-menu-btn {
    padding: 5px 2px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .lw-policies-grid .lw-menu-btn-left {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
  }

  .lw-policies-grid .lw-menu-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .lw-policies-grid .lw-menu-icon svg {
    width: 12px;
    height: 12px;
  }

  .lw-policies-grid .lw-menu-label {
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
  }

  .lw-policies-grid .lw-menu-arrow {
    display: none;
  }

  /* Sign Out Button */
  .lw-logout-wrap {
    margin: 0;
    flex-shrink: 0;
  }

  .lw-logout-btn {
    padding: 6px 10px;
    border-radius: 10px;
  }

  .lw-logout-btn-left {
    font-size: 0.78rem;
    gap: 6px;
  }
  .lw-logout-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Profile Subviews */
  .lw-subview-card {
    padding: 12px;
    border-radius: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .lw-subview-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    gap: 10px;
    flex-shrink: 0;
  }

  .lw-back-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .lw-subview-title {
    font-size: 1.05rem;
  }

  .lw-transactions-list,
  .lw-withdrawals-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    gap: 6px;
  }

  /* 4. Wallet Page Mobile View */
  .lw-wallet-header {
    margin-bottom: 4px;
    flex-shrink: 0;
  }

  .lw-wallet-title {
    font-size: 1.15rem;
  }

  .lw-wallet-user-badge {
    width: 30px;
    height: 30px;
  }

  /* Wallet Hero Card */
  .lw-wallet-hero-card {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 6px;
    flex-shrink: 0;
  }

  .lw-hero-card-top {
    margin-bottom: 8px;
  }

  .lw-hero-card-subtitle {
    font-size: 0.68rem;
    margin-bottom: 0;
  }

  .lw-hero-card-amount {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .lw-hero-card-usd {
    font-size: 0.7rem;
    margin-top: 1px;
  }

  .lw-currency-toggle-btn {
    padding: 3px 8px;
    font-size: 0.72rem;
    border-radius: 8px;
  }

  .lw-hero-breakdown {
    gap: 6px;
    padding-top: 8px;
  }

  .lw-breakdown-pill {
    padding: 6px 8px;
    border-radius: 10px;
  }

  .lw-breakdown-lbl {
    font-size: 0.64rem;
    margin-bottom: 1px;
  }

  .lw-breakdown-val {
    font-size: 0.92rem;
  }

  .lw-breakdown-sub {
    font-size: 0.62rem;
    margin-top: 1px;
  }

  /* Wallet Segmented Tabs */
  .lw-wallet-tabs {
    padding: 3px;
    gap: 3px;
    margin-bottom: 6px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .lw-wallet-tab-btn {
    padding: 6px 2px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  /* Wallet Tab Content Container */
  .lw-wallet-tab-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lw-tab-pane {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Overview Tab */
  .lw-quick-actions-row {
    gap: 8px;
    margin-bottom: 4px;
    flex-shrink: 0;
  }

  .lw-action-big-btn {
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 12px;
  }
  .lw-action-icon svg {
    width: 16px;
    height: 16px;
  }

  .lw-portfolio-section {
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 12px;
  }

  .lw-portfolio-section .lw-section-header-row {
    margin-bottom: 6px;
  }

  .lw-portfolio-section .lw-box-title {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .lw-portfolio-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .lw-portfolio-list {
    gap: 6px;
  }

  .lw-portfolio-row {
    padding: 6px 8px;
    border-radius: 10px;
  }

  .lw-port-icon {
    width: 26px;
    height: 26px;
    font-size: 0.62rem;
    border-radius: 6px;
  }

  .lw-port-title {
    font-size: 0.78rem;
  }

  .lw-port-desc {
    display: none;
  }

  .lw-port-val {
    font-size: 0.85rem;
  }

  .lw-port-sub {
    font-size: 0.64rem;
  }

  .lw-recent-activity-section {
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 12px;
  }

  .lw-recent-activity-section .lw-section-header-row {
    margin-bottom: 4px;
  }

  .lw-recent-activity-section .lw-box-title {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .lw-activity-item {
    padding: 6px 0;
  }

  .lw-activity-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  .lw-act-title {
    font-size: 0.75rem;
  }

  .lw-act-date {
    font-size: 0.65rem;
  }

  .lw-act-amt {
    font-size: 0.82rem;
  }

  .lw-status-pill {
    font-size: 0.64rem;
    padding: 1px 6px;
  }

  .lw-security-banner {
    padding: 6px 10px;
    margin-top: 2px;
    border-radius: 10px;
    gap: 8px;
  }

  .lw-security-shield {
    font-size: 1.2rem;
  }

  .lw-security-banner h4 {
    font-size: 0.75rem;
    margin: 0;
  }

  .lw-security-banner p {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  /* Add Funds Tab */
  .lw-add-funds-box {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 0;
  }

  .lw-funds-balance-bar {
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    gap: 8px;
  }

  .lw-funds-bal-icon {
    font-size: 1.1rem;
  }

  .lw-funds-bal-label {
    font-size: 0.65rem;
  }

  .lw-funds-bal-num {
    font-size: 0.95rem;
  }

  .lw-amount-input-wrap {
    padding: 4px 10px;
    margin: 4px 0 8px;
    border-radius: 12px;
  }

  .lw-amount-input-prefix {
    font-size: 1.05rem;
    font-weight: 400;
  }

  .lw-amount-huge-input {
    font-size: 1.2rem;
    font-weight: 400;
    width: 110px;
  }

  .lw-amount-chips {
    gap: 5px;
    margin-bottom: 8px;
  }

  .lw-amount-chip {
    padding: 4px 9px;
    font-size: 0.74rem;
    border-radius: 8px;
  }

  .lw-min-notice {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .lw-glow-btn {
    padding: 9px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  /* QR Step */
  .lw-qr-card {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 12px;
  }

  .lw-qr-prompt {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .lw-qr-frame {
    padding: 6px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .lw-qr-img {
    width: 120px;
    height: 120px;
  }

  .lw-qr-amount-badge {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  .lw-qr-amount-badge strong {
    font-size: 1rem;
  }

  .lw-upi-copy-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
    border-radius: 10px;
  }

  .lw-intent-label {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .lw-upi-app-buttons {
    gap: 6px;
    margin-bottom: 8px;
  }

  .lw-upi-app-btn {
    padding: 6px 4px;
    font-size: 0.7rem;
    border-radius: 10px;
    gap: 4px;
  }

  .lw-app-icon-circ {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .lw-allupi-text {
    font-size: 0.52rem;
  }

  .lw-pay-actions-wrap {
    gap: 6px;
  }

  .lw-outline-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  /* UTR Step */
  .lw-utr-prompt-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
  }

  .lw-utr-input-wrap {
    margin: 8px 0 10px;
  }

  .lw-utr-input {
    font-size: 1rem;
    padding: 8px 10px;
  }

  /* Withdraw Tab */
  .lw-withdraw-box {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 0;
  }

  .lw-notice-box {
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    gap: 6px;
  }

  .lw-notice-icon {
    font-size: 1rem;
  }

  .lw-notice-content {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .lw-win-bal-highlight {
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .lw-win-bal-lbl {
    font-size: 0.66rem;
  }

  .lw-win-bal-num {
    font-size: 1.1rem;
  }

  .lw-max-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
  }

  .lw-method-selector {
    gap: 6px;
    margin-bottom: 6px;
  }

  .lw-method-chip {
    padding: 6px;
    font-size: 0.76rem;
    border-radius: 8px;
  }

  .lw-withdraw-form {
    gap: 6px;
  }

  .lw-form-group {
    margin-bottom: 0;
  }

  .lw-input-label {
    font-size: 0.72rem;
    margin-bottom: 3px;
  }

  .lw-text-input {
    padding: 7px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  /* History Tab */
  .lw-history-box {
    padding: 10px;
    border-radius: 14px;
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .lw-history-filters {
    gap: 4px;
    margin-bottom: 6px;
    flex-shrink: 0;
  }

  .lw-filter-chip {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .lw-history-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    gap: 6px;
  }

  .lw-tx-card {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .lw-tx-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .lw-tx-icon svg {
    width: 14px;
    height: 14px;
  }

  .lw-tx-type {
    font-size: 0.78rem;
  }

  .lw-tx-date {
    font-size: 0.65rem;
  }

  .lw-tx-amount {
    font-size: 0.88rem;
  }

  .lw-ref-actions {
    flex-direction: column;
  }

  /* Squeezed Mobile Buy Ticket Page */
  .ticket-buy-container {
    max-width: 100%;
    padding: 2px 4px 14px;
  }

  .tkt-play-card {
    padding: 8px 8px;
    border-radius: 12px;
  }

  .tkt-game-banner {
    padding: 7px 9px !important;
  }

  .ank-chip {
    height: 36px;
    font-size: 1.2rem;
  }

  .tkt-buy-btn {
    min-height: 40px;
    padding: 0 10px 0 14px;
  }

  .tkt-buy-btn-text {
    font-size: 0.82rem;
  }

  .tkt-buy-knob-arrow {
    width: 26px;
    height: 26px;
  }

  .auth-required-tickets-box {
    padding: 16px 14px;
    margin: 8px auto;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
  }

  .auth-required-tickets-box .empty-icon {
    font-size: 2.2rem !important;
    margin-bottom: 8px !important;
  }

  .auth-required-tickets-box h3 {
    font-size: 1.1rem !important;
    margin-bottom: 4px !important;
  }

  .auth-required-tickets-box p {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
  }

  /* =============================================================
     SQUEEZED MOBILE JODI & PANEL CHART PAGES
     Compact, fast scanning, responsive grid & mobile ergonomical fit
     ============================================================= */
  body[data-active-tab="jodi"] .main-content,
  body[data-active-tab="panel"] .main-content,
  body:has(#view-jodi.active) .main-content,
  body:has(#view-panel.active) .main-content {
    padding: 0 4px !important;
    margin: 0 auto 16px !important;
    max-width: 100% !important;
  }

  .chart-top-bar {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .btn-back-to-today,
  .btn-back-from-jodi,
  .btn-back-from-panel,
  .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    height: 28px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .btn-back-to-today svg,
  .btn-back-from-jodi svg,
  .btn-back-from-panel svg,
  .btn-back svg {
    width: 14px;
    height: 14px;
  }

  .btn-back-to-today:hover,
  .btn-back:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
  }

  /* Squeezed Filter Bar on Mobile */
  .filter-bar {
    background: #ffffff;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-end;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
  }

  .filter-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .filter-select, .filter-input {
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    background-color: #fff;
    font-family: var(--font-sans);
    height: 30px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Squeezed Chart Card */
  .chart-table-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
  }

  .chart-table-card .section-header-banner {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 6px 8px;
    text-align: center;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 0;
    margin: 0;
    max-width: none;
    border-bottom: 1.5px solid #0284c7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  /* Squeezed Horizontal Scrolling Table */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .table-responsive::-webkit-scrollbar {
    height: 4px;
  }
  .table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }

  .matrix-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.72rem;
    margin: 0;
  }

  .matrix-table th, .matrix-table td {
    padding: 2px 1px !important;
    border: 1px solid #e2e8f0 !important;
    text-align: center;
    vertical-align: middle;
  }

  .matrix-table th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    padding: 4px 1px !important;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 1.5px solid #cbd5e1 !important;
  }

  /* 1. Squeezed Sticky Date Column */
  .matrix-table td.col-date,
  .matrix-table th.col-date {
    position: sticky;
    left: 0;
    background: #f1f5f9 !important;
    z-index: 5;
    font-weight: 700;
    font-size: 0.56rem !important;
    min-width: 52px !important;
    max-width: 60px !important;
    width: 56px !important;
    padding: 2px 2px !important;
    white-space: pre-line !important;
    line-height: 1.05 !important;
    color: #334155 !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.08);
    font-family: var(--font-mono);
    letter-spacing: -0.3px;
  }

  .matrix-table th.col-date {
    background: #e2e8f0 !important;
    z-index: 6;
    font-size: 0.64rem !important;
    color: #0f172a !important;
    letter-spacing: 0.2px;
  }

  /* 2. Squeezed Jodi Chart Cells */
  .jodi-cell-val {
    font-family: var(--font-mono);
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    padding: 3px 2px !important;
    min-width: 32px;
    height: 26px;
    line-height: 1;
    box-sizing: border-box;
  }

  .jodi-cell-val.jodi-red {
    color: #dc2626 !important;
    font-weight: 900 !important;
  }

  .jodi-cell-empty {
    color: #94a3b8 !important;
    font-weight: 700;
    font-size: 0.72rem !important;
    padding: 3px 2px !important;
    line-height: 1;
  }

  /* 3. Squeezed Panel Chart Cells */
  .panel-cell-container {
    min-width: 44px !important;
    max-width: 52px !important;
    width: 46px !important;
    height: 33px !important;
    padding: 1px 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box;
    gap: 1px;
    margin: 0 auto;
  }

  .panel-digits-stack {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 9px !important;
    font-size: 0.54rem !important;
    font-weight: 700 !important;
    line-height: 0.90 !important;
    color: #334155 !important;
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
  }

  .panel-center-jodi {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.80rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    text-align: center;
    line-height: 1 !important;
    padding: 0 1px;
    letter-spacing: -0.3px;
  }

  .panel-center-jodi.jodi-red {
    color: #dc2626 !important;
  }

  .panel-cell-empty {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    width: 100% !important;
    color: #94a3b8 !important;
    font-weight: 700;
    font-size: 0.62rem !important;
  }
}

/* =============================================================
   MANUAL WALLET DEPOSIT (Accordion & Lookup Card)
   ============================================================= */
.admin-manual-deposit-box {
  margin-bottom: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-manual-deposit-box:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
}

.admin-manual-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: none;
  cursor: pointer;
  text-align: left;
}

.admin-manual-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-manual-toggle-icon {
  font-size: 1.25rem;
}

.admin-manual-toggle-text h4 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0369a1;
  letter-spacing: 0.2px;
}

.admin-manual-toggle-text p {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: #64748b;
}

.admin-manual-chevron {
  font-size: 0.75rem;
  color: #0284c7;
  transition: transform 0.2s ease;
}

.admin-manual-content {
  padding: 12px 14px;
  border-top: 1px solid #e0f2fe;
  background: #ffffff;
}

.admin-manual-field {
  margin-bottom: 10px;
}

.admin-manual-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 5px;
}

.admin-manual-lookup-row {
  display: flex;
  gap: 8px;
}

.admin-manual-input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.8rem;
  border-radius: 8px;
  padding: 7px 10px;
}

.admin-manual-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.admin-manual-btn-lookup {
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #0284c7;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-manual-btn-lookup:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.admin-manual-user-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin: 10px 0;
}

.admin-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-preview-info {
  flex: 1;
  min-width: 0;
}

.admin-preview-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-preview-email {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-preview-uid {
  font-size: 0.65rem;
  font-family: monospace;
  color: #0284c7;
}

.admin-preview-balance {
  text-align: right;
  flex-shrink: 0;
}

.admin-preview-bal-lbl {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
}

.admin-preview-bal-val {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #059669;
}

.admin-preview-bal-sub {
  display: flex;
  gap: 6px;
  font-size: 0.65rem;
  color: #64748b;
  justify-content: flex-end;
}

.admin-manual-select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.8rem;
  border-radius: 8px;
  padding: 7px 10px;
}

.admin-manual-select:focus {
  background: #ffffff;
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.admin-manual-submit-btn {
  width: 100%;
  padding: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
  transition: all 0.15s;
}

.admin-manual-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.admin-manual-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================================
   PAYTM PAYMENT LINK POOL MANAGER (lottery-web feature)
   ============================================================= */
.admin-paytm-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
}

.admin-paytm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0f2fe;
}

.admin-paytm-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-paytm-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.admin-paytm-counters {
  display: flex;
  gap: 8px;
}

.admin-pool-counter-btn {
  padding: 4px 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s;
}

.admin-pool-counter-btn.avail {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.admin-pool-counter-btn.avail.active {
  background: #d1fae5;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.admin-pool-counter-btn.used {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.admin-pool-counter-btn.used.active {
  background: #ffe4e6;
  border-color: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

.pool-counter-lbl {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pool-counter-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.admin-paytm-bulk-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.admin-paytm-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 6px;
}

.admin-paytm-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  color: #0f172a;
  font-size: 0.75rem;
  resize: vertical;
  min-height: 70px;
  box-sizing: border-box;
}

.admin-paytm-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.admin-paytm-bulk-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.admin-paytm-hint {
  font-size: 0.7rem;
  color: #64748b;
}

.admin-paytm-add-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
  transition: all 0.15s;
}

.admin-paytm-add-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
}

.admin-paytm-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-btn-clear-used {
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 7px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}

.admin-btn-clear-used:hover {
  background: #fee2e2;
  color: #be123c;
}

.admin-pool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-pool-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.admin-pool-card.pool-card-avail {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-pool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-pool-url-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.admin-pool-link {
  color: #0284c7;
  text-decoration: none;
  font-size: 0.75rem;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-pool-link:hover {
  text-decoration: underline;
  color: #0369a1;
}

.admin-pool-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-pool-amount-tag {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}

.admin-pool-del-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 5px;
  border-radius: 6px;
  color: #94a3b8;
  transition: all 0.15s;
}

.admin-pool-del-btn:hover {
  color: #e11d48;
  background: #fee2e2;
}

.admin-pool-user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.72rem;
  color: #64748b;
}

.admin-pool-user-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-pool-user-name {
  color: #0f172a;
  font-weight: 700;
}

.admin-pool-uid-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-pool-uid {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-family: monospace;
  word-break: break-all;
  user-select: all;
}

.admin-pool-amount-tag.no-amt {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
  font-weight: 600;
}

.admin-pool-chosen-amt-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.admin-pool-chosen-lbl {
  color: #047857;
  font-weight: 600;
}

.admin-pool-chosen-val {
  color: #065f46;
  font-weight: 800;
  font-family: var(--font-mono);
}

.lw-fingerprint-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 2px 0;
  margin: 6px 0 8px;
  font-size: 0.8rem;
  color: #334155;
  text-align: center;
  flex-wrap: wrap;
}

.lw-fp-badge {
  font-weight: 700;
  color: #0284c7;
  font-size: 0.8rem;
}

.lw-fp-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

.lw-fp-desc {
  color: #64748b;
  font-size: 0.74rem;
}

.admin-pool-time {
  font-size: 0.65rem;
  color: #64748b;
  font-family: monospace;
}

/* ===================================================
   FOOTER LEGAL LINKS & LEGAL MODAL
   =================================================== */

.footer-about-service {
  max-width: 580px;
  margin: 0 auto 12px;
  text-align: center;
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1.45;
}

.footer-about-title {
  font-size: 0.64rem;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 3px 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-about-service p {
  margin: 0 0 2px 0;
}

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

.footer-link-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: #0369a1;
  background: #f0f9ff;
}

.footer-link-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* Legal Modal Overlay & Dialog */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.legal-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.legal-modal-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: legalModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes legalModalPop {
  0% { transform: scale(0.95) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Header & Tabs */
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.legal-modal-tabs {
  display: flex;
  gap: 8px;
}

.legal-tab-btn {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.legal-tab-btn:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.legal-tab-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.legal-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.legal-modal-close-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

/* Body Content */
.legal-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
  color: #334155;
  font-size: 0.90rem;
  line-height: 1.65;
}

.legal-policy-container h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.legal-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-policy-container h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0369a1;
  margin: 18px 0 6px 0;
}

.legal-policy-container p {
  margin: 0 0 10px 0;
  color: #475569;
}

.legal-policy-container ul {
  margin: 0 0 14px 0;
  padding-left: 20px;
}

.legal-policy-container li {
  margin-bottom: 6px;
  color: #475569;
}

.legal-policy-container strong {
  color: #1e293b;
}

/* Footer */
.legal-modal-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.legal-modal-done-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.legal-modal-done-btn:hover {
  background: #0369a1;
}

@media (max-width: 640px) {
  .legal-modal-dialog {
    max-height: 92vh;
    border-radius: 12px;
  }
  .legal-modal-body {
    padding: 14px 16px;
    font-size: 0.85rem;
  }
  .legal-tab-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}
