/* ==========================================================================
   S7ab.host — Unified Cloudscape Design System (Landing & Terms of Service)
   ========================================================================== */

:root {
  --sky-zenith: #112b50;
  --sky-royal: #1c4478;
  --sky-cerulean: #2d5f9a;
  --sky-horizon: #477bb5;

  --glass-bg: linear-gradient(160deg, rgba(16, 42, 78, 0.74) 0%, rgba(10, 28, 56, 0.84) 100%);
  --glass-bg-strong: linear-gradient(160deg, rgba(18, 48, 88, 0.84) 0%, rgba(11, 31, 62, 0.92) 100%);
  --glass-featured: linear-gradient(160deg, rgba(24, 62, 112, 0.84) 0%, rgba(13, 36, 70, 0.92) 100%);
  --glass-border: rgba(196, 226, 255, 0.18);
  --glass-border-hover: rgba(196, 226, 255, 0.38);
  --glass-border-featured: rgba(145, 208, 255, 0.58);

  --text-white: #ffffff;
  --text-soft: rgba(235, 244, 255, 0.88);
  --text-muted: rgba(198, 220, 246, 0.72);
  --accent-sky: #8ccbff;
  --accent-ice: #c5e5ff;
  --accent-deep: #0e284d;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 22px 54px rgba(5, 16, 36, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-featured: 0 28px 68px rgba(4, 15, 35, 0.52), 0 0 40px rgba(112, 186, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --container-max: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--sky-zenith);
  color: var(--text-white);
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Fixed Sky & Multi-Depth Moving Photorealistic 3D Clouds
   ========================================================================== */

.sky-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 12%, rgba(175, 215, 255, 0.34) 0%, rgba(102, 158, 218, 0.12) 38%, transparent 68%),
    linear-gradient(180deg, var(--sky-zenith) 0%, var(--sky-royal) 38%, var(--sky-cerulean) 74%, var(--sky-horizon) 100%);
}

.cloud-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  left: 0;
  right: auto;
  top: var(--y, 20vh);
  width: var(--w, 50vw);
  min-width: var(--min-w, 380px);
  height: auto;
  opacity: var(--op, 0.9);
  will-change: transform;
  animation: driftAcross var(--dur, 64s) linear var(--delay, 0s) infinite;
}

.cloud img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--flt, none);
  animation: gentleFloat var(--bob-dur, 11s) ease-in-out var(--bob-delay, 0s) infinite alternate;
}

@keyframes driftAcross {
  0% {
    transform: translate3d(-105%, 0, 0);
  }
  100% {
    transform: translate3d(105vw, 0, 0);
  }
}

@keyframes gentleFloat {
  0% {
    transform: translate3d(0, calc(var(--bob, 10px) * -1), 0) rotate(-0.6deg);
  }
  100% {
    transform: translate3d(0, var(--bob, 10px), 0) rotate(0.6deg);
  }
}

/* Soft sapphire atmospheric depth veil so text & glass cards remain effortlessly readable */
.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 42% at 50% 24%, rgba(14, 38, 72, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(12, 32, 62, 0.22) 0%, rgba(10, 28, 55, 0.48) 55%, rgba(9, 24, 48, 0.64) 100%);
}

.page-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.35rem;
}

/* ==========================================================================
   Logo Optical Cropping Utility (compensates 1024x1024 internal transparent pad)
   ========================================================================== */

.s7ab-logo-box {
  position: relative;
  aspect-ratio: 1024 / 585;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(7, 22, 46, 0.55));
}

.s7ab-logo-box img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -16.4%;
  pointer-events: none;
}

