/*
Theme Name: HotPlayer Pro
Theme URI: https://hotplayer.tv
Author: HotPlayer Team
Description: Thème officiel HotPlayer Pro – Lecteur multimédia Smart TV. Samsung, LG, Hisense, Brandt. Multilingue FR/ES/EN. Responsive mobile-first.
Version: 4.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hotplayer
Tags: dark, custom-logo, full-width-template, custom-menu, multilingual, translation-ready
*/

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent horizontal overflow GLOBALLY */
  overflow-x: hidden;
}

body {
  font-family: var(--hp-font-body);
  background: var(--hp-dark);
  color: var(--hp-light);
  line-height: var(--hp-line-height);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--hp-tr); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hp-font-heading);
  font-weight: 700;
  line-height: 1.2;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ══════════════════════════════════════
   CSS DESIGN TOKENS
══════════════════════════════════════ */
:root {
  --hp-fire:           #ff6b2b;
  --hp-fire-dark:      #e85520;
  --hp-fire-light:     #ffaa5f;
  --hp-gold:           #ffe17d;
  --hp-dark:           #0e0e0e;
  --hp-dark2:          #161616;
  --hp-dark3:          #1f1f1f;
  --hp-muted:          #888;
  --hp-light:          #f5f3ef;
  --hp-white:          #fff;
  --hp-wa:             #25D366;
  --hp-card-bg:        rgba(255,255,255,.04);
  --hp-card-border:    rgba(255,255,255,.08);
  --hp-section-alt-bg: #161616;

  --hp-font-heading:   'Syne', sans-serif;
  --hp-font-body:      'DM Sans', sans-serif;
  --hp-font-size-base: 16px;
  --hp-font-scale:     1;
  --hp-line-height:    1.65;
  --hp-letter-spacing: normal;

  --hp-logo-h:         36px;
  --hp-logo-max-w:     200px;
  --hp-header-h:       64px;
  --hp-container:      1160px;
  --hp-section-py:     88px;
  --hp-radius:         14px;
  --hp-radius-sm:      8px;
  --hp-btn-radius:     50px;
  --hp-blur:           20px;
  --hp-tr:             .28s cubic-bezier(.4,0,.2,1);
  --hp-shadow:         0 6px 28px rgba(255,107,43,.22);
  --hp-shadow-lg:      0 18px 54px rgba(255,107,43,.32);
  --hp-feat-cols:      3;
}

