/* ============================================================
   SASQUATCH IPTV - Premium Design System
   Deep Space × Electric Violet × Cyan Glow
   ============================================================ */

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

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  --bg-base:     #080b14;
  --bg-surface:  #0d1424;
  --bg-elevated: #111827;
  --bg-card:     #131c2e;
  --bg-card-hover: #172035;

  --accent:      #6c63ff;
  --accent-2:    #00d4ff;
  --accent-3:    #a855f7;
  --gradient:    linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --gradient-text: linear-gradient(90deg, #6c63ff, #00d4ff);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);

  --text-main:   #f0f4ff;
  --text-muted:  #8892a4;
  --text-faint:  #4a5568;

  --border:      rgba(108, 99, 255, 0.15);
  --border-bright: rgba(108, 99, 255, 0.4);
  --glow:        0 0 40px rgba(108, 99, 255, 0.2);
  --glow-strong: 0 0 60px rgba(108, 99, 255, 0.35);
  --glow-cyan:   0 0 30px rgba(0, 212, 255, 0.25);

  --success:     #10b981;
  --warning:     #f59e0b;
  --error:       #ef4444;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   30px;

  --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-muted); }

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--accent); }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--accent); }
.text-center { text-align: center; }

/* ── Layout Helpers ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mt-6 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }

section { padding: 100px 5%; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-main); border-color: var(--border-bright); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #c0392b; color: white; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.full-width { width: 100%; justify-content: center; }

/* ── Navigation ──────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  background: rgba(108, 99, 255, 0.1);
}

.logo-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  -webkit-text-fill-color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.username-display {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 7px 14px;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1.2;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid var(--border-bright);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  white-space: normal;
  word-break: normal;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 600px;
}

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

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.check-icon {
  width: 20px;
  height: 20px;
  background: var(--gradient);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── App Mockup ──────────────────────────────────────────── */
.app-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--glow-strong), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}

.app-mockup.phone {
  width: 260px;
  height: 520px;
  border-radius: var(--radius-xl);
}

.app-mockup.tablet {
  width: 380px;
  height: 520px;
}

.app-mockup.desktop {
  width: 600px;
  height: 400px;
  border-radius: var(--radius-lg);
}

.hero-image .app-mockup {
  width: 320px;
  height: 600px;
}

.mockup-header {
  height: 40px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-faint);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  padding: 20px;
  text-align: center;
  gap: 12px;
}

.placeholder-icon { font-size: 3rem; opacity: 0.3; }
.mockup-label { font-size: 0.8rem; opacity: 0.4; }

/* ── Platform Cloud ──────────────────────────────────────── */
.logo-cloud {
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.logo-cloud p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  color: var(--text-faint);
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logos span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: var(--transition);
}

.logos span:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

/* ── Section Styles ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header p {
  font-size: 1.1rem;
  margin-top: 16px;
  line-height: 1.7;
}

/* ── Features Grid ───────────────────────────────────────── */
.features-section { background: var(--bg-base); }

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

@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.feature-card p  { font-size: 0.92rem; line-height: 1.65; }

/* ── How it Works ────────────────────────────────────────── */
.how-it-works-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 60px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; }

