/*
Theme Name: IPTV Smarters Pro بالعربي
Theme URI: https://example.com/iptv-smarters-pro-ar
Author: IPTV Store
Author URI: https://example.com
Description: ثيم متجر اشتراك IPTV Smarters Pro — تصميم عربي احترافي RTL، بطاقات زجاجية، نظام طلب واتساب مباشر، بدون WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iptv-smarters-pro-ar
Tags: rtl-language, arabic, iptv, smarters-pro, dark, responsive, glassmorphism
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS — Deep Navy × Electric Violet
═══════════════════════════════════════════════ */
:root {
  --bg:       #05040f;
  --bg2:      #080616;
  --bg3:      #100d24;
  --surface:  rgba(255,255,255,0.042);
  --border:   rgba(255,255,255,0.09);
  --border2:  rgba(130,90,255,0.30);

  --v:        #7c3aff;
  --v2:       #9b6dff;
  --v3:       #b89aff;
  --ice:      #d8c8ff;
  --v-glow:   rgba(124,58,255,0.40);
  --v-dim:    rgba(124,58,255,0.13);

  --cyan:     #00d4ff;

  --wa:       #25d366;
  --wa-h:     #1ebe5d;
  --wa-glow:  rgba(37,211,102,0.42);

  --dl:       #ff6b2b;
  --dl-h:     #e85a1a;
  --dl-glow:  rgba(255,107,43,0.40);

  --text:     #f2eeff;
  --text2:    #c8b8f0;
  --text3:    #8870b8;
  --text4:    #5a4880;

  --r:    12px;
  --r-sm:  8px;
  --r-lg: 20px;
  --r-xl: 28px;

  --font: 'Cairo', sans-serif;
  --font-en: 'Exo 2', sans-serif;
}

/* ═══════════════════════════════════════════════
   RESET & RTL BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
  direction: rtl;
}

a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }

/* ═══════════════════════════════════════════════
   AMBIENT BACKGROUND
═══════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 20% 0%,   rgba(124,58,255,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 100%, rgba(124,58,255,.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 55%,  rgba(0,212,255,.06)  0%, transparent 60%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(130,90,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,90,255,.032) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.tv-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════
   STICKY HEADER
═══════════════════════════════════════════════ */
#tv-header {
  position: sticky; top: 0; z-index: 1000;
  padding: 14px 0;
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
#tv-header.scrolled {
  background: rgba(5,4,15,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,.5);
}
.tv-header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.tv-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font);
  font-size: clamp(16px,3.5vw,22px); font-weight: 900;
  color: #fff; text-decoration: none; flex-shrink: 0;
  direction: rtl;
}
.tv-logo-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--v) 0%, #4a1fa0 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 24px var(--v-glow);
}
.tv-logo-icon svg { width: 20px; height: 20px; }
.tv-logo span { color: var(--v3); }

.tv-nav { display: flex; align-items: center; gap: 24px; }
.tv-nav a { font-size: .88rem; font-weight: 600; color: var(--text3); transition: color .2s; }
.tv-nav a:hover { color: var(--ice); }

/* Hamburger */
.tv-ham {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; background: none; border: none;
}
.tv-ham span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.tv-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tv-ham.open span:nth-child(2) { opacity: 0; }
.tv-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#tv-mobile-nav {
  display: none; flex-direction: column;
  padding: .5rem 20px 1.5rem;
  background: rgba(5,4,15,.97);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  direction: rtl;
}
#tv-mobile-nav.open { display: flex; }
#tv-mobile-nav a {
  padding: .85rem 0;
  color: var(--text3); font-size: .95rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
#tv-mobile-nav a:last-child { border-bottom: none; }
#tv-mobile-nav a:hover { color: var(--ice); }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn-sub {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--v) 0%, var(--v2) 100%);
  color: #fff; font-family: var(--font); font-weight: 800;
  font-size: .92rem; padding: 11px 22px; border-radius: 9999px;
  box-shadow: 0 4px 20px var(--v-glow);
  transition: all .2s; border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-sub::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16) 0%, transparent 55%);
  pointer-events: none;
}
.btn-sub:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--v-glow); color: #fff; }
.btn-sub.full { width: 100%; justify-content: center; }

.btn-dl {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--dl) 0%, var(--dl-h) 100%);
  color: #fff; font-family: var(--font); font-weight: 800;
  font-size: .92rem; padding: 11px 22px; border-radius: 9999px;
  box-shadow: 0 4px 20px var(--dl-glow);
  transition: all .2s; position: relative; overflow: hidden;
}
.btn-dl::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
  pointer-events: none;
}
.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--dl-glow); color: #fff; }
.btn-dl.full { width: 100%; justify-content: center; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: .92rem;
  padding: 11px 22px; border-radius: 9999px; border: none;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .15s;
  position: relative; overflow: hidden;
}
.btn-wa::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
  pointer-events: none;
}
.btn-wa:hover { background: var(--wa-h); box-shadow: 0 0 28px var(--wa-glow), 0 6px 20px rgba(0,0,0,.4); transform: translateY(-2px); color: #fff; }
.btn-wa svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-wa.full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ice);
  font-family: var(--font); font-weight: 600; font-size: .92rem;
  padding: 10px 20px; border-radius: 9999px;
  border: 1px solid var(--border2);
  transition: all .2s; backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--v2); color: #fff; background: var(--v-dim); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#tv-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 64px;
  position: relative; overflow: hidden;
}
.tv-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.tv-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(124,58,255,.26) 0%, transparent 70%);
  top: -100px; left: -80px;
  animation: tvOrb 10s ease-in-out infinite;
}
.tv-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,212,255,.10) 0%, transparent 70%);
  bottom: -40px; right: -60px;
  animation: tvOrb 12s ease-in-out infinite reverse;
}
@keyframes tvOrb { 0%,100%{transform:translate(0,0);}50%{transform:translate(28px,-28px);} }

