:root {
  --bg-deep-space: #0c061d;
  --bg-modal: #160c33;
  --bg-card: #25134d;
  --bg-card-border: #3b2075;
  --bg-chip: #301863;
  --bg-chip-active: #4a249c;

  --accent-pink: #ff1f8f;
  --accent-pink-glow: rgba(255, 31, 143, 0.6);
  --accent-cyan: #00f0ff;
  --accent-gold: #ffbe18;
  
  --text-white: #ffffff;
  --text-dim: #9d8ec2;
  --text-coins: #4de2ff;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.hidden {
  display: none !important;
}

/* After login, hide game until start ad finishes — no play / no board */
body.ads-pending #logged-out-panel,
body.ads-pending #game-wrapper {
  visibility: hidden;
  pointer-events: none;
}
body.ads-pending #ads-support-gate {
  display: flex;
}

.ads-support-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: radial-gradient(circle at 50% 30%, #291257 0%, #0c061d 85%);
}
.ads-support-gate[hidden] {
  display: none !important;
}
.ads-support-card {
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.ads-support-brand {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #ff4fa3;
  margin-bottom: 18px;
}
.ads-support-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
}
.ads-support-copy {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.45;
  color: #b7a6d4;
}
.ads-watch-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 28px;
  min-width: 200px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff4fa3 0%, #e01870 100%);
  box-shadow: 0 10px 28px rgba(224, 24, 112, 0.35);
  cursor: pointer;
}
.ads-watch-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.ads-support-hint {
  min-height: 1.2em;
  margin: 14px 0 0;
  font-size: 12px;
  color: #9d8bb8;
}
/* While AdMob AdActivity is translucent, keep gate readable (not a blank black flash). */
body.ads-opening #ads-support-gate {
  background: #000;
}
body.ads-opening .ads-support-copy {
  color: #ccc;
}

body {
  background-color: var(--bg-deep-space);
  background-image: radial-gradient(circle at 50% 35%, #291257 0%, #0c061d 85%);
  color: var(--text-white);
  font-family: var(--font-family);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px 10px;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: manipulation;
}

/* Middle Box for exact same look on Web & Mobile */
.phone-viewport {
  width: 100%;
  max-width: 395px;
  height: auto;
  background-color: var(--bg-modal);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin: auto;
}

@media (max-width: 480px) {
  body {
    padding: 8px 6px;
  }
  .phone-viewport {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 6px 14px;
  position: relative;
  flex-shrink: 0;
}

.modal-header-left {
  display: flex;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
}

.modal-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
}

.modal-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  text-align: center;
}

.player-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.player-profile[hidden] {
  display: none !important;
}

#player-dp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: #2a2040;
}

#player-dp[hidden] {
  display: none;
}

#player-handle {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #ffd56a;
  line-height: 1.2;
}

.reload-btn:active svg {
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}

/* Offline / No Internet Pill */
.net-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.55);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #fca5a5;
  margin-top: 2px;
  letter-spacing: 0.2px;
  animation: netPulseAnim 1.6s infinite ease-in-out;
}

.net-status-pill.hidden {
  display: none !important;
}

.net-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

@keyframes netPulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.96); }
}

/* Service Down / Game Unavailable Overlay */
.service-down-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 26, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.down-card {
  background: linear-gradient(145deg, #1f213d, #14162b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  max-width: 310px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.down-icon {
  font-size: 44px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 107, 0.4));
}

.down-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.down-msg {
  font-size: 13px;
  color: #a2a8c5;
  line-height: 1.5;
  margin-bottom: 20px;
}

.down-retry-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s, opacity 0.2s;
}

.down-retry-btn:active {
  transform: scale(0.95);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 36px;
  flex-shrink: 0;
}

.action-icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.2s, background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.05);
}

.action-icon-btn:active {
  transform: scale(0.92);
}

/* Stats / Balances Row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 8px 16px;
  flex-shrink: 0;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-box.right {
  align-items: flex-end;
  cursor: pointer;
}

.stat-box.center {
  align-items: center;
  text-align: center;
}

.stat-value-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Signature Cyan Coins Coin Icon with crisp 'c' */
.coins-gem-icon {
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border: 1px solid #bae6fd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
  font-size: 8.5px;
  font-weight: 900;
  color: #0c1527;
  line-height: 1;
  flex-shrink: 0;
  text-transform: lowercase;
}