/* ══════════════════════════════════════
   CONTAINER — never wider than viewport
══════════════════════════════════════ */
.hp-container {
  max-width: min(var(--hp-container), 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  width: 100%;
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
.hp-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hp-fire);
  margin-bottom: 10px;
}
.hp-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--hp-light);
  line-height: 1.15;
}
.hp-h2 .accent {
  background: linear-gradient(135deg, var(--hp-fire), var(--hp-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-lead {
  font-size: clamp(.92rem, 2vw, 1.04rem);
  color: var(--hp-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 44px;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.hp-btn, .hp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hp-font-heading);
  font-weight: 700;
  font-size: clamp(.82rem, 2vw, .95rem);
  padding: 13px 26px;
  border-radius: var(--hp-btn-radius);
  border: none;
  cursor: pointer;
  transition: all var(--hp-tr);
  text-decoration: none;
  white-space: nowrap;
  /* Prevent buttons from causing overflow */
  max-width: 100%;
}
.hp-btn {
  background: linear-gradient(135deg, var(--hp-fire), var(--hp-fire-dark));
  color: #fff;
  box-shadow: var(--hp-shadow);
}
.hp-btn:hover { transform: translateY(-2px); box-shadow: var(--hp-shadow-lg); color: #fff; }
.hp-btn-outline {
  background: transparent;
  color: var(--hp-light);
  border: 1px solid rgba(255,255,255,.22);
}
.hp-btn-outline:hover { border-color: var(--hp-fire); color: var(--hp-fire); }
.hp-btn-sm { padding: 9px 18px; font-size: .83rem; }

/* ══════════════════════════════════════
   ── HEADER ──
   Key fix: flex layout that NEVER overflows
══════════════════════════════════════ */
#hp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--hp-header-h);
  /* Prevent overflow */
  overflow: hidden;
  background: rgba(14,14,14,.9);
  backdrop-filter: blur(var(--hp-blur));
  -webkit-backdrop-filter: blur(var(--hp-blur));
  border-bottom: 1px solid rgba(255,107,43,.1);
  transition: background var(--hp-tr);
}
#hp-header.scrolled { background: rgba(14,14,14,.98); }
#hp-header.transparent-header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hp-header-inner {
  display: flex;
  align-items: center;
  /* Logo + nav + right — no overflow */
  justify-content: space-between;
  height: 100%;
  gap: 12px;
  /* Allow items to shrink but not overflow */
  min-width: 0;
}

/* ── LOGO — fixed, never shrinks ── */
.hp-logo {
  display: flex;
  align-items: center;
  /* Never shrink the logo */
  flex-shrink: 0;
  flex-grow: 0;
  /* Explicit min so text doesn't push it */
  min-width: 0;
  text-decoration: none;
}
.hp-logo img {
  height: var(--hp-logo-h);
  width: auto;
  /* No max-width clamp that would cut the image */
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.hp-logo svg {
  /* SVG logos: explicit dimensions */
  height: var(--hp-logo-h);
  width: auto;
  /* Min-width prevents flex crushing the SVG */
  min-width: max-content;
  /* Overflow visible so text inside SVG isn't clipped */
  overflow: visible;
  display: block;
  flex-shrink: 0;
}
/* WordPress custom_logo wraps in <a> */
.hp-logo .custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hp-logo .custom-logo-link img {
  height: var(--hp-logo-h);
  width: auto;
  max-width: 220px;
}

/* ── NAV — takes available space, centered ── */
#hp-nav {
  flex: 1 1 auto;
  min-width: 0;
  /* Hidden on mobile, shown desktop */
}
#hp-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  /* No wrap so it collapses cleanly */
  flex-wrap: nowrap;
  list-style: none;
}
#hp-nav > ul > li > a {
  font-size: clamp(.78rem, 1.4vw, .87rem);
  font-weight: 500;
  color: var(--hp-muted);
  letter-spacing: .02em;
  padding: 4px 0;
  position: relative;
  transition: color var(--hp-tr);
  white-space: nowrap;
}
#hp-nav > ul > li > a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--hp-fire);
  border-radius: 2px;
  transition: width var(--hp-tr);
}
#hp-nav > ul > li > a:hover,
#hp-nav > ul > li.current-menu-item > a { color: var(--hp-light); }
#hp-nav > ul > li > a:hover::after,
#hp-nav > ul > li.current-menu-item > a::after { width: 100%; }

/* ── RIGHT SIDE ── */
.hp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════ */
.hp-lang-switcher { position: relative; }
.hp-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 6px 11px;
  cursor: pointer;
  color: var(--hp-light);
  font-size: .8rem;
  font-weight: 600;
  transition: all var(--hp-tr);
  white-space: nowrap;
}
.hp-lang-btn:hover { border-color: rgba(255,107,43,.4); background: rgba(255,107,43,.09); }
.hp-flag { font-size: 1rem; line-height: 1; }
.hp-lang-code { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.hp-lang-arrow { font-size: .55rem; opacity: .6; transition: transform var(--hp-tr); }
.hp-lang-switcher.open .hp-lang-arrow { transform: rotate(180deg); }
.hp-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--hp-dark3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  min-width: 155px;
  box-shadow: 0 14px 44px rgba(0,0,0,.5);
  z-index: 2000;
}
.hp-lang-switcher.open .hp-lang-dropdown { display: block; }
.hp-lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--hp-muted);
  transition: all var(--hp-tr);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.hp-lang-dropdown a:last-child { border-bottom: none; }
.hp-lang-dropdown a:hover { background: rgba(255,107,43,.08); color: var(--hp-light); }
.hp-lang-dropdown a.active { color: var(--hp-fire); background: rgba(255,107,43,.06); }
.hp-lang-native { font-size: .72rem; color: var(--hp-muted); margin-left: auto; }

