/*
 * Widget-Specific Styles — Zamanpour Excoin
 * @package Zamanpour_Excoin_Theme
 * Version: 4.0.0
 */

/* ═══════════════════════════════════════════
   DESIGN TOKENS — Master System
   ═══════════════════════════════════════════ */

:root {
  /* ═══════════════════════════════════════════
     DARK THEME — Premium Fintech Palette
     ═══════════════════════════════════════════ */

  /* ── Background ── */
  --zpex-primary: #0A0A0F;
  --zpex-surface: #131318;
  --zpex-surface-elevated: #1A1A22;
  --zpex-surface-hover: rgba(201,168,76,0.06);

  /* ── Text ── */
  --zpex-text: #EDEDEF;
  --zpex-text-secondary: rgba(237,237,239,0.65);
  --zpex-text-muted: rgba(237,237,239,0.48);
  --zpex-text-inverse: #0A0A0F;

  /* ── Accent (Sophisticated Gold) ── */
  --zpex-accent: #C9A84C;
  --zpex-accent-hover: #B8963A;
  --zpex-accent-2: #A68B5C;
  --zpex-accent-light: #E4D5A0;
  --zpex-accent-muted: rgba(201,168,76,0.12);

  /* ── Borders ── */
  --zpex-border: rgba(201,168,76,0.12);
  --zpex-border-strong: rgba(201,168,76,0.2);
  --zpex-border-subtle: rgba(201,168,76,0.06);

  /* ── Effects ── */
  --zpex-shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --zpex-shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --zpex-shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
  --zpex-shadow-gold: 0 0 32px -8px rgba(201,168,76,0.3);
  --zpex-glass: rgba(19,19,24,0.65);
  --zpex-glass-strong: rgba(10,10,15,0.8);
  --zpex-glass-border: rgba(201,168,76,0.1);
  --zpex-vignette-shadow: inset 0 0 120px 40px rgba(10,10,15,0.9);

  /* ── Typography ── */
  --zpex-font-display: 'Playfair Display', 'Vazirmatn', serif;
  --zpex-font-body: 'Vazirmatn', sans-serif;
  --zpex-font-serif: 'Cormorant Garamond', serif;
  --zpex-font-num: 'Inter', sans-serif;

  /* ── Type Scale (Fluid) ── */
  --zpex-type-display: clamp(2.5rem, 5vw, 4.5rem);
  --zpex-type-h1: clamp(2rem, 4vw, 3.25rem);
  --zpex-type-h2: clamp(1.5rem, 3vw, 2.25rem);
  --zpex-type-h3: clamp(1.125rem, 2vw, 1.5rem);
  --zpex-type-body: 1rem;
  --zpex-type-small: 0.875rem;
  --zpex-type-caption: 0.75rem;
  --zpex-type-eyebrow: 0.6875rem;

  /* ── Line Heights ── */
  --zpex-leading-tight: 1.2;
  --zpex-leading-snug: 1.35;
  --zpex-leading-normal: 1.5;
  --zpex-leading-relaxed: 1.75;

  /* ── Spacing ── */
  --zpex-space-xs: 4px;
  --zpex-space-sm: 8px;
  --zpex-space-md: 16px;
  --zpex-space-lg: 24px;
  --zpex-space-xl: 32px;
  --zpex-space-2xl: 48px;
  --zpex-space-3xl: 64px;
  --zpex-space-4xl: 96px;

  /* ── Radius ── */
  --zpex-radius-sm: 6px;
  --zpex-radius-md: 12px;
  --zpex-radius-lg: 18px;
  --zpex-radius-xl: 24px;
  --zpex-radius-full: 9999px;

  /* ── Layout ── */
  --zpex-max-width: 1200px;
  --zpex-container-padding: 20px;
  --zpex-container-padding-sm: 32px;

  /* ── Ticker ── */
  --zpex-ticker-up: #7BA668;
  --zpex-ticker-down: #B87A68;

  /* ── Legacy aliases (backward compat) ── */
  --zpex-font-size-display: var(--zpex-type-display);
  --zpex-font-size-h1: var(--zpex-type-h1);
  --zpex-font-size-h2: var(--zpex-type-h2);
  --zpex-font-size-h3: var(--zpex-type-h3);
  --zpex-font-size-body: var(--zpex-type-body);
  --zpex-font-size-small: var(--zpex-type-small);
  --zpex-font-size-caption: var(--zpex-type-caption);
  --zpex-text-70: var(--zpex-text-secondary);
  --zpex-text-55: var(--zpex-text-muted);
  --zpex-text-50: var(--zpex-text-muted);
  --zpex-text-40: rgba(237,237,239,0.35);
  --zpex-text-30: rgba(237,237,239,0.25);
  --zpex-border-40: rgba(201,168,76,0.35);
}

/* ═══════════════════════════════════════════
   LIGHT THEME — Premium Fintech Palette
   ═══════════════════════════════════════════ */

[data-theme="light"] {
  /* ── Background ── */
  --zpex-primary: #FAF9F6;
  --zpex-surface: #F0EDE8;
  --zpex-surface-elevated: #FFFFFF;
  --zpex-surface-hover: rgba(154,123,47,0.06);

  /* ── Text ── */
  --zpex-text: #1A1A1E;
  --zpex-text-secondary: rgba(26,26,30,0.86);
  --zpex-text-muted: rgba(26,26,30,0.74);
  --zpex-text-inverse: #FAF9F6;

  /* ── Accent (Deep Champagne) ── */
  --zpex-accent: #9A7B2F;
  --zpex-accent-hover: #866926;
  --zpex-accent-2: #7A6B3D;
  --zpex-accent-light: #C4A84A;
  --zpex-accent-muted: rgba(154,123,47,0.1);

  /* ── Borders ── */
  --zpex-border: rgba(154,123,47,0.15);
  --zpex-border-strong: rgba(154,123,47,0.25);
  --zpex-border-subtle: rgba(154,123,47,0.08);

  /* ── Effects ── */
  --zpex-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --zpex-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --zpex-shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --zpex-shadow-gold: 0 0 32px -8px rgba(154,123,47,0.2);
  --zpex-glass: rgba(255,255,255,0.7);
  --zpex-glass-strong: rgba(250,249,246,0.85);
  --zpex-glass-border: rgba(154,123,47,0.12);
  --zpex-vignette-shadow: inset 0 0 120px 40px rgba(250,249,246,0.7);

  /* ── Ticker ── */
  --zpex-ticker-up: #3D7A2A;
  --zpex-ticker-down: #A84432;

  /* ── Legacy aliases ── */
  --zpex-text-40: rgba(26,26,30,0.46);
  --zpex-text-30: rgba(26,26,30,0.38);
  --zpex-border-40: rgba(154,123,47,0.4);
}

/* ═══════════════════════════════════════════
   SYSTEM PREFERENCE (prefers-color-scheme)
   ═══════════════════════════════════════════ */

@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    /* ── Background ── */
    --zpex-primary: #FAF9F6;
    --zpex-surface: #F0EDE8;
    --zpex-surface-elevated: #FFFFFF;
    --zpex-surface-hover: rgba(154,123,47,0.06);

    /* ── Text ── */
    --zpex-text: #1A1A1E;
    --zpex-text-secondary: rgba(26,26,30,0.78);
    --zpex-text-muted: rgba(26,26,30,0.66);
    --zpex-text-inverse: #FAF9F6;

    /* ── Accent ── */
    --zpex-accent: #9A7B2F;
    --zpex-accent-hover: #866926;
    --zpex-accent-2: #7A6B3D;
    --zpex-accent-light: #C4A84A;
    --zpex-accent-muted: rgba(154,123,47,0.1);

    /* ── Borders ── */
    --zpex-border: rgba(154,123,47,0.15);
    --zpex-border-strong: rgba(154,123,47,0.25);
    --zpex-border-subtle: rgba(154,123,47,0.08);

    /* ── Effects ── */
    --zpex-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --zpex-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --zpex-shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --zpex-shadow-gold: 0 0 32px -8px rgba(154,123,47,0.2);
    --zpex-glass: rgba(255,255,255,0.7);
    --zpex-glass-strong: rgba(250,249,246,0.85);
    --zpex-glass-border: rgba(154,123,47,0.12);
    --zpex-vignette-shadow: inset 0 0 120px 40px rgba(250,249,246,0.7);

    /* ── Ticker ── */
    --zpex-ticker-up: #3D7A2A;
    --zpex-ticker-down: #A84432;

    /* ── Legacy aliases ── */
    --zpex-text-40: rgba(26,26,30,0.46);
    --zpex-text-30: rgba(26,26,30,0.38);
    --zpex-border-40: rgba(154,123,47,0.4);
  }
}

