/* =============================================
   AUTO CAR — Landing Page Stylesheet
   Dark SaaS Theme | Royal Blue + Orange Accent
   Arabic RTL Support Included
   ============================================= */

/* ── Google Fonts (Latin + Arabic) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --clr-bg:          #080c14;
  --clr-surface:     #0d1423;
  --clr-surface-2:   #111827;
  --clr-surface-3:   #1a2237;
  --clr-border:      rgba(255,255,255,0.07);
  --clr-border-glow: rgba(37,99,235,0.35);

  --clr-blue:        #2563eb;
  --clr-blue-light:  #3b82f6;
  --clr-blue-glow:   rgba(37,99,235,0.25);
  --clr-orange:      #f97316;
  --clr-orange-light:#fb923c;
  --clr-orange-glow: rgba(249,115,22,0.22);

  --clr-text-primary:   #f0f4ff;
  --clr-text-secondary: #94a3b8;
  --clr-text-muted:     #475569;

  --font-body:    'Inter', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-ar-body:    'Tajawal', sans-serif;
  --font-ar-heading: 'Cairo', sans-serif;

  --section-pad: clamp(64px, 8vw, 110px);
  --container:   1220px;
  --gap:         24px;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   ARABIC (RTL) FONT OVERRIDES
═══════════════════════════════════════════ */
[lang="ar"] body,
html[lang="ar"] body {
  font-family: var(--font-ar-body);
  direction: rtl;
  text-align: right;
}
html[lang="ar"] .section-title,
html[lang="ar"] .feature-title,
html[lang="ar"] .timeline-title,
html[lang="ar"] .hero-headline,
html[lang="ar"] .cta-title,
html[lang="ar"] .nav-logo .logo-text,
html[lang="ar"] .stat-card .stat-name,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--font-ar-heading);
  letter-spacing: 0;
}
html[lang="ar"] .hero-headline {
  line-height: 1.25;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
}
html[lang="ar"] .section-title {
  line-height: 1.35;
}
html[lang="ar"] .badge {
  letter-spacing: 0;
  font-size: 0.8rem;
}
html[lang="ar"] .hero-stat .stat-label,
html[lang="ar"] .timeline-step {
  letter-spacing: 0;
  text-transform: none;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

/* ═══════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--clr-blue) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.lang-btn:not(.active):hover {
  color: var(--clr-text-primary);
  background: rgba(255,255,255,0.06);
}
html[lang="ar"] .lang-btn[data-lang="ar"] { font-family: var(--font-ar-body); }
html[lang="ar"] .lang-btn[data-lang="en"] { font-family: var(--font-body); }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--clr-border);
  background: rgba(37,99,235,0.12);
  color: var(--clr-blue-light);
}
.badge--orange {
  background: rgba(249,115,22,0.12);
  color: var(--clr-orange-light);
  border-color: rgba(249,115,22,0.25);
}
.section-label { text-align: center; margin-bottom: 14px; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  letter-spacing: -0.02em;
}
html[lang="ar"] .section-title { font-family: var(--font-ar-heading); }
.section-title span { color: var(--clr-blue-light); }
.section-title .accent-orange { color: var(--clr-orange); }
.section-subtitle {
  text-align: center;
  color: var(--clr-text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin-inline: auto;
  margin-top: 14px;
}
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, var(--clr-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
html[lang="ar"] .btn { font-family: var(--font-ar-body); letter-spacing: 0; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--clr-blue) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--clr-blue-glow), 0 1px 3px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--clr-blue-glow), 0 2px 6px rgba(0,0,0,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--clr-surface-3);
  color: var(--clr-text-primary);
  border: 1px solid var(--clr-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--clr-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn-orange {
  background: linear-gradient(135deg, var(--clr-orange) 0%, #ea6c05 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--clr-orange-glow);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--clr-orange-glow); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(16px, 5vw, 48px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
  gap: 16px;
}
.navbar.scrolled {
  background: rgba(8, 12, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
/* RTL Navbar — logo stays on the correct side automatically */
html[lang="ar"] .navbar { direction: rtl; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo .logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 12px var(--clr-orange-glow);
  transition: var(--transition);
}
.nav-logo:hover .logo-img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px var(--clr-orange-glow);
}
.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-logo .logo-text span { color: var(--clr-orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
html[lang="ar"] .nav-links { font-family: var(--font-ar-body); }
.nav-links a {
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--clr-text-primary); background: rgba(255,255,255,0.06); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--clr-text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('hero_bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.28) saturate(1.4);
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,0.18) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(8,12,20,0.1) 0%, rgba(8,12,20,0.85) 100%);
  z-index: 1;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; animation: float 8s ease-in-out infinite; }
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 70%);
  bottom: -50px; right: -80px;
  animation-delay: -4s;
}
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }

.hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: var(--section-pad);
}
html[lang="ar"] .hero-content { direction: rtl; }

.hero-text .hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.hero-text .hero-eyebrow::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--clr-border-glow), transparent);
  max-width: 80px;
}
html[lang="ar"] .hero-text .hero-eyebrow::after {
  background: linear-gradient(to left, var(--clr-border-glow), transparent);
}
/* In RTL, ::after becomes visually "before" — swap to ::before */
html[lang="ar"] .hero-text .hero-eyebrow::after { display: none; }
html[lang="ar"] .hero-text .hero-eyebrow::before {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--clr-border-glow), transparent);
  max-width: 80px;
  order: -1;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--clr-text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}
html[lang="ar"] .hero-description { line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 32px; padding-top: 28px;
  border-top: 1px solid var(--clr-border);
}
.hero-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 800;
  color: var(--clr-text-primary); line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.78rem; color: var(--clr-text-muted); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
html[lang="ar"] .hero-stat .stat-label { font-family: var(--font-ar-body); font-size: 0.82rem; }

/* Dashboard card */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.dashboard-card {
  background: linear-gradient(145deg, rgba(17,24,39,0.95) 0%, rgba(13,20,35,0.98) 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 28px; width: 100%; max-width: 460px;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.12), 0 20px 60px rgba(0,0,0,0.6), 0 0 80px rgba(37,99,235,0.08);
  animation: card-float 6s ease-in-out infinite;
}
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--clr-border);
}
.dash-header h3 { font-size: 0.85rem; font-weight: 600; color: var(--clr-text-secondary); letter-spacing: 0.04em; text-transform: uppercase; }
.dash-live { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: #34d399; font-weight: 500; }
.dash-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-box {
  background: var(--clr-surface-3); border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); padding: 14px 12px; text-align: center; transition: var(--transition);
}
.metric-box:hover { border-color: var(--clr-blue-light); }
.metric-box .m-value { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--clr-text-primary); line-height: 1; }
.metric-box .m-label { font-size: 0.68rem; color: var(--clr-text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-box.accent { border-color: var(--clr-blue-light); }
.metric-box.accent .m-value { color: var(--clr-blue-light); }
.metric-box.accent-or { border-color: var(--clr-orange); }
.metric-box.accent-or .m-value { color: var(--clr-orange); }

.dash-list { display: flex; flex-direction: column; gap: 8px; }
.dash-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--clr-surface-3); border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 0.8rem; transition: var(--transition);
}
.dash-row:hover { border-color: var(--clr-border-glow); transform: translateX(3px); }
html[lang="ar"] .dash-row:hover { transform: translateX(-3px); }
.dash-row .row-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(37,99,235,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.dash-row .row-info { flex: 1; min-width: 0; }
.dash-row .row-name { font-weight: 600; color: var(--clr-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row .row-sub { color: var(--clr-text-muted); font-size: 0.7rem; }
.status-pill { padding: 3px 8px; border-radius: 999px; font-size: 0.65rem; font-weight: 600; white-space: nowrap; }
.status-active   { background: rgba(52,211,153,0.15); color: #34d399; }
.status-pending  { background: rgba(249,115,22,0.15); color: var(--clr-orange); }
.status-complete { background: rgba(59,130,246,0.15); color: var(--clr-blue-light); }

.hero-notif {
  position: absolute; bottom: 12px; left: -30px;
  background: var(--clr-surface); border: 1px solid var(--clr-border-glow);
  border-radius: var(--radius-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: notif-appear 1s ease 1.5s both, card-float 5s ease-in-out 2s infinite;
  max-width: 220px;
}
html[lang="ar"] .hero-notif { left: auto; right: -30px; text-align: right; }
@keyframes notif-appear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.notif-icon { font-size: 1.3rem; flex-shrink: 0; }
.notif-title { font-weight: 600; color: var(--clr-text-primary); }
.notif-sub { color: var(--clr-text-muted); font-size: 0.7rem; }

/* ═══════════════════════════════════════════
   TRUSTED BY
═══════════════════════════════════════════ */
.trusted-section {
  padding: 32px 0 16px;
  border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border);
  background: rgba(255,255,255,0.015);
}
.trusted-label { text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--clr-text-muted); margin-bottom: 18px; }
html[lang="ar"] .trusted-label { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 0.85rem; }
.trusted-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 32px; }
.trusted-logos .t-logo {
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  color: var(--clr-text-muted); opacity: 0.55; transition: var(--transition);
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px;
}
.trusted-logos .t-logo:hover { opacity: 1; color: var(--clr-text-primary); }

/* ═══════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════ */
.features-section { padding-block: var(--section-pad); position: relative; }
.features-section::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--clr-border-glow), transparent);
  opacity: 0.5; pointer-events: none;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 56px; }
