/* =========================================================
   Zetaxel — Digital Products Store
   Design system: tokens + base + components
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=Tajawal:wght@400;500;700&display=swap');

:root{
  /* ---- accents (shared across themes) ---- */
  --gold: #E8AC3D;
  --gold-strong: #C98F22;
  --gold-soft: #F6DFA8;
  --teal: #2FAE9D;
  --teal-strong: #22897B;
  --coral: #E2604F;

  /* ---- dark theme (default) ---- */
  --bg: #0C0F18;
  --bg-alt: #10141F;
  --surface: #161B29;
  --surface-2: #1E2537;
  --border: #2A3245;
  --text: #EAEDF3;
  --text-dim: #B6BDCE;
  --muted: #8791A8;
  --shadow: 0 12px 32px rgba(4,6,12,.45);
  --whatsapp: #2FAE84;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font-display: 'Cairo', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'Cairo', sans-serif;
}

html[data-theme="light"]{
  --bg: #F1F3F7;
  --bg-alt: #E9ECF2;
  --surface: #FFFFFF;
  --surface-2: #F3F5F9;
  --border: #DFE3EC;
  --text: #12151F;
  --text-dim: #3E4657;
  --muted: #667085;
  --shadow: 0 12px 28px rgba(20,26,44,.10);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

/* ---- logical direction handling ---- */
html[dir="rtl"] body{ text-align: right; }
html[dir="ltr"] body{ text-align: left; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: 0;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 900; }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; color: var(--text-dim); }
a{ color: inherit; text-decoration: none; }
ul{ padding-inline-start: 1.2em; }
img,svg{ max-width: 100%; display:block; }