/* ══════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════ */
.hp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  /* Fixed size so it's always reachable */
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: all var(--hp-tr);
}
.hp-hamburger:hover { background: rgba(255,107,43,.12); border-color: rgba(255,107,43,.3); }
.hp-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hp-light);
  border-radius: 2px;
  transition: all .28s ease;
  transform-origin: center;
}
.hp-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hp-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hp-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════
   MOBILE NAV DRAWER
══════════════════════════════════════ */
.hp-mobile-nav {
  position: fixed;
  /* Start below the header */
  top: var(--hp-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px clamp(16px, 5vw, 32px) 40px;
  /* Slide in from right */
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  /* Not visible by default */
  visibility: hidden;
}
.hp-mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}
.hp-mobile-nav a {
  display: flex;
  align-items: center;
  padding: 15px 0;
  font-family: var(--hp-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(245,243,239,.7);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--hp-tr);
}
.hp-mobile-nav a:hover { color: var(--hp-fire); padding-left: 6px; }
.hp-mobile-nav .hp-mobile-cta {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  justify-content: center;
  font-size: 1rem;
}
.hp-mobile-lang-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.hp-mobile-lang-section p {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hp-muted);
  margin-bottom: 12px;
}
.hp-mobile-lang-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-mobile-lang-btns a {
  border-bottom: none !important;
  padding: 9px 16px !important;
  background: var(--hp-dark3);
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 50px;
  font-size: .84rem;
  color: var(--hp-muted) !important;
  font-weight: 600;
  gap: 7px;
}
.hp-mobile-lang-btns a.active,
.hp-mobile-lang-btns a:hover {
  border-color: var(--hp-fire) !important;
  color: var(--hp-fire) !important;
  padding-left: 16px !important;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hp-hero {
  position: relative;
  overflow: hidden;
  min-height: var(--hp-hero-min-h, 100vh);
  display: flex;
  align-items: center;
  padding-top: var(--hp-header-h);
}
.hp-hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hp-hero-gradient, linear-gradient(135deg, rgba(14,14,14,.85) 0%, rgba(14,14,14,.45) 100%));
}
.hp-hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,43,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hp-hero-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 70% 50%, rgba(255,107,43,.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(255,170,95,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hp-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(48px, 8vw, 80px) 0;
  width: 100%;
}
.hp-hero-inner.layout-center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hp-hero-inner.layout-fullscreen {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  padding: clamp(80px, 12vw, 130px) 0;
}

/* Hero content */
.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,43,.1);
  border: 1px solid rgba(255,107,43,.28);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--hp-fire-light);
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.hp-hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hp-fire);
  box-shadow: 0 0 8px var(--hp-fire);
  animation: blink 1.6s infinite;
  flex-shrink: 0;
}
.hp-hero-title {
  font-family: var(--hp-font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--hp-hero-text-color, var(--hp-light));
  line-height: 1.1;
}
.hp-hero-title .accent {
  background: linear-gradient(135deg, var(--hp-fire), var(--hp-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-hero-desc {
  font-size: clamp(.9rem, 2vw, 1.04rem);
  color: rgba(245,243,239,.72);
  line-height: 1.78;
  margin-bottom: 28px;
  max-width: 500px;
}
.hp-hero-inner.layout-center .hp-hero-desc,
.hp-hero-inner.layout-fullscreen .hp-hero-desc { max-width: 620px; }

.hp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hp-hero-inner.layout-center .hp-hero-actions,
.hp-hero-inner.layout-fullscreen .hp-hero-actions { justify-content: center; }

.hp-hero-compat-label { font-size: .72rem; color: rgba(245,243,239,.5); margin-bottom: 8px; }
.hp-hero-compat { display: flex; flex-wrap: wrap; gap: 7px; }
.hp-hero-inner.layout-center .hp-hero-compat { justify-content: center; }
.hp-compat-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  color: rgba(245,243,239,.55);
  font-weight: 500;
}

/* Hero visual */
.hp-hero-visual { position: relative; }
.hp-hero-visual img {
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 60px rgba(255,107,43,.09);
  border: 2px solid rgba(255,107,43,.16);
  width: 100%;
}
.hp-hero-inner.layout-center .hp-hero-visual,
.hp-hero-inner.layout-fullscreen .hp-hero-visual { display: none; }

/* Scroll indicator */
.hp-hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: .45;
  cursor: pointer;
  transition: opacity var(--hp-tr);
  background: none;
  border: none;
}
.hp-hero-scroll:hover { opacity: .85; }
.hp-hero-scroll span { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hp-muted); }
.hp-scroll-mouse {
  width: 20px; height: 32px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 10px;
  position: relative;
}
.hp-scroll-mouse::after {
  content: '';
  width: 3px; height: 6px;
  background: var(--hp-fire);
  border-radius: 2px;
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 1.6s infinite;
}