.feature-card {
  background: linear-gradient(145deg, var(--clr-surface) 0%, var(--clr-surface-2) 100%);
  border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative; overflow: hidden; transition: var(--transition); cursor: default;
}
html[lang="ar"] .feature-card { text-align: right; }
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: var(--clr-border-glow); transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(37,99,235,0.15); }
.feature-card-corner { position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: radial-gradient(circle at top right, rgba(37,99,235,0.15) 0%, transparent 60%); border-radius: 0 var(--radius-lg) 0 0; }
html[lang="ar"] .feature-card-corner { right: auto; left: 0; border-radius: var(--radius-lg) 0 0 0; background: radial-gradient(circle at top left, rgba(37,99,235,0.15) 0%, transparent 60%); }
.feature-card.card-orange .feature-card-corner { background: radial-gradient(circle at top right, rgba(249,115,22,0.15) 0%, transparent 60%); }
html[lang="ar"] .feature-card.card-orange .feature-card-corner { background: radial-gradient(circle at top left, rgba(249,115,22,0.15) 0%, transparent 60%); }
.feature-card.card-orange:hover { border-color: rgba(249,115,22,0.4); box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(249,115,22,0.2); }
.feature-icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.2); transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap { background: rgba(37,99,235,0.2); box-shadow: 0 4px 20px var(--clr-blue-glow); transform: scale(1.08); }
.feature-card.card-orange .feature-icon-wrap { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.2); }
.feature-card.card-orange:hover .feature-icon-wrap { background: rgba(249,115,22,0.2); box-shadow: 0 4px 20px var(--clr-orange-glow); }
.feature-card.card-green .feature-icon-wrap { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.2); }
.feature-card.card-green:hover { border-color: rgba(52,211,153,0.35); }
.feature-card.card-green:hover .feature-icon-wrap { background: rgba(52,211,153,0.18); box-shadow: 0 4px 20px rgba(52,211,153,0.2); }
.feature-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--clr-text-primary); }
html[lang="ar"] .feature-title { font-family: var(--font-ar-heading); }
.feature-desc { font-size: 0.875rem; color: var(--clr-text-secondary); line-height: 1.7; }
html[lang="ar"] .feature-desc { line-height: 1.85; }
.feature-tag { display: inline-block; margin-top: 18px; font-size: 0.68rem; font-weight: 600; color: var(--clr-blue-light); letter-spacing: 0.06em; text-transform: uppercase; }
html[lang="ar"] .feature-tag { letter-spacing: 0; font-size: 0.78rem; font-family: var(--font-ar-body); }
.feature-card.card-orange .feature-tag { color: var(--clr-orange); }
.feature-card.card-green .feature-tag { color: #34d399; }

/* ═══════════════════════════════════════════
   HOW IT WORKS — TIMELINE
═══════════════════════════════════════════ */
.how-section {
  padding-block: var(--section-pad);
  background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
  position: relative; overflow: hidden;
}
.how-section::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.timeline { position: relative; margin-top: 64px; display: flex; flex-direction: column; gap: 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--clr-border-glow) 10%, var(--clr-border-glow) 90%, transparent 100%);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid; grid-template-columns: 1fr 56px 1fr;
  gap: 0 24px; align-items: start; padding-block: 28px; position: relative;
}
.timeline-node {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-surface-3) 0%, var(--clr-surface-2) 100%);
  border: 2px solid var(--clr-border-glow);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: 0 0 20px var(--clr-blue-glow), 0 4px 12px rgba(0,0,0,0.4);
  position: relative; z-index: 2; transition: var(--transition); cursor: default; align-self: flex-start;
}
.timeline-item:hover .timeline-node { transform: scale(1.15); box-shadow: 0 0 32px var(--clr-blue-glow), 0 4px 16px rgba(0,0,0,0.5); border-color: var(--clr-blue-light); }
.timeline-content {
  background: linear-gradient(145deg, var(--clr-surface) 0%, var(--clr-surface-2) 100%);
  border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
html[lang="ar"] .timeline-content { text-align: right; }
.timeline-content:hover { border-color: var(--clr-border-glow); transform: translateX(-6px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.timeline-item:nth-child(even) .timeline-content:hover { transform: translateX(6px); }
html[lang="ar"] .timeline-content:hover { transform: translateX(6px); }
html[lang="ar"] .timeline-item:nth-child(even) .timeline-content:hover { transform: translateX(-6px); }

.timeline-item:nth-child(odd) .timeline-content  { grid-column: 1; grid-row: 1; }
.timeline-item:nth-child(odd) .timeline-node      { grid-column: 2; grid-row: 1; }
.timeline-item:nth-child(odd) .timeline-spacer    { grid-column: 3; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-spacer   { grid-column: 1; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-node     { grid-column: 2; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-content  { grid-column: 3; grid-row: 1; }

/* RTL timeline: mirror the layout */
html[lang="ar"] .timeline-item:nth-child(odd) .timeline-content  { grid-column: 3; }
html[lang="ar"] .timeline-item:nth-child(odd) .timeline-spacer   { grid-column: 1; }
html[lang="ar"] .timeline-item:nth-child(even) .timeline-content { grid-column: 1; }
html[lang="ar"] .timeline-item:nth-child(even) .timeline-spacer  { grid-column: 3; }

.timeline-step { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--clr-blue-light); margin-bottom: 6px; }
html[lang="ar"] .timeline-step { font-family: var(--font-ar-body); letter-spacing: 0; text-transform: none; }
.timeline-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--clr-text-primary); }
html[lang="ar"] .timeline-title { font-family: var(--font-ar-heading); }
.timeline-desc { font-size: 0.85rem; color: var(--clr-text-secondary); line-height: 1.7; }
html[lang="ar"] .timeline-desc { line-height: 1.9; }

/* ═══════════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════════ */
.stats-section {
  padding-block: var(--section-pad);
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(8,12,20,0) 50%, rgba(249,115,22,0.06) 100%);
  border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat-card {
  text-align: center; padding: 32px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border); background: rgba(255,255,255,0.02); transition: var(--transition);
}
.stat-card:hover { border-color: var(--clr-border-glow); background: rgba(37,99,235,0.05); transform: translateY(-4px); }
.stat-card .stat-num { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1; margin-bottom: 8px; }
.stat-card .stat-num.blue  { color: var(--clr-blue-light); }
.stat-card .stat-num.orange{ color: var(--clr-orange); }
.stat-card .stat-num.green { color: #34d399; }
.stat-card .stat-num.purple{ color: #a78bfa; }
.stat-card .stat-name { font-size: 0.85rem; color: var(--clr-text-secondary); }
html[lang="ar"] .stat-card .stat-name { font-family: var(--font-ar-body); }

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
.cta-section { padding-block: var(--section-pad); position: relative; overflow: hidden; }
.cta-box {
  background: linear-gradient(135deg, rgba(17,24,39,0.95) 0%, rgba(13,20,35,0.98) 100%);
  border: 1px solid var(--clr-border); border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 64px); text-align: center;
  position: relative; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.cta-box::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clr-blue), var(--clr-orange), var(--clr-blue));
  background-size: 200% 100%; animation: shimmer 4s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.cta-box-orb { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.cta-box-orb-1 { background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%); top: -150px; left: -100px; }
.cta-box-orb-2 { background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%); bottom: -150px; right: -100px; }
.cta-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 16px; position: relative; }
html[lang="ar"] .cta-title { font-family: var(--font-ar-heading); letter-spacing: 0; line-height: 1.35; }
.cta-subtitle { font-size: 1rem; color: var(--clr-text-secondary); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; position: relative; }
html[lang="ar"] .cta-subtitle { line-height: 1.9; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; position: relative; }
.cta-note { margin-top: 18px; font-size: 0.78rem; color: var(--clr-text-muted); position: relative; }
html[lang="ar"] .cta-note { font-family: var(--font-ar-body); font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { border-top: 1px solid var(--clr-border); padding-top: 56px; padding-bottom: 28px; background: var(--clr-surface); }
html[lang="ar"] .footer { direction: rtl; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.85rem; color: var(--clr-text-secondary); line-height: 1.7; margin-top: 12px; max-width: 260px; }
html[lang="ar"] .footer-brand p { font-family: var(--font-ar-body); line-height: 1.9; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--clr-surface-3); border: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); }
.social-btn:hover { background: rgba(37,99,235,0.18); border-color: var(--clr-blue-light); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clr-text-secondary); margin-bottom: 16px; }
html[lang="ar"] .footer-col h4 { font-family: var(--font-ar-heading); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--clr-text-muted); transition: var(--transition); }
html[lang="ar"] .footer-col ul li a { font-family: var(--font-ar-body); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--clr-text-primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--clr-border);
  font-size: 0.8rem; color: var(--clr-text-muted); flex-wrap: wrap; gap: 12px;
}
html[lang="ar"] .footer-bottom { font-family: var(--font-ar-body); font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════ */
.mobile-menu {
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(8, 12, 20, 0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 24px clamp(16px, 5vw, 48px) 28px;
  display: flex; flex-direction: column; gap: 8px; z-index: 999;
  transform: translateY(-110%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateY(0); }
html[lang="ar"] .mobile-menu { direction: rtl; text-align: right; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul li a {
  display: block; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; color: var(--clr-text-secondary); transition: var(--transition);
}
html[lang="ar"] .mobile-menu ul li a { font-family: var(--font-ar-body); }
.mobile-menu ul li a:hover { color: var(--clr-text-primary); background: rgba(255,255,255,0.06); }
.mobile-menu .btn { margin-top: 12px; text-align: center; justify-content: center; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { display: none; }
  .timeline::before { left: 24px; }
  html[lang="ar"] .timeline::before { left: auto; right: 24px; }
  .timeline-item { grid-template-columns: 56px 1fr; gap: 0 16px; }
  html[lang="ar"] .timeline-item { grid-template-columns: 1fr 56px; }
  .timeline-item:nth-child(odd)  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { grid-column: 2; grid-row: 1; }
  html[lang="ar"] .timeline-item:nth-child(odd)  .timeline-content,
  html[lang="ar"] .timeline-item:nth-child(even) .timeline-content { grid-column: 1; grid-row: 1; }
  .timeline-item:nth-child(odd)  .timeline-node,
  .timeline-item:nth-child(even) .timeline-node  { grid-column: 1; grid-row: 1; }
  html[lang="ar"] .timeline-item:nth-child(odd)  .timeline-node,
  html[lang="ar"] .timeline-item:nth-child(even) .timeline-node  { grid-column: 2; grid-row: 1; }
  .timeline-spacer { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .nav-links, .nav-actions .btn:not(.lang-btn-wrapper .btn) { display: none; }
  .nav-actions .lang-switcher { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .lang-btn { padding: 6px 10px; font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════
   WHATSAPP FLOATING ACTION BUTTON
═══════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 24px rgba(37, 211, 102, 0.45),
    0 2px 8px  rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  /* Entrance animation */
  animation: wa-entrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

/* RTL: mirror to left side */
html[lang="ar"] .whatsapp-fab {
  right: auto;
  left: 32px;
}

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

/* Hover lift + glow */
.whatsapp-fab:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow:
    0 14px 40px rgba(37, 211, 102, 0.55),
    0 4px  12px rgba(0, 0, 0, 0.4);
}
.whatsapp-fab:active {
  transform: scale(0.96);
}

/* ── WhatsApp SVG icon ── */
.wa-icon {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.whatsapp-fab:hover .wa-icon {
  transform: rotate(-8deg) scale(1.1);
}

/* ── Pulse rings (two layered rings that expand outward) ── */
.wa-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-ring-2 {
  border-color: rgba(37, 211, 102, 0.35);
  animation-delay: 0.8s;
}

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

/* ── Tooltip ── */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(10, 15, 25, 0.96);
  color: #f0f4ff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 211, 102, 0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

/* Tooltip arrow */
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(10, 15, 25, 0.96);
  border-right: none;
}

/* RTL tooltip: flip to right side */
html[lang="ar"] .wa-tooltip {
  right: auto;
  left: calc(100% + 14px);
  transform: translateY(-50%) translateX(-6px);
  font-family: var(--font-ar-body);
}
html[lang="ar"] .wa-tooltip::after {
  right: auto;
  left: -6px;
  border-left: none;
  border-right-color: rgba(10, 15, 25, 0.96);
  border-right-width: 5px;
  border-right-style: solid;
}

.whatsapp-fab:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
html[lang="ar"] .whatsapp-fab:hover .wa-tooltip {
  transform: translateY(-50%) translateX(0);
}

/* ── Mobile: smaller, no tooltip text, keep rings ── */
@media (max-width: 480px) {
  .whatsapp-fab {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }
  html[lang="ar"] .whatsapp-fab {
    right: auto;
    left: 20px;
  }
  .wa-icon { width: 28px; height: 28px; }
  .wa-tooltip { display: none; }
}

/* ═══════════════════════════════════════════
   FACEBOOK FLOATING ACTION BUTTON
═══════════════════════════════════════════ */
.fb-fab {
  position: fixed;
  bottom: 110px;          /* sits above the WhatsApp button (32 + 62 + 16 gap) */
  right: 32px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1877F2 0%, #0a5ed4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 24px rgba(24, 119, 242, 0.45),
    0 2px 8px  rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  /* Entrance — slightly earlier than WhatsApp */
  animation: fb-entrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

/* RTL: mirror to left side */
html[lang="ar"] .fb-fab {
  right: auto;
  left: 32px;
}

@keyframes fb-entrance {
  from { opacity: 0; transform: scale(0.4) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Hover lift + glow */
.fb-fab:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow:
    0 14px 40px rgba(24, 119, 242, 0.55),
    0 4px  12px rgba(0, 0, 0, 0.4);
}
.fb-fab:active {
  transform: scale(0.96);
}

/* ── Facebook SVG icon ── */
.fb-icon {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.fb-fab:hover .fb-icon {
  transform: rotate(8deg) scale(1.1);
}

/* ── Pulse rings ── */
.fb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(24, 119, 242, 0.6);
  animation: fb-pulse 2.4s ease-out infinite;
}
.fb-ring-2 {
  border-color: rgba(24, 119, 242, 0.3);
  animation-delay: 0.9s;
}

@keyframes fb-pulse {
  0%   { transform: scale(1);    opacity: 0.75; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ── Tooltip ── */
.fb-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(10, 15, 25, 0.96);
  color: #f0f4ff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 119, 242, 0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

/* Tooltip arrow */
.fb-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(10, 15, 25, 0.96);
  border-right: none;
}

/* RTL tooltip */
html[lang="ar"] .fb-tooltip {
  right: auto;
  left: calc(100% + 14px);
  transform: translateY(-50%) translateX(-6px);
  font-family: var(--font-ar-body);
}
html[lang="ar"] .fb-tooltip::after {
  right: auto;
  left: -6px;
  border-left: none;
  border-right-color: rgba(10, 15, 25, 0.96);
  border-right-width: 5px;
  border-right-style: solid;
}

.fb-fab:hover .fb-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
html[lang="ar"] .fb-fab:hover .fb-tooltip {
  transform: translateY(-50%) translateX(0);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .fb-fab {
    width: 54px;
    height: 54px;
    bottom: 86px;       /* above mobile WhatsApp (20 + 54 + 12 gap) */
    right: 20px;
  }
  html[lang="ar"] .fb-fab {
    right: auto;
    left: 20px;
  }
  .fb-icon { width: 28px; height: 28px; }
  .fb-tooltip { display: none; }
}

/* ═══════════════════════════════════════════
   YOUTUBE FLOATING ACTION BUTTON
═══════════════════════════════════════════ */
.yt-fab {
  position: fixed;
  bottom: 188px;        /* stack order: WA(32) → FB(110) → YT(188) */
  right: 32px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 24px rgba(255, 0, 0, 0.4),
    0 2px 8px  rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  /* Entrance — earliest of the three */
  animation: yt-entrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

/* RTL: mirror to left side */
html[lang="ar"] .yt-fab {
  right: auto;
  left: 32px;
}

@keyframes yt-entrance {
  from { opacity: 0; transform: scale(0.4) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Hover lift + glow */
.yt-fab:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow:
    0 14px 40px rgba(255, 0, 0, 0.5),
    0 4px  12px rgba(0, 0, 0, 0.4);
}
.yt-fab:active {
  transform: scale(0.96);
}

/* ── YouTube SVG icon ── */
.yt-icon {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.yt-fab:hover .yt-icon {
  transform: scale(1.15);
}

/* ── Pulse rings ── */
.yt-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 0, 0.6);
  animation: yt-pulse 2.4s ease-out infinite;
}
.yt-ring-2 {
  border-color: rgba(255, 0, 0, 0.3);
  animation-delay: 1s;
}

@keyframes yt-pulse {
  0%   { transform: scale(1);    opacity: 0.75; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ── Tooltip ── */
.yt-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(10, 15, 25, 0.96);
  color: #f0f4ff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

/* Tooltip arrow */
.yt-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(10, 15, 25, 0.96);
  border-right: none;
}

/* RTL tooltip */
html[lang="ar"] .yt-tooltip {
  right: auto;
  left: calc(100% + 14px);
  transform: translateY(-50%) translateX(-6px);
  font-family: var(--font-ar-body);
}
html[lang="ar"] .yt-tooltip::after {
  right: auto;
  left: -6px;
  border-left: none;
  border-right-color: rgba(10, 15, 25, 0.96);
  border-right-width: 5px;
  border-right-style: solid;
}

.yt-fab:hover .yt-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
html[lang="ar"] .yt-fab:hover .yt-tooltip {
  transform: translateY(-50%) translateX(0);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .yt-fab {
    width: 54px;
    height: 54px;
    bottom: 152px;      /* above mobile Facebook (86 + 54 + 12 gap) */
    right: 20px;
  }
  html[lang="ar"] .yt-fab {
    right: auto;
    left: 20px;
  }
  .yt-icon { width: 28px; height: 28px; }
  .yt-tooltip { display: none; }
}
