/* ============================================================
   LOMS — Marketing site styles
   Brand: ink navy #0f172a · gold #fbbf24 · emerald #059669
   Font: Cairo (display + body). RTL Arabic.
   ============================================================ */

/* ---- Cairo local (self-hosted, no Google Fonts) ---- */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Cairo-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Cairo-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Cairo-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Cairo-Bold.ttf') format('truetype');
}

/* ---- Tajawal (التجوال) ---- */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Tajawal-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Tajawal-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Tajawal-Bold.woff2') format('woff2');
}

/* ---- Almarai ---- */
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Almarai-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Almarai-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Almarai-ExtraBold.woff2') format('woff2');
}

/* ---- IBM Plex Sans Arabic ---- */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
}

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --gold: #fbbf24;
  --gold-deep: #f59e0b;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --text: var(--ink);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .08), 0 20px 48px rgba(15, 23, 42, .14);
  --container: 1120px;
  color-scheme: light;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --ink-2: #2a3b52;
  --ink-3: #cbd5e1;
  --emerald-soft: rgba(5, 150, 105, .14);
  --paper: #0b1220;
  --surface: #16233a;
  --muted: #94a3b8;
  --line: #2a3b52;
  --text: #e2e8f0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 20px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  background: var(--paper);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- خط الموقع (يُفعل عبر data-font من إعدادات الموقع) ---- */
html[data-font="tajawal"] body {
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', system-ui, sans-serif;
}
html[data-font="almarai"] body {
  font-family: 'Almarai', 'Cairo', 'Segoe UI', system-ui, sans-serif;
}
html[data-font="plex"] body {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', 'Segoe UI', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; }

.display {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.h3 { font-size: 1.2rem; font-weight: 700; }

.lead { font-size: 1.15rem; color: var(--ink-3); }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  border: 1px solid #d1fae5;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow--gold {
  color: #78350f;
  background: #fef3c7;
  border-color: #fde68a;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  /* emerald-700: أبيض على #059669 كان 3.76 (أقل من 4.5) — الآن 4.8 */
  background: var(--emerald-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(5, 150, 105, .35);
}
.btn--primary:hover { background: #065f46; box-shadow: 0 14px 30px rgba(5, 150, 105, .45); }

.btn--gold {
  background: var(--gold);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(251, 191, 36, .35);
}
.btn--gold:hover { background: #fcd34d; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--ghost-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  }
  .btn--ghost-dark:hover { border-color: var(--ink-3); }

/* الأزرار الشبحية (ghost) مصمّمة للخلفيات الداكنة؛ على البطاقات البيضاء
   (نماذج الطلب/التجربة وبطاقات الأسعار الفاتحة) نصيرها مرئية بإطار واخضر. */
.form-card .btn--ghost,
.auth-gate .btn--ghost,
.pricing-card:not(.pricing-card--dark) .btn--ghost {
  color: var(--emerald-dark);
  border-color: var(--emerald);
  background: transparent;
}
.form-card .btn--ghost:hover,
.auth-gate .btn--ghost:hover,
.pricing-card:not(.pricing-card--dark) .btn--ghost:hover {
  color: var(--emerald-dark);
  border-color: var(--emerald-dark);
  background: var(--emerald-soft);
}
[data-theme="dark"] .form-card .btn--ghost,
[data-theme="dark"] .auth-gate .btn--ghost,
[data-theme="dark"] .pricing-card:not(.pricing-card--dark) .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
[data-theme="dark"] .form-card .btn--ghost:hover,
[data-theme="dark"] .auth-gate .btn--ghost:hover,
[data-theme="dark"] .pricing-card:not(.pricing-card--dark) .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn--sm { padding: 9px 18px; font-size: .92rem; border-radius: 10px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 1.1rem; line-height: 1; }
.brand img { width: 40px; height: 40px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: #e2e8f0;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-cta .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 340px at 88% 0%, rgba(251, 191, 36, .2), transparent 60%),
    radial-gradient(500px 320px at 8% 100%, rgba(5, 150, 105, .2), transparent 60%);
  pointer-events: none;
}

/* علامة مائية: صورة قاعة محكمة بشفافية منخفضة + زوم بطيء (Ken Burns) */
.hero::after {
  content: '';
  position: absolute;
  inset: -3%;
  background: url('../img/hero-court-dz.jpg') center 35% / cover no-repeat;
  opacity: .10;
  filter: grayscale(25%) brightness(.8);
  animation: heroDrift 38s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after, .page-hero::after { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-block: 84px 96px;
}

.hero .eyebrow { border-color: rgba(251, 191, 36, .4); }

.hero h1 { margin-bottom: 18px; }
.hero h1 .accent {
  color: var(--gold);
  background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 45%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, .28));
}

.hero .lead { color: #cbd5e1; margin-bottom: 30px; max-width: 54ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 14px; font-size: .88rem; color: #94a3b8; }
.hero-note--offer { color: #065f46; font-weight: 600; }

.hero-proof {
  margin-top: 40px;
  display: flex;
  gap: 34px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
}
.hero-proof .stat strong { display: block; font-size: 1.4rem; color: #fff; }
.hero-proof .stat span { font-size: .85rem; color: #94a3b8; }

/* Live trust counters — شريط قياسات فاتح مدمج مع الصفحة */
.live-stats {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.live-stats::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: .5;
}
.live-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 12px;
  padding-top: 20px;
  padding-bottom: 22px;
}
@media (min-width: 768px) {
  .live-stats-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0;
    padding-top: 24px;
    padding-bottom: 26px;
  }
}
.live-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s ease;
}
.live-stat:hover { background: var(--emerald-soft); }
.live-stat[hidden] { display: none; }
@media (min-width: 768px) {
  .live-stat + .live-stat::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: var(--line);
  }
}
.live-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  opacity: .85;
  margin-bottom: 6px;
}
.live-ic svg { width: 18px; height: 18px; }
.live-num { display: block; }
.live-num strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.live-label { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.live-join-note { font-size: .92rem; color: var(--emerald-dark); }
.live-join-note strong { font-weight: 800; }

/* Hero soften entrance: gentle fade-up for the headline, lead, CTAs and visual */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero-ctas,
.hero-trust,
.hero-note,
.hero-proof,
.hero-visual {
  animation: hero-fade-up .6s ease-out both;
}
.hero h1 { animation-delay: .05s; }
.hero .lead { animation-delay: .12s; }
.hero-ctas { animation-delay: .18s; }
.hero-trust, .hero-note { animation-delay: .24s; }
.hero-proof { animation-delay: .3s; }
.hero-visual { animation-delay: .14s; }

/* Trust row + floating chips on the hero screenshot */
.hero-trust {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  font-size: .88rem;
  color: #94a3b8;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust-tick { width: 15px; height: 15px; color: var(--emerald); flex: none; }

.hero-visual { position: relative; }
.floating-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
  font-size: .84rem;
  font-weight: 600;
  animation: chipFloat 5s ease-in-out infinite;
}
.floating-chip--top { top: 34px; inset-inline-end: -22px; }
.floating-chip--bottom { bottom: 46px; inset-inline-start: -26px; animation-delay: 1.6s; }
.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .22);
  animation: chipPulse 2s ease-in-out infinite;
}
.chip-tick { width: 14px; height: 14px; color: var(--emerald); flex: none; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes chipPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 72px; gap: 36px; }
  .hero-proof { gap: 24px; flex-wrap: wrap; }
  .hero-visual .floating-chip { display: none; }
}