/* Trust badges */
.hp-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.hp-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50px;
  font-size: .78rem;
  color: var(--hp-muted);
  font-weight: 500;
}

/* Stats */
.hp-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.05);
  border-radius: var(--hp-radius);
  overflow: hidden;
}
.hp-stat { background: var(--hp-dark2); padding: 24px 16px; text-align: center; }
.hp-stat-num {
  font-family: var(--hp-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--hp-fire);
  margin-bottom: 4px;
}
.hp-stat-lbl { font-size: .8rem; color: var(--hp-muted); }

/* ══════════════════════════════════════
   COMPAT STRIP
══════════════════════════════════════ */
.hp-compat-strip {
  background: var(--hp-dark2);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
  padding: 22px 0;
  overflow: hidden;
}
.hp-compat-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.hp-compat-strip-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hp-muted);
  white-space: nowrap;
}
.hp-compat-logos { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hp-compat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: .55;
  transition: opacity var(--hp-tr);
}
.hp-compat-item:hover { opacity: 1; }
.hp-compat-icon {
  width: 38px; height: 38px;
  background: var(--hp-dark3);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.hp-compat-name { font-size: .62rem; font-weight: 500; color: var(--hp-muted); text-align: center; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.hp-section { padding: var(--hp-section-py) 0; }
.hp-section--alt { background: var(--hp-section-alt-bg); }
.hp-section--dark3 { background: var(--hp-dark3); }

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(var(--hp-feat-cols, 3), 1fr);
  gap: 18px;
}
.hp-feature-card {
  background: var(--hp-card-bg);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all var(--hp-tr);
}
.hp-feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--hp-fire), var(--hp-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hp-tr);
}
.hp-feature-card:hover {
  border-color: rgba(255,107,43,.3);
  transform: translateY(-3px);
}
.hp-feature-card:hover::before { transform: scaleX(1); }
.hp-fi {
  width: 44px; height: 44px;
  background: rgba(255,107,43,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.hp-feature-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: 7px; }
.hp-feature-card p { font-size: .85rem; color: var(--hp-muted); line-height: 1.7; }

/* ══════════════════════════════════════
   PLATFORMS
══════════════════════════════════════ */
.hp-platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-platform-card {
  background: var(--hp-card-bg);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius);
  padding: 22px 20px;
  transition: all var(--hp-tr);
}
.hp-platform-card:hover { border-color: rgba(255,107,43,.28); background: rgba(255,107,43,.03); }
.hp-platform-card .emoji { font-size: 1.7rem; margin-bottom: 10px; }
.hp-platform-card h3 { font-size: .96rem; font-weight: 700; margin-bottom: 4px; }
.hp-platform-card .os { font-size: .74rem; color: var(--hp-fire-light); font-weight: 600; margin-bottom: 7px; }
.hp-platform-card p { font-size: .82rem; color: var(--hp-muted); line-height: 1.6; }

