:root {
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(20, 241, 149, 0.3);
  --border-active: #9945FF;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --sol-purple: #9945FF;
  --sol-green: #14F195;
  --sol-blue: #00C2FF;
  --sol-amber: #FBBF24;
  --sol-red: #F87171;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow-sol: 0 0 30px rgba(153, 69, 255, 0.25), 0 0 50px rgba(20, 241, 149, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(153, 69, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(20, 241, 149, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(0, 194, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Sleek Protocol Status Bar */
.top-status-bar {
  background: rgba(11, 15, 25, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(12px);
  z-index: 100;
  letter-spacing: 0.01em;
}

.status-bar-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 8px var(--sol-green);
  display: inline-block;
  animation: pulseLiveDot 2s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.status-pill-badge {
  background: rgba(20, 241, 149, 0.12);
  color: var(--sol-green);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(20, 241, 149, 0.25);
}

.status-text {
  color: #94a3b8;
  font-weight: 500;
}

.status-divider {
  color: rgba(255, 255, 255, 0.2);
}

.status-highlight {
  color: #f1f5f9;
  font-weight: 600;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 90;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--sol-green);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.4), rgba(20, 241, 149, 0.3));
  border: 1px solid rgba(20, 241, 149, 0.4);
}

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

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-faucet {
  background: rgba(0, 194, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 194, 255, 0.3);
}

.btn-faucet:hover {
  background: rgba(0, 194, 255, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(0, 194, 255, 0.25);
}

.btn-donate {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.28));
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-donate:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(217, 119, 6, 0.42));
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.btn-wallet {
  background: linear-gradient(135deg, var(--sol-purple), #7c3aed);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(153, 69, 255, 0.3);
}

.btn-wallet:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(153, 69, 255, 0.45);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
  color: #070a12;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 25px rgba(20, 241, 149, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(20, 241, 149, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.wallet-balance-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 19, 34, 0.9);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.bal-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
}

.tag-free {
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Main Content */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  flex: 1;
  width: 100%;
}

/* Jackpot Hero */
.jackpot-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(13, 19, 34, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.round-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 241, 149, 0.1);
  border: 1px solid rgba(20, 241, 149, 0.25);
  color: var(--sol-green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sol-green);
}

.status-dot.pulse {
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(20, 241, 149, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); }
}

.network-tag {
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.countdown-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.time-unit {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

.time-sep {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Jackpot Card */
.jackpot-card {
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.9), rgba(11, 16, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-glow-sol);
}

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

.jackpot-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sol-green);
  letter-spacing: 0.06em;
}

.jackpot-tickets {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.jackpot-amount-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.currency-symbol {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sol-amber);
}

.jackpot-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--sol-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.currency-code {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.prize-split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.split-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.split-card.grand {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), transparent);
}

.split-card.secondary {
  border-color: rgba(0, 194, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.08), transparent);
}

