/* ==========================================================================
   Telegram Matka — Cyber-Luxe Dark Design System & Web App Stylesheet
   ========================================================================== */

:root {
  --bg-main: #070412;
  --bg-card: #100824;
  --bg-card-hover: #180d38;
  --bg-sheet: #120928;
  --bg-sub: #1c0e44;
  
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --cyan: #06b6d4;
  --red: #ef4444;
  
  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.25);
  --border-purple: rgba(139, 92, 246, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* --------------------------------------------------------------------------
   App Frame Shell
   -------------------------------------------------------------------------- */
.app-frame {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-main);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Top App Bar
   -------------------------------------------------------------------------- */
.app-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 8, 36, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px var(--gold-glow);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.8px;
  color: #fff;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-glow);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 12px var(--gold-glow);
}

.wallet-coin {
  font-size: 14px;
}

.wallet-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
}

.btn-quick-add {
  background: var(--gold);
  color: #000;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-action-btn {
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px var(--purple-glow);
}

/* --------------------------------------------------------------------------
   Main Tab Content Layout
   -------------------------------------------------------------------------- */
.app-main-content {
  padding: 16px;
  flex: 1;
}

.tab-view {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-view.active {
  display: block;
}

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

/* --------------------------------------------------------------------------
   Hero Card
   -------------------------------------------------------------------------- */
.hero-banner-card {
  background: linear-gradient(135deg, #240c4f 0%, #110729 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(16, 8, 36, 0.6);
}

.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.hero-heading {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
}

.btn-hero-primary {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #05020c;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-hero-secondary {
  flex: 1;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--purple);
  color: #c4b5fd;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Quick Action Matrix
   -------------------------------------------------------------------------- */
.quick-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.matrix-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.matrix-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.matrix-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.matrix-icon-gold { background: rgba(245, 158, 11, 0.15); }
.matrix-icon-green { background: rgba(16, 185, 129, 0.15); }
.matrix-icon-purple { background: rgba(139, 92, 246, 0.15); }
.matrix-icon-blue { background: rgba(59, 130, 246, 0.15); }
.matrix-icon-orange { background: rgba(249, 115, 22, 0.15); }
.matrix-icon-cyan { background: rgba(6, 182, 212, 0.15); }

.matrix-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Live Ticker Bar
   -------------------------------------------------------------------------- */
.live-ticker-bar {
  background: #13092b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}

.ticker-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.ticker-text {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   Markets Cards
   -------------------------------------------------------------------------- */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.section-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.markets-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.market-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-card-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.market-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.market-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.market-card-result {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
}

.market-card-time {
  font-size: 11px;
  color: var(--text-dim);
}

.market-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status-pill-running {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-pill-closed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.btn-play-sm {
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
}

/* --------------------------------------------------------------------------
   Arena Tab Controls
   -------------------------------------------------------------------------- */
.market-scroll-wrapper {
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.market-scroll {
  display: flex;
  gap: 8px;
  width: max-content;
}

.market-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s;
}

.market-chip.active {
  background: linear-gradient(135deg, #2b115b, #170933);
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

.market-chip .market-name {
  font-size: 13px;
  font-weight: 800;
}

.market-chip .market-time {
  font-size: 10px;
  color: var(--text-dim);
}

.game-tabs-scroll {
  overflow-x: auto;
  margin-bottom: 12px;
}

.game-tabs {
  display: flex;
  gap: 6px;
  width: max-content;
}

.game-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-tab.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.session-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.session-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.session-btn.active {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

/* Quick Presets Row */
.quick-presets-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.preset-pill {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-purple);
  color: #c4b5fd;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.preset-pill:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
}

/* Manual Quick Number Input */
.manual-input-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.manual-input-box input {
  flex: 1;
  background: #180d38;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.manual-input-box input:focus {
  border-color: var(--gold);
}

.btn-add-manual {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

/* Sangam Custom Inputs */
.sangam-inputs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sangam-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sangam-input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.sangam-input-group input {
  background: #180d38;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}

.btn-add-sangam {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.quick-digit-row {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.quick-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.btn-digit-filter {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.btn-digit-filter.active {
  background: var(--purple);
  border-color: var(--purple);
}

.grid-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  min-height: 200px;
  max-height: 380px;
  overflow-y: auto;
}

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

.touch-grid.grid-dense {
  grid-template-columns: repeat(4, 1fr);
}

.grid-num-btn {
  background: #180d38;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.grid-num-btn:active, .grid-num-btn.selected {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-color: #f59e0b;
  transform: scale(0.96);
  box-shadow: 0 0 16px var(--gold-glow);
}

.grid-num-btn .bet-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  background: #000;
  color: #fbbf24;
  padding: 1px 4px;
  border-radius: 4px;
}

.chip-bar-wrapper {
  margin-bottom: 75px;
}

.chip-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block;
}

.chip-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.chip {
  background: #1c0e44;
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   Sticky Checkout Bar
   -------------------------------------------------------------------------- */
.tma-checkout-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(16, 8, 36, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glow);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 95;
}

.slip-total-amount {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
}

.slip-count {
  font-size: 11px;
  color: var(--text-dim);
}

.checkout-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear-selection {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-weight: 900;
  cursor: pointer;
}

.btn-place-wager {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 14px var(--gold-glow);
}

.btn-place-wager:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Results Tab
   -------------------------------------------------------------------------- */
.results-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.results-title {
  font-size: 18px;
  font-weight: 800;
}

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

.results-board-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Wallet Tab
   -------------------------------------------------------------------------- */
.wallet-hero-card {
  background: linear-gradient(135deg, #2a0845, #110729);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.wallet-hero-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.wallet-hero-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 18px;
}

.wallet-btn-row {
  display: flex;
  gap: 10px;
}

.btn-wallet-action {
  flex: 1;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.btn-deposit-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-withdraw-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.wallet-tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.wallet-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.wallet-tab-btn.active {
  color: var(--gold);
  border-color: var(--gold);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.record-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.record-date {
  font-size: 10px;
  color: var(--text-muted);
}

.record-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
}

.amount-plus { color: #34d399; }
.amount-minus { color: #f87171; }

.empty-state-box {
  text-align: center;
  padding: 30px 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Refer & Earn Tab
   -------------------------------------------------------------------------- */
.refer-hero-card {
  background: linear-gradient(135deg, #37146e, #13092b);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.gift-badge-large {
  font-size: 36px;
  margin-bottom: 6px;
}

.refer-hero-title {
  font-size: 20px;
  font-weight: 900;
}

.refer-hero-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.highlight-gold {
  color: var(--gold);
  font-weight: 800;
}

.refer-hero-earned {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #34d399;
}

.refer-hero-earned-label {
  font-size: 11px;
  color: var(--text-muted);
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

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

.card-heading {
  font-size: 14px;
  font-weight: 800;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-orange {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.code-copy-row {
  background: #180d38;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ref-code-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
}

.btn-copy-code {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.share-buttons-row {
  display: flex;
  gap: 8px;
}

.btn-share-tg {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.btn-share-wa {
  flex: 1;
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.refer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.refer-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

.stat-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.stat-num {
  font-size: 18px;
  font-weight: 900;
}

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

.claim-bonus-card {
  background: linear-gradient(135deg, #1c0e44, #120928);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}

.claim-bonus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.claim-bonus-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.claim-stats-sub-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.btn-claim-weekly {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.btn-claim-weekly:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.claim-foot-note {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Profile Tab
   -------------------------------------------------------------------------- */
.profile-header-flex {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 0 16px var(--purple-glow);
}

.profile-name {
  font-size: 18px;
  font-weight: 900;
}

.profile-id-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}

.profile-phone-badge {
  font-size: 11px;
  color: var(--text-dim);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pstat-item {
  background: #180d38;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pstat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
}

.pstat-lbl {
  font-size: 9px;
  color: var(--text-dim);
}

.profile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-primary-block {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

.btn-secondary-block {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.btn-submit-gold-sm {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #180d38;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: #23134f;
  transform: translateX(3px);
}

.menu-item-arrow {
  margin-left: auto;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 60px;
  background: rgba(16, 8, 36, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.nav-btn.active {
  color: var(--gold);
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 18px;
}

.nav-lbl {
  font-size: 10px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Modal Sheets & Dialogs
   -------------------------------------------------------------------------- */
.app-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: fadeIn 0.2s ease;
}

.app-modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-sheet);
  border-top: 1px solid var(--border-glow);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

.auth-toggle-bar {
  display: flex;
  background: #180d38;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 16px;
}

.auth-toggle-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 8px;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.auth-toggle-btn.active {
  background: var(--gold);
  color: #000;
}

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

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  background: #180d38;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
}

.btn-submit-gold {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

.btn-submit-emerald {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

.telegram-sso-box {
  margin-top: 16px;
  text-align: center;
}

.sso-divider {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-telegram-sso {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.amount-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.amount-pill {
  background: #180d38;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.amount-pill.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.qr-code-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.qr-frame img {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 auto 8px;
}

.upi-id-copy-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 12px;
  margin-bottom: 8px;
}

.btn-copy-sm {
  background: #000;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
  cursor: pointer;
}

.btn-open-upi-app {
  width: 100%;
  background: #10b981;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Rates Showcase
   -------------------------------------------------------------------------- */
.rates-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.rates-header {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.rate-pill {
  background: #180d38;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rate-name {
  font-size: 11px;
  color: var(--text-dim);
}

.rate-ratio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  pointer-events: none;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: #1e1045;
  border: 1px solid var(--gold);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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