/* ==========================================================================
   Cricbet99 Official Single-Screen Theme Stylesheet
   Designed to fit perfectly on ONE screen without scrolling
   ========================================================================== */

:root {
  /* Cricbet99 Brand Colors */
  --cric-amber: #f9ad1a;
  --cric-amber-light: #fcd34d;
  --cric-amber-dark: #d97706;
  --cric-orange: #f97316;
  
  --amber-grad: linear-gradient(135deg, #fffbeb 0%, #fcd34d 30%, #f9ad1a 60%, #d97706 100%);
  
  /* WhatsApp Colors */
  --wa-green: #25d366;
  --wa-green-dark: #15803d;
  --wa-grad: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
  --wa-glow: rgba(37, 211, 102, 0.35);

  /* Deep Stadium Navy & Glass Theme */
  --bg-dark: #070b14;
  --card-bg: rgba(13, 20, 36, 0.95);
  --card-border: rgba(249, 173, 26, 0.32);
  --card-glow: rgba(249, 173, 26, 0.16);
  
  --cyan-accent: #06b6d4;

  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --text-amber: #fcd34d;
  
  --alert-red: #ef4444;
  --alert-red-border: rgba(239, 68, 68, 0.38);
}

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

html, body {
  height: 100%;
  width: 100%;
}

body.single-page-body {
  font-family: 'Plus Jakarta Sans', 'Montserrat', -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  position: relative;
  overflow: hidden; /* Clean single screen - no scroll */
}

/* Background Atmosphere */
.bg-ambience {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.orb-amber {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(249, 173, 26, 0.35) 0%, transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-blue {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.22) 0%, transparent 70%);
  bottom: -60px;
  left: -50px;
}

.orb-emerald {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.18) 0%, transparent 70%);
  bottom: 15%;
  right: -50px;
}

.stadium-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

/* Main Container Card - Fits tightly into 1 screen */
.single-card-app {
  width: 100%;
  max-width: 410px;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 10px 14px 9px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.8),
    0 0 30px var(--card-glow);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

/* Top Status Chip Bar */
.top-status-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 0 2px;
}

.status-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.61rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.4px;
}

.pulse-beacon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
  animation: pulseBeacon 1.5s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.status-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.61rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.4px;
}

/* Header & Brand Logo */
.sp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-bottom: 4px;
}

.logo-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(10, 15, 28, 0.6) 100%);
  border: 1px solid rgba(249, 173, 26, 0.28);
  border-radius: 12px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  max-width: 85%;
}

.sp-logo {
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(249, 173, 26, 0.25));
}

.sp-tagline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(249, 173, 26, 0.08);
  border: 1px solid rgba(249, 173, 26, 0.3);
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--cric-amber-light);
  line-height: 1.2;
}

.flash-icon {
  color: var(--cric-amber);
  font-size: 0.65rem;
  animation: flashIcon 1.5s infinite;
}

@keyframes flashIcon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Main Content Wrapper - Tight gaps */
.sp-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 💥 Exclusive Client & Service Alert 💥 */
.sp-alert-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.07) 100%);
  border: 1px solid var(--alert-red-border);
  border-radius: 12px;
  padding: 4px 8px;
}

.sp-alert-row-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sp-alert-title {
  color: #fca5a5;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.fire-emoji, .fire-mini {
  font-size: 0.8rem;
}

.sp-service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(249, 173, 26, 0.12);
  border: 1px solid rgba(249, 173, 26, 0.3);
  border-radius: 14px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fef3c7;
}

.sp-service-pill strong {
  color: #fcd34d;
  font-weight: 800;
}

.pill-icon {
  font-size: 0.7rem;
}

/* Minimum ID VIP Ticket Box - Compact */
.sp-price-ticket {
  background: linear-gradient(135deg, rgba(249, 173, 26, 0.1) 0%, rgba(14, 23, 42, 0.95) 50%, rgba(249, 173, 26, 0.07) 100%);
  border: 1.5px solid rgba(249, 173, 26, 0.45);
  border-radius: 14px;
  padding: 5px 10px 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  position: relative;
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(249, 173, 26, 0.22);
  padding-bottom: 2px;
}

.ticket-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--cric-amber);
}

.ticket-sub {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--cyan-accent);
  letter-spacing: 0.8px;
}

.ticket-body {
  margin: 1px 0;
}

.sp-price-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #cbd5e1;
}

.sp-price-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.sp-currency {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cric-amber);
}

.sp-amount {
  font-family: 'Rajdhani', 'Montserrat', sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  background: var(--amber-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(249, 173, 26, 0.45));
}

.sp-only {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  margin-left: 4px;
  letter-spacing: 0.8px;
}

.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px dashed rgba(249, 173, 26, 0.22);
  padding-top: 3px;
  font-size: 0.63rem;
  font-weight: 600;
  color: #cbd5e1;
}

