/* ================================================================
   THANHUB — SHARED SUB-PAGES DESIGN SYSTEM v4 (ULTRA PREMIUM)
   Obsidian black + Electric blue + Violet glow · Performance Optimized
   ================================================================ */

:root {
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);

  /* Obsidian Color Palette */
  --bg:             #000000;
  --bg-dark:        #040508;
  --bg-gradient:    linear-gradient(180deg, #030407 0%, #06080d 50%, #020305 100%);

  /* Premium Glass Surfaces */
  --surface:        rgba(255, 255, 255, 0.03);
  --surface-mid:    rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);

  /* Borders and Lines */
  --line:           rgba(255, 255, 255, 0.06);
  --line-mid:       rgba(255, 255, 255, 0.11);
  --line-strong:    rgba(255, 255, 255, 0.20);

  /* High-fidelity Typography */
  --text:           #f5f5f7;
  --muted:          #9aa0a6;
  --subtle:         #636366;

  /* Brand Accents */
  --blue:           #4aa3ff;
  --blue-dark:      #2c85ff;
  --blue-glow:      rgba(74, 163, 255, 0.28);
  --violet:         #8b5cf6;
  --violet-glow:    rgba(139, 92, 246, 0.22);
  --green:          #34c759;
  --green-soft:     rgba(52, 199, 89, 0.12);
  --amber:          #ff9f0a;
  --amber-soft:     rgba(255, 159, 10, 0.12);
  --red:            #ff453a;

  /* Shadow & Blur System */
  --shadow:         0 12px 40px rgba(0, 0, 0, 0.65);
  --shadow-lg:      0 32px 80px rgba(0, 0, 0, 0.8);

  /* Radius System */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  28px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Grid Dots Layer (Performance Friendly) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  z-index: 0;
}

/* Drifting Gradient Blobs */
body::after {
  content: "";
  position: fixed;
  width: 700px; height: 700px;
  top: -200px; right: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 163, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: bg-drift 20s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

img, svg { max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ── Container ── */
.container, .reseller-page, main {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
}

/* ── Back / Return Button ── */
.return-home,
.back-btn {
  position: fixed;
  top: max(22px, calc(12px + var(--safe-top)));
  left: max(22px, var(--safe-left));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid var(--line-mid);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.return-home:hover, .back-btn:hover {
  color: #fff;
  background: rgba(18, 18, 24, 0.95);
  border-color: rgba(74, 163, 255, 0.45);
  box-shadow: 0 8px 30px rgba(74, 163, 255, 0.15);
  transform: translateY(-2px);
}

.return-home .arrow, .back-btn .arrow { font-size: 15px; }

/* ── Hero / Header sections ── */
.purchase-hero,
.reseller-header,
.hero {
  padding: max(130px, calc(105px + var(--safe-top))) max(0px, var(--safe-right)) 60px max(0px, var(--safe-left));
  text-align: center;
  position: relative;
  z-index: 1;
}

.purchase-hero h1,
.reseller-header h1,
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 25%, var(--blue) 75%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.purchase-hero h1 span,
.reseller-header h1 span {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purchase-badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(74, 163, 255, 0.08);
  border: 1px solid rgba(74, 163, 255, 0.22);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.purchase-desc,
.reseller-header p,
.hero p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

.purchase-checks,
.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.purchase-checks span,
.checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* ── Universal Glass Card Panel ── */
.howto,
.card,
.script-box,
.price-card,
.pay-box,
.video-card,
.reseller-card,
.reseller-warning,
.feature-card,
.glass-panel {
  position: relative;
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Elegant Top Glow Accent on Hoverable Cards */
.card:hover, .price-card:hover, .reseller-card:hover {
  border-color: rgba(74, 163, 255, 0.38);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 1px rgba(74, 163, 255, 0.2) inset;
}

/* ── Howto / Get Key Section ── */
.howto {
  padding: 36px 40px;
  margin-bottom: 28px;
}

.howto h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.online-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  margin-left: 12px;
  vertical-align: middle;
}

.howto ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.howto li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.howto li span { font-size: 16px; flex: 0 0 auto; }

.howto li.premium-line a {
  color: var(--blue);
  font-weight: 700;
  transition: color 0.15s;
}

.howto li.premium-line a:hover { color: #fff; }

/* ── Script copy box ── */
.script-box {
  padding: 32px 36px;
  margin-bottom: 28px;
}

.script-box h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.script-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.script-frame {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-md);
  overflow: hidden;
}

.script-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--blue);
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow-x: auto;
}

.script-copy-btn {
  flex: 0 0 auto;
  min-height: 100%;
  padding: 0 24px;
  border: none;
  border-left: 1px solid var(--line-mid);
  background: rgba(74, 163, 255, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.script-copy-btn:hover {
  background: var(--blue);
  color: #fff;
}

/* ── Pricing wrap ── */
.pricing-wrap { padding: 0 0 80px; position: relative; z-index: 1; }

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

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 40px 32px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--line-mid);
}

.price-card:hover {
  transform: translateY(-5px);
}

/* Highlighted Plan: Permanent */
.price-card:nth-child(2) {
  background: linear-gradient(155deg, rgba(74, 163, 255, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(74, 163, 255, 0.42);
  box-shadow: var(--shadow), 0 0 40px rgba(74, 163, 255, 0.12);
}

.price-card:nth-child(2):hover {
  border-color: rgba(74, 163, 255, 0.65);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(74, 163, 255, 0.2);
}

.plan-header { margin-bottom: 6px; }

.plan-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.price {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text);
  margin: 20px 0 6px;
}

.price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan-meta {
  font-size: 12px;
  color: var(--subtle);
  font-weight: 600;
  margin-bottom: 24px;
}

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  margin-bottom: 28px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.features li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.buy-btn,
.price-btn {
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-md);
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(74, 163, 255, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}

.buy-btn:hover, .price-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(74, 163, 255, 0.45);
}

/* ── Cards grid (get-key options) ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--line-mid);
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  flex: 1;
}

/* ── Working indicators ── */
.working-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border-radius: var(--r-md);
  border: 1px solid rgba(52, 199, 89, 0.3);
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
}

.working-now-btn:hover {
  background: rgba(52, 199, 89, 0.18);
  border-color: rgba(52, 199, 89, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.25);
}

.working-now-btn .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.8);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