@media (min-width: 640px) {
  :root {
    --zpex-container-padding: 32px;
  }
}

/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */

.zpex-section {
  position: relative;
  padding: clamp(56px, 8vw, 120px) 0;
}

@media (min-width: 640px) {
  .zpex-section {
    padding: clamp(72px, 10vw, 140px) 0;
  }
}

.zpex-container {
  width: 100%;
  max-width: var(--zpex-max-width);
  margin-inline: auto;
  padding-inline: var(--zpex-container-padding);
}

/* Muted section variant (alternating sections) */
.zpex-section--muted {
  background: var(--zpex-surface);
  border-top: 1px solid var(--zpex-border-subtle);
  border-bottom: 1px solid var(--zpex-border-subtle);
}

/* Decorative glow element */
.zpex-decorative-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

[data-theme="light"] .zpex-decorative-glow {
  background: radial-gradient(circle, rgba(154,123,47,0.08) 0%, transparent 70%);
}

/* ═══════════════════════════════════════════
   SECTION HEADER (EYEBROW PATTERN)
   ═══════════════════════════════════════════ */

.zpex-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.zpex-section-header--center {
  justify-content: center;
}

.zpex-section-header--center .zpex-section-header__line:last-child {
  margin-inline-start: 12px;
}

.zpex-section-header__line {
  width: 28px;
  height: 1px;
  background: var(--zpex-accent);
  flex-shrink: 0;
  transition: width 0.4s cubic-bezier(.16,1,.3,1);
}
.zpex-section-header:hover .zpex-section-header__line {
  width: 40px;
}

.zpex-section-header__text {
  font-family: var(--zpex-font-body);
  font-size: var(--zpex-type-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zpex-accent);
  font-weight: 500;
}

.zpex-section-header__text--serif {
  font-family: var(--zpex-font-serif);
  font-style: italic;
  letter-spacing: 0.15em;
  text-transform: none;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   GLASS CARD
   ═══════════════════════════════════════════ */

.zpex-glass-card {
  background: var(--zpex-glass);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.zpex-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.25);
  border-color: var(--zpex-border-strong);
}

[data-theme="light"] .zpex-glass-card {
  background: var(--zpex-glass);
  box-shadow: var(--zpex-shadow-sm);
}

[data-theme="light"] .zpex-glass-card:hover {
  box-shadow: var(--zpex-shadow-md);
}

.zpex-glass-card-strong {
  background: var(--zpex-glass-strong);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--zpex-border-strong);
  border-radius: var(--zpex-radius-md);
}

/* ═══════════════════════════════════════════
   BUTTON SYSTEM
   ═══════════════════════════════════════════ */

/* Primary — Gold accent */
.zpex-btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--zpex-accent);
  color: var(--zpex-accent);
  border-radius: var(--zpex-radius-sm);
  transition: all 0.2s ease;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
}

.zpex-btn-gold:hover {
  background: var(--zpex-accent);
  color: var(--zpex-text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(201,168,76,0.3);
}

.zpex-btn-gold:active {
  transform: translateY(0);
}

.zpex-btn-gold:focus-visible {
  outline: 2px solid var(--zpex-accent);
  outline-offset: 2px;
}

/* Secondary — Subtle border */
.zpex-btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--zpex-border-strong);
  color: var(--zpex-text-secondary);
  border-radius: var(--zpex-radius-sm);
  transition: all 0.2s ease;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
}

.zpex-btn-secondary:hover {
  border-color: var(--zpex-accent);
  color: var(--zpex-accent);
  transform: translateY(-1px);
}

/* Ghost — No border, subtle bg */
.zpex-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  color: var(--zpex-text-secondary);
  border-radius: var(--zpex-radius-sm);
  transition: all 0.2s ease;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: var(--zpex-surface-hover);
  white-space: nowrap;
}

.zpex-btn-ghost:hover {
  background: var(--zpex-surface-elevated);
  color: var(--zpex-text);
}

/* Link — Text with underline */
.zpex-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--zpex-accent);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.zpex-btn-link::after {
  content: '';
  width: 0;
  height: 1px;
  background: var(--zpex-accent);
  transition: width 0.2s ease;
}

.zpex-btn-link:hover::after {
  width: 100%;
}

/* Disabled state */
.zpex-btn-gold:disabled,
.zpex-btn-secondary:disabled,
.zpex-btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   GOLD TEXT GRADIENT
   ═══════════════════════════════════════════ */

.zpex-gold-text {
  background: linear-gradient(120deg, #C5A880 10%, #E5C158 45%, #F5E3B3 55%, #C5A880 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
}

/* ═══════════════════════════════════════════
   HAIRLINE BORDER
   ═══════════════════════════════════════════ */

.zpex-hairline {
  border-color: var(--zpex-border-strong);
}

/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */

.zpex-divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zpex-accent), transparent);
}

/* ═══════════════════════════════════════════
   TILT CARD
   ═══════════════════════════════════════════ */

.zpex-tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

/* ═══════════════════════════════════════════
   LENS CARD (HOVER ZOOM)
   ═══════════════════════════════════════════ */

.zpex-lens-card {
  overflow: hidden;
  position: relative;
}

.zpex-lens-card img {
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.6s ease;
}

.zpex-lens-card:hover img {
  transform: scale(1.12);
  filter: brightness(1.05) saturate(1.1);
}

/* ═══════════════════════════════════════════
   PULSE DOT
   ═══════════════════════════════════════════ */

.zpex-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zpex-accent);
  animation: zpexPulseDot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes zpexPulseDot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ═══════════════════════════════════════════
   NUMBER ENGLISH
   ═══════════════════════════════════════════ */

.zpex-num-en {
  font-family: var(--zpex-font-num);
  direction: ltr;
  unicode-bidi: isolate;
}

/* ═══════════════════════════════════════════
   VIGNETTE OVERLAY
   ═══════════════════════════════════════════ */

.zpex-vignette {
  box-shadow: var(--zpex-vignette-shadow);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */

.js-enabled .zpex-fade-up {
  opacity: 0;
  transform: translateY(36px);
}

/* Fallback: if GSAP is slow/failed, reveal content after 3s */
@keyframes zpex-reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.js-enabled .zpex-fade-up {
  animation: zpex-reveal-fallback 0s 3s forwards;
}

/* ═══════════════════════════════════════════
   VIDEO FRAME
   ═══════════════════════════════════════════ */

.zpex-video-frame {
  position: relative;
  border-radius: var(--zpex-radius-xl);
  padding: 8px;
  background: var(--zpex-glass-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(229,193,88,0.18);
}

.zpex-video-frame__inner {
  position: relative;
  border-radius: var(--zpex-radius-lg);
  overflow: hidden;
}

.zpex-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zpex-video-frame video::-webkit-media-controls {
  display: none !important;
}

/* Video overlay gradient */
.zpex-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--zpex-primary), transparent, rgba(11,12,16,0.2));
  pointer-events: none;
}
[data-theme="light"] .zpex-video-overlay {
  background: linear-gradient(to top, var(--zpex-primary), transparent, rgba(248,247,244,0.2));
}

/* ═══════════════════════════════════════════
   HERO WIDGET
   ═══════════════════════════════════════════ */

.zpex-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .zpex-hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }
}

.zpex-hero__grid {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .zpex-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.zpex-hero__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-display);
  line-height: var(--zpex-leading-tight);
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--zpex-text);
}

@media (min-width: 1024px) {
  .zpex-hero__title {
    line-height: 1.15;
  }
}

