/*
Theme Name: EngageX
Theme URI: https://engagex.local
Author: EngageX
Description: Real Audience Social Media Marketing Service — modern marketing website for social media growth services.
Version: 1.23.46
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: engagex
*/

/* ─── Brand tokens (shared) ─── */
:root {
  --brand-purple: #8a2be2;
  --brand-purple-dark: #6b21c8;
  --brand-blue: #00bfff;
  --brand-blue-dark: #0284c7;
  --gradient: linear-gradient(135deg, #8a2be2 0%, #5b5fea 50%, #00bfff 100%);
  --gradient-text: linear-gradient(135deg, #8a2be2, #00bfff);
  --accent: #00bfff;
  --accent-light: #8a2be2;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  /* CTA buttons (.btn, WC place-order / coupon Apply, checkout) */
  --btn-height: 44px;
  --btn-height-sm: 40px;
  --btn-padding-x: 20px;
  --btn-padding-x-sm: 16px;
  --btn-font-size: 0.875rem;
  --btn-font-size-sm: 0.8125rem;
  --btn-font-weight: 600;
  --btn-radius: 999px;
  --btn-gap: 8px;
  /* Icon tools (theme toggle, cart, notify) — intentionally not pill */
  --tool-size: 38px;
  --tool-size-sm: 36px;
  --tool-radius: 11px;
  /* Surfaces (cards / panels) use --radius / --radius-lg, not button tokens */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-si: 'Plus Jakarta Sans', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ta: 'Plus Jakarta Sans', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display-si: 'Plus Jakarta Sans', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display-ta: 'Plus Jakarta Sans', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Light theme (default) ─── */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #ffffff;
  --bg-secondary: #f4f7ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8faff;
  --text-primary: #0a0a0a;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: rgba(15, 23, 42, 0.1);
  --accent-glow: rgba(0, 191, 255, 0.28);
  --shadow: 0 8px 30px rgba(138, 43, 226, 0.08);
  --shadow-glow: 0 12px 40px rgba(0, 191, 255, 0.18);
  --header-scrolled-bg: rgba(255, 255, 255, 0.92);
  --header-scrolled-shadow: 0 4px 20px rgba(138, 43, 226, 0.06);
  --header-shell-bg: rgba(255, 255, 255, 0.72);
  --header-shell-border: rgba(138, 43, 226, 0.12);
  --header-shell-shadow: 0 8px 32px rgba(138, 43, 226, 0.08);
  --nav-link-hover: rgba(138, 43, 226, 0.08);
  --nav-dropdown-bg: rgba(255, 255, 255, 0.98);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --nav-mobile-shadow: 0 8px 24px rgba(138, 43, 226, 0.08);
  --hero-glow-purple: rgba(138, 43, 226, 0.12);
  --hero-glow-blue: rgba(0, 191, 255, 0.12);
  --input-bg: #f4f7ff;
  --toggle-bg: #f4f7ff;
  --logo-display-light: block;
  --logo-display-dark: none;
}

/* ─── Dark theme ─── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #000000;
  --bg-secondary: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a27;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(0, 191, 255, 0.35);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 40px rgba(138, 43, 226, 0.25);
  --header-scrolled-bg: rgba(0, 0, 0, 0.92);
  --header-scrolled-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --header-shell-bg: rgba(10, 10, 15, 0.78);
  --header-shell-border: rgba(255, 255, 255, 0.1);
  --header-shell-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --nav-link-hover: rgba(0, 191, 255, 0.1);
  --nav-dropdown-bg: rgba(18, 18, 26, 0.98);
  --nav-mobile-bg: rgba(10, 10, 15, 0.98);
  --nav-mobile-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --hero-glow-purple: rgba(138, 43, 226, 0.22);
  --hero-glow-blue: rgba(0, 191, 255, 0.15);
  --input-bg: #0a0a0f;
  --toggle-bg: #12121a;
  --logo-display-light: none;
  --logo-display-dark: block;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-purple);
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(138, 43, 226, 0.18);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ─── Buttons (theme-wide) ─── */
.btn,
.engagex-wc-main .button,
.engagex-wc-main button.button,
.engagex-wc-main input.button,
.engagex-wc-main .woocommerce-button,
.engagex-wc-main .single_add_to_cart_button,
.engagex-wc-main button[type="submit"]:not(.engagex-select__option):not(.theme-toggle):not(.header-tool-btn),
.wc-block-components-button:not(.is-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  box-sizing: border-box;
  min-height: var(--btn-height);
  height: auto;
  padding: 0 var(--btn-padding-x);
  border-radius: var(--btn-radius);
  border: none;
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary,
.engagex-wc-main .button.alt,
.engagex-wc-main .checkout-button,
.engagex-wc-main .single_add_to_cart_button,
.engagex-wc-main button[type="submit"]:not(.engagex-select__option),
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wc-block-components-totals-coupon__form .wc-block-components-button:not(.is-link) {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover,
.engagex-wc-main .button.alt:hover,
.engagex-wc-main .checkout-button:hover,
.engagex-wc-main .single_add_to_cart_button:hover,
.engagex-wc-main button[type="submit"]:not(.engagex-select__option):hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-totals-coupon__form .wc-block-components-button:not(.is-link):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px var(--accent-glow);
  color: #fff;
}

/* Disabled CTAs — muted solid, not washed-out opacity */
.btn:disabled,
.btn[aria-disabled="true"],
.engagex-wc-main .button:disabled,
.engagex-wc-main button:disabled,
.wc-block-components-button:disabled,
.wc-block-components-totals-coupon__form .wc-block-components-button:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
  background: var(--bg-secondary) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border) !important;
  filter: none;
}

.btn.btn-secondary,
a.btn.btn-secondary,
button.btn.btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: rgba(138, 43, 226, 0.1) !important;
  color: #c084fc !important;
  border: 1.5px solid rgba(192, 132, 252, 0.55) !important;
  box-shadow: none !important;
}

.btn.btn-secondary:hover,
a.btn.btn-secondary:hover,
button.btn.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(138, 43, 226, 0.2) !important;
  color: #e9d5ff !important;
  border-color: rgba(216, 180, 254, 0.85) !important;
  box-shadow: 0 8px 22px rgba(138, 43, 226, 0.22) !important;
}

[data-theme="light"] .btn.btn-secondary,
[data-theme="light"] a.btn.btn-secondary,
[data-theme="light"] button.btn.btn-secondary {
  background: rgba(138, 43, 226, 0.08) !important;
  color: var(--brand-purple) !important;
  border-color: rgba(138, 43, 226, 0.4) !important;
}

[data-theme="light"] .btn.btn-secondary:hover,
[data-theme="light"] a.btn.btn-secondary:hover,
[data-theme="light"] button.btn.btn-secondary:hover {
  background: rgba(138, 43, 226, 0.14) !important;
  color: var(--brand-purple) !important;
  border-color: rgba(138, 43, 226, 0.65) !important;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background: rgba(0, 191, 255, 0.08);
  color: var(--brand-blue-dark);
}

.btn-sm,
.header-cta .btn {
  min-height: var(--btn-height-sm);
  padding: 0 var(--btn-padding-x-sm);
  font-size: var(--btn-font-size-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  box-shadow: none;
  min-height: var(--btn-height-sm);
  padding: 0 12px;
  font-size: var(--btn-font-size-sm);
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--brand-blue);
  background: var(--nav-link-hover);
}

.btn-primary {
  color: #fff;
}

/* Mobile / tablet: match Home hero button sizing site-wide */
@media (max-width: 1024px) {
  :root,
  [data-theme="light"],
  [data-theme="dark"] {
    --btn-height: 40px;
    --btn-height-sm: 40px;
    --btn-padding-x: 16px;
    --btn-padding-x-sm: 16px;
    --btn-font-size: 0.8125rem;
    --btn-font-size-sm: 0.8125rem;
    --btn-gap: 4px;
  }
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: padding var(--transition);
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header.scrolled {
  padding: 8px 0;
}

.site-header.scrolled .header-shell {
  box-shadow: var(--header-scrolled-shadow);
}

.header-container {
  max-width: 1400px;
  position: relative;
}

.header-shell {
  position: relative;
  border-radius: 18px;
  background: var(--header-shell-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--header-shell-border);
  box-shadow: var(--header-shell-shadow);
  padding: 5px 8px 5px 14px;
  transition: var(--transition);
}

.site-header .main-nav {
  position: static;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  z-index: 5;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  min-height: 48px;
}

.header-brand {
  flex-shrink: 0;
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.site-logo:hover {
  opacity: 0.85;
}

.site-logo .logo-image--light {
  display: var(--logo-display-light);
}

.site-logo .logo-image--dark {
  display: var(--logo-display-dark);
}

.site-logo .logo-image--light,
.site-logo .logo-image--dark {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-brand .logo-image--light,
.footer-brand .logo-image--dark {
  height: 48px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tool-size-sm);
  height: var(--tool-size-sm);
  border-radius: var(--tool-radius);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--brand-blue);
  background: var(--nav-link-hover);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tool-size);
  height: var(--tool-size);
  border-radius: var(--tool-radius);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.header-tool-btn:hover,
.header-tool-btn[aria-expanded="true"] {
  color: var(--brand-blue);
  border-color: rgba(138, 43, 226, 0.28);
  background: var(--nav-link-hover);
}

.header-tool-btn svg {
  width: 18px;
  height: 18px;
}

.header-notifications {
  position: relative;
}

.header-notifications__badge,
.engagex-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.45);
  pointer-events: none;
}