/* ── Video showcase ── */
.video-section { padding: 60px 0; position: relative; z-index: 1; }

.video-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.video-card { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-mid); }
.video-wrapper { aspect-ratio: 16/9; }
.video-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Loader screen ── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}

.loader-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.loader-gif {
  width: 70px; height: 70px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--line-mid);
}

.spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(74, 163, 255, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Executor page elements ── */
.platform {
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

.platform h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-mid);
  letter-spacing: 0.5px;
}

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

.card-link {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 8px;
}

.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 163, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 1px rgba(74, 163, 255, 0.15) inset;
}

.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
}

.badge.paid    { background: var(--green-soft); border: 1px solid rgba(52, 199, 89, 0.22); color: var(--green); }
.badge.free    { background: rgba(74, 163, 255, 0.08); border: 1px solid rgba(74, 163, 255, 0.2); color: var(--blue); }
.badge.offline { background: rgba(255, 69, 58, 0.08); border: 1px solid rgba(255, 69, 58, 0.2); color: var(--red); }
.badge.bad     { background: var(--amber-soft); border: 1px solid rgba(255, 159, 10, 0.22); color: var(--amber); }

.card-link h3 { font-size: 15px; font-weight: 800; color: var(--text); margin: 0; }
.card-link p { font-size: 12px; color: var(--muted); margin: 0; }

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: rgba(74, 163, 255, 0.06);
  border: 1px solid rgba(74, 163, 255, 0.2);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.trust-badge:hover {
  background: rgba(74, 163, 255, 0.12);
  border-color: rgba(74, 163, 255, 0.35);
}

.trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.8);
}

/* ── Resellers page country list ── */
.country-section { padding-bottom: 40px; position: relative; z-index: 1; }

.country-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-mid);
}

.country-header h2 {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 1px;
}

.count {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: rgba(74, 163, 255, 0.08);
  border: 1px solid rgba(74, 163, 255, 0.2);
  border-radius: var(--r-pill);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.reseller-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--line-mid);
}

.reseller-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reseller-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  width: fit-content;
  margin-top: auto;
}

.reseller-warning {
  padding: 18px 22px;
  margin-top: 20px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  background: var(--amber-soft) !important;
  border-color: rgba(255, 159, 10, 0.22) !important;
  position: relative;
  z-index: 1;
}

.flag-icon { width: 18px; height: auto; border-radius: 2px; }