/* ==========================================================================
   Sticky Frosted-Glass Navbar
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.9rem 0;
  transition: padding 0.25s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(12, 33, 64, 0.68);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(196, 226, 255, 0.2);
  box-shadow: 0 14px 36px rgba(5, 16, 36, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-brand .s7ab-logo-box {
  width: 68px;
}

.nav-brand-text {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  background: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 10px 26px rgba(7, 22, 46, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f2f8ff;
  box-shadow: 0 14px 32px rgba(7, 22, 46, 0.48), 0 0 20px rgba(255, 255, 255, 0.28);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-white);
  border: 1px solid rgba(210, 232, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(210, 232, 255, 0.48);
}

.btn-sm {
  padding: 0.52rem 1.2rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.04rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: clamp(3.2rem, 7vh, 5.5rem) 0 clamp(2.8rem, 6vh, 4.5rem);
  text-align: center;
}

.hero-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.42rem 1.1rem;
  margin-bottom: 1.6rem;
  border-radius: var(--radius-pill);
  background: rgba(12, 34, 66, 0.62);
  border: 1px solid rgba(180, 218, 255, 0.28);
  backdrop-filter: blur(14px);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--accent-ice);
  box-shadow: 0 8px 24px rgba(5, 16, 36, 0.25);
}

.trust-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.8);
}

.trust-pill a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-logo {
  width: clamp(165px, 19vw, 250px);
  margin-bottom: 1.05rem;
  filter:
    drop-shadow(0 12px 32px rgba(8, 25, 52, 0.7))
    drop-shadow(0 3px 10px rgba(8, 25, 52, 0.55));
}

.hero-title {
  font-weight: 900;
  font-size: clamp(2.1rem, 4.8vw, 3.85rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  text-shadow:
    0 10px 34px rgba(8, 25, 52, 0.72),
    0 3px 10px rgba(8, 25, 52, 0.56);
}

.hero-title span {
  color: var(--accent-ice);
}

.hero-subtitle {
  max-width: 670px;
  font-size: clamp(1.06rem, 1.85vw, 1.32rem);
  font-weight: 500;
  color: rgba(244, 249, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow:
    0 6px 22px rgba(8, 25, 52, 0.68),
    0 2px 7px rgba(8, 25, 52, 0.54);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.highlight-chip {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(12, 34, 66, 0.66);
  border: 1px solid rgba(196, 226, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(5, 16, 36, 0.26);
  text-align: center;
}

.highlight-chip strong {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.highlight-chip span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section {
  padding: clamp(3rem, 6.5vh, 5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.6rem;
}

.section-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.95rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(140, 203, 255, 0.15);
  border: 1px solid rgba(140, 203, 255, 0.32);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--accent-ice);
}

.section-title {
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 0.65rem;
  text-shadow: 0 6px 22px rgba(7, 22, 46, 0.55);
}

.section-desc {
  font-size: 1.06rem;
  color: var(--text-soft);
}

/* ==========================================================================
   Dedicated Per-Bot Specifications Banner (#specs)
   ========================================================================== */

.specs-banner {
  padding: 2.2rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(175, 216, 255, 0.26);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-card);
}

.specs-banner-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(196, 226, 255, 0.14);
}

.specs-banner-top h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.specs-banner-top p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.specs-badge {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(140, 203, 255, 0.16);
  border: 1px solid rgba(140, 203, 255, 0.36);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  white-space: nowrap;
}

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

.spec-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(196, 226, 255, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.spec-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.085);
  border-color: var(--glass-border-hover);
}

.spec-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(140, 203, 255, 0.24), rgba(140, 203, 255, 0.08));
  border: 1px solid rgba(175, 218, 255, 0.3);
  color: var(--accent-ice);
}

.spec-info span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.spec-info strong {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.spec-info small {
  font-size: 0.82rem;
  color: var(--accent-sky);
}

/* ==========================================================================
   Pricing Cards (#pricing)
   ========================================================================== */

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.15rem 1.85rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.28s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
}

.plan-card.featured {
  background: var(--glass-featured);
  border: 1.5px solid var(--glass-border-featured);
  box-shadow: var(--shadow-featured);
  transform: translateY(-8px);
}

.plan-card.featured:hover {
  transform: translateY(-13px);
}

.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1.15rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffffff 0%, #cde7ff 100%);
  color: var(--accent-deep);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(6, 20, 44, 0.4);
}

.plan-header {
  margin-bottom: 1.35rem;
}

.plan-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cairo', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-sky);
  margin-bottom: 0.3rem;
}

.plan-name {
  font-size: 1.58rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.plan-tagline {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 1.15rem 0;
  margin-bottom: 1.35rem;
  border-top: 1px solid rgba(196, 226, 255, 0.14);
  border-bottom: 1px solid rgba(196, 226, 255, 0.14);
}

.plan-price-amount {
  font-family: 'Cairo', sans-serif;
  font-size: 2.95rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

.plan-price-currency {
  font-family: 'Cairo', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-ice);
}

.plan-price-period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-bots-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1.05rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(140, 203, 255, 0.13);
  border: 1px solid rgba(140, 203, 255, 0.28);
}

