/*!
 * Hydra TV — Design System (main.css)
 * Faithful port of the Laravel reference stylesheet (resources/css/frontend.css).
 * Text domain: hydratv | Prefix: hydratv_
 * Dark-by-default, RTL-first. Class names are preserved 1:1 from the reference
 * markup so the ported section blocks (assets keyed to .hero, .feature-grid,
 * .pricing-grid, etc.) render identically to the source site.
 * DO NOT rename tokens or classes — main.css is the primary look for this theme.
 */

:root {
  --bg: #050914;
  --bg-soft: #0b1325;
  --panel: rgba(12, 21, 40, 0.72);
  --panel-solid: #0f1a31;
  --line: rgba(145, 172, 219, 0.25);
  --text: #f3f8ff;
  --muted: #a6bbd9;
  --primary: #10d7ff;
  --primary-2: #5af5d1;
  --danger: #ff6f92;
  --header-bg: rgba(4, 10, 22, 0.78);
  --header-bg-compact: rgba(4, 10, 22, 0.92);
  --texture-grid: rgba(122, 160, 210, 0.17);
  --texture-glow: rgba(16, 215, 255, 0.08);
  --surface-strong: rgba(10, 17, 31, 0.45);
  --chip-bg: rgba(8, 16, 31, 0.75);
  --chip-text: #d4e5ff;
  --trust-bg: linear-gradient(90deg, rgba(8, 14, 27, 0.72), rgba(8, 14, 27, 0.42), rgba(8, 14, 27, 0.72));
  --trust-item-bg: rgba(14, 24, 43, 0.5);
  --performance-bg: linear-gradient(180deg, transparent, rgba(11, 19, 37, 0.65));
  --categories-bg: rgba(7, 13, 25, 0.45);
  --category-bg: linear-gradient(180deg, rgba(16, 27, 50, 0.85), rgba(7, 14, 27, 0.85));
  --device-bg: rgba(10, 17, 30, 0.7);
  --final-cta-base: rgba(9, 16, 31, 0.8);
  --testimonial-body: #d5e6ff;
  --copyright: #8ba5ca;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --container: min(1120px, 92vw);
}

