:root {
  --bg: #eef1f8;
  --surface: #ffffff;
  --surface2: #e8edf6;
  --text: #141c2e;
  --muted: #546278;
  --line: rgba(22, 45, 85, 0.12);
  --accent: #0f4c9e;
  --accent2: #1565c0;
  --accent-muted: rgba(15, 76, 158, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(22, 45, 85, 0.06), 0 12px 48px rgba(22, 45, 85, 0.06);
  --shadow-hover: 0 8px 32px rgba(22, 45, 85, 0.1);
  --shadow-header: 0 1px 0 rgba(22, 45, 85, 0.05), 0 10px 40px rgba(22, 45, 85, 0.05);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 901px) {
  html {
    scroll-padding-top: 6.25rem;
  }
}

#main {
  overflow-x: clip;
}

::selection {
  background: rgba(30, 100, 214, 0.18);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 900px 420px at 15% -12%, rgba(79, 70, 213, 0.06), transparent 60%),
    radial-gradient(ellipse 800px 380px at 92% 5%, rgba(30, 100, 214, 0.07), transparent 58%),
    linear-gradient(180deg, #fafbfd 0%, var(--bg) 42%, #e8ecf4 100%);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.02rem;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(22, 45, 85, 0.04) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible {
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border-radius: 8px;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-header);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(22, 45, 85, 0.06), 0 14px 44px rgba(22, 45, 85, 0.09);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.92;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.85rem;
  padding-block: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border-radius: var(--radius-sm);
}

.brand:focus-visible {
  outline-offset: 4px;
}

.icon {
  display: block;
  flex-shrink: 0;
}

.brand-mark {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow: 0 4px 14px rgba(30, 100, 214, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-mark-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 14rem;
}

[dir="rtl"] .brand-sub {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
}

.site-nav > a,
.site-nav .nav-dropdown > a {
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:focus-visible {
  color: var(--text);
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-muted);
}

.site-nav .pill {
  border: 1px solid rgba(30, 100, 214, 0.35);
  color: var(--text);
  padding-inline: 0.85rem;
  background: linear-gradient(180deg, #ffffff, #f4f7fd);
  box-shadow: 0 1px 2px rgba(22, 45, 85, 0.06);
}

.site-nav .pill:hover {
  border-color: var(--accent);
  background: #fff;
}

.site-nav .lang-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 100, 214, 0.25);
  background: rgba(255, 255, 255, 0.85);
  margin-inline-start: 0.15rem;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav .lang-chip .icon-globe {
  color: var(--accent);
  opacity: 0.9;
}

.site-nav .lang-chip:hover {
  border-color: var(--accent);
  background: #fff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  display: grid;
  gap: 0.15rem;
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 0.35rem);
  min-width: 288px;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.22s var(--ease), visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-dropdown-panel a:hover {
  background: var(--surface2);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 1rem;
    top: 4.5rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-dropdown-panel {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    margin-top: 0.35rem;
    padding-inline-start: 0.5rem;
    border-inline-start: 2px solid var(--surface2);
  }
}

.hero-wrap {
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: -12% -8% auto -8%;
  height: min(520px, 75vh);
  background-image:
    linear-gradient(90deg, rgba(30, 100, 214, 0.06) 0%, transparent 45%, rgba(79, 70, 213, 0.05) 100%),
    linear-gradient(rgba(22, 45, 85, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 45, 85, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-wrap .hero,
.hero-wrap .trust-strip {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 3.25rem 0 2.25rem;
  position: relative;
}

.trust-strip {
  padding-bottom: 2.75rem;
}

.trust-strip-title {
  margin: 0 0 1.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

[dir="rtl"] .trust-strip-title {
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.92rem;
}

.trust-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .trust-pillars {
    grid-template-columns: 1fr;
  }
}

.trust-pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 2px 16px rgba(22, 45, 85, 0.05);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.trust-pillar:hover {
  border-color: rgba(30, 100, 214, 0.2);
  box-shadow: 0 8px 28px rgba(22, 45, 85, 0.08);
}

.trust-pillar__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-muted), rgba(79, 70, 213, 0.1));
  border: 1px solid rgba(30, 100, 214, 0.15);
  position: relative;
}

.trust-pillar__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0.32rem;
  height: 0.58rem;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.95;
}

