/* =========================================================
   BR API SOLUTION – FULLY RESPONSIVE ULTRA-MODERN STYLESHEET
   Mobile-First & Fully Adaptive for 320px to 4K Displays
   ========================================================= */

:root {
  /* Core Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-tertiary: #131b2a;
  --bg-card: rgba(16, 24, 39, 0.8);
  --bg-card-hover: rgba(22, 32, 53, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Accents & Brand Gradients */
  --emerald-primary: #10b981;
  --emerald-glow: #00f090;
  --emerald-dark: #059669;
  
  --gold-primary: #f59e0b;
  --gold-glow: #fbbf24;
  --gold-dark: #d97706;

  --cyan-primary: #06b6d4;
  --cyan-glow: #22d3ee;

  --purple-primary: #8b5cf6;
  --purple-glow: #a78bfa;

  --whatsapp-color: #25D366;
  --whatsapp-hover: #1ebd58;
  --telegram-color: #229ED9;
  --telegram-hover: #1b87ba;

  /* Text Colors */
  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(16, 185, 129, 0.35);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(0, 240, 144, 0.25);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================================
   RESET & BASE STYLES
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Animated Grid & Orbs */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

.glow-orb-1 {
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, var(--emerald-glow), transparent 70%);
  top: -100px;
  right: -100px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: min(550px, 90vw);
  height: min(550px, 90vw);
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 40%;
  left: -200px;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  bottom: 5%;
  right: 5%;
  animation: floatOrb 15s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-25px, -30px) scale(0.95); }
}

/* =========================================================
   CONTAINER & SECTION HELPERS
   ========================================================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: clamp(60px, 8vw, 100px) 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, #00f090 0%, #10b981 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald { color: var(--emerald-glow) !important; }
.text-cyan { color: var(--cyan-glow) !important; }
.text-center { text-align: center; }
.w-100 { width: 100% !important; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

/* Section Header */
.section-header {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: var(--emerald-glow);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #032014;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00f090 0%, #10b981 100%);
  box-shadow: 0 6px 30px rgba(0, 240, 144, 0.5);
  transform: translateY(-2px);
  color: #000;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2bf074 0%, #17a08f 100%);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
}

.btn-whatsapp-nav {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.btn-whatsapp-nav:hover {
  background: #25D366;
  color: #000;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
}

.btn-whatsapp-hero {
  background: linear-gradient(135deg, #25D366 0%, #075e54 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp-hero:hover {
  background: linear-gradient(135deg, #2ef777 0%, #0d8376 100%);
  box-shadow: 0 12px 45px rgba(37, 211, 102, 0.65);
  transform: translateY(-2px);
}

.btn-whatsapp-hero .btn-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.btn-whatsapp-hero .btn-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-whatsapp-hero .btn-subtext {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d1fae5;
  font-weight: 600;
}

.btn-whatsapp-hero .btn-maintext {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-pure);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  color: var(--text-pure);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-glow);
}

.btn-outline-emerald:hover {
  background: var(--emerald-primary);
  color: #000;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan-glow);
}

.btn-outline-cyan:hover {
  background: var(--cyan-primary);
  color: #000;
}

.btn-telegram {
  background: linear-gradient(135deg, #229ED9 0%, #1b87ba 100%);
  color: #fff !important;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-xl {
  padding: 12px 22px;
  font-size: 0.95rem;
}

/* =========================================================
   ANNOUNCEMENT BAR & HEADER
   ========================================================= */

.announcement-bar {
  background: linear-gradient(90deg, #072a1b 0%, #0d121d 50%, #072a1b 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 0;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  position: relative;
  z-index: 100;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-badge {
  background: var(--emerald-primary);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.announcement-text {
  color: var(--text-primary);
}

.announcement-link {
  color: var(--emerald-glow);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  z-index: 99;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(16, 185, 129, 0.25);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrapper {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.3rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

/* Nav Menu */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: clamp(14px, 2vw, 24px);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--emerald-glow);
  box-shadow: 0 0 8px var(--emerald-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-card);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  padding: 6px 0;
}

.mobile-nav-link:hover {
  color: var(--emerald-glow);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
  padding: clamp(36px, 6vw, 70px) 0 clamp(30px, 5vw, 60px);
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  color: var(--emerald-glow);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-glow);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 144, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 240, 144, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 144, 0); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 640px;
}

.hero-description strong {
  color: #fff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
  flex-wrap: wrap;
}

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

.trust-stars {
  color: var(--gold-glow);
  font-size: 0.8rem;
  display: flex;
  gap: 2px;
}

.trust-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.trust-info strong {
  font-size: 0.85rem;
  color: var(--text-pure);
}

.trust-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

.trust-icon-secure { color: var(--emerald-glow); font-size: 1.3rem; }
.trust-icon-speed { color: var(--cyan-glow); font-size: 1.3rem; }

/* Hero Visual Card */
.hero-visual {
  position: relative;
  width: 100%;
}

.hero-card-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  border-radius: 24px;
  filter: blur(25px);
  z-index: 0;
}

.hero-mockup-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 1;
}

.mockup-top-bar {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
  font-family: var(--font-code);
  font-size: clamp(0.7rem, 2vw, 0.78rem);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald-glow);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-indicator-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald-glow);
  box-shadow: 0 0 6px var(--emerald-glow);
}