:root[data-theme="light"] {
  --bg: #eaf2ff;
  --bg-soft: #f5f9ff;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: #ffffff;
  --line: rgba(27, 63, 109, 0.16);
  --text: #13233a;
  --muted: #567093;
  --primary: #0055e9;
  --primary-2: #00b899;
  --danger: #cd2f6d;
  --header-bg: rgba(237, 245, 255, 0.86);
  --header-bg-compact: rgba(236, 244, 255, 0.97);
  --texture-grid: rgba(79, 118, 170, 0.15);
  --texture-glow: rgba(0, 151, 255, 0.11);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --chip-text: #1c3557;
  --trust-bg: linear-gradient(90deg, rgba(220, 235, 255, 0.9), rgba(239, 247, 255, 0.76), rgba(220, 235, 255, 0.9));
  --trust-item-bg: rgba(255, 255, 255, 0.9);
  --performance-bg: linear-gradient(180deg, transparent, rgba(173, 205, 244, 0.28));
  --categories-bg: rgba(225, 238, 255, 0.62);
  --category-bg: linear-gradient(180deg, rgba(250, 253, 255, 0.95), rgba(236, 245, 255, 0.95));
  --device-bg: rgba(255, 255, 255, 0.86);
  --final-cta-base: rgba(255, 255, 255, 0.92);
  --testimonial-body: #1f3a58;
  --copyright: #4e6789;
  --shadow: 0 20px 45px rgba(16, 46, 81, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-size: 16px;
  color: var(--text);
  background:
    radial-gradient(900px 360px at 100% 0%, rgba(16, 215, 255, 0.14), transparent 70%),
    radial-gradient(800px 360px at 0% 20%, rgba(90, 245, 209, 0.12), transparent 70%),
    var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease;
}

p {
  font-size: 16px;
}

.floating-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-icons i {
  position: absolute;
  right: var(--x);
  top: var(--y);
  font-size: clamp(1rem, 2.5vw, 1.65rem);
  color: color-mix(in srgb, var(--primary) 60%, var(--text) 40%);
  opacity: 0.22;
  text-shadow: 0 0 16px color-mix(in srgb, var(--primary) 60%, transparent);
  animation: iconFloat var(--d) ease-in-out infinite;
}

:root[data-theme="light"] .floating-icons i {
  opacity: 0.18;
}

.bg-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.texture-grid {
  background-image:
    linear-gradient(var(--texture-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--texture-grid) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 86%);
  animation: textureShift 26s linear infinite;
}

.texture-glow {
  z-index: -3;
  background:
    radial-gradient(500px 260px at 16% 20%, var(--texture-glow), transparent 68%),
    radial-gradient(520px 240px at 82% 14%, rgba(90, 245, 209, 0.09), transparent 70%);
  filter: blur(8px);
  animation: pulseGlow 12s ease-in-out infinite;
}

h1,
h2,
h3,
h4 {
  font-family: "Cairo", sans-serif;
  line-height: 1.3;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section-padding {
  padding: clamp(3.2rem, 8vw, 6.2rem) 0;
}

.skip-link {
  position: absolute;
  top: -120px;
  right: 10px;
  background: var(--primary);
  color: #04101d;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  z-index: 999;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(145, 172, 219, 0.2);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.site-header.is-compact {
  background: var(--header-bg-compact);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 11px;
  display: block;
  overflow: hidden;
}

.logo-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Mobile menu toggle, panel, and overlay — hidden on desktop, shown via media query */
.mobile-menu-toggle {
  display: none;
}

.mobile-nav,
.mobile-nav-overlay {
  display: none;
}

.theme-toggle {
  border: 1px solid rgba(145, 172, 219, 0.45);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 0.78rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 215, 255, 0.65);
}

.theme-toggle-icon {
  font-size: 0.88rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.58rem 1rem;
  background: rgba(16, 215, 255, 0.15);
  border-color: rgba(16, 215, 255, 0.55);
}

.btn-primary {
  padding: 0.75rem 1.35rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-ghost {
  padding: 0.75rem 1.35rem;
  border-color: rgba(145, 172, 219, 0.45);
  background: var(--surface-strong);
}

.eyebrow {
  color: var(--primary-2);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.9rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.9rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  margin-bottom: 0.8rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: -22% -14% auto;
  height: 400px;
  background:
    radial-gradient(120px 70px at 20% 20%, rgba(255, 255, 255, 0.2), transparent 70%),
    conic-gradient(from 45deg at 50% 50%, rgba(16, 215, 255, 0.22), rgba(90, 245, 209, 0.08), rgba(16, 215, 255, 0.22));
  filter: blur(32px);
  opacity: 0.8;
  z-index: -1;
  animation: meshRotate 20s linear infinite;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

.orb-1 {
  width: 360px;
  height: 360px;
  background: rgba(16, 215, 255, 0.2);
  right: -110px;
  top: -40px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(90, 245, 209, 0.18);
  left: -110px;
  bottom: -90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1.3rem, 4vw, 3.2rem);
}

.hero-content h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.3rem);
  margin-bottom: 0.85rem;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.hero-kpis {
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-kpis li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.75rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  transition: border-color 0.25s ease;
}

.hero-kpis li:hover {
  border-color: rgba(16, 215, 255, 0.35);
}

.hero-kpis li i {
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1;
}

.hero-kpis span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.visual-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-visual:hover .visual-card {
  transform: translateY(-4px);
  border-color: rgba(16, 215, 255, 0.48);
}

.main-panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(145, 172, 219, 0.17);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #9be7c8;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35f39a;
  box-shadow: 0 0 0 7px rgba(53, 243, 154, 0.17);
}

.poster-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.poster {
  margin: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid rgba(145, 172, 219, 0.28);
  background: #0d182a;
  background-size: 180%;
  background-position: center;
  position: relative;
  overflow: hidden;
  animation: posterShift 10s ease-in-out infinite;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.5s ease;
}

.hero-visual:hover .poster img {
  transform: scale(1.12);
}