.container{ max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section{ padding-block: 76px; }
.section-tight{ padding-block: 44px; }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head p{ font-size: 1.05rem; }

.muted{ color: var(--muted); }
.text-center{ text-align: center; margin-inline: auto; }

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-gold{ background: var(--gold); color:#1A1204; }
.btn-gold:hover{ background: var(--gold-strong); }
.btn-outline{ background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover{ border-color: var(--gold); color: var(--gold); }
.btn-whatsapp{ background: var(--whatsapp); color:#04150E; }
.btn-whatsapp:hover{ filter: brightness(1.08); }
.btn-block{ width:100%; }
.btn-sm{ padding: 9px 16px; font-size:.86rem; }
.btn-teal{ background: var(--teal); color:#03211C; }
.btn-teal:hover{ background: var(--teal-strong); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: 14px;
  gap: 20px;
}
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:900; font-size:1.3rem; }
.brand-mark{
  width:38px; height:38px; border-radius: 11px;
  background: linear-gradient(155deg, var(--gold), var(--teal));
  display:flex; align-items:center; justify-content:center;
  color:#0C0F18; font-weight:900; font-size:1.05rem;
  flex-shrink:0;
}
.brand small{ display:block; font-family: var(--font-body); font-weight:500; font-size:.66rem; color: var(--muted); }
.brand .logo-img{ height:34px; width:auto; display:block; }
.footer-about .logo-img{ height:30px; width:auto; display:block; }

.nav-links{ display:flex; align-items:center; gap: 28px; list-style:none; margin:0; padding:0; }
.nav-links a{ font-weight:600; font-size:.94rem; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover, .nav-links a.active{ color: var(--gold); }

.nav-tools{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:40px; height:40px; border-radius: 12px;
  border:1px solid var(--border); background: var(--surface);
  color: var(--text); display:flex; align-items:center; justify-content:center;
  cursor:pointer; position:relative; transition: border-color .15s, color .15s;
}
.icon-btn:hover{ border-color: var(--gold); color: var(--gold); }
.cart-badge{
  position:absolute; inset-block-start:-6px; inset-inline-end:-6px;
  background: var(--coral); color:#fff; font-size:.66rem; font-weight:800;
  min-width:18px; height:18px; border-radius:999px; display:flex; align-items:center; justify-content:center;
  padding-inline: 3px;
}
.lang-toggle{ font-family: var(--font-display); font-weight:800; font-size:.82rem; width:auto; padding-inline:12px; }
.menu-btn{ display:none; }

@media (max-width: 900px){
  .nav-links{ display:none; }
  .menu-btn{ display:flex; }
}

/* mobile drawer */
.mobile-drawer{
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(300px, 82vw);
  background: var(--surface); border-inline-start: 1px solid var(--border);
  z-index: 90; padding: 24px; transform: translateX(110%);
  transition: transform .28s ease; display:flex; flex-direction:column; gap:18px;
}
html[dir="rtl"] .mobile-drawer{ inset-inline-end: 0; transform: translateX(-110%); }
html[dir="ltr"] .mobile-drawer{ transform: translateX(110%); }
html[dir="rtl"] .mobile-drawer.open,
html[dir="ltr"] .mobile-drawer.open{ transform: translateX(0); }
.drawer-overlay{ position:fixed; inset:0; background: rgba(4,6,10,.5); z-index:85; opacity:0; pointer-events:none; transition: opacity .25s; }
.drawer-overlay.open{ opacity:1; pointer-events:auto; }
.mobile-drawer a{ font-weight:700; font-size:1.05rem; padding-block:8px; border-block-end:1px solid var(--border); }

/* =========================================================
   Hero
   ========================================================= */
.hero{ position:relative; overflow:hidden; padding-block: 60px 40px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items:center; }
@media (max-width: 940px){ .hero-grid{ grid-template-columns: 1fr; } }

.eyebrow-badge{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--surface); border:1px solid var(--border);
  padding: 7px 16px; border-radius: 999px; font-size:.86rem; font-weight:700;
  color: var(--teal); margin-bottom: 22px;
}
.eyebrow-badge .dot{ width:7px; height:7px; border-radius:50%; background: var(--teal); }

.hero h1{ margin-bottom: .4em; }
.hero h1 .accent{ color: var(--gold); }
.hero-lead{ font-size: 1.12rem; max-width: 46ch; }
.hero-actions{ display:flex; gap:14px; margin-block: 28px; flex-wrap:wrap; }

.hero-stats{ display:flex; gap: 30px; margin-top: 34px; flex-wrap:wrap; }
.hero-stats .stat b{ display:block; font-family: var(--font-display); font-size:1.5rem; color: var(--text); }
.hero-stats .stat span{ font-size:.82rem; color: var(--muted); }

/* mosaic visual */
.mosaic{
  position:relative; display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;
  transform: rotate(-2deg);
}
.mosaic-chip{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; display:flex; flex-direction:column; gap:10px; box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.mosaic-chip:hover{ transform: translateY(-6px) rotate(1deg); }
.mosaic-chip:nth-child(2){ transform: translateY(22px); }
.mosaic-chip:nth-child(5){ transform: translateY(-16px); }
.mosaic-chip .chip-icon{
  width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:1.15rem;
}
.mosaic-chip span{ font-size:.78rem; font-weight:700; color: var(--text-dim); }
.mosaic-chip:nth-child(1) .chip-icon{ background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-strong); }
.mosaic-chip:nth-child(2) .chip-icon{ background: color-mix(in srgb, var(--teal) 22%, transparent); color: var(--teal); }
.mosaic-chip:nth-child(3) .chip-icon{ background: color-mix(in srgb, var(--coral) 20%, transparent); color: var(--coral); }
.mosaic-chip:nth-child(4) .chip-icon{ background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal); }
.mosaic-chip:nth-child(5) .chip-icon{ background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-strong); }
.mosaic-chip:nth-child(6) .chip-icon{ background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral); }

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 18px;
  border-block: 1px solid var(--border); padding-block: 26px;
}
@media (max-width: 820px){ .trust-strip{ grid-template-columns: repeat(2,1fr); } }
.trust-item{ display:flex; align-items:center; gap:12px; }
.trust-item .ico{ width:42px; height:42px; border-radius:12px; background: var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color: var(--gold); flex-shrink:0; }
.trust-item b{ display:block; font-size:.92rem; }
.trust-item span{ font-size:.78rem; color: var(--muted); }

/* =========================================================
   Categories
   ========================================================= */
.cat-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
@media (max-width: 940px){ .cat-grid{ grid-template-columns: repeat(2,1fr); } }
.cat-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; transition: border-color .2s, transform .2s;
}
.cat-card:hover{ border-color: var(--gold); transform: translateY(-4px); }
.cat-card .ico{ width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom: 16px; background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }
.cat-card h3{ margin-bottom:.25em; }
.cat-card span{ font-size:.82rem; color: var(--muted); }

