/* ============================================================
   Noorani Al Jadeed Factory — design system
   Palette/type/tokens extracted from the approved mockups
   (direction 1a "Midnight & Gold", desktop turn 4).
   ============================================================ */

:root {
  --bg: #0B0F15;
  --card: #141A23;
  --panel: #11161F;
  --deep: #10151D;
  --gold: #C9A567;
  --gold-light: #E3C98F;
  --gold-dark: #8F6F35;
  --gold-deep: #6E5426;
  --ink-gold: #181205;
  --ivory: #EFE9DC;
  --logo: #FFFFFF;   /* the lockup is always white on dark */
  --green: #4CAF87;
  --green-dark: #1F6B4E;

  --tx-85: rgba(239, 233, 220, .85);
  --tx-75: rgba(239, 233, 220, .75);
  --tx-65: rgba(239, 233, 220, .65);
  --tx-55: rgba(239, 233, 220, .55);
  --tx-50: rgba(239, 233, 220, .5);
  --tx-45: rgba(239, 233, 220, .45);
  --tx-40: rgba(239, 233, 220, .4);
  --tx-35: rgba(239, 233, 220, .35);

  --br-06: rgba(255, 255, 255, .06);
  --br-07: rgba(255, 255, 255, .07);
  --br-08: rgba(255, 255, 255, .08);
  --br-09: rgba(255, 255, 255, .09);
  --br-14: rgba(255, 255, 255, .14);
  --br-16: rgba(255, 255, 255, .16);
  --br-18: rgba(255, 255, 255, .18);
  --br-25: rgba(255, 255, 255, .25);

  --font-en: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Helvetica Neue', sans-serif;
  --font-display-en: 'Marcellus', serif;
  --font-display-ar: 'Amiri', serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  --grad-gold: linear-gradient(120deg, #C9A567, #8F6F35);
  --wrap-x: 44px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, [data-add], [data-wish], [data-soon] { cursor: pointer; }
img { display: block; max-width: 100%; }
input { font: inherit; color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* skip link: off-screen until it takes keyboard focus */
.skip-link {
  position: fixed; inset-inline-start: 8px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--bg); padding: 10px 18px;
  border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
::selection { background: rgba(201, 165, 103, .35); }

.display { font-family: var(--font-display-en); font-weight: 400; }
html[lang="ar"] .display { font-family: var(--font-display-ar); }
.arabic { font-family: var(--font-display-ar); }
.latin { font-family: var(--font-en) !important; }
.mono { font-family: var(--font-mono); }

/* visibility helpers (mobile-first, desktop >= 900px).
   Hidden side only — no display override on the visible side, so author
   display values (flex/grid) apply untouched. */
@media (max-width: 899.98px) {
  .u-desktop { display: none !important; }
}
@media (min-width: 900px) {
  .u-mobile { display: none !important; }
}

.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.shell > main { flex: 1 0 auto; }
.flip-rtl { transform: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- brand ----------
   The house lockup is vertical, matching the factory signage: monogram over the
   wordmark over the descriptor. The mark and wordmark are the brand's own vector
   artwork, inlined by app.js with fill="currentColor" so `color` themes them. */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-stack {
  flex-direction: column; align-items: center; gap: 6px; text-align: center;
  line-height: 1;
}
.brand-stack.big { gap: 8px; }
/* the lockup is one colour throughout — white on the brand's dark ground */
.logo-mark { display: block; flex: none; color: var(--logo); }
.logo-mark svg { display: block; height: var(--mark, 34px); width: auto; }
.logo-word { display: block; color: var(--logo); }
.logo-word svg { display: block; height: var(--word, 17px); width: auto; }
.brand:hover .logo-mark, .brand:hover .logo-word { color: rgba(255, 255, 255, .82); }
/* the descriptor sits to the wordmark's optical width, so it letterspaces to fit */
.brand-tag {
  display: block; font-family: var(--font-en); font-size: 6.5px;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--logo); white-space: nowrap;
  padding-inline-start: .17em; /* balance the trailing letter-space */
}
.brand-stack.big .brand-tag { font-size: 7.5px; letter-spacing: .19em; }
.brand-tag-ar {
  display: block; font-family: var(--font-ar); font-size: 9px;
  color: var(--logo); white-space: nowrap;
}
.brand-stack.big .brand-tag-ar { font-size: 10.5px; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--gold); color: var(--ink-gold);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 26px; padding: 9px 110px; position: relative; text-align: center;
}
.announce .lang-pill { position: absolute; inset-inline-end: 28px; border-color: rgba(24, 18, 5, .35); }
.announce .lang-opt { color: var(--ink-gold); }
.announce .lang-opt.on { background: var(--ink-gold); color: var(--gold-light); }

/* language pill */
.lang-pill { display: flex; border: 1px solid var(--br-18); border-radius: 999px; overflow: hidden; font-size: 10.5px; }
.lang-opt { padding: 4px 10px; color: var(--tx-75); line-height: 1.3; }
.lang-opt.ar { font-family: var(--font-display-ar); font-size: 12px; }
.lang-opt.on { background: var(--gold); color: var(--bg); font-weight: 600; }

/* ---------- desktop nav ---------- */
.desk-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px var(--wrap-x); border-bottom: 1px solid var(--br-08);
}
/* The five business lines are the primary navigation, so they carry more weight
   than the old category links did. Gap tightens before the row can crowd the icons. */
.desk-links { display: flex; gap: 26px; font-size: 15px; color: var(--tx-85); white-space: nowrap; }
html[lang="ar"] .desk-links { font-size: 15.5px; }
.desk-links a:hover, .desk-links a.on { color: var(--gold-light); }
@media (max-width: 1180px) { .desk-links { gap: 18px; font-size: 14px; } }
@media (max-width: 1040px) { .desk-links { gap: 14px; font-size: 13px; } }
.desk-icons { display: flex; align-items: center; gap: 18px; }
.desk-icons a { display: flex; color: var(--ivory); }
.desk-bag { position: relative; }
.bag-badge {
  position: absolute; top: -6px; inset-inline-end: -8px;
  width: 16px; height: 16px; background: var(--gold); color: var(--bg);
  border-radius: 50%; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
}
.bag-badge[hidden] { display: none; }

/* ---------- desktop footer ---------- */
/* stacked logo above left-aligned footer columns reads better flush to the start */
.desk-footer .brand-stack { align-items: flex-start; text-align: start; }

.desk-footer { border-top: 1px solid var(--br-08); padding: 48px var(--wrap-x) 0; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-blurb { font-size: 12.5px; line-height: 1.7; color: var(--tx-55); margin: 14px 0 0; max-width: 300px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; max-width: 330px; }
.newsletter input {
  flex: 1; min-width: 0; background: none; border: 1px solid var(--br-18);
  border-radius: 999px; padding: 11px 18px; font-size: 12px;
}
.newsletter input::placeholder { color: var(--tx-40); }
.newsletter .btn-gold { font-size: 12px; padding: 11px 22px; }
.footer-head { font-size: 10px; letter-spacing: .24em; color: var(--tx-45); margin-bottom: 14px; }
html[lang="ar"] .footer-head { letter-spacing: 0; font-size: 11px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--tx-75); }
.footer-links a:hover { color: var(--gold-light); }
.footer-base {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--br-08); margin-top: 40px; padding: 20px 0 26px;
  font-size: 11px; color: var(--tx-40);
}
.footer-base .made-in { font-family: var(--font-display-ar); font-size: 13px; color: rgba(201, 165, 103, .7); }
.pay-row { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--tx-35); }

