/* Components */
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--lg { width: 24px; height: 24px; }

/* buttons */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 8px 24px; text-align: center; border-radius: var(--r-pill);
  font-weight: 650; font-size: .96rem; border: 1px solid transparent; transition: transform .18s var(--ease-out), box-shadow .2s, background .2s, border-color .2s; will-change: transform; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--gold); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px color-mix(in srgb, var(--gold) 38%, transparent); }
.btn--primary:hover { background: var(--gold-bright); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 26px color-mix(in srgb, var(--gold) 48%, transparent); }
.btn--ghost { border-color: var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--gold); }
.on-dark .btn--ghost { background: transparent; border-color: var(--dk-border); color: var(--dk-text); }
.on-dark .btn--ghost:hover { border-color: var(--dk-gold); }
.btn--sm { --h: 40px; padding-inline: 18px; font-size: .9rem; }
.btn--lg { --h: 56px; padding-inline: 30px; font-size: 1.02rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--gold); }

/* switchers */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); }
.seg button { min-width: 38px; height: 32px; padding-inline: 10px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-pressed='true'], .seg button[aria-checked='true'] { background: var(--ink); color: #fff; }
[data-theme='dark'] .seg button[aria-pressed='true'], [data-theme='dark'] .seg button[aria-checked='true'] { background: var(--gold); color: var(--on-gold); }
.on-dark .seg { background: var(--dk-surface); border-color: var(--dk-border); }
.on-dark .seg button { color: var(--dk-muted); }
.on-dark .seg button[aria-pressed='true'] { background: var(--gold-bright); color: var(--on-gold); }
[data-lang='ar'] { font-family: system-ui, 'Segoe UI', Tahoma, sans-serif; } /* keeps the 166 KB Arabic font off French/English page loads */
.theme-icon--moon { display: none; }
[data-theme='dark'] .theme-icon--sun { display: none; }
[data-theme='dark'] .theme-icon--moon { display: block; }

/* chips / eyebrow / badges */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; justify-self: center; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.on-dark .eyebrow { color: var(--dk-gold); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; }
.chip .i { width: 15px; height: 15px; color: var(--gold-text); }
.chip--gold { background: var(--gold-soft); border-color: transparent; color: var(--gold-text); }
.on-dark .chip { background: var(--dk-surface); border-color: var(--dk-border); color: var(--dk-text); }
.on-dark .chip .i { color: var(--dk-gold); }
.tag-example { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(20px, 2.4vw, 28px); position: relative; }
.on-dark .card { background: var(--dk-surface); border-color: var(--dk-border); box-shadow: none; }
.card__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); }
.on-dark .card__icon { background: color-mix(in srgb, var(--dk-gold) 16%, transparent); color: var(--dk-gold); }
.card p { color: var(--muted); font-size: .95rem; }
.on-dark .card p { color: var(--dk-muted); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; color: var(--gold-text); }
.link-more .i { transition: transform .2s var(--ease-out); }
.link-more:hover .i { transform: translateX(4px); }
[dir='rtl'] .link-more .i, [dir='rtl'] .flip-rtl { transform: scaleX(-1); }
[dir='rtl'] .link-more:hover .i { transform: scaleX(-1) translateX(4px); }

