/* =========================================================================
   Noor Tech Academy — design system
   Emerald · antique gold · warm ivory. Mobile-first.
   ========================================================================= */

:root {
  --emerald-900: #082C22;
  --emerald-800: #0B3B2D;
  --emerald-700: #0F4D3A;
  --emerald-600: #17614A;
  --emerald-100: #E3EDE7;
  --gold-600: #A9822F;
  --gold-500: #B8913A;
  --gold-400: #C9A44C;
  --gold-200: #E8D7A8;
  --ivory: #FBF7EE;
  --cream: #F3ECDD;
  --sand: #E9DFCB;
  --ink: #1E2A25;
  --ink-soft: #4A5852;
  --line: #DED3BC;
  --white: #FFFDF8;
  --danger: #9B2C2C;
  --success: #1F6B4A;
  --warn: #8A5A12;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", serif;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(11, 59, 45, .06), 0 8px 24px rgba(11, 59, 45, .07);
  --shadow-lg: 0 18px 48px rgba(8, 44, 34, .16);
  --container: 1180px;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9A44C' stroke-width='1'%3E%3Cpath d='M36 8l7.8 17.2L61 33l-17.2 7.8L36 58l-7.8-17.2L11 33l17.2-7.8z' opacity='.55'/%3E%3Cpath d='M36 18l5 11 11 5-11 5-5 11-5-11-11-5 11-5z' opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--emerald-800);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.arabic { font-family: var(--font-arabic); direction: rtl; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--emerald-800); color: var(--ivory); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center-text { text-align: center; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-cream { background: var(--cream); }
.section-emerald { background: var(--emerald-800); color: var(--ivory); position: relative; overflow: hidden; }
.section-emerald::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .35; pointer-events: none; }
.section-emerald > * { position: relative; }
.section-emerald h2, .section-emerald h3 { color: var(--ivory); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 600; margin-bottom: .9rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.section-emerald .eyebrow { color: var(--gold-400); }
.section-head { max-width: 680px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--ink-soft); }
.section-emerald .section-head p { color: rgba(251, 247, 238, .8); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---- Ornament divider ---------------------------------------------------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold-500); margin: 0 auto 1.2rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament span { width: 9px; height: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald-700); color: var(--ivory); border-color: var(--emerald-700); }
.btn-primary:hover { background: var(--emerald-800); color: var(--ivory); }
.btn-gold { background: var(--gold-400); color: var(--emerald-900); border-color: var(--gold-400); }
.btn-gold:hover { background: var(--gold-200); color: var(--emerald-900); }
.btn-ghost { background: transparent; color: var(--emerald-700); border-color: var(--emerald-700); }
.btn-ghost:hover { background: var(--emerald-700); color: var(--ivory); }
.btn-light { background: transparent; color: var(--ivory); border-color: rgba(251, 247, 238, .55); }
.btn-light:hover { background: var(--ivory); color: var(--emerald-800); }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .9rem; min-height: 36px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* ---- Announcement + header --------------------------------------------- */
.announcement {
  background: var(--emerald-900); color: var(--gold-200);
  font-size: .86rem; text-align: center; padding: .5rem 1rem; letter-spacing: .02em;
}
.site-header {
  background: rgba(251, 247, 238, .96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--emerald-800); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; letter-spacing: .01em; }
.brand-sub { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600); margin-top: .2rem; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; padding: 0 11px;
}
.nav-toggle span { height: 2px; background: var(--emerald-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: .5rem 1.25rem 1.25rem;
}
.nav-open .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .8rem .2rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--emerald-700); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius); color: var(--emerald-800); text-decoration: none;
}
.icon-link:hover { background: var(--cream); color: var(--emerald-800); }
.icon-link svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--gold-400); color: var(--emerald-900);
  font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .main-nav ul { display: flex; gap: 1.6rem; }
  .main-nav a { border: 0; padding: .4rem 0; font-size: .98rem; position: relative; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--gold-400); transform: scaleX(0); transition: transform .2s; }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---- Flash messages ----------------------------------------------------- */