.coins-gem-icon::before {
  content: "c";
  display: block;
  transform: translateY(-0.5px);
}

.stat-number {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  transition: transform 0.2s, color 0.2s;
}

@keyframes balancePulseAnim {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.22); filter: brightness(1.6); color: #ffd700; }
  100% { transform: scale(1); filter: brightness(1); }
}

.balance-pulse {
  animation: balancePulseAnim 0.7s ease-out;
  display: inline-block;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
  font-weight: 600;
}

/* 3x3 Game Board Grid */
.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px 10px;
  width: 100%;
  max-width: 385px;
  margin: 0 auto;
  align-content: center;
  box-sizing: border-box;
}

/* Food Card Style */
.food-card {
  background: var(--bg-card);
  border: 1.5px solid var(--bg-card-border);
  border-radius: 15px;
  padding: 6px 4px 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-height: 108px;
  box-sizing: border-box;
}

.food-card:active {
  transform: scale(0.96);
}

.food-img-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.food-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.food-footer-pill {
  background: rgba(14, 7, 33, 0.82);
  border-radius: 12px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.food-mult {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.food-bid-count {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-coins);
}

/* Selected-amount minus (right) and remove-all cross (left) */
.card-minus-btn {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  color: #7c3aed;
  font-size: 18px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 20;
  padding: 0;
  line-height: 1;
}

.food-card.has-bet .card-minus-btn {
  display: flex;
}

.card-minus-btn:hover {
  transform: scale(1.12);
}

.card-minus-btn:active {
  transform: scale(0.92);
}

.card-remove-btn {
  display: none;
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.95);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  z-index: 20;
  transition: transform 0.15s, background-color 0.15s;
  padding: 0;
  line-height: 1;
}
  padding: 0;
  line-height: 1;
}

.card-remove-btn:hover {
  transform: scale(1.18);
  background: #dc2626;
}

.card-remove-btn:active {
  transform: scale(0.9);
}

.food-card.has-bet .card-remove-btn {
  display: flex;
}

/* Card States during Betting, Calculating & Winner */
.food-card.has-bet {
  border-color: #f0abfc !important;
  background: linear-gradient(145deg, rgba(88, 38, 142, 0.9) 0%, rgba(55, 20, 95, 0.95) 100%);
  box-shadow: 0 0 16px rgba(240, 171, 252, 0.35), inset 0 0 10px rgba(240, 171, 252, 0.2);
}

.food-card.is-active-cursor {
  border: 3px solid #ffffff !important;
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 45%, #7e22ce 100%) !important;
  box-shadow: 0 0 30px #f472b6, 0 0 12px #ffffff, inset 0 0 16px rgba(255, 255, 255, 0.75) !important;
  transform: scale(1.06) !important;
  z-index: 25 !important;
  opacity: 1 !important;
  filter: none !important;
}

.food-card.dimmed {
  filter: brightness(0.65) opacity(0.85);
}

.food-card.is-winner-burst {
  border-color: #ff1f8f !important;
  background: #4a197e !important;
  box-shadow: 0 0 30px #ff1f8f, inset 0 0 15px rgba(255, 31, 143, 0.5);
  transform: scale(1.08);
  animation: pulseWinner 0.8s infinite alternate;
  z-index: 20;
}

/* Food Card Disabled during Calculating */
.food-card.is-disabled {
  opacity: 0.35 !important;
  filter: saturate(0.4) brightness(0.7) !important;
  pointer-events: none !important;
  transform: scale(0.96) !important;
}