/* ---------- mobile top bar ---------- */
.m-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 8px;
}
.m-topbar.end { justify-content: flex-end; padding-bottom: 0; }
.topbar-title { text-align: center; }
.topbar-sub { font-size: 9px; letter-spacing: .22em; color: var(--tx-50); }
html[lang="en"] .topbar-sub { font-family: var(--font-display-ar); font-size: 12px; letter-spacing: 0; }
html[lang="ar"] .topbar-sub.latin { font-family: var(--font-en); font-size: 9px; letter-spacing: .22em; }
.topbar-spacer { width: 34px; }
.icon-circle {
  position: relative; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--br-18); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ivory);
}
.icon-circle .bag-badge { top: -3px; inset-inline-end: -3px; width: 15px; height: 15px; }
.close-x { font-size: 13px; color: var(--tx-55); }

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: sticky; bottom: 0; z-index: 20; margin-top: auto;
  background: rgba(11, 15, 21, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--br-08);
  display: flex; padding: 10px 8px calc(12px + env(safe-area-inset-bottom, 8px));
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--tx-45); }
.tab.on { color: var(--gold); }
.tab-label { font-size: 8.5px; letter-spacing: .08em; font-family: var(--font-en); }
.tab-label.ar { font-family: var(--font-ar); font-size: 9.5px; letter-spacing: 0; }