.flashes { margin-top: 1rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: .6rem; border-left: 4px solid; background: var(--white); box-shadow: var(--shadow); }
.flash-error { border-color: var(--danger); color: var(--danger); }
.flash-success { border-color: var(--success); color: var(--success); }
.flash-info { border-color: var(--gold-500); color: var(--ink); }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--emerald-800); color: var(--ivory); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 40%, rgba(201, 164, 76, .14), transparent 60%); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding: clamp(3.5rem, 9vw, 6.5rem) 0; align-items: center; }
.hero h1 { color: var(--ivory); margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--gold-400); font-weight: 500; }
.hero .lead { color: rgba(251, 247, 238, .84); max-width: 560px; }
.hero-bismillah { font-family: var(--font-arabic); font-size: 1.6rem; color: var(--gold-400); margin-bottom: 1rem; direction: rtl; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; padding: 0; list-style: none; font-size: .92rem; color: rgba(251, 247, 238, .78); }
.hero-points li::before { content: "◆"; color: var(--gold-400); font-size: .6rem; margin-right: .5rem; vertical-align: middle; }
.hero-visual { display: none; position: relative; }
.hero-arch {
  position: relative; aspect-ratio: 4/5; max-width: 420px; margin-left: auto;
  border: 1.5px solid var(--gold-400); border-radius: 210px 210px 8px 8px; padding: 18px;
}
.hero-arch-inner {
  height: 100%; border-radius: 195px 195px 4px 4px; border: 1px solid rgba(201, 164, 76, .45);
  background: linear-gradient(180deg, rgba(8, 44, 34, .3), rgba(8, 44, 34, .85)); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: 1.2rem;
}
.hero-arch-inner img { width: 150px; height: 150px; }
.hero-arch-inner .arabic { font-size: 2.6rem; color: var(--gold-400); line-height: 1; }
.hero-arch-inner p { color: rgba(251, 247, 238, .8); font-family: var(--font-display); font-size: 1.35rem; font-style: italic; margin: 0; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.25fr 1fr; }
  .hero-visual { display: block; }
}

/* ---- Page hero (inner pages) ------------------------------------------- */
.page-hero { background: var(--emerald-800); color: var(--ivory); position: relative; overflow: hidden; padding: clamp(2.6rem, 6vw, 4rem) 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .3; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--ivory); margin-bottom: .4rem; }
.page-hero p { color: rgba(251, 247, 238, .82); max-width: 640px; margin: 0; }
.breadcrumb { font-size: .86rem; margin-bottom: .8rem; color: rgba(251, 247, 238, .7); }
.breadcrumb a { color: var(--gold-200); text-decoration: none; }
.breadcrumb span { margin: 0 .4rem; }
.page-title { margin-bottom: .6rem; }

/* ---- Grids & cards ------------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }

.category-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem;
  position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; background: var(--pattern); opacity: .5; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-400); color: var(--ink); }
.category-card h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.category-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: .9rem; }
.category-card .count { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.track-tag { display: inline-block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 20px; margin-bottom: .8rem; font-weight: 600; }
.track-deen { background: var(--emerald-100); color: var(--emerald-700); }
.track-tech { background: #E2E9EE; color: #1D3340; }
.track-both { background: #F1E8D2; color: var(--gold-600); }

.product-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s, box-shadow .25s; height: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .cover { display: block; background: var(--cream); aspect-ratio: 3/4; overflow: hidden; }
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .cover img { transform: scale(1.03); }
.product-card .body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-bottom: .35rem; }
.product-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.product-card h3 a { color: var(--emerald-800); text-decoration: none; }
.product-card p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 1rem; }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--emerald-800); line-height: 1; }
.price-note { font-size: .78rem; color: var(--ink-soft); }
.mrp-strike { text-decoration: line-through; color: var(--ink-soft); font-size: .95rem; margin-left: .4rem; }

/* ---- Feature split (Deeni / Tech) -------------------------------------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split.reverse > :first-child { order: 2; } }
.split-panel { background: var(--emerald-800); border-radius: var(--radius-lg); padding: 2.2rem; color: var(--ivory); position: relative; overflow: hidden; min-height: 300px; }
.split-panel::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .4; }
.split-panel > * { position: relative; }
.split-panel.tech { background: #1D3340; }
.split-panel h3 { color: var(--gold-200); }
.split-panel ul { list-style: none; padding: 0; margin: 0; }
.split-panel li { padding: .7rem 0; border-bottom: 1px solid rgba(201, 164, 76, .25); display: flex; justify-content: space-between; gap: 1rem; }
.split-panel li a { color: var(--ivory); text-decoration: none; }
.split-panel li a:hover { color: var(--gold-400); }
.split-panel li span { color: var(--gold-400); font-weight: 600; white-space: nowrap; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .65rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border: 1.5px solid var(--gold-500); transform: rotate(45deg); }

/* ---- Why us / values ---------------------------------------------------- */
.value { text-align: center; padding: 1.6rem 1.2rem; }
.value-icon { width: 58px; height: 58px; margin: 0 auto 1rem; display: grid; place-items: center; border: 1.5px solid var(--gold-400); transform: rotate(45deg); border-radius: 6px; }
.value-icon svg { transform: rotate(-45deg); width: 24px; height: 24px; color: var(--gold-400); }
.section-cream .value-icon svg, .value-icon.dark svg { color: var(--emerald-700); }
.value h3 { font-size: 1.3rem; }
.value p { font-size: .96rem; color: var(--ink-soft); }
.section-emerald .value p { color: rgba(251, 247, 238, .78); }

