/* =========================================
   IPTVRESELLER.STORE — Global CSS
   Premium Dark SaaS Theme
   ========================================= */

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

/* ---- CSS VARIABLES ---- */
:root {
  --bg:          #06070f;
  --bg-2:        #0a0c1a;
  --bg-card:     #0e1122;
  --bg-card2:    #111426;
  --bg-hover:    #141728;

  --purple:      #6d28d9;
  --purple-md:   #7c3aed;
  --purple-lt:   #a78bfa;
  --pink:        #db2777;
  --pink-lt:     #f472b6;
  --cyan:        #0891b2;
  --cyan-lt:     #22d3ee;
  --green:       #059669;
  --green-lt:    #34d399;
  --amber:       #d97706;
  --amber-lt:    #fbbf24;
  --red:         #dc2626;

  --grad-primary: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
  --grad-cyan:    linear-gradient(135deg, #0891b2 0%, #6d28d9 100%);
  --grad-green:   linear-gradient(135deg, #059669 0%, #0891b2 100%);
  --grad-amber:   linear-gradient(135deg, #d97706 0%, #db2777 100%);
  --grad-text:    linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  --grad-text2:   linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);

  --text:        #f1f5f9;
  --text-2:      #cbd5e1;
  --text-3:      #94a3b8;
  --text-muted:  #64748b;
  --text-dim:    #334155;

  --border:      #1e2540;
  --border-2:    #263050;
  --border-purple: rgba(109,40,217,.3);

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --shadow-purple: 0 8px 32px rgba(109,40,217,.25);
  --shadow-glow:   0 0 40px rgba(109,40,217,.15);

  --transition:  0.2s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.4s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---- NOISE OVERLAY ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; position: relative; }
.section-alt { background: var(--bg-2); }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; font-weight: 700; }
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-grad2 {
  background: var(--grad-text2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.eyebrow-purple { background: rgba(109,40,217,.12); color: var(--purple-lt); border: 1px solid rgba(109,40,217,.25); }
.eyebrow-cyan   { background: rgba(8,145,178,.12);  color: var(--cyan-lt);   border: 1px solid rgba(8,145,178,.25); }
.eyebrow-green  { background: rgba(5,150,105,.12);  color: var(--green-lt);  border: 1px solid rgba(5,150,105,.25); }
.eyebrow-amber  { background: rgba(217,119,6,.12);  color: var(--amber-lt);  border: 1px solid rgba(217,119,6,.25); }
.eyebrow-pink   { background: rgba(219,39,119,.12); color: var(--pink-lt);   border: 1px solid rgba(219,39,119,.25); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(109,40,217,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(109,40,217,.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--purple-lt); color: var(--purple-lt); background: rgba(109,40,217,.07); }
.btn-green {
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(5,150,105,.3);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(5,150,105,.45); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); background: #1ebe5a; }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-glow:hover { box-shadow: var(--shadow-purple); border-color: var(--border-purple); }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(28px,4vw,44px); font-weight: 800; margin-bottom: 14px; }
.section-header p { font-size: 16px; color: var(--text-3); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(6,7,15,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(6,7,15,.97); box-shadow: 0 2px 24px rgba(0,0,0,.5); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .logo-iptv { color: var(--purple-lt); }
.nav-logo .logo-r { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.dropdown a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  border: none;
  background: none;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .3s; display: block; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(109,40,217,.1);
  border: 1px solid rgba(109,40,217,.25);
  color: var(--purple-lt);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-lt);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 {
  font-size: clamp(38px, 5.5vw, 70px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -.02em;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 530px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.trust-item .chk { color: var(--green-lt); font-size: 15px; }

/* Hero visual panel */
.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-purple);
}
.hv-header {
  background: var(--bg-card2);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hv-dot { width: 10px; height: 10px; border-radius: 50%; }
.hv-title { font-size: 12px; color: var(--text-muted); margin-left: 8px; font-family: monospace; }
.hv-body { padding: 24px; }
.hv-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.hv-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.hv-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}
.hv-stat-lbl { font-size: 11px; color: var(--text-muted); }
.hv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,37,64,.7);
  font-size: 13px;
}
.hv-row:last-child { border-bottom: none; }
.hv-row .lbl { color: var(--text-3); }
.hv-row .val { font-weight: 600; }
.hv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.hv-btn {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.hv-btn-primary { background: var(--grad-primary); color: #fff; }
.hv-btn-sec { background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); }

/* ---- TICKER ---- */
.ticker {
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.ticker-item strong { color: var(--purple-lt); }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.stat-card { background: var(--bg-card); padding: 28px 24px; text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 38px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 13px; color: var(--text-muted); }

/* ---- FEATURE GRID ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: all var(--transition); }
.feat-card:hover { border-color: var(--border-purple); transform: translateY(-3px); box-shadow: var(--shadow-purple); }
.feat-icon { width: 46px; height: 46px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.feat-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ---- PRICING ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--grad-primary) border-box;
  box-shadow: var(--shadow-purple);
}
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 6px; }
.plan-credits { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.plan-price { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.plan-per { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.plan-save { display: inline-block; background: rgba(52,211,153,.12); color: var(--green-lt); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 20px; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.plan-features { margin-bottom: 26px; }
.plan-features li {
  font-size: 13px;
  color: var(--text-2);
  padding: 7px 0;
  border-bottom: 1px solid rgba(30,37,64,.5);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .chk { color: var(--green-lt); flex-shrink: 0; margin-top: 2px; }
.plan-features .cross { color: var(--text-dim); flex-shrink: 0; margin-top: 2px; }
.sub-yes { color: var(--green-lt); font-size: 12px; font-weight: 600; }
.sub-no  { color: var(--text-dim); font-size: 12px; }

/* ---- STEPS ---- */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; position: relative; z-index: 1; }
.step-num { font-family: 'Space Grotesk',sans-serif; font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 16px; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 13.5px; }
.data-table th { padding: 14px 18px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.data-table td { padding: 14px 18px; border-bottom: 1px solid rgba(30,37,64,.5); color: var(--text-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table .highlight { background: rgba(109,40,217,.06); }
.data-table .highlight td { border-color: rgba(109,40,217,.15); }

/* ---- BADGES ---- */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 50px; }
.badge-green  { background: rgba(52,211,153,.12); color: var(--green-lt); }
.badge-purple { background: rgba(167,139,250,.12); color: var(--purple-lt); }
.badge-cyan   { background: rgba(34,211,238,.12);  color: var(--cyan-lt); }
.badge-amber  { background: rgba(251,191,36,.12);  color: var(--amber-lt); }
.badge-pink   { background: rgba(244,114,182,.12); color: var(--pink-lt); }
.badge-red    { background: rgba(220,38,38,.12);   color: #f87171; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text); font-size: 15px; font-weight: 600;
  text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--purple-lt); }
.faq-icon { width: 22px; height: 22px; border: 1px solid var(--border-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--purple-lt); font-size: 16px; flex-shrink: 0; transition: all var(--transition); }
.faq-q.open .faq-icon { transform: rotate(45deg); background: rgba(109,40,217,.15); border-color: var(--border-purple); }
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height .38s ease, padding .3s; }
.faq-a.open { max-height: 400px; padding-bottom: 20px; }

/* ---- TESTIMONIALS ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.testi-stars { color: var(--amber-lt); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--text-muted); }

/* ---- PAYMENT ICONS ---- */
.payment-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 40px;
  transition: all var(--transition);
}
.payment-icon:hover { border-color: var(--border-2); }
.payment-icon svg { height: 22px; width: auto; }

/* ---- DEVICE CARDS ---- */
.device-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.device-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 16px; text-align: center; transition: all var(--transition); }
.device-card:hover { border-color: var(--border-purple); transform: translateY(-3px); box-shadow: var(--shadow-purple); }
.device-icon { font-size: 32px; margin-bottom: 12px; }
.device-name { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ---- CTA SECTION ---- */
.cta-box {
  background: linear-gradient(135deg, rgba(109,40,217,.15) 0%, rgba(219,39,119,.1) 100%);
  border: 1px solid rgba(109,40,217,.25);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box h2 { font-size: clamp(28px,4vw,46px); font-weight: 800; margin-bottom: 14px; }
.cta-box p { font-size: 16px; color: var(--text-2); max-width: 500px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .footer-logo { font-family: 'Space Grotesk',sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text); }

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(32px,5vw,58px); font-weight: 900; margin-bottom: 18px; letter-spacing: -.02em; }
.page-hero p { font-size: 17px; color: var(--text-2); max-width: 580px; margin: 0 auto; line-height: 1.7; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); justify-content: center; margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--purple-lt); }
.breadcrumb span { color: var(--border-2); }

/* ---- BLOG CARD ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--border-purple); box-shadow: var(--shadow-purple); }
.blog-img { height: 180px; background: linear-gradient(135deg,#1a1040,#200d30); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.blog-body { padding: 22px; }
.blog-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-lt); margin-bottom: 10px; }
.blog-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-title a { color: var(--text); transition: color var(--transition); }
.blog-title a:hover { color: var(--purple-lt); }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.blog-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-muted); }

/* ---- FORM ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,40,217,.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

/* ---- STICKY CTA ---- */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sticky-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.sticky-btn:hover { transform: scale(1.1); }
.sticky-whatsapp { background: #25D366; }
.sticky-telegram { background: #0088cc; }

/* ---- REVEAL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .device-grid { grid-template-columns: repeat(3,1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 4px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all .3s;
  }
  .mobile-menu.open { transform: none; opacity: 1; }
  .mobile-menu a { display: block; padding: 11px 14px; color: var(--text-2); font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); }
  .mobile-menu a:hover { background: rgba(255,255,255,.05); color: var(--text); }
  .pricing-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
  .cta-actions { flex-direction: column; }
  .device-grid { grid-template-columns: 1fr 1fr; }
}

/* ====================================================
   COMPREHENSIVE RESPONSIVE OVERHAUL
   Supports: 1920 / 1440 / 1280 / 1024 / 992 / 768
             600 / 480 / 430 / 414 / 390 / 375 / 360 / 320
   ==================================================== */

/* ---- UNIVERSAL SAFETY NET ---- */
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, iframe { max-width: 100%; height: auto; }

/* Prevent any element from causing horizontal overflow */
html { overflow-x: clip; }

/* Tables always scroll rather than overflow */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* All inline-page grids written with style="" need backup wrapping */
[style*="grid-template-columns"] { min-width: 0; }

/* ---- 1280px — minor tightening ---- */
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
  .hero-grid { gap: 40px; }
  .container { padding: 0 20px; }
}

/* ---- 1024px — already covered above, extend ---- */
@media (max-width: 1024px) {
  /* Hero */
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-desc { max-width: 100%; }
  .hero h1 { font-size: clamp(32px, 5vw, 54px); }

  /* Grids */
  .pricing-grid, .plan-panel.active { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .device-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }

  /* Inline grids on pages (contact, about, sub-reseller etc.) */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  .contact-grid,
  .intro-grid,
  .why-grid { grid-template-columns: 1fr !important; }

  /* Location pages 2-col inline grids */
  [style*="grid-template-columns:1fr auto 1fr"] { grid-template-columns: 1fr !important; }
}

/* ---- 992px ---- */
@media (max-width: 992px) {
  .section { padding: 72px 0; }
  .page-hero { padding: 120px 0 60px; }

  /* Nav */
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Pricing 3-col → 2-col */
  .plan-panel.active { grid-template-columns: 1fr 1fr; }

  /* Inline 2-col grids throughout pages */
  [style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
  [style*="display:grid"][style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* How it works, features etc. */
  .sub-diagram { grid-template-columns: 1fr !important; }
  .sub-arrow { transform: rotate(90deg); }

  /* Article seo-section */
  .seo-section .intro-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ---- 768px ---- */
@media (max-width: 768px) {
  /* Base */
  html { overflow-x: clip; }
  .container, .container-sm { padding: 0 16px; max-width: 100%; }
  .section { padding: 60px 0; }
  .section-sm { padding: 48px 0; }
  .page-hero { padding: 100px 0 48px; }
  .page-hero p { font-size: 15px; }

  /* Nav */
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-card2); border-bottom: 1px solid var(--border); padding: 20px 24px 28px; gap: 4px; z-index: 999; transform: translateY(-100%); opacity: 0; transition: all .3s; }
  .mobile-menu.open { transform: none; opacity: 1; }
  .mobile-menu a { display: block; padding: 11px 14px; color: var(--text-2); font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); }
  .mobile-menu a:hover { background: rgba(255,255,255,.05); color: var(--text); }

  /* Hero */
  .hero { padding: 88px 0 48px; }
  .hero h1 { font-size: clamp(28px, 7vw, 42px); }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; }
  .trust-item { font-size: 12px; }

  /* ALL grids → single column on mobile */
  .pricing-grid,
  .plan-panel.active,
  .feat-grid,
  .steps-grid,
  .testi-grid,
  .blog-grid,
  .device-grid { grid-template-columns: 1fr !important; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Section header */
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: clamp(22px, 5vw, 32px); }
  .section-header p { font-size: 14px; }

  /* Pricing cards */
  .pricing-card { padding: 26px 20px; }
  .plan-credits { font-size: 38px; }

  /* CTA box */
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: clamp(22px, 5vw, 32px); }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Footer */
  .footer { padding: 48px 0 0; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* FAQ */
  .faq-q { font-size: 14px; }

  /* Buttons */
  .btn-lg { padding: 14px 24px; font-size: 14px; }

  /* Timeline on how-it-works */
  .timeline { padding-left: 32px; }

  /* All inline style grids MUST collapse */
  [style*="display:grid"] { grid-template-columns: 1fr !important; }
  [style*="display: grid"] { grid-template-columns: 1fr !important; }

  /* But preserve explicit small grids we want to keep 2-col */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .hv-stat-row { grid-template-columns: 1fr 1fr !important; }
  .hv-actions { grid-template-columns: 1fr 1fr !important; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Sub diagram */
  .sub-diagram { grid-template-columns: 1fr !important; }
  .sub-arrow { transform: rotate(90deg); display: block; text-align: center; }

  /* Channel filter tabs */
  .ch-tabs { gap: 6px; }
  .ch-tab { padding: 7px 14px; font-size: 12px; }
  .ch-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; }

  /* Blog topic grids on blog/index */
  .blog-topic-grid { grid-template-columns: 1fr !important; }

  /* Sitemap */
  .sitemap-grid { grid-template-columns: 1fr 1fr !important; }

  /* Article device cards */
  .device-card-row { flex-direction: column !important; }

  /* Intro grid */
  .intro-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }

  /* Resources grid on homepage */
  [id="resources-h2"] ~ div [style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; }
}

/* ---- 600px ---- */
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(26px, 7.5vw, 36px); letter-spacing: -.01em; }
  .section-header h2 { font-size: clamp(20px, 6vw, 28px); }
  .page-hero h1 { font-size: clamp(24px, 7vw, 36px); }

  /* Pricing */
  .plan-credits { font-size: 32px; }
  .plan-price { font-size: 20px; }

  /* Stats */
  .stat-num { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* Buttons in hero */
  .hero-actions .btn, .cta-actions .btn { width: 100%; }

  /* Payment icons wrap gracefully */
  .payment-section [style*="grid-template-columns:repeat(auto-fit"] { grid-template-columns: repeat(3, 1fr) !important; }

  /* Sitemap */
  .sitemap-grid { grid-template-columns: 1fr !important; }

  /* Why grid */
  .why-grid { grid-template-columns: 1fr !important; }

  /* Ticker - ensure no overflow */
  .ticker { overflow: hidden; }
}

