/* ============================================
   متاجر التقنية — tokens
   ============================================ */
:root{
  /* Light theme — default */
  --bg:var(--theme-background);
  --bg-soft:var(--theme-surface-alt);
  --surface:var(--theme-surface);
  --surface-2:var(--theme-surface-alt);
  --border:var(--theme-border);
  --border-strong:var(--theme-border);
  --text:var(--theme-text);
  --muted:var(--theme-muted);
  --muted-2:var(--theme-muted);

  --nav-bg:rgba(244,241,237,.7);
  --nav-bg-scrolled:rgba(244,241,237,.9);
  --glow-opacity: .22;

  --orange:var(--theme-accent);
  --coral:var(--theme-primary);
  --magenta:var(--theme-accent);
  --purple:var(--theme-primary);
  --deep:var(--theme-primary);
  --blue:var(--theme-primary);

  --grad-brand: linear-gradient(90deg,var(--orange),var(--coral),var(--magenta),var(--purple),var(--blue));
  --grad-btn: linear-gradient(90deg,var(--coral),var(--magenta));

  --font-display:'Cairo',sans-serif;
  --font-body:'Cairo',sans-serif;
  --font-mono:'IBM Plex Mono',monospace;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:26px;
  --nav-h:82px;

  /* الموسيقى الخلفية — لتغييرها استبدل مسار الملف هنا فقط */

}

:root[data-theme="dark"]{
  --bg:var(--theme-background);
  --bg-soft:var(--theme-surface-alt);
  --surface:var(--theme-surface);
  --surface-2:var(--theme-surface-alt);
  --border:var(--theme-border);
  --border-strong:var(--theme-border);
  --text:var(--theme-text);
  --muted:var(--theme-muted);
  --muted-2:var(--theme-muted);

  --nav-bg:rgba(11,7,20,.55);
  --nav-bg-scrolled:rgba(11,7,20,.86);
  --glow-opacity: .4;

  --orange:var(--theme-accent);
  --coral:var(--theme-primary);
  --magenta:var(--theme-accent);
  --purple:var(--theme-primary);
  --deep:var(--theme-primary);
  --blue:var(--theme-primary);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body, .nav, .btn, [data-reveal]{ transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0; list-style:none;}
button{font-family:inherit;}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.mono{font-family:var(--font-mono);}

.grad-text{
  background:var(--grad-btn);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.grad-text-brand{
  background:var(--grad-brand);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.eyebrow{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:.8rem;
  letter-spacing:.04em;
  color:var(--coral);
  margin:0 0 14px;
}

/* ============================================
   Buttons
   ============================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.98rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:focus-visible{ outline:2px solid var(--orange); outline-offset:3px; }

/* Guarantee [hidden] always works, even on elements with a class that sets display */
[hidden]{ display:none !important; }

.btn--primary{
  background:var(--grad-btn);
  color:var(--theme-button-text);
  box-shadow:0 10px 30px -12px color-mix(in srgb,var(--theme-primary) 10%,transparent);
}
.btn--primary:hover{ box-shadow:0 14px 34px -10px color-mix(in srgb,var(--theme-primary) 10%,transparent); }

.btn--ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--border-strong);
}
.btn--ghost:hover{ border-color:var(--coral); background:var(--theme-primary); }

.btn--outline{
  background:transparent;
  color:var(--text);
  border-color:var(--border-strong);
}
.btn--outline:hover{ border-color:var(--magenta); }

.btn--sm{ padding:10px 20px; font-size:.88rem; }
.btn--block{ width:100%; }

.icon{ width:18px; height:18px; }

/* ============================================
   Navbar
   ============================================ */
.nav{
  position:fixed;
  inset-inline:0;
  top:0;
  height:var(--nav-h);
  z-index:100;
  background:var(--nav-bg);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:background .3s ease, border-color .3s ease;
}
.nav.is-scrolled{
  background:var(--nav-bg-scrolled);
  border-bottom-color:var(--border);
}

.nav__inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.nav__logo img{ height:56px; width:auto; }

.nav__links{
  display:flex;
  align-items:center;
  gap:6px;
}
.navlink{
  padding:10px 14px;
  border-radius:999px;
  font-size:.95rem;
  color:var(--muted);
  transition:color .2s ease, background .2s ease;
}
.navlink:hover, .navlink.is-active{
  color:var(--text);
  background:var(--surface-2);
}

.nav__actions{ display:flex; align-items:center; gap:14px; }

.theme-toggle{
  position:relative;
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid var(--border-strong);
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition:border-color .2s ease, transform .2s ease, background .2s ease;
}
.theme-toggle:hover{ border-color:var(--coral); transform:translateY(-1px); }
.theme-toggle:focus-visible{ outline:2px solid var(--orange); outline-offset:3px; }
.theme-toggle__icon{
  position:absolute;
  width:19px; height:19px;
  transition:opacity .3s ease, transform .4s ease;
}
.theme-toggle__icon--sun{ opacity:0; transform:rotate(-60deg) scale(.6); }
.theme-toggle__icon--moon{ opacity:1; transform:rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle__icon--sun{ opacity:1; transform:rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle__icon--moon{ opacity:0; transform:rotate(60deg) scale(.6); }

.nav__burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px;
  height:38px;
  background:transparent;
  border:1px solid var(--border-strong);
  border-radius:10px;
  cursor:pointer;
}
.nav__burger span{
  display:block;
  height:2px;
  margin:0 8px;
  background:var(--text);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.nav__burger.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2){ opacity:0; }
.nav__burger.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero{
  position:relative;
  padding:calc(var(--nav-h) + 96px) 0 90px;
  overflow:hidden;
}

.hero__bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:url('assets/hero-bg.svg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:var(--glow-opacity);
}

.hero__inner{ position:relative; z-index:1; max-width:820px; }

.hero__title{
  font-family:var(--font-display);
  font-weight:900;
  font-size:clamp(2.2rem, 5.2vw, 3.8rem);
  line-height:1.28;
  margin:0 0 22px;
}

.hero__sub{
  color:var(--muted);
  font-size:1.1rem;
  max-width:600px;
  margin:0 0 36px;
}

.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:56px; }

.hero__stats{
  display:flex;
  flex-wrap:wrap;
  gap:36px;
  padding-top:32px;
  border-top:1px solid var(--border);
}
.stat{ display:flex; flex-direction:column; gap:4px; }
.stat__num{
  font-family:var(--font-mono);
  font-weight:600;
  font-size:1.6rem;
  color:var(--text);
}
.stat__label{ font-size:.86rem; color:var(--muted-2); }

/* ============================================
   Marquee strip
   ============================================ */
.marquee{
  overflow:hidden;
  background:var(--theme-surface-alt);
  border-block:1px solid var(--theme-border);
  padding:18px 0;
}
.marquee__track{
  display:flex;
  width:max-content;
  animation:marquee-scroll 26s linear infinite;
}
.marquee__group{
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.marquee__group span{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.3rem;
  color:var(--theme-primary);
  white-space:nowrap;
  padding:0 8px;
}
.marquee__dot{
  width:9px; height:9px;
  border-radius:50%;
  background:var(--theme-primary);
  margin:0 22px;
  flex-shrink:0;
}
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation:none; }
}
.marquee:hover .marquee__track{ animation-play-state:paused; }