/* mini visuals (replicas of the dashboard pieces) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.bars i { flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--gold) 38%, transparent); }
.bars i.on { background: var(--gold); }
.meter { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.meter i { display: block; height: 100%; width: var(--v, 50%); background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 8px; }
.ladder { display: grid; gap: 10px; }
.ladder li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.ladder .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.ladder li.done .dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.ladder small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.on-dark .ladder .dot { background: var(--dk-surface-2); border-color: var(--dk-border); color: var(--dk-muted); }
.on-dark .ladder li.done .dot { background: var(--dk-gold); border-color: var(--dk-gold); color: var(--on-gold); }
.on-dark .ladder small { color: var(--dk-muted); }

.ring { --v: .7; --s: 96px; width: var(--s); height: var(--s); position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .trk { stroke: var(--surface-2); }
.ring .val { stroke: var(--gold); stroke-dasharray: 264; stroke-dashoffset: calc(264 * (1 - var(--v))); transition: stroke-dashoffset .8s var(--ease-out); }
.ring b { font-size: calc(var(--s) * .26); font-weight: 800; letter-spacing: -.03em; position: relative; }
.ring small { font-size: calc(var(--s) * .12); color: var(--muted); font-weight: 600; display: block; text-align: center; line-height: 1; }
.on-dark .ring .trk { stroke: var(--dk-surface-2); }
.on-dark .ring .val { stroke: var(--dk-gold); }

.stat { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.stat b { font-size: 1.4rem; letter-spacing: -.03em; line-height: 1; }
.stat small { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* ---------- NFC card (CSS 3D) ---------- */
.nfc { --a: #2B2520; --b: #0F0D0B; --fg: #F5EFE6; --w: 320px; width: var(--w); aspect-ratio: 85.6 / 54; position: relative; transform-style: preserve-3d; color: var(--fg); font-size: calc(var(--w) / 22); }
.nfc__face, .nfc__back { position: absolute; inset: 0; border-radius: calc(var(--w) * .05); padding: 7%; overflow: hidden;
  background: linear-gradient(135deg, var(--a), var(--b)); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -20px 40px rgba(0, 0, 0, .25); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.nfc__back { transform: rotateY(180deg) translateZ(7px); }
.nfc__face::before, .nfc__back::before { /* soft-touch matte texture */
  content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nfc__edge { position: absolute; inset: 0; border-radius: calc(var(--w) * .05); background: #0a0908; border: 1px solid rgba(255, 255, 255, .06); }
.nfc__edge--1 { transform: translateZ(-2px); } .nfc__edge--2 { transform: translateZ(-4px); } .nfc__edge--3 { transform: translateZ(-6px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.nfc__sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .95;
  background: radial-gradient(circle at var(--mx, 28%) var(--my, 18%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 52%); }
.nfc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.nfc__logo { width: 2.1em; height: 2.1em; }
.nfc__logo img { width: 100%; height: 100%; border-radius: 22%; object-fit: cover; }
.nfc__wave { width: 1.9em; height: 1.9em; color: var(--wave, var(--gold-bright)); }
.nfc__name { font-weight: 700; letter-spacing: -.02em; font-size: 1.25em; line-height: 1.1; }
.nfc__sub { opacity: .7; font-size: .7em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-block-start: .25em; }
.foil { background: linear-gradient(110deg, #a9792b 0%, #f1d28a 38%, #c8963e 55%, #8a5f1b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glyph { fill: none; stroke: url(#foil); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.stamps { display: flex; gap: .45em; align-items: center; }
.stamps i { width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--dot-off, rgba(255, 255, 255, .14)); }
.stamps i.on { background: var(--dot, var(--gold-bright)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.stamps i.gift { border-radius: 30%; background: transparent; border: 1.5px dashed var(--dot, var(--gold-bright)); }
.nfc--gold { --a: #E3B966; --b: #B9852F; --fg: #14110F; }
.nfc--gold .stamps i { background: rgba(20, 17, 15, .16); } .nfc--gold .stamps i.on { background: #14110F; }
.nfc--gold .nfc__wave { color: #14110F; } .nfc--gold .stamps i.gift { border-color: #14110F; }
.nfc--cream { --a: #F6EEDF; --b: #DCCCAE; --fg: #14110F; }
.nfc--cream .nfc__wave { color: var(--gold-text); } .nfc--cream .stamps i { background: rgba(20, 17, 15, .12); } .nfc--cream .stamps i.on { background: var(--gold); }
.nfc__shadow { position: absolute; inset-inline: 8%; inset-block-end: -18%; height: 14%; border-radius: 50%; background: rgba(20, 12, 4, .45); filter: blur(14px); transform: translateZ(-40px) scaleY(.6); }

/* ---------- phone (CSS) ---------- */
.phone { --w: 260px; width: var(--w); aspect-ratio: 9 / 18.4; border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .035); background: linear-gradient(145deg, #2a2521, #0b0a09);
  box-shadow: 0 0 0 1px #3a332d, 0 30px 60px rgba(20, 12, 4, .35), inset 0 0 0 2px #000; position: relative; }
.phone::before { content: ''; position: absolute; inset-block-start: 3.2%; inset-inline: 36%; height: 2.4%; border-radius: 20px; background: #000; z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: calc(var(--w) * .13); background: var(--bg); overflow: hidden; position: relative; color: var(--text); font-size: calc(var(--w) / 20); }
[data-theme='dark'] .phone__screen { background: #181513; }
.screen { position: absolute; inset: 0; padding: 16% 7% 7%; display: flex; flex-direction: column; gap: .8em; }
.screen__head { display: flex; align-items: center; gap: .6em; font-weight: 700; }
.screen__head img { width: 2em; height: 2em; border-radius: 28%; }
.wa-bubble { background: #DCF8C6; color: #1b2a14; border-radius: 0 14px 14px 14px; padding: 10px 12px 18px; font-size: .92em; line-height: 1.45; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); max-width: 92%; }
.wa-bubble time { position: absolute; inset-inline-end: 8px; inset-block-end: 4px; font-size: .72em; opacity: .55; }
.wa-bg { background: #ECE5DD; }
[data-theme='dark'] .wa-bg { background: #0F1A14; }

/* tablet + dashboard replica */
.tablet { width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; padding: 8px; background: linear-gradient(145deg, #2a2521, #0b0a09); box-shadow: 0 0 0 1px #3a332d, 0 30px 60px rgba(20, 12, 4, .3); }
.tablet__screen { width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: var(--bg); display: grid; grid-template-columns: 52px 1fr; color: var(--text); font-size: 12px; }
[data-theme='dark'] .tablet__screen { background: #0D0B0A; }
.pillbar { background: #14110F; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 10px; }
.pillbar span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1F1B18; color: #F5EFE6; }
.pillbar span.on { background: var(--gold); color: #14110F; }
.pillbar .i { width: 15px; height: 15px; }

/* keypad */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button, .keypad span { height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--dk-surface-2); border: 1px solid var(--dk-border); color: var(--dk-text); font-size: .95rem; transition: background .15s, transform .12s; }
.keypad .ok { background: var(--dk-gold); color: var(--on-gold); border-color: transparent; }
.pin-dots { display: flex; gap: 10px; justify-content: center; margin-block: 8px 14px; }
.pin-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--dk-muted); }
.pin-dots i.on { background: var(--dk-gold); border-color: var(--dk-gold); }

/* forms */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .86rem; font-weight: 650; }
.input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 28%, transparent); }
.input[aria-invalid='true'] { border-color: var(--danger); }
.on-dark .input { background: var(--dk-surface-2); border-color: var(--dk-border); color: var(--dk-text); }
.err { color: var(--danger); font-size: .8rem; font-weight: 600; min-height: 1.1em; }
.range { width: 100%; accent-color: var(--gold); }
input[type='color'].input { padding: 4px; }

/* accordion */
.acc { border-block-end: 1px solid var(--border); }
.acc:first-child { border-block-start: 1px solid var(--border); }
.acc button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; text-align: start; font-weight: 650; font-size: 1.05rem; }
.acc button .i { transition: transform .3s var(--ease-out); color: var(--gold-text); }
.acc button[aria-expanded='true'] .i { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__panel[data-open='true'] { grid-template-rows: 1fr; }
.acc__panel p { padding-block-end: 22px; color: var(--muted); max-width: 70ch; }

/* custom cursor (desktop pointers only) */
.cursor { position: fixed; inset: 0 auto auto 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--gold); pointer-events: none; z-index: 200;
  opacity: 0; transition: opacity .25s, width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), background .25s; mix-blend-mode: normal; will-change: transform; }
.cursor.on { opacity: .75; }
.cursor.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: color-mix(in srgb, var(--gold) 14%, transparent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