/* ---- Testimonials ------------------------------------------------------- */
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; position: relative; }
.testimonial::before { content: "“"; position: absolute; top: -.2rem; left: 1.2rem; font-family: var(--font-display); font-size: 4.5rem; color: var(--gold-400); line-height: 1; }
.testimonial blockquote { margin: 1.2rem 0 1rem; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--emerald-700); font-size: .95rem; }
.testimonial small { display: block; color: var(--ink-soft); }

/* ---- FAQ accordion ------------------------------------------------------ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--emerald-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; color: var(--gold-500); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .answer { padding: 0 0 1.2rem; color: var(--ink-soft); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

/* ---- Product page ------------------------------------------------------- */
.product-layout { display: grid; gap: 2.5rem; padding: clamp(2rem, 5vw, 3.5rem) 0; }
@media (min-width: 960px) { .product-layout { grid-template-columns: 420px 1fr; gap: 4rem; align-items: start; } .product-media { position: sticky; top: 100px; } }
.product-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.product-info .cat-link { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; text-decoration: none; }
.product-info h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .4rem 0 .8rem; }
.price-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; margin: 1.5rem 0; }
.price-box .price { font-size: 2.3rem; }
.price-meta { font-size: .88rem; color: var(--ink-soft); margin: .5rem 0 1.1rem; }
.buy-row { display: grid; gap: .7rem; }
@media (min-width: 520px) { .buy-row { grid-template-columns: 1fr 1fr; } }
.meta-list { display: grid; gap: .6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: .94rem; }
.meta-list li { display: flex; gap: .7rem; align-items: flex-start; }
.meta-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-500); margin-top: .15rem; }
.detail-block { padding: 2rem 0; border-top: 1px solid var(--line); }
.detail-block h2 { font-size: 1.9rem; }
.prose p { color: var(--ink); }
.bundle-list { columns: 1; padding: 0; list-style: none; }
@media (min-width: 640px) { .bundle-list { columns: 2; } }
.bundle-list li { break-inside: avoid; padding: .45rem 0 .45rem 1.6rem; position: relative; }
.bundle-list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 8px; background: var(--gold-400); transform: rotate(45deg); }
.mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: .7rem 1rem; display: flex; gap: .8rem; align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.mobile-buy-bar .price { font-size: 1.4rem; }
@media (min-width: 960px) { .mobile-buy-bar { display: none; } }
.has-buy-bar { padding-bottom: 76px; }
@media (min-width: 960px) { .has-buy-bar { padding-bottom: 0; } }

