/* =========================================================================
   CARD LOTTERY PLAYER PORTAL - DARK CASINO/LOTTERY STYLE
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-dark: #060919;
  --bg-card: rgba(18, 22, 49, 0.75);
  --bg-input: rgba(12, 15, 36, 0.85);
  --border-color: rgba(56, 189, 248, 0.15);
  --border-purple: rgba(139, 92, 246, 0.25);
  --border-focus: #8b5cf6;

  /* Colors */
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-gold: #fbbf24;
  --accent-gold-dark: #d97706;
  --accent-red: #ef4444;
  --accent-green: #10b981;

  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --purple-gradient: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
  --blue-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --green-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --dark-gradient: linear-gradient(180deg, #060919 0%, #0d112d 100%);

  /* Shadows */
  --shadow-neon-blue: 0 0 15px rgba(56, 189, 248, 0.2);
  --shadow-neon-purple: 0 0 15px rgba(168, 85, 247, 0.2);
  --shadow-gold: 0 4px 12px rgba(217, 119, 6, 0.35);
  --shadow-purple: 0 4px 12px rgba(109, 40, 217, 0.35);
}

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

html {
  background-color: var(--bg-dark);
  background-image: url("/public/bg1.jpeg") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

body {
  font-family: "Inter", sans-serif;
  background: transparent !important;
  color: var(--text-white);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Mobile Viewport Container */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: #060919;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 75px; /* space for bottom nav */
}

/* Hide scrollbar but allow scrolling */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
.brand-title {
  font-family: "Outfit", sans-serif;
}

/* Top App Bar Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(6, 9, 25, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-back {
  color: var(--text-white);
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* Menu Toggle Button */
.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Logo Brand */
.brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo-img {
  height: 28px;
  width: auto;
}
.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffffff 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header Right Panel */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 22, 49, 0.9);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
}
.wallet-label {
  font-size: 0.65rem;
  color: var(--text-gray);
  display: block;
  text-transform: uppercase;
  font-weight: 600;
}
.wallet-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.btn-wallet-add {
  background: var(--accent-green);
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bell-notification {
  position: relative;
  font-size: 1.2rem;
  color: var(--text-white);
  cursor: pointer;
}
.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-red);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism Card Panels */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-gray);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Predict & Win Banner */
.banner-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 16px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  aspect-ratio: 16 / 9;
  height: auto;
}
.slides-container {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.slide {
  width: 33.333%;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.banner-content {
  z-index: 2;
  max-width: 60%;
}
.banner-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.banner-subtitle {
  font-size: 0.75rem;
  color: var(--text-white);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}
.btn-banner-play {
  background: var(--gold-gradient);
  color: #111;
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  text-transform: uppercase;
}
.banner-graphic {
  position: absolute;
  right: 15px;
  bottom: -5px;
  height: 120px;
  width: auto;
  z-index: 1;
}

/* Quick Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 16px;
}
.metric-pill {
  background: rgba(18, 22, 49, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.metric-pill.wallet-pill {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.12) 0%,
    rgba(18, 22, 49, 0.6) 100%
  );
  border: 1px solid rgba(236, 72, 153, 0.35);
  box-shadow:
    0 4px 12px rgba(236, 72, 153, 0.15),
    inset 0 0 8px rgba(236, 72, 153, 0.05);
}
.metric-pill.wallet-pill:hover {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.22) 0%,
    rgba(18, 22, 49, 0.8) 100%
  );
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow:
    0 4px 18px rgba(236, 72, 153, 0.35),
    inset 0 0 12px rgba(236, 72, 153, 0.15);
}
.metric-pill.bets-pill {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.12) 0%,
    rgba(18, 22, 49, 0.6) 100%
  );
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 4px 12px rgba(56, 189, 248, 0.15),
    inset 0 0 8px rgba(56, 189, 248, 0.05);
}
.metric-pill.bets-pill:hover {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.22) 0%,
    rgba(18, 22, 49, 0.8) 100%
  );
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow:
    0 4px 18px rgba(56, 189, 248, 0.35),
    inset 0 0 12px rgba(56, 189, 248, 0.15);
}
.metric-pill.winnings-pill {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.12) 0%,
    rgba(18, 22, 49, 0.6) 100%
  );
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow:
    0 4px 12px rgba(16, 185, 129, 0.15),
    inset 0 0 8px rgba(16, 185, 129, 0.05);
}
.metric-pill.winnings-pill:hover {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.22) 0%,
    rgba(18, 22, 49, 0.8) 100%
  );
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow:
    0 4px 18px rgba(16, 185, 129, 0.35),
    inset 0 0 12px rgba(16, 185, 129, 0.15);
}
.metric-pill.history-pill {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.12) 0%,
    rgba(18, 22, 49, 0.6) 100%
  );
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow:
    0 4px 12px rgba(251, 191, 36, 0.15),
    inset 0 0 8px rgba(251, 191, 36, 0.05);
}
.metric-pill.history-pill:hover {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.22) 0%,
    rgba(18, 22, 49, 0.8) 100%
  );
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow:
    0 4px 18px rgba(251, 191, 36, 0.35),
    inset 0 0 12px rgba(251, 191, 36, 0.15);
}
.metric-pill.rules-pill {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.12) 0%,
    rgba(18, 22, 49, 0.6) 100%
  );
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow:
    0 4px 12px rgba(168, 85, 247, 0.15),
    inset 0 0 8px rgba(168, 85, 247, 0.05);
}
.metric-pill.rules-pill:hover {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.22) 0%,
    rgba(18, 22, 49, 0.8) 100%
  );
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow:
    0 4px 18px rgba(168, 85, 247, 0.35),
    inset 0 0 12px rgba(168, 85, 247, 0.15);
}
.metric-pill:hover {
  background: rgba(18, 22, 49, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
}
.metric-icon {
  font-size: 1rem;
  margin-bottom: 4px;
}
.metric-icon.wallet {
  color: #ec4899;
}
.metric-icon.bets {
  color: #38bdf8;
}
.metric-icon.winnings {
  color: #10b981;
}
.metric-icon.history {
  color: #fbbf24;
}
.metric-icon.rules {
  color: #a855f7;
}
.metric-lbl {
  font-size: 0.55rem;
  color: var(--text-gray);
  display: block;
  white-space: nowrap;
}
.metric-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2px;
}

/* Draw Cards Section */
.draws-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 16px;
}
.draw-card {
  border-radius: 12px;
  padding: 12px;
  background: rgba(18, 22, 49, 0.85);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.draw-card.open {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-neon-blue);
}
.draw-card.close {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-neon-purple);
}
.draw-type {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}
.draw-card.open .draw-type {
  color: var(--accent-blue);
}
.draw-card.close .draw-type {
  color: var(--accent-purple);
}
.draw-time-tag {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--text-gray);
}
.draw-lbl {
  font-size: 0.55rem;
  color: var(--text-gray);
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 2px;
}
.draw-clock {
  font-size: 1.15rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.draw-card.open .draw-clock {
  color: #ffffff;
}
.draw-card.close .draw-clock {
  color: #ffffff;
}
.draw-card-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 3.5rem;
  opacity: 0.05;
  color: white;
}