[dir="rtl"] .zpex-hero__title {
  font-family: var(--zpex-font-body);
  font-weight: 700;
  line-height: var(--zpex-leading-snug);
}

.zpex-hero__description {
  color: var(--zpex-text-secondary);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: var(--zpex-leading-relaxed);
  max-width: 520px;
  margin-bottom: 32px;
}

.zpex-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.zpex-hero__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--zpex-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.zpex-hero__secondary-link:hover {
  color: var(--zpex-accent);
}

.zpex-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 480px;
  padding-top: 24px;
  border-top: 1px solid var(--zpex-border);
}

.zpex-hero__stat-number {
  font-family: var(--zpex-font-display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1;
  color: var(--zpex-text);
}

.zpex-hero__stat-label {
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Hero video column */
.zpex-hero__video-col {
  position: relative;
}

.zpex-hero__video-frame {
  border-radius: var(--zpex-radius-xl);
  padding: 6px;
  background: var(--zpex-glass-strong);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--zpex-border);
  box-shadow: var(--zpex-shadow-gold);
}

.zpex-hero__video-inner {
  position: relative;
  border-radius: calc(var(--zpex-radius-xl) - 4px);
  overflow: hidden;
  aspect-ratio: 4/5;
}

@media (min-width: 640px) {
  .zpex-hero__video-inner {
    aspect-ratio: 5/6;
  }
}

.zpex-hero__video-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zpex-hero__video-badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zpex-hero__video-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--zpex-radius-full);
  font-size: var(--zpex-type-eyebrow);
  letter-spacing: 0.02em;
  background: var(--zpex-glass-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Decorative rings — subtle */
.zpex-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--zpex-border-subtle);
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 1024px) {
  .zpex-hero__ring--tl {
    top: -32px;
    inset-inline-start: -32px;
    width: 128px;
    height: 128px;
  }

  .zpex-hero__ring--br {
    bottom: -24px;
    inset-inline-end: -24px;
    width: 80px;
    height: 80px;
  }
}

/* Scroll cue — subtle pulse */
.zpex-hero__scroll-cue {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  color: var(--zpex-text-muted);
  font-size: var(--zpex-type-eyebrow);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.zpex-hero__scroll-cue-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollCueBounce 2.5s cubic-bezier(.4,0,.2,1) infinite;
}

@keyframes scrollCueBounce {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ═══════════════════════════════════════════
   MARQUEE WIDGET
   ═══════════════════════════════════════════ */

.zpex-marquee {
  position: relative;
  padding: 20px 0;
  background: var(--zpex-surface);
  border-top: 1px solid var(--zpex-border-subtle);
  border-bottom: 1px solid var(--zpex-border-subtle);
  overflow: hidden;
}

.zpex-marquee__track {
  display: flex;
  white-space: nowrap;
  animation: zpexMarquee 30s linear infinite;
  width: max-content;
  gap: 48px;
  color: var(--zpex-accent-2);
  font-size: var(--zpex-type-small);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

[dir="rtl"] .zpex-marquee__track {
  animation-direction: reverse;
}

.zpex-marquee__group {
  display: flex;
  gap: 48px;
}

.zpex-marquee__separator {
  color: var(--zpex-accent);
  opacity: 0.5;
}

/* Pause on hover */
.zpex-marquee[data-pause-on-hover="true"]:hover .zpex-marquee__track {
  animation-play-state: paused;
  cursor: default;
}

@keyframes zpexMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   ABOUT WIDGET
   ═══════════════════════════════════════════ */

.zpex-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .zpex-about__grid {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }
}

.zpex-about__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h2);
  line-height: var(--zpex-leading-snug);
  margin-bottom: 16px;
}

[dir="rtl"] .zpex-about__title {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-about__description {
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  max-width: 448px;
}

.zpex-about__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .zpex-about__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.zpex-about__card {
  padding: 24px;
  border-radius: var(--zpex-radius-md);
}

.zpex-about__card-icon {
  width: 32px;
  height: 32px;
  color: var(--zpex-accent);
  margin-bottom: 16px;
}

.zpex-about__card-title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h3);
  margin-bottom: 8px;
}

[dir="rtl"] .zpex-about__card-title {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-about__card-description {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
}

/* ═══════════════════════════════════════════
   SPEED WIDGET
   ═══════════════════════════════════════════ */

.zpex-speed__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .zpex-speed__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.zpex-speed__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h2);
  line-height: var(--zpex-leading-snug);
  margin-bottom: 16px;
}

[dir="rtl"] .zpex-speed__title {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-speed__description {
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  max-width: 448px;
  margin-bottom: 24px;
}

.zpex-speed__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 448px;
}

.zpex-speed__stat {
  border-top: 1px solid var(--zpex-border);
  padding-top: 12px;
}

.zpex-speed__stat-number {
  font-family: var(--zpex-font-display);
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--zpex-text);
}

.zpex-speed__stat-label {
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   COVERAGE WIDGET
   ═══════════════════════════════════════════ */

.zpex-coverage__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h2);
  line-height: var(--zpex-leading-snug);
}

[dir="rtl"] .zpex-coverage__title {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-coverage__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .zpex-coverage__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Featured card (Tehran) spans 2 rows on desktop */
@media (min-width: 768px) {
  .zpex-coverage__card--featured {
    grid-row: span 2;
  }
}

.zpex-coverage__card {
  position: relative;
  border-radius: var(--zpex-radius-lg);
  border: 1px solid var(--zpex-border);
  overflow: hidden;
  min-height: 180px;
  transition: border-color 0.25s ease;
}

.zpex-coverage__card:hover {
  border-color: var(--zpex-border-strong);
}

.zpex-coverage__card--featured {
  min-height: 400px;
}

/* Featured card image */
.zpex-coverage__card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zpex-coverage__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--zpex-primary), rgba(10,10,15,0.2), transparent);
}

[data-theme="light"] .zpex-coverage__card-overlay {
  background: linear-gradient(to top, var(--zpex-primary), rgba(250,249,246,0.2), transparent);
}

.zpex-coverage__card-badge {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  inset-inline-end: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zpex-coverage__card-badge-text {
  padding: 4px 10px;
  border-radius: var(--zpex-radius-full);
  font-size: var(--zpex-type-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zpex-accent);
  background: var(--zpex-glass-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.zpex-coverage__card-content {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 24px;
  inset-inline-end: 24px;
}

.zpex-coverage__card-title {
  font-family: var(--zpex-font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 6px;
}

[dir="rtl"] .zpex-coverage__card-title {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-coverage__card-description {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  max-width: 360px;
}

/* Non-featured cards */
.zpex-coverage__card--glass {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zpex-coverage__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zpex-coverage__card-icon {
  width: 24px;
  height: 24px;
  color: var(--zpex-accent);
}

.zpex-coverage__card-code {
  font-size: var(--zpex-type-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zpex-accent);
  font-family: var(--zpex-font-num);
}

.zpex-coverage__card-title-sm {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h3);
  margin-bottom: 4px;
}

[dir="rtl"] .zpex-coverage__card-title-sm {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-coverage__card-desc-sm {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-normal);
}

/* ═══════════════════════════════════════════
   CONTACT WIDGET
   ═══════════════════════════════════════════ */

.zpex-contact__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h2);
  line-height: var(--zpex-leading-snug);
}

[dir="rtl"] .zpex-contact__title {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .zpex-contact__grid {
    grid-template-columns: 3fr 2fr;
    gap: 32px;
  }
}

/* Map */
.zpex-contact__map {
  position: relative;
  border-radius: var(--zpex-radius-lg);
  overflow: hidden;
  border: 1px solid var(--zpex-border);
  min-height: 340px;
  background: var(--zpex-surface);
}

@media (max-width: 639px) {
  .zpex-contact__map {
    min-height: 280px;
  }
}

.zpex-contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Dark mode map filter */
[data-theme="dark"] .zpex-contact__map iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

.zpex-contact__map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,15,0.4), transparent, rgba(10,10,15,0.1));
}

[data-theme="light"] .zpex-contact__map-overlay {
  background: linear-gradient(to top, rgba(250,249,246,0.3), transparent, rgba(250,249,246,0.05));
}