.poster::after {
  content: "";
  position: absolute;
  inset: -60% -120%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-35%);
  animation: shimmerSweep 4.8s linear infinite;
}

.poster-a {
  background-image: linear-gradient(160deg, #091f3e, #0c6b9f);
}

.poster-b {
  background-image: linear-gradient(160deg, #1f1146, #be3b75);
}

.poster-c {
  background-image: linear-gradient(160deg, #0e3b37, #2ec88b);
}

.poster-d {
  background-image: linear-gradient(160deg, #34372d, #f0b54d);
}

.hero-gif-wrap {
  padding: 0.6rem;
}

.hero-gif {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.panel-stats {
  padding: 0.7rem 1rem 1rem;
  color: var(--muted);
}

.panel-stats p {
  margin: 0;
}

.floating-chip {
  position: absolute;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 172, 219, 0.45);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  animation: chipFloat 4.8s ease-in-out infinite;
}

.chip-1 {
  right: -14px;
  top: 12%;
}

.chip-2 {
  left: -14px;
  top: 45%;
  animation-delay: 0.9s;
}

.chip-3 {
  right: 14%;
  bottom: -32px;
  animation-delay: 1.6s;
}

.trust-bar {
  border-top: 1px solid rgba(145, 172, 219, 0.19);
  border-bottom: 1px solid rgba(145, 172, 219, 0.19);
  background: var(--trust-bg);
  overflow: hidden;
}

.trust-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to left, transparent, black 12%, black 88%, transparent);
}

.trust-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.4rem;
  animation: trustScroll 28s linear infinite;
}

.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}

.trust-track p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  background: var(--trust-item-bg);
  white-space: nowrap;
}

.trust-track strong {
  color: var(--text);
}

/* ── SOCIAL PROOF BAR ──────────────────────────────────────── */
.social-proof-bar {
  padding: 1.4rem 0;
}

.social-proof-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.6rem;
  flex: 1 1 160px;
  min-width: 0;
  position: relative;
}

.proof-item + .proof-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line);
}

.proof-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(16, 215, 255, 0.12);
  border: 1px solid rgba(16, 215, 255, 0.25);
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.proof-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.proof-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.proof-label {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .social-proof-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .proof-item + .proof-item::before {
    inset-inline-start: 12%;
    width: 76%;
    height: 1px;
    top: 0;
  }
  .proof-item {
    padding: 0.9rem 1.2rem;
  }
}


.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 215, 255, 0.45);
}

.feature-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.section-head h2,
.price-card h3,
.testimonial h3,
.final-cta-box h2,
.panel-head span,
.category-card h3,
.device-card,
.site-footer h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.panel-head span i,
.section-head h2 i,
.feature-card h3 i,
.category-card h3 i,
.price-card h3 i,
.testimonial h3 i,
.final-cta-box h2 i,
.site-footer h3 i,
.device-card i {
  color: var(--primary-2);
  font-size: 0.95em;
}

.eyebrow i {
  margin-left: 0.35rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.performance {
  background: var(--performance-bg);
}

.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
}

.metric-board {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.1rem;
}

.metric-item + .metric-item {
  margin-top: 1rem;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.metric-head span {
  color: var(--muted);
}

.metric-head strong {
  font-family: "Cairo", sans-serif;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(145, 172, 219, 0.2);
}

.progress span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.categories {
  background: var(--categories-bg);
}

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.category-card {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--category-bg);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.category-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(145, 172, 219, 0.32);
}

.category-card h3 {
  margin: 0;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.device-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  background: var(--device-bg);
  color: var(--muted);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.device-card {
  justify-content: center;
}

.device-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 215, 255, 0.45);
}

.pricing {
  background: radial-gradient(650px 300px at 20% 0%, rgba(16, 215, 255, 0.08), transparent 70%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 215, 255, 0.45);
}