/* ── Payment overlays ── */
.pay-overlay {
  position: fixed; inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pay-overlay.hidden { display: none; }

.pay-box {
  width: min(520px, 100%);
  max-height: min(85vh, 700px);
  overflow-y: auto;
  padding: 36px;
  background: rgba(8, 8, 12, 0.95);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.pay-box h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.pay-loading-text { color: var(--muted); font-size: 14px; font-weight: 600; }

.pay-methods.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.pay-methods button {
  min-height: 50px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-mid);
  background: var(--surface-mid);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pay-methods button:hover {
  background: rgba(74, 163, 255, 0.12);
  border-color: rgba(74, 163, 255, 0.35);
  transform: translateY(-1px);
}

.pay-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-mid);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.18s ease;
  font-family: inherit;
}

.pay-cancel:hover { color: var(--text); background: var(--surface-mid); }

/* QR zoom overlay */
.qr-zoom {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qr-zoom.hidden { display: none; }
.qr-zoom img { max-width: min(380px, 90vw); border-radius: var(--r-lg); border: 2px solid var(--line-strong); }

/* ── Footer ── */
footer, .site-footer {
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  background: rgba(2, 2, 4, 0.9);
  position: relative;
  z-index: 1;
}

/* ── Responsive Adaptations ── */
@media (max-width: 768px) {
  body::before, body::after {
    animation: none !important;
  }
  .purchase-hero, .reseller-header, .hero {
    padding-top: max(100px, calc(80px + var(--safe-top)));
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }
  .pricing { grid-template-columns: 1fr; }
  .return-home, .back-btn {
    top: max(14px, calc(8px + var(--safe-top)));
    left: max(14px, var(--safe-left));
  }
  .pay-methods.grid { grid-template-columns: 1fr; }
  .reseller-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

  .buy-btn, .price-btn, .script-copy-btn,
  .progress-btn, .working-now-btn { min-height: 52px; font-size: 14px; }
  .trust-badge { min-height: 40px; }
  .card-link { padding: 20px 16px; }
  .reseller-card { padding: 22px 20px; }
  .pay-overlay {
    padding: max(16px, var(--safe-top)) max(16px, var(--safe-right)) max(16px, var(--safe-bottom)) max(16px, var(--safe-left));
  }
  footer, .site-footer {
    padding-bottom: max(28px, var(--safe-bottom));
  }
}

@media (max-width: 480px) {
  .howto { padding: 24px 20px; }
  .script-box { padding: 24px 20px; }
  .price-card { padding: 30px 24px; }
  .script-frame { flex-direction: column; }
  .script-copy-btn { border-left: none; border-top: 1px solid var(--line-mid); min-height: 48px; }
  .video-grid { grid-template-columns: 1fr; }

  .purchase-hero h1, .reseller-header h1, .hero h1 {
    font-size: clamp(32px, 8vw, 48px) !important;
    letter-spacing: -1px;
  }
  .purchase-desc, .reseller-header p, .hero p { font-size: 14px !important; }
  .price { font-size: 38px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-link h3 { font-size: 14px; }
  .card-link p { font-size: 11px; }
  .country-header { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =============================================================
   THANHUB BLUE/BLACK REFRESH OVERRIDES
   Consistent mobile-first palette for static pages.
   ============================================================= */
:root {
  --bg: #020617;
  --bg-dark: #030712;
  --bg-gradient: radial-gradient(circle at 20% 0%, rgba(37,99,235,.20), transparent 34rem), linear-gradient(180deg, #020617 0%, #061026 48%, #020617 100%);
  --surface: rgba(15, 23, 42, 0.66);
  --surface-mid: rgba(30, 41, 59, 0.72);
  --surface-strong: rgba(51, 65, 85, 0.82);
  --line: rgba(147, 197, 253, 0.12);
  --line-mid: rgba(147, 197, 253, 0.22);
  --line-strong: rgba(191, 219, 254, 0.34);
  --text: #f8fbff;
  --muted: #9fb0c7;
  --subtle: #64748b;
  --blue: #38bdf8;
  --blue-dark: #2563eb;
  --blue-glow: rgba(56, 189, 248, 0.28);
  --violet: #60a5fa;
  --violet-glow: rgba(96, 165, 250, 0.18);
  --green: #22c55e;
  --amber: #93c5fd;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(2, 6, 23, 0.75);
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
}

body::after { animation: none; background: radial-gradient(circle, rgba(56,189,248,.16) 0%, transparent 64%); }
.return-home, .back-btn, .card, .plan-card, .script-box, .script-frame, .video-card, .reseller-card, .support-card, .howto, .faq-item, .policy-card {
  border-color: var(--line-mid) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(3, 7, 18, .9)) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 14px !important;
}
.purchase-hero h1, .reseller-header h1, .hero h1, .video-title, .howto h1, .script-box h2 {
  background: linear-gradient(135deg, #ffffff 18%, #93c5fd 55%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.working-now-btn, .btn-primary, .purchase-btn, .script-copy-btn {
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  border-color: rgba(147,197,253,.45) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(37,99,235,.28) !important;
  border-radius: 10px !important;
}
.card:hover, .plan-card:hover, .reseller-card:hover, .support-card:hover, .video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.42) !important;
}
input, textarea, select, .script-input {
  background: rgba(2, 6, 23, .72) !important;
  border-color: rgba(147,197,253,.22) !important;
  color: var(--text) !important;
}
@media (max-width: 720px) {
  .container, .reseller-page, main { width: min(100% - 22px, 1160px); }
  .purchase-hero, .reseller-header, .hero { padding-top: max(96px, calc(74px + var(--safe-top))); padding-bottom: 38px; }
  .card:hover, .plan-card:hover, .reseller-card:hover, .support-card:hover, .video-card:hover { transform: none; }
}

/* THANHUB 2026 SHARED PAGE SYSTEM */
:root {
  --bg: #020617;
  --bg-dark: #030712;
  --surface: rgba(7, 17, 38, .82);
  --surface-mid: rgba(15, 31, 62, .78);
  --surface-strong: rgba(24, 48, 91, .86);
  --line: rgba(125, 211, 252, .13);
  --line-mid: rgba(125, 211, 252, .22);
  --line-strong: rgba(186, 230, 253, .38);
  --text: #f8fbff;
  --muted: #9fb0c7;
  --subtle: #7183a0;
  --blue: #38bdf8;
  --blue-dark: #2563eb;
  --violet: #60a5fa;
  --green: #22c55e;
  --amber: #fbbf24;
  --shadow: 0 18px 44px rgba(0, 0, 0, .42);
  --shadow-lg: 0 32px 88px rgba(0, 0, 0, .68);
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
}
body { background-color: #020617; background-image: radial-gradient(circle at 12% -10%, rgba(37, 99, 235, .22), transparent 34rem), linear-gradient(180deg, #020617 0%, #06122a 52%, #020617 100%); }
body::before { opacity: .26; }
body::after { display: none; }
.container, .reseller-page, main { width: min(1180px, calc(100% - 36px)); }
.return-home, .back-btn { background: rgba(3, 12, 31, .88); border-color: var(--line-mid); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.return-home:hover, .back-btn:hover { background: #0b1d3d; border-color: rgba(56,189,248,.54); }
.purchase-hero, .reseller-header, .hero { padding-top: max(128px, calc(102px + var(--safe-top))); }
.purchase-hero h1, .reseller-header h1, .hero h1, .howto h1 { background: linear-gradient(135deg, #fff 12%, #bfdbfe 48%, #38bdf8 100%); -webkit-background-clip: text; background-clip: text; }
.howto, .card, .script-box, .price-card, .pay-box, .video-card, .reseller-card, .reseller-warning, .feature-card, .glass-panel { background: linear-gradient(145deg, rgba(8, 22, 48, .94), rgba(3, 9, 25, .96)); border-color: var(--line-mid); border-radius: 18px; box-shadow: var(--shadow); }
.card:hover, .price-card:hover, .reseller-card:hover { border-color: rgba(56,189,248,.48); box-shadow: 0 22px 52px rgba(0,0,0,.46), 0 0 0 1px rgba(56,189,248,.08) inset; }
.script-frame, .pay-methods button, .input-group, input, textarea, select { border-color: var(--line-mid); background: rgba(2, 8, 24, .82); }
.btn-primary, .buy-btn, .price-btn, .purchase-btn, .script-copy-btn, .working-now-btn { background: linear-gradient(135deg, #2563eb, #0ea5e9); border-color: rgba(125,211,252,.42); border-radius: 11px; box-shadow: 0 10px 26px rgba(37,99,235,.24); }
.btn-primary:hover, .buy-btn:hover, .price-btn:hover, .purchase-btn:hover, .script-copy-btn:hover, .working-now-btn:hover { background: linear-gradient(135deg, #1d4ed8, #0284c7); }
.footer { background: rgba(2, 6, 23, .72); border-top-color: var(--line); }
@media (max-width: 720px) {
  .container, .reseller-page, main { width: min(100% - 22px, 1180px); }
  .howto, .script-box, .card, .price-card, .pay-box, .reseller-card { border-radius: 15px; }
  .howto, .script-box, .pay-box { padding: 24px 18px; }
  .script-frame { display: grid; }
  .script-copy-btn { min-height: 44px; border-left: 0; border-top: 1px solid var(--line-mid); }
}