.zpex-contact__map-label {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  display: flex;
  pointer-events: none;
}

.zpex-contact__map-label-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--zpex-radius-full);
  font-size: var(--zpex-type-eyebrow);
  letter-spacing: 0.02em;
  pointer-events: auto;
  background: var(--zpex-glass-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.zpex-contact__map-link {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--zpex-radius-md);
  font-size: var(--zpex-type-small);
  letter-spacing: 0.02em;
  color: var(--zpex-text-secondary);
  text-decoration: none;
  background: var(--zpex-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.2s ease;
}

.zpex-contact__map-link:hover {
  color: var(--zpex-accent);
}

/* Contact cards */
.zpex-contact__cards {
  display: grid;
  gap: 16px;
}

.zpex-contact__card {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: var(--zpex-radius-md);
  transition: background 0.2s ease;
}

.zpex-contact__card:hover {
  background: var(--zpex-surface-hover);
}

.zpex-contact__card-icon {
  width: 20px;
  height: 20px;
  color: var(--zpex-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.zpex-contact__card-label {
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
  margin-bottom: 2px;
}

.zpex-contact__card-value {
  font-size: var(--zpex-type-small);
  letter-spacing: 0.02em;
  line-height: var(--zpex-leading-normal);
  color: var(--zpex-text);
}

.zpex-contact__card-value--ltr {
  font-family: var(--zpex-font-num);
  direction: ltr;
  unicode-bidi: isolate;
}

/* ═══════════════════════════════════════════
   FOOTER INFO WIDGET
   ═══════════════════════════════════════════ */

.zpex-footer-info__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .zpex-footer-info__top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.zpex-footer-info__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zpex-footer-info__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--zpex-border);
}

.zpex-footer-info__brand-name {
  font-family: var(--zpex-font-display);
  font-size: 16px;
}

[dir="rtl"] .zpex-footer-info__brand-name {
  font-family: 'Vazirmatn', serif;
  font-weight: 700;
}

.zpex-footer-info__brand-subtitle {
  font-size: var(--zpex-type-eyebrow);
  color: var(--zpex-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zpex-footer-info__social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--zpex-text-muted);
}

.zpex-footer-info__social a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.zpex-footer-info__social a:hover {
  color: var(--zpex-accent);
}

.zpex-footer-info__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
}

@media (min-width: 640px) {
  .zpex-footer-info__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ═══════════════════════════════════════════
   LIGHT THEME — Widget Hardcoded Color Overrides
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   UI/UX POLISH — Typography Scale
   ═══════════════════════════════════════════ */

.zpex-text-xs { font-size: 0.75rem; line-height: 1rem; }
.zpex-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.zpex-text-base { font-size: 1rem; line-height: 1.5rem; }
.zpex-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.zpex-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.zpex-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.zpex-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.zpex-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* ═══════════════════════════════════════════
   UI/UX POLISH — Card Hover States
   ═══════════════════════════════════════════ */

.zpex-glass-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.zpex-glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,168,76,0.15);
  border-color: var(--zpex-border-strong);
}
[data-theme="light"] .zpex-glass-card:hover {
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.1), 0 0 0 1px rgba(154,123,47,0.12);
}

/* ═══════════════════════════════════════════
   UI/UX POLISH — Focus States (Accessibility)
   ═══════════════════════════════════════════ */

.zpex-btn-gold:focus-visible,
.zpex-glass-card:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--zpex-accent);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════
   UI/UX POLISH — Smooth Section Transitions
   ═══════════════════════════════════════════ */

.zpex-section {
  position: relative;
}
.zpex-section + .zpex-section {
  margin-top: -1px;
}

/* ═══════════════════════════════════════════
   UI/UX POLISH — Reduced Motion
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .zpex-glass-card,
  .zpex-btn-gold,
  .zpex-lens-card img,
  .zpex-marquee__track,
  .zpex-pulse-dot,
  .zpex-hero__scroll-cue-inner,
  .zpex-spinner {
    transition: none !important;
    animation: none !important;
  }
  .zpex-fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════
   UI/UX POLISH — Responsive Improvements
   ═══════════════════════════════════════════ */