/* =========================================================
   Product cards / grid
   ========================================================= */
.toolbar{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom: 28px; }
.filter-row{ display:flex; flex-wrap:wrap; gap:10px; }
.chip-btn{
  border:1px solid var(--border); background: var(--surface); color: var(--text-dim);
  padding: 9px 18px; border-radius: 999px; font-weight:700; font-size:.86rem; cursor:pointer;
  transition: all .15s;
}
.chip-btn:hover{ border-color: var(--gold); }
.chip-btn.active{ background: var(--gold); border-color: var(--gold); color:#1a1204; }
.search-box{
  display:flex; align-items:center; gap:8px; background: var(--surface); border:1px solid var(--border);
  border-radius: 999px; padding: 10px 16px; min-width: 240px;
}
.search-box input{ border:none; background:transparent; outline:none; color:var(--text); font-family:var(--font-body); width:100%; font-size:.9rem; }

.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px){ .product-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .product-grid{ grid-template-columns: 1fr; } }

.product-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  display:flex; flex-direction:column; overflow:hidden; transition: border-color .2s, transform .2s;
}
.product-card:hover{ border-color: var(--gold); transform: translateY(-4px); }
.product-media{
  aspect-ratio: 3/2; display:flex; align-items:center; justify-content:center; position:relative;
  border-block-end: 1px solid var(--border); overflow:hidden; background: var(--surface-2);
}
.product-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-media .glyph{ font-size:2.6rem; }
.product-badge{
  position:absolute; inset-block-start:12px; inset-inline-start:12px;
  background: var(--teal); color:#03211C; font-size:.7rem; font-weight:800;
  padding: 5px 11px; border-radius:999px;
}
.product-badge.hot{ background: var(--coral); color:#fff; }
.product-body{ padding: 18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-cat{ font-size:.74rem; color: var(--muted); font-weight:700; }
.product-body h3{ font-size:1.02rem; margin-bottom:0; }
.product-desc{ font-size:.84rem; margin-bottom:0; flex:1; }
.price-row{ display:flex; align-items:baseline; gap:8px; }
.price-now{ font-family: var(--font-display); font-weight:900; font-size:1.28rem; color: var(--gold); }
.price-old{ font-size:.86rem; color: var(--muted); text-decoration: line-through; }
.product-actions{ display:flex; gap:8px; margin-top:6px; }
.product-actions .btn{ flex:1; padding:11px 10px; font-size:.82rem; }

/* =========================================================
   Product detail
   ========================================================= */
.pd-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items:start; }
@media (max-width: 900px){ .pd-grid{ grid-template-columns: 1fr; } }
.pd-media{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  aspect-ratio: 3/2; display:flex; align-items:center; justify-content:center; position:sticky; top:100px;
  overflow:hidden;
}
.pd-media img{ width:100%; height:100%; object-fit:cover; display:block; border-radius: var(--radius-lg); }
.pd-media .glyph{ font-size: 6rem; }
.crumbs{ font-size:.84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover{ color: var(--gold); }
.pd-badges{ display:flex; gap:8px; margin-bottom:14px; }
.pd-price{ display:flex; align-items:baseline; gap:12px; margin-block:18px; }
.pd-price .price-now{ font-size:2rem; }
.pd-meta-list{ list-style:none; padding:0; margin: 20px 0; display:flex; flex-direction:column; gap:10px; }
.pd-meta-list li{ display:flex; gap:10px; align-items:flex-start; font-size:.92rem; color: var(--text-dim); }
.pd-meta-list li b{ color: var(--gold); }
.pd-actions{ display:flex; gap:12px; margin-block: 22px; flex-wrap: wrap; }
.pd-actions .btn{ flex:1; min-width:160px; }
.pd-tabs{ display:flex; gap:26px; border-block-end:1px solid var(--border); margin-top:36px; }
.pd-tab{ padding-block:12px; font-weight:700; color:var(--muted); cursor:pointer; border-block-end:2px solid transparent; }
.pd-tab.active{ color: var(--text); border-color: var(--gold); }
.pd-tab-panel{ display:none; padding-block:22px; }
.pd-tab-panel.active{ display:block; }

/* =========================================================
   Why-us / features
   ========================================================= */
.feature-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 860px){ .feature-grid{ grid-template-columns: 1fr; } }
.feature-item{ display:flex; gap:16px; }
.feature-item .ico{ width:46px; height:46px; border-radius:13px; background: var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color: var(--gold); flex-shrink:0; font-size:1.2rem; }
.feature-item h3{ margin-bottom:.3em; }
.feature-item p{ font-size:.92rem; margin:0; }

/* =========================================================
   Steps (real sequence — numbered)
   ========================================================= */
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; counter-reset: step; }
@media (max-width: 860px){ .steps{ grid-template-columns:1fr; } }
.step{ position:relative; padding-inline-start: 0; }
.step .num{
  width:44px; height:44px; border-radius:50%; background: linear-gradient(155deg, var(--gold), var(--teal));
  color:#0c0f18; font-family:var(--font-display); font-weight:900; display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; font-size:1.1rem;
}
.step h3{ margin-bottom:.35em; }
.step p{ font-size:.92rem; }