@media (max-width:760px){
  .marquee__group span{ font-size:1.05rem; }
  .marquee__dot{ margin:0 16px; }
}

/* ============================================
   Sections generic
   ============================================ */
.section{ padding:96px 0; position:relative; }
.section--soft{ background:var(--bg-soft); }

.section__head{ max-width:640px; margin:0 0 48px; }
.section__title{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(1.7rem, 3.4vw, 2.4rem);
  margin:0 0 16px;
  line-height:1.35;
}
.section__p{ color:var(--muted); font-size:1.02rem; margin:0; }

/* ============================================
   About
   ============================================ */
.about__grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:64px;
  align-items:center;
}
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.chip{
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--border-strong);
  font-size:.88rem;
  color:var(--muted);
  background:var(--surface);
}

.about__visual{ display:flex; justify-content:center; }
.about-visual-link{
  display:block;
  width:100%;
  max-width:440px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease;
}
.about-visual-link:hover{ transform:translateY(-4px); box-shadow:0 24px 50px -20px color-mix(in srgb,var(--theme-primary) 10%,transparent); }
.about-visual-img{ width:100%; height:auto; display:block; }

/* ============================================
   Hosting / pricing
   ============================================ */
.plans{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:8px;
}
.plan-card{
  position:relative;
  padding:32px 28px;
  border-radius:var(--radius-md);
  background:var(--surface);
  border:1px solid var(--border);
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, border-color .25s ease;
}
.plan-card:hover{ transform:translateY(-6px); border-color:var(--border-strong); }

.plan-card--featured{
  border-color:transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-btn) border-box;
  border:1px solid transparent;
}
.plan-card__badge{
  position:absolute;
  top:-14px;
  inset-inline-start:28px;
  background:var(--grad-btn);
  color:var(--theme-button-text);
  font-family:var(--font-mono);
  font-size:.72rem;
  padding:5px 14px;
  border-radius:999px;
}
.plan-card__name{ font-family:var(--font-display); font-size:1.2rem; margin:0 0 10px; }
.plan-card__price{ font-size:1rem; color:var(--muted); margin:0 0 24px; }
.plan-card__price .mono{ font-size:2.1rem; color:var(--text); font-weight:600; }
.plan-card__per{ font-size:.85rem; }
.plan-card__list{ flex:1; margin-bottom:28px; display:flex; flex-direction:column; gap:12px; }
.plan-card__list li{
  font-size:.92rem;
  color:var(--muted);
  padding-inline-start:22px;
  position:relative;
}
.plan-card__list li::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:.5em;
  width:10px; height:10px;
  border-radius:3px;
  background:var(--grad-brand);
}
.plans__note{ margin-top:28px; font-size:.85rem; color:var(--muted-2); }

/* ============================================
   Hosting / pricing — new price-table design
   (old .plans / .plan-card rules above are kept, unused,
   in case you want to switch back later)
   ============================================ */
.price-table{
  display:flex;
  align-items:flex-end;
  gap:0;
  margin-top:8px;
}
.price-col{
  flex:1;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  position:relative;
  z-index:1;
}
.price-col:first-child{ border-radius:var(--radius-md) 0 0 var(--radius-md); }
.price-col:last-child{ border-radius:0 var(--radius-md) var(--radius-md) 0; }
.price-col + .price-col{ border-inline-start:none; }