@media (max-width: 639px) {
  .zpex-hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: var(--zpex-leading-snug);
  }
  .zpex-hero__stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .zpex-hero__stat {
    min-width: calc(50% - 8px);
  }
  .zpex-about__cards {
    grid-template-columns: 1fr;
  }
  .zpex-coverage__grid {
    grid-template-columns: 1fr;
  }
  .zpex-coverage__card--featured {
    min-height: 260px;
  }
  .zpex-contact__grid {
    grid-template-columns: 1fr;
  }
  .zpex-contact__map {
    min-height: 260px;
  }
  .zpex-footer-info__top {
    flex-direction: column;
    text-align: center;
  }
  .zpex-footer-info__brand {
    justify-content: center;
  }
  .zpex-footer-info__social {
    justify-content: center;
  }
  .zpex-footer-info__bottom {
    text-align: center;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .zpex-hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .zpex-coverage__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zpex-coverage__card--featured {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════════════
   LIGHT THEME — Widget Hardcoded Color Overrides
   ═══════════════════════════════════════════ */

[data-theme="light"] .zpex-glass-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(154,123,47,0.15);
}
[data-theme="light"] .zpex-glass-card:hover {
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.08);
}
[data-theme="light"] .zpex-glass-card-strong {
  background: rgba(255,255,255,0.85);
  border-color: rgba(154,123,47,0.2);
}
[data-theme="light"] .zpex-btn-gold {
  border-color: var(--zpex-accent);
  color: var(--zpex-accent);
}
[data-theme="light"] .zpex-btn-gold:hover {
  background: var(--zpex-accent);
  color: var(--zpex-text-inverse);
}
/* Gold gradient text: dark champagne variant for readability on light bg */
[data-theme="light"] .zpex-gold-text {
  background: linear-gradient(120deg, #8A7434 10%, #6E5A22 45%, #8A7434 55%, #5E4C1D 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .zpex-divider-gold {
  background: linear-gradient(90deg, transparent, var(--zpex-accent), transparent);
}
[data-theme="light"] .zpex-hero__video-frame {
  border-color: var(--zpex-border, rgba(154,123,47,0.15));
}
[data-theme="light"] .zpex-marquee {
  border-color: var(--zpex-border, rgba(154,123,47,0.1));
}
[data-theme="light"] .zpex-coverage__card {
  border-color: var(--zpex-border, rgba(154,123,47,0.12));
}
[data-theme="light"] .zpex-contact__card {
  border-color: var(--zpex-border, rgba(154,123,47,0.1));
}
[data-theme="light"] .zpex-footer-info {
  border-color: var(--zpex-border, rgba(154,123,47,0.1));
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] .zpex-glass-card {
    background: rgba(250,249,246,0.7);
    background: color-mix(in srgb, var(--zpex-primary, #FAF9F6) 70%, transparent);
    border-color: var(--zpex-border, rgba(154,123,47,0.15));
  }
  html[data-theme="system"] .zpex-glass-card:hover {
    box-shadow: var(--zpex-shadow-md, 0 8px 24px -4px rgba(0,0,0,0.08));
  }
  html[data-theme="system"] .zpex-glass-card-strong {
    background: rgba(250,249,246,0.85);
    background: color-mix(in srgb, var(--zpex-primary, #FAF9F6) 85%, transparent);
    border-color: var(--zpex-border-strong, rgba(154,123,47,0.2));
  }
  html[data-theme="system"] .zpex-btn-gold {
    border-color: var(--zpex-accent);
    color: var(--zpex-accent);
  }
  html[data-theme="system"] .zpex-btn-gold:hover {
    background: var(--zpex-accent);
    color: var(--zpex-text-inverse);
  }
  html[data-theme="system"] .zpex-gold-text {
    background: linear-gradient(120deg, #8A7434 10%, #6E5A22 45%, #8A7434 55%, #5E4C1D 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  html[data-theme="system"] .zpex-divider-gold {
    background: linear-gradient(90deg, transparent, var(--zpex-accent), transparent);
  }
  html[data-theme="system"] .zpex-hero__video-frame {
    border-color: var(--zpex-border, rgba(154,123,47,0.15));
  }
  html[data-theme="system"] .zpex-marquee {
    border-color: var(--zpex-border, rgba(154,123,47,0.1));
  }
  html[data-theme="system"] .zpex-coverage__card {
    border-color: var(--zpex-border, rgba(154,123,47,0.12));
  }
  html[data-theme="system"] .zpex-contact__card {
    border-color: var(--zpex-border, rgba(154,123,47,0.1));
  }
  html[data-theme="system"] .zpex-footer-info {
    border-color: var(--zpex-border, rgba(154,123,47,0.1));
  }
}

/* ═══════════════════════════════════════════
   HEADER WIDGET (zpex-header)
   ═══════════════════════════════════════════ */

.zpex-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 64px;
  background: var(--zpex-glass-strong);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--zpex-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .zpex-header {
  background: var(--zpex-glass-strong);
}

.zpex-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.zpex-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.zpex-header__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.zpex-header__name {
  font-family: var(--zpex-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--zpex-text);
  letter-spacing: 0.02em;
}

/* Desktop Nav */
.zpex-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .zpex-header__nav {
    display: flex;
    align-items: center;
  }
}

.zpex-header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zpex-header__menu a {
  font-family: var(--zpex-font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--zpex-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.zpex-header__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--zpex-accent);
  transition: width 0.2s ease;
}

.zpex-header__menu a:hover {
  color: var(--zpex-accent);
}

.zpex-header__menu a:hover::after {
  width: 100%;
}

/* Actions */
.zpex-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle */
.zpex-header__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--zpex-radius-sm);
  border: 1px solid var(--zpex-border);
  background: transparent;
  color: var(--zpex-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.zpex-header__theme-toggle:hover {
  background: var(--zpex-surface-hover);
  color: var(--zpex-accent);
  border-color: var(--zpex-accent);
}

/* CTA */
.zpex-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--zpex-accent);
  color: var(--zpex-text-inverse);
  font-family: var(--zpex-font-body);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--zpex-radius-sm);
  transition: all 0.2s ease;
}

.zpex-header__cta:hover {
  background: var(--zpex-accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .zpex-header__cta {
    display: none;
  }
}

/* Mobile Menu Button */
.zpex-header__mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--zpex-radius-sm);
  border: 1px solid var(--zpex-border);
  background: transparent;
  color: var(--zpex-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.zpex-header__mobile-btn:hover {
  background: var(--zpex-surface-hover);
  color: var(--zpex-accent);
}

@media (min-width: 1024px) {
  .zpex-header__mobile-btn {
    display: none;
  }
}

/* Mobile Menu Overlay */
.zpex-mobile-menu + .zx-mobile-menu-overlay,
.zx-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.zx-mobile-menu-overlay.zx-visible {
  opacity: 1;
  visibility: visible;
}
[data-theme="light"] .zx-mobile-menu-overlay {
  background: rgba(250,249,246,0.6);
}

/* Mobile Menu Panel — Premium Drawer */
.zpex-mobile-menu {
  position: fixed;
  top: 0;
  z-index: 9999;
  width: min(85vw, 360px);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px;
  background: rgba(13,13,18,0.92);
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  border-inline-end: 1px solid var(--zpex-border);
  box-shadow: var(--zpex-shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RTL: slide from right */
[dir="rtl"] .zpex-mobile-menu {
  right: 0;
  transform: translateX(100%);
}
[dir="rtl"] .zpex-mobile-menu.zx-open {
  transform: translateX(0);
}

/* LTR: slide from left */
[dir="ltr"] .zpex-mobile-menu {
  left: 0;
  transform: translateX(-100%);
}
[dir="ltr"] .zpex-mobile-menu.zx-open {
  transform: translateX(0);
}

.zpex-mobile-menu[hidden] {
  display: flex !important;
  pointer-events: none;
}
.zpex-mobile-menu.zx-open {
  pointer-events: auto;
}

[data-theme="light"] .zpex-mobile-menu {
  background: rgba(255,255,255,0.92);
  border-inline-end-color: rgba(154,123,47,0.15);
}

/* Close button inside drawer */
.zx-mobile-menu__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-sm);
  background: transparent;
  color: var(--zpex-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.zx-mobile-menu__close:hover {
  background: var(--zpex-surface-hover);
  color: var(--zpex-accent);
}

/* Brand in drawer */
.zx-mobile-menu__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--zpex-border-subtle);
}
.zx-mobile-menu__brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--zpex-radius-sm);
}
.zx-mobile-menu__brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--zpex-text);
}

/* Navigation list */
.zpex-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.zpex-mobile-menu__list li {
  border-bottom: none;
}

.zpex-mobile-menu__list li:last-child {
  border-bottom: none;
}

.zpex-mobile-menu__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--zpex-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--zpex-text-secondary);
  text-decoration: none;
  border-radius: var(--zpex-radius-md);
  transition: all 0.2s ease;
}

.zpex-mobile-menu__list a:hover,
.zpex-mobile-menu__list .current-menu-item a {
  color: var(--zpex-accent);
  background: var(--zpex-surface-hover);
}

/* Bottom actions area (CTA + language switcher) */
.zpex-mobile-menu__actions {
  padding-top: 20px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--zpex-border-subtle);
}

.zpex-mobile-menu__actions .zpex-header__cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
}

/* Hamburger → X animation */
.zx-hamburger {
  position: relative;
  width: 24px;
  height: 24px;
}
.zx-hamburger__line {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--zpex-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.zx-hamburger__line:nth-child(1) { top: 5px; }
.zx-hamburger__line:nth-child(2) { top: 11px; }
.zx-hamburger__line:nth-child(3) { top: 17px; }

/* Hamburger open state → X */
.zx-hamburger.zx-active .zx-hamburger__line:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.zx-hamburger.zx-active .zx-hamburger__line:nth-child(2) {
  opacity: 0;
}
.zx-hamburger.zx-active .zx-hamburger__line:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ═══════════════════════════════════════════
   FOOTER WIDGET (zpex-footer)
   ═══════════════════════════════════════════ */

.zpex-footer {
  position: relative;
  border-top: 1px solid var(--zpex-border);
  padding: 48px 0 24px;
  background: var(--zpex-surface);
}

[data-theme="light"] .zpex-footer {
  background: var(--zpex-surface);
}

.zpex-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .zpex-footer__top {
    grid-template-columns: 1fr auto;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .zpex-footer__top {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }
}

/* Brand */
.zpex-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zpex-footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.zpex-footer__brand-name {
  font-family: var(--zpex-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--zpex-accent);
}

.zpex-footer__brand-desc {
  font-family: var(--zpex-font-body);
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
  margin-top: 2px;
}

/* Nav */
.zpex-footer__nav {
  display: flex;
  align-items: center;
}

.zpex-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zpex-footer__menu a {
  font-family: var(--zpex-font-body);
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.zpex-footer__menu a:hover {
  color: var(--zpex-accent);
}

/* Social */
.zpex-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zpex-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--zpex-radius-sm);
  border: 1px solid var(--zpex-border);
  color: var(--zpex-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.zpex-footer__social a:hover {
  color: var(--zpex-accent);
  border-color: var(--zpex-accent);
  background: var(--zpex-surface-hover);
}

/* Divider */
.zpex-footer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zpex-border), transparent);
  margin: 24px 0;
}

/* Bottom */
.zpex-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--zpex-font-body);
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
}

.zpex-footer__bottom p {
  margin: 0;
}

.zpex-footer__tagline {
  font-style: italic;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   PHASE 13 — INNER PAGE WIDGETS
   ═══════════════════════════════════════════ */

/* ── Page Hero ── */
.zpex-page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.zpex-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.zpex-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.7) 0%, rgba(10,10,15,0.9) 100%);
}
[data-theme="light"] .zpex-page-hero__overlay {
  background: linear-gradient(180deg, rgba(250,249,246,0.7) 0%, rgba(250,249,246,0.9) 100%);
}
.zpex-page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 64px 24px;
}
.zpex-page-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--zpex-accent-muted);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-full);
  font-size: var(--zpex-type-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zpex-accent);
  margin-bottom: 20px;
}
.zpex-page-hero__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-display);
  font-weight: 700;
  line-height: var(--zpex-leading-tight);
  color: var(--zpex-text);
  margin: 0 0 16px;
}
.zpex-page-hero__desc {
  font-size: var(--zpex-type-body);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  margin: 0;
}