.price-card .tag {
  position: absolute;
  top: -11px;
  right: 16px;
  margin: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #041323;
  font-weight: 800;
  font-size: 0.76rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.price-card h3 {
  margin-bottom: 0.6rem;
}

.price {
  margin: 0 0 0.8rem;
}

.price span {
  font-size: 2rem;
  font-family: "Cairo", sans-serif;
  color: var(--primary);
}

.price-card ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.price-card li {
  padding-right: 1.1rem;
  position: relative;
}

.price-card li + li {
  margin-top: 0.45rem;
}

.price-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-2);
  position: absolute;
  right: 0;
  top: 0.65rem;
}

.price-card.featured {
  border-color: rgba(16, 215, 255, 0.58);
  box-shadow: 0 18px 46px rgba(16, 215, 255, 0.16);
}

.testimonial-slider {
  position: relative;
  min-height: 170px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s ease, transform 0.42s ease;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 0.85rem;
  align-items: start;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial p {
  margin: 0 0 0.55rem;
  color: var(--testimonial-body);
}

.testimonial h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-2);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(90, 245, 209, 0.42);
  box-shadow: 0 0 0 3px rgba(16, 215, 255, 0.12);
  grid-row: 1 / span 2;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.faq-item button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: right;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.faq-content {
  padding: 0 1rem 1rem;
}

.faq-content p {
  margin: 0;
  color: var(--muted);
}

.final-cta-box {
  border-radius: var(--radius);
  border: 1px solid rgba(16, 215, 255, 0.4);
  background:
    radial-gradient(380px 170px at 100% 0%, rgba(16, 215, 255, 0.2), transparent 70%),
    var(--final-cta-base);
  padding: clamp(1.3rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;
}

.cta-content { /* text side */ }

.cta-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 215, 255, 0.1);
  border: 1px solid rgba(16, 215, 255, 0.3);
  box-shadow: 0 0 24px rgba(16, 215, 255, 0.18);
  color: var(--primary);
}

.cta-ring-lg {
  width: 72px;
  height: 72px;
  font-size: 1.9rem;
}

.cta-icon-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-icon-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s, border-color 0.2s;
}

.cta-icon-chip:hover { transform: translateY(-2px); border-color: var(--primary); }

.cta-chip-accent {
  color: var(--primary);
  border-color: rgba(16, 215, 255, 0.35);
  background: rgba(16, 215, 255, 0.08);
}

.cta-chip-muted {
  color: var(--primary-2);
  border-color: rgba(90, 245, 209, 0.25);
  background: rgba(90, 245, 209, 0.07);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(16, 215, 255, 0.12);
  border: 1px solid rgba(16, 215, 255, 0.3);
  color: var(--primary);
}

@media (max-width: 640px) {
  .final-cta-box {
    grid-template-columns: 1fr;
  }
  .cta-icons { order: -1; }
}

.site-footer {
  border-top: 1px solid rgba(145, 172, 219, 0.18);
  background: var(--bg-soft);
  padding: 2.2rem 0 1.3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
  gap: 1rem 1.5rem;
}

.site-footer h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-logo {
  width: min(180px, 74%);
  height: auto;
  margin: 0.3rem 0 0.5rem;
  object-fit: contain;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.copyright {
  width: var(--container);
  margin: 1.2rem auto 0;
  color: var(--copyright);
  font-size: 0.82rem;
  text-align: center;
}

/* ── Recent Posts Section ──────────────────────────────────────────── */
.recent-posts-section {
  padding: clamp(3.2rem, 8vw, 6.2rem) 0;
}

.recent-posts-section .section-head {
  margin-bottom: 2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 215, 255, 0.4);
  box-shadow: var(--shadow);
}

.post-card-image-link {
  display: block;
  overflow: hidden;
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.04);
}

.post-card-body {
  padding: 1.1rem 1.3rem 1.3rem;
}