.trust-pillar__t {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.trust-pillar__d {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.section-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(232, 237, 246, 0.75) 100%);
  border-block: 1px solid var(--line);
  margin: 0;
}

.section--tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-band .section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.prose--link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}

.prose--link a:hover {
  color: var(--accent2);
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 52ch;
}

[dir="rtl"] .hero-kicker {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 2.8vw + 1.2rem, 3.05rem);
  line-height: 1.18;
  margin: 0 0 1.1rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  max-width: min(100%, 15em);
}

.hero .lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 1.85rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 100, 214, 0.28);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(30, 100, 214, 0.34);
}

.button.primary:active {
  transform: translateY(0);
}

.button.ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button.ghost:hover {
  border-color: rgba(30, 100, 214, 0.3);
  background: #fafbfd;
  transform: translateY(-1px);
}

.section {
  padding: 3rem 0;
}

.section-head {
  position: relative;
  padding-inline-start: 1.1rem;
}

.section-head::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.2rem;
  bottom: 0.15rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 1vw + 1.1rem, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
  font-size: 1.02rem;
}

/* عناوين صفحات داخلية: وسط وبدون شريط جانبي يخلق إحساس الميل لليمين في RTL */
.section-head--center {
  text-align: center;
  padding-inline: 0;
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: 0.25rem;
}

.section-head--center::before {
  display: none;
}

.section-head--center h1,
.section-head--center h2 {
  margin-inline: auto;
}

.section-head--center .lead,
.section-head--center > p {
  margin-inline: auto;
  max-width: 48rem;
  text-align: center;
}

.grid-cards--hub {
  width: 100%;
  margin-inline: 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 100, 214, 0.18);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.38;
  font-weight: 700;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  flex: 1;
  line-height: 1.58;
}