/* ── Feature Grid ── */
.zpex-feature-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--zpex-space-lg);
}
@media (max-width: 1024px) {
  .zpex-feature-grid__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .zpex-feature-grid__grid { grid-template-columns: 1fr; }
}
.zpex-feature-grid__card {
  padding: var(--zpex-space-xl);
  background: var(--zpex-glass);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.zpex-feature-grid__card:hover {
  transform: translateY(-4px);
  border-color: var(--zpex-accent);
}
.zpex-feature-grid__icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--zpex-accent-muted), transparent 72%),
    var(--zpex-surface-elevated);
  border: 1px solid var(--zpex-border-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.05);
  color: var(--zpex-accent);
  margin-bottom: var(--zpex-space-md);
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.zpex-feature-grid__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.zpex-feature-grid__icon i[data-lucide] {
  display: flex;
}
/* lucide placeholders can be empty until converted — reserve size, hide broken fonts */
.zpex-feature-grid__icon i[data-lucide]::before { content: ""; }
.zpex-feature-grid__card:hover .zpex-feature-grid__icon {
  color: var(--zpex-accent-light);
  border-color: var(--zpex-accent);
  box-shadow: var(--zpex-shadow-gold), 0 0 20px rgba(201,168,76,0.15);
  transform: translateY(-3px) scale(1.05);
}
[data-theme="light"] .zpex-feature-grid__icon {
  background: var(--zpex-accent-muted);
}
.zpex-feature-grid__title {
  font-size: var(--zpex-type-h3);
  font-weight: 600;
  color: var(--zpex-text);
  margin: 0 0 8px;
}
.zpex-feature-grid__description {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  margin: 0;
}

/* ── Stats ── */
.zpex-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--zpex-space-lg);
  text-align: center;
}
@media (max-width: 1024px) {
  .zpex-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .zpex-stats__grid { grid-template-columns: 1fr; }
}
.zpex-stats__item {
  padding: var(--zpex-space-xl);
  background: var(--zpex-glass);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-lg);
}
.zpex-stats__number {
  font-family: var(--zpex-font-num);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--zpex-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.zpex-stats__suffix {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--zpex-accent-2);
}
.zpex-stats__label {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  margin: 0;
}

/* ── Timeline ── */
.zpex-timeline {
  position: relative;
  padding: var(--zpex-space-xl) 0;
}
.zpex-timeline__track {
  position: relative;
}
.zpex-timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--zpex-accent);
  inset-inline-start: 50%;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .zpex-timeline__line { inset-inline-start: 20px; transform: none; }
}
.zpex-timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--zpex-space-2xl);
}
.zpex-timeline__item--left {
  flex-direction: row;
  text-align: start;
}
.zpex-timeline__item--right {
  flex-direction: row-reverse;
  text-align: start;
}
@media (max-width: 768px) {
  .zpex-timeline__item,
  .zpex-timeline__item--left,
  .zpex-timeline__item--right {
    flex-direction: row;
    text-align: start;
    padding-inline-start: 52px;
  }
}
.zpex-timeline__dot {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--zpex-accent);
  border: 3px solid var(--zpex-primary);
  border-radius: 50%;
  z-index: 1;
}
@media (max-width: 768px) {
  .zpex-timeline__dot { inset-inline-start: 20px; }
}
.zpex-timeline__card {
  width: calc(50% - 40px);
  padding: var(--zpex-space-lg);
  background: var(--zpex-glass);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-lg);
}
@media (max-width: 768px) {
  .zpex-timeline__card { width: 100%; }
}
.zpex-timeline__year {
  font-family: var(--zpex-font-num);
  font-size: var(--zpex-type-caption);
  font-weight: 700;
  color: var(--zpex-accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.zpex-timeline__title {
  font-size: var(--zpex-type-h3);
  font-weight: 600;
  color: var(--zpex-text);
  margin: 0 0 8px;
}
.zpex-timeline__description {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  margin: 0;
  line-height: var(--zpex-leading-relaxed);
}

/* ── Service Grid ── */
.zpex-service-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--zpex-space-lg);
}
@media (max-width: 1024px) {
  .zpex-service-grid__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .zpex-service-grid__grid { grid-template-columns: 1fr; }
}
.zpex-service-grid__card {
  padding: var(--zpex-space-xl);
  background: var(--zpex-glass);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.zpex-service-grid__card:hover {
  transform: translateY(-6px);
  border-color: var(--zpex-accent);
  box-shadow: 0 12px 32px -4px rgba(201,168,76,0.12);
}
.zpex-service-grid__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zpex-accent-muted);
  border-radius: var(--zpex-radius-md);
  color: var(--zpex-accent);
  margin-bottom: var(--zpex-space-md);
}
.zpex-service-grid__title {
  font-size: var(--zpex-type-h3);
  font-weight: 600;
  color: var(--zpex-text);
  margin: 0 0 8px;
}
.zpex-service-grid__description {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  margin: 0 0 var(--zpex-space-md);
  flex: 1;
}
.zpex-service-grid__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--zpex-type-small);
  font-weight: 600;
  color: var(--zpex-accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.zpex-service-grid__link:hover {
  gap: 10px;
}

/* ── Process / Steps ── */
.zpex-process {
  position: relative;
}
.zpex-process__steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--zpex-space-lg);
  position: relative;
  /* leave room above the cards for the half-circle that sticks out */
  padding: calc(var(--zpex-space-xl) + 28px) 0 var(--zpex-space-xl);
}
@media (max-width: 768px) {
  .zpex-process__steps {
    flex-direction: column;
    align-items: stretch;
    gap: var(--zpex-space-xl);
  }
}
.zpex-process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
/* The number circle straddles the top edge of the card */
.zpex-process__step-number {
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zpex-accent);
  color: var(--zpex-primary);
  font-family: var(--zpex-font-num);
  font-size: var(--zpex-type-h3);
  font-weight: 700;
  border-radius: 50%;
  border: 3px solid var(--zpex-glass);
  z-index: 2;
}
.zpex-process__step-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  /* clear the lower half of the circle that overlaps the card */
  padding: 40px var(--zpex-space-md) var(--zpex-space-lg);
}
.zpex-process__step-title {
  font-size: var(--zpex-type-h3);
  font-weight: 600;
  color: var(--zpex-text);
  margin: 0 0 8px;
}
.zpex-process__step-desc {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  margin: 0;
}
.zpex-process__connector {
  display: none;
}
/* Horizontal connector that runs through the centre of the circles */
.zpex-process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  transform: translateY(-50%);
  width: calc(100% + var(--zpex-space-lg));
  height: 2px;
  background: var(--zpex-border-strong);
  z-index: 0;
}
@media (max-width: 768px) {
  /* Vertical connector linking the stacked circles */
  .zpex-process__step:not(:last-child)::after {
    top: 0;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + var(--zpex-space-xl));
  }
}

/* ── FAQ ── */
.zpex-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--zpex-space-sm);
}
.zpex-faq__item {
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-md);
  background: var(--zpex-glass);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.zpex-faq__item.is-active {
  border-color: var(--zpex-accent);
  box-shadow: 0 4px 16px rgba(201,168,76,0.08);
}
.zpex-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zpex-space-md);
  padding: var(--zpex-space-md) var(--zpex-space-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--zpex-type-body);
  font-weight: 600;
  color: var(--zpex-text);
  text-align: start;
  font-family: inherit;
  line-height: var(--zpex-leading-snug);
  transition: color 0.2s ease;
}
.zpex-faq__question:hover {
  color: var(--zpex-accent);
}
.zpex-faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--zpex-accent);
  transition: transform 0.3s ease;
}
.zpex-faq__item.is-active .zpex-faq__icon {
  transform: rotate(180deg);
}
.zpex-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.zpex-faq__item.is-active .zpex-faq__answer {
  max-height: 500px;
}
.zpex-faq__answer-inner {
  padding: 0 var(--zpex-space-lg) var(--zpex-space-lg);
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
}