/* ---------- sticky bottom CTA ---------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 20; margin-top: auto;
  background: rgba(11, 15, 21, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--br-08);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 8px));
  display: flex; flex-direction: column; gap: 8px;
}
.sticky-cta.row { flex-direction: row; }

/* ---------- buttons ---------- */
.btn-gold {
  background: var(--gold); color: var(--bg); font-weight: 600; font-size: 14px;
  text-align: center; padding: 14px 0; border-radius: 999px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-gold.auto { width: auto; padding: 14px 34px; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline {
  border: 1px solid var(--br-25); color: var(--ivory); font-size: 13px;
  text-align: center; padding: 12px 0; border-radius: 999px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outline.auto { width: auto; padding: 12px 34px; }
.btn-outline:hover { border-color: var(--tx-55); }
.btn-outline-gold {
  border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 7px 16px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline-gold:hover { background: rgba(201, 165, 103, .12); }
.btn-wa {
  border: 1px solid rgba(76, 175, 135, .5); color: var(--green); font-size: 12.5px;
  text-align: center; padding: 11px 0; border-radius: 999px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wa-circle {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  border: 1px solid var(--green-dark); background: rgba(31, 107, 78, .18);
  display: flex; align-items: center; justify-content: center;
}
.wa-fab {
  position: fixed; bottom: 92px; inset-inline-end: 14px; z-index: 30;
  width: 50px; height: 50px; border-radius: 50%; background: var(--green-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- chips ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--br-16); font-size: 11px; color: var(--tx-85);
  white-space: nowrap;
}
.chip.on { background: var(--gold); color: var(--bg); font-weight: 600; border-color: var(--gold); }
@media (min-width: 900px) {
  .chip { padding: 8px 18px; font-size: 12px; }
}
/* line chips (the primary categories) sit a step larger than filter chips */
.chip-row.lines .chip { font-size: 13px; padding: 10px 18px; }
@media (min-width: 900px) { .chip-row.lines .chip { font-size: 14px; padding: 11px 22px; } }

/* ---------- cards & panels ---------- */
.card { background: var(--card); border: 1px solid var(--br-06); border-radius: 14px; }
.panel { background: var(--panel); border: 1px solid var(--br-07); border-radius: 14px; }
@media (min-width: 900px) {
  .card { border-radius: 16px; }
  .panel { border-radius: 18px; }
}

/* product card */
.pcard { background: var(--card); border: 1px solid var(--br-06); border-radius: 14px; overflow: hidden; display: block; }
@media (min-width: 900px) { .pcard { border-radius: 16px; } }
.pcard-media { position: relative; height: 140px; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.pcard-body { padding: 10px 12px 12px; }
@media (min-width: 900px) { .pcard-media { height: 220px; } .pcard-body { padding: 14px 16px 16px; } }
.pcard-name { font-size: 13.5px; }
html[lang="ar"] .pcard-name { font-size: 15px; }
@media (min-width: 900px) { .pcard-name { font-size: 16px; } }
.pcard-sub { font-size: 10px; color: var(--tx-45); margin-top: 1px; }
@media (min-width: 900px) { .pcard-sub { font-size: 11px; } }
.pcard-row { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
@media (min-width: 900px) { .pcard-row { margin-top: 10px; } }
.price { color: var(--gold); font-weight: 600; font-family: var(--font-en); }
html[lang="ar"] .price { font-family: var(--font-ar); }
.rating { font-size: 10px; color: var(--tx-50); }

/* badges on media */
.badge-flag {
  position: absolute; bottom: 8px; inset-inline-start: 8px;
  font-size: 8px; letter-spacing: .14em; font-weight: 700;
  padding: 3px 7px; border-radius: 3px;
}
html[lang="ar"] .badge-flag { letter-spacing: 0; font-size: 9px; }
@media (min-width: 900px) { .badge-flag { bottom: 10px; inset-inline-start: 10px; font-size: 8.5px; padding: 4px 8px; } }
.badge-flag.gold { background: var(--gold); color: var(--bg); }
.badge-flag.ivory { background: var(--ivory); color: var(--bg); }

/* wishlist heart button over media */
.media-heart {
  position: absolute; top: 8px; inset-inline-end: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(11, 15, 21, .55);
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .media-heart { top: 12px; inset-inline-end: 12px; width: 30px; height: 30px; } }
.media-heart svg path { stroke: rgba(239, 233, 220, .7); stroke-width: 1.1; fill: none; }
.media-heart.wished svg path { fill: var(--gold); stroke: var(--gold); }

/* ---------- placeholder product tile ---------- */
.ph {
  background: var(--deep);
  background-image: repeating-linear-gradient(45deg, rgba(201, 165, 103, .07) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
@media (min-width: 900px) {
  .ph { background-image: repeating-linear-gradient(45deg, rgba(201, 165, 103, .07) 0 12px, transparent 12px 24px); }
}
.ph-label {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em;
  color: rgba(201, 165, 103, .75); text-align: center; line-height: 1.6;
}
@media (min-width: 900px) { .ph-label { font-size: 9.5px; letter-spacing: .15em; } }

/* ---------- inputs ---------- */
.search-pill {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--br-08);
  border-radius: 999px; padding: 11px 16px;
}
.search-pill input { flex: 1; min-width: 0; background: none; border: 0; font-size: 12px; }
.search-pill input::placeholder { color: var(--tx-45); }
.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1; min-width: 0; background: none; border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 999px; padding: 11px 16px; font-size: 11.5px;
}
.promo-row input::placeholder { color: var(--tx-40); }
.promo-row .apply { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 11px 18px; font-size: 11.5px; font-weight: 600; }

/* ---------- toggle switch ---------- */
.switch { width: 34px; height: 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--br-18); position: relative; flex: none; transition: background .15s; }
.switch::after {
  content: ''; position: absolute; top: 2px; inset-inline-start: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--tx-55); transition: all .15s;
}
.switch.on { background: var(--gold); border-color: var(--gold); }
.switch.on::after { inset-inline-start: calc(100% - 20px); width: 18px; height: 18px; top: 1px; background: var(--bg); }
@media (min-width: 900px) { .switch { width: 38px; height: 24px; } .switch.on::after { width: 20px; height: 20px; } }

/* gift wrap banner */
.gift-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, rgba(201, 165, 103, .16), rgba(201, 165, 103, .05));
  border: 1px solid rgba(201, 165, 103, .4); border-radius: 14px; padding: 13px 14px;
}
@media (min-width: 900px) { .gift-banner { border-radius: 16px; padding: 16px 18px; } }
.gift-title { font-size: 12px; font-weight: 600; color: var(--gold-light); }
.gift-sub { font-size: 10.5px; color: var(--tx-55); margin-top: 2px; }
@media (min-width: 900px) { .gift-title { font-size: 13.5px; } .gift-sub { font-size: 11.5px; } }

/* diamond bullet */
.diamond { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }
@media (min-width: 900px) { .diamond { width: 6px; height: 6px; } }

/* ---------- summary rows ---------- */
.sumrow { display: flex; justify-content: space-between; padding: 4px 0; color: var(--tx-65); font-size: 12px; }
@media (min-width: 900px) { .sumrow { font-size: 13px; padding: 5px 0; } }
.sumrow .free { color: var(--green); }
.sumrow.total {
  padding: 9px 0 2px; margin-top: 5px; border-top: 1px solid var(--br-08);
  font-size: 14px; font-weight: 600; color: var(--ivory);
}
@media (min-width: 900px) { .sumrow.total { font-size: 17px; padding: 12px 0 4px; margin-top: 8px; } }
.sumrow.total .amount { color: var(--gold); }
.vat-note { font-size: 9px; color: var(--tx-40); font-weight: 400; }
@media (min-width: 900px) { .vat-note { font-size: 10px; } }

/* ---------- checkout steps ---------- */
.steps { display: flex; align-items: center; gap: 6px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--tx-55); }
.step.done, .step.current { color: var(--gold); }
.step.current .step-label { color: var(--gold-light); font-weight: 600; }
.step-dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; font-family: var(--font-en);
}
.step.done .step-dot { background: var(--gold); color: var(--bg); }
.step.current .step-dot { border: 1.5px solid var(--gold); color: var(--gold); }
.step-line { flex: 1; height: 1px; background: rgba(255, 255, 255, .15); }
.step-line.done { background: var(--gold); }

/* payment method rows */
.payrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--br-09);
  border-radius: 13px; padding: 13px 14px; width: 100%; text-align: start;
}
.payrow.on { background: rgba(201, 165, 103, .1); border: 1.5px solid var(--gold); }
.payrow .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); flex: none; display: flex; align-items: center; justify-content: center; }
.payrow.on .radio { border-color: var(--gold); }
.payrow.on .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.payrow .pay-name { flex: 1; font-size: 12.5px; }
.payrow.on .pay-name { font-weight: 600; color: var(--gold-light); }
.payrow .pay-meta { font-size: 9px; letter-spacing: .1em; color: var(--tx-45); font-family: var(--font-en); }
html[lang="ar"] .payrow .pay-meta { font-family: var(--font-ar); font-size: 9.5px; letter-spacing: 0; }
.payrow .pay-meta.green { color: var(--green); }
.card-logo { width: 26px; height: 17px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 6px; letter-spacing: .06em; color: var(--tx-50); font-family: var(--font-en); }