/* Center Timer Hub - Modern High Tech Glassmorphic Display (No Image) */
.center-kiosk {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.timer-hub-box {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: 108px;
  background: linear-gradient(145deg, rgba(35, 17, 72, 0.95), rgba(18, 9, 41, 0.98));
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Normal Timer Header */
.timer-hub-header {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hub-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
  animation: pulseDot 1.2s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.hub-title {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Main Display */
.timer-hub-main {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 40px;
}

.timer-digits-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}

.timer-digit-large {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0,0,0,0.8);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-unit {
  font-size: 12px;
  font-weight: 800;
  color: #00f0ff;
  margin-left: 1px;
}

/* Footer Status Pill */
.timer-hub-footer {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  text-align: center;
  white-space: nowrap;
}

/* === URGENT LAST 5 SECONDS STATE (User ko feel aana chahiye ki khatam hone wala hai) === */
.timer-hub-box.is-urgent {
  background: linear-gradient(145deg, rgba(85, 12, 38, 0.98), rgba(45, 5, 20, 0.98)) !important;
  border-color: #ff0055 !important;
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.8), inset 0 0 15px rgba(255, 0, 85, 0.4) !important;
  animation: urgentPulse 0.5s infinite alternate !important;
}

@keyframes urgentPulse {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

.timer-hub-box.is-urgent .hub-live-dot {
  background: #ff0055;
  box-shadow: 0 0 8px #ff0055;
}

.timer-hub-box.is-urgent .hub-title {
  color: #ffbe18;
}

.timer-hub-box.is-urgent .timer-digit-large {
  color: #ff3366 !important;
  text-shadow: 0 0 16px #ff0055, 0 0 30px #ff0055 !important;
  animation: digitBlink 0.5s infinite alternate;
}

@keyframes digitBlink {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

.timer-hub-box.is-urgent .timer-unit {
  color: #ffbe18 !important;
}

.timer-hub-box.is-urgent .timer-hub-footer {
  background: #ff0055 !important;
  border-color: #ff80a5 !important;
  color: #fff !important;
  font-weight: 900;
  animation: urgentBadge 0.5s infinite alternate;
}

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

/* === CALCULATING / WAITING PHASE (Gol-Gol Spin) === */
.timer-hub-box.is-calculating {
  background: linear-gradient(145deg, rgba(30, 15, 60, 0.98), rgba(15, 7, 35, 0.98)) !important;
  border-color: #ffd000 !important;
  box-shadow: 0 0 20px rgba(255, 208, 0, 0.6), inset 0 0 12px rgba(255, 208, 0, 0.25) !important;
}

.timer-hub-box.is-calculating .timer-digits-wrap {
  display: flex !important;
}

.timer-hub-box.is-calculating .timer-digits-wrap .timer-digit-large {
  color: #ffbe18 !important;
  text-shadow: 0 0 14px rgba(255, 190, 24, 0.7) !important;
}

.timer-hub-box.is-calculating .timer-spinner-wrap {
  display: none !important;
}

.timer-hub-box.is-calculating .timer-hub-footer {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Next Round Transition Loader (Replaces dead 00 state) */
.timer-loader-wrap {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.timer-hub-box.is-loading .timer-digits-wrap {
  display: none !important;
}

.timer-hub-box.is-loading .timer-loader-wrap {
  display: flex !important;
}

.loader-pulse-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 240, 255, 0.2);
  border-top-color: #00f0ff;
  border-right-color: #ff1f8f;
  animation: golGolSpin 0.8s linear infinite;
  position: absolute;
}

.loader-dot-pulse {
  font-size: 14px;
  animation: pulseDot 0.8s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Spinning Radar Wheel */
.timer-spinner-wrap {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.radar-scan-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 208, 0, 0.3);
  box-shadow: 0 0 12px rgba(255, 31, 143, 0.5);
  position: absolute;
}

.radar-scan-sweep {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ff1f8f;
  border-right-color: #00f0ff;
  border-bottom-color: #ffd000;
  box-shadow: 0 0 15px rgba(255, 31, 143, 0.9);
  animation: golGolSpin 0.6s linear infinite;
  position: absolute;
}

.radar-center-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #00f0ff, 0 0 16px #ff1f8f;
  position: absolute;
}

@keyframes golGolSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bottom Controls Section - Fixed height to avoid ANY layout shift or UI jumps across phases */
.bottom-controls {
  padding: 6px 12px 6px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  height: 74px;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
}

.bidding-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.instruction-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.instruction-text {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
}

.clear-bets-pill {
  background: rgba(239, 68, 68, 0.35);
  border: 1.5px solid rgba(239, 68, 68, 0.75);
  color: #fee2e2;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 12px;
  min-height: 25px;
  border-radius: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.clear-bets-pill:hover,
.clear-bets-pill:active {
  background: rgba(239, 68, 68, 0.65);
  color: #ffffff;
  transform: scale(0.96);
}

.clear-bets-pill.hidden {
  display: none !important;
}

.chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px 2px;
  scroll-behavior: smooth;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background: var(--bg-chip);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 7px 14px;
  flex: 0 0 auto;
  min-width: 60px;
  min-height: 34px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip-btn:hover {
  background: var(--bg-chip-active);
  border-color: rgba(255, 31, 143, 0.45);
}

.chip-btn.selected {
  background: linear-gradient(135deg, #a6125e, #79116a) !important;
  border-color: #f472b6 !important;
  box-shadow: 0 0 14px rgba(255, 31, 143, 0.6) !important;
  transform: translateY(-1px);
}

.chip-text {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

/* Calculating / Completing Purchase Bar */
.calculating-bar-wrap {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px 6px;
  box-sizing: border-box;
}

.calculating-bar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.calc-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.calc-subtitle {
  font-size: 10px;
  color: var(--text-dim);
}

.calc-progress-track {
  width: 100%;
  height: 6px;
  background: #251247;
  border-radius: 6px;
  overflow: hidden;
}

.calc-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #9333ea, #ec4899);
  border-radius: 6px;
  animation: progressDrain 8s linear forwards;
}

@keyframes progressDrain {
  from { width: 100%; }
  to { width: 0%; }
}

/* Flying Coin Animation */
.flying-coin {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #5fe8ff, #0099ff);
  border: 1.5px solid #fff;
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #0f172a;
  pointer-events: none;
  z-index: 999;
  transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.35, 1), opacity 0.42s ease-in;
}

/* Floating Bet "+1000" Animation */
@keyframes floatBetUp {
  0% { opacity: 0; transform: translateY(4px) scale(0.8); }
  30% { opacity: 1; transform: translateY(-8px) scale(1.15); }
  80% { opacity: 1; transform: translateY(-24px) scale(1); }
  100% { opacity: 0; transform: translateY(-34px) scale(0.9); }
}

.floating-bet-text {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 10px #ff1f8f;
  pointer-events: none;
  z-index: 50;
  animation: floatBetUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Notification - Floating at the very top of the screen (Out of the game box) */
.toast-box {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  background: #ffffff;
  color: #0c061d;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  white-space: nowrap;
  max-width: 88vw;
  text-overflow: ellipsis;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Past Results Strip */
.past-results-bar {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(10, 5, 24, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 42px;
  height: 42px;
  box-sizing: border-box;
}

.past-results-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.past-results-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.past-results-scroll::-webkit-scrollbar {
  display: none;
}

.mini-history-icon {
  width: 25px;
  height: 25px;
  min-width: 25px;
  border-radius: 50%;
  background: #25134d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.mini-history-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

/* Winner Celebration Modal Overlay (Exact replica of vid2_08.jpg) */
.winner-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 4, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.winner-overlay.active {
  display: flex;
}

.winner-dialog-card {
  background: linear-gradient(180deg, #37146b 0%, #1f0c3d 100%);
  border: 1.5px solid rgba(255, 31, 143, 0.4);
  border-radius: 26px;
  width: 100%;
  max-width: 320px;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 31, 143, 0.3);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.winner-wings-header {
  position: absolute;
  top: -38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winner-item-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #5b1b9e, #290b4d);
  border: 3px solid #ff1f8f;
  box-shadow: 0 0 25px rgba(255, 31, 143, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.winner-item-ring img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.winner-text-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 38px;
  font-weight: 600;
}

.winner-item-name-big {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.winner-mult-badge {
  background: var(--accent-pink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
}

.self-result-line {
  margin-top: 10px;
  min-height: 22px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.self-result-line.is-win {
  color: #ffbe18;
}

.self-result-line.is-miss {
  color: #94a3b8;
  font-weight: 700;
}

#self-result-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Podium section */
.podium-box {
  background: rgba(14, 7, 33, 0.6);
  border-radius: 18px;
  padding: 12px 14px;
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.podium-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.podium-ranks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.podium-user {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ffbe18;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #39196b;
}

.podium-avatar-wrap.rank-1 {
  width: 54px;
  height: 54px;
  border-color: #ffbe18;
  box-shadow: 0 0 12px rgba(255, 190, 24, 0.6);
}

.podium-avatar-wrap.rank-2 {
  border-color: #c0c0c0;
}

.podium-avatar-wrap.rank-3 {
  border-color: #cd7f32;
}

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

.podium-rank-tag {
  position: absolute;
  bottom: -6px;
  background: #ff1f8f;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
}

.podium-handle {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin-top: 10px;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-coins {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-coins);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

/* Next game progress countdown */
.next-game-countdown-wrap {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.next-game-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.candy-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.candy-bar-fill {
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    #ff1f8f,
    #ff1f8f 8px,
    #ffffff 8px,
    #ffffff 16px
  );
  border-radius: 10px;
  animation: moveStripes 1s linear infinite;
  transition: width 0.2s linear;
}

/* Animations */
@keyframes pulseWinner {
  0% { transform: scale(1.05); box-shadow: 0 0 20px #ff1f8f; }
  100% { transform: scale(1.1); box-shadow: 0 0 35px #ff1f8f; }
}

@keyframes blinkStatus {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes moveStripes {
  from { background-position: 0 0; }
  to { background-position: 32px 0; }
}

/* Game Wrapper */
.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 52px;
  animation: fadeIn 0.3s ease;
}

.game-wrapper.hidden {
  display: none !important;
}

html:not(.has-auth-session) .game-wrapper,
html:not(.has-auth-session) .under-game-actions {
  display: none !important;
}

.top-telegram-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(10px, env(safe-area-inset-top, 10px)) 16px 10px;
  background: linear-gradient(180deg, #0c061d 0%, rgba(12, 6, 29, 0.88) 60%, rgba(12, 6, 29, 0) 100%);
  z-index: 9999;
  pointer-events: none;
}

.top-telegram-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #229ED9;
  border: 1px solid #2AABEE;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(34, 158, 217, 0.45);
  transition: all 0.2s ease;
}

.top-telegram-link:hover,
.top-telegram-link:active {
  background: #1a8ec4;
  color: #ffffff;
  transform: translateY(-1px);
}

.top-telegram-link.is-update {
  background: #e11d48;
  border-color: #fb7185;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(225, 29, 72, 0.5);
}

.top-telegram-link.is-update:hover,
.top-telegram-link.is-update:active {
  background: #be123c;
  border-color: #fda4af;
}

.top-telegram-link.is-username {
  cursor: pointer;
  max-width: calc(100% - 28px);
  white-space: pre-line;
  text-align: center;
  line-height: 1.25;
  padding-top: 7px;
  padding-bottom: 7px;
}

.logged-out-panel {
  display: none;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 24px;
  box-sizing: border-box;
}

html:not(.has-auth-session) .logged-out-panel {
  display: flex;
}

.auth-maint-panel {
  display: none;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 24px;
  box-sizing: border-box;
}

html.auth-unavailable .auth-maint-panel {
  display: flex;
}

html.auth-unavailable .logged-out-panel {
  display: none !important;
}

html.auth-unavailable .game-wrapper {
  display: none !important;
}

html.auth-unavailable #fqrs-top-bar,
html.auth-unavailable #fqrs-nav-drawer,
html.auth-unavailable #fqrs-nav-overlay,
html.auth-unavailable #dev-fee-foot {
  display: none !important;
}

.logged-out-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #281442 0%, #150924 100%);
  border: 1.5px solid rgba(255, 31, 143, 0.35);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
}

.logged-out-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.logged-out-msg {
  color: #ffd56a;
  font-size: 15px;
  line-height: 1.45;
}

.logged-out-relogin {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  width: 100%;
  min-height: 92px;
  border: 0;
  border-radius: 22px;
  padding: 24px 18px;
  background: linear-gradient(90deg, #ff1f8f 0%, #ff4d6d 100%);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.logged-out-relogin:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.telegram-code-login {
  display: none;
  margin-top: 14px;
}

html.from-telegram #logged-out-app-msg {
  display: none;
}

html.from-telegram .logged-out-relogin {
  display: none !important;
}

html.from-telegram .telegram-code-login {
  display: block;
}

.telegram-code-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(12, 6, 29, 0.8);
  color: #fff;
  font-size: 14px;
}

.telegram-code-btn {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #facc15;
  color: #1a1028;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.telegram-code-error {
  min-height: 18px;
  margin-top: 8px;
  color: #fda4af;
  font-size: 13px;
}

/* Under Game Box - Logout Action (only while logged in) */
.under-game-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 10px 16px max(14px, env(safe-area-inset-bottom, 14px));
  background: linear-gradient(180deg, rgba(12, 6, 29, 0) 0%, rgba(12, 6, 29, 0.88) 40%, #0c061d 100%);
  z-index: 9999;
  pointer-events: none;
}

.under-game-button-row {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html.from-telegram:not(.has-auth-session) .under-game-logout-btn {
  display: none;
}

.under-game-copy-btn,
.under-game-play-code {
  display: none;
}

html.is-android-app .under-game-copy-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(30, 16, 50, 0.94);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

html.is-android-app .under-game-play-code {
  display: block;
  pointer-events: auto;
  max-width: min(92vw, 420px);
  color: #e9d5ff;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  word-break: break-all;
  user-select: all;
}

.under-game-logout-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(30, 16, 50, 0.94);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(239, 68, 68, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.under-game-logout-btn:hover,
.under-game-logout-btn:active {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
}

.under-game-version {
  pointer-events: none;
  color: #9d8ec2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: pre-line;
  text-align: center;
}

/* Screen 1: First Screen (Login Screen) */
.login-screen-box {
  width: 100%;
  max-width: 360px;
  background-color: var(--bg-modal);
  background: linear-gradient(180deg, #281442 0%, #150924 100%);
  border: 1.5px solid rgba(255, 31, 143, 0.35);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 31, 143, 0.2);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: auto;
  animation: fadeIn 0.25s ease;
}

.login-screen-box.hidden {
  display: none !important;
}

.login-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.login-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 31, 143, 0.3), rgba(147, 51, 234, 0.3));
  border: 1.5px solid rgba(255, 31, 143, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 16px rgba(255, 31, 143, 0.4);
  margin-bottom: 10px;
}

.login-main-title {
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.login-main-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Unauthenticated Screen Branding */
.unauth-box {
  text-align: center;
  padding: 32px 24px 28px;
}

.unauth-status-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  background: rgba(255, 31, 143, 0.15);
  border: 1px solid rgba(255, 31, 143, 0.4);
  border-radius: 20px;
  color: #ff5ba8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.unauth-card-body {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.unauth-msg-primary {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

.unauth-msg-sub {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
  max-width: 290px;
}

.unauth-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.unauth-badge-icon {
  font-size: 16px;
}

.unauth-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: #ffbe18;
}

/* Tenant Tabs: Main (moj) vs Lite (mojtt) */
.tenant-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 16px;
}

.tenant-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tenant-tab.active {
  background: linear-gradient(135deg, #ff1f8f, #9333ea);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 31, 143, 0.45);
}

/* Phone Input Group */
.input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.phone-input-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.phone-input-group:focus-within {
  border-color: #ff1f8f;
  box-shadow: 0 0 12px rgba(255, 31, 143, 0.35);
}

.phone-prefix {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #ffbe18;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}

.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  letter-spacing: 0.8px;
}

.phone-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 500;
}

/* Primary Auth Action Button */
.auth-submit-btn {
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(135deg, #ff1f8f, #a855f7);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 31, 143, 0.45);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 31, 143, 0.6);
}

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

/* OTP Step */
.otp-box {
  margin-top: 4px;
}

.otp-target-hint {
  font-size: 11px;
  color: #a78bfa;
  margin-bottom: 8px;
  text-align: center;
}

.otp-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 5px;
  text-align: center;
  padding: 10px 12px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.otp-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.otp-back-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: underline;
  cursor: pointer;
}

.auth-error-msg {
  font-size: 11px;
  color: #f87171;
  text-align: center;
  margin-top: 8px;
  min-height: 16px;
}