.plan-bots-highlight strong {
  font-family: 'Cairo', sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.plan-bots-highlight span {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--accent-ice);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.18rem 0.62rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  margin-bottom: 1.85rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  font-size: 0.97rem;
  color: var(--text-soft);
}

.plan-features li strong {
  color: #ffffff;
  font-weight: 700;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(140, 203, 255, 0.18);
  color: var(--accent-ice);
}

.plan-card .btn {
  width: 100%;
  padding: 0.88rem 1.4rem;
  font-size: 1rem;
}

/* ==========================================================================
   Features Grid (#features)
   ========================================================================== */

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

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(145deg, rgba(140, 203, 255, 0.24), rgba(140, 203, 255, 0.07));
  border: 1px solid rgba(175, 218, 255, 0.28);
  color: var(--accent-ice);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.feature-card p {
  font-size: 0.96rem;
  color: var(--text-soft);
  line-height: 1.72;
}

/* ==========================================================================
   Payment & Official Verification Strip
   ========================================================================== */

.payments-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.85rem 2.1rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(175, 216, 255, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.payments-info {
  max-width: 560px;
}

.payments-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.payments-info p {
  font-size: 0.96rem;
  color: var(--text-soft);
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(210, 232, 255, 0.24);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

/* ==========================================================================
   FAQ Accordion (#faq)
   ========================================================================== */

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(5, 16, 36, 0.26);
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.faq-item.open {
  border-color: rgba(165, 214, 255, 0.44);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: right;
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-ice);
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(140, 203, 255, 0.24);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.8;
  border-top: 1px solid rgba(196, 226, 255, 0.1);
  padding-top: 0.95rem;
}

/* ==========================================================================
   Terms of Service (tos.html) Dedicated Legal Layout
   ========================================================================== */

.tos-hero {
  padding: clamp(2.5rem, 5vh, 4rem) 0 1.8rem;
  text-align: center;
}

.tos-card {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(186, 220, 255, 0.22);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-card);
}

.tos-intro {
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.8rem;
  border-radius: var(--radius-lg);
  background: rgba(140, 203, 255, 0.1);
  border: 1px solid rgba(140, 203, 255, 0.26);
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.tos-intro strong {
  color: #ffffff;
}

.cert-link {
  color: var(--accent-ice);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cert-link:hover {
  color: #ffffff;
}

.tos-sections {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tos-section-block {
  padding: 1.4rem 1.55rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(196, 226, 255, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tos-section-block:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(196, 226, 255, 0.26);
}

.tos-section-block h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.tos-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 0.45rem;
  border-radius: 9px;
  background: rgba(140, 203, 255, 0.2);
  border: 1px solid rgba(140, 203, 255, 0.38);
  color: var(--accent-ice);
  font-size: 0.88rem;
  font-weight: 800;
}

.tos-section-block p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 0.55rem;
}

.tos-section-block p:last-child {
  margin-bottom: 0;
}

.tos-section-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tos-section-block li {
  position: relative;
  padding-right: 1.35rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.82;
}

.tos-section-block li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-sky);
  box-shadow: 0 0 8px rgba(140, 203, 255, 0.7);
}