/* ---------- Docket card (signature) ---------- */
.docket {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
}

.docket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink-2);
  color: #fff;
  padding: 14px 20px;
  font-size: .82rem;
  font-weight: 600;
}
.docket-head .seal {
  width: 30px; height: 30px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 800;
}

.docket-body { padding: 20px 20px 24px; }
.docket-case { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.docket-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.docket-opp { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }

.docket-hearing {
  background: var(--emerald-soft);
  border: 1px solid #d1fae5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.docket-hearing .lbl { font-size: .75rem; font-weight: 700; color: var(--emerald-dark); }
.docket-hearing .val { font-size: 1rem; font-weight: 800; }
.docket-hearing .val small { font-weight: 600; color: var(--muted); font-size: .85rem; }

.docket-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.docket-row span:first-child { color: var(--muted); }
.docket-row span:last-child { font-weight: 700; }

.docket-cta {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: var(--ink);
  color: var(--gold);
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .15s;
}
.docket-cta:hover { background: var(--ink-2); }

@media (max-width: 940px) {
  .docket { max-width: 420px; margin-inline: auto; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section--white { background: var(--surface); box-shadow: inset 0 3px 0 rgba(251, 191, 36, .45); }
.section--ink { background: var(--ink); color: #fff; }
.section--gold-soft { background: #fffbeb; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section--ink .lead { color: #cbd5e1; }

/* ---------- Case journey (numbered sequence) ---------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.journey-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.journey-item .num {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
  border-radius: 12px;
  margin-bottom: 14px;
}
.journey-item h3 { font-size: 1rem; margin-bottom: 4px; }
.journey-item p { font-size: .85rem; color: var(--muted); }

@media (max-width: 940px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .journey { grid-template-columns: 1fr; }
}

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), #34d399);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card:hover::before { transform: scaleX(1); }

.card .icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(5, 150, 105, .14), rgba(45, 212, 191, .18));
  color: var(--emerald-dark);
  margin-bottom: 16px;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.card .icon svg { width: 24px; height: 24px; }
.card:hover .icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .1));
  color: #b45309;
  transform: scale(1.07);
}
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { font-size: .92rem; color: var(--muted); }

.card--link { display: block; }
.card--link::after { content: 'اقرأ المزيد ←'; display: block; margin-top: 12px; font-weight: 700; font-size: .88rem; color: var(--emerald-dark); transition: transform .2s ease; }
.card--link:hover::after { transform: translateX(4px); }

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* ---------- Privacy band ---------- */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy .shield {
  width: 120px; height: 120px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, .12);
  border: 2px solid rgba(251, 191, 36, .5);
  border-radius: 50%;
  margin-inline: auto;
  color: var(--gold);
}
.privacy .shield svg { width: 56px; height: 56px; }
.privacy ul { list-style: none; margin-top: 18px; }
.privacy li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-3); }
.privacy li strong { color: var(--text); }

@media (max-width: 860px) {
  .privacy { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .privacy ul { text-align: start; }
}

/* ---------- Pricing ---------- */
.launch-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 28px;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}
.launch-offer .offer-tag {
  background: var(--emerald);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.launch-offer .offer-discount { text-decoration: none; font-weight: 800; color: #065f46; }
@media (max-width: 620px) {
  .launch-offer { flex-direction: column; gap: 8px; }
}
.promo-offers-wrap {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.promo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: .95rem;
  overflow: hidden;
}
.promo-card .promo-badge {
  flex: 0 0 auto;
  background: var(--gold);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.promo-card .promo-title {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: inherit;
}
.promo-card .promo-body {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 620px) {
  .promo-card { flex-direction: row; align-items: center; gap: 10px; }
}
.pricing-card--featured .badge--launch {
  inset-inline-end: 26px;
  inset-inline-start: auto;
  background: var(--gold);
}
.pricing-card .per em { font-style: normal; font-weight: 700; color: var(--emerald); }
.pricing-card--dark .per em { color: var(--gold); }
.pricing-card--featured .savings {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
}
[data-theme="dark"] .pricing-card--featured .savings,
.savings--gold {
  color: #78350f;
  background: linear-gradient(120deg, #fbbf24, #fde68a);
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card--featured:hover { transform: translateY(-6px); }
.pricing-card--featured {
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-card--featured .badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 26px;
  background: var(--emerald);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pricing-card .price { font-size: 1.9rem; font-weight: 900; margin-bottom: 4px; }
.pricing-card .price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pricing-card .strike { color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: line-through; }
.pricing-card .per { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.pricing-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.pricing-card li { padding: 7px 0; font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; }
.pricing-card li::before { content: '✓'; color: var(--emerald); font-weight: 800; }
.pricing-card--dark li::before { color: var(--gold); }
.pricing-card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pricing-card--dark .per { color: #94a3b8; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

.pricing-note {
  margin-top: 22px;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}
.pricing-guarantee {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
}
.pricing-guarantee svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--emerald-dark); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
/* ---------- Testimonials (social proof) ---------- */
.section--testimonials { background: var(--emerald-soft); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.stat .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--emerald-dark);
  line-height: 1.2;
}
.stat .stat-label {
  font-size: .92rem;
  color: var(--muted);
  margin-top: 4px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial .quote { font-size: .98rem; color: var(--text); position: relative; padding-top: 6px; }
.testimonial .quote::before {
  content: '\201C';
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 0;
  display: block;
  margin-bottom: 10px;
}
.testimonial::after {
  content: '';
  align-self: flex-start;
  width: 96px;
  height: 18px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fbbf24' stroke='%23fbbf24' stroke-width='1' stroke-linejoin='round' d='M12 2l2.9 6.26L21.5 9.3l-4.75 4.6 1.13 6.6L12 17.3l-5.88 3.2 1.13-6.6L2.5 9.3l6.6-1.04z'/%3E%3C/svg%3E") repeat-x;
  background-size: 18px 18px;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.testimonial .avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}
.testimonial .author-name { font-weight: 700; font-size: .95rem; }
.testimonial .author-role { font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .testimonials { grid-template-columns: 1fr; }
  .stat .stat-num { font-size: 2rem; }
}

/* ---------- Screenshots (real app) ---------- */
.screen-wrap {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
}
.screen-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.screen-bar .dot-r { background: #f87171; }
.screen-bar .dot-y { background: #fbbf24; }
.screen-bar .dot-g { background: #34d399; }
.screen-bar .url {
  flex: 1;
  margin-inline-start: 6px;
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
  font-size: .78rem;
  direction: ltr;
  text-align: left;
  padding: 4px 12px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.screen-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.screen-wrap--shadow { box-shadow: 0 30px 60px rgba(15, 23, 42, .25); }

.hero-visual .screen-wrap { transform: none; }
.hero-visual .screen-wrap img { width: 100%; }

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.screens-grid .screen-wrap { text-align: center; }
.screens-grid .screen-label {
  display: block;
  padding: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .screens-grid { grid-template-columns: 1fr; }
}

/* ---------- Screens carousel (animated gallery) ---------- */
.screens-carousel {
  position: relative;
  max-width: 860px;
  margin: 44px auto 0;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
}
.carousel-track {
  display: flex;
  direction: ltr;
  transition: transform .55s cubic-bezier(.65, .05, .36, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  direction: rtl;
}
.carousel-slide .screen-wrap { border-radius: 0; border: 0; box-shadow: none; }
.carousel-slide .screen-label {
  display: block;
  padding: 12px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--line);
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background .15s, color .15s, transform .15s;
}
.carousel-btn:hover { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.carousel-btn:active { transform: translateY(-50%) scale(.92); }
.carousel-btn--prev { inset-inline-start: -22px; }
.carousel-btn--next { inset-inline-end: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  /* مساحة لمس 24×24 (معيار WCAG 2.5.8) والنقطة المرئية 9px داخلها */
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.carousel-dot::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line);
  transition: background .2s, width .2s;
}
.carousel-dot.is-active::before {
  background: var(--emerald);
  width: 24px;
}

@media (max-width: 720px) {
  .carousel-btn { width: 36px; height: 36px; font-size: 1.3rem; }
  .carousel-btn--prev { inset-inline-start: -6px; }
  .carousel-btn--next { inset-inline-end: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.cta-band {
  background: linear-gradient(135deg, #ecfdf5 0%, #fef9c3 55%, #fef3c7 100%);
  color: var(--ink);
  text-align: center;
  padding-block: 84px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 300px at 50% 0%, rgba(251, 191, 36, .28), transparent 60%);
  pointer-events: none;
}
.cta-band .inner { position: relative; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--ink-3); margin-bottom: 30px; max-width: 52ch; margin-inline: auto; }

[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #064e3b 0%, #451a03 100%);
  color: #fff;
}
[data-theme="dark"] .cta-band p { color: #cbd5e1; }

/* CTA band is light by default, so ghost buttons (white text) are invisible there. */
.cta-band .btn--ghost {
  color: var(--ink);
  border-color: rgba(15, 23, 42, .28);
}
.cta-band .btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(15, 23, 42, .07);
}
[data-theme="dark"] .cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
[data-theme="dark"] .cta-band .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding-block: 48px 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; display: grid; justify-items: center; justify-content: start; gap: 4px; margin-bottom: 10px; line-height: 1; }
.footer-brand img { width: 40px; height: 40px; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; font-size: .92rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; max-width: 320px; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #fff; border-radius: 10px; padding: 10px 12px; font-size: .9rem; outline: none; transition: border-color .15s;
}
.newsletter-form input[type="email"]::placeholder { color: #64748b; }
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.newsletter-form button {
  background: var(--gold); color: #0b1220; border: none; border-radius: 10px; padding: 10px 16px;
  font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.newsletter-form button:hover { opacity: .88; }
.newsletter-form button:disabled { opacity: .6; cursor: not-allowed; }
.newsletter-msg { font-size: .85rem; margin-top: 10px; min-height: 1.2em; }
.newsletter-msg.ok { color: #4ade80; }
.newsletter-msg.err { color: #f87171; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer-bottom .gold { color: var(--gold); font-weight: 600; }

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

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding-block: 64px 72px; position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 280px at 90% 0%, rgba(251, 191, 36, .14), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

/* نفس العلامة المائية في ترويسة كل الصفحات الداخلية */
.page-hero::after {
  content: '';
  position: absolute;
  inset: -3%;
  background: url('../img/hero-court-dz.jpg') center 30% / cover no-repeat;
  opacity: .1;
  filter: grayscale(25%) brightness(.8);
  animation: heroDrift 44s ease-in-out infinite alternate;
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { color: #cbd5e1; max-width: 60ch; }

.breadcrumb { font-size: .85rem; color: #94a3b8; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin-inline: 6px; }

/* ---------- Feature detail layout ---------- */
.feature-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.feature-split.rev .cols-visual { order: 1; }
.feature-split ul { list-style: none; margin-top: 16px; }
.feature-split li { padding: 7px 0; display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.feature-split li::before { content: '✓'; color: var(--emerald); font-weight: 800; }

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.mock .mock-bar { height: 10px; border-radius: 999px; background: var(--line); margin-bottom: 10px; }
.mock .mock-bar.short { width: 45%; }
.mock .mock-lines div { height: 8px; border-radius: 999px; background: var(--line); margin-bottom: 8px; }
.mock .mock-lines div:nth-child(2n) { background: #eef2f7; }
.mock .mock-tag {
  display: inline-block;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.rev .cols-visual { order: 0; }
}

/* ---------- Trial / form ---------- */
.trial-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }

.trial-steps { list-style: none; counter-reset: step; margin-top: 22px; }
.trial-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.trial-steps li::before {
  content: counter(step);
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
  border-radius: 10px;
}
.trial-steps strong { display: block; }
.trial-steps span { font-size: .9rem; color: var(--muted); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.form-card h3 { margin-bottom: 20px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  /* صندوق سطر رحب + حد أدنى للارتفاع: بعض الخطوط (Almarai/Plex) أطول
     عموديًا من Cairo فيُقص نصها داخل عناصر النماذج دون ذلك */
  line-height: 1.9;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.form-row input:focus, .form-row select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .15);
}
.form-row.has-error input,
.form-row.has-error select {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.form-row .field-error {
  display: none;
  color: #b91c1c;
  font-size: .82rem;
  font-weight: 600;
  margin-top: 5px;
}
.form-row.has-error .field-error { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note--field { margin-top: 6px; text-align: start; display: block; }
/* حقل بريد مقفل لأنه مرتبط بحساب الزائر المسجّل */
.form-row input.is-locked,
.form-row input.is-locked:focus {
  background: var(--line);
  border-style: dashed;
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- حسابات العملاء (تسجيل/دخول/بوابة) ---------- */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.auth-layout .form-card { max-width: 460px; }
.auth-link {
  display: inline-flex;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.auth-link:hover { color: var(--emerald); }
.auth-link[hidden],
.auth-gate[hidden] { display: none; }
.auth-welcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--emerald);
  white-space: nowrap;
}
.auth-welcome strong { font-weight: 800; }
.auth-welcome[hidden] { display: none; }
.auth-gate {
  border: 1px dashed var(--line-strong, rgba(120, 130, 150, .5));
  border-radius: 12px;
  background: rgba(59, 130, 246, .06);
  padding: 20px;
  margin-bottom: 18px;
  text-align: center;
}
.auth-gate strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.auth-gate p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.auth-gate .btn { margin: 0 4px; }
.auth-gate-optional { font-size: .92rem; }
.auth-gate-optional p { font-size: .92rem; margin-bottom: 12px; }
.auth-gate-optional .btn { margin-bottom: 4px; }
.auth-gate-optional[hidden],
.auth-gate-required[hidden] { display: none; }
.checklist { list-style: none; margin-top: 18px; }
.checklist li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .95rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 900;
}
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; gap: 40px; }
  .nav-cta .auth-link,
  .nav-cta .auth-welcome { display: none; }
}
.form-tip {
  background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: .86rem;
  /* slate-600: تباين كافٍ على خلفية التلميح الفاتحة (كان 4.34 قبل التعديل) */
  color: #475569;
}
.form-tip strong { display: block; margin-bottom: 6px; color: inherit; }
.form-tip ol { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.form-tip em { font-style: normal; font-weight: 600; }
[data-theme="dark"] .form-tip { color: #e2e8f0; }
.form-success {
  display: none;
  text-align: center;
  padding: 18px;
  background: var(--emerald-soft);
  border: 1px solid #d1fae5;
  border-radius: var(--radius-sm);
  color: var(--emerald-dark);
  font-weight: 700;
  margin-top: 16px;
}
.form-success.show { display: block; }
.form-success--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
/* مفتاح الترخيص المعروض بعد إصداره: يُقرأ ويُنسخ بسهولة على شاشة صغيرة */
.trial-key {
  display: block;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.6;
  word-break: break-all;
  background: var(--ink);
  color: #fde68a;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 12px 0;
  user-select: all;
  -webkit-user-select: all;
}
.trial-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.form-success .form-note { color: inherit; opacity: .85; margin-top: 10px; }
.form-key {
  display: inline-block;
  direction: ltr;
  font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: .82rem;
  word-break: break-all;
  background: var(--ink);
  color: #fde68a;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
  line-height: 1.5;
}
.form-key-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: transparent;
  border: 1px solid var(--emerald);
  border-radius: 8px;
  padding: 7px 16px;
  margin-bottom: 10px;
  transition: background .2s ease, color .2s ease;
}
.form-key-copy:hover { background: var(--emerald); color: #fff; }
.form-key-copy.is-copied { background: var(--emerald); border-color: var(--emerald); color: #fff; }
[data-theme="dark"] .form-key-copy { color: #6ee7b7; border-color: rgba(5, 150, 105, .45); }
[data-theme="dark"] .form-key-copy:hover,
[data-theme="dark"] .form-key-copy.is-copied { background: var(--emerald); color: #fff; }

/* ---------- Download section ---------- */
[data-download-section] { display: none; }
[data-download-section].show { display: block; }

.download-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.download-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.download-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: .95rem;
}
.download-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .4em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
}
.download-box .btn { min-width: 240px; justify-content: center; }
.download-box .form-note { text-align: start; }

.download-art { display: flex; justify-content: center; }
.dl-icon {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--ink);
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-icon svg { width: 72px; height: 72px; }

@media (max-width: 860px) {
  .trial-layout { grid-template-columns: 1fr; gap: 40px; }
  .download-box { grid-template-columns: 1fr; }
  .download-art { display: none; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.offer-note { color: #065f46; font-weight: 600; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.emerald { color: var(--emerald-dark); }

::selection { background: rgba(251, 191, 36, .4); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Dark theme overrides for hardcoded light surfaces ---------- */
[data-theme="dark"] .eyebrow { border-color: rgba(5, 150, 105, .35); }
[data-theme="dark"] .eyebrow--gold {
  color: #fde68a;
  background: rgba(251, 191, 36, .12);
  border-color: rgba(251, 191, 36, .3);
}
[data-theme="dark"] .section--gold-soft { background: #16233a; }
[data-theme="dark"] .card:hover { border-color: #3b4d6b; }
[data-theme="dark"] .section--testimonials { background: rgba(5, 150, 105, .08); }
[data-theme="dark"] .docket-hearing,
[data-theme="dark"] .form-success { border-color: rgba(5, 150, 105, .35); }
[data-theme="dark"] .form-success--error {
  background: rgba(220, 38, 38, .12);
  border-color: rgba(220, 38, 38, .35);
  color: #fecaca;
}
[data-theme="dark"] .launch-offer {
  background: linear-gradient(90deg, rgba(5, 150, 105, .14), rgba(5, 150, 105, .1));
  border-color: rgba(5, 150, 105, .35);
  color: #a7f3d0;
}
[data-theme="dark"] .launch-offer .offer-discount { color: #a7f3d0; }
[data-theme="dark"] .promo-card {
  background: linear-gradient(90deg, rgba(120, 53, 15, .4), rgba(120, 53, 15, .22));
  border-color: rgba(251, 191, 36, .35);
  color: #fed7aa;
}
[data-theme="dark"] .pricing-card--featured .savings {
  background: rgba(5, 150, 105, .2);
  color: #a7f3d0;
}
[data-theme="dark"] .screen-wrap { background: #0f172a; }
[data-theme="dark"] .screen-wrap img { background: #0f172a; }
[data-theme="dark"] .mock .mock-lines div:nth-child(2n) { background: #1e293b; }
[data-theme="dark"] .hero-note--offer,
[data-theme="dark"] .offer-note { color: #6ee7b7; }
[data-theme="dark"] .stat .stat-num { color: #6ee7b7; }
[data-theme="dark"] .testimonial .quote::before { color: #fbbf24; }
[data-theme="dark"] .download-list li::before { background: var(--emerald); }
[data-theme="dark"] .faq summary::after,
[data-theme="dark"] .card--link::after { color: #34d399; }
[data-theme="dark"] .field-error { color: #fca5a5; }
[data-theme="dark"] .form-key,
[data-theme="dark"] .dl-icon { background: #1e293b; color: #fde68a; }

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, #022c22 0%, #065f46 45%, #047857 100%);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(251, 191, 36, .35);
}
.announcement-bar .container {
  max-width: 1200px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.announcement-ic {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(251, 191, 36, .18); border: 1px solid rgba(251, 191, 36, .5);
  color: #fcd34d;
}
.announcement-ic svg { width: 14px; height: 14px; }
.announcement-text { line-height: 1.7; animation: annTextIn .7s ease both; }
.announcement-bar a {
  color: #fcd34d; font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
  display: inline-block; padding: 1px 12px; margin-inline-start: 6px;
  border: 1px solid rgba(252, 211, 77, .65); border-radius: 999px;
  animation: annCtaPulse 2.2s ease-in-out infinite;
}
.announcement-bar a:hover { color: #422006; background: #fcd34d; text-decoration: none; animation-play-state: paused; }
.announcement-ic svg { animation: annRing 3s ease-in-out infinite; transform-origin: top center; }

/* حركات شريط الإعلان — دخول النص + نبض زر الدعوة + اهتزاز الأيقونة */
@keyframes annTextIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes annCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 211, 77, .55); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(252, 211, 77, 0); transform: scale(1.05); }
}
@keyframes annRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(10deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(5deg); }
  40%, 100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-bar, .announcement-bar::after, .announcement-text,
  .announcement-bar a, .announcement-ic svg { animation: none !important; }
}
[data-theme="dark"] .announcement-bar {
  background: linear-gradient(90deg, #011a14, #022c22 50%, #064e3b 100%);
  color: #d1fae5;
}

/* ============================================================
   LOMS — مؤثرات بصرية وحركات للعروض والإعلانات
   جميعها تحترم تفضيل تقليل الحركة (prefers-reduced-motion)
   ============================================================ */

/* 1) شريط الإعلان — توهّج نابض + لمعان عابر */
.announcement-bar {
  position: relative;
  overflow: hidden;
  animation: annGlow 4s ease-in-out infinite;
}
.announcement-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .26) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: annShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes annGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(5, 150, 105, 0); }
  50% { box-shadow: 0 4px 24px rgba(5, 150, 105, .5); }
}
@keyframes annShine {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* 2) عرض الإطلاق — شارة ذهبية نابضة + خرزات عائمة خفيفة */
.launch-offer {
  position: relative;
  overflow: hidden;
}
.launch-offer .offer-tag {
  animation: tagPulse 2.4s ease-in-out infinite;
}
.launch-offer::before,
.launch-offer::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(251, 191, 36, .3);
  pointer-events: none;
  opacity: 0;
}
.launch-offer::before { left: 8%; bottom: 30%; animation: bubbleFloat 6s ease-in-out infinite; }
.launch-offer::after { left: 18%; bottom: 20%; width: 8px; height: 8px; animation: bubbleFloat 8s ease-in-out 2s infinite; }
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .55); }
  55% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
}
@keyframes bubbleFloat {
  0% { transform: translate(0, 18px) scale(.5); opacity: 0; }
  30% { opacity: .9; }
  60% { opacity: .5; transform: translate(70px, -6px) scale(.95); }
  100% { transform: translate(140px, -30px) scale(1.1); opacity: 0; }
}

/* 3) البطاقة المميّزة — حافة متوهّجة نابضة + شارة تذبذب جذب */
.pricing-card--featured {
  animation: cardGlow 3.6s ease-in-out infinite;
}
.pricing-card--featured .badge--launch {
  animation: wiggle 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes cardGlow {
  0%, 100% { box-shadow: var(--shadow-lg); border-color: var(--emerald); }
  50% { box-shadow: 0 0 0 3px rgba(5, 150, 105, .16), 0 22px 48px rgba(5, 150, 105, .38); border-color: #34d399; }
}
@keyframes wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  90% { transform: rotate(-7deg); }
  94% { transform: rotate(6deg); }
  98% { transform: rotate(-4deg); }
}

/* 4) حلقات جذب للأزرار ذات القيمة العالية (CTA العروض) */
.hero-ctas .btn--primary,
.pricing-card--featured .btn--primary,
[data-download-section] .btn--primary,
[data-download-section] .btn--gold {
  position: relative;
}
.hero-ctas .btn--primary::after,
.pricing-card--featured .btn--primary::after,
[data-download-section] .btn--primary::after,
[data-download-section] .btn--gold::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 2px solid rgba(5, 150, 105, .5);
  animation: ringPulse 2.6s ease-out infinite;
  pointer-events: none;
}
[data-download-section] .btn--gold::after { border-color: rgba(251, 191, 36, .6); }
@keyframes ringPulse {
  0% { transform: scale(1); opacity: .75; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* 5) ظهور العناصر عند التمرير (تُفعَّل عبر IntersectionObserver في main.js) */
.loms-animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.loms-animate.loms-in {
  opacity: 1;
  transform: none;
}

/* ---------- Utility helpers ---------- */
/* عنوان مخفي بصريًا يبقى مقروءًا لقارئات الشاشة (يحفظ ترتيب العناوين) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn--block { width: 100%; justify-content: center; }
.footer-note { font-size: .92rem; }
.cta-center { justify-content: center; }
.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  z-index: 2000;
  background: var(--emerald);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus-visible {
  inset-block-start: 0;
  outline: none;
}

/* Re-assert interactive transforms over the reveal utility
   (.loms-animate.loms-in sets transform:none with equal specificity;
   these identical-selector rules come later in the cascade so hover wins.) */
.card:hover { transform: translateY(-4px); }
.pricing-card:hover,
.pricing-card--featured:hover { transform: translateY(-6px); }

/* ---------- مساعد LOMS للزوار (أداة الدردشة العائمة) ---------- */
.loms-chat-wrap {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 1500;
  font-family: inherit;
}

/* ------- حركات لفت انتباه زر المساعد ------- */
.loms-attract-ring-wrap {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  pointer-events: none;
}
.loms-attract-ring {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(13, 148, 136, .55);
  opacity: 0;
  pointer-events: none;
}
.loms-chat-wrap.is-attracting .loms-attract-ring {
  animation: loms-ring 2.2s ease-out infinite;
}

.loms-attract-bubble {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: calc(100% + 0.9rem);
  max-width: 230px;
  padding: .55rem .85rem;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  background: #fff;
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-soft);
  box-shadow: 0 10px 24px rgba(5, 150, 105, .28);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  z-index: 1;
}
.loms-chat-wrap.is-attracting .loms-attract-bubble.is-showing {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: loms-bubble-bounce 2.4s ease-in-out 1;
}
/* حرف صغير أسفل الفقاعة يشير إلى الزر */
.loms-attract-bubble::after {
  content: '';
  position: absolute;
  inset-inline-end: 1.4rem;
  inset-block-end: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-inline-end: 1px solid var(--emerald-soft);
  border-block-end: 1px solid var(--emerald-soft);
  transform: rotate(45deg);
}

/* نبض صامت للزر العائم لفت الانتباه (يتوقف عند أول تفاعل) */
.loms-chat-wrap.is-attracting .loms-chat-launcher {
  animation: loms-nudge 2.6s ease-in-out infinite;
}

@keyframes loms-ring {
  0% { opacity: .7; transform: scale(.8); }
  70% { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes loms-bubble-bounce {
  0%, 100% { translate: 0 0; }
  12% { translate: 0 -6px; }
  24% { translate: 0 0; }
  36% { translate: 0 -3px; }
  48% { translate: 0 0; }
}
@keyframes loms-nudge {
  0%, 84%, 100% { transform: translateY(0) scale(1); }
  88% { transform: translateY(-8px) scale(1.03); }
  92% { transform: translateY(0) scale(1); }
  96% { transform: translateY(-4px) scale(1.02); }
}

.loms-chat-launcher {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), #0d9488);
  box-shadow: 0 12px 30px rgba(5, 150, 105, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.loms-chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(5, 150, 105, .55);
}
.loms-chat-launcher svg {
  width: 30px;
  height: 30px;
}
.loms-chat-launcher .loms-close-icon { display: none; }
.loms-chat-wrap.is-open .loms-chat-launcher .loms-bot-icon { display: none; }
.loms-chat-wrap.is-open .loms-chat-launcher .loms-close-icon { display: block; }

.loms-chat-panel {
  position: absolute;
  inset-block-end: calc(100% + 0.75rem);
  inset-inline-end: 0;
  width: min(370px, calc(100vw - 2.5rem));
  height: min(520px, calc(100vh - 6rem));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink-3);
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.loms-chat-wrap.is-open .loms-chat-panel { display: flex; }

.loms-chat-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, var(--emerald), #0d9488);
  color: #fff;
}
.loms-chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  flex: none;
}
.loms-chat-avatar svg { width: 22px; height: 22px; }
.loms-chat-title { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.loms-chat-title strong { font-size: 1rem; }
.loms-chat-title small { font-size: .78rem; opacity: .9; }
.loms-chat-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.loms-chat-close:hover { background: rgba(255, 255, 255, .18); }
.loms-chat-close svg { width: 18px; height: 18px; }

.loms-chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.loms-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.loms-msg { display: flex; }
.loms-msg--bot { justify-content: flex-start; }
.loms-msg--user { justify-content: flex-end; }
.loms-msg-bubble {
  max-width: 85%;
  padding: .6rem .8rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.loms-msg--bot .loms-msg-bubble {
  background: rgba(255, 255, 255, .08);
  border-start-start-radius: 4px;
}
.loms-msg--user .loms-msg-bubble {
  background: linear-gradient(135deg, var(--emerald), #0d9488);
  border-start-end-radius: 4px;
  color: #fff;
}
.loms-typing { opacity: .7; }

.loms-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 .9rem .7rem;
}
.loms-chip {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: .82rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.loms-chip:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
}

.loms-chat-footer { padding: .7rem .9rem .9rem; }
.loms-chat-form { display: flex; gap: .5rem; }
.loms-chat-input {
  flex: 1;
  min-width: 0;
  padding: .6rem .8rem;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .92rem;
  outline: none;
}
.loms-chat-input::placeholder { color: rgba(255, 255, 255, .55); }
.loms-chat-input:focus { border-color: var(--emerald); }
.loms-chat-send {
  border: none;
  border-radius: 999px;
  padding: 0 1.1rem;
  background: linear-gradient(135deg, var(--emerald), #0d9488);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.loms-chat-send:disabled { opacity: .6; cursor: default; }

@media (max-width: 520px) {
  .loms-chat-wrap { inset-block-end: 1rem; inset-inline-end: 1rem; }
  .loms-chat-launcher { width: 54px; height: 54px; }
  .loms-attract-ring { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .loms-chat-launcher { transition: none; }
  .loms-chat-wrap.is-attracting .loms-chat-launcher,
  .loms-chat-wrap.is-attracting .loms-attract-ring,
  .loms-chat-wrap.is-attracting .loms-attract-bubble.is-showing {
    animation: none !important;
  }
  .loms-chat-wrap.is-attracting .loms-attract-bubble.is-showing {
    opacity: 1;
    transform: none;
  }
}

/* نماذج استعادة كلمة المرور (login.html) — إخفاء مؤكد يعلو أي display سابق */
form[data-forgot-form][hidden],
form[data-reset-form][hidden] { display: none !important; }

/* ============================================================
   حركات شعار العلامة (brand) — لمسة احترافية
   دخول + طفو هادئ + لمعة دورية + تفاعل عند التحويم.
   ============================================================ */
.brand { position: relative; animation: brandIn .65s cubic-bezier(.2, .9, .3, 1.2) both; }
.brand img {
  animation: brandFloat 5s ease-in-out 1s infinite;
  filter: drop-shadow(0 2px 6px rgba(27, 165, 131, .35));
  transition: filter .25s ease;
  will-change: transform;
}
/* لمعة ضوئية تعبر الشعار دوريًا */
.brand::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  width: 44px;
  height: 40px;
  margin-inline-start: -22px;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(64px);
  opacity: 0;
  pointer-events: none;
  animation: brandShine 6.5s ease-in-out 2s infinite;
}
/* تفاعل التحويم: اهتزاز مرح + توهج أقوى */
.brand:hover img { animation: brandWiggle .6s ease-in-out; filter: drop-shadow(0 0 10px rgba(27, 165, 131, .75)); }
@keyframes brandIn {
  from { opacity: 0; transform: scale(.6) rotate(-10deg); }
  to { opacity: 1; transform: none; }
}
@keyframes brandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes brandShine {
  0% { transform: translateX(64px) skewX(-12deg); opacity: 0; }
  12% { opacity: 1; }
  42%, 100% { transform: translateX(-64px) skewX(-12deg); opacity: 0; }
}
@keyframes brandWiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-8deg) scale(1.1); }
  60% { transform: rotate(6deg) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .brand { animation: none; }
  .brand img { animation: none; }
  .brand::after { animation: none; display: none; }
  .brand:hover img { animation: none; }
}