/* Card Selection Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.grid-item {
  background: rgba(12, 15, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.grid-item:hover {
  border-color: var(--accent-purple);
}
.grid-item.active {
  background: var(--gold-gradient);
  color: #111;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}
.grid-item.active::after {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0.75rem;
  color: #111;
}

/* Winning Chart and Bet Pool style */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.stats-table td {
  padding: 6px 0;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.stats-table tr:last-child td {
  border-bottom: none;
}
.chart-pos {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pos-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
}
.pos-badge.gold {
  background: #d97706;
  color: white;
}
.pos-badge.silver {
  background: #64748b;
  color: white;
}
.pos-badge.bronze {
  background: #b45309;
  color: white;
}

.multiplier-tag {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: right;
}
.multiplier-tag.purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.multiplier-tag.blue {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Info Alert Box */
.info-alert {
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.68rem;
  color: var(--accent-blue);
  line-height: 1.3;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}

/* Amount Selector */
.amount-wrapper {
  margin-top: 12px;
}
.amount-wrapper label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}
.amount-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.currency-symbol {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gray);
}
.amount-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  outline: none;
}
.amount-input:focus {
  border-color: var(--border-focus);
}
.preset-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.preset-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.preset-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Place Bet Button Row */
.bet-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-bet {
  border: none;
  border-radius: 8px;
  padding: 10px 8px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-bet.open-bet {
  background: var(--blue-gradient);
}
.btn-bet.close-bet {
  background: var(--purple-gradient);
}
.btn-bet span.btn-sub {
  font-size: 0.55rem;
  opacity: 0.7;
  font-weight: 400;
}

/* Latest results card details */
.results-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.result-block {
  background: rgba(12, 15, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px;
}
.result-block-title {
  font-size: 0.65rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.result-block.close-res .result-block-title {
  color: var(--accent-purple);
}
.results-cards-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.card-item {
  background: white;
  border-radius: 6px;
  width: 32px;
  height: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.card-num {
  font-size: 0.65rem;
  font-weight: 800;
  align-self: flex-start;
}
.card-suit {
  font-size: 0.85rem;
}
.card-item.red {
  color: #ef4444;
}
.card-item.black {
  color: #111111;
}
.card-pos-badge {
  position: absolute;
  top: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: white;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.card-pos-badge.p1 {
  background: #fbbf24;
}
.card-pos-badge.p2 {
  background: #94a3b8;
}
.card-pos-badge.p3 {
  background: #b45309;
}

/* Recent History List */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.history-item:last-child {
  border-bottom: none;
}
.history-date {
  color: var(--text-gray);
}
.history-cards {
  display: flex;
  gap: 8px;
}
.h-draw-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.h-draw-val {
  font-weight: 700;
  color: var(--text-white);
}
.h-draw-val.open-txt {
  color: var(--accent-blue);
}
.h-draw-val.close-txt {
  color: var(--accent-purple);
}

/* --- Form Page Styles (Login/Register/Forgot) --- */
.auth-graphic-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px 20px;
  position: relative;
}
.auth-logo-float {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}
.auth-logo-cards {
  height: 60px;
  width: auto;
}
.auth-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  text-align: center;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  margin-bottom: 5px;
  letter-spacing: 1px;
}
.auth-subtitle {
  font-size: 0.75rem;
  color: var(--text-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-container {
  padding: 0 24px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    var(--shadow-neon-purple);
  backdrop-filter: blur(10px);
}
.auth-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  color: white;
}
.auth-card-desc {
  font-size: 0.75rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 24px;
}
.auth-group {
  margin-bottom: 16px;
}
.auth-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-icon {
  position: absolute;
  left: 14px;
  color: var(--accent-purple);
  font-size: 0.95rem;
}
.auth-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px 12px 40px;
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}
.auth-input:focus {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-neon-purple);
}
.auth-link-right {
  position: absolute;
  right: 14px;
  font-size: 0.75rem;
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.auth-link-right.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}
.auth-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.75rem;
}
.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-gray);
}
.auth-checkbox-label input {
  accent-color: var(--accent-purple);
}
.auth-terms-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}
.btn-auth-submit {
  width: 100%;
  background: var(--purple-gradient);
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--shadow-purple);
  transition: transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-auth-submit:active {
  transform: scale(0.98);
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.auth-divider:not(:empty)::before {
  margin-right: 0.5em;
}
.auth-divider:not(:empty)::after {
  margin-left: 0.5em;
}
.btn-auth-social {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: white;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.btn-auth-social:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-auth-social img {
  height: 16px;
  width: auto;
}
.auth-footer-link {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-top: 20px;
}
.auth-footer-link a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

/* Security Trust Badges footer */
.auth-trust-footer {
  display: flex;
  justify-content: space-around;
  padding: 30px 10px 10px 10px;
  margin-top: auto;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-gray);
}
.trust-badge i {
  font-size: 0.9rem;
}
.trust-badge.secure i {
  color: var(--accent-green);
}
.trust-badge.payout i {
  color: var(--accent-gold);
}
.trust-badge.support i {
  color: var(--accent-blue);
}

/* --- Forgot Password Tab styles --- */
.forgot-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}
.forgot-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  color: var(--text-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.forgot-tab.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}