.mockup-body {
  padding: clamp(14px, 3vw, 20px);
}

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

.mstat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}

.mstat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.mstat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.hero-code-box {
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-code);
}

.hero-code-box pre {
  font-family: var(--font-code);
  font-size: 0.75rem;
  line-height: 1.4;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.code-keyword { color: #38bdf8; font-weight: 700; }
.code-url { color: #a78bfa; }
.code-key { color: #f472b6; }
.code-str { color: #34d399; }
.code-bracket { color: #94a3b8; }

.code-response-preview {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.response-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-glow);
  font-family: var(--font-code);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.time-tag {
  font-family: var(--font-code);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.response-url {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.provider-pill i { color: var(--emerald-glow); }

/* =========================================================
   6 CORE PILLARS GRID
   ========================================================= */

.hero-pillars-wrapper {
  margin-top: clamp(40px, 6vw, 60px);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pillar-card.highlight-card {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 24, 39, 0.85) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.pillar-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald-glow); }
.icon-gold { background: rgba(245, 158, 11, 0.15); color: var(--gold-glow); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan-glow); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple-glow); }
.icon-green { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.pillar-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pillar-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-glow);
}

/* =========================================================
   STATS COUNTER STRIP
   ========================================================= */

.stats-counter-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  padding: clamp(32px, 5vw, 48px) 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stat-box {
  text-align: center;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-card);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #00f090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-title {
  font-weight: 700;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================================
   PRODUCTS SECTION
   ========================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.product-card.highlight-glow {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 24, 39, 0.85) 100%);
}

.product-card.highlight-purple {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(16, 24, 39, 0.85) 100%);
}

.product-card-banner {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-card);
}

.banner-slots { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), transparent); }
.banner-live { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), transparent); }
.banner-sports { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), transparent); }
.banner-crash { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), transparent); }
.banner-indian { background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), transparent); }
.banner-wallet { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), transparent); }

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--emerald-glow);
}

.product-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-popular { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-tech { background: rgba(139, 92, 246, 0.2); color: var(--purple-glow); }

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.product-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.product-features li {
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features li i {
  color: var(--emerald-glow);
  font-size: 0.75rem;
}

.product-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-link-whatsapp {
  color: #25D366;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   94+ PROVIDERS SHOWCASE
   ========================================================= */

.providers-section {
  background: var(--bg-secondary);
}

.provider-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.provider-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.provider-tabs::-webkit-scrollbar {
  display: none;
}

.ptab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.ptab-btn:hover {
  color: #fff;
}

.ptab-btn.active {
  background: var(--emerald-primary);
  color: #000;
  border-color: var(--emerald-primary);
  font-weight: 700;
}

.provider-search-box {
  position: relative;
  min-width: 280px;
  flex-grow: 0.4;
}

.provider-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.provider-search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 90px 10px 38px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 16px; /* Prevents auto-zoom on iOS */
  outline: none;
  transition: var(--transition-fast);
}

.provider-search-box input:focus {
  border-color: var(--emerald-glow);
  box-shadow: 0 0 12px rgba(0, 240, 144, 0.2);
}

.search-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: 4px;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.provider-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.provider-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-glow);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 144, 0.15);
  background: var(--bg-card-hover);
}