.post-card-category {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.post-card-title {
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.post-card-title a {
  color: var(--text);
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  margin-top: 0.2rem;
}

.post-card-footer time {
  color: var(--muted);
}

.mobile-cta {
  display: none;
  position: fixed;
  right: 0.8rem;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 90;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #051321;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(16, 215, 255, 0.32);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   BLOG & ARCHIVE STYLES
   ═══════════════════════════════════════════════════════ */

/* ── Breadcrumbs ─────────────────────────────────────── */
.breadcrumbs-nav {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0.65rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs [aria-current] {
  color: var(--text);
  font-weight: 600;
}

.breadcrumbs .bi {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ── Archive Hero (index / category / tag) ───────────── */
.archive-hero {
  background: var(--bg-soft);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 70% at 55% 50%, rgba(16, 215, 255, 0.08), transparent);
  pointer-events: none;
}

.archive-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.archive-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.archive-hero h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.7rem;
}

.archive-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0;
}

.archive-empty {
  text-align: center;
  color: var(--muted);
  padding: 4rem 0;
  font-size: 1rem;
}

/* ── Blog index wrap ─────────────────────────────────── */
.blog-index-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Category / Tag filter ───────────────────────────── */
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(16, 215, 255, 0.08);
}

.filter-tag .count {
  opacity: 0.6;
  font-size: 0.78rem;
}

/* ── Pagination ──────────────────────────────────────── */
.pagination {
  margin-top: 3rem;
}

.pagination-nav ul {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-link,
.pagination-current,
.pagination-disabled,
.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination-link {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.pagination-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(16, 215, 255, 0.07);
}

.pagination-current {
  background: var(--primary);
  color: #051321;
  font-weight: 700;
  border: 1px solid var(--primary);
}

.pagination-disabled {
  opacity: 0.35;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.pagination-dots {
  color: var(--muted);
  border: none;
}

/* ── Load More Button ───────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-bottom: 1rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 180px;
  padding: 0.75rem 2rem;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid rgba(145, 172, 219, 0.35);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.btn-load-more:hover {
  border-color: var(--accent);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.btn-load-more:active {
  transform: translateY(0);
}

.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

/* Spinning icon for load-more */
.spinning {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Post Hero ───────────────────────────────────────── */
.post-hero {
  background: var(--bg-soft);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 65% 40%, rgba(16, 215, 255, 0.07), transparent);
  pointer-events: none;
}

.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Category Badge ──────────────────────────────────── */
.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 215, 255, 0.12);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 215, 255, 0.25);
  transition: background 0.2s;
  margin-bottom: 1rem;
}

.post-category-badge:hover {
  background: rgba(16, 215, 255, 0.2);
}

/* ── Post Title ──────────────────────────────────────── */
.post-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

/* ── Post Excerpt ────────────────────────────────────── */
.post-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

/* ── Post Meta ───────────────────────────────────────── */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-meta-item .bi {
  color: var(--primary);
  font-size: 0.95rem;
}

.post-meta-author {
  font-weight: 600;
  color: var(--text);
}

/* ── Tags ────────────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  transition: border-color 0.2s, color 0.2s;
}

.tag-badge::before {
  content: '#';
  opacity: 0.55;
  margin-inline-end: 0.1rem;
}

.tag-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Featured Image ──────────────────────────────────── */
.post-featured-image {
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.post-featured-image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  max-height: 500px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.post-featured-placeholder {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid rgba(145, 172, 219, 0.1);
  background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(16, 215, 255, 0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
}

.post-featured-placeholder .bi {
  font-size: 5rem;
  opacity: 0.4;
}

/* ── Post Body (Prose) ───────────────────────────────── */
.post-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
}

.post-body h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: none;
}

.post-body h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.2rem 0 0.8rem;
}

.post-body h4 {
  font-size: 1.07rem;
  font-weight: 700;
  margin: 1.8rem 0 0.6rem;
}

.post-body p {
  margin: 0 0 1.3rem;
}

.post-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-body a:hover {
  opacity: 0.8;
}

.post-body strong {
  font-weight: 700;
  color: var(--text);
}

.post-body em {
  font-style: italic;
}

.post-body u {
  text-decoration-color: rgba(16, 215, 255, 0.5);
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.3rem;
  padding-inline-start: 1.6rem;
}

.post-body li {
  margin-bottom: 0.45rem;
}

.post-body blockquote {
  border-inline-start: 4px solid rgba(145, 172, 219, 0.4);
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  background: rgba(145, 172, 219, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--muted);
}

.post-body blockquote p {
  margin: 0;
}