.header-notifications__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(320px, calc(100vw - 28px));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--nav-dropdown-bg);
  box-shadow: var(--header-shell-shadow);
  overflow: hidden;
}

.header-notifications__head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.header-notifications__head strong {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.header-notifications__body {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

.header-notifications__empty {
  margin: 0;
  padding: 22px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.header-notifications__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-notifications__list li + li {
  margin-top: 4px;
}

.header-notifications__list a,
.header-notifications__list li > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.header-notifications__list a:hover {
  background: var(--nav-link-hover);
}

.header-notifications__list li.is-unread a,
.header-notifications__list li.is-unread > span {
  background: rgba(138, 43, 226, 0.08);
  box-shadow: inset 3px 0 0 var(--brand-purple);
}

.header-notifications__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-notifications__text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.header-notifications__foot {
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  padding: 10px 12px;
  text-align: center;
}

.header-notifications__foot a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary, #0b6bcb);
}

.header-notifications__foot a:hover {
  text-decoration: underline;
}

.engagex-cart-link {
  position: relative;
  text-decoration: none;
}

.engagex-cart-link:hover {
  color: var(--brand-blue);
  border-color: rgba(138, 43, 226, 0.28);
  background: var(--nav-link-hover);
}

.engagex-cart-link .engagex-cart-icon {
  width: 18px;
  height: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}


.nav-link:hover {
  color: var(--text-primary);
  background: var(--nav-link-hover);
}

.nav-link.is-active {
  color: var(--brand-purple);
  background: rgba(138, 43, 226, 0.1);
  font-weight: 600;
}

.nav-link--shop.is-active {
  color: var(--brand-purple);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle .nav-chevron {
  opacity: 0.6;
  transition: transform var(--transition);
}

.nav-dropdown.is-open .nav-chevron,
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Invisible bridge so mouse can move into the menu without losing :hover */
.nav-dropdown::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 18px;
  z-index: 99;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  padding: 12px;
  border-radius: 20px;
  background: var(--nav-dropdown-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--nav-dropdown-bg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

/* Hit area above the panel (covers the visual gap under the toggle) */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  min-height: 48px;
}

.nav-dropdown-item:hover {
  background: var(--nav-link-hover);
  color: var(--text-primary);
  transform: translateX(2px);
}

.nav-dropdown-label {
  white-space: nowrap;
  line-height: 1.2;
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.nav-dropdown-icon.engagex-platform-icon-box .engagex-social-icon {
  width: 16px;
  height: 16px;
}

[data-theme="dark"] .nav-dropdown-icon {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nav-dropdown-icon.platform-icon--tiktok,
.nav-dropdown-icon[style*="background:#000"],
.nav-dropdown-icon[style*="background: #000"] {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-dropdown-icon.platform-icon--twitter {
  background: #0a0a0a !important;
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.nav-dropdown-icon.platform-icon--twitter .engagex-social-icon {
  color: #ffffff !important;
}

[data-theme="dark"] .nav-dropdown-icon.platform-icon--twitter {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nav-dropdown-icon.platform-icon--twitter .engagex-social-icon {
  color: #000000 !important;
}

.nav-dropdown-footer {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-align: center;
  transition: var(--transition);
}

.nav-dropdown-footer:hover {
  color: var(--brand-purple);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.header-account-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-account-link__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  margin-left: 4px;
}

.nav-toggle:hover {
  background: var(--nav-link-hover);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  pointer-events: none;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header.nav-open .header-container,
.site-header.nav-open .header-shell {
  pointer-events: none;
}

.site-header.nav-open .header-end,
.site-header.nav-open .header-actions,
.site-header.nav-open .nav-toggle {
  pointer-events: auto;
}

/* ─── Mobile Panel Nav (SMM sidebar) ─── */
.panel-nav {
  display: none;
}

@media (max-width: 1024px) {
  .panel-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    /* Sit above the bottom dock; footer padding clears the FAB bump. */
    bottom: calc(var(--bottom-nav-height, 78px) + var(--bottom-nav-offset, 0px) + env(safe-area-inset-bottom, 0px));
    left: auto;
    width: min(340px, 90vw);
    z-index: 10002;
    flex-direction: column;
    background: var(--header-shell-bg);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-left: 1px solid var(--header-shell-border);
    box-shadow: -8px 0 40px rgba(138, 43, 226, 0.12), var(--header-shell-shadow);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility var(--transition);
    pointer-events: none;
    visibility: hidden;
  }

  .panel-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 1;
  }

  .panel-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }
}

.panel-nav__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.panel-nav__logo {
  flex: 1 1 auto;
  min-width: 0;
}

.panel-nav__logo .logo-image--light,
.panel-nav__logo .logo-image--dark {
  height: 34px;
  max-width: min(200px, 100%);
  width: auto;
  object-fit: contain;
}

.panel-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tool-size);
  height: var(--tool-size);
  border-radius: var(--tool-radius);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.panel-nav__close:hover {
  color: var(--brand-blue);
  border-color: rgba(138, 43, 226, 0.28);
  background: var(--nav-link-hover);
}

.panel-nav__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 12px;
}

.panel-nav__section {
  margin-bottom: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.panel-nav__section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.panel-nav__section-toggle:hover {
  color: var(--brand-purple);
  background: var(--nav-link-hover);
}

.panel-nav__chevron {
  flex-shrink: 0;
  opacity: 0.6;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.panel-nav__section.is-open .panel-nav__chevron {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

.panel-nav__section-items {
  display: none;
  padding: 0 6px 6px;
}

.panel-nav__section.is-open .panel-nav__section-items {
  display: block;
}

.panel-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.panel-nav__item:hover,
.panel-nav__item:active {
  background: var(--nav-link-hover);
  color: var(--text-primary);
}

.panel-nav__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  transition: var(--transition);
}

.panel-nav__item:hover .panel-nav__item-icon:not(.panel-nav__item-icon--platform) {
  color: var(--brand-blue);
  background: rgba(0, 191, 255, 0.1);
}

.panel-nav__item-icon--platform {
  background: transparent;
  padding: 0;
  overflow: visible;
}

.panel-nav__item-icon--platform .nav-dropdown-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

.panel-nav__item-icon svg {
  width: 16px;
  height: 16px;
}

.panel-nav__item-label {
  flex: 1;
  min-width: 0;
}

.panel-nav__item-arrow {
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity var(--transition), transform var(--transition);
}

.panel-nav__item:hover .panel-nav__item-arrow {
  opacity: 0.7;
  transform: translateX(2px);
}

.panel-nav__item--highlight {
  color: var(--brand-purple);
}

.panel-nav__item--highlight .panel-nav__item-icon {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.panel-nav__item--highlight .panel-nav__item-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.panel-nav__item--highlight:hover {
  color: var(--brand-purple-dark);
}

.panel-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.panel-nav__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-nav__tools .engagex-lang-switch--panel {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 38px;
  padding: 4px;
}

.panel-nav__tools .engagex-lang-switch__btn {
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.panel-nav__tools .theme-toggle,
.panel-nav__tools .panel-nav__close {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .panel-nav__footer {
    /* Keep social buttons above the center FAB that rises over the dock. */
    padding-bottom: calc(16px + 48px);
  }
}

.panel-nav__social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.panel-nav__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.panel-nav__social-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.panel-nav__social-icon .engagex-social-icon,
.panel-nav__social-icon svg {
  width: 18px;
  height: 18px;
}

.panel-nav__social-btn--whatsapp {
  color: #fff;
  background: #25d366;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

.panel-nav__social-btn--facebook {
  color: #fff;
  background: #1877f2;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.28);
}

.panel-nav__social-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff;
}

.panel-nav__footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-nav__btn {
  flex: 0 0 auto;
  width: auto;
  justify-content: center;
  text-align: center;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 112px 0 80px;
  position: relative;
  overflow: hidden;
}

body.admin-bar .hero {
  padding-top: 144px;
}

.hero--showcase {
  padding: 0;
  align-items: stretch;
  min-height: 100svh;
  color: #fff;
}

body.admin-bar .hero--showcase {
  padding-top: 0;
  min-height: calc(100svh - 32px);
}

.hero-showcase__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a12;
}

.hero-showcase__atmosphere {
  display: none;
}

.hero-showcase__color-wash {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(138, 43, 226, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 84% 78%, rgba(0, 191, 255, 0.18) 0%, transparent 60%),
    linear-gradient(
      125deg,
      rgba(138, 43, 226, 0.12) 0%,
      rgba(91, 95, 234, 0.05) 45%,
      rgba(0, 191, 255, 0.11) 100%
    );
  background-size: 160% 160%, 160% 160%, 240% 240%;
  background-position: 0% 30%, 100% 70%, 0% 50%;
  mix-blend-mode: soft-light;
  opacity: 0.45;
  animation: heroColorWash 14s ease-in-out infinite;
  will-change: background-position, opacity;
  pointer-events: none;
}

.hero--showcase.is-tone-light .hero-showcase__color-wash {
  mix-blend-mode: multiply;
  opacity: 0.22;
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(138, 43, 226, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 84% 78%, rgba(0, 191, 255, 0.1) 0%, transparent 60%),
    linear-gradient(
      125deg,
      rgba(138, 43, 226, 0.08) 0%,
      rgba(91, 95, 234, 0.04) 45%,
      rgba(0, 191, 255, 0.07) 100%
    );
  background-size: 160% 160%, 160% 160%, 240% 240%;
}

.hero-showcase__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  will-change: transform;
  z-index: 1;
}

.hero-showcase__orb--purple {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.55) 0%, transparent 70%);
  animation: heroOrbDrift 14s ease-in-out infinite alternate;
}

.hero-showcase__orb--blue {
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  right: -6%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.42) 0%, transparent 70%);
  animation: heroOrbDrift 18s ease-in-out infinite alternate-reverse;
}

.hero-showcase__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35) 0.5px, transparent 0.6px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.25) 0.5px, transparent 0.6px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.2) 0.5px, transparent 0.6px);
  background-size: 18px 18px, 22px 22px, 16px 16px;
}

