/*
Theme Name: IBO Player Pro FR
Theme URI: https://ibo-player-pro.com
Author: IBO Player Pro
Author URI: https://ibo-player-pro.com
Description: Thème WordPress premium en français pour IBO Player Pro. Design sombre élégant, animations, tableaux de tarifs, accordéon FAQ, templates de pages complets — 100 % optimisé SEO pour le marché francophone.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iboplayer
Tags: custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready, dark, entertainment, one-page, e-commerce
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ibp-red:        #cc1f1f;
  --ibp-red-dark:   #a01515;
  --ibp-red-glow:   rgba(204,31,31,0.30);
  --ibp-white:      #ffffff;
  --ibp-bg:         #0a0a0f;
  --ibp-surface:    #111118;
  --ibp-surface2:   #19191f;
  --ibp-border:     rgba(255,255,255,0.07);
  --ibp-text:       #f0f0f8;
  --ibp-muted:      #8b8ba8;
  --ibp-gold:       #ffd700;
  --ibp-accent:     #ff4444;

  /* Typography */
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body:    'Outfit', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);

  /* Transitions */
  --trans: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--ibp-bg);
  color: var(--ibp-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--ibp-red); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--ibp-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--ibp-white);
}

p { margin-bottom: 1rem; color: var(--ibp-muted); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25rem; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.text-center   { text-align: center; }
.text-red      { color: var(--ibp-red); }
.text-muted    { color: var(--ibp-muted); }
.text-white    { color: var(--ibp-white); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--ibp-red), #e03333);
  color: var(--ibp-white);
  box-shadow: 0 6px 28px var(--ibp-red-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--ibp-red-dark), var(--ibp-red));
  color: var(--ibp-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--ibp-red-glow);
}
.btn-outline {
  background: transparent;
  color: var(--ibp-text);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--ibp-red);
  color: var(--ibp-white);
  background: rgba(204,31,31,0.1);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ibp-text);
  border-color: var(--ibp-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--ibp-white);
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section {
  padding: var(--section-pad);
}
.section-dark {
  background: var(--ibp-surface);
  border-top: 1px solid var(--ibp-border);
  border-bottom: 1px solid var(--ibp-border);
}
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ibp-red);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--ibp-white);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--ibp-muted);
  font-size: 1rem;
  max-width: 560px;
}
.text-center .section-sub {
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 60px);
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ibp-border);
  transition: background var(--trans);
}
#masthead.scrolled {
  background: rgba(10,10,15,0.97);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
}
.main-navigation ul li a {
  color: var(--ibp-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--trans);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--ibp-white);
}
.main-navigation ul li.menu-cta a {
  background: var(--ibp-red);
  color: var(--ibp-white);
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700;
}
.main-navigation ul li.menu-cta a:hover {
  background: var(--ibp-red-dark);
  color: var(--ibp-white);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ibp-border);
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  color: var(--ibp-text);
  font-size: 1.1rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px clamp(20px,5vw,80px) 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(204,31,31,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(204,31,31,0.07) 0%, transparent 70%),
    var(--ibp-bg);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,31,31,0.15);
  border: 1px solid rgba(204,31,31,0.35);
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff9090;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ibp-red);
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.5); }
}
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  line-height: 0.92;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero h1 em {
  font-style: normal;
  color: var(--ibp-red);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ibp-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-logos {
  margin-top: 64px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s 0.4s ease both;
}
.hero-logos-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ibp-muted);
  margin-bottom: 18px;
}
.hero-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-logos-row img {
  height: 32px;
  object-fit: contain;
  filter: grayscale(1) brightness(2);
  opacity: 0.5;
  transition: opacity var(--trans), filter var(--trans);
}
.hero-logos-row img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(26px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--ibp-surface);
  border-top: 1px solid var(--ibp-border);
  border-bottom: 1px solid var(--ibp-border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 0;
}
.stat-item {
  padding: 44px 28px;
  text-align: center;
  border-right: 1px solid var(--ibp-border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 4rem);
  color: var(--ibp-red);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ibp-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 24px;
  margin-top: 52px;
}
.step-card {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans), border-color var(--trans);
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ibp-red), #ff6666);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204,31,31,0.4);
}
.step-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: rgba(204,31,31,0.12);
  line-height: 1;
  margin-bottom: 10px;
}
.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step-card h3 {
  font-size: 1.1rem;
  color: var(--ibp-white);
  margin-bottom: 8px;
}
.step-card p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   MOVIES MARQUEE
   ============================================================ */