/* ---- Filters / toolbar -------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45rem 1rem; border-radius: 30px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip:hover { border-color: var(--gold-400); color: var(--ink); }
.chip.active { background: var(--emerald-700); border-color: var(--emerald-700); color: var(--ivory); }

/* ---- Forms -------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: .35rem; color: var(--emerald-800); }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .84rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .78rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(15, 77, 58, .12); }
textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--ink); }
.checkbox input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--emerald-700); flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; }
.search-form { display: flex; gap: .5rem; max-width: 620px; }
.search-form input { flex: 1; }

/* ---- Cart / checkout ---------------------------------------------------- */
.cart-layout, .checkout-layout { display: grid; gap: 2rem; padding: 2.5rem 0 4rem; }
@media (min-width: 960px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; } .summary-card { position: sticky; top: 100px; } }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 76px; border-radius: 4px; }
.cart-item h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.cart-item h3 a { text-decoration: none; color: var(--emerald-800); }
.cart-item .small { font-size: .85rem; color: var(--ink-soft); }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.summary-card h2 { font-size: 1.6rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .96rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-weight: 700; font-size: 1.1rem; }
.summary-row.total span:last-child { font-family: var(--font-display); font-size: 1.6rem; color: var(--emerald-800); }
.trust-note { font-size: .84rem; color: var(--ink-soft); margin-top: 1rem; display: flex; gap: .5rem; }
.trust-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-500); }
.gateway-options { display: grid; gap: .7rem; }
.gateway-option { position: relative; }
.gateway-option input { position: absolute; opacity: 0; }
.gateway-option label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; background: var(--white); margin: 0; font-weight: 500; color: var(--ink);
}
.gateway-option label strong { display: block; color: var(--emerald-800); font-size: 1.05rem; }
.gateway-option label small { color: var(--ink-soft); font-weight: 400; }
.gateway-option input:checked + label { border-color: var(--emerald-700); box-shadow: 0 0 0 3px rgba(15, 77, 58, .12); }
.gateway-option input:focus-visible + label { outline: 2px solid var(--gold-500); }
.gateway-option .radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.gateway-option input:checked + label .radio-dot { border-color: var(--emerald-700); }
.gateway-option input:checked + label .radio-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--emerald-700); }
.gateway-option.disabled label { opacity: .55; cursor: not-allowed; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); background: #FFF6E3; border: 1px solid #EBD39A; color: var(--warn); font-size: .95rem; }
.notice-success { background: #E7F3EC; border-color: #B9D9C6; color: var(--success); }
.notice-error { background: #FBEAEA; border-color: #E8BDBD; color: var(--danger); }

/* ---- Order pages -------------------------------------------------------- */
.status-card { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.status-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; }
.status-icon svg { width: 38px; height: 38px; }
.status-icon.ok { background: #E7F3EC; color: var(--success); }
.status-icon.wait { background: #FFF6E3; color: var(--warn); }
.status-icon.fail { background: #FBEAEA; color: var(--danger); }
.order-meta { display: grid; gap: .3rem; background: var(--cream); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .95rem; }
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.download-list .small { font-size: .82rem; color: var(--ink-soft); }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.badge-paid, .badge-success { background: #E7F3EC; color: var(--success); }
.badge-pending_payment, .badge-pending, .badge-created, .badge-review, .badge-mismatch { background: #FFF6E3; color: var(--warn); }
.badge-failed, .badge-cancelled, .badge-duplicate { background: #FBEAEA; color: var(--danger); }
.badge-refunded, .badge-superseded { background: #ECECEC; color: #555; }

/* ---- Legal / prose pages ------------------------------------------------ */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.7rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.25rem; margin-top: 1.4rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { font-size: .9rem; color: var(--ink-soft); }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; } }

/* ---- About -------------------------------------------------------------- */
.pull-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-style: italic; color: var(--emerald-800); border-left: 3px solid var(--gold-400); padding: .4rem 0 .4rem 1.4rem; margin: 2rem 0; line-height: 1.35; }
.pillars { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--line); background: var(--white); }
.pillar h3 { display: flex; gap: .7rem; align-items: center; }
.pillar h3 .arabic { font-size: 1.4rem; color: var(--gold-500); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--emerald-900); color: rgba(251, 247, 238, .78); position: relative; overflow: hidden; font-size: .95rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .16; }
.site-footer > * { position: relative; }
.footer-top { display: grid; gap: 2.2rem; padding: 3.5rem 0 2.5rem; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--gold-400); font-family: var(--font-body); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(251, 247, 238, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand .brand { color: var(--ivory); margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(201, 164, 76, .22); padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.placeholder-note { color: rgba(251, 247, 238, .5); font-style: italic; }

/* ---- Launch page -------------------------------------------------------- */
.launch-page { min-height: 100vh; display: grid; place-items: center; background: var(--emerald-800); padding: 1.5rem; position: relative; }
.launch-page::before { content: ""; position: fixed; inset: 0; background: var(--pattern); opacity: .35; }
.launch-card { position: relative; background: var(--ivory); border-radius: var(--radius-lg); padding: 2.4rem 2rem; max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.launch-card img { margin: 0 auto 1rem; }
.launch-card h1 { font-size: 1.9rem; }
.launch-spinner { width: 42px; height: 42px; margin: 1.4rem auto; border: 3px solid var(--sand); border-top-color: var(--emerald-700); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.launch-actions { display: grid; gap: .6rem; margin: 1rem 0; }
.launch-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---- Utilities ---------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--gold-400); }
.table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .announcement, .mobile-buy-bar { display: none; }
}