.card .more {
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card .more::after {
  content: "→";
  font-size: 0.85em;
  transition: transform 0.18s var(--ease);
}

[dir="rtl"] .card .more::after {
  content: "←";
}

.card:hover .more::after {
  transform: translateX(3px);
}

[dir="rtl"] .card:hover .more::after {
  transform: translateX(-3px);
}

.card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

[dir="rtl"] .card .tag {
  letter-spacing: 0.03em;
  text-transform: none;
}

.cta-band {
  margin: 3rem 0 4rem;
  padding: 2.35rem 2.5rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(241, 244, 252, 0.95) 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset-inline-end: -20%;
  top: -40%;
  width: 45%;
  height: 180%;
  background: radial-gradient(circle, rgba(30, 100, 214, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  position: relative;
  z-index: 1;
  max-width: 48ch;
}

.cta-band .hero-actions {
  position: relative;
  z-index: 1;
}

.prose {
  max-width: 70ch;
}

.prose p {
  color: var(--muted);
}

.page-product {
  padding: 2.25rem 0 4rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.breadcrumb .sep {
  opacity: 0.5;
}

.product-hero {
  margin-bottom: 2rem;
}

.product-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.product-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 1.5vw + 1.2rem, 2.35rem);
}

.product-hero .lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.product-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-tabs .tab {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.product-tabs .tab.is-active {
  color: var(--accent);
  border-color: rgba(30, 100, 214, 0.4);
  background: var(--accent-muted);
}

.feature-list {
  counter-reset: feat;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  counter-increment: feat;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.25rem 0.9rem;
  align-items: start;
  box-shadow: 0 2px 12px rgba(22, 45, 85, 0.04);
}

.feature-list li::before {
  content: counter(feat, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.12rem;
  letter-spacing: 0;
}

.feature-list li strong {
  grid-column: 2;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.feature-list li span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.muted {
  color: var(--muted);
}

.note {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(43, 111, 216, 0.22);
  background: rgba(43, 111, 216, 0.08);
  margin-bottom: 1.25rem;
  color: var(--text);
}

.note.error {
  border-color: rgba(220, 70, 70, 0.35);
  background: rgba(220, 70, 70, 0.07);
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin-top: 1.5rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(22, 45, 85, 0.2);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(22, 45, 85, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: rgba(22, 45, 85, 0.28);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(22, 45, 85, 0.04), 0 0 0 3px rgba(43, 111, 216, 0.2);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
  padding: 3.25rem 0 2rem;
  background: linear-gradient(180deg, #e8ecf5 0%, #dde4ef 55%, #d4ddea 100%);
  color: var(--text);
}

.footer-brand .footer-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-brand .muted {
  max-width: 28ch;
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

[dir="rtl"] .footer-heading {
  letter-spacing: 0.04em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.value-card {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(22, 45, 85, 0.05);
}

.value-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 1.2vw + 1.2rem, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head .lead {
  font-size: 1.05rem;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent2);
}

/* ——— Layout inspired by enterprise SaaS (e.g. idara.net): top bar, hero, grids, FAQ ——— */

body.page-home {
  background: linear-gradient(180deg, #dfe8f4 0%, #eef3f9 18%, #f5f8fc 45%, #eef1f8 100%);
}

body.page-home::after {
  opacity: 0.35;
}

.top-bar {
  background: linear-gradient(90deg, #0a3a78 0%, #0f4c9e 50%, #0d4388 100%);
  color: #e8f1ff;
  font-size: 0.82rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 2.35rem;
  padding-block: 0.35rem;
}

.top-bar-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.92;
}

.top-bar-hint-icon {
  opacity: 0.95;
  flex-shrink: 0;
}

.top-bar-whatsapp {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.top-bar-whatsapp .icon-whatsapp {
  opacity: 0.95;
  flex-shrink: 0;
}

.top-bar-whatsapp__text {
  white-space: nowrap;
}

.top-bar-whatsapp__num {
  font-size: 0.9em;
  font-weight: 600;
  opacity: 0.92;
}

.top-bar-whatsapp:hover {
  text-decoration: underline;
}

.idara-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 0;
  border-bottom: none;
  background:
    radial-gradient(ellipse 85% 65% at 50% -15%, rgba(21, 101, 192, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(79, 70, 213, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 10% 40%, rgba(15, 76, 158, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f0f6fd 0%, #ffffff 75%);
}

.idara-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.idara-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  padding-bottom: 2.5rem;
}

.idara-hero-wave {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: 0.5rem;
}

.idara-hero-wave-svg {
  display: block;
  width: 100%;
  height: clamp(40px, 9vw, 64px);
}

.idara-hero-wave-fill {
  fill: #ffffff;
}

.idara-hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f4c9e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 76, 158, 0.2);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 76, 158, 0.1);
}

[dir="rtl"] .idara-hero-kicker {
  text-transform: none;
  letter-spacing: 0.03em;
}

.idara-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.8vw + 1rem, 2.85rem);
  font-weight: 800;
  line-height: 1.22;
  color: #082747;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.idara-hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 48rem;
  margin-inline: auto;
}

.idara-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.button--idara-primary {
  background: linear-gradient(180deg, #1565c0 0%, #0f4c9e 100%);
  color: #fff;
  border: none;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 76, 158, 0.35);
}

.button--idara-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 76, 158, 0.4);
}

.button--idara-outline {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.8rem 1.6rem;
  font-weight: 700;
}

.button--idara-outline:hover {
  background: rgba(15, 76, 158, 0.06);
}

.idara-section {
  padding: 3rem 0;
}

.idara-section--alt {
  background: linear-gradient(180deg, #e8eef6 0%, #f0f4fa 40%, #eef2f8 100%);
  border-block: 1px solid rgba(22, 45, 85, 0.08);
}

.idara-section--about {
  position: relative;
  padding: 3.5rem 0;
  background: #ffffff;
  box-shadow: 0 -12px 40px rgba(22, 45, 85, 0.06);
}

.idara-section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.85rem);
  font-weight: 700;
  color: #0a2540;
  text-align: center;
}

.idara-section-sub {
  margin: 0 auto 1.75rem;
  max-width: 44rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.idara-section-sub--center {
  margin-bottom: 1rem;
}

.idara-prose-center {
  margin: 0 auto;
  max-width: 44rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.idara-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.idara-service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 76, 158, 0.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 6px 22px rgba(22, 45, 85, 0.07);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  overflow: hidden;
}

.idara-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f4c9e, #1565c0, #5c6bc0);
  opacity: 0.95;
}

.idara-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 76, 158, 0.14);
  border-color: rgba(15, 76, 158, 0.28);
}

.idara-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 76, 158, 0.14), rgba(21, 101, 192, 0.09));
  border: 1px solid rgba(15, 76, 158, 0.18);
  margin-bottom: 0.85rem;
  color: #1565c0;
}