/* ---- 480px ---- */
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 14px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }

  /* Hero */
  .hero { padding: 80px 0 40px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }
  .hero h1 { font-size: clamp(24px, 8vw, 32px); }
  .hero-desc { font-size: 14px; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Stats */
  .stat-num { font-size: 24px; }
  .stat-lbl { font-size: 11px; }

  /* Steps */
  .step-num { font-size: 36px; }
  .step-title { font-size: 15px; }

  /* Buttons */
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 13px 20px; font-size: 13.5px; }

  /* CTA */
  .cta-box { padding: 32px 16px; border-radius: var(--radius-lg); }

  /* Pricing cards */
  .pricing-card { padding: 22px 16px; }
  .plan-credits { font-size: 28px; }

  /* Stats grid */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 1px; }

  /* Blog meta */
  .blog-meta { flex-wrap: wrap; gap: 8px; }

  /* Payment icons */
  .payment-section [style*="grid"] { grid-template-columns: repeat(3, 1fr) !important; }

  /* Device grid */
  .device-grid { grid-template-columns: 1fr 1fr !important; }

  /* Channel grid */
  .ch-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; }

  /* Sticky CTA smaller on tiny screens */
  .sticky-btn { width: 44px; height: 44px; font-size: 18px; }
  .sticky-cta { bottom: 16px; right: 16px; }

  /* FAQ */
  .faq-q { font-size: 13.5px; padding: 16px 0; }
  .faq-a { font-size: 13px; }

  /* Footer */
  .footer-grid { gap: 20px; }
  .footer-col ul li a { font-size: 13px; }
}