/* ── Info Cards ── */
.zpex-info-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--zpex-space-lg);
}
@media (max-width: 1024px) {
  .zpex-info-cards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .zpex-info-cards__grid { grid-template-columns: 1fr; }
}
.zpex-info-cards__card {
  padding: var(--zpex-space-xl);
  background: var(--zpex-glass);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-lg);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.zpex-info-cards__card:hover {
  transform: translateY(-4px);
  border-color: var(--zpex-accent);
}
.zpex-info-cards__icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zpex-accent);
  border-radius: var(--zpex-radius-full);
  color: var(--zpex-primary);
  margin: 0 auto var(--zpex-space-md);
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.28);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
}
.zpex-info-cards__card:hover .zpex-info-cards__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.35);
}
.zpex-info-cards__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}
.zpex-info-cards__title {
  font-size: var(--zpex-type-h3);
  font-weight: 600;
  color: var(--zpex-text);
  margin: 0 0 8px;
}
.zpex-info-cards__desc {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  margin: 0 0 var(--zpex-space-md);
}
.zpex-info-cards__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--zpex-accent);
  color: var(--zpex-primary);
  border-radius: var(--zpex-radius-sm);
  font-size: var(--zpex-type-small);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.zpex-info-cards__link:hover {
  background: var(--zpex-accent-hover);
}

/* ── CTA Section ── */
.zpex-cta {
  position: relative;
  padding: var(--zpex-space-4xl) var(--zpex-space-lg);
  text-align: center;
  overflow: hidden;
}
.zpex-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.zpex-cta__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}
[data-theme="light"] .zpex-cta__overlay {
  background: transparent;
}
.zpex-cta__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.zpex-cta__inner {
  padding: var(--zpex-space-2xl);
  background: var(--zpex-glass);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.zpex-cta__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h1);
  font-weight: 700;
  color: var(--zpex-text);
  margin: 0 0 16px;
  line-height: var(--zpex-leading-tight);
}
.zpex-cta__desc {
  font-size: var(--zpex-type-body);
  color: var(--zpex-text-secondary);
  margin: 0 0 var(--zpex-space-xl);
  line-height: var(--zpex-leading-relaxed);
}
.zpex-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--zpex-accent);
  color: var(--zpex-primary);
  border: none;
  border-radius: var(--zpex-radius-sm);
  font-size: var(--zpex-type-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease;
}
.zpex-cta__btn:hover {
  background: var(--zpex-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

/* ── Breadcrumbs ── */
.zpex-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-muted);
}
.zpex-breadcrumbs a {
  color: var(--zpex-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.zpex-breadcrumbs a:hover {
  color: var(--zpex-accent);
}
.zpex-breadcrumbs__sep {
  color: var(--zpex-text-muted);
  opacity: 0.5;
}
.zpex-breadcrumbs__current {
  color: var(--zpex-accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   RICH CONTENT WIDGET
   ═══════════════════════════════════════════ */

.zpex-rich-content {
  position: relative;
}
.zpex-rich-content__title {
  font-family: var(--zpex-font-display);
  font-size: var(--zpex-type-h2);
  color: var(--zpex-text);
  margin: 0 0 24px;
}
[dir="rtl"] .zpex-rich-content__title {
  font-family: var(--zpex-font-body);
}
.zpex-rich-content__body {
  color: var(--zpex-text-secondary);
  font-size: var(--zpex-type-body);
  line-height: var(--zpex-leading-relaxed);
  max-width: 720px;
}
.zpex-rich-content__body h1,
.zpex-rich-content__body h2,
.zpex-rich-content__body h3 {
  color: var(--zpex-text);
  margin-top: 32px;
  margin-bottom: 12px;
}
.zpex-rich-content__body p {
  margin-bottom: 16px;
}
.zpex-rich-content__body ul,
.zpex-rich-content__body ol {
  padding-inline-start: 24px;
  margin-bottom: 16px;
}
.zpex-rich-content__body li {
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   TRUST BADGES WIDGET
   ═══════════════════════════════════════════ */

.zpex-trust-badges {
  position: relative;
  padding: 32px 0;
}
.zpex-trust-badges__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.zpex-trust-badges__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--zpex-radius-full);
  white-space: nowrap;
}
.zpex-trust-badges__icon {
  color: var(--zpex-accent);
  font-size: 20px;
  display: flex;
  align-items: center;
}
.zpex-trust-badges__label {
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   TESTIMONIAL WIDGET
   ═══════════════════════════════════════════ */

.zpex-testimonial {
  padding: 32px;
  border-radius: var(--zpex-radius-lg);
}
.zpex-testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--zpex-accent);
  margin-bottom: 16px;
}
.zpex-testimonial__quote {
  font-family: var(--zpex-font-body);
  font-size: var(--zpex-type-body);
  color: var(--zpex-text-secondary);
  line-height: var(--zpex-leading-relaxed);
  margin: 0 0 20px;
  font-style: italic;
}
[dir="rtl"] .zpex-testimonial__quote {
  font-family: var(--zpex-font-body);
}
.zpex-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zpex-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--zpex-border);
}
.zpex-testimonial__name {
  font-weight: 600;
  color: var(--zpex-text);
  font-size: var(--zpex-type-small);
}
.zpex-testimonial__role {
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
}

/* ═══════════════════════════════════════════
   PARTNER STRIP WIDGET
   ═══════════════════════════════════════════ */

.zpex-partner-strip {
  position: relative;
  padding: 40px 0;
}
.zpex-partner-strip__title {
  text-align: center;
  font-size: var(--zpex-type-small);
  color: var(--zpex-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.zpex-partner-strip__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.zpex-partner-strip__item {
  flex-shrink: 0;
}
.zpex-partner-strip__link {
  display: block;
}
.zpex-partner-strip__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.zpex-partner-strip__item:hover .zpex-partner-strip__logo {
  opacity: 1;
  filter: grayscale(0%);
}

/* ═══════════════════════════════════════════
   CONTACT FORM WIDGET
   ═══════════════════════════════════════════ */

.zpex-contact-form {
  padding: 32px;
  border-radius: var(--zpex-radius-lg);
}
.zpex-contact-form--fallback {
  text-align: center;
}
.zpex-contact-form__fallback-text {
  color: var(--zpex-text-secondary);
  margin-bottom: 16px;
}
.zpex-contact-form__fallback-link {
  display: inline-flex;
}
.zpex-contact-form__notice {
  color: var(--zpex-text-muted);
  font-size: var(--zpex-type-small);
  font-style: italic;
}

/* ── Native Form ── */
.zpex-contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.zpex-contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 640px) {
  .zpex-contact-form__row--2col {
    flex-direction: row;
    gap: 16px;
  }
  .zpex-contact-form__row--2col .zpex-contact-form__field {
    flex: 1;
  }
}
.zpex-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zpex-contact-form__label {
  font-size: var(--zpex-type-small);
  font-weight: 500;
  color: var(--zpex-text-secondary);
  letter-spacing: 0.01em;
}
.zpex-contact-form__required {
  color: var(--zpex-accent);
  margin-inline-start: 2px;
}
.zpex-contact-form__input,
.zpex-contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--zpex-type-body);
  font-family: inherit;
  color: var(--zpex-text);
  background: var(--zpex-surface);
  border: 1px solid var(--zpex-border);
  border-radius: var(--zpex-radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
}
.zpex-contact-form__input::placeholder,
.zpex-contact-form__textarea::placeholder {
  color: var(--zpex-text-muted);
}
.zpex-contact-form__input:focus,
.zpex-contact-form__textarea:focus {
  border-color: var(--zpex-accent);
  box-shadow: 0 0 0 3px var(--zpex-accent-muted);
}
[dir="rtl"] .zpex-contact-form__input[dir="ltr"],
[dir="rtl"] .zpex-contact-form__textarea[dir="ltr"] {
  text-align: start;
}
.zpex-contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}
.zpex-contact-form__row--actions {
  flex-direction: row;
  align-items: center;
}
.zpex-contact-form__submit {
  cursor: pointer;
  font-family: inherit;
}
.zpex-contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.zpex-contact-form__submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.zpex-spinner {
  animation: zpex-spin 1s linear infinite;
}
@keyframes zpex-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.zpex-contact-form__status {
  padding: 10px 16px;
  border-radius: var(--zpex-radius-sm);
  font-size: var(--zpex-type-small);
  margin-top: 8px;
}
.zpex-contact-form__status--success {
  background: rgba(123,166,104,0.12);
  color: var(--zpex-ticker-up);
  border: 1px solid rgba(123,166,104,0.2);
}
.zpex-contact-form__status--error {
  background: rgba(184,122,104,0.12);
  color: var(--zpex-ticker-down);
  border: 1px solid rgba(184,122,104,0.2);
}
[data-theme="light"] .zpex-contact-form__status--success {
  background: rgba(61,122,42,0.08);
  color: #3D7A2A;
  border-color: rgba(61,122,42,0.15);
}
[data-theme="light"] .zpex-contact-form__status--error {
  background: rgba(168,68,50,0.08);
  color: #A84432;
  border-color: rgba(168,68,50,0.15);
}

