/* ==========================================================================
   VPNGOLD — custom landing design system (vg.css)
   Loaded after the base PaperMod stylesheet; overrides the landing look.
   Dark, premium, gold-accented. Self-contained, scoped under .vg.
   ========================================================================== */

:root {
  --vg-bg:        #0b0b0e;
  --vg-bg-2:      #111116;
  --vg-surface:   #16161c;
  --vg-surface-2: #1d1d25;
  --vg-border:    #2a2a33;
  --vg-border-2:  #3a3a46;
  --vg-text:      #ededf2;
  --vg-muted:     #a0a0ad;
  --vg-faint:     #6f6f7c;

  --vg-gold:      #e7c252;
  --vg-gold-2:    #d4af37;
  --vg-gold-deep: #b8860b;
  --vg-gold-grad: linear-gradient(135deg, #f6dd87 0%, #e7c252 45%, #c89b2a 100%);

  --vg-radius:    16px;
  --vg-radius-sm: 10px;
  --vg-maxw:      1120px;
  --vg-gap:       clamp(16px, 3vw, 28px);
  --vg-shadow:    0 18px 50px rgba(0, 0, 0, .45);
}

/* ---- base reset for the landing -------------------------------------- */
/* Force a single dark palette regardless of the legacy .dark toggle, so every
   page (and the Digiseller widget, which reads these base vars) stays
   identical. The theme toggle is hidden — VPNGOLD is a dark-only brand. */
body.vg-page,
body.vg-page.dark,
body.vg-page:not(.dark) {
  background: var(--vg-bg);
  color: var(--vg-text);
  font-family: "Nunito Sans", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  --theme: rgb(29, 29, 29);
  --entry: rgb(46, 46, 46);
  --primary: rgb(220, 220, 220);
  --secondary: rgb(155, 155, 155);
  --tertiary: #d4af37;
  --content: rgb(220, 220, 220);
  --code-block-bg: rgb(46, 46, 46);
  --code-bg: rgb(60, 60, 60);
  --code-bg2: rgb(50, 50, 50);
  --border: rgb(80, 80, 80);
}
/* dark-only brand: hide the theme switch everywhere */
.vg-page #theme-toggle { display: none !important; }

.vg-page .main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.vg { color: var(--vg-text); }
.vg *,
.vg *::before,
.vg *::after { box-sizing: border-box; }

.vg-wrap {
  width: 100%;
  max-width: var(--vg-maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.vg section { position: relative; }
.vg h1, .vg h2, .vg h3 { line-height: 1.15; letter-spacing: -.01em; }

/* gold text accent */
.vg-gold {
  background: var(--vg-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Header
   ========================================================================== */
.vg-page .header { border: 0; }
.vg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 14, .72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--vg-border);
}
.vg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.vg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .02em;
  color: var(--vg-text);
}
.vg-brand .vg-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--vg-gold-grad);
  box-shadow: 0 0 14px rgba(231, 194, 82, .6);
}
.vg-nav-right { display: flex; align-items: center; gap: 14px; }
.vg-lang {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--vg-muted); font-weight: 700; font-size: .9rem;
}
.vg-lang a { color: var(--vg-muted); }
.vg-lang a.is-active, .vg-lang a:hover { color: var(--vg-gold); }
#theme-toggle { color: var(--vg-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.vg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.vg-btn-primary {
  background: var(--vg-gold-grad);
  color: #1a1407 !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, .28);
}
.vg-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.vg-btn-ghost {
  background: rgba(255, 255, 255, .03);
  color: var(--vg-text) !important;
  border-color: var(--vg-border-2);
}
.vg-btn-ghost:hover { border-color: var(--vg-gold); color: var(--vg-gold) !important; }
.vg-btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.vg-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
/* top glow is provided globally by body.vg-page::before so it is identical on every page */
.vg-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin-inline: auto; }
.vg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--vg-border-2); background: rgba(255, 255, 255, .03);
  color: var(--vg-muted); font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 22px;
}
.vg-eyebrow .vg-dot { width: 8px; height: 8px; }
.vg-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 900; margin: 0 0 18px;
}
.vg-hero .vg-sub {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--vg-muted); max-width: 640px; margin: 0 auto 30px; line-height: 1.6;
}
.vg-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.vg-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin-top: 30px; color: var(--vg-muted); font-size: .92rem; font-weight: 600;
}
.vg-trust span { display: inline-flex; align-items: center; gap: 7px; }
.vg-trust b { color: var(--vg-text); }

/* secondary inline nav links under hero */
.vg-hero-links {
  display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px; font-size: .9rem;
}
.vg-hero-links a { color: var(--vg-faint); font-weight: 600; }
.vg-hero-links a:hover { color: var(--vg-gold); }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.vg-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--vg-gap);
  margin-top: 8px;
}
.vg-stat {
  text-align: center; padding: 22px 14px;
  background: var(--vg-surface); border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
}
.vg-stat .vg-num { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; }
.vg-stat .vg-lbl { color: var(--vg-muted); font-size: .85rem; margin-top: 4px; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.vg-sec { padding: clamp(48px, 8vw, 88px) 0; }
.vg-sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 5vw, 48px); }
.vg-sec-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin: 0 0 12px; }
.vg-sec-head p { color: var(--vg-muted); font-size: 1.05rem; margin: 0; line-height: 1.6; }
.vg-kicker {
  display: inline-block; color: var(--vg-gold); font-weight: 800;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}