.tos-footer-note {
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(196, 226, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Order / Plan Selection Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 18, 38, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(175, 218, 255, 0.34);
  box-shadow: 0 28px 70px rgba(3, 10, 24, 0.65);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.modal-top h3 {
  font-size: 1.38rem;
  font-weight: 800;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal-summary {
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(140, 203, 255, 0.12);
  border: 1px solid rgba(140, 203, 255, 0.28);
}

.modal-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Cairo', sans-serif;
  margin-bottom: 0.45rem;
}

.modal-summary-row strong {
  font-size: 1.25rem;
  color: #ffffff;
}

.modal-summary p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.modal-body-note {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
  line-height: 1.75;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: 2.6rem 0 2rem;
  border-top: 1px solid rgba(196, 226, 255, 0.14);
  background: rgba(8, 22, 46, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(196, 226, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand .s7ab-logo-box {
  width: 82px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.footer-links a {
  font-family: 'Cairo', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Documentation & Tutorials Hub (docs.html)
   ========================================================================== */

.docs-hero {
  padding: clamp(2.2rem, 4.5vh, 3.6rem) 0 1.5rem;
  text-align: center;
}

.docs-hero .hero-subtitle {
  margin-bottom: 0;
  max-width: 650px;
}

/* Search & Filter Control Dock */
.docs-controls-card {
  margin-bottom: 1.65rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(186, 220, 255, 0.24);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-card);
}

.docs-controls-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.docs-search-wrap {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
}

.docs-search-icon {
  position: absolute;
  right: 1rem;
  color: var(--accent-sky);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
}

.docs-search-input {
  width: 100%;
  padding: 0.78rem 2.75rem 0.78rem 4.2rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 22, 46, 0.62);
  border: 1px solid rgba(196, 226, 255, 0.22);
  color: var(--text-white);
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.docs-search-input::placeholder {
  color: var(--text-muted);
}

.docs-search-input:focus {
  background: rgba(8, 22, 46, 0.82);
  border-color: rgba(145, 208, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(140, 203, 255, 0.16);
}

.docs-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.docs-search-kbd {
  position: absolute;
  left: 0.95rem;
  padding: 0.12rem 0.52rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(196, 226, 255, 0.2);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.8rem;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.docs-search-clear {
  position: absolute;
  left: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: background 0.18s ease;
}

.docs-search-clear:hover {
  background: rgba(255, 255, 255, 0.25);
}

.docs-search-wrap.has-value .docs-search-clear {
  display: inline-flex;
}

.docs-search-wrap.has-value .docs-search-kbd {
  opacity: 0;
}

/* Format Filter Segmented Control (All / Video / Text) */
.docs-type-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 22, 46, 0.56);
  border: 1px solid rgba(196, 226, 255, 0.18);
  flex-wrap: wrap;
}

.docs-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.docs-type-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.docs-type-tab.active {
  background: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 6px 18px rgba(5, 16, 36, 0.32);
}

.docs-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 20px;
  padding: 0 0.38rem;
  border-radius: var(--radius-pill);
  background: rgba(140, 203, 255, 0.18);
  color: var(--accent-ice);
  font-size: 0.76rem;
  font-weight: 800;
}

.docs-type-tab.active .docs-tab-count {
  background: rgba(14, 40, 77, 0.14);
  color: var(--accent-deep);
}

/* Category Filter Pills Row */
.docs-categories-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(196, 226, 255, 0.12);
}

.docs-cat-label {
  font-family: 'Cairo', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.docs-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.88rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 226, 255, 0.16);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-soft);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.docs-cat-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(196, 226, 255, 0.32);
  color: #ffffff;
}

.docs-cat-pill.active {
  background: rgba(140, 203, 255, 0.22);
  border-color: rgba(145, 208, 255, 0.58);
  color: #ffffff;
}

/* Two-Column Workspace (Right Sticky Sidebar + Left Main Stage in RTL) */
.docs-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.45rem;
  align-items: start;
  margin-bottom: 3rem;
}

.docs-mobile-drawer-btn {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(186, 220, 255, 0.26);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-card);
}

/* Sticky Sidebar Navigation */
.docs-sidebar {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 114px);
  display: flex;
  flex-direction: column;
  padding: 1.05rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(186, 220, 255, 0.22);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-card);
}

.docs-overview-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.68rem 0.9rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 226, 255, 0.16);
  color: var(--text-soft);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.91rem;
  text-align: right;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.docs-overview-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.docs-overview-btn.active {
  background: rgba(140, 203, 255, 0.2);
  border-color: rgba(145, 208, 255, 0.52);
  color: #ffffff;
}

.docs-overview-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.docs-nav-tree {
  overflow-y: auto;
  padding-left: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 203, 255, 0.35) transparent;
}

.docs-nav-tree::-webkit-scrollbar {
  width: 5px;
}

.docs-nav-tree::-webkit-scrollbar-thumb {
  background: rgba(140, 203, 255, 0.32);
  border-radius: 99px;
}