.provider-logo-box {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.provider-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
  transition: var(--transition-fast);
}

.provider-item-card:hover .provider-logo-box img {
  transform: scale(1.12);
}

.provider-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
}

.provider-item-cat {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.provider-item-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-glow);
}

.provider-item-badge.badge-hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.provider-banner-cta {
  background: linear-gradient(135deg, #0d2218 0%, #111b2c 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.banner-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--emerald-glow);
  flex-shrink: 0;
}

.banner-cta-text h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 4px;
}

.banner-cta-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 600px;
}

/* =========================================================
   FEATURED GAMES LIBRARY
   ========================================================= */

.game-filter-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.game-filter-pills::-webkit-scrollbar {
  display: none;
}

.gfilter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.gfilter-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #000;
  font-weight: 700;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.game-poster-wrapper {
  position: relative;
  height: 145px;
  background: #111928;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-poster-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: transform 0.4s ease;
}

.game-card:hover .game-poster-bg {
  transform: scale(1.06);
}

.game-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13, 18, 29, 0.95) 100%);
}

.game-thumb-center {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 144, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.game-thumb-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.game-prov-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
}

.game-rtp-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(16, 185, 129, 0.9);
  color: #000;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 5px;
}

.game-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.game-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.game-actions-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* =========================================================
   UNIFIED WALLET ARCHITECTURE
   ========================================================= */

.architecture-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.wallet-flow-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: clamp(40px, 6vw, 60px);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 32px);
  position: relative;
}

.flow-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  position: relative;
}

.flow-step.highlight-step {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-color: var(--emerald-glow);
  box-shadow: 0 0 20px rgba(0, 240, 144, 0.2);
}

.flow-step-number {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.flow-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.icon-user { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.icon-game { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-br { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); color: #000; }
.icon-operator { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.flow-step h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.flow-arrow {
  color: var(--emerald-glow);
  font-size: 1.3rem;
  opacity: 0.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 24px);
  transition: var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =========================================================
   DOCS & INTERACTIVE PLAYGROUND
   ========================================================= */

.docs-section {
  background: var(--bg-secondary);
}

.docs-playground-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}

.docs-sidebar {
  background: #0c111c;
  padding: 20px 16px;
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.docs-sidebar-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-endpoint-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.endpoint-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.endpoint-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.endpoint-item.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #fff;
}

.http-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.http-post { background: #0284c7; color: #fff; }
.http-get { background: #16a34a; color: #fff; }

.docs-support-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  margin-top: 20px;
}

.support-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-glow);
  margin-bottom: 4px;
}

.docs-support-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 10px;
}

.docs-code-container {
  display: flex;
  flex-direction: column;
  background: #080c14;
  min-width: 0; /* Prevents overflow in flex child */
}

.code-tab-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #0d1320;
  border-bottom: 1px solid var(--border-card);
  flex-wrap: wrap;
  gap: 10px;
}

.lang-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.lang-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--emerald-glow);
  font-weight: 600;
}