.tv-hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px; align-items: center; width: 100%;
}

.tv-live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(124,58,255,.13); border: 1px solid rgba(124,58,255,.32);
  color: var(--v3); font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 9999px; margin-bottom: 22px;
}
.tv-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--v2);
  animation: tvDot 2s ease-in-out infinite;
}
@keyframes tvDot { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.5;transform:scale(.8);} }

.tv-hero-h1 {
  font-family: var(--font);
  font-size: clamp(26px,5vw,50px); font-weight: 900; line-height: 1.25;
  color: #fff; margin-bottom: 18px; direction: rtl;
}
.tv-hero-h1 .accent {
  background: linear-gradient(135deg, var(--v3) 0%, #fff 45%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tv-hero-sub { font-size: clamp(14px,2vw,17px); color: var(--text2); line-height: 1.85; margin-bottom: 34px; max-width: 520px; direction: rtl; }
.tv-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; direction: rtl; }

.tv-stats-bar { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.07); direction: rtl; }
.tv-stat-n { font-family: var(--font-en); font-size: clamp(24px,4vw,34px); font-weight: 900; color: #fff; line-height: 1; }
.tv-stat-n span { color: var(--v2); }
.tv-stat-l { font-size: 12px; color: var(--text4); margin-top: 3px; }

/* Hero app card */
.tv-hero-card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 32px 28px; text-align: center; position: relative; overflow: hidden;
}
.tv-hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}
.tv-app-icon-big {
  width: 88px; height: 88px;
  background: linear-gradient(145deg, var(--v) 0%, #3a108a 100%);
  border-radius: 22px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 18px 50px rgba(124,58,255,.55),
              inset 0 1px 0 rgba(255,255,255,.18);
}
.tv-app-icon-big svg { width: 50px; height: 50px; }
.tv-hero-app-name { font-family: var(--font-en); font-size: clamp(20px,3vw,28px); font-weight: 900; color: #fff; margin-bottom: 4px; }
.tv-hero-app-name span { color: var(--v3); }
.tv-hero-app-tag { font-size: 13px; color: var(--text3); margin-bottom: 18px; direction: rtl; }
.tv-hero-rating { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--text3); margin-bottom: 20px; }
.tv-stars { color: #f0b429; font-size: 14px; letter-spacing: 1px; }
.tv-hero-mini-feats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; text-align: right; }
.tv-mini-feat {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-sm); font-size: 13px; color: var(--text2);
}
.tv-mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v2); flex-shrink: 0; box-shadow: 0 0 8px var(--v); }

/* ═══════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════ */
.tv-section { padding: 72px 0; position: relative; z-index: 1; }
.tv-section + .tv-section { border-top: 1px solid rgba(255,255,255,.05); }
.tv-sec-head { text-align: center; margin-bottom: 52px; }
.tv-label {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--v2); background: var(--v-dim); border: 1px solid var(--border2);
  padding: 4px 14px; border-radius: 9999px; margin-bottom: 14px;
}
.tv-sec-title { font-family: var(--font); font-size: clamp(22px,4vw,38px); font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 12px; direction: rtl; }
.tv-sec-sub { font-size: 15px; color: var(--text3); max-width: 520px; margin: 0 auto; line-height: 1.85; direction: rtl; }