.marquee-section {
  padding: 70px 0;
  background: var(--ibp-surface);
  border-top: 1px solid var(--ibp-border);
  border-bottom: 1px solid var(--ibp-border);
  overflow: hidden;
}
.marquee-inner-label {
  text-align: center;
  padding: 0 clamp(20px,5vw,80px);
  margin-bottom: 36px;
}
.marquee-wrapper { position: relative; }
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  z-index: 2;
  width: 120px;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--ibp-surface), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--ibp-surface), transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.movie-card {
  width: 155px;
  height: 232px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.25s;
  cursor: pointer;
}
.movie-card:hover { transform: scale(1.06); }
.movie-card img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
  margin-top: 52px;
  align-items: stretch;
}
.price-card {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 24px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans), border-color var(--trans);
}
.price-card:hover { transform: translateY(-5px); }
.price-card.featured {
  border-color: var(--ibp-red);
  background: linear-gradient(160deg, rgba(204,31,31,0.12) 0%, var(--ibp-surface) 60%);
  box-shadow: 0 0 50px rgba(204,31,31,0.12);
}
.price-ribbon {
  position: absolute;
  top: 20px; right: -32px;
  background: var(--ibp-red);
  color: var(--ibp-white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 42px;
  transform: rotate(40deg);
}
.price-tier {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ibp-red);
  font-weight: 700;
  margin-bottom: 6px;
}
.price-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ibp-white);
  margin-bottom: 20px;
}
.price-amount {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}
.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ibp-red);
  line-height: 1.75;
}
.price-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ibp-white);
}
.price-free {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #4ade80;
}
.price-period {
  font-size: 0.82rem;
  color: var(--ibp-muted);
  margin-bottom: 28px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ibp-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--ibp-border);
}
.price-features li:last-child { border: none; }
.price-check { color: #4ade80; flex-shrink: 0; }
.btn-subscribe {
  display: block;
  background: linear-gradient(135deg, var(--ibp-red), #e03333);
  color: var(--ibp-white);
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  transition: opacity var(--trans), transform var(--trans);
}
.btn-subscribe:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--ibp-white);
}
.btn-subscribe.secondary {
  background: transparent;
  border: 2px solid var(--ibp-border);
  color: var(--ibp-muted);
}
.btn-subscribe.secondary:hover {
  border-color: var(--ibp-red);
  color: var(--ibp-white);
}

/* ============================================================
   COMPATIBLE DEVICES
   ============================================================ */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-top: 52px;
}
.compat-card {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--trans), border-color var(--trans);
}
.compat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(204,31,31,0.4);
}
.compat-icon { font-size: 2.8rem; margin-bottom: 14px; }
.compat-card h3 {
  font-size: 1rem;
  color: var(--ibp-white);
  margin-bottom: 8px;
}
.compat-card p { font-size: 0.85rem; margin-bottom: 18px; }
.btn-dl {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(204,31,31,0.15);
  border: 1px solid rgba(204,31,31,0.35);
  border-radius: 50px;
  color: #ff9090;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--trans);
}
.btn-dl:hover { background: rgba(204,31,31,0.3); color: #ff9090; }

/* ============================================================
   SMART TV SECTION
   ============================================================ */
.smarttv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}
.smarttv-card {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 24px;
  padding: 36px 32px;
  transition: border-color var(--trans), transform var(--trans);
}
.smarttv-card:hover {
  border-color: rgba(204,31,31,0.4);
  transform: translateY(-3px);
}
.smarttv-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ibp-white);
  margin-bottom: 14px;
}
.smarttv-card p { font-size: 0.9rem; line-height: 1.75; margin-bottom: 18px; }
.version-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(204,31,31,0.15);
  color: #ff9090;
  padding: 5px 14px;
  border-radius: 50px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 22px;
  margin-top: 52px;
}
.testi-card {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color var(--trans);
}
.testi-card:hover { border-color: rgba(204,31,31,0.35); }
.testi-stars {
  color: var(--ibp-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testi-card blockquote {
  font-size: 0.9rem;
  color: var(--ibp-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ibp-red), #e03333);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ibp-white);
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 0.9rem; color: var(--ibp-white); }
.testi-role { font-size: 0.75rem; color: var(--ibp-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--ibp-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ibp-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--trans);
}
.faq-question:hover { color: var(--ibp-red); }
.faq-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--ibp-muted);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--ibp-red); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 0.92rem;
  color: var(--ibp-muted);
  line-height: 1.8;
  transition: max-height 0.35s ease, padding 0.35s;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }

/* ============================================================
   PAYMENT SECTION
   ============================================================ */
.payment-section {
  text-align: center;
  padding: 64px clamp(20px,5vw,80px);
  background: var(--ibp-surface);
  border-top: 1px solid var(--ibp-border);
  border-bottom: 1px solid var(--ibp-border);
}
.payment-section img {
  max-width: 480px;
  width: 100%;
  margin: 24px auto 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 52px;
  align-items: start;
  margin-top: 52px;
}
.contact-info h3 {
  font-size: 1.3rem;
  color: var(--ibp-white);
  margin-bottom: 14px;
}
.contact-info p { margin-bottom: 10px; }
.contact-info a { color: var(--ibp-red); }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ibp-muted);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--ibp-surface2);
  border: 1px solid var(--ibp-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--ibp-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--trans);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--ibp-red);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* WP Forms compatibility */
.wpcf7 .wpcf7-form-control-wrap input,
.wpcf7 .wpcf7-form-control-wrap textarea {
  width: 100%;
  background: var(--ibp-surface2);
  border: 1px solid var(--ibp-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--ibp-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.wpcf7 .wpcf7-submit {
  background: linear-gradient(135deg, var(--ibp-red), #e03333);
  color: var(--ibp-white);
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-area .widget {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.widget-area .widget-title {
  font-size: 1rem;
  color: var(--ibp-white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ibp-border);
}
.widget-area ul { list-style: none; padding: 0; }
.widget-area ul li { padding: 6px 0; border-bottom: 1px solid var(--ibp-border); }
.widget-area ul li:last-child { border: none; }
.widget-area ul li a { color: var(--ibp-muted); font-size: 0.9rem; }
.widget-area ul li a:hover { color: var(--ibp-red); }

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: var(--section-pad);
}
.post-card {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  transition: transform var(--trans), border-color var(--trans);
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(204,31,31,0.35);
}
.post-card-thumb img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 28px; }
.post-meta {
  font-size: 0.78rem;
  color: var(--ibp-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.post-meta a { color: var(--ibp-red); }
.post-card-body h2 { font-size: 1.5rem; margin-bottom: 10px; }
.post-card-body h2 a { color: var(--ibp-white); }
.post-card-body h2 a:hover { color: var(--ibp-red); }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ibp-red);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 14px;
  text-decoration: none;
}
.read-more:hover { color: var(--ibp-accent); }

/* Single post */
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-pad);
}
.single-post-content h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; }
.single-post-content .entry-content p { color: var(--ibp-text); line-height: 1.85; }
.single-post-content .entry-content h2 { margin: 2rem 0 1rem; font-size: 2rem; }
.single-post-content .entry-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.5rem; }
.single-post-content .entry-content ul,
.single-post-content .entry-content ol { margin-bottom: 1.2rem; color: var(--ibp-text); }
.single-post-content .entry-content blockquote {
  border-left: 3px solid var(--ibp-red);
  padding-left: 20px;
  margin: 1.5rem 0;
  color: var(--ibp-muted);
  font-style: italic;
}

/* ============================================================
   PAGE: ABOUT
   ============================================================ */