.idara-service-icon-svg {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.idara-service-card:hover .idara-service-icon {
  background: linear-gradient(145deg, rgba(21, 101, 192, 0.2), rgba(15, 76, 158, 0.1));
  border-color: rgba(21, 101, 192, 0.35);
  color: #0d47a1;
}

.idara-service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a2540;
}

.idara-service-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.idara-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.idara-platform-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 76, 158, 0.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.3rem 1.2rem;
  box-shadow: 0 6px 20px rgba(22, 45, 85, 0.07);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: hidden;
}

.idara-platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1565c0, #3949ab);
}

.idara-platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 76, 158, 0.12);
}

.idara-platform-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0a2540;
  line-height: 1.35;
}

.idara-platform-card p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.idara-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.idara-link:hover {
  text-decoration: underline;
}

.idara-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .idara-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.idara-feature-tile {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(15, 76, 158, 0.14);
  border-radius: 12px;
  padding: 0.95rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: #153057;
  box-shadow: 0 3px 10px rgba(22, 45, 85, 0.06);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.idara-feature-tile:hover {
  transform: scale(1.02);
  border-color: rgba(15, 76, 158, 0.4);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(15, 76, 158, 0.12);
}

.idara-faq-wrap {
  max-width: 48rem;
  margin-inline: auto;
}

.idara-faq-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.idara-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(22, 45, 85, 0.04);
}

.idara-faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0a2540;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.idara-faq-item summary::-webkit-details-marker {
  display: none;
}

.idara-faq-item summary::after {
  content: "+";
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.idara-faq-item[open] summary::after {
  content: "−";
}

.idara-faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.idara-contact-strip {
  background: linear-gradient(135deg, #0f4c9e 0%, #1565c0 45%, #1e88e5 100%);
  color: #fff;
  border-top: none;
  padding: 2.75rem 0;
  box-shadow: 0 -8px 32px rgba(15, 76, 158, 0.2);
}

.idara-contact-strip .idara-contact-strip-title {
  color: #fff;
}

.idara-contact-strip .idara-contact-strip-sub {
  color: rgba(255, 255, 255, 0.88);
}

.idara-contact-strip .button--idara-primary {
  background: #fff;
  color: #0f4c9e;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.idara-contact-strip .button--idara-primary:hover {
  background: #f0f7ff;
}

.idara-contact-strip .button--idara-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.idara-contact-strip .button--idara-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.idara-contact-strip .button--whatsapp-cta {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.85rem 1.65rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.idara-contact-strip .button--whatsapp-cta:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.contact-whatsapp-card {
  display: flex;
  justify-content: center;
  margin: 0 0 1.75rem;
}

.contact-whatsapp-card .button--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.contact-whatsapp-card .button--whatsapp:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-1px);
}

.contact-whatsapp-card .icon-whatsapp-btn {
  flex-shrink: 0;
}

.idara-contact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.idara-contact-strip-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a2540;
}