.docs-nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.45rem 0.4rem;
  font-family: 'Cairo', sans-serif;
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--accent-sky);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(196, 226, 255, 0.1);
  margin-bottom: 0.4rem;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.docs-nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.72rem;
  border-radius: 11px;
  text-align: right;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.docs-nav-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.docs-nav-item-btn.active {
  background: linear-gradient(90deg, rgba(140, 203, 255, 0.14) 0%, rgba(140, 203, 255, 0.26) 100%);
  border-right: 3px solid var(--accent-ice);
  color: #ffffff;
}

.docs-nav-item-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  color: var(--accent-sky);
  opacity: 0.85;
}

/* Main Stage: Grid Directory View */
.docs-stage {
  min-width: 0;
}

.docs-grid-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.docs-results-count {
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-ice);
}

.docs-reset-link {
  font-family: 'Cairo', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(196, 226, 255, 0.25);
  transition: background 0.2s ease;
}

.docs-reset-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.55rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: right;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.24s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-featured);
  box-shadow: var(--shadow-featured);
}

.doc-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.doc-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 226, 255, 0.2);
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}

.doc-media-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.62rem;
  border-radius: var(--radius-pill);
  font-family: 'Cairo', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.doc-badge-video {
  background: rgba(140, 203, 255, 0.18);
  border: 1px solid rgba(140, 203, 255, 0.38);
  color: var(--accent-ice);
}

.doc-badge-text {
  background: rgba(110, 231, 183, 0.14);
  border: 1px solid rgba(110, 231, 183, 0.34);
  color: #a7f3d0;
}

.doc-card-title {
  font-size: 1.26rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.doc-card-desc {
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.68;
  margin-bottom: 1.25rem;
}

.doc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(196, 226, 255, 0.12);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.doc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-ice);
  transition: transform 0.2s ease, color 0.2s ease;
}

.doc-card:hover .doc-card-cta {
  color: #ffffff;
  transform: translateX(-4px);
}

/* Empty Search / Filter State */
.docs-empty-state {
  padding: 3rem 1.8rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.docs-empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.docs-empty-state p {
  color: var(--text-soft);
  margin-bottom: 1.3rem;
}

/* Single Tutorial Reader View */
.docs-reader-card {
  padding: clamp(1.4rem, 3.2vw, 2.35rem);
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  border: 1px solid rgba(186, 220, 255, 0.24);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reader-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(196, 226, 255, 0.14);
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(196, 226, 255, 0.24);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.87rem;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reader-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.reader-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(140, 203, 255, 0.13);
  border: 1px solid rgba(140, 203, 255, 0.3);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--accent-ice);
  transition: background 0.2s ease, color 0.2s ease;
}

.reader-copy-btn:hover {
  background: rgba(140, 203, 255, 0.24);
  color: #ffffff;
}

.reader-header {
  margin-bottom: 1.6rem;
}

.reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.reader-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
}

.reader-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.reader-summary {
  font-size: 1.04rem;
  color: var(--text-soft);
}

/* In-Article Mode Switcher (Both / Video Only / Text Only) */
.reader-mode-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 22, 46, 0.58);
  border: 1px solid rgba(196, 226, 255, 0.18);
}

.reader-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: 'Cairo', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: background 0.18s ease, color 0.18s ease;
}

.reader-mode-btn:hover {
  color: #ffffff;
}

.reader-mode-btn.active {
  background: rgba(140, 203, 255, 0.24);
  border: 1px solid rgba(145, 208, 255, 0.48);
  color: #ffffff;
}

/* Source Articles Container (Hidden in DOM until cloned/rendered into Reader) */
.docs-source-hidden {
  display: none !important;
}

/* Video Section inside Reader */
.doc-section-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Cairo', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--accent-ice);
  margin-bottom: 0.85rem;
}

.doc-video-block {
  margin-bottom: 2rem;
}

.doc-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 22%, rgba(140, 203, 255, 0.22) 0%, transparent 58%),
    linear-gradient(155deg, rgba(10, 28, 56, 0.95) 0%, rgba(18, 49, 90, 0.92) 100%);
  border: 1px solid rgba(175, 218, 255, 0.28);
  box-shadow: 0 18px 42px rgba(4, 13, 30, 0.48);
}

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