.code-actions {
  display: flex;
  gap: 8px;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-run-request {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.code-editor-area {
  padding: 16px;
  background: #080c14;
  overflow-x: auto;
  max-height: 280px;
}

.code-editor-area pre {
  font-family: var(--font-code);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #f1f5f9;
  white-space: pre;
}

.code-response-area {
  border-top: 1px solid var(--border-card);
  background: #06090f;
  padding: 14px 16px 16px;
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.response-title {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-response-area pre {
  font-family: var(--font-code);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #a7f3d0;
  overflow-x: auto;
  max-height: 200px;
  white-space: pre;
}

/* =========================================================
   PRICING
   ========================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pricing-card.pricing-popular {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(16, 24, 39, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

.popular-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 9999px;
}

.pricing-header {
  margin-bottom: 20px;
}

.plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald-glow);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.tag-popular {
  color: var(--gold-glow);
  background: rgba(245, 158, 11, 0.15);
}

.plan-name {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.plan-price {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.price-val {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-features li {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials-section {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-rating {
  color: var(--gold-glow);
  font-size: 0.85rem;
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  color: #fff;
}

.author-info span {
  font-size: 0.75rem;
  color: var(--emerald-glow);
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.4);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-icon {
  font-size: 0.85rem;
  color: var(--emerald-glow);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 20px 16px;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-card-wrapper {
  background: linear-gradient(135deg, rgba(16, 24, 39, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-glow);
  background: rgba(245, 158, 11, 0.15);
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-desc {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.channel-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.06);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.channel-whatsapp .channel-icon { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.channel-telegram .channel-icon { background: rgba(34, 158, 217, 0.15); color: #229ED9; }
.channel-phone .channel-icon { background: rgba(16, 185, 129, 0.15); color: var(--emerald-glow); }

.channel-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel-val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.form-container-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 28px);
}

.form-title {
  font-size: clamp(1.15rem, 2.5vw, 1.3rem);
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 16px; /* Prevents auto-zoom on iOS */
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-glow);
}

.form-privacy-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-card);
  padding: clamp(40px, 6vw, 60px) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 36px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 12px 0 16px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}

.footer-heading {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.footer-links li a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-contact-item a {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-compliance {
  padding-bottom: 24px;
}

.compliance-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.age-badge {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-bottom {
  border-top: 1px solid var(--border-card);
  padding: 20px 0;
  background: #030406;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
}

/* =========================================================
   FLOATING WHATSAPP & MODALS
   ========================================================= */

.floating-whatsapp-wrapper {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-tooltip {
  background: var(--bg-secondary);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  max-width: 220px;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition-normal);
}

.floating-whatsapp-wrapper:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #fff;
}

.online-indicator {
  width: 6px;
  height: 6px;
  background: #25D366;
  border-radius: 50%;
}

.whatsapp-tooltip p {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.floating-whatsapp-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  transition: var(--transition-bounce);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
}

.wa-ping-animation {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: waPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes waPing {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Game Modal */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.game-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.game-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.game-modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: min(560px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.modal-game-header {
  margin-bottom: 16px;
}

.modal-badge-group {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.game-prov-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-glow);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.game-type-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-game-header h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.modal-game-preview-window {
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
}

.mockup-header-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: var(--font-code);
}

.badge-live-demo {
  color: var(--emerald-glow);
  font-weight: 700;
}

.game-demo-anim i {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.game-demo-anim h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.game-demo-anim p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.game-demo-anim code {
  color: var(--gold-glow);
  font-family: var(--font-code);
}

.demo-stats-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-card);
  flex-wrap: wrap;
}

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

.dstat strong {
  color: #fff;
  font-weight: 700;
}

.modal-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 10px;
}

/* =========================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ========================================================= */

/* Desktop to Laptop (< 1200px) */
@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    gap: 16px;
  }
}

/* Tablet Landscape & Below (< 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 650px;
    margin: 10px auto 0;
  }
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
  }
  .stat-box:nth-child(3)::after {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-playground-wrapper {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-card);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait & Mobile (< 868px) */
@media (max-width: 868px) {
  .main-nav, .header-actions .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .wallet-flow-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .providers-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Mobile Devices (< 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .announcement-content {
    font-size: 0.75rem;
    gap: 6px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .trust-divider {
    display: none;
  }
  .mockup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-container {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }
  .stat-box::after {
    display: none;
  }
  .stat-box:last-child {
    grid-column: 1 / -1;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .provider-controls-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .provider-search-box {
    width: 100%;
    min-width: unset;
  }
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .provider-item-card {
    padding: 12px 8px;
  }
  .provider-logo-box {
    width: 52px;
    height: 52px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .floating-whatsapp-wrapper {
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: 16px;
  }
  .whatsapp-tooltip {
    display: none;
  }
  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

/* Extra Small Screens (< 380px) */
@media (max-width: 380px) {
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .provider-item-name {
    font-size: 0.8rem;
  }
  .btn-whatsapp-hero {
    padding: 10px 14px;
  }
}