.price-col__head{
  padding:34px 24px 26px;
  text-align:center;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
  position:relative;
}
.price-col__name{ font-family:var(--font-display); font-size:1.05rem; margin:0 0 14px; color:var(--muted); }
.price-col__amount{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:6px;
  margin:0;
}
.price-col__amount .mono{ font-size:2.6rem; font-weight:700; color:var(--text); line-height:1; }
.price-col__currency{ font-size:.85rem; color:var(--muted); }
.price-col__per{ font-size:.8rem; color:var(--muted-2); margin:6px 0 0; }

.price-col__body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:28px 26px 32px;
}
.price-col__list{ flex:1; display:flex; flex-direction:column; gap:13px; margin-bottom:22px; }
.price-col__list li{
  font-size:.9rem;
  color:var(--muted);
  padding-inline-start:20px;
  position:relative;
}
.price-col__list li::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:.55em;
  width:9px; height:9px;
  border-radius:3px;
  background:var(--grad-brand);
}
.price-col__stars{
  text-align:center;
  color:var(--orange);
  letter-spacing:3px;
  margin-bottom:18px;
  font-size:.95rem;
}
.price-col__badge{
  position:absolute;
  top:-14px;
  left:50%;
  transform:translateX(-50%);
  background:var(--grad-btn);
  color:var(--theme-button-text);
  font-family:var(--font-mono);
  font-size:.7rem;
  padding:5px 16px;
  border-radius:999px;
  white-space:nowrap;
}

.price-col--featured{
  transform:translateY(-24px);
  z-index:2;
  border-radius:var(--radius-md);
  box-shadow:0 24px 50px -20px color-mix(in srgb,var(--theme-primary) 10%,transparent);
  border-color:transparent;
}
.price-col--featured .price-col__head{
  background:linear-gradient(160deg, var(--deep), var(--theme-primary)) padding-box;
  border-radius:var(--radius-md) var(--radius-md) 0 0;
  padding-top:44px;
}
.price-col--featured .price-col__name{ color:var(--theme-primary); }
.price-col--featured .price-col__amount .mono{ color:var(--theme-button-text); }
.price-col--featured .price-col__currency{ color:var(--theme-primary); }
.price-col--featured .price-col__per{ color:var(--theme-primary); }

@media (max-width:820px){
  .price-table{ flex-direction:column; align-items:stretch; }
  .price-col, .price-col:first-child, .price-col:last-child{ border-radius:var(--radius-md); }
  .price-col + .price-col{ border-inline-start:1px solid var(--border); margin-top:32px; }
  .price-col--featured{ transform:none; margin-top:32px; }
}

/* ============================================
   Courses
   ============================================ */
.courses__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.courses__text .feature-list{ margin:22px 0 28px; }

.course-frame{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:0 24px 50px -24px color-mix(in srgb,var(--theme-primary) 10%,transparent);
}
.course-frame__bar{
  display:flex;
  align-items:center;
  gap:6px;
  padding:12px 16px;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
}
.course-frame__bar span{ width:9px; height:9px; border-radius:50%; background:var(--muted-2); opacity:.5; }

.course-frame__body{
  position:relative;
  aspect-ratio:16/9;
  background:var(--bg-soft);
}
.course-frame__body iframe,
.course-frame__body video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:none;
  display:block;
}
.course-video-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:var(--grad-brand);
  opacity:.9;
  color:var(--theme-button-text);
  text-align:center;
  padding:20px;
}
.course-video-placeholder__play{
  width:64px; height:64px;
  border-radius:50%;
  background:var(--theme-surface);
  display:flex;
  align-items:center;
  justify-content:center;
}
.course-video-placeholder__play svg{ width:26px; height:26px; }
.course-video-placeholder span{ font-family:var(--font-display); font-weight:700; font-size:.92rem; }

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

/* ============================================
   Services
   ============================================ */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.service-card{
  padding:30px 26px;
  border-radius:var(--radius-md);
  background:var(--surface);
  border:1px solid var(--border);
  transition:transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover{
  transform:translateY(-4px);
  border-color:var(--border-strong);
  background:var(--surface-2);
}
.service-card__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px; height:48px;
  border-radius:14px;
  margin-bottom:20px;
  background:var(--surface-2);
  color:var(--coral);
}
.service-card__icon svg{ width:24px; height:24px; }
.service-card h3{ font-family:var(--font-display); font-size:1.08rem; margin:0 0 10px; }
.service-card p{ color:var(--muted); font-size:.92rem; margin:0; }

/* ============================================
   Marketplace
   ============================================ */
.marketplace__stack{ display:flex; flex-direction:column; }
.section__title--sm{ font-size:clamp(1.3rem, 2.4vw, 1.75rem); }
.feature-list{ display:flex; flex-direction:column; gap:14px; margin:22px 0 28px; }
.feature-list li{ display:flex; align-items:flex-start; gap:10px; color:var(--muted); font-size:.94rem; }
.check{
  flex-shrink:0;
  width:22px; height:22px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--grad-btn);
  color:var(--theme-button-text);
  font-size:.72rem;
}
.marketplace__ctas{ display:flex; flex-wrap:wrap; gap:12px; }

.marketplace__text--below{
  max-width:640px;
  margin:44px auto 0;
  text-align:center;
}
.marketplace__text--below .feature-list{ text-align:start; display:inline-flex; }
.marketplace__text--below .marketplace__ctas{ justify-content:center; }