.doc-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0.75rem;
}

.doc-video-play-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 203, 255, 0.18);
  border: 1.5px solid rgba(185, 224, 255, 0.48);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(5, 16, 36, 0.45), 0 0 28px rgba(140, 203, 255, 0.24);
}

.doc-video-placeholder strong {
  font-family: 'Cairo', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
}

.doc-video-placeholder span {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
}

/* Text Steps Section inside Reader */
.doc-text-block {
  padding-top: 0.25rem;
}

.doc-lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.82;
  margin-bottom: 1.35rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(196, 226, 255, 0.13);
}

.doc-steps {
  counter-reset: doc-step-counter;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.doc-step {
  counter-increment: doc-step-counter;
  position: relative;
  padding: 1.2rem 4.15rem 1.2rem 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(196, 226, 255, 0.15);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.doc-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(196, 226, 255, 0.28);
}

.doc-step::before {
  content: counter(doc-step-counter);
  position: absolute;
  right: 1.05rem;
  top: 1.18rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(140, 203, 255, 0.28), rgba(140, 203, 255, 0.1));
  border: 1px solid rgba(175, 218, 255, 0.42);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
}

.doc-step h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.doc-step p {
  font-size: 0.96rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* Optional Image inside Steps */
.doc-media {
  margin-top: 0.85rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(196, 226, 255, 0.2);
  background: rgba(8, 22, 46, 0.5);
}

.doc-media img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Optional Code / Command Snippet Block */
.doc-code {
  position: relative;
  margin-top: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(6, 17, 36, 0.82);
  border: 1px solid rgba(175, 218, 255, 0.22);
  direction: ltr;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  overflow-x: auto;
}

.doc-code code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.89rem;
  color: var(--accent-ice);
  white-space: pre;
}

.doc-code-copy {
  flex-shrink: 0;
  padding: 0.28rem 0.72rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(196, 226, 255, 0.22);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.18s ease;
}

.doc-code-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Callout / Note / Warning Boxes */
.doc-callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.78;
  margin-top: 1rem;
}

.doc-callout strong {
  font-family: 'Cairo', sans-serif;
  color: #ffffff;
}

.doc-callout-info {
  background: rgba(140, 203, 255, 0.12);
  border: 1px solid rgba(140, 203, 255, 0.32);
  color: var(--text-soft);
}

.doc-callout-warn {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fef3c7;
}

/* Reader Prev / Next Navigation Footer */
.reader-Footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(196, 226, 255, 0.14);
}

.reader-adj-btn {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 226, 255, 0.16);
  text-align: right;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.reader-adj-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(175, 218, 255, 0.38);
  transform: translateY(-2px);
}

.reader-adj-btn.is-next {
  text-align: left;
}

.reader-adj-btn small {
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-sky);
}

.reader-adj-btn strong {
  font-family: 'Cairo', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-links {
    gap: 0.15rem;
  }

  .nav-links a {
    padding: 0.42rem 0.72rem;
    font-size: 0.89rem;
  }
}

@media (max-width: 980px) {
  .pricing-grid,
  .features-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .plan-card.featured:hover {
    transform: translateY(-5px);
  }

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

  .docs-workspace {
    grid-template-columns: 1fr;
  }

  .docs-mobile-drawer-btn {
    display: flex;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    display: none;
    margin-bottom: 0.5rem;
  }

  .docs-sidebar.mobile-open {
    display: flex;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.35rem;
    left: 1.35rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    background: rgba(11, 30, 58, 0.95);
    border: 1px solid rgba(196, 226, 255, 0.24);
    backdrop-filter: blur(22px);
    box-shadow: 0 20px 44px rgba(4, 14, 32, 0.55);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  .payments-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .docs-cards-grid,
  .reader-Footer-nav {
    grid-template-columns: 1fr;
  }

  .reader-adj-btn.is-next {
    text-align: right;
  }

  .docs-type-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .docs-type-tab {
    flex: 1;
    justify-content: center;
    padding: 0.48rem 0.55rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .nav-brand-text {
    font-size: 1.02rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .doc-step {
    padding: 1.05rem 3.55rem 1.05rem 1rem;
  }

  .doc-step::before {
    right: 0.8rem;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}