.idara-contact-strip-sub {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

/* ——— Desktop & large displays (كمبيوتر وشاشات واسعة) ——— */

@media (min-width: 901px) {
  .header-inner {
    gap: 1.25rem;
  }

  .brand {
    flex-shrink: 0;
  }

  .site-nav {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.1rem 0.4rem;
    min-width: 0;
  }

  .site-nav > a,
  .site-nav .nav-dropdown > a {
    white-space: nowrap;
  }

  .nav-dropdown-panel {
    min-width: 300px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
    padding-inline: 1.5rem;
  }

  body {
    font-size: 1.05rem;
  }

  .header-inner {
    min-height: 4.35rem;
    padding-block: 0.45rem;
  }

  .brand-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .site-nav > a,
  .site-nav .nav-dropdown > a {
    padding: 0.52rem 0.75rem;
    font-size: 0.97rem;
  }

  .top-bar-inner {
    min-height: 2.5rem;
    font-size: 0.85rem;
  }

  .idara-hero {
    padding: 3.5rem 0 0;
  }

  .idara-hero-inner {
    max-width: 58rem;
    padding-bottom: 2.75rem;
  }

  .idara-hero-title {
    font-size: clamp(2rem, 1.8vw + 1.5rem, 3.15rem);
  }

  .idara-hero-lead {
    font-size: 1.12rem;
    max-width: 52rem;
  }

  .idara-section {
    padding: 3.5rem 0;
  }

  .idara-section-title {
    font-size: clamp(1.5rem, 1vw + 1.15rem, 2rem);
  }

  .idara-section-sub,
  .idara-prose-center {
    font-size: 1.06rem;
    max-width: 48rem;
  }

  .idara-services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .idara-service-card {
    padding: 1.5rem 1.4rem 1.35rem;
  }

  .idara-service-card h3 {
    font-size: 1.08rem;
  }

  .idara-service-card p {
    font-size: 0.98rem;
  }

  .idara-platforms-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }

  .idara-platform-card {
    padding: 1.35rem 1.4rem 1.25rem;
  }

  .idara-platform-card h3 {
    font-size: 1.08rem;
  }

  .idara-platform-card p {
    font-size: 0.96rem;
  }

  .idara-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .idara-feature-tile {
    padding: 1rem 0.85rem;
    font-size: 0.9rem;
  }

  .idara-faq-wrap {
    max-width: 54rem;
  }

  .idara-faq-item summary {
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
  }

  .idara-faq-item p {
    font-size: 1rem;
    padding: 0 1.25rem 1.15rem;
  }

  .idara-contact-strip-inner {
    gap: 2rem;
  }

  .idara-contact-strip-title {
    font-size: 1.5rem;
  }

  .grid-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 0.8vw + 1.1rem, 1.85rem);
  }

  .page-product {
    padding: 2.75rem 0 4.5rem;
  }

  .product-hero h1 {
    font-size: clamp(1.85rem, 1vw + 1.25rem, 2.5rem);
  }

  .form {
    max-width: 600px;
  }

  .idara-contact-strip {
    padding: 3rem 0;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
    padding-inline: 1.75rem;
  }

  .idara-hero-inner {
    max-width: 64rem;
  }

  .idara-platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .idara-features-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1440px;
    padding-inline: 2rem;
  }
}

/* Product page hero + catalog thumbs */
.product-hero__text .product-tabs {
  margin-top: 0.25rem;
}

.product-hero--has-media {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .product-hero--has-media {
    grid-template-columns: 1fr minmax(220px, 36%);
  }
}

.product-hero__media {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 8px 28px rgba(22, 45, 85, 0.08);
}

.product-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.idara-platform-card__thumb {
  margin: -1.25rem -1.3rem 0.85rem;
  border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(15, 76, 158, 0.06);
}

.idara-platform-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__thumb {
  margin: -1.35rem -1.35rem 0.5rem;
  border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--line);
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Admin */
.admin-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6f9;
  color: #0a2540;
  font-family: system-ui, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
}

.admin-top {
  background: #fff;
  border-bottom: 1px solid rgba(15, 76, 158, 0.12);
  box-shadow: 0 2px 12px rgba(22, 45, 85, 0.05);
}

.admin-top-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-top-meta {
  font-size: 0.9rem;
}

.admin-top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.admin-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.admin-main--wide {
  max-width: 720px;
}

.admin-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
}

.admin-lead {
  margin: 0 0 1.25rem;
}

.admin-back {
  margin: 0 0 1rem;
}

.admin-back a {
  color: #1565c0;
  font-weight: 600;
  text-decoration: none;
}

.admin-back a:hover {
  text-decoration: underline;
}