/* =========================================================
   Testimonials
   ========================================================= */
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
@media (max-width: 860px){ .testi-grid{ grid-template-columns:1fr; } }
.testi-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:24px; }
.testi-stars{ color: var(--gold); font-size:.92rem; margin-bottom:12px; letter-spacing:2px; }
.testi-name{ display:flex; align-items:center; gap:10px; margin-top:16px; font-weight:700; font-size:.9rem; }
.testi-avatar{ width:36px; height:36px; border-radius:50%; background: linear-gradient(155deg,var(--gold),var(--teal)); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:900; color:#0c0f18; font-size:.85rem; }

/* =========================================================
   Newsletter / CTA band
   ========================================================= */
.cta-band{
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  border-radius: var(--radius-lg); padding: 46px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  color:#1A1204;
}
.cta-band h2{ color:#1A1204; margin-bottom:.25em; }
.cta-band p{ color:#3a2c08; margin:0; }
.cta-form{ display:flex; gap:10px; flex-wrap:wrap; }
.cta-form input{ padding:13px 18px; border-radius:999px; border:1px solid rgba(0,0,0,.15); min-width:220px; font-family:var(--font-body); }
html[data-theme="light"] .cta-band{ background: linear-gradient(120deg, #fff2d1, var(--gold)); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ border-block-start: 1px solid var(--border); padding-block: 56px 26px; margin-top: 40px; background: var(--bg-alt); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: repeat(2,1fr); } }
.footer-grid h4{ font-family:var(--font-display); font-size:.95rem; margin-bottom:16px; }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer-grid a{ font-size:.88rem; color: var(--text-dim); }
.footer-grid a:hover{ color: var(--gold); }
.footer-about p{ font-size:.88rem; max-width:32ch; }
.footer-address{ font-size:.82rem; color: var(--muted); margin-top:-4px; }
.footer-social{ display:flex; gap:10px; margin-top:14px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; border-block-start:1px solid var(--border); margin-top:40px; padding-top:22px; font-size:.82rem; color: var(--muted); flex-wrap:wrap; gap:10px; }

/* =========================================================
   Generic page (policies / about / contact / faq)
   ========================================================= */
.page-hero{ padding-block: 54px 20px; border-block-end:1px solid var(--border); }
.page-hero h1{ margin-bottom:.2em; }
.prose{ max-width: 74ch; }
.prose h2{ margin-top: 1.6em; font-size:1.3rem; }
.prose ul{ color: var(--text-dim); font-size:.96rem; display:flex; flex-direction:column; gap:8px; }
.prose p{ font-size:.98rem; }
.updated-badge{ display:inline-block; background: var(--surface); border:1px solid var(--border); padding:6px 14px; border-radius:999px; font-size:.8rem; color: var(--muted); margin-bottom: 20px; }

.faq-item{ border-block-end: 1px solid var(--border); padding-block: 18px; }
.faq-q{ display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:700; gap:16px; }
.faq-q .plus{ transition: transform .2s; color: var(--gold); font-size:1.3rem; flex-shrink:0; }
.faq-item.open .plus{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .25s ease; font-size:.92rem; }
.faq-item.open .faq-a{ max-height: 300px; margin-top: 10px; }

.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:40px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:26px; display:flex; gap:16px; align-items:flex-start; margin-bottom:16px; }
.contact-card .ico{ width:44px; height:44px; border-radius:12px; background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.form-field{ margin-bottom:16px; display:flex; flex-direction:column; gap:8px; }
.form-field label{ font-size:.88rem; font-weight:700; }
.form-field input, .form-field textarea, .form-field select{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size:.94rem; outline:none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ border-color: var(--gold); }

/* ---- cart page ---- */
.cart-line{ display:flex; align-items:center; gap:16px; border-block-end:1px solid var(--border); padding-block:18px; }
.cart-line .glyph-box{ width:56px; height:56px; border-radius:12px; background: var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:1.5rem; flex-shrink:0; }
.cart-line .grow{ flex:1; }
.cart-line .price{ font-family:var(--font-display); font-weight:800; color: var(--gold); }
.qty-box{ display:flex; align-items:center; gap:10px; }
.qty-box button{ width:28px; height:28px; border-radius:8px; border:1px solid var(--border); background: var(--surface); color:var(--text); cursor:pointer; }
.remove-line{ color: var(--coral); font-size:.82rem; font-weight:700; cursor:pointer; background:none; border:none; }
.summary-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position:sticky; top:100px; }
.summary-row{ display:flex; justify-content:space-between; font-size:.92rem; margin-block:10px; }
.summary-total{ font-family:var(--font-display); font-weight:900; font-size:1.2rem; border-block-start:1px solid var(--border); padding-top:14px; margin-top:6px; }
.empty-state{ text-align:center; padding-block:60px; }
.empty-state .glyph{ font-size:3rem; margin-bottom:16px; }

/* toast */
.toast{
  position: fixed; inset-block-end: 26px; inset-inline-start:50%; transform: translateX(-50%);
  background: var(--surface); border:1px solid var(--gold); color: var(--text);
  padding: 13px 24px; border-radius: 999px; font-size:.9rem; font-weight:700; z-index:200;
  box-shadow: var(--shadow); opacity:0; pointer-events:none; transition: opacity .25s, transform .25s;
}
html[dir="rtl"] .toast{ transform: translateX(50%); }
.toast.show{ opacity:1; }

/* misc utilities */
.badge{ display:inline-block; padding:4px 12px; border-radius:999px; font-size:.72rem; font-weight:800; }
.badge-teal{ background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal); }
.badge-gold{ background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-strong); }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
@media (max-width: 860px){ .two-col{ grid-template-columns:1fr; } }

/* ---- blog ---- */
.blog-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 760px){ .blog-grid{ grid-template-columns: 1fr; } }
.blog-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition: border-color .2s, transform .2s; }
.blog-card:hover{ border-color: var(--gold); transform: translateY(-4px); }
.blog-card .blog-media{ aspect-ratio: 16/9; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, var(--surface-2)), color-mix(in srgb, var(--teal) 18%, var(--surface-2))); display:flex; align-items:center; justify-content:center; font-size:2.4rem; }
.blog-card .blog-body{ padding: 20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.blog-meta{ font-size:.78rem; color: var(--muted); font-weight:700; }
.blog-card h3{ margin-bottom:0; font-size:1.1rem; }
.blog-card p{ font-size:.9rem; margin:0; }
.blog-read{ font-size:.85rem; font-weight:700; color: var(--gold); margin-top:auto; }
.article-meta{ font-size:.85rem; color: var(--muted); margin-bottom: 6px; }
.article-body{ max-width: 72ch; }
.article-body h2{ margin-top: 1.7em; font-size:1.35rem; }
.article-body h3{ margin-top: 1.3em; font-size:1.1rem; }
.article-body p{ font-size:1rem; }
.article-body ul{ font-size:.98rem; color: var(--text-dim); display:flex; flex-direction:column; gap:8px; }
.article-body img{ max-width:100%; height:auto; border-radius: var(--radius-lg); margin: 22px 0; display:block; }
.article-cover{ width:100%; max-height:420px; object-fit:cover; border-radius: var(--radius-lg); margin-top:20px; }
.blog-card .blog-media img{ width:100%; height:100%; object-fit:cover; }
.article-cta{ margin-top: 40px; }

@media (prefers-reduced-motion: reduce){
  *{ transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

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

/* =========================================================
   Bilingual content blocks — pure CSS driven by html[lang]
   Wrap Arabic text in [data-lang="ar"], English in [data-lang="en"]
   ========================================================= */
html[lang="ar"] [data-lang="en"]{ display:none !important; }
html[lang="en"] [data-lang="ar"]{ display:none !important; }