.products-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.products-grid--big{
  gap:22px;
}
.product-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .2s ease, border-color .2s ease;
}
.product-card:hover{ transform:translateY(-3px); border-color:var(--border-strong); }
.product-card__thumb{
  aspect-ratio:1/.85;
  border-radius:14px;
  overflow:hidden;
}
.products-grid--big .product-card__thumb{ aspect-ratio:1/.75; }
.product-card__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-card__name{ font-family:var(--font-display); font-size:1rem; font-weight:700; margin:2px 0 0; color:var(--text); }

.product-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}
.product-card__category{
  font-size:.74rem;
  color:var(--muted-2);
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 10px;
  white-space:nowrap;
}
.product-card__price-group{
  display:flex;
  align-items:baseline;
  gap:6px;
}
.product-card__price-note{
  font-size:.72rem;
  color:var(--coral);
  font-weight:600;
  white-space:nowrap;
}
.product-card__price{ font-size:.95rem; color:var(--muted); margin:0; }
.product-card__price .mono{ font-weight:600; color:var(--text); }
.product-card__price--free{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--theme-primary);
  font-size:.95rem;
}
.product-card__buy{
  margin-top:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:var(--grad-btn);
  color:var(--theme-button-text);
  border:none;
  border-radius:999px;
  padding:11px 12px;
  font-family:var(--font-display);
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease;
}
.product-card__buy svg{ width:15px; height:15px; }
.product-card__buy:hover{ transform:translateY(-1px); }

@media (max-width:760px){
  .products-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .products-grid{ grid-template-columns:1fr; }
}

.browser{
  border-radius:var(--radius-md);
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--border);
}
.browser__bar{
  display:flex;
  gap:7px;
  padding:14px 16px;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
}
.browser__bar span{ width:10px; height:10px; border-radius:50%; background:var(--muted-2); opacity:.5; }
.browser__body{ display:flex; gap:16px; padding:20px; }
.browser__side{ width:26%; display:flex; flex-direction:column; gap:12px; padding-top:6px; }
.browser__main{ flex:1; display:grid; grid-template-columns:1fr 1fr; gap:14px; }

.sk{ height:9px; border-radius:5px; background:var(--surface-2); }
.sk--w30{ width:30%; } .sk--w40{ width:40%; } .sk--w50{ width:50%; } .sk--w60{ width:60%; } .sk--w70{ width:70%; }
.sk--price{ background:var(--grad-brand); opacity:.6; margin-top:8px; }

.pcard{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pcard__thumb{
  aspect-ratio:1/.8;
  border-radius:8px;
  background:var(--grad-brand);
  opacity:.18;
}

/* ============================================
   Work / Portfolio
   ============================================ */
.work-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}

.work-cta{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:340px;
  padding:30px 26px;
  border-radius:var(--radius-lg);
  background:var(--surface-2);
  border:1px dashed var(--border-strong);
  transition:border-color .2s ease, transform .2s ease, background .2s ease;
}
.work-cta:hover{ border-color:var(--coral); transform:translateY(-4px); background:var(--surface); }
.work-cta__text{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.3rem;
  line-height:1.5;
  color:var(--text);
}
.work-cta__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.92rem;
  color:var(--coral);
  font-weight:700;
}
.work-cta__link svg{ width:18px; height:18px; transform:scaleX(-1); }