.glass {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════ */
.tv-feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tv-feat-card { padding: 26px 20px; transition: transform .25s, border-color .25s, box-shadow .25s; direction: rtl; text-align: right; }
.tv-feat-card:hover { transform: translateY(-5px); border-color: rgba(130,90,255,.40); box-shadow: 0 20px 56px rgba(0,0,0,.45); }
.tv-feat-icon { width: 52px; height: 52px; background: var(--v-dim); border: 1px solid var(--border2); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.tv-feat-icon svg { width: 24px; height: 24px; stroke: var(--v3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv-feat-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.tv-feat-desc  { font-size: 13px; color: var(--text3); line-height: 1.8; }

/* ═══════════════════════════════════════════════
   SETUP STEPS
═══════════════════════════════════════════════ */
.tv-setup-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tv-step { padding: 28px 22px; text-align: center; transition: transform .25s, border-color .25s; }
.tv-step:hover { transform: translateY(-4px); border-color: rgba(130,90,255,.38); }
.tv-step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--v) 0%, var(--v2) 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 18px; font-weight: 900; color: #fff;
  margin: 0 auto 16px; box-shadow: 0 4px 18px var(--v-glow);
}
.tv-step-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.tv-step-desc  { font-size: 13px; color: var(--text3); line-height: 1.8; direction: rtl; }

/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.tv-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.tv-plan { padding: 34px 26px; display: flex; flex-direction: column; gap: 20px; position: relative; transition: transform .3s, box-shadow .3s, border-color .3s; direction: rtl; text-align: right; }
.tv-plan:hover { transform: translateY(-6px); border-color: rgba(130,90,255,.44); box-shadow: 0 28px 72px rgba(0,0,0,.5), 0 0 48px rgba(124,58,255,.10); }
.tv-plan.popular {
  background: linear-gradient(155deg, rgba(124,58,255,.18) 0%, rgba(255,255,255,.055) 50%, rgba(124,58,255,.10) 100%);
  border-color: rgba(130,90,255,.5); transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(130,90,255,.34), 0 28px 72px rgba(0,0,0,.5), 0 0 72px rgba(124,58,255,.18);
}
.tv-plan.popular:hover { transform: scale(1.04) translateY(-6px); }
.tv-plan.popular::after {
  content: ''; position: absolute; top: 0; right: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(270deg, transparent, rgba(255,255,255,.04), transparent);
  animation: tvShine 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes tvShine { 0%{right:-100%} 55%{right:150%} 100%{right:150%} }

.tv-pop-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--v), var(--v2));
  color: #fff; font-size: 11px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 9999px;
  box-shadow: 0 4px 16px var(--v-glow); white-space: nowrap;
}
.tv-plan-name { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--v3); margin-bottom: 8px; }
.tv-plan.popular .tv-plan-name { color: var(--ice); }
.tv-price-row { display: flex; align-items: baseline; gap: 4px; line-height: 1; direction: ltr; justify-content: flex-end; }
.tv-price-cur { font-size: 18px; color: var(--text3); margin-top: 4px; }
.tv-price-val { font-family: var(--font-en); font-size: clamp(38px,5vw,54px); font-weight: 900; color: #fff; }
.tv-price-per { font-size: 13px; color: var(--text4); align-self: flex-end; padding-bottom: 3px; }
.tv-price-note { font-size: 12px; color: var(--text4); margin-top: 4px; }
.tv-save-badge { display: inline-block; background: rgba(124,58,255,.17); border: 1px solid rgba(130,90,255,.3); color: var(--v3); font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 6px; margin-top: 6px; }
.tv-plan-feats { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.tv-plan-feats li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text2); }
.tv-chk { width: 18px; height: 18px; flex-shrink: 0; background: rgba(124,58,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tv-chk svg { width: 10px; height: 10px; stroke: var(--v2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; font-size: 12px; color: var(--text4); direction: rtl; }

/* ═══════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════ */
.tv-cta-band {
  padding: 56px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(124,58,255,.18) 0%, rgba(255,255,255,.04) 50%, rgba(124,58,255,.10) 100%);
  border: 1px solid rgba(130,90,255,.3); border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.tv-cta-band::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 380px; height: 280px;
  background: radial-gradient(ellipse, rgba(124,58,255,.25) 0%, transparent 70%);
  pointer-events: none;
}
.tv-cta-band h2 { font-family: var(--font); font-size: clamp(22px,4vw,36px); font-weight: 900; color: #fff; margin: 14px 0 10px; line-height: 1.3; position: relative; z-index: 1; direction: rtl; }
.tv-cta-band p { font-size: 15px; color: var(--text3); max-width: 440px; margin: 0 auto 28px; line-height: 1.85; position: relative; z-index: 1; direction: rtl; }
.tv-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════ */
.tv-faq-wrap { max-width: 740px; margin: 0 auto; }
.tv-faq-list { display: flex; flex-direction: column; gap: 10px; }
.tv-faq-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.tv-faq-item.open { border-color: rgba(130,90,255,.3); }
.tv-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 20px; text-align: right;
  font-family: var(--font); font-size: 14px; font-weight: 800;
  color: var(--text); background: none; border: none; cursor: pointer;
  transition: color .2s; direction: rtl;
}
.tv-faq-q:hover { color: var(--ice); }
.tv-faq-arrow { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--v2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.tv-faq-item.open .tv-faq-arrow { transform: rotate(180deg); }
.tv-faq-a { display: none; padding: 14px 20px 16px; font-size: 14px; color: var(--text3); line-height: 1.9; border-top: 1px solid rgba(255,255,255,.06); direction: rtl; text-align: right; }
.tv-faq-item.open .tv-faq-a { display: block; }
.tv-faq-cta { text-align: center; margin-top: 32px; }
.tv-faq-cta p { font-size: 13px; color: var(--text4); margin-bottom: 14px; direction: rtl; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#tv-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 52px 0 24px; position: relative; z-index: 1; }
.tv-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.06); direction: rtl; }
.tv-footer-brand p { font-size: 14px; color: var(--text4); line-height: 1.85; margin-top: 14px; max-width: 280px; }
.tv-footer-col-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.tv-footer-links { display: flex; flex-direction: column; gap: 10px; }
.tv-footer-links a { font-size: 14px; color: var(--text4); transition: color .2s; }
.tv-footer-links a:hover { color: var(--ice); }
.tv-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 12px; color: var(--text4); direction: rtl; }

/* ═══════════════════════════════════════════════
   FLOATING WHATSAPP
═══════════════════════════════════════════════ */
#tv-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  width: 58px; height: 58px; background: var(--wa); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px var(--wa-glow), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s; text-decoration: none;
  animation: tvWaPulse 3s ease-in-out infinite;
}
#tv-float:hover { transform: scale(1.12); box-shadow: 0 8px 40px var(--wa-glow); animation-play-state: paused; }
#tv-float svg { width: 30px; height: 30px; }
#tv-float::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(37,211,102,.4); animation: tvWaRing 3s ease-in-out infinite; }
@keyframes tvWaPulse { 0%,100%{transform:scale(1);}50%{transform:scale(1.06);} }
@keyframes tvWaRing  { 0%{transform:scale(1);opacity:.6;} 70%{transform:scale(1.35);opacity:0;} 100%{transform:scale(1.35);opacity:0;} }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px);}to{opacity:1;transform:translateY(0);} }
.fade-up { animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
.d1{animation-delay:.08s} .d2{animation-delay:.18s}
.d3{animation-delay:.28s} .d4{animation-delay:.42s}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--v); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width:1024px) {
  .tv-feat-grid    { grid-template-columns: repeat(2,1fr); }
  .tv-setup-grid   { grid-template-columns: repeat(2,1fr); }
  .tv-pricing-grid { grid-template-columns: repeat(2,1fr); }
  .tv-plan.popular { transform: none; }
  .tv-plan.popular:hover { transform: translateY(-6px); }
  .tv-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width:860px) {
  .tv-hero-inner   { grid-template-columns: 1fr; }
  .tv-hero-card    { max-width: 380px; margin: 0 auto; }
  .tv-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .tv-nav          { display: none; }
  .tv-ham          { display: flex; }
  .tv-header-inner .btn-sub { display: none; }
  .tv-section      { padding: 52px 0; }
  .tv-cta-band     { padding: 40px 24px; }
}
@media (max-width:640px) {
  .tv-feat-grid    { grid-template-columns: 1fr; }
  .tv-setup-grid   { grid-template-columns: 1fr; }
  .tv-footer-inner { grid-template-columns: 1fr; }
  .tv-hero-ctas    { flex-direction: column; }
  .tv-hero-ctas .btn-sub, .tv-hero-ctas .btn-dl, .tv-hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .tv-cta-btns     { flex-direction: column; align-items: center; }
  .tv-cta-btns > * { width: 100%; justify-content: center; }
  .tv-stats-bar    { gap: 18px; }
  #tv-hero         { padding: 80px 0 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   BLOG / ARCHIVE — archive.php
═══════════════════════════════════════════════════════════════ */

/* Archive Hero */
.tv-archive-hero {
  padding: 80px 0 52px;
  position: relative; z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.tv-archive-hero-inner { text-align: center; }
.tv-archive-title {
  font-family: var(--font);
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 900; color: #fff;
  line-height: 1.25; margin: 14px 0 10px;
  direction: rtl;
}
.tv-archive-sub {
  font-size: 15px; color: var(--text3);
  max-width: 500px; margin: 0 auto;
  line-height: 1.85; direction: rtl;
}

/* Blog Grid */
.tv-archive-main { padding-top: 56px; padding-bottom: 80px; }
.tv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

/* Blog Card */
.tv-blog-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.tv-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(130,90,255,.42);
  box-shadow: 0 24px 64px rgba(0,0,0,.48);
}

/* Thumbnail */
.tv-blog-thumb-link { display: block; }
.tv-blog-thumb {
  position: relative; overflow: hidden;
  height: 200px; background: var(--bg3);
}
.tv-blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.tv-blog-card:hover .tv-blog-thumb img { transform: scale(1.05); }
.tv-blog-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(124,58,255,.12) 100%);
}
.tv-blog-thumb-icon {
  width: 56px; height: 56px; opacity: .3;
  color: var(--v3);
}
.tv-blog-thumb-icon svg { width: 100%; height: 100%; }
.tv-blog-cat-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(124,58,255,.85);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 9999px;
  letter-spacing: .04em;
}