.split-tag {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.split-card.grand .split-tag { color: var(--sol-amber); }
.split-card.secondary .split-tag { color: var(--sol-blue); }

.split-amount {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.split-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.jackpot-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.econ-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* Cards & Grid Layouts */
.play-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

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

.card-header h2, .card-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.badge-price {
  background: rgba(153, 69, 255, 0.15);
  color: #c084fc;
  border: 1px solid rgba(153, 69, 255, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-accent {
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Ticket Selector */
.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.quick-picks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.btn-pick {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-pick:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-pick.active {
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
  color: #070a12;
  border-color: var(--sol-green);
  box-shadow: 0 0 15px rgba(20, 241, 149, 0.3);
}

.custom-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.custom-qty-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 10px 14px;
  width: 140px;
}

.custom-qty-input:focus, .text-input:focus {
  outline: none;
  border-color: var(--sol-purple);
  box-shadow: 0 0 0 2px rgba(153, 69, 255, 0.25);
}

.qty-unit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.text-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 12px 14px;
  margin-bottom: 6px;
}

.hint-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Smart Referral Card (Automated & Frictionless) */
.smart-referral-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.smart-referral-card.has-ref {
  border-color: rgba(20, 241, 149, 0.35);
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.08), rgba(0, 0, 0, 0.3));
}

.smart-referral-card.ineligible-ref {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(0, 0, 0, 0.3));
}

.smart-referral-card.ineligible-ref .ref-title {
  color: var(--sol-amber);
}

.smart-referral-card.ineligible-ref .ref-desc {
  color: #fde68a;
}

.badge-verified {
  font-size: 0.68rem;
  background: rgba(20, 241, 149, 0.2);
  color: var(--sol-green);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.activation-requirement-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(153, 69, 255, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.82rem;
  color: #fef3c7;
  line-height: 1.45;
}

.star-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ref-status-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ref-info-text {
  flex: 1;
}

.ref-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.smart-referral-card.has-ref .ref-title {
  color: var(--sol-green);
}

.ref-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.smart-referral-card.has-ref .ref-desc {
  color: #a7f3d0;
}

.btn-toggle-ref {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-toggle-ref:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.custom-ref-collapse {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.ref-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.ref-input-group .text-input {
  margin-bottom: 0;
}

.btn-apply-ref {
  padding: 0 16px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* Cost Breakdown */
.cost-breakdown {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 20px 0;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cost-highlight {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: #ffffff;
}

.sponsor-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.sponsor-badge-text {
  font-weight: 600;
}

.free-text {
  color: var(--sol-green);
  font-family: var(--font-mono);
}

.sponsor-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #a7f3d0;
  line-height: 1.4;
}

.btn-buy {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.receipt-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.4;
}

/* Features List */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.features-list li {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.features-list strong {
  color: var(--text-primary);
}

.feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.quick-faucet-box {
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.08), transparent);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
}

.quick-faucet-box h4 {
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 6px;
}

.quick-faucet-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

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

/* Receipts list */
.receipts-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receipt-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.receipt-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.rcpt-id {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sol-green);
  font-weight: 700;
}

.rcpt-range {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0;
}

.rcpt-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rcpt-badge {
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Referrals */
.referrals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ref-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.rate-badge {
  background: rgba(153, 69, 255, 0.1);
  border: 1px solid rgba(153, 69, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.rate-pct {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sol-purple);
  display: block;
}

.rate-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ref-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.referral-link-box {
  display: flex;
  gap: 10px;
}

.ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-num.highlight {
  color: var(--sol-green);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.anti-sybil-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.seed-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sol-blue);
}

.btn-explorer {
  color: var(--sol-green);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-explorer:hover {
  text-decoration: underline;
}

/* Transparency Grid */
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.audit-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.audit-block h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--sol-blue);
}

.audit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.audit-list strong {
  color: var(--text-primary);
}

.audit-list code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #38bdf8;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 18, 0.95);
  padding: 20px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sep {
  margin: 0 8px;
}

.btn-footer-donate {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-footer-donate:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.network-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sol-green);
  font-weight: 600;
}

.net-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sol-green);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: rgba(13, 19, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in 0.25s ease-out;
  min-width: 280px;
}

.toast.success { border-color: var(--sol-green); }
.toast.error { border-color: var(--sol-red); }

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hidden {
  display: none !important;
}

/* ========================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERHAUL (max-width: 900px)
   ======================================================== */
@media (max-width: 900px) {
  /* Header & Navigation */
  .header-container {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  
  .brand {
    order: 1;
    gap: 8px;
  }
  
  .brand-logo svg {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 6px;
  }

  .header-actions .btn-faucet {
    display: none; /* Hide Solscan admin button on narrow header; it's in footer and audit */
  }

  .header-actions .btn-wallet {
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .header-actions .btn-install-app {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  /* Mobile Horizontal Scroll Navigation Tabs */
  .nav-links {
    order: 3;
    width: 100%;
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 4px;
    gap: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    scrollbar-width: none;
  }

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

  .nav-tab {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  /* Content & Grids */
  .main-content {
    padding: 14px 10px 60px;
  }

  .hero-grid, .play-grid, .referrals-grid, .transparency-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Hero Section */
  .hero-card {
    padding: 18px 14px;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  /* Countdown on Mobile */
  .countdown-card {
    width: 100%;
    padding: 12px 10px;
    box-sizing: border-box;
    align-items: center;
  }

  .countdown-card .timer-display {
    justify-content: center;
    gap: 4px;
    width: 100%;
  }

  .time-number {
    font-size: 1.25rem;
    padding: 3px 6px;
    min-width: 34px;
    text-align: center;
  }

  .time-sep {
    font-size: 1.05rem;
  }

  .time-unit {
    font-size: 0.55rem;
  }

  /* Jackpot Card on Mobile */
  .jackpot-card {
    padding: 18px 14px;
  }

  .jackpot-amount-row {
    flex-wrap: wrap;
  }

  .jackpot-card .jackpot-amount {
    font-size: 2.1rem !important;
    word-break: break-word;
  }

  .jackpot-breakdown {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .jackpot-subcard {
    padding: 10px 8px;
  }

  .jackpot-subcard .sub-amt {
    font-size: 0.95rem;
  }

  /* Ticket Selection Buttons */
  .play-card {
    padding: 18px 14px;
  }

  .qty-selector {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100%;
  }

  .btn-qty {
    padding: 12px 0;
    font-size: 1.05rem;
    min-height: 44px;
  }

  .custom-qty-row {
    flex-direction: column;
    gap: 10px;
  }

  .custom-qty-row input {
    width: 100%;
    text-align: center;
  }

  .btn-buy-action {
    padding: 15px 16px;
    font-size: 1rem;
    min-height: 50px;
  }

  /* Referral Card */
  .referral-share-card {
    padding: 16px 12px;
  }

  .ref-link-box {
    flex-direction: column;
    gap: 10px;
  }

  .ref-link-box button {
    width: 100%;
  }

  /* Tables in Mis Boletos & Sorteos */
  .draws-table-container, .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .data-table {
    min-width: 520px;
  }

  .data-table th, .data-table td {
    padding: 10px 10px;
    font-size: 0.76rem;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-card {
    padding: 20px 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 88vh;
    overflow-y: auto;
  }

  /* Footer on Mobile */
  .app-footer {
    padding: 20px 14px 40px;
    font-size: 0.72rem;
  }
}

/* ========================================================
   PWA INSTALLATION BUTTON, BANNER & MODAL STYLES
   ======================================================== */
.btn-install-app {
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.25);
  color: var(--sol-green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-install-app:hover {
  background: rgba(20, 241, 149, 0.18);
  border-color: var(--sol-green);
}

.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 14px;
  right: 14px;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 241, 149, 0.4);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(20, 241, 149, 0.25);
  z-index: 9999;
  animation: pwaSlideUp 0.35s ease-out;
}

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

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pwa-banner-text strong {
  font-size: 0.86rem;
  color: #ffffff;
}

.pwa-banner-text span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.btn-pwa-install {
  background: linear-gradient(135deg, var(--sol-green), var(--sol-blue));
  border: none;
  color: #070a12;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 241, 149, 0.3);
  transition: transform 0.15s ease;
}

.btn-pwa-install:active {
  transform: scale(0.96);
}

.btn-pwa-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.pwa-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-modal-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pwa-modal-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pwa-instructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.pwa-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-num {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
  color: #070a12;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.share-icon {
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-full-action {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

/* Wallet Connection Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(153, 69, 255, 0.2);
  animation: scaleUp 0.2s ease-out;
}

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

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

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

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

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

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-wallet-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.btn-wallet-option:hover {
  background: rgba(153, 69, 255, 0.12);
  border-color: var(--sol-purple);
  transform: translateY(-1px);
}

.opt-icon {
  font-size: 1.8rem;
}

.opt-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.opt-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-divider span {
  padding: 0 12px;
}

.manual-wallet-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-admin-fill {
  display: flex;
  justify-content: flex-end;
}

.btn-quick-admin {
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.25);
  color: var(--sol-green);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-quick-admin:hover {
  background: rgba(20, 241, 149, 0.18);
}

.btn-block {
  width: 100%;
}

/* Donate Modal & Tip Jar Styles */
.donate-modal-card {
  max-width: 520px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.2);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon-badge {
  font-size: 1.5rem;
}

.creator-wallet-badge {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
}

.wallet-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wallet-badge-header .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.network-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sol-green);
  background: rgba(20, 241, 149, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(20, 241, 149, 0.2);
}

.wallet-address-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
}

.creator-address {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fcd34d;
  word-break: break-all;
}

.btn-copy-address {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-copy-address:hover {
  background: rgba(245, 158, 11, 0.3);
}

.donate-presets-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.donate-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.btn-donate-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-donate-preset:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fcd34d;
}

.btn-donate-preset.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.btn-donate-send {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070a12;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
  transition: all var(--transition-fast);
}

.btn-donate-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.solscan-verify-note {
  text-align: center;
  margin-top: 14px;
}

.solscan-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.solscan-link:hover {
  color: #38bdf8;
}