.hero-showcase__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: scale(1);
}

.hero-showcase__slide picture,
.hero-showcase__image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-showcase__image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08) translate3d(1.5%, 0, 0);
  transition: transform 8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-showcase__slide:nth-child(even) .hero-showcase__image {
  transform: scale(1.08) translate3d(-1.5%, 0, 0);
}

.hero-showcase__image--mobile,
.hero-showcase__image--light {
  display: none;
}

.hero-showcase__image--web.hero-showcase__image--dark {
  display: block;
}

[data-theme="light"] .hero-showcase__image--web.hero-showcase__image--dark {
  display: none;
}

[data-theme="light"] .hero-showcase__image--web.hero-showcase__image--light {
  display: block;
}

.hero-showcase__slide.is-active .hero-showcase__image {
  transform: scale(1) translate3d(0, 0, 0);
}

.hero-showcase__slide:nth-child(even).is-active .hero-showcase__image {
  transform: scale(1) translate3d(0, 0, 0);
}

@media (max-width: 1024px) {
  .hero-showcase__image--web {
    display: none !important;
  }

  .hero-showcase__image--mobile.hero-showcase__image--dark {
    display: block;
    object-position: center 18%;
  }

  .hero-showcase__image--mobile.hero-showcase__image--light {
    display: none;
  }

  [data-theme="light"] .hero-showcase__image--mobile.hero-showcase__image--dark {
    display: none;
  }

  [data-theme="light"] .hero-showcase__image--mobile.hero-showcase__image--light {
    display: block;
    object-position: center 18%;
  }

  .hero--showcase,
  body.admin-bar .hero--showcase {
    display: block;
    position: relative;
    min-height: 86svh;
    height: 86svh;
    max-height: 86svh;
    padding: 0;
    overflow: hidden;
  }

  .hero-showcase__media {
    position: absolute;
    inset: 0;
  }

  .hero-showcase__shade {
    display: none;
  }

  .hero-showcase__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    /* Fixed padding — do not use JS --header-offset (causes title jump on load) */
    padding-top: 76px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 14px !important;
    overflow: hidden;
  }

  .hero-showcase__overlay::before,
  .hero--showcase.is-tone-light .hero-showcase__overlay::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }

  .hero-showcase__overlay .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 36px;
  }

  body.admin-bar .hero-showcase__overlay {
    padding-top: 120px !important;
  }

  .hero-showcase__layout {
    height: 100% !important;
    min-height: 0;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-bottom: 0 !important;
    width: 100%;
    max-width: 18.5rem;
    margin-inline: auto;
  }

  .hero-showcase__top {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding-top: 10px;
    overflow: visible;
  }

  .hero-showcase__headline {
    width: 100%;
    max-width: 100%;
  }

  .hero-showcase__title {
    position: static !important;
    margin: 0 auto !important;
    width: 100%;
    max-width: 20.5rem;
    font-size: clamp(2.2rem, 8.8vw, 2.85rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-showcase__headline {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-showcase__headline[hidden] {
    display: none !important;
  }

  .hero-showcase__headline.is-active {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-showcase__bottom {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
    margin-inline: auto;
  }

  .hero-showcase__copy-stack {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-showcase__eyebrow {
    margin-bottom: 10px;
    padding: 5px 11px;
    font-size: 0.75rem;
  }

  .hero-showcase__accent {
    margin-top: 12px;
    width: 52px;
    height: 3px;
  }

  .hero-showcase__orb {
    opacity: 0.28;
    filter: blur(48px);
  }

  .hero-showcase__color-wash {
    opacity: 0.36;
    animation-duration: 16s;
  }

  .hero--showcase.is-tone-light .hero-showcase__color-wash {
    opacity: 0.18;
  }

  .hero-showcase__grain {
    opacity: 0.05;
  }

  .hero-showcase__headline,
  .hero-showcase__copy {
    filter: none !important;
  }

  .hero-showcase__cta::after {
    animation-duration: 5.5s;
  }

  .hero-showcase__title[hidden] {
    display: none !important;
  }

  .hero-showcase__title.is-active {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-showcase__copy {
    position: static !important;
    inset: auto;
  }

  .hero-showcase__copy.is-active {
    position: static !important;
    inset: auto;
  }

  .hero-showcase__desc {
    margin-bottom: 14px !important;
    margin-inline: auto !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    color: rgba(248, 250, 252, 0.9) !important;
    display: block;
    max-width: 17rem;
    overflow: visible;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.75),
      0 4px 12px rgba(0, 0, 0, 0.45) !important;
  }

  .hero-showcase__actions {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
  }

  .hero--showcase .hero-showcase__title {
    color: #fff !important;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.85),
      0 4px 14px rgba(0, 0, 0, 0.5) !important;
  }

  .hero--showcase.is-tone-light .hero-showcase__title {
    color: #fff !important;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.85),
      0 4px 14px rgba(0, 0, 0, 0.5) !important;
  }

  .hero--showcase.is-tone-light .hero-showcase__desc {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.75),
      0 4px 12px rgba(0, 0, 0, 0.45) !important;
  }

  .hero--showcase.is-tone-light .hero-showcase__eyebrow {
    border-color: rgba(15, 15, 24, 0.14) !important;
    background: rgba(255, 255, 255, 0.55) !important;
    color: #1e293b !important;
  }

  .hero--showcase.is-tone-light .hero-showcase__cta-secondary {
    border-color: rgba(15, 15, 24, 0.22) !important;
    color: #0a0a0f !important;
    background: rgba(255, 255, 255, 0.55) !important;
  }

  .hero-showcase__actions .btn.hero-showcase__cta,
  .hero-showcase__actions .btn.hero-showcase__cta-secondary {
    min-height: var(--btn-height) !important;
    height: var(--btn-height) !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 var(--btn-padding-x) !important;
    font-size: var(--btn-font-size) !important;
    line-height: 1.2 !important;
    gap: var(--btn-gap) !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 999px !important;
    white-space: nowrap;
  }

  .hero-showcase__controls {
    max-width: 160px;
    gap: 6px;
    align-self: center;
    margin-inline: auto;
    margin-top: 2px;
  }

  .hero-showcase__dots {
    gap: 5px;
    justify-content: center;
  }

  .hero-showcase__dot {
    width: 6px !important;
    height: 6px !important;
  }

  .hero-showcase__dot.is-active {
    width: 18px !important;
  }

  .hero-showcase__progress {
    height: 2px !important;
    max-width: 140px;
    margin-inline: auto;
  }
}

.hero-showcase__shade {
  display: none;
}

.hero-showcase__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  padding:
    calc(var(--header-offset, 88px) + 28px)
    0
    calc(48px + env(safe-area-inset-bottom, 0px) + var(--bottom-nav-height, 0px) + var(--bottom-nav-offset, 0px));
}

.hero-showcase__overlay::before {
  content: none;
  display: none;
}

.hero--showcase.is-tone-light .hero-showcase__overlay::before {
  content: none;
  display: none;
}

.hero-showcase__overlay > * {
  position: relative;
  z-index: 1;
}

.hero-showcase__layout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero-showcase__top {
  width: 100%;
  max-width: 680px;
}

.hero-showcase__bottom {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-showcase__copy-stack {
  position: relative;
  max-width: 640px;
}

.hero-showcase__brand {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

.hero-showcase__slide[data-hero-tone="light"] ~ .hero-showcase__overlay .hero-showcase__brand,
.hero--showcase.is-tone-light .hero-showcase__brand {
  filter: drop-shadow(0 8px 20px rgba(138, 43, 226, 0.18));
}

.hero-showcase__headline {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-showcase__headline.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  pointer-events: auto;
}

.hero-showcase__copy {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(4px);
  pointer-events: none;
  position: absolute;
  inset: auto 0 0 0;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    filter 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.hero-showcase__copy.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  pointer-events: auto;
}

.hero-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #e0f2fe;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-showcase__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.5);
}

.hero-showcase__hl {
  display: inline;
  font-weight: 800;
  letter-spacing: -0.03em;
  -webkit-text-fill-color: currentColor;
  color: inherit;
  /* Parent title text-shadow must not paint over clipped gradient fills. */
  text-shadow: none;
}

.hero-showcase__hl--all,
.hero-showcase__hl--facebook,
.hero-showcase__hl--instagram,
.hero-showcase__hl--youtube,
.hero-showcase__hl--tiktok,
.hero-showcase__hl--telegram,
.hero-showcase__hl--x,
.hero-showcase__hl--spotify,
.hero-showcase__hl--reddit {
  text-shadow: none !important;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.hero-showcase__hl--all {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--facebook {
  background: linear-gradient(135deg, #4ea3ff 0%, #1877f2 55%, #0d5bb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--youtube {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff0000 50%, #cc0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--tiktok {
  background: linear-gradient(90deg, #25f4ee 0%, #fe2c55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--telegram {
  background: linear-gradient(135deg, #6dd5fa 0%, #2aabee 50%, #229ed9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--x {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 45%, #374151 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--spotify {
  background: linear-gradient(135deg, #1ed760 0%, #1db954 55%, #169c46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-showcase__hl--reddit {
  background: linear-gradient(135deg, #ff8717 0%, #ff4500 55%, #e03d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.hero--showcase.is-tone-light .hero-showcase__hl--all,
.hero--showcase.is-tone-light .hero-showcase__hl--facebook,
.hero--showcase.is-tone-light .hero-showcase__hl--instagram,
.hero--showcase.is-tone-light .hero-showcase__hl--youtube,
.hero--showcase.is-tone-light .hero-showcase__hl--tiktok,
.hero--showcase.is-tone-light .hero-showcase__hl--telegram,
.hero--showcase.is-tone-light .hero-showcase__hl--x,
.hero--showcase.is-tone-light .hero-showcase__hl--spotify,
.hero--showcase.is-tone-light .hero-showcase__hl--reddit {
  text-shadow: none !important;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75))
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.hero--showcase.is-tone-light .hero-showcase__title {
  color: #fff !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.hero--showcase.is-tone-light .hero-showcase__desc {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-showcase__desc {
  margin: 0 0 28px;
  max-width: 34rem;
  color: rgba(248, 250, 252, 0.9);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero--showcase.is-tone-light .hero-showcase__eyebrow {
  border-color: rgba(15, 15, 24, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: #1e293b;
  box-shadow: 0 8px 24px rgba(15, 15, 24, 0.08);
}

.hero-showcase__accent {
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.45);
  transform: scaleX(0.28);
  transform-origin: left center;
  opacity: 0;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.hero-showcase__headline.is-active .hero-showcase__accent {
  opacity: 1;
  transform: scaleX(1);
}

.hero-showcase__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 420px;
}

.hero-showcase__cta,
.hero-showcase__cta-secondary {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.hero-showcase__cta {
  gap: 10px;
  box-shadow:
    0 10px 28px rgba(138, 43, 226, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.hero-showcase__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: heroCtaShine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-showcase__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(138, 43, 226, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.hero-showcase__cta-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f8fafc;
  background: rgba(8, 8, 16, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hero-showcase__cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(8, 8, 16, 0.58);
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.hero--showcase.is-tone-light .hero-showcase__cta-secondary {
  border-color: rgba(15, 15, 24, 0.22);
  color: #0a0a0f;
  background: rgba(255, 255, 255, 0.55);
}

.hero--showcase.is-tone-light .hero-showcase__cta-secondary:hover {
  border-color: rgba(15, 15, 24, 0.35);
  color: #000;
  background: rgba(255, 255, 255, 0.78);
}

.hero-showcase__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.hero-showcase__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-showcase__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease, transform 0.2s ease, box-shadow 0.35s ease;
}

.hero-showcase__dot:hover {
  transform: scale(1.15);
}

.hero-showcase__dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, #8a2be2, #00bfff);
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.45);
}

.hero--showcase.is-tone-light .hero-showcase__dot {
  background: rgba(15, 23, 42, 0.2);
}

.hero--showcase.is-tone-light .hero-showcase__dot.is-active {
  background: linear-gradient(90deg, #8a2be2, #00bfff);
}

.hero-showcase__progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero--showcase.is-tone-light .hero-showcase__progress {
  background: rgba(15, 23, 42, 0.12);
}

.hero-showcase__progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a2be2, #00bfff);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.55);
  transform-origin: left center;
}

.hero--showcase.is-playing .hero-showcase__progress-bar {
  animation: heroProgress var(--hero-slide-duration, 6.5s) linear forwards;
}

@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes heroOrbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, 18px, 0) scale(1.08); }
}

@keyframes heroColorWash {
  0%, 100% {
    background-position: 0% 28%, 100% 72%, 10% 40%;
    opacity: 0.38;
  }
  33% {
    background-position: 55% 10%, 40% 90%, 60% 50%;
    opacity: 0.55;
  }
  66% {
    background-position: 100% 65%, 0% 35%, 90% 60%;
    opacity: 0.44;
  }
}

.hero--showcase.is-tone-light .hero-showcase__color-wash {
  animation-name: heroColorWashLight;
}

@keyframes heroColorWashLight {
  0%, 100% {
    background-position: 0% 28%, 100% 72%, 10% 40%;
    opacity: 0.18;
  }
  33% {
    background-position: 55% 10%, 40% 90%, 60% 50%;
    opacity: 0.28;
  }
  66% {
    background-position: 100% 65%, 0% 35%, 90% 60%;
    opacity: 0.22;
  }
}

@keyframes heroCtaShine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase__image,
  .hero-showcase__slide,
  .hero-showcase__headline,
  .hero-showcase__title,
  .hero-showcase__copy,
  .hero-showcase__progress-bar,
  .hero-showcase__orb,
  .hero-showcase__color-wash,
  .hero-showcase__accent,
  .hero-showcase__cta::after {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  .hero-showcase__slide.is-active .hero-showcase__image,
  .hero-showcase__slide:nth-child(even).is-active .hero-showcase__image {
    transform: none;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--hero-glow-purple) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--hero-glow-blue) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}

.hero-content { max-width: 760px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.dashboard-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow), var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.preview-dot:nth-child(1) { background: #ef4444; }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: #10b981; }

.preview-title {
  margin-left: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.order-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-icon .engagex-social-icon svg,
.service-icon .engagex-social-icon svg,
.platform-icon .engagex-social-icon svg,
.engagex-platform-icon-box .engagex-social-icon svg,
.engagex-product-icon .engagex-social-icon svg,
.engagex-single-product-icon-wrap .engagex-social-icon svg,
.engagex-single-product-icon .engagex-social-icon svg {
  width: 100%;
  height: 100%;
}

.engagex-platform-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
}

.engagex-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.engagex-social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.order-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.order-icon.tt { background: #000; border: 1px solid #333; }
.order-icon.yt { background: #ff0000; }

.order-name { font-size: 0.875rem; font-weight: 600; }
.order-qty { font-size: 0.75rem; color: var(--text-muted); }

.order-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.status-done { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-progress { background: rgba(0, 191, 255, 0.12); color: var(--brand-blue-dark); }
.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-cancelled { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: -20px;
  right: -20px;
  animation-delay: -1s;
}

.floating-card.card-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: -2s;
}

.floating-card strong {
  display: block;
  font-size: 1.25rem;
  color: var(--success);
}

.floating-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Platforms ─── */
.platforms {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 0%, rgba(138, 43, 226, 0.07), transparent 42%),
    radial-gradient(circle at 85% 100%, rgba(0, 191, 255, 0.06), transparent 45%),
    var(--bg-secondary);
}

.platforms-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 78%);
  height: 2px;
  background: var(--gradient);
  border-radius: 999px;
  opacity: 0.75;
  pointer-events: none;
}

.platforms-head {
  text-align: center;
  margin-bottom: 42px;
}

.platforms-title {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.platforms-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.platform-badge {
  --badge-accent: var(--platform-accent, #8a2be2);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px 18px;
  border: 1px solid color-mix(in srgb, var(--badge-accent) 32%, var(--border));
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--badge-accent) 16%, transparent), transparent 55%),
    rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.platform-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--platform-bg, var(--badge-accent));
  opacity: 0.75;
}

.platform-badge__glow {
  position: absolute;
  inset: auto -20% -55% auto;
  z-index: -1;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--platform-bg, var(--badge-accent));
  filter: blur(36px);
  opacity: 0.22;
  transition: opacity 220ms ease, transform 220ms ease;
}

.platform-badge__ring {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--badge-accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge-accent) 38%, transparent);
}

.platform-badge__ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: conic-gradient(from 180deg, transparent 40%, var(--badge-accent), transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 220ms ease, transform 420ms ease;
}

.platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-icon--badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease;
}

.platform-badge__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.platform-badge__name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.platform-badge__count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.platform-badge__arrow {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  opacity: 0.55;
  transform: translateX(-4px);
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.platform-badge:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--badge-accent) 58%, var(--border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.24),
    0 0 0 1px color-mix(in srgb, var(--badge-accent) 24%, transparent),
    0 0 28px color-mix(in srgb, var(--badge-accent) 30%, transparent);
}

.platform-badge:hover .platform-badge__glow {
  opacity: 0.4;
  transform: scale(1.12);
}

.platform-badge:hover .platform-icon--badge {
  transform: scale(1.08);
}

.platform-badge:hover .platform-badge__ring::after {
  opacity: 0.85;
  transform: rotate(120deg);
}

.platform-badge:hover .platform-badge__arrow {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
  border-color: transparent;
  background: var(--platform-bg, var(--badge-accent));
}

.platform-badge--twitter {
  --badge-accent: #0a0a0a;
  border-color: rgba(10, 10, 10, 0.2);
}

.platform-badge--twitter .platform-icon--badge {
  background: #0a0a0a !important;
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.platform-badge--twitter .platform-icon--badge .engagex-social-icon {
  color: #ffffff !important;
}

.platform-badge--twitter:hover {
  border-color: rgba(10, 10, 10, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(10, 10, 10, 0.12),
    0 0 28px rgba(10, 10, 10, 0.14);
}

.platform-badge--twitter:hover .platform-badge__arrow {
  color: #fff;
  background: #0a0a0a;
}

/* Dark mode: white tile + black X logo */
[data-theme="dark"] .platform-badge--twitter {
  --badge-accent: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .platform-badge--twitter .platform-icon--badge {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .platform-badge--twitter .platform-icon--badge .engagex-social-icon {
  color: #000000 !important;
}

[data-theme="dark"] .platform-badge--twitter:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .platform-badge--twitter:hover .platform-badge__arrow {
  color: #000;
  background: #fff;
}

@media (max-width: 1024px) {
  .platforms-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .platforms {
    padding: 40px 0 44px;
  }

  .platforms-head {
    margin-bottom: 22px;
  }

  .platforms-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .platform-badge {
    min-height: 68px;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 15px;
  }

  .platform-badge__ring {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .platform-icon--badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .platform-badge__name {
    font-size: 0.8125rem;
  }

  .platform-badge__count {
    font-size: 0.625rem;
  }

  .platform-badge__arrow {
    display: none;
  }
}

/* ─── Services ─── */
.services {
  padding: 100px 0;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card,
.feature-card,
.pricing-card,
.testimonial-card,
.faq-item,
.dashboard-preview,
.floating-card,
.engagex-cart-link,
.theme-toggle,
.header-tool-btn,
.header-notifications__toggle {
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(138, 43, 226, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

a.service-card-link {
  cursor: pointer;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.service-price {
  font-size: 0.875rem;
  color: var(--brand-purple);
  font-weight: 600;
}

.service-price strong {
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* ─── Features ─── */
.features {
  position: relative;
  padding: 100px 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: background-color 200ms ease, transform 200ms ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 200ms ease;
}

.feature-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-purple);
  background: transparent;
  border: 1.5px solid rgba(138, 43, 226, 0.28);
  box-shadow: none;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card__body {
  min-width: 0;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.feature-card:hover {
  background: var(--bg-secondary);
  transform: none;
  box-shadow: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover .feature-icon {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: 0 8px 18px var(--accent-glow);
}

@media (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .features {
    padding: 64px 0;
  }

  .features-grid {
    border-radius: 18px;
  }

  .feature-card {
    gap: 12px;
    padding: 16px 14px;
  }

  .feature-card::before {
    top: 14px;
    bottom: 14px;
    width: 2px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-icon svg {
    width: 15px;
    height: 15px;
  }

  .feature-card h3 {
    font-size: 0.8125rem;
    margin-bottom: 4px;
  }

  .feature-card p {
    font-size: 0.6875rem;
    line-height: 1.4;
  }
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 100px 0;
}

.how-it-works .section-header {
  text-align: center;
}

.how-it-works .steps-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0;
  max-width: 760px;
  margin: 0 auto;
}

.how-it-works .steps-grid::before {
  display: none;
}

.how-it-works .step-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  text-align: left;
  padding: 22px 0 22px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  position: relative;
}

.how-it-works .step-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.how-it-works .step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 29px;
  top: 58px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand-purple) 45%, transparent),
    color-mix(in srgb, var(--brand-blue) 25%, transparent)
  );
  pointer-events: none;
}

.how-it-works .step-number {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-width: 2px;
  border-style: solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: color-mix(in srgb, var(--brand-purple) 55%, var(--brand-blue));
  background: color-mix(in srgb, var(--bg-card) 88%, var(--brand-purple));
  box-shadow: none;
  color: var(--brand-purple);
  position: relative;
  z-index: 1;
}

.how-it-works .step-card h3 {
  grid-column: 2;
  font-size: 1.125rem;
  margin: 0 0 4px;
  line-height: 1.3;
  padding-top: 10px;
}

.how-it-works .step-card p {
  grid-column: 2;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-secondary);
  max-width: 40rem;
}

@media (max-width: 768px) {
  .how-it-works {
    padding: 56px 0;
  }

  .how-it-works .section-label {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .how-it-works .section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
    margin-bottom: 10px;
  }

  .how-it-works .section-subtitle {
    font-size: 0.9375rem;
  }

  .how-it-works .section-header {
    margin-bottom: 36px;
  }

  .how-it-works .step-card {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 0 18px 2px;
  }

  .how-it-works .step-card:not(:last-child)::after {
    left: 24px;
    top: 50px;
  }

  .how-it-works .step-number {
    width: 44px;
    height: 44px;
    font-size: 0.75rem;
    border-width: 1.5px;
  }

  .how-it-works .step-card h3 {
    font-size: 1rem;
    padding-top: 8px;
  }

  .how-it-works .step-card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

/* ─── Pricing ─── */
.pricing {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pricing-card .plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-amount {
  margin-bottom: 32px;
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-amount .period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  color: var(--success);
  font-weight: 700;
}

.pricing-card .btn { width: auto; justify-content: center; }

/* ─── Testimonials ─── */
.testimonials {
  padding: 100px 0;
  overflow: hidden;
}

.testimonials .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.testimonials .section-header {
  max-width: var(--container-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding, 24px);
  padding-right: var(--container-padding, 24px);
}

.testimonials-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.testimonials-marquee__track {
  display: flex;
  width: max-content;
  animation: testimonials-marquee 64s linear infinite;
}

.testimonials-marquee:hover .testimonials-marquee__track,
.testimonials-marquee.is-offscreen .testimonials-marquee__track {
  animation-play-state: paused;
}

.testimonials-marquee__group {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding-right: 24px;
}

@keyframes testimonials-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex: 0 0 min(380px, 82vw);
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}

.author-info strong {
  display: block;
  font-size: 0.9375rem;
}

.author-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  .testimonials-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .testimonials-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 56px 0;
  }

  .testimonials .section-label {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .testimonials .section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
    margin-bottom: 10px;
  }

  .testimonials .section-subtitle {
    font-size: 0.9375rem;
  }

  .testimonials-marquee__track {
    animation-duration: 52s;
  }

  .testimonials-marquee__group {
    gap: 16px;
    padding-right: 16px;
  }

  .testimonial-card {
    flex-basis: min(300px, 78vw);
    padding: 22px 18px;
    border-radius: 18px;
  }

  .testimonial-stars {
    font-size: 0.875rem;
    margin-bottom: 12px;
  }

  .testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .author-info strong {
    font-size: 0.875rem;
  }

  .author-info span {
    font-size: 0.75rem;
  }
}

/* ─── FAQ ─── */
.faq {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--brand-purple); }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 191, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--brand-blue);
  transition: var(--transition);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer { max-height: 300px; }

@media (max-width: 768px) {
  .faq {
    padding: 56px 0;
  }

  .faq .section-label {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .faq .section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
    margin-bottom: 10px;
  }

  .faq .section-subtitle {
    font-size: 0.9375rem;
  }

  .faq-item {
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .faq-question {
    padding: 14px 16px;
    gap: 12px;
    font-size: 0.875rem;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }

  .faq-answer-inner {
    padding: 0 16px 14px;
    font-size: 0.8125rem;
    line-height: 1.6;
  }
}

/* ─── CTA ─── */
.cta-section {
  padding: 100px 0;
}

.cta-box {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-actions .btn {
  width: auto;
  flex: 0 0 auto;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--brand-purple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cta-box .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ─── Basic / legal pages ─── */
.engagex-basic-page {
  padding: calc(var(--header-offset, 88px) + 40px) 0 72px;
}

.engagex-basic-page .section-title {
  margin: 0 0 28px;
  max-width: 46rem;
}

.engagex-basic-page .engagex-page-content {
  max-width: 46rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.engagex-basic-page .engagex-page-content > *:first-child {
  margin-top: 0;
}

.engagex-basic-page .engagex-page-content h2 {
  margin: 2rem 0 0.75rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.engagex-basic-page .engagex-page-content p,
.engagex-basic-page .engagex-page-content ul,
.engagex-basic-page .engagex-page-content ol {
  margin: 0 0 1rem;
}

.engagex-basic-page .engagex-page-content ul,
.engagex-basic-page .engagex-page-content ol {
  padding-left: 1.25rem;
}

.engagex-basic-page .engagex-page-content li {
  margin-bottom: 0.45rem;
}

.engagex-basic-page .engagex-page-content a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.engagex-basic-page .engagex-page-content a:hover {
  color: var(--brand-purple);
}

.engagex-basic-page .engagex-page-content em {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.engagex-legal__panel[hidden] {
  display: none !important;
}

.engagex-legal__title {
  margin: 0 0 12px;
}

.engagex-legal__updated {
  margin: 0 0 1.25rem;
}

html[data-lang="si"] .engagex-legal,
html[data-lang="ta"] .engagex-legal {
  font-family: "Noto Sans Sinhala", "Noto Sans Tamil", "Plus Jakarta Sans", sans-serif;
}

html[data-lang="ta"] .engagex-legal {
  font-family: "Noto Sans Tamil", "Plus Jakarta Sans", sans-serif;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 16px 0 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.social-link--instagram:hover { color: #fff; background: linear-gradient(45deg,#f09433,#dc2743); border-color: transparent; }
.social-link--facebook:hover { color: #fff; background: #1877f2; border-color: transparent; }
.social-link--twitter:hover { color: #fff; background: #000; border-color: transparent; }
.social-link--telegram:hover { color: #fff; background: #229ED9; border-color: transparent; }
.social-link--whatsapp:hover { color: #fff; background: #25D366; border-color: transparent; }
.social-link--youtube:hover { color: #fff; background: #ff0000; border-color: transparent; }

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.footer-col h4 {
  font-size: 0.9375rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--brand-blue); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 14px;
  text-align: center;
}

.footer-bottom__copy,
.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-credit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.footer-credit:hover {
  opacity: 0.92;
}

.footer-credit__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.footer-credit__brand {
  color: #c084fc;
  font-weight: 700;
}

[data-theme="light"] .footer-credit__brand {
  color: #7c3aed;
}

.footer-credit__logo {
  display: block;
  width: 110px;
  height: 30px;
  overflow: hidden;
  line-height: 0;
}

/* Hard-lock size so WooCommerce img rules cannot blow this up.
   Do not force display here — theme swap uses --logo-display-*. */
.footer-credit__logo-img,
.woocommerce .footer-credit__logo-img,
.woocommerce-page .footer-credit__logo-img,
.woocommerce img.footer-credit__logo-img,
.woocommerce-page img.footer-credit__logo-img {
  box-sizing: border-box !important;
  width: 110px !important;
  height: 30px !important;
  max-width: 110px !important;
  max-height: 30px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.footer-credit__logo-img--for-light,
.woocommerce .footer-credit__logo-img--for-light,
.woocommerce-page .footer-credit__logo-img--for-light,
.woocommerce img.footer-credit__logo-img--for-light,
.woocommerce-page img.footer-credit__logo-img--for-light {
  display: var(--logo-display-light) !important;
}

.footer-credit__logo-img--for-dark,
.woocommerce .footer-credit__logo-img--for-dark,
.woocommerce-page .footer-credit__logo-img--for-dark,
.woocommerce img.footer-credit__logo-img--for-dark,
.woocommerce-page img.footer-credit__logo-img--for-dark {
  display: var(--logo-display-dark) !important;
}

.payment-methods {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Bottom Navigation (Mobile) ─── */
.bottom-nav,
.bottom-search {
  display: none;
}

@media (max-width: 1024px) {
  :root {
    --bottom-nav-height: 78px;
    --bottom-nav-offset: 0px;
    --bottom-nav-shell: #ffffff;
    --bottom-nav-bump: 76px;
    --bottom-nav-item: #6b7280;
    --bottom-nav-active: #8a2be2;
    --bottom-nav-border: rgba(15, 23, 42, 0.08);
    --bottom-nav-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
    --keyboard-inset: 0px;
  }

  [data-theme="dark"] {
    --bottom-nav-shell: #14141c;
    --bottom-nav-item: #9ca3af;
    --bottom-nav-active: #c084fc;
    --bottom-nav-border: rgba(255, 255, 255, 0.08);
    --bottom-nav-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
  }

  body {
    padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + 16px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px) + var(--keyboard-inset, 0px));
    z-index: 10004;
    height: calc(var(--bottom-nav-height) + 38px);
    pointer-events: none;
    transition: bottom 0.18s ease-out;
  }

  html.keyboard-open .bottom-nav {
    bottom: calc(var(--bottom-nav-offset) + var(--keyboard-inset, 0px));
  }

  .bottom-nav__dock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--bottom-nav-height);
    background: var(--bottom-nav-shell);
    border-radius: 0;
    border: 1px solid var(--bottom-nav-border);
    border-bottom: none;
    box-shadow: var(--bottom-nav-shadow);
    pointer-events: auto;
  }

  .bottom-nav__edge {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #8a2be2 0%, #5b5fea 50%, #00bfff 100%);
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
    z-index: 1;
    pointer-events: none;
  }

  .bottom-nav__items {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    padding: 0 6px 17px;
  }

  .bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 54px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--bottom-nav-item);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .bottom-nav__item:hover,
  .bottom-nav__item.is-active {
    color: var(--bottom-nav-active);
  }

  .bottom-nav__item.is-active .bottom-nav__icon {
    color: var(--bottom-nav-active);
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.35));
  }

  .bottom-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 27px;
    height: 27px;
    color: var(--bottom-nav-item);
    transition: color var(--transition), transform var(--transition), filter var(--transition);
  }

  .bottom-nav__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8a2be2, #00bfff);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.45);
  }

  .bottom-nav__cart-count.is-visible {
    display: inline-flex;
  }

  .bottom-nav__item:active .bottom-nav__icon {
    transform: scale(0.94);
  }

  .bottom-nav__icon svg {
    width: 24px;
    height: 24px;
  }

  .bottom-nav__label {
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.01em;
    max-width: 68px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bottom-nav__item.is-active .bottom-nav__label {
    font-weight: 600;
    color: var(--bottom-nav-active);
  }

  .bottom-nav__item--center {
    z-index: 3;
  }

  .bottom-nav__label--center {
    color: var(--bottom-nav-active);
  }

  .bottom-nav__item--center.is-active .bottom-nav__label--center,
  .bottom-nav__label--center {
    color: var(--bottom-nav-active);
  }

  .bottom-nav__fab {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 20px var(--accent-glow);
    border: 4px solid var(--bg-primary);
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .bottom-nav__fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav__fab-icon svg {
    width: 26px;
    height: 26px;
  }

  .bottom-nav__item--center:hover .bottom-nav__fab,
  .bottom-nav__item--center.is-active .bottom-nav__fab {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
  }

  .bottom-nav__item--center:active .bottom-nav__fab {
    transform: translateX(-50%) scale(0.97);
  }

  .bottom-nav__item--center.is-active .bottom-nav__label--center,
  .bottom-nav__label--center {
    color: var(--bottom-nav-active);
    font-weight: 600;
    font-size: 0.6875rem;
  }

  .bottom-search {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 980;
    pointer-events: none;
    visibility: hidden;
  }

  .bottom-search.is-open {
    z-index: 10060;
    pointer-events: auto;
    visibility: visible;
  }

  .bottom-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity var(--transition);
  }

  .bottom-search.is-open .bottom-search__backdrop {
    opacity: 1;
  }

  .bottom-search__panel {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-offset, 76px) + env(safe-area-inset-top, 0px));
    bottom: calc(var(--bottom-nav-height, 78px) + 38px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 16px 18px;
    background: var(--header-shell-bg);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid var(--header-shell-border);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.18s ease-out;
  }

  body.admin-bar .bottom-search__panel {
    top: calc(100px + env(safe-area-inset-top, 0px));
  }

  html.keyboard-open body.search-open .bottom-search__panel {
    bottom: var(--keyboard-inset, 0px);
    padding-bottom: 14px;
  }

  .bottom-search.is-open .bottom-search__panel {
    transform: translateY(0);
  }

  body.search-open .site-header {
    z-index: 10070;
    pointer-events: auto;
  }

  body.search-open .bottom-nav {
    z-index: 10050;
    pointer-events: auto;
  }

  html.keyboard-open body.search-open .bottom-search__submit {
    display: none;
  }

  .bottom-search__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex: 0 0 auto;
  }

  .bottom-search__header h2 {
    font-size: 1rem;
    margin: 0;
  }

  .bottom-search__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--nav-link-hover);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
  }

  .bottom-search__close:hover {
    color: var(--brand-blue);
  }

  .bottom-search__form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
  }

  .bottom-search__results-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .bottom-search__results {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  }

  .bottom-search__result {
    border-bottom: 1px solid var(--border);
  }

  .bottom-search__result:last-child {
    border-bottom: none;
  }

  .bottom-search__result-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
  }

  .bottom-search__result-link:hover,
  .bottom-search__result-link:focus-visible {
    background: var(--nav-link-hover);
    outline: none;
  }

  .bottom-search__result-icon {
    flex: 0 0 auto;
  }

  .bottom-search__result-icon .platform-icon--search,
  .bottom-search__result-icon .engagex-platform-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .bottom-search__result-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .bottom-search__result-name {
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.25;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bottom-search__result-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bottom-search__result-price {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-purple);
    white-space: nowrap;
  }

  .bottom-search__empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
  }

  .bottom-search__input {
    width: 100%;
    flex: 0 0 auto;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    scroll-margin-top: 12px;
  }

  .bottom-search__input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15);
  }

  .bottom-search__submit {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
  }

  .site-footer {
    padding-bottom: calc(32px + var(--bottom-nav-height) + var(--bottom-nav-offset) + 40px + env(safe-area-inset-bottom, 0px));
  }
}

/* ─── Platform picker (New Order popup) ─── */
.engagex-platform-picker {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.engagex-platform-picker.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.engagex-platform-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 12, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.engagex-platform-picker.is-open .engagex-platform-picker__backdrop {
  opacity: 1;
}

.engagex-platform-picker__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  max-height: 100%;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.96);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.engagex-platform-picker__dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.engagex-platform-picker.is-open .engagex-platform-picker__dialog {
  opacity: 1;
  transform: scale(1);
}

body.platform-picker-open,
html.platform-picker-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.engagex-platform-picker__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.engagex-platform-picker__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #7dd3fc;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.engagex-platform-picker__toolbar h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.engagex-platform-picker__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.engagex-platform-picker__close:hover {
  background: rgba(138, 43, 226, 0.28);
  transform: scale(1.04);
}