.work-card{
  display:flex;
  flex-direction:column;
  border-radius:var(--radius-lg);
  background:var(--surface);
  border:1px solid var(--border);
  overflow:hidden;
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.work-card:hover{ transform:translateY(-4px); border-color:var(--border-strong); box-shadow:0 20px 40px -24px color-mix(in srgb,var(--theme-primary) 10%,transparent); }

.work-card__thumb{
  height:240px;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
  overflow:hidden;
}
.work-card__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.work-card__bar{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 12px;
}
.work-card__bar span{ width:7px; height:7px; border-radius:50%; background:var(--muted-2); opacity:.5; }
.work-card__url{
  margin-inline-start:8px;
  font-family:var(--font-mono);
  font-size:.68rem;
  color:var(--muted-2);
  background:var(--surface);
  padding:3px 10px;
  border-radius:999px;
}

.work-more{ display:flex; justify-content:center; margin-top:32px; }

.work-card__tag{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:18px 22px 0;
  font-family:var(--font-mono);
  font-size:.72rem;
  color:var(--muted);
}
.work-card__tag i{ width:7px; height:7px; border-radius:50%; background:var(--grad-btn); flex-shrink:0; }
.work-card__title{ margin:12px 22px 8px; font-family:var(--font-display); font-size:1.05rem; }
.work-card__desc{ margin:0 22px 18px; color:var(--muted); font-size:.88rem; line-height:1.7; }
.work-card__price{
  margin:0 22px 24px;
  font-size:.9rem;
  color:var(--text);
  font-weight:700;
}
.work-card__price .mono{ font-family:var(--font-mono); color:var(--coral); }

/* ============================================
   Reviews
   ============================================ */
.reviews__head{ max-width:640px; margin:0 0 28px; }
.reviews__lead{ color:var(--muted); margin:0 0 10px; font-size:.95rem; }

.reviews__summary{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:40px;
  flex-wrap:wrap;
}
.btn--rate{
  background:var(--orange);
  color:var(--theme-button-text);
  border:none;
  padding:12px 22px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.9rem;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:transform .2s ease;
}
.btn--rate:hover{ transform:translateY(-2px); }
.btn--rate__star{ color:var(--theme-button-text); }

.reviews__score{ display:flex; align-items:baseline; gap:8px; }
.reviews__score-num{ font-family:var(--font-mono); font-size:1.5rem; font-weight:600; }
.reviews__score-label{ font-size:.85rem; color:var(--muted-2); }

.reviews-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.review-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:26px 24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.review-card__top{ display:flex; align-items:center; justify-content:space-between; }
.review-card__stars{ color:var(--orange); letter-spacing:2px; }
.review-card__quote{ font-size:1.8rem; color:var(--border-strong); font-family:Georgia, serif; line-height:0; }
.review-card__text{ color:var(--text); font-size:.92rem; line-height:1.75; margin:0; flex:1; }
.review-card__author{ display:flex; align-items:center; gap:12px; padding-top:12px; border-top:1px solid var(--border); }
.review-card__avatar{
  flex-shrink:0;
  width:38px; height:38px;
  border-radius:50%;
  color:var(--theme-button-text);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.8rem;
  font-weight:700;
}
.review-card__author strong{ display:block; font-size:.88rem; }
.review-card__role{ font-size:.76rem; color:var(--muted-2); }

@media (max-width:980px){ .reviews-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:760px){ .reviews-grid{ grid-template-columns:1fr; } }

/* ============================================
   Review modal
   ============================================ */
.review-modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.review-modal.is-open{ display:flex; }
.review-modal__backdrop{
  position:absolute;
  inset:0;
  background:var(--theme-primary);
  backdrop-filter:blur(4px);
}
.review-modal__box{
  position:relative;
  z-index:1;
  width:100%;
  max-width:460px;
  background:var(--surface);
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  padding:34px 30px;
  box-shadow:0 30px 70px -20px color-mix(in srgb,var(--theme-primary) 10%,transparent);
}
.review-modal__box h3{ font-family:var(--font-display); font-size:1.25rem; margin:0 0 8px; }
.review-modal__sub{ color:var(--muted); font-size:.88rem; margin:0 0 22px; }
.review-modal__close{
  position:absolute;
  top:16px; left:16px;
  width:32px; height:32px;
  border-radius:50%;
  border:1px solid var(--border-strong);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-size:.9rem;
}
.review-modal__close:hover{ color:var(--text); border-color:var(--coral); }

.review-modal__stars{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-bottom:22px;
}
.review-modal__stars button{
  background:none;
  border:none;
  font-size:1.8rem;
  color:var(--border-strong);
  cursor:pointer;
  line-height:1;
  transition:color .15s ease, transform .15s ease;
}
.review-modal__stars button:hover{ transform:scale(1.1); }
.review-modal__stars button.is-active{ color:var(--orange); }

.review-modal__row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:480px){ .review-modal__row{ grid-template-columns:1fr; } }

.ios-install-steps{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.ios-install-steps li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:.92rem;
  color:var(--text);
  line-height:1.7;
}
.ios-install-steps__num{
  flex-shrink:0;
  width:26px; height:26px;
  border-radius:50%;
  background:var(--grad-btn);
  color:var(--theme-button-text);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-mono);
  font-size:.8rem;
  font-weight:600;
}
.ios-install-steps__icon{
  width:16px; height:16px;
  vertical-align:middle;
  margin:0 2px;
  display:inline-block;
}

/* ============================================
   Contact
   ============================================ */
.contact__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
}
.contact-cards{ display:flex; flex-direction:column; gap:14px; margin-top:32px; }
.contact-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  border-radius:var(--radius-sm);
  background:var(--surface);
  border:1px solid var(--border);
  transition:border-color .2s ease, transform .2s ease;
}
a.contact-card:hover{ border-color:var(--coral); transform:translateX(-2px); }
.contact-card__icon{
  flex-shrink:0;
  width:44px; height:44px;
  border-radius:12px;
  background:var(--surface-2);
  color:var(--coral);
  display:flex;
  align-items:center;
  justify-content:center;
}
.contact-card__icon svg{ width:20px; height:20px; }
.contact-card strong{ display:block; font-size:.92rem; margin-bottom:2px; }
.contact-card span span{ font-size:.86rem; color:var(--muted); }

.contact-form{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:32px;
  border-radius:var(--radius-md);
  background:var(--surface);
  border:1px solid var(--border);
}
.field{ display:flex; flex-direction:column; gap:8px; font-size:.88rem; color:var(--muted); min-width:0; }
.field span{ white-space:normal; overflow-wrap:break-word; }
.field input, .field textarea{ width:100%; min-width:0; box-sizing:border-box; }
.field input, .field textarea{
  font-family:var(--font-body);
  background:var(--surface-2);
  border:1px solid transparent;
  border-radius:12px;
  padding:13px 16px;
  color:var(--text);
  font-size:.95rem;
  resize:vertical;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder{ color:var(--muted-2); }
.field input:focus, .field textarea:focus{
  outline:none;
  border-color:var(--coral);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 10%,transparent);
}
.field__hint{ font-size:.78rem; color:var(--muted-2); margin:0; }

/* ============================================
   Footer
   ============================================ */