/* Card Body */
.tv-blog-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 22px 20px 20px;
  direction: rtl; text-align: right;
}
.tv-blog-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.tv-blog-date, .tv-blog-read {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text4);
  font-family: var(--font-en);
}
.tv-blog-date svg, .tv-blog-read svg { flex-shrink: 0; stroke: var(--v3); }
.tv-blog-title {
  font-size: 16px; font-weight: 800;
  color: #fff; line-height: 1.45;
  margin-bottom: 10px;
}
.tv-blog-title a { color: inherit; transition: color .2s; }
.tv-blog-title a:hover { color: var(--v3); }
.tv-blog-excerpt {
  font-size: 13.5px; color: var(--text3);
  line-height: 1.8; flex: 1; margin-bottom: 16px;
}
.tv-blog-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tv-blog-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text3);
}
.tv-blog-avatar {
  width: 28px !important; height: 28px !important;
  border-radius: 50%; border: 1px solid var(--border2);
}
.tv-blog-read-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700;
  color: var(--v3); transition: color .2s, gap .2s;
  white-space: nowrap;
}
.tv-blog-read-link:hover { color: var(--ice); gap: 8px; }
.tv-blog-read-link svg { stroke: currentColor; }

/* Pagination */
.tv-pagination { margin-top: 16px; }
.tv-pagination .nav-links {
  display: flex; align-items: center;
  justify-content: center; gap: 8px; flex-wrap: wrap;
}
.tv-pagination .page-numbers {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 16px; border-radius: var(--r);
  font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text2); transition: background .2s, border-color .2s, color .2s;
}
.tv-pagination .page-numbers:hover { background: var(--v-dim); border-color: var(--border2); color: var(--ice); }
.tv-pagination .page-numbers.current { background: var(--v); border-color: var(--v); color: #fff; }
.tv-pagination .page-numbers.dots { background: none; border: none; color: var(--text4); }

/* Empty State */
.tv-blog-empty {
  text-align: center; padding: 72px 40px;
  max-width: 480px; margin: 0 auto;
}
.tv-blog-empty-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  color: var(--v3); opacity: .5;
}
.tv-blog-empty-icon svg { width: 100%; height: 100%; }
.tv-blog-empty h2 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.tv-blog-empty p { font-size: 14px; color: var(--text3); line-height: 1.8; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST — single.php
═══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.tv-single-breadcrumb {
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 12px 0; position: relative; z-index: 1;
}
.tv-single-breadcrumb nav {
  font-size: 12.5px; color: var(--text4);
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  direction: rtl;
}
.tv-single-breadcrumb a { color: var(--text4); transition: color .2s; }
.tv-single-breadcrumb a:hover { color: var(--v3); }
.tv-single-breadcrumb [aria-current="page"] { color: var(--text2); }

/* Post Header */
.tv-post-header {
  padding: 52px 0 36px;
  position: relative; z-index: 1;
}
.tv-post-header-inner { max-width: 780px; }
.tv-post-cat { display: inline-block; margin-bottom: 18px; }
.tv-post-title {
  font-family: var(--font);
  font-size: clamp(24px, 4.5vw, 44px);
  font-weight: 900; color: #fff;
  line-height: 1.28; margin-bottom: 16px;
  direction: rtl;
}
.tv-post-lead {
  font-size: 17px; color: var(--text2);
  line-height: 1.85; margin-bottom: 24px;
  max-width: 680px; direction: rtl;
}
.tv-post-meta-bar { direction: rtl; }
.tv-post-author-row { display: flex; align-items: center; gap: 12px; }
.tv-post-avatar {
  width: 44px !important; height: 44px !important;
  border-radius: 50%; border: 2px solid var(--border2);
  flex-shrink: 0;
}
.tv-post-author-name { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.tv-post-meta-detail {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text4); margin-top: 3px;
}
.tv-post-meta-detail time { display: flex; align-items: center; gap: 4px; }
.tv-post-meta-detail svg { stroke: var(--v3); flex-shrink: 0; }
.tv-post-meta-sep { color: var(--border); }

/* Featured Image */
.tv-post-featured-img { padding: 0 0 36px; position: relative; z-index: 1; }
.tv-post-img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

/* Two-column layout */
.tv-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
  position: relative; z-index: 1;
}
.tv-post-content-col { min-width: 0; }