.engagex-platform-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

.engagex-platform-picker__chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  min-width: 0;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(0.92);
  will-change: transform, opacity;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.engagex-platform-picker.is-open .engagex-platform-picker__chip {
  opacity: 1;
  transform: scale(1);
}

/* Soft even stagger */
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(1) { transition-delay: 0.02s; }
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(2) { transition-delay: 0.06s; }
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(3) { transition-delay: 0.1s; }
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(4) { transition-delay: 0.14s; }
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(5) { transition-delay: 0.18s; }
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(6) { transition-delay: 0.22s; }
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(7) { transition-delay: 0.26s; }
.engagex-platform-picker.is-open .engagex-platform-picker__chip:nth-child(8) { transition-delay: 0.3s; }

.engagex-platform-picker:not(.is-open) .engagex-platform-picker__chip {
  transition-delay: 0s;
  transition-duration: 0.22s, 0.2s, 0.2s, 0.2s, 0.2s;
}

.engagex-platform-picker__chip:hover {
  border-color: color-mix(in srgb, var(--platform-accent, #8a2be2) 45%, transparent);
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.engagex-platform-picker.is-open .engagex-platform-picker__chip:hover {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .engagex-platform-picker,
  .engagex-platform-picker__backdrop,
  .engagex-platform-picker__dialog,
  .engagex-platform-picker__chip {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

.engagex-platform-picker__chip .engagex-platform-chip__glow {
  position: absolute;
  inset: auto -20% -45% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--platform-bg, var(--gradient));
  opacity: 0.16;
  filter: blur(18px);
  pointer-events: none;
}

.engagex-platform-picker__chip .engagex-platform-chip__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.engagex-platform-picker__chip .engagex-platform-icon-box,
.engagex-platform-picker__chip .platform-icon--chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.engagex-platform-picker__chip .engagex-platform-chip__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.engagex-platform-picker__chip .engagex-platform-chip__name {
  color: #111827 !important;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

[data-theme="dark"] .engagex-platform-picker__chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(28, 28, 38, 0.94) !important;
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .engagex-platform-picker__chip:hover {
  background: rgba(36, 36, 48, 0.98) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .engagex-platform-picker__chip .engagex-platform-chip__name {
  color: #f8fafc !important;
}

.engagex-platform-picker .platform-chip--twitter .engagex-platform-icon-box,
.engagex-platform-picker .platform-chip--twitter .platform-icon--chip {
  background: #0a0a0a !important;
  border: none;
}

.engagex-platform-picker .platform-chip--twitter .engagex-social-icon {
  color: #ffffff !important;
}

[data-theme="dark"] .engagex-platform-picker .platform-chip--twitter .engagex-platform-icon-box,
[data-theme="dark"] .engagex-platform-picker .platform-chip--twitter .platform-icon--chip {
  background: #ffffff !important;
}

[data-theme="dark"] .engagex-platform-picker .platform-chip--twitter .engagex-social-icon {
  color: #000000 !important;
}

@media (min-width: 640px) {
  .engagex-platform-picker__dialog {
    width: min(560px, 100%);
  }

  .engagex-platform-picker__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .engagex-platform-picker__chip {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 112px;
  }
}

@media (max-width: 1024px) {
  .engagex-platform-picker {
    align-items: flex-end;
    justify-content: center;
    padding:
      calc(12px + var(--header-offset, 76px))
      14px
      calc(var(--bottom-nav-height, 78px) + 44px + env(safe-area-inset-bottom, 0px));
  }

  .engagex-platform-picker__dialog {
    width: 100%;
    max-height: calc(
      100dvh
      - var(--header-offset, 76px)
      - var(--bottom-nav-height, 78px)
      - 56px
      - env(safe-area-inset-bottom, 0px)
    );
    margin-bottom: 0;
  }

  body.platform-picker-open .site-header {
    z-index: 10040;
    pointer-events: auto;
  }

  body.platform-picker-open .bottom-nav {
    z-index: 10050;
    pointer-events: auto;
  }

  body.platform-picker-open .bottom-nav__item--center.is-active .bottom-nav__fab {
    box-shadow:
      0 10px 28px rgba(138, 43, 226, 0.55),
      0 0 0 6px rgba(138, 43, 226, 0.18);
  }
}

button.panel-nav__item {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.bottom-nav__item {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button.panel-nav__item {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.bottom-nav__item {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ─── Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1360px) {
  .nav-link--secondary {
    display: none;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 0.75rem;
  }

  .header-cta .btn-ghost {
    display: none;
  }

  .header-cta {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 1024px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    padding: 10px 0;
  }

  .site-header.scrolled {
    padding: 6px 0;
  }

  .header-container {
    padding-inline: 14px;
  }

  .site-header.nav-open {
    z-index: 10000;
  }

  .main-nav--desktop {
    display: none !important;
  }

  .header-shell {
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 9px 16px;
    background:
      linear-gradient(var(--header-shell-bg), var(--header-shell-bg)) padding-box,
      linear-gradient(120deg, rgba(138, 43, 226, 0.75), rgba(91, 95, 234, 0.28), rgba(0, 191, 255, 0.75)) border-box;
    box-shadow:
      0 10px 30px rgba(15, 23, 42, 0.14),
      0 0 22px rgba(138, 43, 226, 0.08);
  }

  .header-inner {
    position: relative;
    z-index: 10003;
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    min-height: 44px;
  }

  .header-brand {
    display: flex;
    justify-content: flex-start;
    width: auto;
  }

  .header-brand .site-logo .logo-image--light,
  .header-brand .site-logo .logo-image--dark {
    height: 38px;
    max-width: 190px;
  }

  .header-actions {
    display: none;
  }

  .header-tools {
    display: flex;
    margin-left: 0;
    gap: 4px;
  }

  .header-tools .header-tool-btn,
  .header-tools .engagex-cart-link {
    width: var(--tool-size-sm);
    height: var(--tool-size-sm);
    border-radius: var(--tool-radius);
  }

  /* Cart lives in bottom nav on mobile */
  .header-tools .engagex-cart-link {
    display: none;
  }

  .header-notifications__panel {
    right: -8px;
  }

  .header-cta {
    display: none; /* Mobile primary order CTA = bottom-nav New Order FAB */
  }

  .nav-toggle {
    display: none;
  }

  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .floating-card { display: none; }
}

@media (max-width: 768px) {
  .hero:not(.hero--showcase) {
    min-height: auto;
    align-items: flex-start;
    padding: 96px 0 44px;
  }

  body.admin-bar .hero:not(.hero--showcase) {
    padding-top: 132px;
  }

  /* Showcase hero — shorter than full viewport on mobile */
  .hero--showcase,
  body.admin-bar .hero--showcase {
    display: block;
    min-height: 86svh !important;
    height: 86svh !important;
    max-height: 86svh !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .platforms {
    padding-top: 56px;
  }

  .hero-showcase__shade {
    background:
      linear-gradient(180deg, rgba(6, 6, 14, 0.42) 0%, rgba(6, 6, 14, 0.12) 38%, rgba(6, 6, 14, 0.82) 100%),
      linear-gradient(90deg, rgba(6, 6, 14, 0.55) 0%, transparent 72%);
  }

  .hero-showcase__slide[data-hero-tone="light"] .hero-showcase__shade {
    background:
      linear-gradient(180deg, rgba(6, 6, 14, 0.42) 0%, rgba(6, 6, 14, 0.12) 38%, rgba(6, 6, 14, 0.82) 100%),
      linear-gradient(90deg, rgba(6, 6, 14, 0.55) 0%, transparent 72%);
  }

  .hero--showcase.is-tone-light .hero-showcase__title {
    color: #fff !important;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.85),
      0 4px 14px rgba(0, 0, 0, 0.5) !important;
  }

  .hero--showcase.is-tone-light .hero-showcase__desc {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.75),
      0 4px 12px rgba(0, 0, 0, 0.45) !important;
  }

  .hero--showcase.is-tone-light .hero-showcase__eyebrow {
    border-color: rgba(15, 15, 24, 0.14);
    background: rgba(255, 255, 255, 0.55);
    color: #1e293b;
  }

  .hero--showcase.is-tone-light .hero-showcase__cta-secondary {
    border-color: rgba(15, 15, 24, 0.22) !important;
    color: #0a0a0f !important;
    background: rgba(255, 255, 255, 0.55) !important;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* Compact two-column mobile footer */
@media (max-width: 768px) {
  .site-footer {
    /* Body already clears the fixed bottom nav — don't double the gap */
    padding: 36px 0 16px;
  }

  .site-footer .container {
    padding-inline: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px 20px;
    margin-bottom: 28px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }

  .footer-brand .footer-logo .logo-image--light,
  .footer-brand .footer-logo .logo-image--dark {
    height: 34px;
    max-width: 150px;
  }

  .footer-brand p {
    display: none;
  }

  .footer-brand .social-links {
    margin: 0;
    max-width: 94px;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .footer-brand .social-link {
    width: 28px;
    height: 28px;
  }

  .footer-col h4 {
    margin-bottom: 12px;
    font-size: 0.8125rem;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-col ul a {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .footer-bottom {
    justify-content: center;
    padding-top: 20px;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom__copy,
  .footer-bottom p {
    font-size: 0.6875rem;
  }

  .footer-credit__text {
    font-size: 0.75rem;
  }

  .footer-credit__logo {
    width: 96px;
    height: 26px;
  }

  .footer-credit__logo-img,
  .woocommerce .footer-credit__logo-img,
  .woocommerce-page .footer-credit__logo-img,
  .woocommerce img.footer-credit__logo-img,
  .woocommerce-page img.footer-credit__logo-img {
    width: 96px !important;
    height: 26px !important;
    max-width: 96px !important;
    max-height: 26px !important;
  }

  .payment-methods {
    display: none;
  }
}

/* ─── Language fonts (recommended stack) ─── */
/* Latin: Plus Jakarta Sans; SI/TA script fonts via fallback when those langs are active */
html[data-lang="si"],
html[lang="si"] {
  --font: var(--font-si);
  --font-display: var(--font-display-si);
}

html[data-lang="ta"],
html[lang="ta"] {
  --font: var(--font-ta);
  --font-display: var(--font-display-ta);
}

html[data-lang="si"] body,
html[lang="si"] body,
html[data-lang="ta"] body,
html[lang="ta"] body {
  font-family: var(--font);
}

html[data-lang="si"] h1,
html[data-lang="si"] h2,
html[data-lang="si"] h3,
html[data-lang="si"] .hero-showcase__title,
html[data-lang="si"] .section-title,
html[data-lang="si"] .platforms-title,
html[lang="si"] h1,
html[lang="si"] h2,
html[lang="si"] h3,
html[lang="si"] .hero-showcase__title,
html[lang="si"] .section-title,
html[lang="si"] .platforms-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

html[data-lang="ta"] h1,
html[data-lang="ta"] h2,
html[data-lang="ta"] h3,
html[data-lang="ta"] .hero-showcase__title,
html[data-lang="ta"] .section-title,
html[data-lang="ta"] .platforms-title,
html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3,
html[lang="ta"] .hero-showcase__title,
html[lang="ta"] .section-title,
html[lang="ta"] .platforms-title {
  font-family: var(--font-display);
}

.engagex-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.engagex-lang-switch__btn {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.engagex-lang-switch__btn:hover {
  color: var(--text-primary);
}

.engagex-lang-switch__btn.is-active {
  background: var(--gradient);
  color: #fff;
}

.engagex-lang-switch--panel {
  margin-right: 0;
  flex-shrink: 0;
  gap: 1px;
  padding: 2px;
}

.engagex-lang-switch--panel .engagex-lang-switch__btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 0.625rem;
}

.engagex-lang-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.engagex-lang-modal[hidden] {
  display: none !important;
}

.engagex-lang-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.engagex-lang-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.engagex-lang-modal__brand {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.engagex-lang-modal__dialog h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.engagex-lang-modal__subtitle {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.engagex-lang-modal__options {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.engagex-lang-modal__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.engagex-lang-modal__option:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 43, 226, 0.35);
}

.engagex-lang-modal__option.is-active {
  border-color: rgba(138, 43, 226, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 191, 255, 0.22), var(--shadow);
}

.engagex-lang-modal__flag {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.engagex-lang-modal__name {
  font-size: 1rem;
  font-weight: 700;
}

.engagex-lang-modal__continue {
  width: 100%;
  justify-content: center;
}

body.lang-modal-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .engagex-lang-switch--header {
    display: none;
  }
}

/* ─── Floating WhatsApp ─── */
.engagex-whatsapp-fab {
  position: fixed;
  right: max(2px, env(safe-area-inset-right, 0px));
  bottom: calc(4px + var(--bottom-nav-height, 0px) + var(--bottom-nav-offset, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 9980;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.engagex-whatsapp-fab img {
  display: block;
  width: 64px;
  height: 64px;
  max-width: none;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
  transition: transform 180ms ease, filter 180ms ease;
}

.engagex-whatsapp-fab:hover img,
.engagex-whatsapp-fab:focus-visible img {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.32));
}

.engagex-whatsapp-fab:focus-visible {
  outline: none;
}

@media (max-width: 1024px) {
  .engagex-whatsapp-fab {
    right: max(2px, env(safe-area-inset-right, 0px));
    bottom: calc(2px + var(--bottom-nav-height, 78px) + var(--bottom-nav-offset, 0px) + env(safe-area-inset-bottom, 0px));
  }

  .engagex-whatsapp-fab img {
    width: 58px;
    height: 58px;
  }
}