/* ==========================================================================
   Feature cards
   ========================================================================== */
.vg-grid { display: grid; gap: var(--vg-gap); }
.vg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.vg-grid-2 { grid-template-columns: repeat(2, 1fr); }

.vg-card {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  padding: 28px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.vg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 194, 82, .45);
  box-shadow: var(--vg-shadow);
}
.vg-card h3 { font-size: 1.18rem; font-weight: 800; margin: 0 0 8px; }
.vg-card p { color: var(--vg-muted); margin: 0; line-height: 1.55; font-size: .98rem; }
.vg-ic {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
  background: rgba(231, 194, 82, .10);
  border: 1px solid rgba(231, 194, 82, .22);
}

/* trust / config two-up with bullet lists */
.vg-list { list-style: none; margin: 14px 0 0; padding: 0; }
.vg-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--vg-muted); line-height: 1.5;
}
.vg-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--vg-gold-grad); box-shadow: 0 0 8px rgba(231, 194, 82, .5);
}

/* ==========================================================================
   Location & device chips
   ========================================================================== */
.vg-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vg-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--vg-surface); border: 1px solid var(--vg-border);
  color: var(--vg-text); font-weight: 600; font-size: .92rem;
}
.vg-chip:hover { border-color: rgba(231, 194, 82, .4); }
.vg-flag {
  width: 1.35em; height: auto; flex-shrink: 0; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

/* ==========================================================================
   How it works (numbered steps)
   ========================================================================== */
.vg-steps { counter-reset: step; }
.vg-step { position: relative; }
.vg-step .vg-step-n {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #1a1407;
  background: var(--vg-gold-grad); margin-bottom: 14px;
}

/* ==========================================================================
   Pricing / bonus
   ========================================================================== */
.vg-price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--vg-gap); align-items: stretch; }
.vg-price-card {
  background: linear-gradient(160deg, var(--vg-surface-2), var(--vg-surface));
  border: 1px solid var(--vg-border-2);
  border-radius: var(--vg-radius); padding: 32px;
  display: flex; flex-direction: column;
}
.vg-price-from { color: var(--vg-muted); font-weight: 700; font-size: .9rem; }
.vg-price-val { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 900; margin: 4px 0 2px; }
.vg-price-val small { font-size: 1.1rem; color: var(--vg-muted); font-weight: 700; }
.vg-price-note { color: var(--vg-muted); margin: 10px 0 22px; line-height: 1.55; }
.vg-price-card .vg-btn { align-self: flex-start; margin-top: auto; }
/* bonus card (2nd): center its content so it doesn't float at the top */
.vg-price-wrap > .vg-price-card:last-child { justify-content: center; }
.vg-price-card .vg-price-from { margin-bottom: 6px; }

.vg-bonus-table, .vg-bonus-table thead, .vg-bonus-table tbody { display: block; width: 100%; }
.vg-bonus-table tr {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--vg-border); padding: 14px 2px;
}
.vg-bonus-table tr:last-child { border-bottom: 0; }
.vg-bonus-table th, .vg-bonus-table td { padding: 0; }
.vg-bonus-table th { color: var(--vg-muted); font-weight: 700; font-size: .85rem; }
.vg-bonus-table td { font-weight: 700; }
.vg-bonus-table td.bonus, .vg-bonus-table th:last-child { color: var(--vg-gold); text-align: right; white-space: nowrap; }
.vg-bonus-table thead th { color: var(--vg-muted); }

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.vg-cta-band {
  text-align: center; border-radius: var(--vg-radius);
  padding: clamp(40px, 7vw, 72px) 24px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(231, 194, 82, .16), transparent 70%),
    var(--vg-surface);
  border: 1px solid var(--vg-border-2);
}
.vg-cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin: 0 0 12px; }
.vg-cta-band p { color: var(--vg-muted); margin: 0 auto 26px; max-width: 520px; }

/* ==========================================================================
   Footer tweak
   ========================================================================== */
.vg-page .footer { color: var(--vg-faint); border-top: 1px solid var(--vg-border); margin-top: 0; }
.vg-page .footer a { color: var(--vg-muted); border-bottom-color: var(--vg-border-2); }

/* ==========================================================================
   Legacy PaperMod header restyle (inner pages keep their original markup)
   ========================================================================== */