/* ═══════════════════════════════════════════
   MOBILE POLISH + LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════ */

/* Process: keep the circle straddling the top edge on mobile */
@media (max-width: 768px) {
  .zpex-process__step { text-align: center; }
  .zpex-process__step-content { padding-top: 40px; }
}

/* Trust badges: prevent overflow on small screens */
@media (max-width: 480px) {
  .zpex-trust-badges__strip { gap: 8px; }
  .zpex-trust-badges__item { padding: 8px 14px; font-size: var(--zpex-type-caption); }
}

/* Timeline: mobile padding */
@media (max-width: 768px) {
  .zpex-timeline__card { padding: var(--zpex-space-md); }
}

/* Page Hero: mobile padding */
@media (max-width: 640px) {
  .zpex-page-hero__content { padding: 48px 16px; }
  .zpex-page-hero__title { font-size: var(--zpex-type-h2); }
}

/* Feature Grid: mobile card padding */
@media (max-width: 640px) {
  .zpex-feature-grid__card { padding: var(--zpex-space-lg); }
}

/* Info Cards: mobile card padding */
@media (max-width: 640px) {
  .zpex-info-cards__card { padding: var(--zpex-space-lg); }
}

/* Service Grid: mobile card padding */
@media (max-width: 640px) {
  .zpex-service-grid__card { padding: var(--zpex-space-lg); }
}

/* Contact Form: mobile padding */
@media (max-width: 640px) {
  .zpex-contact-form { padding: 20px; }
}

/* Light mode: inner page widget glass cards */
[data-theme="light"] .zpex-feature-grid__card,
[data-theme="light"] .zpex-service-grid__card,
[data-theme="light"] .zpex-info-cards__card,
[data-theme="light"] .zpex-timeline__card,
[data-theme="light"] .zpex-contact-form {
  background: var(--zpex-surface-elevated);
  border-color: var(--zpex-border);
}

/* Light mode: process step number */
[data-theme="light"] .zpex-process__step-number {
  background: var(--zpex-accent);
  color: var(--zpex-primary);
}

/* Light mode: FAQ */
[data-theme="light"] .zpex-faq__item {
  background: var(--zpex-surface-elevated);
  border-color: var(--zpex-border);
}

/* Light mode: CTA overlay */
[data-theme="light"] .zpex-cta__inner {
  background: var(--zpex-surface-elevated);
  border-color: var(--zpex-border);
}

/* Light mode: trust badges */
[data-theme="light"] .zpex-trust-badges__item {
  background: var(--zpex-surface-elevated);
  border: 1px solid var(--zpex-border);
}

/* Light mode: testimonial */
[data-theme="light"] .zpex-testimonial {
  background: var(--zpex-surface-elevated);
  border: 1px solid var(--zpex-border);
}

/* ═══════════════════════════════════════════════════════════
   PRICING BOARD (zpex-pricing-board) — Elementor widget
   ═══════════════════════════════════════════════════════════ */

.zpex-pricing-board {
  display: flex;
  flex-direction: column;
  gap: var(--zpex-space-md);
}

.zpex-pricing-board__title {
  font-family: var(--zpex-font-body);
  font-size: var(--zpex-type-h2);
  color: var(--zpex-text);
  margin: 0;
}

.zpex-pricing-board__subtitle {
  color: var(--zpex-text-secondary);
  font-size: var(--zpex-type-small);
  margin: 6px 0 0;
}

.zpex-pricing-board__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--zpex-space-md);
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
}

.zpb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--zpex-accent);
  font-weight: 600;
}

.zpb-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: zpb-pulse 1.6s ease-in-out infinite;
}

@keyframes zpb-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50%      { opacity: 0.55; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.zpex-pricing-board__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--zpex-space-lg);
  transition: opacity 0.25s ease;
}

.zpex-pricing-board.zpb-is-updating .zpex-pricing-board__body {
  opacity: 0.55;
}

.zpex-pricing-board__panel {
  background: var(--zpex-surface);
  border: 1px solid var(--zpex-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--zpex-shadow-md);
}

.zpex-pricing-board__cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--zpex-accent-light);
  background: linear-gradient(90deg, var(--zpex-accent-muted), transparent);
  border-bottom: 1px solid var(--zpex-border);
}

.zpb-cat-icon { font-size: 1.1em; line-height: 1; }

.zpex-pricing-board__scroll { overflow-x: auto; }

.zpex-pricing-board__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--zpex-type-small);
}

.zpex-pricing-board th {
  text-align: start;
  padding: 10px 14px;
  font-weight: 600;
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
  background: var(--zpex-surface-elevated);
  white-space: nowrap;
}

.zpex-pricing-board td {
  padding: 12px 14px;
  vertical-align: middle;
}

.zpex-pricing-board tbody tr + tr {
  border-top: 1px solid var(--zpex-border-subtle);
}

.zpex-pricing-board tbody tr:hover {
  background: var(--zpex-surface-hover);
}

.zpb-name {
  font-weight: 600;
  color: var(--zpex-text);
  white-space: nowrap;
}

.zpb-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.zpb-name a:hover { color: var(--zpex-accent); }

.zpb-unit {
  color: var(--zpex-text-muted);
  font-size: var(--zpex-type-caption);
  white-space: nowrap;
}

.zpb-price {
  text-align: end;
  font-family: var(--zpex-font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.zpb-is-buy  { color: #4ADE80; }
.zpb-is-sell { color: var(--zpex-accent-light); }

.zpb-suffix {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--zpex-text-muted);
}

.zpb-dash { color: var(--zpex-text-muted); }

.zpb-change-cell { text-align: end; white-space: nowrap; }

.zpb-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--zpex-font-num);
  font-variant-numeric: tabular-nums;
  font-size: var(--zpex-type-caption);
  font-weight: 600;
}

.zpb-change--up   { color: #22c55e; }
.zpb-change--down { color: #ef4444; }
.zpb-change--flat { color: var(--zpex-text-muted); }

.zpb-pct { font-size: 0.85em; opacity: 0.8; }

.zpb-time {
  text-align: end;
  font-size: var(--zpex-type-caption);
  color: var(--zpex-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.zpex-pricing-board__empty {
  grid-column: 1 / -1;
  padding: var(--zpex-space-xl);
  text-align: center;
  color: var(--zpex-text-muted);
  border: 1px dashed var(--zpex-border-strong);
  border-radius: 16px;
}

/* Light mode tweaks */
[data-theme="light"] .zpb-is-buy       { color: #15803D; }
[data-theme="light"] .zpb-is-sell      { color: var(--zpex-accent-hover); }
[data-theme="light"] .zpb-change--up   { color: #16A34A; }
[data-theme="light"] .zpb-change--down { color: #DC2626; }

/* Section-header badge link (about/contact widgets) */
.zpex-section-header__badge-link {
  color: inherit;
  text-decoration: none;
}
.zpex-section-header__badge-link:hover .zpex-section-header__text {
  text-decoration: underline;
  text-underline-offset: 4px;
}