/* ══════════════════════════════════════
   PRICING
══════════════════════════════════════ */
.hp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.hp-price-card {
  background: var(--hp-card-bg);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all var(--hp-tr);
}
.hp-price-card:hover { transform: translateY(-4px); }
.hp-price-card.featured {
  border-color: var(--hp-fire);
  background: linear-gradient(160deg, rgba(255,107,43,.07), var(--hp-card-bg));
  box-shadow: 0 0 50px rgba(255,107,43,.1);
}
.hp-price-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--hp-fire), var(--hp-fire-dark));
  color: #fff;
  font-family: var(--hp-font-heading);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 50px;
  white-space: nowrap;
}
.hp-price-name {
  font-family: var(--hp-font-heading);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hp-muted);
  margin-bottom: 12px;
}
.hp-price-amount {
  font-family: var(--hp-font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hp-light);
  margin-bottom: 4px;
}
.hp-price-amount sup { font-size: .95rem; vertical-align: super; font-weight: 600; }
.hp-price-amount.free { color: var(--hp-gold); font-size: 1.8rem; }
.hp-price-period { font-size: .75rem; color: var(--hp-muted); margin-bottom: 20px; }
.hp-price-feats { text-align: left; margin-bottom: 20px; }
.hp-price-feats li {
  font-size: .82rem;
  color: var(--hp-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; align-items: flex-start; gap: 7px;
}
.hp-price-feats li::before {
  content: '✓';
  color: var(--hp-fire);
  font-weight: 700;
  font-size: .74rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.hp-price-btn {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: var(--hp-btn-radius);
  border: 1px solid rgba(255,107,43,.35);
  background: transparent;
  color: var(--hp-fire);
  font-family: var(--hp-font-heading);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--hp-tr);
  text-align: center;
  text-decoration: none;
}
.hp-price-btn:hover,
.hp-price-card.featured .hp-price-btn {
  background: var(--hp-fire);
  color: #fff;
  border-color: var(--hp-fire);
}

/* ══════════════════════════════════════
   DISCLAIMER
══════════════════════════════════════ */
.hp-disclaimer-box {
  background: rgba(255,107,43,.03);
  border: 1px solid rgba(255,107,43,.18);
  border-left: 4px solid var(--hp-fire);
  border-radius: var(--hp-radius);
  padding: clamp(22px, 4vw, 38px) clamp(20px, 4vw, 42px);
}
.hp-disclaimer-hdr {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.hp-disclaimer-icon {
  width: 42px; height: 42px;
  background: rgba(255,107,43,.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hp-disclaimer-hdr h3 { font-size: 1.15rem; font-weight: 700; }
.hp-disclaimer-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.hp-disclaimer-list li {
  font-size: .88rem;
  color: rgba(245,243,239,.76);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.hp-disclaimer-list li::before {
  content: '⚠';
  position: absolute; left: 0; top: 3px;
  font-size: .64rem; color: var(--hp-fire);
}
.hp-disclaimer-alert {
  background: rgba(255,107,43,.07);
  border-radius: 9px;
  padding: 12px 16px;
  font-size: .84rem;
  color: var(--hp-fire-light);
  font-weight: 500;
}

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.hp-faq-list { display: flex; flex-direction: column; gap: 9px; }
.hp-faq-item {
  background: var(--hp-card-bg);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  transition: border-color var(--hp-tr);
}
.hp-faq-item.open { border-color: rgba(255,107,43,.28); }
.hp-faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--hp-light);
  font-family: var(--hp-font-heading);
  font-size: clamp(.88rem, 2vw, .96rem);
  font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--hp-tr);
  line-height: 1.4;
}
.hp-faq-item.open .hp-faq-q { color: var(--hp-fire); }
.hp-faq-arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .78rem;
  transition: all var(--hp-tr);
}
.hp-faq-item.open .hp-faq-arrow {
  border-color: var(--hp-fire);
  background: rgba(255,107,43,.12);
  transform: rotate(180deg);
}
.hp-faq-a {
  display: none;
  padding: 0 22px 17px;
  font-size: .88rem;
  color: var(--hp-muted);
  line-height: 1.78;
}
.hp-faq-item.open .hp-faq-a { display: block; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.hp-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.hp-contact-info h3 { font-size: 1.35rem; margin-bottom: 10px; }
.hp-contact-info > p { font-size: .93rem; color: var(--hp-muted); line-height: 1.78; margin-bottom: 24px; }
.hp-contact-items { display: flex; flex-direction: column; gap: 11px; }
.hp-contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  background: var(--hp-card-bg);
  border-radius: var(--hp-radius-sm);
  border: 1px solid var(--hp-card-border);
}
.hp-citem-icon {
  width: 34px; height: 34px;
  background: rgba(255,107,43,.1);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.hp-citem-label { font-size: .68rem; color: var(--hp-muted); margin-bottom: 2px; }
.hp-citem-value { font-size: .86rem; font-weight: 500; word-break: break-all; }

/* CF7 */
.hp-cf7-wrap {
  background: var(--hp-card-bg);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius);
  padding: clamp(20px, 4vw, 30px);
}
.hp-cf7-wrap .wpcf7-form p { margin-bottom: 14px; }
.hp-cf7-wrap label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hp-muted);
  margin-bottom: 6px;
}
.hp-cf7-wrap input[type="text"],
.hp-cf7-wrap input[type="email"],
.hp-cf7-wrap input[type="tel"],
.hp-cf7-wrap select,
.hp-cf7-wrap textarea {
  width: 100%;
  background: var(--hp-dark2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--hp-radius-sm);
  padding: 11px 14px;
  color: var(--hp-light);
  font-size: .9rem;
  transition: border-color var(--hp-tr);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.hp-cf7-wrap input:focus,
.hp-cf7-wrap select:focus,
.hp-cf7-wrap textarea:focus { border-color: var(--hp-fire); }
.hp-cf7-wrap textarea { resize: vertical; min-height: 100px; }
.hp-cf7-wrap .wpcf7-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--hp-fire), var(--hp-fire-dark));
  color: #fff;
  font-family: var(--hp-font-heading);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--hp-btn-radius);
  cursor: pointer;
  transition: all var(--hp-tr);
  box-shadow: 0 5px 20px rgba(255,107,43,.28);
}
.hp-cf7-wrap .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,107,43,.42); }
.hp-cf7-wrap .wpcf7-not-valid-tip { color: #f87171; font-size: .75rem; margin-top: 3px; }
.hp-cf7-wrap .wpcf7-response-output { margin-top: 12px; padding: 11px 15px; border-radius: 7px; font-size: .85rem; }
.hp-cf7-wrap .wpcf7-mail-sent-ok { background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.3); color: #25D366; }
.hp-cf7-wrap .wpcf7-validation-errors { background: rgba(255,107,43,.1); border: 1px solid rgba(255,107,43,.3); color: var(--hp-fire); }
.hp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#hp-footer {
  background: var(--hp-dark3);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 60px 0 32px;
}
.hp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.hp-footer-brand .hp-logo-footer { margin-bottom: 13px; }
.hp-footer-brand .hp-logo-footer svg,
.hp-footer-brand .hp-logo-footer img {
  height: 30px;
  width: auto;
  overflow: visible;
}
.hp-footer-brand p { font-size: .83rem; color: var(--hp-muted); line-height: 1.78; max-width: 270px; }
.hp-footer-social { display: flex; gap: 8px; margin-top: 14px; }
.hp-footer-social a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--hp-tr);
  font-size: .85rem;
}
.hp-footer-social a:hover { background: rgba(255,107,43,.14); border-color: var(--hp-fire); }
.hp-footer-col h4 {
  font-family: var(--hp-font-heading);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hp-muted);
  margin-bottom: 15px;
}
.hp-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.hp-footer-col ul li a { font-size: .83rem; color: rgba(245,243,239,.5); transition: color var(--hp-tr); }
.hp-footer-col ul li a:hover { color: var(--hp-fire); }
.hp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hp-footer-copy { font-size: .77rem; color: var(--hp-muted); }
.hp-footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.hp-footer-legal a { font-size: .75rem; color: var(--hp-muted); transition: color var(--hp-tr); }
.hp-footer-legal a:hover { color: var(--hp-fire); }

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.hp-page-hero {
  background: linear-gradient(160deg, var(--hp-dark2), var(--hp-dark));
  border-bottom: 1px solid rgba(255,107,43,.1);
  padding: calc(var(--hp-header-h) + 48px) 0 48px;
  text-align: center;
}
.hp-page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.hp-page-hero p { font-size: 1rem; color: var(--hp-muted); max-width: 520px; margin: 0 auto; }
.hp-breadcrumb {
  display: flex; gap: 7px; align-items: center; justify-content: center;
  font-size: .76rem; color: var(--hp-muted); margin-bottom: 14px;
}
.hp-breadcrumb a { color: var(--hp-muted); }
.hp-breadcrumb a:hover { color: var(--hp-fire); }
.hp-breadcrumb .current { color: var(--hp-fire); }