/* --- Wallet / Payment Styles --- */
.wallet-box {
  background: linear-gradient(135deg, #161a45 0%, #0d0f2b 100%);
  border: 1px solid var(--border-purple);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-neon-purple);
}
.wallet-box-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-box-icon {
  width: 44px;
  height: 44px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-purple);
}
.wallet-box-title {
  font-size: 0.62rem;
  color: var(--text-gray);
  text-transform: uppercase;
  font-weight: 600;
}
.wallet-box-balance {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 2px;
}
.btn-wallet-box-add {
  background: var(--accent-green);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Payment selection list */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-method-item {
  background: rgba(12, 15, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-method-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
}
.payment-method-item.selected {
  background: rgba(168, 85, 247, 0.05);
  border-color: var(--accent-purple);
}
.payment-method-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-logo {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.payment-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.payment-logo.bank {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
}
.payment-logo.card {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
}
.payment-logo.wallet-ico {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}
.payment-logo.paylater {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.payment-details {
  display: flex;
  flex-direction: column;
}
.payment-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}
.payment-desc {
  font-size: 0.6rem;
  color: var(--text-gray);
  margin-top: 1px;
}
.payment-status-tag {
  font-size: 0.65rem;
  color: var(--accent-green);
  font-weight: 600;
}
.payment-status-tag.orange {
  color: #f97316;
}

.payment-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-method-item.selected .payment-radio {
  border-color: var(--accent-purple);
  background: var(--accent-purple);
}
.payment-method-item.selected .payment-radio::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.55rem;
  color: white;
}

/* Offers Card banner */
.offer-banner {
  background: linear-gradient(135deg, #2d124d 0%, #120b24 100%);
  border: 1px solid var(--border-purple);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.offer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.offer-gift-box {
  width: 42px;
  height: 42px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-purple);
}
.offer-details {
  display: flex;
  flex-direction: column;
}
.offer-badge {
  background: var(--accent-purple);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  align-self: flex-start;
  text-transform: uppercase;
}
.offer-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  margin-top: 4px;
}
.offer-desc {
  font-size: 0.62rem;
  color: var(--text-gray);
  margin-top: 2px;
}
.offer-right {
  text-align: center;
  background: rgba(251, 191, 36, 0.05);
  border: 1px dashed rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
}
.offer-percent {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: block;
  line-height: 1;
}
.offer-percent-lbl {
  font-size: 0.5rem;
  color: var(--text-gray);
  text-transform: uppercase;
  font-weight: 600;
}

.btn-add-money-secure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  margin: 16px;
  background: var(--purple-gradient);
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: var(--shadow-purple);
  cursor: pointer;
}

/* --- Transaction History Styles --- */
.txn-filters {
  display: flex;
  gap: 6px;
  margin: 12px 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.txn-filter-btn {
  background: rgba(18, 22, 49, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px 12px;
  color: var(--text-gray);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
}
.txn-filter-btn.active {
  background: var(--accent-purple);
  color: white;
  border-color: var(--accent-purple);
}

.txn-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 16px 12px 16px;
}
.date-selector {
  background: rgba(18, 22, 49, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-actions {
  display: flex;
  gap: 6px;
}
.btn-date-act {
  background: rgba(18, 22, 49, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: 6px 10px;
  font-size: 0.72rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-date-act:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.txn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px;
}
.txn-item {
  background: rgba(18, 22, 49, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.2s;
}
.txn-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 49, 0.8);
}
.txn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.txn-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.txn-item.add .txn-icon-circle {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}
.txn-item.withdraw .txn-icon-circle {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}
.txn-item.win .txn-icon-circle {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
}
.txn-item.bet .txn-icon-circle {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
}

.txn-details {
  display: flex;
  flex-direction: column;
}
.txn-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.txn-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
}
.txn-meta {
  font-size: 0.62rem;
  color: var(--text-gray);
  margin-top: 2px;
}
.txn-id-row {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.txn-copy-btn {
  cursor: pointer;
  color: var(--text-muted);
}
.txn-copy-btn:hover {
  color: white;
}

.txn-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.txn-amount {
  font-size: 0.82rem;
  font-weight: 800;
}
.txn-item.add .txn-amount {
  color: var(--accent-green);
}
.txn-item.withdraw .txn-amount {
  color: var(--accent-red);
}
.txn-item.win .txn-amount {
  color: var(--accent-green);
}
.txn-item.bet .txn-amount {
  color: var(--accent-red);
}

.txn-status-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 4px;
  text-transform: uppercase;
}
.txn-status-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.txn-status-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
}
.txn-status-badge.failed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

/* Pagination style */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px;
  padding-top: 10px;
}
.pagination-btn {
  background: rgba(18, 22, 49, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: 6px 14px;
  font-size: 0.72rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-pages {
  display: flex;
  gap: 4px;
  align-items: center;
}
.page-num {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-gray);
  cursor: pointer;
}
.page-num.active {
  background: var(--accent-purple);
  color: white;
  font-weight: 700;
}
.pagination-dots {
  color: var(--text-muted);
}

/* --- Fixed Bottom Tab Navigation --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60px;
  background: rgba(12, 15, 36, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.55rem;
  font-weight: 500;
  gap: 4px;
  height: 100%;
  flex: 1;
  transition: all 0.2s;
}
.nav-tab i {
  font-size: 1.15rem;
}
.nav-tab.active {
  color: var(--accent-gold);
}
.nav-tab.active i {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- User Bets / Profile Page placeholders --- */
.profile-user-card {
  background: linear-gradient(135deg, #10143d 0%, #060919 100%);
  border: 1px solid var(--border-purple);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-avatar-circle {
  width: 54px;
  height: 54px;
  background: var(--purple-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}
.profile-meta {
  display: flex;
  flex-direction: column;
}
.profile-name {
  font-size: 1rem;
  font-weight: 800;
  color: white;
}
.profile-phone {
  font-size: 0.72rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.profile-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 16px;
}
.profile-option-item {
  background: rgba(18, 22, 49, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}
.profile-option-item:hover {
  background: rgba(18, 22, 49, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}
.profile-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-option-left i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}
.profile-option-left i.blue {
  color: var(--accent-blue);
}
.profile-option-left i.purple {
  color: var(--accent-purple);
}
.profile-option-left i.gold {
  color: var(--accent-gold);
}
.profile-option-left i.green {
  color: var(--accent-green);
}
.profile-option-left i.red {
  color: var(--accent-red);
}

/* Bets list items */
.bets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px;
}
.bet-item {
  background: rgba(18, 22, 49, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}
.bet-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
}
.bet-id-lbl {
  font-size: 0.68rem;
  color: var(--text-gray);
  font-weight: 600;
}
.bet-type-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.bet-type-badge.open-bet {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
}
.bet-type-badge.close-bet {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
}

.bet-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bet-details-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bet-detail-item {
  font-size: 0.72rem;
  color: var(--text-gray);
}
.bet-detail-item span {
  font-weight: 700;
  color: white;
}
.bet-detail-item span.gold-txt {
  color: var(--accent-gold);
}
.bet-status-col {
  text-align: right;
}
.bet-payout-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
}
.bet-payout-val {
  font-size: 0.9rem;
  font-weight: 800;
}
.bet-payout-val.win {
  color: var(--accent-green);
}
.bet-payout-val.loss {
  color: var(--text-muted);
}
.bet-payout-val.pending {
  color: var(--accent-gold);
}

/* =========================================================================
   ADDITIONAL RESPONSIVE & LAYOUT POLISH
   ========================================================================= */

/* Central Non-Scrolling Background Setup */
.app-bg {
  background: transparent !important;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Home Page Stats Layout (Replaces inline styles) */
.home-stats-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  margin: 0 16px 12px 16px;
}

@media (max-width: 360px) {
  /* 2x2 layout instead of 1x4 layout on very narrow viewports to avoid label wrapping/overlaps */
  .metrics-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .metric-pill {
    padding: 12px 8px !important;
  }
  .metric-lbl {
    white-space: normal !important;
    word-break: break-word;
  }

  /* Wrap server stats to prevent text cropping */
  .server-stats-row {
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
  }
  .server-stat {
    min-width: 60px;
    flex: 1 1 0% !important;
  }
}

/* --- Global Tabs Style --- */
.bets-tabs {
  display: flex;
  gap: 0;
  margin: 14px 16px;
  background: rgba(10, 13, 35, 0.8);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border-color);
}
.bets-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-gray);
  border-radius: 7px;
  padding: 9px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: "Outfit", sans-serif;
}
.bets-tab-btn.active {
  background: var(--purple-gradient);
  color: white;
  box-shadow: var(--shadow-purple);
}

/* --- Prevent SweetAlert2 Scrollbar / Centering Layout Shift --- */
html.swal2-shown,
body.swal2-shown {
  overflow-y: scroll !important;
  padding-right: 0px !important;
  margin-right: 0px !important;
}

/* --- Prevent SweetAlert2 from collapsing body height and hiding background --- */
html.swal2-height-auto,
body.swal2-height-auto {
  height: 100% !important;
  min-height: 100vh !important;
}

/* --- Premium Glassmorphism & Smooth Transitions for SweetAlert2 --- */
.swal2-fade-in {
  animation: swal-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.swal2-fade-out {
  animation: swal-fade-out 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes swal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes swal-fade-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.96) translateY(5px);
  }
}