.admin-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-alert--ok {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.admin-alert--err {
  background: rgba(198, 40, 40, 0.09);
  color: #b71c1c;
  border: 1px solid rgba(198, 40, 40, 0.22);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-form--stack {
  gap: 1.25rem;
}

.admin-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.admin-fieldset legend {
  font-weight: 700;
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

.admin-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.admin-label span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #37474f;
}

.admin-input,
.admin-textarea,
.admin-file {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(15, 76, 158, 0.2);
  border-radius: 8px;
  background: #fff;
}

.admin-textarea {
  resize: vertical;
  min-height: 5rem;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-btn {
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.admin-btn--primary {
  background: linear-gradient(135deg, #1565c0, #3949ab);
  color: #fff;
}

.admin-btn--primary:hover {
  filter: brightness(1.06);
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(15, 76, 158, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.admin-list-item a {
  font-weight: 700;
  color: #0a2540;
  text-decoration: none;
}

.admin-list-item a:hover {
  color: #1565c0;
}

.admin-list-meta {
  font-size: 0.82rem;
}

.admin-thumb-wrap {
  margin-bottom: 0.75rem;
}

.admin-thumb {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(15, 76, 158, 0.15);
}

/* —— Admin shell (v2) —— */
.admin-body--login {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 15% -8%, rgba(21, 101, 192, 0.12), transparent 55%),
    radial-gradient(700px 380px at 95% 20%, rgba(57, 73, 171, 0.1), transparent 50%),
    #eef1f6;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.admin-brand:hover .admin-brand__name {
  color: #0d47a1;
}

.admin-brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #1565c0, #3949ab);
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.35);
  flex-shrink: 0;
}

.admin-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}

.admin-brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0a2540;
  transition: color 0.15s ease;
}

.admin-brand__sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5c6b7a;
}

.admin-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.admin-pill--muted {
  background: rgba(15, 76, 158, 0.08);
  color: #3949ab;
  border: 1px solid rgba(15, 76, 158, 0.15);
}

.admin-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #37474f;
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-link:hover {
  background: rgba(21, 101, 192, 0.08);
  color: #1565c0;
}

.admin-nav-link--ghost {
  color: #546e7a;
}

.admin-nav-link--danger {
  color: #c62828;
}

.admin-nav-link--danger:hover {
  background: rgba(198, 40, 40, 0.08);
  color: #b71c1c;
}

.admin-top-inner {
  max-width: 1200px;
}

.admin-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.admin-login-card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow:
    0 4px 24px rgba(22, 45, 85, 0.07),
    0 0 0 1px rgba(15, 76, 158, 0.08);
}

.admin-login-card__head {
  margin-bottom: 1.35rem;
}

.admin-login-title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0a2540;
}

.admin-login-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #5c6b7a;
  line-height: 1.55;
}

.admin-login-form {
  margin-top: 0.25rem;
}

.admin-login-hints {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem 1rem 1.35rem;
  font-size: 0.82rem;
  color: #607d8b;
  background: rgba(15, 76, 158, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(15, 76, 158, 0.08);
  line-height: 1.55;
}

.admin-login-hints li + li {
  margin-top: 0.45rem;
}

.admin-input--lg {
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
}

.admin-btn--block {
  width: 100%;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.admin-btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.admin-btn--ghost {
  background: #fff;
  color: #1565c0;
  border: 1px solid rgba(21, 101, 192, 0.35);
}

.admin-btn--ghost:hover {
  background: rgba(21, 101, 192, 0.06);
}

.admin-shell {
  padding: 0 1rem 3.5rem;
}

.admin-shell__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.75rem;
}

.admin-dash-head {
  margin-bottom: 1.25rem;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.admin-stat {
  background: #fff;
  border: 1px solid rgba(15, 76, 158, 0.1);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  min-width: 6.5rem;
  box-shadow: 0 4px 16px rgba(22, 45, 85, 0.04);
}

.admin-stat__val {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1565c0;
  line-height: 1.2;
}

.admin-stat__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #78909c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.admin-product-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 76, 158, 0.1);
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(22, 45, 85, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 76, 158, 0.11);
}

.admin-product-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #e3eaf3, #f5f7fb);
}