/* ---------- gradient loyalty banner ---------- */
.loyalty {
  border-radius: 14px; background: var(--grad-gold); color: var(--ink-gold);
}
@media (min-width: 900px) { .loyalty { border-radius: 18px; } }

/* ---------- qty stepper ---------- */
.qty {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--br-14); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-family: var(--font-en);
}
.qty button { min-width: 28px; min-height: 28px; padding: 6px; margin: -6px 0; text-align: center; font-size: 14px; line-height: 1; }
.qty .minus { color: var(--tx-50); }
.qty .plus { color: var(--gold); }
@media (min-width: 900px) { .qty { padding: 7px 16px; gap: 14px; font-size: 14px; } }

/* remove ✕ */
.x-btn { font-size: 13px; color: var(--tx-35); }
.x-btn:hover { color: var(--tx-65); }

/* ---------- notes pyramid table ---------- */
.notes-table { background: var(--panel); border: 1px solid var(--br-07); border-radius: 14px; padding: 14px 16px; }
.notes-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--br-06); }
.notes-row:first-child { padding-top: 6px; }
.notes-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.notes-key { width: 52px; flex: none; font-size: 9px; letter-spacing: .18em; color: var(--gold); padding-top: 2px; font-family: var(--font-en); }
html[lang="ar"] .notes-key { letter-spacing: 0; font-size: 10px; font-family: var(--font-ar); }
.notes-val { font-size: 12px; color: var(--tx-85); }
@media (min-width: 900px) {
  .notes-table { padding: 16px 20px; }
  .notes-key { width: 60px; font-size: 10px; }
  .notes-val { font-size: 13.5px; }
}