/* ---- 430px ---- */
@media (max-width: 430px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .container, .container-sm { padding: 0 12px; }

  .hero h1 { font-size: clamp(22px, 8vw, 30px); }
  .page-hero h1 { font-size: clamp(22px, 8vw, 30px); }
  .section-header h2 { font-size: clamp(19px, 6.5vw, 26px); }

  /* Nav toggle area */
  .nav-inner { padding: 0 4px; }

  /* Pricing */
  .plan-panel.active { gap: 16px !important; }
  .pricing-card { padding: 20px 14px; }

  /* Stats */
  .stat-card { padding: 20px 12px; }
  .stat-num { font-size: 22px; }

  /* FAQ list */
  .faq-list { max-width: 100%; }

  /* Forms */
  .form-input, .form-select, .form-textarea { font-size: 16px; } /* Prevent iOS zoom */

  /* Eyebrow */
  .eyebrow { font-size: 10px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 11px; flex-wrap: wrap; justify-content: center; }

  /* Device cards */
  .device-grid { grid-template-columns: 1fr 1fr !important; }

  /* Table */
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

/* ---- 390px ---- */
@media (max-width: 390px) {
  .container, .container-sm { padding: 0 10px; }

  .hero h1 { font-size: clamp(20px, 8.5vw, 28px); }
  .hero-badge { font-size: 10px; }

  .btn-lg { padding: 12px 16px; font-size: 13px; }
  .btn { font-size: 13px; padding: 11px 16px; }
  .btn-sm { font-size: 12px; padding: 8px 14px; }

  /* Plan cards */
  .plan-credits { font-size: 24px; }
  .plan-features li { font-size: 12px; }

  /* Stat card */
  .stat-num { font-size: 20px; }

  /* Footer bottom */
  .footer-legal { gap: 8px; }
  .footer-legal a { font-size: 11px; }

  /* CTA box */
  .cta-box { padding: 28px 12px; }
}

/* ---- 360px / 320px — absolute minimum ---- */
@media (max-width: 360px) {
  .container, .container-sm { padding: 0 8px; }

  .hero h1 { font-size: 20px; }
  .page-hero h1 { font-size: 20px; }
  .section-header h2 { font-size: 18px; }

  .btn { font-size: 12px; padding: 10px 14px; }
  .btn-lg { font-size: 12px; padding: 12px 14px; }

  .stats-grid { grid-template-columns: 1fr !important; }
  .stat-card { padding: 16px 10px; }

  .hv-stat-row { grid-template-columns: 1fr 1fr !important; }
  .hv-stat-num { font-size: 18px; }

  .testi-card { padding: 18px 14px; }
  .blog-card .blog-body { padding: 16px; }

  /* Channel tabs */
  .ch-tabs { gap: 4px; }
  .ch-tab { padding: 6px 10px; font-size: 11px; }

  .sticky-btn { width: 40px; height: 40px; font-size: 16px; }
  .sticky-cta { bottom: 12px; right: 12px; gap: 8px; }

  /* Footer */
  .footer-grid { gap: 16px; }
}

/* ---- TOUCH DEVICE HELPERS ---- */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .nav-toggle { padding: 10px; }
  .faq-q { padding: 18px 0; min-height: 52px; }
  .dropdown a { padding: 12px 14px; }
  .sticky-btn { width: 52px; height: 52px; }

  /* Remove hover effects that feel broken on touch */
  .feat-card:hover,
  .pricing-card:hover,
  .card:hover,
  .blog-card:hover,
  .device-card:hover { transform: none; box-shadow: none; }

  .btn-primary:hover { transform: none; }
  .btn-green:hover { transform: none; }
  .btn-whatsapp:hover { transform: none; }
}