.vg-page .header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 14, .72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--vg-border);
}
.vg-page .nav {
  max-width: var(--vg-maxw); margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  height: 64px; display: flex; align-items: center; line-height: normal;
}
.vg-page .nav .logo {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin: 0; flex-wrap: nowrap;
}
.vg-page .nav .logo > a:first-of-type {
  font-size: 1.25rem; font-weight: 900; color: var(--vg-text); letter-spacing: .02em;
  display: inline-flex; align-items: center;
}
.vg-page .nav .logo > a:first-of-type::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: var(--vg-gold-grad); box-shadow: 0 0 12px rgba(231, 194, 82, .6);
  margin-right: 9px;
}
.vg-page .logo-switches { display: flex; align-items: center; gap: 14px; margin: 0; }
.vg-page #theme-toggle { color: var(--vg-muted); margin: 0; }
.vg-page .lang-switch { display: flex; align-items: center; gap: 8px; margin: 0; }
.vg-page .lang-switch li { list-style: none; color: var(--vg-faint); }
.vg-page .lang-switch a { color: var(--vg-muted); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.vg-page .lang-switch a:hover { color: var(--vg-gold); }
.vg-page #menu { display: none; }
/* breadcrumb back-link on content pages */
.vg-page .breadcrumbs { margin-bottom: 14px; }
.vg-page .breadcrumbs a { color: var(--vg-gold); font-weight: 700; }

/* ==========================================================================
   Consistent top gold glow on every page (matches the homepage hero)
   ========================================================================== */
body.vg-page::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 360px;
  background: radial-gradient(70% 100% at 50% 0, rgba(231, 194, 82, .12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   Install guide / prose accordions — dark-gold instead of PaperMod gray
   ========================================================================== */
.vg-page details {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-sm);
  margin: 10px 0;
}
.vg-page details:hover { border-color: rgba(231, 194, 82, .35); }
.vg-page details details { background: var(--vg-surface-2); }
.vg-page summary { color: var(--vg-text); }
.vg-page summary::marker { color: var(--vg-gold); }
.vg-page .post-content blockquote {
  border-inline-start: 3px solid var(--vg-gold-2);
  background: var(--vg-surface-2);
  border-radius: 0 var(--vg-radius-sm) var(--vg-radius-sm) 0;
}
.vg-page .post-content code {
  background: var(--vg-surface-2);
  color: var(--vg-gold);
  border-radius: 5px;
  padding: 2px 6px;
}
.vg-page .post-content img:not(.vg-flag) { border-radius: var(--vg-radius-sm); border: 1px solid var(--vg-border); }

/* ==========================================================================
   Inner pages (buy / install-guide / about / reviews)
   Restyle the existing PaperMod article wrappers to match the vg system.
   ========================================================================== */
.vg-page .post-single,
.vg-page .post-content { max-width: 760px; margin-inline: auto; }
.vg-page .main > .post-single { padding: clamp(40px, 7vw, 72px) clamp(18px, 4vw, 40px); }
.vg-page .post-header { text-align: center; }
.vg-page .post-title:empty { display: none; }

/* Payment card (wraps the Digiseller widget) */
.vg-page .payment-card {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--vg-shadow);
  text-align: center;
  margin-top: 8px;
}
.vg-page .payment-card > h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; margin: 0 0 10px;
}
.vg-page .payment-card > .subtitle {
  color: var(--vg-muted); margin: 0 auto 26px; max-width: 460px; line-height: 1.55;
}

/* "Important info" note */
.vg-page .instruction-alert {
  background: var(--vg-surface-2);
  border: 1px solid var(--vg-border);
  border-left: 4px solid var(--vg-gold-2);
  border-radius: 0 var(--vg-radius-sm) var(--vg-radius-sm) 0;
  padding: 18px 22px;
  text-align: left;
  color: var(--vg-muted);
  line-height: 1.6;
  font-size: .95rem;
}
.vg-page .instruction-alert strong { color: var(--vg-text); }
.vg-page .instruction-alert ul { margin: 10px 0 18px; }
.vg-page .telegram-link { color: var(--vg-gold); font-weight: 700; }

/* generic prose pages (install-guide / about / reviews) */
.vg-page .post-content h1,
.vg-page .post-content h2,
.vg-page .post-content h3 { color: var(--vg-text); }
.vg-page .post-content a { color: var(--vg-gold); }
.vg-page .post-content p,
.vg-page .post-content li { color: var(--vg-muted); line-height: 1.65; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .vg-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .vg-stats { grid-template-columns: repeat(2, 1fr); }
  .vg-price-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vg-grid-3, .vg-grid-2 { grid-template-columns: 1fr; }
  .vg-btn { width: 100%; }
  .vg-cta { flex-direction: column; }
  /* keep the header on one tidy line */
  .vg-nav { height: 58px; gap: 10px; }
  .vg-brand { font-size: 1.05rem; white-space: nowrap; flex-shrink: 0; }
  .vg-nav-right { gap: 10px; flex-shrink: 0; }
  .vg-lang { white-space: nowrap; gap: 6px; }
  .vg-header .vg-wrap { padding-inline: 16px; }
  .vg-btn-sm { width: auto; padding: 9px 14px; }
}