.t-perk i {
  color: var(--cric-amber);
  margin-right: 2px;
}

/* Feature Cards Grid (Withdrawals 24x7) */
.sp-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.feature-card {
  border-radius: 10px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.feature-payout {
  border: 1px solid rgba(37, 211, 102, 0.3);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(14, 23, 42, 0.6) 100%);
}

.feature-trust {
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(14, 23, 42, 0.6) 100%);
}

.f-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.feature-payout .f-icon-wrap {
  background: rgba(37, 211, 102, 0.18);
  color: #25d366;
}

.feature-trust .f-icon-wrap {
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
}

.f-text strong {
  display: block;
  font-size: 0.71rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.f-text span {
  display: block;
  font-size: 0.61rem;
  color: var(--text-dim);
}

/* Action Area */
.sp-action-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-action-heading {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.arrow-bounce {
  display: inline-block;
  animation: bounceArrow 1.2s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* Compact & Sleek Action Buttons */
.sp-btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sp-btn:active {
  transform: scale(0.98);
}

/* WhatsApp Button - Sleek & Compact */
.sp-btn-wa {
  background: var(--wa-grad);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.sp-btn-wa:hover {
  background: linear-gradient(135deg, #2ae06d 0%, #15803d 100%);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

/* Website Button - Sleek & Compact */
.sp-btn-web {
  background: linear-gradient(135deg, #162238 0%, #0d1524 100%);
  color: #ffffff;
  border: 1.2px solid rgba(249, 173, 26, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.sp-btn-web:hover {
  border-color: var(--cric-amber);
  box-shadow: 0 6px 18px rgba(249, 173, 26, 0.22);
}

.sp-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-right: 9px;
  flex-shrink: 0;
}

.sp-btn-wa .sp-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sp-btn-web .sp-btn-icon {
  background: rgba(249, 173, 26, 0.14);
  color: var(--cric-amber);
}

.sp-btn-text {
  flex-grow: 1;
  text-align: left;
}

.sp-btn-main {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.sp-btn-sub {
  display: block;
  font-size: 0.65rem;
  opacity: 0.9;
  font-weight: 500;
}

.sp-btn-arrow {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-left: 4px;
}

/* Copy Link Quick Bar - Sleek */
.sp-copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(249, 173, 26, 0.3);
  border-radius: 9px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-copy-bar:hover {
  background: rgba(249, 173, 26, 0.06);
  border-color: var(--cric-amber);
}

.sp-copy-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-icon {
  color: var(--cric-amber);
  font-size: 0.72rem;
}

.sp-copy-label {
  color: var(--text-dim);
}

.sp-copy-bar strong {
  color: var(--cric-amber-light);
  font-weight: 700;
}

.sp-copy-btn {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(249, 173, 26, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.sp-copy-bar:hover .sp-copy-btn {
  background: var(--cric-amber);
  color: #0b1120;
}

/* Trusted India Exchange Card */
.sp-trust-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(249, 173, 26, 0.05), rgba(249, 173, 26, 0.12), rgba(249, 173, 26, 0.05));
  border: 1px solid rgba(249, 173, 26, 0.25);
  border-radius: 9px;
  padding: 5px 9px;
  text-align: left;
}

.trust-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(249, 173, 26, 0.18);
  color: var(--cric-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sp-trust-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fef08a;
  line-height: 1.25;
}

/* Live Activity Ticker */
.sp-activity-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.activity-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--cric-amber);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 6px;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 5px #25d366;
  animation: pulseBeacon 1.6s infinite;
}

.activity-ticker {
  flex-grow: 1;
  font-size: 0.65rem;
  color: #cbd5e1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ticker-item i {
  color: #25d366;
  font-size: 0.7rem;
}

.ticker-item strong {
  color: var(--cric-amber);
}

/* Support Footer */
.sp-footer {
  margin-top: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-support-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.28);
  color: #4ade80;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.67rem;
  font-weight: 700;
}

.pulse-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 5px var(--wa-green);
  animation: pulseBeacon 1.6s infinite;
}

/* Toast Message */
.toast {
  visibility: hidden;
  min-width: 220px;
  background: linear-gradient(135deg, var(--cric-amber), var(--cric-orange));
  color: #080c16;
  text-align: center;
  border-radius: 25px;
  padding: 8px 14px;
  position: fixed;
  z-index: 1000;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Micro Devices Adjustments (under 600px height) */
@media (max-height: 600px) {
  .single-card-app {
    padding: 6px 10px 6px;
  }
  .sp-content {
    gap: 4px;
  }
  .sp-logo {
    height: 30px;
  }
  .sp-amount {
    font-size: 2.2rem;
  }
  .sp-btn {
    padding: 6px 10px;
  }
  .sp-btn-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  .sp-features-grid {
    display: none; /* Auto-hide on extremely small landscape screens to guarantee single-screen fit */
  }
}