/* ---- PRINT ---- */
@media print {
  .navbar, .ticker, .sticky-cta, .mobile-menu { display: none !important; }
  body { background: white; color: black; }
  .section, .section-alt { background: white; }
  a { color: black; }
}

/* ---- BLOG INDEX — topic link grids ---- */
@media (max-width: 768px) {
  /* The 100-topic grids in blog/index.html */
  #featured-articles + .container .blog-grid { grid-template-columns: 1fr !important; }

  /* blog/index.html topic link grids use inline style grid cols */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Keep 2-col only for very simple grids */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ---- SPECIFIC PAGE FIXES ---- */

/* features.html — comparison table */
@media (max-width: 768px) {
  .features-comparison-table { font-size: 12px; }
  .features-comparison-table th,
  .features-comparison-table td { padding: 8px 10px; }
}

/* channels.html — tab bar */
@media (max-width: 600px) {
  .ch-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .ch-tab { flex-shrink: 0; }
}

/* how-it-works.html — sub-diagram inline grid */
@media (max-width: 768px) {
  .sub-diagram {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .sub-arrow { transform: rotate(90deg); font-size: 18px; text-align: center; }
}

/* about.html — stats inside grid */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
}

/* contact.html — two column form layout */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* faq.html — category button row */
@media (max-width: 480px) {
  #faq-categories { flex-wrap: wrap; gap: 6px; }
  #faq-categories .btn-outline { font-size: 11px; padding: 6px 12px; }
}

/* pricing.html — plan tabs */
@media (max-width: 480px) {
  .plan-tabs { flex-direction: column; align-items: center; gap: 8px; }
  .plan-tab { width: 100%; max-width: 320px; text-align: center; }
}

/* homepage — resources grid (8-card 4-col) */
@media (max-width: 768px) {
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- OVERFLOW GUARD — last resort per element ---- */
.hero-visual { overflow: hidden; word-break: break-word; }
.pricing-card { overflow: hidden; word-break: break-word; }
.feat-card { word-break: break-word; }
.blog-card { overflow: hidden; }
.card { overflow: hidden; word-break: break-word; }
.cta-box { overflow: hidden; }
.page-hero { overflow: hidden; }

/* Ensure orbs never cause scroll */
.hero-orb { max-width: 100vw; max-height: 100vh; }


/* ================================================
   TARGETED RESPONSIVE FIXES — PRODUCTION AUDIT
   ================================================ */

/* Prevent plan-panel grid overflow on mobile */
.plan-panel, .plan-panel.active {
  min-width: 0;
  width: 100%;
}

/* Channel filter horizontal scroll on small screens */
@media (max-width: 560px) {
  .ch-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    gap: 6px;
    justify-content: flex-start;
  }
  .ch-tabs::-webkit-scrollbar { display: none; }
  .ch-tab { flex-shrink: 0; white-space: nowrap; }
}

/* Blog topic link grids — enforce single col on mobile */
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* Contact form — full width inputs always */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Nav toggle button — ensure always visible on mobile */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: all 0.3s;
  }
}