/* Post Body Typography */
.tv-post-body {
  font-size: 16px; color: var(--text2);
  line-height: 1.95; direction: rtl;
  margin-bottom: 40px;
}
.tv-post-body h2 { font-size: 22px; font-weight: 800; color: #fff; margin: 36px 0 14px; direction: rtl; }
.tv-post-body h3 { font-size: 18px; font-weight: 700; color: var(--ice); margin: 28px 0 10px; direction: rtl; }
.tv-post-body p { margin-bottom: 18px; }
.tv-post-body a { color: var(--v3); text-decoration: underline; text-underline-offset: 3px; }
.tv-post-body a:hover { color: var(--ice); }
.tv-post-body ul, .tv-post-body ol { padding-right: 20px; margin-bottom: 18px; }
.tv-post-body li { margin-bottom: 8px; }
.tv-post-body blockquote {
  border-right: 3px solid var(--v);
  padding: 14px 20px; margin: 24px 0;
  background: var(--v-dim); border-radius: 0 var(--r) var(--r) 0;
  color: var(--text2); font-style: italic;
}
.tv-post-body img { border-radius: var(--r); border: 1px solid var(--border); margin: 24px 0; }
.tv-post-body code {
  background: rgba(124,58,255,.15); color: var(--v3);
  padding: 2px 7px; border-radius: 5px; font-size: .9em;
  font-family: monospace; direction: ltr; display: inline-block;
}
.tv-post-body pre {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; overflow-x: auto;
  margin: 20px 0; direction: ltr; text-align: left;
}
.tv-post-body pre code { background: none; padding: 0; }

/* Tags */
.tv-post-tags {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-bottom: 32px; direction: rtl;
}
.tv-post-tags-label { font-size: 12px; color: var(--text4); display: flex; align-items: center; gap: 5px; }
.tv-post-tags-label svg { stroke: var(--text4); }
.tv-post-tag {
  display: inline-block; padding: 4px 12px;
  background: var(--v-dim); border: 1px solid var(--border2);
  border-radius: 9999px; font-size: 12px; color: var(--v3);
  font-weight: 600; transition: background .2s, color .2s;
}
.tv-post-tag:hover { background: var(--v); color: #fff; }

/* Author Box */
.tv-author-box {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; margin-bottom: 32px;
  direction: rtl; text-align: right;
}
.tv-author-box-avatar {
  width: 72px !important; height: 72px !important;
  border-radius: 50%; border: 2px solid var(--border2);
  flex-shrink: 0;
}
.tv-author-box-label { font-size: 11px; font-weight: 800; color: var(--text4); letter-spacing: .06em; text-transform: uppercase; }
.tv-author-box-name { font-size: 16px; font-weight: 800; color: #fff; margin: 4px 0 8px; }
.tv-author-box-bio { font-size: 13px; color: var(--text3); line-height: 1.75; }

/* Post Navigation */
.tv-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 48px;
}
.tv-post-nav-link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; border-radius: var(--r);
  transition: border-color .2s, transform .2s;
}
.tv-post-nav-link:hover { border-color: rgba(130,90,255,.4); transform: translateY(-3px); }
.tv-post-nav-dir {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; color: var(--text4);
  text-transform: uppercase; letter-spacing: .06em;
}
.tv-post-nav-dir svg { stroke: var(--v3); }
.tv-post-nav-title { font-size: 13.5px; font-weight: 700; color: var(--text2); line-height: 1.5; }
.tv-post-nav-prev { text-align: right; direction: rtl; }
.tv-post-nav-next { text-align: left; direction: ltr; }

/* Sidebar */
.tv-post-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.tv-sidebar-cta {
  padding: 24px; text-align: center; direction: rtl;
}
.tv-sidebar-cta-icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  background: var(--v-dim); border: 1px solid var(--border2);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.tv-sidebar-cta-icon svg { width: 22px; height: 22px; stroke: var(--v3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tv-sidebar-cta h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.tv-sidebar-cta p { font-size: 13px; color: var(--text3); line-height: 1.75; margin-bottom: 16px; }
.tv-sidebar-widget { padding: 20px; direction: rtl; }
.tv-sidebar-widget-title { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.tv-sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.tv-sidebar-post-item { display: flex; gap: 10px; align-items: flex-start; }
.tv-sidebar-post-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; }
.tv-sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-sidebar-post-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tv-sidebar-post-title { font-size: 13px; font-weight: 700; color: var(--text2); line-height: 1.45; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-sidebar-post-title:hover { color: var(--v3); }
.tv-sidebar-post-date { font-size: 11px; color: var(--text4); }
.tv-sidebar-cats { display: flex; flex-direction: column; gap: 6px; }
.tv-sidebar-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--text3);
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s;
}
.tv-sidebar-cat-link:hover { color: var(--v3); }
.tv-sidebar-cat-count {
  background: var(--v-dim); border: 1px solid var(--border2);
  color: var(--v3); font-size: 11px; font-weight: 800;
  padding: 1px 8px; border-radius: 9999px;
}

/* Comments */
.tv-comments-wrap { margin-top: 8px; }
.tv-comments-wrap .comment-list { list-style: none; }
.tv-comments-wrap .comment { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.06); direction: rtl; }
.tv-comments-wrap .comment-author .fn { font-weight: 700; color: #fff; font-size: 14px; }
.tv-comments-wrap .comment-content p { font-size: 13.5px; color: var(--text3); line-height: 1.8; margin-top: 6px; }
.tv-comments-wrap .comment-meta { font-size: 11px; color: var(--text4); margin-top: 4px; }
.tv-comments-wrap .comment-form input,
.tv-comments-wrap .comment-form textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); padding: 10px 14px;
  font-family: var(--font); font-size: 14px; direction: rtl;
  transition: border-color .2s;
}
.tv-comments-wrap .comment-form input:focus,
.tv-comments-wrap .comment-form textarea:focus { outline: none; border-color: var(--v); }
.tv-comments-wrap .comment-form .submit {
  background: linear-gradient(135deg, var(--v), var(--v2));
  color: #fff; font-family: var(--font); font-weight: 800;
  font-size: 14px; padding: 11px 24px; border-radius: var(--r);
  border: none; cursor: pointer; margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   STORE — page-store.php (WooCommerce-compatible)
═══════════════════════════════════════════════════════════════ */

.tv-store-page .tv-section { padding-top: 48px; padding-bottom: 80px; }

/* Store Hero */
.tv-store-hero {
  padding: 72px 0 40px;
  position: relative; z-index: 1;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.tv-store-hero-title {
  font-family: var(--font);
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 900; color: #fff;
  line-height: 1.28; margin: 16px 0 12px;
  direction: rtl;
}
.tv-grad-text {
  background: linear-gradient(135deg, var(--v2) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tv-store-hero-sub {
  font-size: 15px; color: var(--text3);
  max-width: 520px; margin: 0 auto 24px;
  line-height: 1.85; direction: rtl;
}
.tv-store-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px; font-size: 13px; color: var(--text3);
  direction: rtl;
}
.tv-store-trust span { display: flex; align-items: center; gap: 6px; }

/* Product Grid — WooCommerce ul.products */
.tv-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important; margin: 0 !important;
}

/* Product Card — WooCommerce li.product */
.tv-product-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 32px 24px 24px !important;
  position: relative;
  direction: rtl; text-align: right;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.tv-product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(130,90,255,.48);
  box-shadow: 0 28px 72px rgba(0,0,0,.5), 0 0 48px rgba(124,58,255,.12);
}
.tv-product-card.featured {
  background: linear-gradient(155deg, rgba(124,58,255,.18) 0%, rgba(255,255,255,.055) 50%, rgba(124,58,255,.10) 100%) !important;
  border-color: rgba(130,90,255,.5) !important;
  box-shadow: 0 0 0 1px rgba(130,90,255,.34), 0 28px 72px rgba(0,0,0,.5) !important;
}

/* Save Ribbon */
.tv-save-ribbon {
  position: absolute; top: -1px; left: 20px;
  background: linear-gradient(135deg, var(--dl), var(--dl-h));
  color: #fff; font-size: 11px; font-weight: 900;
  padding: 5px 14px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: 0 4px 14px var(--dl-glow);
  letter-spacing: .04em;
}

/* Product Icon */
.tv-product-icon {
  width: 56px; height: 56px; margin-bottom: 18px;
  background: rgba(var(--prod-color, 124, 58, 255), .12);
  border: 1px solid rgba(130,90,255,.25);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.tv-product-icon svg { width: 26px; height: 26px; stroke: var(--v3); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Product Name (WooCommerce .woocommerce-loop-product__title) */
.tv-product-name { margin-bottom: 16px; }
.tv-product-name h2 { font-size: 20px !important; font-weight: 800 !important; color: #fff !important; margin: 0 !important; padding: 0 !important; }

/* Price (WooCommerce .price) */
.tv-product-price-wrap {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 20px; direction: ltr; justify-content: flex-end;
}
.tv-product-price-wrap .woocommerce-Price-amount { display: flex; align-items: baseline; gap: 2px; }
.tv-price-cur { font-size: 18px; color: var(--text3); }
.tv-price-val { font-family: var(--font-en) !important; font-size: clamp(36px, 4vw, 52px) !important; font-weight: 900 !important; color: #fff !important; line-height: 1; }
.tv-price-period { font-size: 13px; color: var(--text4); align-self: flex-end; padding-bottom: 4px; }

/* Feature list inside product card */
.tv-product-feats {
  list-style: none !important;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; margin: 0 0 22px !important; padding: 0 !important;
}
.tv-product-feats li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text2);
}

/* Buy Button (WooCommerce .button.add_to_cart_button) */
.tv-btn-buy {
  margin-bottom: 8px !important;
}
.tv-btn-trial { display: block; }

/* Store Features Banner */
.tv-store-features-banner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 48px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tv-store-feat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px;
  border-left: 1px solid var(--border);
  direction: rtl;
}
.tv-store-feat-item:first-child { border-left: none; }
.tv-store-feat-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--v-dim); border: 1px solid var(--border2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.tv-store-feat-icon svg { width: 18px; height: 18px; stroke: var(--v3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv-store-feat-item > div { display: flex; flex-direction: column; gap: 3px; }
.tv-store-feat-item strong { font-size: 13.5px; font-weight: 800; color: #fff; }
.tv-store-feat-item span { font-size: 12px; color: var(--text4); }

/* ═══════════════════════════════════════════════════════════════
   SINGLE PRODUCT — single-product.php (WooCommerce-compatible)
═══════════════════════════════════════════════════════════════ */

/* Two-column product layout */
.tv-single-product-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  padding: 40px 0 80px;
  align-items: start;
}

/* Visual / Left column */
.tv-sp-visual { display: flex; flex-direction: column; gap: 16px; }
.tv-sp-visual-card {
  padding: 28px 24px;
  position: relative;
  direction: rtl;
}
.tv-sp-visual-card.popular {
  background: linear-gradient(155deg, rgba(124,58,255,.18) 0%, rgba(255,255,255,.055) 50%, rgba(124,58,255,.10) 100%);
  border-color: rgba(130,90,255,.5);
  box-shadow: 0 0 0 1px rgba(130,90,255,.34), 0 28px 72px rgba(0,0,0,.5);
}

/* Product cover art */
.tv-sp-cover {
  position: relative; height: 180px; border-radius: var(--r);
  overflow: hidden; margin-bottom: 22px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(124,58,255,.25) 0%, var(--bg3) 100%);
  border: 1px solid var(--border2);
}
.tv-sp-cover-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 30% 30%, rgba(124,58,255,.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0,212,255,.1) 0%, transparent 70%);
}
.tv-sp-cover-icon {
  position: relative; z-index: 1;
  width: 68px; height: 68px; margin-bottom: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
}
.tv-sp-cover-icon svg { width: 36px; height: 36px; }
.tv-sp-cover-label { position: relative; z-index: 1; text-align: center; }
.tv-sp-cover-title { display: block; font-family: var(--font-en); font-size: 15px; font-weight: 800; color: #fff; }
.tv-sp-cover-sku { display: block; font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; }

/* Price area (WooCommerce .price, .woocommerce-Price-amount) */
.tv-sp-price-area { margin-bottom: 20px; direction: rtl; }
.tv-sp-price-area .price { display: flex; align-items: baseline; gap: 4px; direction: ltr; justify-content: flex-end; }
.tv-sp-price-area .woocommerce-Price-amount { display: flex; align-items: baseline; gap: 3px; }
.tv-sp-price-area .woocommerce-Price-currencySymbol { font-size: 18px; color: var(--text3); margin-top: 4px; }
.tv-sp-price-area .woocommerce-Price-amount bdi { font-family: var(--font-en); font-size: clamp(40px,5vw,58px); font-weight: 900; color: #fff; line-height: 1; }
.tv-sp-period { font-size: 13px; color: var(--text4); margin-top: 4px; text-align: right; }

/* Buy area (WooCommerce .cart, .single_add_to_cart_button) */
.tv-sp-buy-area { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.tv-sp-buy-btn {
  font-size: 15px !important; padding: 14px 20px !important;
  justify-content: center;
}
.tv-sp-trial-btn { text-align: center; }

/* Micro trust list */
.tv-sp-micro-trust {
  display: flex; flex-direction: column; gap: 7px;
  list-style: none; padding: 0; margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tv-sp-micro-trust li {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text3);
}

/* Other plans card */
.tv-sp-other-plans { padding: 18px 20px; direction: rtl; }
.tv-sp-other-title { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text4); margin-bottom: 12px; }
.tv-sp-other-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13.5px; color: var(--text3);
  transition: color .2s;
}
.tv-sp-other-link:hover { color: var(--v3); }
.tv-sp-other-link:last-child { border-bottom: none; }
.tv-sp-other-price { font-family: var(--font-en); font-weight: 800; color: var(--v3); }
.tv-sp-see-all svg { stroke: var(--v3); }

/* Details / Right column */
.tv-sp-details { min-width: 0; direction: rtl; }
.tv-sp-cat-label { display: inline-block; margin-bottom: 16px; }
.tv-sp-product-title {
  font-family: var(--font);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900; color: #fff !important;
  line-height: 1.25; margin-bottom: 12px !important;
  display: flex; flex-direction: column; gap: 4px;
}
.tv-sp-title-sub {
  font-family: var(--font-en); font-size: 15px;
  font-weight: 700; color: var(--v3);
}

/* Rating (WooCommerce .woocommerce-product-rating) */
.tv-sp-rating {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.tv-sp-rating-val { font-family: var(--font-en); font-weight: 800; color: #fff; font-size: 15px; }
.tv-sp-rating-count { font-size: 12px; color: var(--text4); }

/* Short Description (WooCommerce .woocommerce-product-details__short-description) */
.tv-sp-description { margin-bottom: 28px; }
.tv-sp-description p { font-size: 15px; color: var(--text2); line-height: 1.9; }
.tv-sp-description strong { color: #fff; }

/* Features List */
.tv-sp-section-title {
  font-size: 14px; font-weight: 800; color: var(--text);
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tv-sp-features-section { margin-bottom: 28px; }
.tv-sp-features-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tv-sp-feat-item { display: flex; align-items: flex-start; gap: 14px; }
.tv-sp-feat-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--v-dim); border: 1px solid var(--border2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.tv-sp-feat-icon svg { width: 17px; height: 17px; stroke: var(--v3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv-sp-feat-text { display: flex; flex-direction: column; gap: 3px; }
.tv-sp-feat-text strong { font-size: 14px; font-weight: 800; color: #fff; }
.tv-sp-feat-text span { font-size: 12.5px; color: var(--text4); }

/* Compatible Devices */
.tv-sp-compat-section { margin-bottom: 28px; }
.tv-sp-compat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tv-sp-compat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r);
  font-size: 12.5px; color: var(--text2);
}
.tv-sp-compat-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--v3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* How It Works Steps */
.tv-sp-how-section { margin-bottom: 12px; }
.tv-sp-steps-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.tv-sp-steps-list li {
  display: flex; align-items: center; gap: 16px;
}
.tv-sp-steps-list .tv-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  font-size: 14px;
}
.tv-sp-steps-list > li > div { display: flex; flex-direction: column; gap: 3px; }
.tv-sp-steps-list strong { font-size: 14px; font-weight: 800; color: #fff; }
.tv-sp-steps-list span { font-size: 12.5px; color: var(--text4); }

/* Sticky buy bar (mobile) */
.tv-sp-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: rgba(5,4,15,.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  display: none;
}
.tv-sp-sticky-bar.visible { transform: translateY(0); }
.tv-sp-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; direction: rtl; }
.tv-sp-sticky-info { display: flex; flex-direction: column; gap: 2px; }
.tv-sp-sticky-name { font-size: 14px; font-weight: 800; color: #fff; }
.tv-sp-sticky-price { font-size: 12px; color: var(--text3); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — New Templates
═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .tv-blog-grid           { grid-template-columns: repeat(2, 1fr); }
  .tv-products-grid       { grid-template-columns: repeat(2, 1fr) !important; }
  .tv-store-features-banner { grid-template-columns: repeat(2, 1fr); }
  .tv-store-feat-item:nth-child(1),
  .tv-store-feat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .tv-single-product-layout { grid-template-columns: 320px 1fr; gap: 32px; }
  .tv-post-layout         { grid-template-columns: 1fr 280px; gap: 32px; }
}

@media (max-width: 860px) {
  .tv-blog-grid           { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .tv-products-grid       { grid-template-columns: 1fr !important; max-width: 420px; margin-left: auto; margin-right: auto; }
  .tv-post-layout         { grid-template-columns: 1fr; }
  .tv-post-sidebar        { position: static; }
  .tv-single-product-layout { grid-template-columns: 1fr; }
  .tv-sp-visual           { order: 2; }
  .tv-sp-details          { order: 1; }
  .tv-sp-sticky-bar       { display: block; }
  .tv-store-features-banner { grid-template-columns: 1fr 1fr; }
  .tv-post-nav            { grid-template-columns: 1fr; }
  .tv-sp-compat-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .tv-archive-hero        { padding: 56px 0 36px; }
  .tv-store-hero          { padding: 52px 0 28px; }
  .tv-store-features-banner { grid-template-columns: 1fr; }
  .tv-store-feat-item     { border-left: none; border-bottom: 1px solid var(--border); }
  .tv-sp-compat-grid      { grid-template-columns: 1fr; }
  .tv-sp-other-plans      { display: none; }
  .tv-store-trust         { gap: 8px 16px; }
}

/* ═══════════════════════════════════════════════
   HEADER — new nav items & button group
═══════════════════════════════════════════════ */

/* Active nav link (aria-current="page") */
.tv-nav a[aria-current="page"] {
  color: var(--v3) !important;
  position: relative;
}
.tv-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--v), var(--v2));
  border-radius: 2px;
}

/* Mobile nav active */
#tv-mobile-nav a[aria-current="page"] { color: var(--v3) !important; }

/* Header button group spacing */
.tv-header-btns {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.tv-header-btn-dl  { font-size: .82rem; padding: 9px 16px; }
.tv-header-btn-sub { font-size: .82rem; padding: 9px 16px; }

/* Mobile nav buttons block */
.tv-mobile-nav-btns {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}

/* Footer WA button */
.tv-footer-wa-btn {
  margin-top: 16px; width: fit-content;
  font-size: .84rem;
}

/* btn-ghost (used in templates) */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  border: 1.5px solid var(--border2);
  color: var(--text2); font-family: var(--font); font-weight: 700;
  font-size: .92rem; padding: 11px 22px; border-radius: 9999px;
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--v3); color: var(--ice); background: var(--v-dim); }
.btn-ghost.full  { width: 100%; }


/* ═══════════════════════════════════════════════
   single-product.php — real featured image cover
   (bugfix update: supports actual uploaded image)
═══════════════════════════════════════════════ */
.tv-sp-cover--has-img {
  padding: 0; background: none; border: none;
  display: block;
}
.tv-sp-cover-img {
  width: 100% !important; height: 180px !important;
  object-fit: cover !important;
  border-radius: var(--r) !important;
  margin: 0 !important; border: 1px solid var(--border2) !important;
}

/* archive-product.php — thumbnail-based product icon variant */
.tv-product-card .tv-product-icon img { border-radius: var(--r); }