.about-hero {
  padding: 130px clamp(20px,5vw,80px) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-hero img { border-radius: 20px; box-shadow: 0 20px 60px rgba(204,31,31,0.15); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.about-feature {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 14px;
  padding: 20px;
}
.about-feature-icon { font-size: 1.5rem; margin-bottom: 8px; }
.about-feature h4 { font-size: 0.95rem; color: var(--ibp-white); margin-bottom: 4px; }
.about-feature p { font-size: 0.82rem; margin: 0; }

/* ============================================================
   PAGE: REFUND
   ============================================================ */
.policy-page {
  max-width: 840px;
  margin: 0 auto;
  padding: var(--section-pad);
}
.policy-page h1 { margin-bottom: 30px; }
.policy-page h2 { font-size: 1.75rem; margin: 2rem 0 0.8rem; }
.policy-page p, .policy-page li { color: var(--ibp-text); line-height: 1.85; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--ibp-bg);
  border-top: 1px solid var(--ibp-border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 70px clamp(20px,4vw,60px) 52px;
}
.footer-brand .site-logo img { height: 48px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ibp-red);
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--ibp-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--ibp-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px clamp(20px,4vw,60px);
  border-top: 1px solid var(--ibp-border);
}
.footer-bottom p { font-size: 0.82rem; margin: 0; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ibp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ibp-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--trans);
}
.social-links a:hover {
  border-color: var(--ibp-red);
  color: var(--ibp-red);
}

/* ============================================================
   GUTENBERG / BLOCK EDITOR COMPATIBILITY
   ============================================================ */
.wp-block-button__link {
  background: var(--ibp-red) !important;
  border-radius: 50px !important;
}
.wp-block-quote { border-left: 3px solid var(--ibp-red); padding-left: 20px; }
.wp-block-separator { border-color: var(--ibp-border); }
.has-dark-background { background: var(--ibp-surface); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,80px) 80px;
}
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.comment-author .fn { color: var(--ibp-white); font-weight: 600; }
.comment-metadata { font-size: 0.78rem; color: var(--ibp-muted); margin-bottom: 10px; }
#respond .comment-form input,
#respond .comment-form textarea {
  width: 100%;
  background: var(--ibp-surface2);
  border: 1px solid var(--ibp-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ibp-text);
  font-family: var(--font-body);
  margin-bottom: 14px;
}
#respond .submit {
  background: var(--ibp-red);
  color: var(--ibp-white);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-hero  { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .smarttv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-navigation { display: none; }
  .main-navigation.open { display: block; }
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    background: var(--ibp-surface);
    padding: 20px;
    position: absolute;
    top: 74px; left: 0; right: 0;
    border-bottom: 1px solid var(--ibp-border);
  }
  .main-navigation ul li a { padding: 12px 0; display: block; }
  .menu-toggle { display: block; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--ibp-border); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .compat-grid  { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #masthead, #colophon, .hero-btns { display: none; }
  body { background: white; color: black; }
}

/* ============================================================
   CONTACT PAGE – INFO PANEL DETAIL LIST
   ============================================================ */
.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--ibp-surface2);
  border: 1px solid var(--ibp-border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color var(--trans);
}
.contact-detail-item:hover { border-color: rgba(204,31,31,0.35); }
.contact-detail-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
}
.contact-detail-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ibp-red);
  font-weight: 700;
}
.contact-detail-item a,
.contact-detail-item span:not(.contact-detail-label) {
  color: var(--ibp-text);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color var(--trans);
}
.contact-detail-item a:hover { color: var(--ibp-red); }