/* ══════════════════════════════════════
   WHATSAPP BUTTON
══════════════════════════════════════ */
.hp-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 54px; height: 54px;
  background: var(--hp-wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 20px rgba(37,211,102,.38);
  transition: all var(--hp-tr);
  text-decoration: none;
}
.hp-wa-btn:hover { transform: scale(1.1); box-shadow: 0 9px 28px rgba(37,211,102,.55); }
.hp-wa-btn svg { width: 27px; height: 27px; fill: #fff; flex-shrink: 0; }
.hp-wa-tooltip {
  position: absolute;
  right: 62px; top: 50%;
  transform: translateY(-50%);
  background: var(--hp-dark3);
  color: var(--hp-light);
  font-size: .77rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hp-tr);
  border: 1px solid rgba(255,255,255,.08);
}
.hp-wa-btn:hover .hp-wa-tooltip { opacity: 1; }

/* ══════════════════════════════════════
   ADMIN BAR OFFSET
══════════════════════════════════════ */
.admin-bar #hp-header { top: 32px; }
.admin-bar .hp-mobile-nav { top: calc(var(--hp-header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar #hp-header { top: 46px; }
  .admin-bar .hp-mobile-nav { top: calc(var(--hp-header-h) + 46px); }
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink     { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes scrollMouse { 0%, 100% { top: 5px; opacity: 1; } 75% { top: 14px; opacity: 0; } }

/* ══════════════════════════════════════
   ── RESPONSIVE ──
══════════════════════════════════════ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .hp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Tablet portrait: 900px — hamburger starts */
@media (max-width: 900px) {
  /* Hide desktop nav */
  #hp-nav { display: none !important; }
  /* Show hamburger */
  .hp-hamburger { display: flex; }
  /* Hide CTA button in header on small screens (it's in mobile menu) */
  .hp-header-cta-desktop { display: none; }

  /* Hero: single column */
  .hp-hero-inner,
  .hp-hero-inner.layout-left,
  .hp-hero-inner.layout-right {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    text-align: left;
  }
  .hp-hero-visual { display: none !important; }

  /* Contact: stack */
  .hp-contact-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Platforms: 2 cols */
  .hp-platforms-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 640px */
@media (max-width: 640px) {
  :root {
    --hp-section-py:  60px;
    --hp-header-h:    60px;
    --hp-logo-h:      32px;
  }

  /* One column everything */
  .hp-features-grid,
  .hp-platforms-grid,
  .hp-pricing-grid,
  .hp-stats-bar { grid-template-columns: 1fr; }

  /* Footer: 2 cols then 1 */
  .hp-footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Disclaimer */
  .hp-disclaimer-box { padding: 22px 18px; }

  /* Form row: stack */
  .hp-form-row { grid-template-columns: 1fr; }

  /* Hero actions: stack */
  .hp-hero-actions { flex-direction: column; }
  .hp-hero-actions .hp-btn,
  .hp-hero-actions .hp-btn-outline { width: 100%; text-align: center; }

  /* Contact items: smaller */
  .hp-contact-grid { gap: 24px; }

  /* Footer bottom: stack */
  .hp-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hp-footer-legal { gap: 12px; }

  /* WA button: smaller */
  .hp-wa-btn { width: 50px; height: 50px; bottom: 20px; right: 20px; }

  /* Hero text */
  .hp-hero-inner.layout-center .hp-hero-actions,
  .hp-hero-inner.layout-fullscreen .hp-hero-actions { flex-direction: column; align-items: center; }
  .hp-hero-compat { gap: 6px; }

  /* Page hero padding */
  .hp-page-hero { padding-top: calc(var(--hp-header-h) + 32px); }
}

/* Very small: 380px */
@media (max-width: 380px) {
  :root { --hp-logo-h: 28px; }
  .hp-lang-btn .hp-lang-code { display: none; }
  .hp-hero-title { font-size: 1.95rem; }
}

/* Print */
@media print {
  #hp-header, .hp-wa-btn, .hp-hamburger, .hp-mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  #hp-hero { min-height: auto; padding: 30px 0; }
}