/* Prevent hero badge from overflowing */
.hero-badge {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

/* Ticker — fix potential overflow */
.ticker-track {
  min-width: max-content;
}

/* Sticky CTA — prevent overlap with content on small screens */
@media (max-width: 480px) {
  .sticky-cta {
    bottom: 12px;
    right: 12px;
    gap: 8px;
  }
}

/* Table responsive — ensure min-widths */
.data-table {
  min-width: 500px;
}

/* Device cards grid — keep 2-col on tablet, 1-col on mobile */
@media (max-width: 600px) {
  .device-card {
    flex-direction: column;
  }
  .device-rank {
    font-size: 26px;
    min-width: auto;
  }
}

/* Blog article device cards */
.device-card {
  flex-wrap: wrap;
}

/* Plan tabs — wrap on small screens */
@media (max-width: 580px) {
  .plan-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .plan-tab {
    font-size: 13px;
    padding: 9px 16px;
    text-align: center;
  }
}

/* Hero actions — always col on mobile */
@media (max-width: 580px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* CTA actions — col + centered on mobile */
@media (max-width: 600px) {
  .cta-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    text-align: center;
  }
}

/* Footer — collapse all cols to 2 on tablet, 1 on mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Breadcrumb — wrap on tiny screens */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Form inputs — prevent iOS auto-zoom (needs 16px+ font) */
@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
  }
}

/* How it works inline grids */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr auto 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Pricing page — duration table responsive */
@media (max-width: 768px) {
  .data-table th:nth-child(5),
  .data-table td:nth-child(5) {
    display: none;
  }
}

/* About page inline 2-col stats grid */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* FAQ category scroll on mobile */
@media (max-width: 600px) {
  [id^="getting-started"] ~ .faq-list,
  [id^="credits"] ~ .faq-list,
  [id^="panels"] ~ .faq-list {
    width: 100%;
  }
}

/* Homepage resources 4-col → 2-col → 1-col */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure all buttons never overflow container */
.btn {
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

/* Fix any container that has explicit min-width inline */
.container, .container-sm {
  max-width: 100%;
}

/* Global: no element should cause horizontal scroll */
body > * {
  max-width: 100vw;
  overflow-x: clip;
}