.swal2-popup.swal2-fade-in {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(139, 92, 247, 0.28) !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(139, 92, 247, 0.15) !important;
  border-radius: 18px !important;
  background: rgba(12, 16, 40, 0.82) !important;
}
.swal2-backdrop-show {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: backdrop-filter 0.22s ease !important;
}

/* --- Premium Casino Card Dealing / Shuffling loader animation --- */
.casino-dealing-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.card-deck {
  position: relative;
  width: 80px;
  height: 120px;
  margin-bottom: 25px;
  perspective: 1000px;
}
.card-back {
  position: absolute;
  width: 80px;
  height: 120px;
  background: linear-gradient(135deg, #10143d 0%, #060919 100%);
  border: 2.5px solid var(--accent-purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.card-animate-1 {
  animation: shuffle-card-1 1.8s infinite ease-in-out;
}
.card-animate-2 {
  animation: shuffle-card-2 1.8s infinite ease-in-out;
  animation-delay: 0.4s;
}
.card-animate-3 {
  animation: shuffle-card-3 1.8s infinite ease-in-out;
  animation-delay: 0.8s;
}
.deal-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: pulse-text 0.8s infinite alternate;
}

@keyframes shuffle-card-1 {
  0% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    z-index: 3;
  }
  33% {
    transform: translateY(-30px) rotate(-12deg) translateZ(30px);
    z-index: 3;
  }
  66% {
    transform: translateY(8px) rotate(8deg) translateZ(-30px);
    z-index: 1;
  }
  100% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    z-index: 1;
  }
}
@keyframes shuffle-card-2 {
  0% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    z-index: 2;
  }
  33% {
    transform: translateY(15px) rotate(8deg) translateZ(-15px);
    z-index: 1;
  }
  66% {
    transform: translateY(-25px) rotate(-8deg) translateZ(40px);
    z-index: 3;
  }
  100% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    z-index: 2;
  }
}
@keyframes shuffle-card-3 {
  0% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    z-index: 1;
  }
  33% {
    transform: translateY(8px) rotate(4deg) translateZ(-40px);
    z-index: 1;
  }
  66% {
    transform: translateY(4px) rotate(-4deg) translateZ(-15px);
    z-index: 2;
  }
  100% {
    transform: translateY(0) rotate(0deg) translateZ(0);
    z-index: 3;
  }
}
@keyframes pulse-text {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* --- Slim Top Glowing Progress Bar Loader --- */
#top-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-gold) 50%,
    var(--accent-blue) 100%
  );
  box-shadow:
    0 0 10px rgba(168, 85, 247, 0.85),
    0 0 4px rgba(56, 189, 248, 0.85);
  z-index: 999999;
  transition:
    width 0.4s ease-out,
    opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