/* CF7 wrapper overrides – matches theme dark style */
.cf7-wrapper .wpcf7 { margin: 0; }
.cf7-wrapper .wpcf7-form p { margin-bottom: 20px; }
.cf7-wrapper .wpcf7-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ibp-muted);
  margin-bottom: 8px;
}
.cf7-wrapper .wpcf7-form input[type="text"],
.cf7-wrapper .wpcf7-form input[type="email"],
.cf7-wrapper .wpcf7-form input[type="tel"],
.cf7-wrapper .wpcf7-form input[type="url"],
.cf7-wrapper .wpcf7-form input[type="number"],
.cf7-wrapper .wpcf7-form select,
.cf7-wrapper .wpcf7-form textarea {
  width: 100%;
  background: var(--ibp-surface2);
  border: 1px solid var(--ibp-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--ibp-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  -webkit-appearance: none;
}
.cf7-wrapper .wpcf7-form input:focus,
.cf7-wrapper .wpcf7-form select:focus,
.cf7-wrapper .wpcf7-form textarea:focus {
  border-color: var(--ibp-red);
  box-shadow: 0 0 0 3px rgba(204,31,31,0.12);
}
.cf7-wrapper .wpcf7-form textarea { min-height: 140px; resize: vertical; }
.cf7-wrapper .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b8ba8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.cf7-wrapper .wpcf7-submit,
.cf7-wrapper input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--ibp-red), #e03333);
  color: var(--ibp-white);
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--trans), transform var(--trans);
  box-shadow: 0 6px 24px rgba(204,31,31,0.28);
  margin-top: 4px;
}
.cf7-wrapper .wpcf7-submit:hover,
.cf7-wrapper input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
/* CF7 validation messages */
.cf7-wrapper .wpcf7-not-valid-tip {
  color: var(--ibp-accent);
  font-size: 0.78rem;
  margin-top: 5px;
  display: block;
}
.cf7-wrapper .wpcf7-response-output {
  border: 1px solid var(--ibp-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-top: 14px;
}
.cf7-wrapper .wpcf7-mail-sent-ok {
  border-color: #4ade80 !important;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
}
.cf7-wrapper .wpcf7-mail-sent-ng,
.cf7-wrapper .wpcf7-aborted {
  border-color: var(--ibp-red) !important;
  color: var(--ibp-accent);
  background: rgba(204,31,31,0.08);
}
.cf7-wrapper .wpcf7-spam-blocked {
  border-color: #f59e0b !important;
  color: #f59e0b;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.ibp-wa-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tooltip bubble */
.ibp-wa-tooltip {
  background: var(--ibp-surface);
  border: 1px solid var(--ibp-border);
  color: var(--ibp-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ibp-wa-wrap:hover .ibp-wa-tooltip,
.ibp-wa-wrap:focus-within .ibp-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Main button */
.ibp-wa-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  box-shadow:
    0 4px 20px rgba(37,211,102,0.4),
    0 0 0 0 rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ibp-wa-entry 0.5s 1.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.ibp-wa-btn:hover {
  transform: scale(1.1);
  box-shadow:
    0 8px 32px rgba(37,211,102,0.5),
    0 0 0 0 rgba(37,211,102,0);
  color: #ffffff;
}
.ibp-wa-btn:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

/* WhatsApp SVG icon */
.ibp-wa-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Pulse ring */
.ibp-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  border: 3px solid #25D366;
  animation: ibp-wa-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes ibp-wa-pulse {
  0%   { transform: scale(1);   opacity: 0.75; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes ibp-wa-entry {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ibp-wa-pulse { animation: none; }
  .ibp-wa-btn   { animation: none; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .ibp-wa-wrap { bottom: 20px; right: 16px; }
  .ibp-wa-btn  { width: 54px; height: 54px; }
  .ibp-wa-icon { width: 26px; height: 26px; }
  .ibp-wa-tooltip { display: none; } /* no room on mobile; button speaks for itself */
}

/* ============================================================
   COMPAT CARD – SVG ICON SIZING
   ============================================================ */
.compat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: rgba(204,31,31,0.08);
  border: 1px solid rgba(204,31,31,0.18);
  border-radius: 18px;
  transition: background var(--trans), border-color var(--trans);
}
.compat-card:hover .compat-icon {
  background: rgba(204,31,31,0.15);
  border-color: rgba(204,31,31,0.4);
}
.compat-icon svg {
  width: 32px;
  height: 32px;
  display: block;
  color: var(--ibp-red);
}
/* Android icon keeps its own green brand colour */
.compat-icon svg [fill="#3DDC84"],
.compat-icon svg [stroke="#3DDC84"] {
  /* intentional – preserve Android brand green */
}

/* Smart TV brand row with icon */
.smarttv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ibp-white);
  margin-bottom: 14px;
}
.smarttv-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--ibp-red);
}

/* ============================================================
   STEP CARDS – SVG ICON SIZING
   ============================================================ */
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(204,31,31,0.10);
  border: 1px solid rgba(204,31,31,0.22);
  border-radius: 14px;
  margin-bottom: 16px;
  transition: background var(--trans), border-color var(--trans);
}
.step-card:hover .step-icon {
  background: rgba(204,31,31,0.18);
  border-color: rgba(204,31,31,0.45);
}
.step-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  color: var(--ibp-red);
}