.admin-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-card__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90a4ae;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-product-card__body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.admin-product-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.admin-badge--img {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.admin-badge--edit {
  background: rgba(255, 143, 0, 0.14);
  color: #ef6c00;
}

.admin-badge--id {
  background: rgba(96, 125, 139, 0.12);
  color: #546e7a;
  font-family: ui-monospace, monospace;
}

.admin-product-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0a2540;
  line-height: 1.35;
}

.admin-product-card__tag {
  margin: 0;
  font-size: 0.85rem;
  color: #607d8b;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.admin-edit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #1565c0;
  text-decoration: none;
  font-size: 0.92rem;
}

.admin-back-link:hover {
  text-decoration: underline;
}

.admin-back-link__ic {
  display: inline-block;
  transform: scaleX(-1);
  opacity: 0.85;
}

.admin-edit-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-edit-head {
  margin-bottom: 1.25rem;
}

.admin-edit-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .admin-edit-layout {
    grid-template-columns: minmax(240px, 300px) 1fr;
    align-items: start;
  }
}

.admin-edit-aside {
  position: sticky;
  top: 1rem;
}

.admin-aside-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #546e7a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-preview-card {
  background: #fff;
  border: 1px solid rgba(15, 76, 158, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(22, 45, 85, 0.05);
}

.admin-preview-card__img img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.admin-preview-card__empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #90a4ae;
  background: #f5f7fa;
}

.admin-preview-card__txt {
  padding: 1rem 1.05rem 1.1rem;
}

.admin-preview-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #90a4ae;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-preview-tag {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #37474f;
  line-height: 1.45;
}

.admin-preview-cardline {
  margin: 0;
  font-size: 0.82rem;
  color: #607d8b;
  line-height: 1.5;
}

.admin-aside-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-panel {
  background: #fff;
  border: 1px solid rgba(15, 76, 158, 0.1);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 4px 18px rgba(22, 45, 85, 0.04);
}

.admin-panel-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a2540;
}

.admin-panel-help {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.admin-textarea--tall {
  min-height: 10rem;
}

.admin-check--boxed {
  padding: 0.65rem 0.85rem;
  background: rgba(198, 40, 40, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(198, 40, 40, 0.12);
  margin-bottom: 0.85rem;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.admin-main--settings {
  max-width: 560px;
}

.admin-page-head {
  margin-bottom: 1.25rem;
}

.admin-code {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.82em;
  background: rgba(15, 76, 158, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Admin: ميزات + معرض */
.admin-feat-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-feat-row {
  background: rgba(15, 76, 158, 0.03);
  border: 1px solid rgba(15, 76, 158, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.admin-feat-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.admin-feat-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #90a4ae;
}

.admin-feat-del,
.admin-ov-del {
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 8px;
  background: rgba(198, 40, 40, 0.1);
  color: #c62828;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}

.admin-feat-del:hover,
.admin-ov-del:hover {
  background: rgba(198, 40, 40, 0.18);
}

.admin-textarea--ov {
  min-height: 6.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.admin-feat-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .admin-feat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-feat-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-feat-col-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #78909c;
}

.admin-textarea--compact {
  min-height: 3.5rem;
  font-size: 0.92rem;
}

.admin-gallery-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-gallery-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: rgba(15, 76, 158, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(15, 76, 158, 0.1);
}

.admin-gallery-item__check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-gallery-item__thumb {
  width: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 76, 158, 0.12);
}

.admin-gallery-item__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.admin-gallery-item__path {
  font-size: 0.75rem;
  flex: 1;
  min-width: 8rem;
  word-break: break-all;
}

/* موقع عام: معرض المنتج */
.product-gallery {
  margin: 2.5rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.product-gallery__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.product-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.product-gallery__cell {
  margin: 0;
}

.product-gallery__link {
  display: block;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(22, 45, 85, 0.06);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.product-gallery__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 76, 158, 0.12);
}

.product-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: middle;
}
</think>


<｜tool▁calls▁begin｜><｜tool▁call▁begin｜>
Read