.post-body pre {
  background: rgba(12, 21, 40, 0.5);
  border: 1px solid rgba(145, 172, 219, 0.15);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  overflow-x: auto;
  margin: 1.8rem 0;
  font-size: 0.9rem;
}

.post-body code {
  background: rgba(145, 172, 219, 0.1);
  color: var(--text);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: 'Consolas', 'Monaco', monospace;
}

.post-body pre code {
  background: none;
  color: var(--text);
  padding: 0;
  font-size: inherit;
}

.post-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.8rem auto;
  display: block;
  border: 1px solid var(--line);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.8rem 0;
}

.post-empty {
  color: var(--muted);
  text-align: center;
  padding: 3rem 0;
}

/* ── Related Posts ───────────────────────────────────── */
.related-posts {
  background: var(--bg-soft);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.related-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.related-heading {
  font-family: 'Cairo', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.related-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.3em;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 2px;
  flex-shrink: 0;
}



/* ═══════════════════════════════════════════════════════
   Floating Contact Buttons
   ═══════════════════════════════════════════════════════ */

.float-contact {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 9999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.float-btn .bi {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.float-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-btn--whatsapp:hover {
  background: linear-gradient(135deg, #2ee87a, #1aad63);
}

.float-btn--telegram {
  background: linear-gradient(135deg, #2aabee, #1a78c2);
}

.float-btn--telegram:hover {
  background: linear-gradient(135deg, #44bfff, #1a96e0);
}

@media (max-width: 480px) {
  .float-contact {
    bottom: 1rem;
    inset-inline-end: 1rem;
    gap: 0.5rem;
  }

  .float-btn {
    width: 3rem;
    height: 3rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .float-btn-label {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   Page (static page at /page/{slug})
   ═══════════════════════════════════════════════════════ */

/* ── Page Hero ───────────────────────────────────────── */
.page-hero {
  background: var(--bg-soft);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 75% at 60% 40%, rgba(16, 215, 255, 0.07), transparent);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

.page-hero-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.page-hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.2rem;
  max-width: 640px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.page-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-hero-meta-item .bi {
  color: var(--primary);
  font-size: 0.95rem;
}

/* ── Page Body Wrapper ───────────────────────────────── */
.page-body-wrap {
  background: var(--bg);
}

/* ── Page Empty State ────────────────────────────────── */
.page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 6rem 1.5rem;
  color: var(--muted);
  text-align: center;
}

.page-empty .bi {
  font-size: 3rem;
  opacity: 0.3;
}

.page-empty p {
  font-size: 1rem;
  opacity: 0.55;
  margin: 0;
}

@keyframes textureShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(54px, 54px, 0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes meshRotate {
  to {
    transform: rotate(1turn);
  }
}

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

@keyframes posterShift {
  0%,
  100% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 58% 40%;
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-35%) rotate(8deg);
  }
  100% {
    transform: translateX(95%) rotate(8deg);
  }
}

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

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .performance-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  /* ── Mobile Menu Toggle Button ─────────────────────────── */
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(145, 172, 219, 0.45);
    background: var(--surface-strong);
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    flex-shrink: 0;
  }

  .mobile-menu-toggle:hover {
    border-color: var(--accent);
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  /* Keep header above overlay when mobile nav is open */
  .site-header.has-mobile-nav-open {
    z-index: 95;
  }

  /* ── Mobile Nav Overlay ───────────────────────────────── */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Mobile Nav Slide-out Panel ───────────────────────── */
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 76px;
    height: calc(100dvh - 76px);
    height: calc(100vh - 76px);
    z-index: 90;
    width: 300px;
    max-width: 85vw;
    background: #050914;
    background: var(--bg, #050914);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-inline-start: 1px solid rgba(145, 172, 219, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  }

  [dir="rtl"] .mobile-nav {
    right: 0;
    transform: translateX(100%);
  }

  [dir="ltr"] .mobile-nav {
    left: 0;
    transform: translateX(-100%);
  }

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

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid rgba(145, 172, 219, 0.15);
  }

  .mobile-nav-title {
    font-family: "Cairo", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
  }

  .mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-nav-close:hover {
    color: var(--text);
    background: var(--surface-strong);
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.8rem;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    color: var(--text);
    font-family: "Cairo", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-link i {
    font-size: 1.15rem;
    color: var(--accent);
    width: 1.35rem;
    text-align: center;
    flex-shrink: 0;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus-visible {
    background: var(--surface-strong);
    color: var(--accent);
  }

  .mobile-nav-footer {
    margin-top: auto;
    padding: 1.2rem;
    border-top: 1px solid rgba(145, 172, 219, 0.15);
  }

  .btn-full {
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .theme-toggle-text {
    display: none;
  }

  .floating-icons i {
    font-size: 1rem;
  }

  .hero-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-track p {
    font-size: 0.82rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .chip-1,
  .chip-2,
  .chip-3 {
    position: static;
    margin-top: 0.65rem;
    display: inline-flex;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 5rem;
  }
}

/* ── Content Tables (Post/Page show) ──────────────────────────────────────── */
.content-table-wrap {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(145, 172, 219, 0.25);
  background: var(--panel-solid, #0f1a31);
}

/* Fallback: bare table directly in post-body (no wrapper) */
.post-body > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(145, 172, 219, 0.25);
  background: var(--panel-solid, #0f1a31);
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.content-table-wrap table {
  display: table;
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: auto;
  background: var(--panel-solid, #0f1a31);
  border: none;
  border-radius: 0;
  margin: 0;
}

/* Strip TipTap's inline col widths so table stays within its container */
.content-table-wrap col {
  width: auto !important;
  min-width: 0 !important;
}

.content-table-wrap thead {
  background: #132744;
}

.content-table-wrap thead th {
  padding: 0.85rem 1rem;
  text-align: start;
  font-weight: 700;
  color: #ffffff;
  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  border: 1px solid rgba(145, 172, 219, 0.25);
  white-space: nowrap;
}

.content-table-wrap tbody td {
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  border: 1px solid rgba(145, 172, 219, 0.18);
  vertical-align: top;
}

.content-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.content-table-wrap tbody tr:hover {
  background: rgba(16, 215, 255, 0.1);
}

.content-table-wrap tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.content-table-wrap tbody tr:nth-child(even):hover {
  background: rgba(16, 215, 255, 0.1);
}

/* Header cells stored in tbody (TipTap pre-rendered HTML) */
.content-table-wrap tbody th {
  padding: 0.85rem 1rem;
  text-align: start;
  font-weight: 700;
  color: #ffffff;
  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  border: 1px solid rgba(145, 172, 219, 0.25);
  white-space: nowrap;
  background: #132744;
}

/* Remove paragraph margin/padding inside table cells */
.content-table-wrap th p,
.content-table-wrap td p {
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════
   HYDRA TV — Section supplements
   In the Laravel reference these sections were laid out with inline styles in
   section.blade.php. In this block theme the render.php outputs semantic class
   names instead, so their layout lives here (matching the reference visuals).
   ═══════════════════════════════════════════════════════ */

/* ── Video section ─────────────────────────────────────── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Gallery section ───────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  object-fit: cover;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-grid figure:hover img {
  transform: translateY(-3px);
  border-color: rgba(16, 215, 255, 0.45);
}

.gallery-grid figcaption {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
  margin-top: 0.45rem;
  color: var(--muted);
}

/* ── Contact section ───────────────────────────────────── */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.contact-info .btn {
  gap: 0.5rem;
}

/* ── Comparison table ──────────────────────────────────── */
.comparison-table-wrap {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison-table thead {
  background: rgba(16, 215, 255, 0.08);
}

.comparison-table th {
  padding: 0.85rem 1rem;
  text-align: start;
  font-weight: 700;
  color: var(--text);
  font-family: "Cairo", sans-serif;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  color: var(--muted);
  border: 1px solid rgba(145, 172, 219, 0.18);
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table tbody tr:hover {
  background: rgba(16, 215, 255, 0.08);
}

/* ── Services / generic section grids reuse .feature-grid ── */
.hydratv-ssr-preview {
  display: block;
}