/* --- Global Spinner Page Loader Overlay --- */
#spinner {
  background-color: #060919;
  z-index: 999999;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Bootstrap Utility Classes */
.position-fixed {
  position: fixed !important;
}
.translate-middle {
  transform: translate(-50%, -50%) !important;
}
.w-100 {
  width: 100% !important;
}
.vh-100 {
  height: 100vh !important;
  height: 100dvh !important;
}
.top-50 {
  top: 50% !important;
}
.start-50 {
  left: 50% !important;
}
.d-flex {
  display: flex !important;
}
.align-items-center {
  align-items: center !important;
}
.justify-content-center {
  justify-content: center !important;
}

/* Spinner Grow Animation */
.spinner-grow {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  vertical-align: -0.125em;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: 0.75s linear infinite spinner-grow;
}

@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: none;
  }
}

.text-primary {
  color: var(--accent-purple) !important;
}

/* SweetAlert2 Mobile Layout Stability Overrides */
html.swal2-shown,
body.swal2-shown {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
}

body.swal2-shown {
  padding-right: 0 !important;
}

/* Mobile Responsive Header Styles */
@media (max-width: 600px) {
  .app-header {
    padding: 8px 10px !important;
  }
  .brand-container {
    gap: 3px !important;
  }
  .brand-container div[style*="display: flex"] {
    display: none !important; /* Hide the emoji cards on mobile to save space */
  }
  .brand-title {
    font-size: 0.95rem !important;
  }
  .wallet-indicator {
    padding: 4px 6px !important;
    gap: 4px !important;
  }
  .wallet-indicator .wallet-label {
    display: none !important; /* Hide wallet labels on mobile to save space */
  }
  .wallet-val {
    font-size: 0.78rem !important;
  }
  .btn-wallet-add {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.65rem !important;
  }
  .header-actions {
    gap: 8px !important;
  }
  .bell-notification {
    font-size: 1.1rem !important;
  }
}