.step-line {
  flex-shrink: 0;
  width: 80px;
  height: 2px;
  background: var(--gradient);
  opacity: 0.3;
  margin-bottom: 60px;
}

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-section { background: var(--bg-base); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 50px;
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.gallery-item::before {
  content: '📷';
  font-size: 2rem;
  margin-right: 10px;
}

.gallery-item:hover {
  border-color: var(--border-bright);
  transform: scale(1.02);
  box-shadow: var(--glow);
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

@media (max-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow);
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-style: italic;
}

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info strong { display: block; font-size: 0.9rem; }
.author-info span { font-size: 0.8rem; color: var(--text-faint); }

/* ── Banner Section ──────────────────────────────────────── */
.banner-section {
  background: linear-gradient(135deg, rgba(108,99,255,0.25) 0%, rgba(0,212,255,0.15) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.banner-section h2 { margin-bottom: 16px; }
.banner-section p { font-size: 1.15rem; margin-bottom: 40px; }

.justify-center { justify-content: center; }

/* ── Page Headers ────────────────────────────────────────── */
.page-header {
  text-align: center;
  padding: 80px 5% 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.page-header h1 { margin-bottom: 16px; position: relative; }
.page-header p { font-size: 1.1rem; position: relative; }

/* ── Pricing Page ────────────────────────────────────────── */
.pricing-container { background: var(--bg-base); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; } }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
  box-shadow: var(--glow);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: var(--glow-strong);
  background: linear-gradient(180deg, rgba(108,99,255,0.08) 0%, var(--bg-card) 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 4px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0 4px;
  line-height: 1;
}

.price-period { font-size: 1rem; color: var(--text-faint); margin-bottom: 20px; }
.plan-desc { font-size: 0.9rem; margin-bottom: 32px; }

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.plan-features li:last-child { border-bottom: none; padding-bottom: 0; }

.plan-features .check { color: var(--success); font-size: 0.85rem; }

.pricing-disclaimer {
  max-width: 700px;
  margin: 60px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Affiliate Page ──────────────────────────────────────── */
.affiliate-container { background: var(--bg-base); }

.affiliate-intro {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 70px;
}

.affiliate-intro h2 { font-size: 2.5rem; margin-bottom: 20px; }
.affiliate-intro p { font-size: 1.1rem; line-height: 1.75; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(108,99,255,0.4);
}

.step-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.step-card p  { font-size: 0.9rem; }

.how-it-works { text-align: center; margin-top: 80px; }
.how-it-works h2 { margin-bottom: 10px; }

/* ── Platforms Page ──────────────────────────────────────── */
.platforms-container { background: var(--bg-base); }

.platform-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.platform-row.reverse { flex-direction: row-reverse; }
.platform-text { flex: 1; }
.platform-text h2 { margin-bottom: 16px; }
.platform-text p  { font-size: 1.05rem; line-height: 1.75; margin-bottom: 28px; }

.platform-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.download-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .platform-row, .platform-row.reverse { flex-direction: column; }
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-container {
  background: var(--bg-base);
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover { border-color: var(--border-bright); }
.accordion-item.active {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.accordion-header {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-header h3 { font-size: 1rem; font-weight: 600; margin: 0; }

.accordion-header .icon {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}

.accordion-item.active .accordion-header .icon { transform: rotate(45deg); }

.accordion-content {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  padding: 0 28px 24px;
  max-height: 400px;
}

/* ── About ───────────────────────────────────────────────── */
.about-container { background: var(--bg-base); }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--glow);
}

.about-text { flex: 2; padding: 60px; }
.about-text h2 { font-size: 2rem; margin-bottom: 24px; }
.about-text p  { line-height: 1.8; margin-bottom: 20px; font-size: 1rem; }

.contact-info h3 { font-size: 1.1rem; margin-bottom: 8px; }

.about-image {
  flex: 1;
  background: linear-gradient(135deg, rgba(108,99,255,0.2) 0%, rgba(0,212,255,0.1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid var(--border);
  min-height: 300px;
}

.developer-placeholder { text-align: center; }
.developer-placeholder .icon { font-size: 5rem; margin-bottom: 12px; }
.developer-placeholder p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Legal ───────────────────────────────────────────────── */
.legal-container {
  background: var(--bg-base);
  max-width: 860px;
  margin: 0 auto;
}

.legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 24px;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-section p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.75; }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
}

.auth-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--glow);
}

.auth-card h2 { margin-bottom: 8px; }
.auth-card > p { color: var(--text-muted); margin-bottom: 32px; }

.tabs {
  display: flex;
  gap: 0;
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.switch-auth {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.switch-auth a { color: var(--accent); font-weight: 600; }

/* ── Dashboard / Reseller Panel ──────────────────────────── */
.dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
}

.dashboard-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 72px);
}

.sidebar {
  width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-section {
  padding: 24px 0 8px;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  padding: 0 20px;
  margin-bottom: 8px;
}

.sidebar-menu { list-style: none; }

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.sidebar-menu li a:hover {
  color: var(--text-main);
  background: rgba(108,99,255,0.06);
}

.sidebar-menu li.active a {
  color: var(--text-main);
  background: rgba(108,99,255,0.1);
  border-left-color: var(--accent);
}

.sidebar-menu li a .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-menu li a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.dashboard-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

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

.content-header h2 { font-size: 1.8rem; }
.content-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ── Stats Cards ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ── Cards / Tables ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.card-header h3 { font-size: 1rem; font-weight: 700; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 14px 24px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 16px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

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

.data-table code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-2);
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-trial   { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-month   { background: rgba(16,185,129,0.15);  color: #10b981; }
.badge-year    { background: rgba(108,99,255,0.15);  color: #6c63ff; }
.badge-lifetime{ background: rgba(0,212,255,0.15);   color: #00d4ff; }
.badge-admin   { background: rgba(239,68,68,0.15);   color: #ef4444; }
.badge-reseller{ background: rgba(108,99,255,0.15);  color: #6c63ff; }
.badge-active  { background: rgba(16,185,129,0.15);  color: #10b981; }
.badge-used    { background: rgba(100,116,139,0.15); color: #64748b; }

/* ── Form inside cards ───────────────────────────────────── */
.card-form { padding: 28px; }
.card-form .form-group { margin-bottom: 18px; }

.permission-toggles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  font-size: 0.85rem;
}

.toggle-item.enabled {
  border-color: var(--accent);
  background: rgba(108,99,255,0.1);
  color: var(--accent);
}

/* ── Ref / Key Display ───────────────────────────────────── */
.ref-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
}

.broadcast-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  z-index: 9999;
  position: relative;
}

.hero {
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.ref-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}

/* ── Modal ───────────────────────────────────────────────── */
.hidden { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--glow-strong);
}

.modal-content h3 { margin-bottom: 8px; }
.modal-content p  { margin-bottom: 24px; }

.key-display {
  background: var(--bg-surface);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 18px;
  font-family: monospace;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin: 20px 0;
  word-break: break-all;
}

/* ── Alerts ──────────────────────────────────────────────── */
.error-msg {
  color: var(--error);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.88rem;
  display: none;
}
.error-msg:not(:empty) { display: block; }

.success-msg {
  color: var(--success);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.88rem;
  display: none;
}
.success-msg:not(:empty) { display: block; }

.info-box {
  background: rgba(108,99,255,0.08);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Cookie Banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 860px;
}

.cookie-content {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), var(--glow);
}

.cookie-text h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cookie-text p  { font-size: 0.82rem; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Reseller CTA section (shared) ──────────────────────── */
.reseller-cta { background: var(--bg-base); }

.reseller-box {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(0,212,255,0.08) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 70px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--glow);
}

.reseller-box h2 { margin-bottom: 16px; }
.reseller-box p  { font-size: 1.1rem; margin-bottom: 36px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 50px 5%;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: left;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand .logo { font-size: 1.4rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--text-main); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ── Utility ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: inherit;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }

/* Server Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Floating Chat Widget */
.floating-support-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
    cursor: pointer;
    z-index: 999999;
    transition: var(--transition);
    border: 2px solid var(--border-bright);
    pointer-events: auto;
}
.floating-support-btn:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Mobile Hamburger Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-bright);
    color: white;
    font-size: 1.5rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar {
    position: relative;
    flex-wrap: wrap;
    padding: 15px 20px;
  }
  .navbar .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-top: 10px;
    padding: 15px;
    border: 1px solid var(--border-bright);
  }
  .navbar .nav-links.active {
    display: flex;
  }
  .navbar .nav-links a {
    display: block !important;
    padding: 8px 12px;
    font-size: 1.05rem;
  }
  .hero { flex-direction: column; padding: 60px 5%; gap: 40px; }
  .hero-image { display: none; }
  .about-card { flex-direction: column; }
  .about-image { border-left: none; border-top: 1px solid var(--border); }
  .dashboard-layout { flex-direction: column; height: auto; }
  .sidebar { width: 100%; height: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .reseller-box { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; text-align: center; }
  .card { overflow-x: auto; }
  .data-table { min-width: 600px; }
}

