/*
Theme Name: TiviGuide
Theme URI: https://tiviguide.example
Author: TiviGuide
Author URI: https://tiviguide.example
Description: Premium IPTV marketing + blog theme. Dark UI with violet -> cyan gradients, Sora + Manrope typography. Ported from the TiviGuide React design. WooCommerce ready.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiviguide
Tags: dark, custom-colors, custom-menu, featured-images, blog, e-commerce, full-width-template
WC requires at least: 7.0
WC tested up to: 9.0
*/

/* ============================================================
   DESIGN TOKENS  (mirrors src/index.css)
   ============================================================ */
:root {
  --background: 240 30% 3%;        /* #06060B */
  --foreground: 240 20% 97%;       /* #F5F5FA */
  --card: 240 14% 7%;
  --card-foreground: 240 20% 97%;
  --primary: 258 90% 66%;          /* #8B5CF6 */
  --primary-foreground: 0 0% 100%;
  --muted: 240 8% 12%;
  --muted-foreground: 240 8% 64%;  /* #9B9BAA */
  --accent: 188 86% 53%;           /* #22D3EE */
  --border: 240 10% 14%;
  --ring: 258 90% 66%;
  --radius: 0.75rem;

  --gradient-primary: linear-gradient(135deg, #8B5CF6, #22D3EE);
  --gradient-hero: linear-gradient(180deg, #06060B, #0c0c14);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --bg: #06060B;
  --fg: #F5F5FA;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --muted-txt: #9B9BAA;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }

::selection { background: rgba(139, 92, 246, 0.35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a12; }
::-webkit-scrollbar-thumb { background: #26263a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #34344e; }

/* WP admin bar tweak so sticky nav sits below it */
body.admin-bar .tg-navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tg-navbar { top: 46px; } }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.tg-container { max-width: 1240px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.tg-relative { position: relative; z-index: 1; }

/* Ambient page glow (src/index.css .tg-ambient) */
.tg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 18% -5%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(800px 500px at 92% 8%, rgba(34, 211, 238, 0.12), transparent 60%);
}

/* ============================================================
   ANIMATIONS (ported from mockup)
   ============================================================ */
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
@keyframes pulseGlow { 0%,100% { opacity:.55;} 50% { opacity:1;} }
@keyframes hop { 0%,100%{transform:translateY(0);}15%{transform:translateY(-8px);}30%{transform:translateY(0);}45%{transform:translateY(-5px);}60%{transform:translateY(0);} }
@keyframes riseIn { from{opacity:0;transform:translateY(18px);} to{opacity:1;transform:translateY(0);} }
.tg-pulse-glow { animation: pulseGlow 2s infinite; }
.tg-hop { animation: hop 2.4s ease-in-out infinite; }

/* Floating Telegram chatbot button (TelegramChatFab.tsx) */
.tg-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0ea5e9; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: background .15s ease, transform .15s ease;
}
.tg-fab:hover { background: #0284c7; }
.tg-fab:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.tg-fab svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .tg-fab.tg-hop { animation: none; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.tg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; cursor: pointer;
  border-radius: 13px; border: none; text-align: center; transition: transform .12s ease, box-shadow .15s ease;
}
.tg-btn:hover { transform: translateY(-1px); }
.tg-btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #22D3EE);
  color: #fff; font-size: 16.5px; padding: 16px 32px;
  box-shadow: 0 14px 40px rgba(139,92,246,.45);
}
.tg-btn-ghost {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #F5F5FA; font-size: 16.5px; padding: 16px 30px; backdrop-filter: blur(8px);
}
.tg-btn-white {
  background: #fff; color: #0a0a12; font-weight: 800; font-size: 17px;
  padding: 17px 38px; border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.4);
}
.tg-btn-sm { font-size: 14px; padding: 9px 18px; border-radius: 10px; }

/* ============================================================
   SHARED SECTION ATOMS
   ============================================================ */
.tg-eyebrow { font-size: 13px; letter-spacing: .18em; color: #22D3EE; font-weight: 700; margin-bottom: 12px; }
.tg-h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.8vw, 46px); letter-spacing: -.02em;
}
.tg-section { padding-top: 60px; padding-bottom: 30px; }
.tg-text-center { text-align: center; }
.tg-gradient-text {
  background: linear-gradient(100deg, #A78BFA, #22D3EE);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tg-card {
  padding: 24px 22px; border-radius: 18px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

/* ============================================================
   NAVBAR  (Navbar.tsx)
   ============================================================ */
.tg-navbar {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px); background: rgba(8,8,14,.72);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tg-navbar-inner {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; padding: 14px 22px;
}
.tg-brand { display: flex; align-items: center; gap: 11px; }
.tg-logo {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg,#8B5CF6,#22D3EE);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(139,92,246,.45);
}
.tg-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.tg-brand-sub { font-size: 9.5px; letter-spacing: .22em; color: #7B7B8E; font-weight: 600; margin-top: 3px; }
.tg-nav-links { display: flex; align-items: center; gap: 6px; }
.tg-nav-links a {
  color: #C7C7D6; font-weight: 600; font-size: 14.5px; padding: 8px 13px;
  border-radius: 9px; transition: background .15s, color .15s;
}
.tg-nav-links a:hover { background: rgba(255,255,255,.05); color: #fff; }
.tg-nav-cta { display: flex; align-items: center; gap: 10px; }
.tg-nav-login {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #F5F5FA; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px;
}
.tg-burger {
  display: none; background: none; border: none; color: #C7C7D6;
  padding: 8px; cursor: pointer; border-radius: 9px;
}
/* Mobile drawer */
.tg-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 80;
}
.tg-mobile-menu.open { display: block; }
.tg-mobile-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.tg-mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
  background: #0a0a12; border-left: 1px solid rgba(255,255,255,.08); padding: 24px;
  overflow-y: auto;
}
.tg-mobile-panel nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.tg-mobile-panel nav a { padding: 12px; border-radius: 9px; font-weight: 600; color: #C7C7D6; }
.tg-mobile-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: #9B9BAA; font-size: 26px; cursor: pointer; }

@media (max-width: 1023px) {
  .tg-nav-links, .tg-nav-cta { display: none; }
  .tg-burger { display: inline-flex; }
}

/* ============================================================
   HERO  (Hero.tsx)
   ============================================================ */
.tg-hero { position: relative; overflow: hidden; }
.tg-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.tg-hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(6,6,11,.55) 0%,rgba(6,6,11,.82) 55%,#06060B 100%);
}
.tg-hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 96px 22px 88px; text-align: center; }
.tg-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  font-size: 13px; font-weight: 600; color: #CFCFE0; margin-bottom: 26px; backdrop-filter: blur(8px);
}
.tg-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 10px #34D399; }
.tg-hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px,6.4vw,82px);
  line-height: 1.02; letter-spacing: -.03em; max-width: 980px; margin: 0 auto 22px;
}
.tg-hero-sub { font-size: clamp(16px,2vw,21px); color: #B6B6C6; max-width: 680px; margin: 0 auto 38px; line-height: 1.55; }
.tg-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 20px; }
.tg-hero-fineprint { font-size: 13.5px; color: #86869A; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.tg-grid { display: grid; gap: 16px; }
.tg-trust { padding: 40px 22px 8px; }
.tg-trust-grid { grid-template-columns: repeat(2, 1fr); }
.tg-stat-value { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.tg-stat-label { font-size: 13.5px; color: #9B9BAA; font-weight: 600; margin-top: 4px; }

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.tg-steps { grid-template-columns: 1fr; }
.tg-step { padding: 32px 28px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.tg-step-n {
  font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1;
  background: linear-gradient(135deg,#8B5CF6,#22D3EE); -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: .85;
}
.tg-step h3 { font-weight: 700; font-size: 20px; margin: 16px 0 9px; }
.tg-step p { font-size: 15px; color: #9B9BAA; line-height: 1.6; }

/* ============================================================
   CONTENT SHOWCASE
   ============================================================ */
.tg-showcase-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.tg-showcase-head p { font-size: 15px; color: #9B9BAA; max-width: 360px; }
.tg-showcase-grid { grid-template-columns: 1fr; }
.tg-show {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); min-height: 200px;
}
.tg-show-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tg-show-veil { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 30%,rgba(6,6,11,.92)); }
.tg-show-body { position: relative; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.tg-show-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #22D3EE; }
.tg-show-body h3 { font-weight: 700; font-size: 23px; margin-top: 6px; }
.tg-show-body p { font-size: 13.5px; color: #B6B6C6; margin-top: 4px; }
.tg-chip-grid { grid-template-columns: repeat(2, 1fr); margin-top: 18px; gap: 14px; }
.tg-chip-card { padding: 20px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.tg-chip-card .t { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.tg-chip-card .s { font-size: 13px; color: #9B9BAA; margin-top: 3px; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.tg-features-grid { grid-template-columns: 1fr; }
.tg-feature { padding: 28px 24px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color .15s, box-shadow .15s; }
.tg-feature:hover { border-color: rgba(139,92,246,.5); box-shadow: var(--shadow-glow); }
.tg-feature h3 { font-weight: 700; font-size: 18px; margin-bottom: 7px; }
.tg-feature p { font-size: 14px; color: #9B9BAA; line-height: 1.6; }
.tg-ficon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.tg-ficon.violet { background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.3); }
.tg-ficon.cyan { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); }

/* ============================================================
   DEVICES
   ============================================================ */
.tg-devices {
  padding: 40px; border-radius: 24px; text-align: center;
  background: linear-gradient(135deg,rgba(139,92,246,.1),rgba(34,211,238,.06));
  border: 1px solid rgba(255,255,255,.08);
}
.tg-devices h3 { font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.tg-devices > p { font-size: 14.5px; color: #9B9BAA; margin-bottom: 26px; }
.tg-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tg-pill {
  padding: 9px 17px; border-radius: 999px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); font-size: 13.5px; font-weight: 600; color: #D6D6E2;
}

/* ============================================================
   PRICING  (PricingTable.tsx -> static, WooCommerce-linked)
   ============================================================ */
.tg-pricing { padding-top: 70px; padding-bottom: 30px; scroll-margin-top: 80px; }
.tg-pricing-sub { font-size: 16px; color: #9B9BAA; margin: 12px auto 0; max-width: 580px; }
.tg-pricing-sub b { color: #22D3EE; font-weight: 700; }
.tg-tiers { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1080px; margin: 36px auto 0; }
.tg-tier { padding: 30px 26px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; }
.tg-tier-label { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.tg-tier-price { font-family: var(--font-display); font-weight: 800; font-size: 42px; margin: 10px 0 2px; }
.tg-tier-per { font-size: 13px; color: #9B9BAA; margin-bottom: 18px; }
.tg-tier-note { font-size: 12.5px; font-weight: 600; margin-top: 14px; }
.tg-tier .tg-tier-btn {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #F5F5FA; font-weight: 700; font-size: 14px; padding: 11px; border-radius: 11px; cursor: pointer;
}
.tg-tier.best {
  position: relative;
  background: linear-gradient(160deg,rgba(139,92,246,.18),rgba(34,211,238,.08));
  border: 1.5px solid rgba(139,92,246,.5); box-shadow: 0 20px 50px rgba(139,92,246,.2);
}
.tg-tier.best .tg-tier-btn { background: linear-gradient(135deg,#8B5CF6,#22D3EE); border: none; color: #fff; }
.tg-best-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; background: linear-gradient(135deg,#8B5CF6,#22D3EE);
  font-size: 11px; font-weight: 800; letter-spacing: .05em; white-space: nowrap;
}
.tg-pricing-foot { text-align: center; font-size: 13.5px; color: #7B7B8E; margin-top: 22px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tg-testi-grid { grid-template-columns: 1fr; }
.tg-testi { padding: 28px 26px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.tg-stars { color: #FBBF24; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.tg-testi p { font-size: 15px; color: #D6D6E2; line-height: 1.65; margin-bottom: 18px; }
.tg-testi-who { display: flex; align-items: center; gap: 11px; }
.tg-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; background: linear-gradient(135deg,#8B5CF6,#22D3EE); }
.tg-testi-name { font-size: 14px; font-weight: 700; }
.tg-testi-meta { font-size: 12.5px; color: #7B7B8E; }

/* ============================================================
   FAQ
   ============================================================ */
.tg-faq-wrap { max-width: 820px; margin: 0 auto; }
.tg-faqs { display: flex; flex-direction: column; gap: 12px; }
.tg-faq-item { border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.tg-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; color: #E8E8F0;
}
.tg-faq-q .sign { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #22D3EE; flex-shrink: 0; }
.tg-faq-a { padding: 0 24px 22px; font-size: 14.5px; color: #9B9BAA; line-height: 1.7; display: none; }
.tg-faq-item.open .tg-faq-a { display: block; }
.tg-faq-item.open .tg-faq-q { color: #fff; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.tg-final {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255,255,255,.1);
  padding: 64px 40px; text-align: center;
  background: linear-gradient(135deg,rgba(139,92,246,.2),rgba(34,211,238,.12));
}
.tg-final-glow { position: absolute; inset: 0; background: radial-gradient(500px 300px at 50% 0%,rgba(139,92,246,.25),transparent); }
.tg-final h2 { position: relative; font-weight: 800; font-size: clamp(30px,4.4vw,52px); letter-spacing: -.025em; margin-bottom: 16px; }
.tg-final p { position: relative; font-size: 18px; color: #C7C7D6; max-width: 520px; margin: 0 auto 30px; }

/* ============================================================
   FOOTER  (Footer.tsx)
   ============================================================ */
.tg-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.07); background: rgba(8,8,14,.6); margin-top: 60px; }
.tg-footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 56px 22px 32px; }
.tg-footer-about p { font-size: 14px; color: #9B9BAA; line-height: 1.6; max-width: 300px; margin-top: 4px; }
.tg-footer-tg {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 15px; border-radius: 10px;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); color: #22D3EE; font-size: 13.5px; font-weight: 700;
}
.tg-footer-col h4 { font-size: 13px; letter-spacing: .12em; color: #7B7B8E; font-weight: 700; margin-bottom: 16px; }
.tg-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tg-footer-col a { color: #B6B6C6; font-size: 14px; font-weight: 500; }
.tg-footer-col a:hover { color: #fff; }
.tg-footer-disclaimer { border-top: 1px solid rgba(255,255,255,.06); }
.tg-footer-disclaimer p { font-size: 12.5px; color: #7B7B8E; line-height: 1.6; max-width: 760px; padding: 16px 22px 12px; margin: 0 auto; max-width: 1240px; }
.tg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); max-width: 1240px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px;
}
.tg-footer-bottom span, .tg-footer-bottom a { font-size: 13px; color: #7B7B8E; }
.tg-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tg-footer-bottom a:hover { color: #C7C7D6; }

/* ============================================================
   BLOG  (Blog list + Article)
   ============================================================ */
.tg-page-head { padding: 60px 22px 20px; text-align: center; }
.tg-page-head h1 { font-weight: 800; font-size: clamp(34px,5vw,56px); letter-spacing: -.02em; }
.tg-page-head p { color: #9B9BAA; font-size: 17px; margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }
.tg-page-head .tg-legal-updated { font-size: 14px; color: #75758A; margin-top: 18px; }
.tg-prose .tg-legal-disclaimer { margin: 0 0 30px; }

.tg-post-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; }
.tg-post-card {
  border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); transition: border-color .15s, transform .15s; display: flex; flex-direction: column;
}
.tg-post-card:hover { border-color: rgba(139,92,246,.5); transform: translateY(-3px); }
.tg-post-thumb { aspect-ratio: 16/9; background: #0c0c14; background-size: cover; background-position: center; }
.tg-post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tg-post-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #22D3EE; text-transform: uppercase; }
.tg-post-card h2 { font-weight: 700; font-size: 20px; line-height: 1.3; margin: 10px 0; }
.tg-post-excerpt { font-size: 14.5px; color: #9B9BAA; line-height: 1.6; flex: 1; }
.tg-post-meta { font-size: 12.5px; color: #7B7B8E; margin-top: 16px; }

/* Article hero */
.tg-article-head { max-width: 820px; margin: 0 auto; padding: 56px 22px 0; text-align: center; }
.tg-article-head .cat { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: #22D3EE; text-transform: uppercase; }
.tg-article-head h1 { font-weight: 800; font-size: clamp(30px,4.4vw,50px); letter-spacing: -.025em; line-height: 1.1; margin: 14px 0 18px; }
.tg-article-meta { font-size: 13.5px; color: #7B7B8E; }
.tg-article-cover { max-width: 980px; margin: 32px auto 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.tg-article-cover img { width: 100%; }
.tg-article-body { padding: 40px 22px 20px; }

/* Prose (src/index.css .tg-prose) */
.tg-prose { max-width: 760px; margin: 0 auto; }
.tg-prose > p { font-size: 17px; line-height: 1.8; color: #C4C4D2; margin: 0 0 22px; }
.tg-prose h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px,3.4vw,36px); color: #F5F5FA; margin: 0 0 20px; letter-spacing: -.02em; }
.tg-prose h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px,3vw,30px); letter-spacing: -.02em; color: #F5F5FA; margin: 46px 0 16px; }
.tg-prose h2:first-child { margin-top: 0; }
.tg-prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #F0F0F8; margin: 32px 0 12px; }
.tg-prose ul, .tg-prose ol { margin: 0 0 22px; padding-left: 6px; list-style: none; }
.tg-prose li { font-size: 17px; line-height: 1.75; color: #C4C4D2; margin-bottom: 11px; padding-left: 26px; position: relative; }
.tg-prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg,#8B5CF6,#22D3EE); }
.tg-prose ol { counter-reset: tg-ol; }
.tg-prose ol > li { counter-increment: tg-ol; }
.tg-prose strong { color: #F5F5FA; font-weight: 700; }
.tg-prose em { color: #D6D6E2; }
.tg-prose a { color: #22D3EE; border-bottom: 1px solid rgba(34,211,238,.4); }
.tg-prose blockquote { margin: 30px 0; padding: 20px 26px; border-left: 3px solid #8B5CF6; background: rgba(139,92,246,.08); border-radius: 0 14px 14px 0; font-size: 19px; line-height: 1.6; color: #E6E6F0; font-style: italic; }
.tg-prose blockquote p { margin: 0; }
.tg-prose img { max-width: 100%; border-radius: 16px; margin: 24px 0; }
.tg-prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.tg-prose th, .tg-prose td { border: 1px solid rgba(255,255,255,.1); padding: 10px 14px; text-align: left; color: #C4C4D2; }
.tg-prose th { color: #F5F5FA; background: rgba(255,255,255,.03); font-weight: 700; }
.tg-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; color: #22D3EE; background: rgba(34,211,238,.08); padding: 2px 6px; border-radius: 6px; }
.tg-prose pre { background: #0c0c14; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 18px; overflow-x: auto; margin: 0 0 22px; }
.tg-prose pre code { background: none; color: #D6D6E2; padding: 0; }

/* Pagination */
.tg-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 20px 0 50px; }
.tg-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 9px 15px; border-radius: 10px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); color: #C7C7D6; font-weight: 600; font-size: 14px; line-height: 1;
  transition: color .15s, border-color .15s, background .15s;
}
.tg-pagination .page-numbers.current { background: linear-gradient(135deg,#8B5CF6,#22D3EE); color: #fff; border-color: transparent; }
.tg-pagination a.page-numbers:hover { color: #fff; border-color: rgba(139,92,246,.5); background: rgba(255,255,255,.06); }
.tg-pagination .page-numbers.dots { background: none; border: none; min-width: 0; padding: 9px 4px; color: #7B7B8E; }

/* Generic page (page.php / 404 / single page content) */
.tg-page-content { max-width: 820px; margin: 0 auto; padding: 30px 22px 20px; }

/* Search form */
.tg-search { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }
.tg-search input[type="search"] {
  flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px; padding: 12px 16px; color: #F5F5FA; font-family: var(--font-body); font-size: 14.5px;
}
.tg-search input[type="search"]::placeholder { color: #7B7B8E; }

/* ============================================================
   WooCommerce styling
   ============================================================ */
/* IMPORTANT: never put width/padding on `.woocommerce` or `.woocommerce-page`
   bare — they are <body> classes on shop/product pages, so doing so shrinks the
   navbar and adds a top gap. The width container is the template wrapper instead. */
.tg-wc { padding-top: 40px; padding-bottom: 60px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 18px !important; transition: border-color .15s;
}
.woocommerce ul.products li.product:hover { border-color: rgba(139,92,246,.5); }
.woocommerce ul.products li.product img { border-radius: 12px; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #22D3EE !important; font-family: var(--font-display); font-weight: 800; }
.woocommerce span.onsale { background: linear-gradient(135deg,#8B5CF6,#22D3EE); color: #fff; }
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: linear-gradient(135deg,#8B5CF6,#22D3EE) !important; color: #fff !important;
  border-radius: 11px !important; font-family: var(--font-body); font-weight: 700;
  padding: 11px 20px !important; border: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { filter: brightness(1.05); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
  background: rgba(255,255,255,.04); border-top-color: #22D3EE; color: #D6D6E2;
}
.woocommerce table.shop_table { border-radius: 14px; border-color: rgba(255,255,255,.1); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: rgba(255,255,255,.08); color: #C7C7D6; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce .select2-container--default .select2-selection--single {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; color: #F5F5FA; padding: 10px 12px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.woocommerce .star-rating span { color: #FBBF24; }
.woocommerce-breadcrumb { color: #7B7B8E; }
.woocommerce-breadcrumb a { color: #22D3EE; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .tg-features-grid, .tg-testi-grid, .tg-tiers, .tg-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .tg-trust-grid { grid-template-columns: repeat(4, 1fr); }
  .tg-steps { grid-template-columns: repeat(3, 1fr); }
  .tg-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .tg-chip-grid { grid-template-columns: repeat(4, 1fr); }
  .tg-testi-grid { grid-template-columns: repeat(3, 1fr); }
  .tg-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .tg-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tg-features-grid, .tg-tiers { grid-template-columns: repeat(4, 1fr); }
  .tg-post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   NAVBAR CART
   ============================================================ */
.tg-nav-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; color: #C7C7D6;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: color .15s, border-color .15s;
}
.tg-nav-cart:hover { color: #fff; border-color: rgba(139,92,246,.4); }
.tg-nav-cart .tg-cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 11px; font-weight: 800; line-height: 1; color: #fff;
  background: linear-gradient(135deg,#8B5CF6,#22D3EE); border-radius: 999px;
}
.tg-mobile-secondary {
  margin-top: 8px; padding: 12px 14px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 14.5px;
  color: #F5F5FA; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}

/* ============================================================
   WOOCOMMERCE — MY ACCOUNT (dashboard / orders / details)
   ============================================================ */
/* Account page title (endpoint title) */
.woocommerce-account .entry-title,
.woocommerce-account h1.entry-title { text-align: center; font-weight: 800; font-size: clamp(34px,5vw,52px); letter-spacing: -.02em; margin-bottom: 30px; }

/* Two-column flex layout (markup guaranteed by woocommerce/myaccount/my-account.php) */
.tg-account { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.tg-account .woocommerce-MyAccount-navigation { flex: 0 0 260px; max-width: 260px; width: 260px; margin: 0; float: none; }
.tg-account .woocommerce-MyAccount-content { flex: 1 1 0%; min-width: 0; width: auto; float: none; margin: 0; }
@media (max-width: 880px) {
  .tg-account .woocommerce-MyAccount-navigation { flex-basis: 100%; max-width: 100%; width: 100%; }
}

/* Sidebar nav */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.woocommerce-MyAccount-navigation ul li { margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation ul li::before { content: none; }
.woocommerce-MyAccount-navigation ul li a {
  display: block; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: #C7C7D6;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: all .15s;
}
.woocommerce-MyAccount-navigation ul li a:hover { color: #fff; border-color: rgba(139,92,246,.45); }
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: linear-gradient(135deg,#8B5CF6,#22D3EE); color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px rgba(139,92,246,.3);
}

/* Content card */
.woocommerce-MyAccount-content {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 28px 30px;
}
.woocommerce-MyAccount-content p,
.woocommerce-MyAccount-content li,
.woocommerce-MyAccount-content td { color: #C7C7D6; }
.woocommerce-MyAccount-content a:not(.button) { color: #22D3EE; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { color: #F5F5FA; }
.woocommerce-MyAccount-content mark { background: rgba(34,211,238,.15); color: #22D3EE; border-radius: 4px; padding: 0 4px; }
/* Orders / tables don't collapse */
.woocommerce-MyAccount-content table.shop_table { width: 100%; display: table; }
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   HELP CENTER (page-help.php) — tabbed
   ============================================================ */
.tg-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 5px; margin: 0 auto 32px; max-width: 720px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.tg-tab-btn {
  flex: 1 1 auto; min-width: 100px; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 14px;
  padding: 11px 16px; border-radius: 10px; background: transparent; color: #9B9BAA; transition: all .15s;
}
.tg-tab-btn:hover { color: #fff; }
.tg-tab-btn.active { background: linear-gradient(135deg,#8B5CF6,#22D3EE); color: #fff; }
.tg-tab-panel { display: none; }
.tg-tab-panel.active { display: block; animation: riseIn .3s ease both; }
.tg-help-card { padding: 28px 26px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); margin-bottom: 22px; }
.tg-help-card > .head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.tg-help-card .head svg { flex-shrink: 0; }
.tg-help-card h3 { font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.tg-help-card .head p { color: #9B9BAA; font-size: 14.5px; }
.tg-help-block { padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); margin-bottom: 14px; }
.tg-help-block h4 { font-family: var(--font-body); font-weight: 700; font-size: 15.5px; margin-bottom: 8px; color: #F0F0F8; }
.tg-help-block ul { margin: 0; padding-left: 20px; }
.tg-help-block li { font-size: 14px; color: #9B9BAA; line-height: 1.7; margin-bottom: 4px; }
.tg-help-block a { color: #22D3EE; }
.tg-help-block strong { color: #F5F5FA; }
.tg-help-block code { font-family: ui-monospace, monospace; font-size: .9em; color: #22D3EE; background: rgba(34,211,238,.08); padding: 2px 6px; border-radius: 6px; }
.tg-help-note { padding: 14px 18px; border-radius: 12px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.28); font-size: 14px; color: #D6D6E2; }
.tg-help-note a { color: #22D3EE; }
.tg-help-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .tg-help-grid { grid-template-columns: repeat(2, 1fr); } }
.tg-tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #D6D6E2; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.tg-step-num { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg,#8B5CF6,#22D3EE); }
.tg-help-step { display: flex; align-items: flex-start; gap: 12px; }
.tg-help-step h4 { margin-bottom: 2px; }

/* ============================================================
   TABLE OF CONTENTS  (auto-injected on single post + product)
   Matches .tg-prose / .tg-card tokens: glass card, Sora title,
   violet -> cyan accents, cyan active state.
   ============================================================ */
/* Offset anchor jumps so headings clear the sticky navbar. */
.tg-prose h2[id], .tg-prose h3[id],
.woocommerce-Tabs-panel--description h2[id],
.woocommerce-Tabs-panel--description h3[id] { scroll-margin-top: 96px; }
body.admin-bar .tg-prose h2[id], body.admin-bar .tg-prose h3[id],
body.admin-bar .woocommerce-Tabs-panel--description h2[id],
body.admin-bar .woocommerce-Tabs-panel--description h3[id] { scroll-margin-top: 128px; }

/* NB: the post TOC lives inside .tg-prose, so every inner rule is prefixed with
   .tg-toc to out-rank .tg-prose li/ol/a styles (no double bullets / underlines). */
.tg-toc {
  margin: 0 0 34px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.tg-toc .tg-toc-head {
  list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none;
  display: flex; align-items: center; gap: 11px; padding: 16px 20px;
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #F0F0F8;
}
.tg-toc .tg-toc-head::-webkit-details-marker { display: none; }   /* Chrome/Safari */
.tg-toc .tg-toc-head::marker { content: ""; }                     /* Firefox */
.tg-toc .tg-toc-ic { color: #22D3EE; flex-shrink: 0; }
.tg-toc .tg-toc-title { flex: 1; }
.tg-toc .tg-toc-chev {
  width: 9px; height: 9px; flex-shrink: 0;
  border-right: 2px solid #9B9BAA; border-bottom: 2px solid #9B9BAA;
  transform: rotate(-45deg); transition: transform .2s ease, border-color .15s ease;
}
.tg-toc[open] .tg-toc-chev { transform: rotate(45deg); }
.tg-toc .tg-toc-head:hover .tg-toc-chev { border-color: #22D3EE; }

.tg-toc .tg-toc-nav { padding: 2px 20px 16px; }
.tg-toc .tg-toc-list { list-style: none; margin: 0; padding: 0; }
.tg-toc .tg-toc-item { margin: 0; padding: 0; }
.tg-toc .tg-toc-item::before { content: none; }   /* cancel inherited .tg-prose li bullet */
.tg-toc .tg-toc-item a {
  position: relative; display: block; padding: 7px 0 7px 24px;
  font-family: var(--font-body, 'Manrope', system-ui, sans-serif);
  font-size: 15px; font-weight: 600; line-height: 1.45;
  color: #B6B6C6; border: 0; transition: color .15s ease;
}
.tg-toc .tg-toc-item a::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg,#8B5CF6,#22D3EE);
  opacity: .5; transition: opacity .15s ease, transform .15s ease;
}
.tg-toc .tg-toc-item a:hover { color: #fff; }
.tg-toc .tg-toc-item a:hover::before { opacity: 1; }
.tg-toc .tg-toc-sub a { padding-left: 42px; font-size: 14px; font-weight: 500; color: #9B9BAA; }
.tg-toc .tg-toc-sub a::before { left: 22px; width: 5px; height: 5px; border-radius: 50%; }

/* Active section (set by assets/js/toc.js) */
.tg-toc .tg-toc-item a.is-active { color: #22D3EE; }
.tg-toc .tg-toc-item a.is-active::before { opacity: 1; transform: scale(1.18); }

@media (prefers-reduced-motion: reduce) {
  .tg-toc .tg-toc-chev, .tg-toc .tg-toc-item a, .tg-toc .tg-toc-item a::before { transition: none; }
}

/* ============================================================
   FORM SELECTS / DROPDOWNS
   Style native <select> elements (shop "sort by", comment forms,
   any post-content dropdown) so they match the dark glass UI
   instead of the raw browser control.
   ============================================================ */
.woocommerce .woocommerce-ordering select,
.woocommerce select.orderby,
.tg-wc select,
.tg-prose select,
.tg-comment-form select,
select.tg-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: rgba(255,255,255,.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239B9BAA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 11px;
  color: #F5F5FA; font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  padding: 11px 40px 11px 16px; line-height: 1.2; cursor: pointer;
  transition: border-color .15s ease;
}
.woocommerce .woocommerce-ordering select:hover,
.tg-wc select:hover { border-color: rgba(255,255,255,.22); }
.woocommerce .woocommerce-ordering select:focus,
.tg-wc select:focus,
.tg-prose select:focus,
select.tg-select:focus { outline: none; border-color: rgba(139,92,246,.6); }
/* The native option list (where the browser lets us colour it). */
.woocommerce .woocommerce-ordering select option,
.tg-wc select option,
.tg-prose select option,
select.tg-select option { background: #0c0c14; color: #F5F5FA; }

/* ============================================================
   WOOCOMMERCE — SHOP TOOLBAR (result count + ordering)
   ============================================================ */
.woocommerce .woocommerce-result-count {
  color: #9B9BAA; font-size: 14px; margin: 0 0 22px; line-height: 42px;
}
.woocommerce .woocommerce-ordering { margin: 0 0 22px; }

/* ============================================================
   WOOCOMMERCE — SHOP / ARCHIVE PAGINATION
   (the "1 2 3 → Next" pager on shop pages — separate markup from
   the blog pager, so it needs its own rules.)
   ============================================================ */
.woocommerce nav.woocommerce-pagination { text-align: center; margin: 10px 0 50px; }
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
  border: none !important; margin: 0; padding: 0; overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px; margin: 0;
  border-radius: 10px; background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #C7C7D6 !important; font-weight: 600; font-size: 14px; line-height: 1;
  transition: color .15s, border-color .15s, background .15s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
  color: #fff !important; border-color: rgba(139,92,246,.5) !important; background: rgba(255,255,255,.06) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: linear-gradient(135deg,#8B5CF6,#22D3EE) !important;
  color: #fff !important; border-color: transparent !important;
}

/* Quantity stepper polish (cart / single product) */
.woocommerce .quantity input.qty {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; color: #F5F5FA; padding: 10px 8px; font-family: var(--font-body); font-weight: 600;
}

/* ============================================================
   COMMENTS  ("Leave a reply")
   ============================================================ */
.tg-comments { max-width: 760px; margin: 56px auto 0; }
.tg-comments-title {
  font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em;
  margin-bottom: 26px; color: #F5F5FA;
}
.tg-comment-list { list-style: none; margin: 0 0 36px; padding: 0; }
.tg-comment-list ol.children { list-style: none; margin: 18px 0 0; padding: 0 0 0 28px; }
.tg-comment-list li.comment { margin: 0 0 18px; }
.tg-comment-list .comment-body {
  position: relative; padding: 22px 24px; border-radius: 18px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.tg-comment-list .comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tg-comment-list .comment-author { display: flex; align-items: center; gap: 12px; }
.tg-comment-list .comment-author .avatar {
  width: 44px; height: 44px; border-radius: 50%; margin: 0; border: 1px solid rgba(255,255,255,.1);
}
.tg-comment-list .comment-author .fn { font-style: normal; font-weight: 700; font-size: 15px; color: #F0F0F8; }
.tg-comment-list .comment-author .says { display: none; }
.tg-comment-list .comment-metadata { font-size: 12.5px; color: #7B7B8E; }
.tg-comment-list .comment-metadata a { color: #7B7B8E; }
.tg-comment-list .comment-content { font-size: 15px; line-height: 1.7; color: #C4C4D2; }
.tg-comment-list .comment-content p { margin: 0 0 12px; }
.tg-comment-list .comment-content p:last-child { margin-bottom: 0; }
.tg-comment-list .reply { margin-top: 12px; }
.tg-comment-list .comment-reply-link {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: #22D3EE;
  padding: 6px 13px; border-radius: 9px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22);
  transition: background .15s, border-color .15s;
}
.tg-comment-list .comment-reply-link:hover { background: rgba(34,211,238,.16); border-color: rgba(34,211,238,.4); }
.tg-comment-list .bypostauthor > .comment-body { border-color: rgba(139,92,246,.4); }
.tg-comments-closed { font-size: 14px; color: #7B7B8E; text-align: center; padding: 12px 0; }

/* Comment form */
.comment-respond, #respond {
  margin-top: 8px; padding: 28px 28px 30px; border-radius: 20px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.comment-reply-title {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  margin: 0 0 6px; color: #F5F5FA;
}
.comment-reply-title small { font-weight: 600; font-size: 14px; }
.comment-reply-title small a { color: #22D3EE; }
.comment-respond .comment-notes,
.comment-respond .logged-in-as { font-size: 13.5px; color: #9B9BAA; margin: 0 0 20px; }
.comment-respond .logged-in-as a,
.comment-respond .comment-notes a { color: #22D3EE; }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form-author, .comment-form-email, .comment-form-url { margin: 0; }
.comment-form label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #C7C7D6; margin-bottom: 7px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px; padding: 12px 14px; color: #F5F5FA;
  font-family: var(--font-body); font-size: 14.5px; transition: border-color .15s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus { outline: none; border-color: rgba(139,92,246,.6); }
.comment-form input::placeholder, .comment-form textarea::placeholder { color: #7B7B8E; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; color: #9B9BAA; }
.comment-form-cookies-consent input { margin-top: 3px; accent-color: #8B5CF6; }
.comment-form .form-submit { margin: 0; }
.comment-form .form-submit input[type="submit"] { cursor: pointer; }

@media (min-width: 600px) {
  .comment-form-author, .comment-form-email, .comment-form-url { display: inline-block; }
}

/* ============================================================
   MOBILE REFINEMENTS
   Small-screen polish layered on top of the mobile-first rules
   above. The base layout already collapses grids to one column
   and swaps the navbar for a burger; these queries dial back the
   oversized desktop padding / type and stop the inline-flex CTAs
   from overflowing their padded panels on narrow phones.
   Placed last so they win over every earlier component rule.
   ============================================================ */

/* --- Tablets & large phones --- */
@media (max-width: 768px) {
  .tg-container { padding-left: 18px; padding-right: 18px; }
  .tg-section { padding-top: 46px; padding-bottom: 22px; }

  /* Hero: the 96px top / 82px min headline are desktop-scale. */
  .tg-hero-inner { padding: 66px 20px 58px; }
  .tg-hero-actions { gap: 12px; }

  /* Large padded panels shrink so content isn't squeezed. */
  .tg-devices { padding: 34px 24px; }
  .tg-final { padding: 50px 26px; border-radius: 22px; }
  .tg-final p { font-size: 16.5px; }

  /* Showcase / blog headers: heading + side link stack cleanly. */
  .tg-showcase-head { gap: 14px; margin-bottom: 26px; }
  .tg-showcase-head p { max-width: none; }

  /* Footer: match the tighter container gutters. */
  .tg-footer-grid { padding: 44px 18px 28px; gap: 28px; }
}

/* --- Phones --- */
@media (max-width: 480px) {
  .tg-container { padding-left: 16px; padding-right: 16px; }
  .tg-section { padding-top: 40px; padding-bottom: 18px; }

  /* Hero */
  .tg-hero-inner { padding: 52px 16px 48px; }
  .tg-hero h1 { font-size: clamp(31px, 8.6vw, 42px); line-height: 1.08; }
  .tg-hero-sub { font-size: 16px; margin-bottom: 30px; }
  .tg-badge { margin-bottom: 20px; }

  /* Full-width, comfortably tappable CTAs — inline-flex buttons with
     30-38px side padding overflow the padded cards otherwise. */
  .tg-hero-actions { flex-direction: column; align-items: stretch; }
  .tg-hero-actions .tg-btn { width: 100%; }
  .tg-btn-primary, .tg-btn-ghost { font-size: 16px; padding: 15px 22px; }
  .tg-btn-white { width: 100%; font-size: 16px; padding: 16px 22px; }

  /* Section headings scale down a touch. */
  .tg-h2 { font-size: clamp(26px, 7.4vw, 34px); }

  /* Trust stats stay 2-up but the number shrinks so it never clips. */
  .tg-stat-value { font-size: 29px; }
  .tg-card { padding: 20px 18px; }

  /* Card inner padding trimmed across the marketing sections. */
  .tg-step { padding: 26px 22px; }
  .tg-feature { padding: 24px 20px; }
  .tg-tier { padding: 26px 22px; }
  .tg-chip-grid { gap: 10px; }
  .tg-chip-card { padding: 16px; }

  /* Devices + final CTA breathing room on tiny screens. */
  .tg-devices { padding: 28px 18px; }
  .tg-devices h3 { font-size: 20px; }
  .tg-final { padding: 40px 20px; }
  .tg-final p { font-size: 16px; }

  /* Blog / article reading width + type. */
  .tg-page-head { padding: 46px 16px 16px; }
  .tg-article-head { padding: 44px 16px 0; }
  .tg-article-body { padding: 32px 16px 18px; }
  .tg-prose > p, .tg-prose li { font-size: 16px; }
  .tg-prose blockquote { font-size: 17px; padding: 16px 20px; }
  .tg-page-content { padding: 24px 16px 18px; }

  /* FAQ + accordions */
  .tg-faq-q { padding: 16px 18px; font-size: 15px; gap: 12px; }
  .tg-faq-a { padding: 0 18px 18px; }

  /* Comments / forms */
  .tg-comments { margin-top: 40px; }
  .comment-respond, #respond { padding: 22px 20px 24px; }

  /* WooCommerce account + shop wrappers */
  .tg-wc { padding-top: 28px; padding-bottom: 44px; }
  .woocommerce-MyAccount-content { padding: 22px 20px; }
  .tg-account { gap: 20px; }
}

/* ============================================================
   WOOCOMMERCE — RESPONSIVE PRODUCT GRIDS
   Product loops render with a fixed `columns` value from the
   shortcode / shop setting (Woo lays them out with floated %
   widths). Override to a fluid CSS grid inside our themed
   wrappers so shop, related-products and the homepage strips
   reflow 4 -> 3 -> 2 -> 1 as the viewport narrows.
   ============================================================ */
.tg-wc ul.products,
.tg-home-products ul.products,
.tg-pricing ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0 0 22px;
}
.tg-wc ul.products::before,
.tg-wc ul.products::after,
.tg-home-products ul.products::before,
.tg-home-products ul.products::after,
.tg-pricing ul.products::before,
.tg-pricing ul.products::after { content: none; display: none; }  /* kill Woo clearfix pseudo-cols */
.tg-wc ul.products li.product,
.tg-home-products ul.products li.product,
.tg-pricing ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; clear: none !important;
}
@media (min-width: 768px) {
  .tg-wc ul.products,
  .tg-home-products ul.products,
  .tg-pricing ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .tg-wc ul.products,
  .tg-home-products ul.products,
  .tg-pricing ul.products { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 400px) {
  .tg-wc ul.products,
  .tg-home-products ul.products,
  .tg-pricing ul.products { grid-template-columns: 1fr; }
}