/* meter bars */
.meter-wrap { flex: 1; }
.meter-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--tx-55); }
.meter-head .val { color: var(--gold); }
.meter { height: 3px; background: rgba(255, 255, 255, .1); border-radius: 2px; margin-top: 6px; }
.meter > div { height: 100%; background: var(--gold); border-radius: 2px; }
@media (min-width: 900px) { .meter-head { font-size: 11px; } .meter { margin-top: 7px; } }

/* dashed gift-wrap hint */
.dash-hint {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed rgba(201, 165, 103, .45); border-radius: 12px; padding: 12px 14px;
  font-size: 11.5px; color: var(--tx-85);
}
.dash-hint .tick { width: 17px; height: 17px; border-radius: 4px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
@media (min-width: 900px) { .dash-hint { padding: 13px 16px; font-size: 12.5px; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--card); border: 1px solid rgba(201, 165, 103, .5);
  color: var(--ivory); font-size: 12px; padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 100; white-space: nowrap; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 40px; } }

/* ---------- section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.head-alt { font-family: var(--font-display-ar); color: var(--tx-50); }

/* breadcrumbs */
.crumbs { font-size: 11px; color: var(--tx-45); }
.crumbs .here { color: var(--gold); }

/* generic wrap */
.wrap { padding-inline: var(--wrap-x); }

/* checkbox square */
.checksq { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--br-25); flex: none; display: flex; align-items: center; justify-content: center; }
.checksq.on { background: var(--gold); border-color: var(--gold); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