.footer{ border-top:1px solid var(--border); padding:64px 0 0; background:var(--bg-soft); }
.footer__inner{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:40px;
  padding-bottom:48px;
}
.footer__brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  text-align:right;
}
.footer__logo{ width:110px; height:auto; margin-bottom:14px; }
.footer__brand p{ color:var(--muted-2); font-size:.9rem; max-width:260px; }

.footer__links{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer__links a{ color:var(--muted); font-size:.92rem; transition:color .2s ease; }
.footer__links a:hover{ color:var(--text); }

.footer__contact{ display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.footer__heading{
  font-family:var(--font-display);
  font-weight:700;
  font-size:.85rem;
  color:var(--text);
  margin:0 0 4px;
}
.footer__heading--social{ margin-top:18px; }
.footer__contact-item{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:.9rem;
  font-family:var(--font-mono);
  transition:color .2s ease;
}
.footer__contact-item svg{ width:17px; height:17px; flex-shrink:0; }
.footer__contact-item:hover{ color:var(--coral); }

.footer__social{ display:flex; gap:10px; }
.social-icon{
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--border-strong);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  transition:color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-icon svg{ width:17px; height:17px; }
.social-icon:hover{ color:var(--theme-button-text); border-color:transparent; background:var(--grad-btn); transform:translateY(-2px); }

.footer__bottom{
  border-top:1px solid var(--border);
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.footer__bottom p{ margin:0; font-size:.82rem; color:var(--muted-2); }

.back-to-top{
  flex-shrink:0;
  width:40px; height:40px;
  border-radius:50%;
  border:none;
  background:var(--grad-btn);
  color:var(--theme-button-text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
  box-shadow:0 8px 20px -8px color-mix(in srgb,var(--theme-primary) 10%,transparent);
}
.back-to-top:hover{ transform:translateY(-3px); }
.back-to-top svg{ width:18px; height:18px; }

@media (max-width:760px){
  .footer__bottom{ flex-direction:row; padding:16px 20px; }
  .footer__bottom p{ font-size:.75rem; }
}

/* ============================================
   Floating WhatsApp button
   ============================================ */
.wa-float{
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:90;
  width:58px; height:58px;
  border-radius:50%;
  background:var(--theme-primary);
  color:var(--theme-button-text);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 28px -8px color-mix(in srgb,var(--theme-primary) 10%,transparent);
  transition:transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover{ transform:scale(1.08); box-shadow:0 14px 32px -6px color-mix(in srgb,var(--theme-primary) 10%,transparent); }
.wa-float svg{ width:28px; height:28px; }

/* ============================================
   Reveal animation
   ============================================ */
[data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width:980px){
  .about__grid, .marketplace__grid, .contact__grid{ grid-template-columns:1fr; gap:40px; }
  .plans{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .work-grid{ grid-template-columns:repeat(2,1fr); }
  .footer__inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:760px){
  .nav__links{
    position:fixed;
    top:var(--nav-h);
    inset-inline:0;
    background:var(--nav-bg-scrolled);
    backdrop-filter:blur(14px);
    flex-direction:column;
    align-items:stretch;
    padding:18px;
    gap:4px;
    border-bottom:1px solid var(--border);
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
  }
  .nav__links.is-open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .navlink{ padding:14px 16px; }
  .nav__burger{ display:flex; }
  .nav__actions .btn--sm:not(.install-btn){ display:none; }

  .services-grid{ grid-template-columns:1fr; }
  .work-grid{ grid-template-columns:1fr; }
  .hero__stats{ gap:26px; }
  .footer__inner{ grid-template-columns:1fr; text-align:center; }
  .footer__brand{ display:flex; flex-direction:column; align-items:center; }
  .footer__contact{ align-items:center; }
  .browser__body{ flex-direction:column; }
  .browser__side{ width:100%; flex-direction:row; flex-wrap:wrap; }
}

@media (max-width:420px){
  .hero__cta{ flex-direction:column; align-items:stretch; }
  .hero__cta .btn{ width:100%; }
}

/* ============================================
   Product page, cart, checkout (Phase 1)
   ============================================ */
.product-page__grid{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:48px;
  align-items:start;
}
.product-page__main-image{ width:100%; border-radius:var(--radius-md); border:1px solid var(--border); }
.product-page__thumbs{ display:flex; gap:10px; margin-top:12px; }
.product-page__thumbs img{ width:70px; height:70px; object-fit:cover; border-radius:10px; border:1px solid var(--border); }
.product-page__price{ font-family:var(--font-display); font-size:1.6rem; font-weight:700; margin:14px 0; }
.product-page__desc{ margin-top:28px; color:var(--muted); line-height:1.8; }
.product-page__form{ display:flex; flex-direction:column; gap:16px; margin:20px 0; }

.option-radio{
  display:flex; align-items:center; gap:8px;
  padding:12px 14px; border:1px solid var(--border); border-radius:10px;
  margin-bottom:8px; cursor:pointer; font-size:.92rem;
}
.option-radio input{ width:auto; }

.cart-list{ display:flex; flex-direction:column; gap:12px; margin:24px 0; }
.cart-item{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 20px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
}
.cart-item__info{ display:flex; flex-direction:column; gap:4px; }
.cart-item__option{ font-size:.82rem; color:var(--muted); }
.cart-item__remove{ background:none; border:none; color:var(--muted-2); cursor:pointer; font-size:1rem; }
.cart-item__remove:hover{ color:var(--coral); }

.cart-total{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 20px; background:var(--surface-2); border-radius:var(--radius-sm);
  font-family:var(--font-display); font-size:1.1rem; margin-bottom:20px;
}

@media (max-width:760px){
  .product-page__grid{ grid-template-columns:1fr; }
}

/* ============================================
   Products page: category badge (Phase 1 admin update)
   ============================================ */
.product-card__name-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.product-card__category{
  flex-shrink:0;
  font-size:.7rem;
  color:var(--muted-2);
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px 9px;
  white-space:nowrap;
}

/* ============================================
   Header nav: sub-category dropdown menus
   ============================================ */
.navlink-group{ position:relative; display:inline-flex; align-items:center; }
.navlink__caret-btn{
  background:none;
  border:none;
  color:var(--muted);
  cursor:pointer;
  font-size:.7rem;
  padding:4px;
  margin-inline-start:-4px;
}
.navlink-dropdown{
  position:absolute;
  top:100%;
  inset-inline-start:0;
  min-width:180px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 16px 32px -12px color-mix(in srgb,var(--theme-primary) 10%,transparent);
  padding:8px;
  display:none;
  flex-direction:column;
  gap:2px;
  z-index:50;
}
.navlink-group:hover .navlink-dropdown,
.navlink-group.is-open .navlink-dropdown{
  display:flex;
}
.navlink-dropdown a{
  padding:9px 12px;
  border-radius:8px;
  font-size:.88rem;
  color:var(--muted);
  white-space:nowrap;
}
.navlink-dropdown a:hover{ background:var(--surface-2); color:var(--text); }

@media (max-width:760px){
  .navlink-group{ display:flex; flex-direction:column; align-items:stretch; }
  .navlink-dropdown{
    position:static;
    display:none;
    box-shadow:none;
    border:none;
    padding-inline-start:16px;
    background:transparent;
  }
  .navlink-group.is-open .navlink-dropdown{ display:flex; }
}



/* ============================================
   Products page: product-only category browser
   ============================================ */
.products-page__head{ margin-bottom:34px; }
.product-category-browser{ margin:0 0 34px; overflow:hidden; }
.product-category-browser__title{ margin:0 0 16px; font-family:var(--font-display); color:var(--text); font-size:1rem; font-weight:700; }
.product-category-browser__list{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.product-category-chip{ min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:8px 16px; border:1px solid var(--border-strong); border-radius:13px; background:var(--surface); color:var(--muted); font-size:.84rem; font-weight:600; line-height:1; box-shadow:0 3px 12px color-mix(in srgb,var(--theme-primary) 10%,transparent); transition:all .18s ease; }
.product-category-chip:hover{ transform:translateY(-1px); color:var(--text); border-color:var(--coral); }
.product-category-chip.is-active{ color:var(--theme-button-text); border-color:transparent; background:var(--grad-btn); box-shadow:0 8px 20px color-mix(in srgb,var(--theme-primary) 10%,transparent); }
.product-category-chip__icon{ width:19px !important; height:19px !important; min-width:19px !important; min-height:19px !important; max-width:19px !important; max-height:19px !important; display:inline-flex !important; align-items:center; justify-content:center; flex:0 0 19px !important; overflow:hidden; }
.product-category-chip__icon svg{ display:block !important; width:19px !important; height:19px !important; min-width:19px !important; min-height:19px !important; max-width:19px !important; max-height:19px !important; fill:none !important; stroke:currentColor !important; }
.products-filter-status{ margin:-12px 0 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); color:var(--muted); font-size:.84rem; }
.products-filter-status strong{ color:var(--text); }
.products-filter-status a{ color:var(--coral); font-weight:700; }
.products-empty{ grid-column:1/-1; min-height:170px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; text-align:center; border:1px dashed var(--border-strong); border-radius:var(--radius-md); color:var(--muted); }
.products-empty strong{ color:var(--text); }
.products-empty a{ color:var(--coral); font-weight:700; }
@media (max-width:760px){
  .product-category-browser{ margin-bottom:26px; }
  .product-category-browser__list{ display:flex; flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
  .product-category-chip{ flex:0 0 auto; padding:8px 13px; font-size:.78rem; }
  .products-filter-status{ align-items:flex-start; flex-direction:column; }
}

/* ============================================
   Mtajre — unified theme compatibility patch
   للواجهات التي تم تطويرها لاحقًا
   ============================================ */

/* بطاقات ومساحات الواجهات الجديدة */
:root[data-theme="dark"] :is(
  .account-sidebar,
  .account-stat,
  .account-panel,
  .account-profile-card,
  .auth-shell,
  .auth-form-wrap,
  .orders-account-stat,
  .customer-order-card,
  .orders-account-empty,
  .cart-card,
  .cart-summary,
  .cart-empty,
  .checkout-panel,
  .order-summary,
  .confirmation-card
){
  background:var(--surface) !important;
  border-color:var(--border) !important;
  color:var(--text) !important;
}

/* المساحات الثانوية داخل البطاقات */
:root[data-theme="dark"] :is(
  .account-service,
  .account-info,
  .customer-order-head,
  .customer-order-item,
  .cart-card__tag,
  .payment-note,
  .summary-tag,
  .confirmation-order
){
  background:var(--surface-2) !important;
  border-color:var(--border) !important;
}

/* جزء التعريف في تسجيل الدخول والتسجيل */
:root[data-theme="dark"] .auth-intro{
  background:linear-gradient(145deg,var(--surface-2),var(--surface)) !important;
}

:root[data-theme="dark"] .auth-intro__eyebrow,
:root[data-theme="dark"] .auth-point i,
:root[data-theme="dark"] .account-service__icon,
:root[data-theme="dark"] .account-service__count{
  background:var(--surface) !important;
  border-color:var(--border) !important;
}

/* جميع حقول النماذج التي أضفناها */
:root[data-theme="dark"] :is(
  .auth-field input,
  .checkout-field input
){
  background:var(--surface-2) !important;
  color:var(--text) !important;
  border-color:var(--border) !important;
}

:root[data-theme="dark"] :is(
  .auth-field input,
  .checkout-field input
)::placeholder{
  color:var(--muted-2) !important;
}

:root[data-theme="dark"] :is(
  .auth-field input,
  .checkout-field input
):focus{
  background:var(--surface) !important;
  border-color:var(--coral) !important;
}

/* أزرار وروابط ثانوية */
:root[data-theme="dark"] :is(
  .orders-account-head a,
  .cart-continue,
  .checkout-back,
  .confirmation-secondary
){
  background:transparent !important;
  color:var(--text) !important;
  border-color:var(--border-strong) !important;
}

/* النصوص الرئيسية */
:root[data-theme="dark"] :is(
  .account-welcome h1,
  .account-profile h2,
  .account-panel__head h3,
  .account-profile-card h3,
  .account-stat strong,
  .account-order__number,
  .account-order__total,
  .account-info strong,
  .auth-intro h1,
  .auth-form-wrap h2,
  .orders-account-head h1,
  .orders-account-stat strong,
  .customer-order-head__main strong,
  .customer-order-total strong,
  .cart-heading h1,
  .cart-card__name,
  .cart-card__price,
  .cart-summary h2,
  .cart-summary__total strong,
  .checkout-heading h1,
  .checkout-panel__title,
  .order-summary h2,
  .summary-item__name,
  .summary-item__price,
  .summary-total strong,
  .confirmation-card h1,
  .confirmation-order strong
){
  color:var(--text) !important;
}

/* النصوص الثانوية */
:root[data-theme="dark"] :is(
  .account-welcome p,
  .account-profile p,
  .account-stat span,
  .account-order__date,
  .account-service small,
  .account-info span,
  .auth-intro p,
  .auth-form-wrap > p,
  .auth-switch,
  .orders-account-head p,
  .orders-account-stat span,
  .customer-order-head__main span,
  .customer-order-item__qty,
  .cart-heading p,
  .cart-summary__row,
  .cart-future,
  .checkout-heading p,
  .checkout-panel__desc,
  .payment-note p,
  .summary-secure,
  .confirmation-card__lead,
  .confirmation-note,
  .confirmation-help,
  .confirmation-order span
){
  color:var(--muted) !important;
}

/* الحدود والفواصل */
:root[data-theme="dark"] :is(
  .account-profile,
  .account-order,
  .account-nav .logout,
  .customer-order-head,
  .customer-order-total,
  .cart-summary__row,
  .cart-summary__total,
  .cart-future,
  .summary-item,
  .summary-secure,
  .confirmation-help
){
  border-color:var(--border) !important;
}

/* القائمة الجانبية بحساب العميل */
:root[data-theme="dark"] .account-nav a{
  color:var(--muted) !important;
}
:root[data-theme="dark"] .account-nav a:hover{
  background:var(--surface-2) !important;
  color:var(--text) !important;
}
:root[data-theme="dark"] .account-nav a.active{
  background:var(--theme-primary) !important;
  color:var(--coral) !important;
}

/* الشارات والحالات تبقى مقروءة بالداكن */
:root[data-theme="dark"] :is(.account-status,.customer-order-status){
  border:1px solid var(--border) !important;
}

/* زر حذف عنصر السلة */
:root[data-theme="dark"] .cart-card__remove{
  background:var(--surface-2) !important;
  border-color:var(--border) !important;
  color:var(--muted) !important;
}
:root[data-theme="dark"] .cart-card__remove:hover{
  color:var(--coral) !important;
  border-color:var(--coral) !important;
}

/* المسارات */
:root[data-theme="dark"] :is(
  .account-breadcrumbs,
  .auth-breadcrumbs,
  .orders-account-page .account-breadcrumbs,
  .cart-breadcrumbs,
  .checkout-breadcrumbs,
  .confirmation-breadcrumbs
){
  color:var(--muted) !important;
}
:root[data-theme="dark"] :is(
  .account-breadcrumbs [aria-current="page"],
  .auth-breadcrumbs span:last-child,
  .cart-breadcrumbs span:last-child,
  .checkout-breadcrumbs span:last-child,
  .confirmation-breadcrumbs span:last-child
){
  color:var(--text) !important;
}

/* انتقال ناعم عند تبديل الثيم */
:is(
  .account-sidebar,.account-stat,.account-panel,.account-profile-card,
  .auth-shell,.auth-intro,.auth-form-wrap,
  .orders-account-stat,.customer-order-card,.orders-account-empty,
  .cart-card,.cart-summary,.cart-empty,
  .checkout-panel,.order-summary,.confirmation-card,
  .auth-field input,.checkout-field input
){
  transition:background-color .35s ease,color .35s ease,border-color .35s ease !important;
}
