/* ═══════════ iFoam — Design system (base, copied from the El Akid script) ═══════════ */
:root {
  --ink: #1c0807;
  --ink-2: #2a0d0b;
  --ink-3: #3a1411;
  --cream: #fbf2ee;
  --paper: #fffaf8;
  --sand: #f6e3dc;
  --line: #eed3ca;
  --oxblood: #5e0b0b;
  --red: #b3121b;
  --red-2: #d22a2f;
  --gold: #c8161f;
  --gold-2: #ff8070;
  --gold-soft: #fde3dd;
  --primary-hi: #e3383d;
  --primary-lo: #a50f17;
  --on-primary: #fff;
  --footer: #0f0c0a;
  --muted: #6f5a55;
  --muted-light: rgba(246, 240, 230, 0.66);
  --green: #1d7a4b;
  --radius: 16px;
  --shadow-sm: 0 2px 10px color-mix(in srgb, var(--ink) 6%, transparent);
  --shadow: 0 14px 40px -12px color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow-lg: 0 30px 70px -20px color-mix(in srgb, var(--ink) 35%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Poppins', 'Cairo', sans-serif;
  --body: 'Cairo', system-ui, sans-serif;
  --logo: 'Poppins', sans-serif;
}
html[lang='ar'] { --display: 'Cairo', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding: 110px 0; }
.center { text-align: center; }
.ico { flex-shrink: 0; }

/* Typography */
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px; }
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
html[lang='ar'] .kicker { letter-spacing: 0; font-size: 15px; }
.center .kicker::after { content: ''; width: 28px; height: 2px; background: currentColor; }
.h-display { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.005em; margin: 0 0 18px; }
html[lang='ar'] .h-display { font-weight: 700; line-height: 1.35; text-transform: none; }
h2.h-display { font-size: clamp(34px, 4.6vw, 58px); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.center .lead { margin-inline: auto; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head .h-display { margin: 0; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 30px; font-weight: 600; font-size: 16px; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s; white-space: nowrap; }
.btn { border-radius: var(--btn-radius, 999px); }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-gold { background: linear-gradient(135deg, var(--primary-hi), var(--primary-lo)); color: var(--on-primary); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--gold) 80%, transparent); }
.btn-gold:hover { box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--gold) 90%, transparent); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { background: transparent; border: 1.5px solid currentColor; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-sm { padding: 10px 22px; font-size: 15px; }
html[dir='rtl'] .flip { transform: scaleX(-1); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; }

/* ── Topbar + Nav ── */
.topbar { background: var(--oxblood); color: var(--gold-soft); font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.tb-msg { flex: 1; text-align: center; font-weight: 500; }
.tb-phone { display: inline-flex; align-items: center; gap: 6px; }
.lang-btn { background: transparent; color: inherit; border: 1px solid rgba(243, 231, 198, 0.4); border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.lang-btn:hover { background: var(--gold-soft); color: var(--oxblood); }
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--cream); transition: box-shadow 0.3s, background 0.3s; }
.nav.scrolled { background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 84px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.logo-mark { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--primary-hi), var(--gold) 60%, var(--primary-lo)); color: var(--on-primary); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ink) 85%, transparent), 0 0 0 1.5px var(--gold); flex-shrink: 0; }
.logo-mark span { font-family: var(--logo); font-size: 28px; font-weight: 700; line-height: 1; margin-top: -4px; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-words b { font-family: var(--logo); font-size: 32px; font-weight: 700; color: var(--gold-2); line-height: 1.05; }
.logo-words small { font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted-light); margin-top: 4px; }
.nav-links { display: flex; gap: 34px; margin-inline-start: auto; font-weight: 500; font-size: 15.5px; }
.nav-links a { position: relative; padding: 6px 0; color: rgba(246, 240, 230, 0.82); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); }
.nav-links a::after { content: ''; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; position: relative; display: grid; place-items: center; border-radius: 50%; transition: background 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.cart-count { position: absolute; top: 0; inset-inline-end: -2px; background: var(--gold); color: var(--on-primary); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: none; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2px var(--ink); }
.cart-count.show { display: grid; animation: pop 0.35s var(--ease); }
@keyframes pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.15); } }
.only-mobile { display: none; }

/* ── Hero ── */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--ink); color: var(--cream); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 75%, transparent) 42%, color-mix(in srgb, var(--ink) 20%, transparent) 100%); }
html[dir='rtl'] .hero::before { background: linear-gradient(260deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 75%, transparent) 42%, color-mix(in srgb, var(--ink) 20%, transparent) 100%); }
.hero::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 160px; z-index: -1; background: linear-gradient(transparent, color-mix(in srgb, var(--ink) 70%, transparent)); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: end; padding: 90px 0 140px; }
.hero .kicker { color: var(--gold-2); }
.hero h1 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(48px, 7.2vw, 100px); line-height: 0.98; margin: 0 0 26px; }
html[lang='ar'] .hero h1 { font-weight: 700; line-height: 1.22; text-transform: none; font-size: clamp(46px, 6.6vw, 88px); }
.hero-sub { font-size: 19px; color: rgba(246, 240, 230, 0.86); max-width: 560px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .btn-outline { color: var(--cream); border-color: rgba(246, 240, 230, 0.5); }
.hero .btn-outline:hover { background: var(--cream); color: var(--ink); }
.hero-proof { display: flex; align-items: center; gap: 16px; font-size: 14.5px; color: rgba(246, 240, 230, 0.8); flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); margin-inline-start: -10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); }
.avatars span:first-child { margin-inline-start: 0; }
.hero-card { justify-self: end; background: rgba(246, 240, 230, 0.1); border: 1px solid rgba(246, 240, 230, 0.2); backdrop-filter: blur(16px); border-radius: 20px; padding: 22px 24px; display: flex; gap: 16px; align-items: center; max-width: 340px; animation: floaty 6s ease-in-out infinite; }
.hero-card .hc-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--gold); color: var(--on-primary); display: grid; place-items: center; flex-shrink: 0; }
.hero-card b { display: block; font-size: 17px; }
.hero-card small { color: rgba(246, 240, 230, 0.75); font-size: 14px; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* Feature strip overlapping hero */
.feats { position: relative; z-index: 3; margin: 48px 0 0; }
.hero + .feats { margin-top: -64px; }
.feats-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.feat { display: flex; align-items: center; gap: 16px; padding: 28px 26px; }
.feat + .feat { border-inline-start: 1px solid var(--line); }
.feat-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-soft); color: var(--oxblood); display: grid; place-items: center; flex-shrink: 0; }
.feat b { display: block; font-size: 16.5px; line-height: 1.3; }
.feat small { color: var(--muted); font-size: 14px; }

/* ── Categories ── */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cat { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; background: var(--ink); color: #fff; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--ink) 88%, transparent)); }
.cat:hover img { transform: scale(1.08); }
.cat-txt { position: absolute; inset-inline: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat-txt b { font-family: var(--display); font-size: 24px; font-weight: 600; text-transform: uppercase; }
.cat-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--on-primary); display: grid; place-items: center; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.cat:hover .cat-arrow { transform: scale(1.12); }

/* ── Product cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid rgba(228, 217, 198, 0.6); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1 / 0.86; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.tag { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--ink); color: var(--gold-2); font-weight: 600; font-size: 12.5px; padding: 5px 13px; border-radius: 999px; z-index: 2; }
.soldout { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12.5px; color: var(--red); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
html[lang='ar'] .card-cat { letter-spacing: 0; }
.card-body h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; transition: color 0.2s; }
.card-body a:hover h3 { color: var(--red); }
.unit { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.desc { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-size: 21px; font-weight: 700; color: var(--ink); }
.price s { color: var(--muted); font-size: 14px; }
.add-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 10px 18px 10px 14px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.25s, transform 0.25s var(--ease); white-space: nowrap; }
html[dir='rtl'] .add-btn { padding: 10px 14px 10px 18px; }
.add-btn:hover { background: var(--red); transform: scale(1.04); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.card.big .card-img { aspect-ratio: 4/3; }
.card.big .card-body h3 { font-size: 23px; }

/* ── Split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: 24px; aspect-ratio: 5/4.4; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.split-badge { position: absolute; bottom: -26px; inset-inline-end: -20px; background: var(--red); color: #fff; border-radius: 50%; width: 140px; height: 140px; display: grid; place-items: center; align-content: center; text-align: center; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; box-shadow: var(--shadow); transform: rotate(-8deg); border: 4px solid var(--cream); }
.split-badge b { display: block; font-size: 34px; color: var(--gold-2); font-family: 'Oswald'; }
.checks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checks .ck { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.promo-strip { background: var(--gold-soft); color: #7a1414; text-align: center; padding: 14px 20px; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 10px; }

/* ── Dark "why us" ── */
.dark { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.dark::before { content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 13%, transparent), transparent 65%); top: -280px; inset-inline-end: -200px; }
.dark .kicker { color: var(--gold-2); }
.dark .lead { color: var(--muted-light); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; position: relative; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why { background: var(--ink-2); border: 1px solid rgba(246, 240, 230, 0.08); border-radius: 20px; padding: 30px 28px; transition: border-color 0.3s, transform 0.4s var(--ease); }
.why:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); transform: translateY(-4px); }
.why-ico { width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 20px; }
.why h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.why p { margin: 0; color: var(--muted-light); font-size: 15px; }
.stats { display: flex; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.stats b { font-family: 'Oswald', var(--display); font-weight: 600; font-size: 50px; color: var(--gold-2); display: block; line-height: 1.05; }
.stats span { color: var(--muted-light); font-size: 14.5px; }

/* ── How ── */
.how-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.how-card { padding: 0 26px; }
.how-card + .how-card { border-inline-start: 1px solid var(--line); }
.how-num { font-family: 'Oswald', sans-serif; font-size: 76px; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 14px; }
.how-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.how-card p { margin: 0; color: var(--muted); }

/* ── Reviews ── */
.rev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rev { background: var(--paper); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); position: relative; }
.rev::before { content: '\201D'; position: absolute; top: 4px; inset-inline-end: 22px; font-family: Georgia, serif; font-size: 90px; line-height: 1; color: var(--gold-soft); }
.rev p { margin: 0; font-size: 16px; font-weight: 500; flex: 1; position: relative; }
.rev-who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.rev-av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.rev-who b { display: block; font-size: 15px; line-height: 1.3; }
.rev-who small { color: var(--green); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.rating-sum { display: inline-flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; font-weight: 600; }

/* ── Payments band ── */
.pay-band { background: linear-gradient(135deg, var(--oxblood), var(--red)); color: #fff; border-radius: 28px; padding: 60px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; position: relative; overflow: hidden; }
.pay-band::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, 0.05); inset-inline-end: -120px; top: -140px; }
.pay-band .kicker { color: var(--gold-2); }
.pay-band .lead { color: rgba(255, 255, 255, 0.82); }
.pay-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; position: relative; z-index: 1; }
.pay-logo { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 12px 14px; text-align: center; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease); }
.pay-logo:hover { transform: translateY(-3px); }
.pay-logo img { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; }
.pay-logo.cod { background: rgba(255, 255, 255, 0.1); color: var(--cream); border: 1px dashed rgba(255, 255, 255, 0.35); box-shadow: none; justify-content: center; }
.pay-logo .cod-ico { width: 84px; height: 84px; display: grid; place-items: center; }
.wa-chip { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 20px; font-weight: 400; transition: 0.3s var(--ease); }
.faq details[open] summary::after { content: '−'; background: var(--ink); color: var(--cream); }
.faq p { margin: 12px 0 0; color: var(--muted); max-width: 640px; }

/* ── Final CTA ── */
.final { position: relative; background: var(--ink); color: var(--cream); text-align: center; padding: 130px 0; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0.35; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ink) 40%, transparent), color-mix(in srgb, var(--ink) 92%, transparent)); }
.final .kicker { color: var(--gold-2); }
.final h2 { font-size: clamp(36px, 5.5vw, 70px); max-width: 920px; margin-inline: auto; }
.final p { font-size: 19px; color: var(--muted-light); margin: 0 0 36px; }

/* ── Footer ── */
.footer { background: var(--footer, #0f0c0a); color: var(--cream); padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 50px; }
.f-about p { color: var(--muted-light); max-width: 340px; margin: 22px 0; }
.footer h4 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 17px; margin: 6px 0 22px; color: var(--gold-2); letter-spacing: 0.06em; }
html[lang='ar'] .footer h4 { letter-spacing: 0; font-size: 19px; }
.footer a, .footer .f-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: rgba(246, 240, 230, 0.78); transition: color 0.2s; }
.footer a:hover { color: var(--gold-2); }
.footer .logo { margin: 0; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials .soc { border: 1px solid rgba(246, 240, 230, 0.2); border-radius: 999px; padding: 4px 14px; font-size: 13px; text-transform: capitalize; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 60px; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted-light); }
.pay-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-badges b { background: #fff; border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; }
.pay-badges b img { width: 34px; height: 34px; object-fit: contain; }
.pay-badges b.cod { background: rgba(255, 255, 255, 0.08); color: var(--cream); border: 1px solid rgba(255, 255, 255, 0.15); }
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.6); transition: transform 0.3s var(--ease); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }

/* ── Drawer ── */
.overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.35s; z-index: 90; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--cream); z-index: 100; display: flex; flex-direction: column; transform: translateX(105%); transition: transform 0.45s var(--ease); box-shadow: var(--shadow-lg); }
html[dir='rtl'] .drawer { transform: translateX(-105%); }
.drawer-open .overlay { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none !important; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--ink); color: var(--cream); }
.drawer-head h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; }
.free-bar { padding: 0 24px; }
.free-bar p { margin: 16px 0 8px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.bar { height: 7px; background: var(--sand); border-radius: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 8px; transition: width 0.6s var(--ease); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.cl-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-info small { color: var(--muted); }
.cl-price { text-align: end; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; margin-top: 8px; width: max-content; }
.stepper button { background: none; border: 0; width: 32px; height: 32px; cursor: pointer; font-size: 18px; font-weight: 600; border-radius: 50%; }
.stepper button:hover { background: var(--sand); }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: var(--paper); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.drawer-foot .btn { margin-top: 12px; }
.pay-mini { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.empty { text-align: center; padding: 70px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ── Inner pages ── */
.page-head { background: var(--ink); color: var(--cream); padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%); top: -200px; inset-inline-end: -100px; }
.page-head .kicker { color: var(--gold-2); }
.page-head h1 { font-size: clamp(38px, 5.5vw, 66px); margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 34px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 22px; font-weight: 600; cursor: pointer; transition: 0.25s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; padding: 60px 0 100px; align-items: start; }
.pd-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; position: sticky; top: 110px; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd h1 { font-size: clamp(36px, 4.4vw, 56px); }
.pd .price b { font-size: 34px; color: var(--red); }
.pd-buy { display: flex; gap: 12px; align-items: stretch; margin: 26px 0; }
.qty-box { display: flex; align-items: center; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; }
.qty-box button { width: 46px; height: 100%; background: none; border: 0; font-size: 20px; cursor: pointer; }
.qty-input { width: 46px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-perks li { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 500; font-size: 14.5px; }
.pd-perks li .ico { color: var(--green); }

/* Forms / checkout */
.co { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; padding: 50px 0 100px; align-items: start; }
.co > aside { align-self: stretch; }
.panel { background: var(--paper); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 22px; }
.panel h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.panel h2 .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-family: 'Oswald'; font-size: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 14px; }
label.f small { font-weight: 400; color: var(--muted); }
.input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: border 0.2s, box-shadow 0.2s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.phone-wrap { display: flex; direction: ltr; }
.phone-wrap span { background: var(--sand); border: 1.5px solid var(--line); border-inline-end: 0; border-radius: 12px 0 0 12px; padding: 14px 12px; font-weight: 600; }
.phone-wrap .input { border-radius: 0 12px 12px 0; }
.methods { display: grid; gap: 10px; }
.method { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; display: flex; align-items: center; gap: 12px; background: #fff; transition: 0.2s; }
.method:hover { border-color: var(--gold); }
.method:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 6%, transparent); }
.method input { accent-color: var(--ink); width: 18px; height: 18px; }
.method .m-name { font-weight: 700; }
.method .m-logo { margin-inline-start: auto; width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--red); flex-shrink: 0; }
.method .m-logo img { width: 40px; height: 40px; object-fit: contain; }

.sum-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-line img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.sum-line .q { background: var(--ink); color: var(--cream); border-radius: 999px; font-size: 12px; padding: 1px 9px; }
.sum-line div { flex: 1; }
.sum-row { display: flex; justify-content: space-between; margin: 12px 0; }
.sum-total { font-size: 22px; font-weight: 700; border-top: 2px solid var(--ink); padding-top: 14px; }
.alert { padding: 13px 16px; border-radius: 12px; font-weight: 500; margin: 12px 0; display: flex; gap: 10px; align-items: center; }
.alert.err { background: #fbe9e7; color: var(--oxblood); }
.alert.ok { background: #e5f3eb; color: var(--green); }
.alert.info { background: var(--gold-soft); color: #7a1414; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 12px; }
.bank-box { background: var(--cream); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; font-size: 14px; }
.bank-box code { font-size: 15px; font-weight: 700; direction: ltr; display: inline-block; user-select: all; }

/* Order status */
.status-wrap { max-width: 780px; margin: 60px auto 100px; }
.status-hero { background: var(--paper); border-radius: 24px; padding: 46px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.status-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--gold-soft); color: var(--oxblood); display: grid; place-items: center; margin: 0 auto 18px; }
.status-ico.ok { background: #e5f3eb; color: var(--green); }
.timeline { display: flex; justify-content: space-between; margin: 34px 0 14px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 16px; inset-inline: 40px; height: 2px; background: var(--line); }
.tl { position: relative; text-align: center; flex: 1; font-size: 13px; font-weight: 600; color: var(--muted); }
.tl i { width: 34px; height: 34px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; margin: 0 auto 8px; font-style: normal; position: relative; }
.tl.done { color: var(--ink); }
.tl.done i { background: var(--green); color: #fff; }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: var(--cream); padding: 13px 22px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: 0.35s var(--ease); z-index: 200; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.toast .ico { color: var(--gold-2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ── Responsive ── */
@media (max-width: 1150px) {
  .only-mobile { display: grid; }
  .only-desktop { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; inset-inline: -24px; flex-direction: column; gap: 4px; background: var(--ink); padding: 14px 24px 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 17px; }
  .nav-actions { margin-inline-start: auto; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr; padding: 70px 0 120px; }
  .hero-card { justify-self: start; }
  .feats-grid { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(3) { border-inline-start: 0; }
  .feat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .split, .why-grid, .faq-grid, .pd, .co, .pay-band { grid-template-columns: 1fr; gap: 44px; }
  .pay-band { padding: 44px 30px; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .how-card:nth-child(3) { border-inline-start: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-img { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .tb-msg { text-align: start; font-size: 12.5px; line-height: 1.5; padding: 6px 0; }
  .nav-inner { height: 70px; gap: 8px; }
  .nav-links { inset-inline: -16px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-mark span { font-size: 23px; }
  .logo-words b { font-size: 27px; }
  .logo-words small { font-size: 9px; }
  .hero { min-height: 0; }
  .hero-sub { font-size: 17px; }
  .hero-card { display: none; }
  .hero + .feats { margin-top: -50px; }
  .feat { padding: 18px 12px; gap: 10px; flex-direction: column; text-align: center; }
  .feat-ico { width: 46px; height: 46px; }
  .feat b { font-size: 14.5px; }
  .feat small { font-size: 12.5px; line-height: 1.4; display: block; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-txt b { font-size: 19px; }
  .grid-3, .rev-grid, .why-cards, .fields, .pd-perks, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-4 .card-body { padding: 12px 12px 14px; }
  .grid-4 .card-body h3 { font-size: 15px; }
  .grid-4 .price b { font-size: 16px; }
  .grid-4 .card-foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
  .grid-4 .add-btn { justify-content: center; padding: 9px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { padding: 0; }
  .how-card + .how-card { border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 30px; }
  .how-num { font-size: 56px; }
  .split-badge { width: 110px; height: 110px; font-size: 14px; inset-inline-end: 10px; }
  .split-badge b { font-size: 26px; }
  .stats { gap: 26px; }
  .stats b { font-size: 38px; }
  .pay-logos { grid-template-columns: 1fr 1fr; }
  .pay-logo img, .pay-logo .cod-ico { width: 64px; height: 64px; }
  .status-hero, .panel { padding: 22px 18px; }
  .tl { font-size: 11px; }
  .final { padding: 90px 0; }
}
[dir='ltr'] { unicode-bidi: isolate; }

/* ============ Site builder: section variants ============ */
.section.bg-sand { background: var(--sand); }
.section.bg-paper { background: var(--paper); }
.section.bg-dark { background: var(--ink); color: var(--cream); }
.section.bg-dark .kicker { color: var(--gold-2); }
.section.bg-dark .lead, .section.bg-dark p { color: var(--muted-light); }
.section.bg-dark .rev, .section.bg-dark .col-card { background: var(--ink-2); border-color: rgba(255, 255, 255, 0.08); color: var(--cream); }
.section.bg-dark .how-card + .how-card { border-color: rgba(255, 255, 255, 0.1); }
.section.bg-primary { background: linear-gradient(135deg, var(--oxblood), var(--red)); color: #fff; }
.section.bg-primary .kicker { color: var(--gold-2); }
.section.bg-primary .lead, .section.bg-primary p { color: rgba(255, 255, 255, 0.85); }
.section.bg-dark .faq summary::after, .section.bg-primary .faq summary::after { border-color: currentColor; }
.section.bg-dark .faq details, .section.bg-primary .faq details { border-color: rgba(255, 255, 255, 0.14); }
.split.rev .split-media { order: 2; }
.why-grid.solo { grid-template-columns: 1fr; max-width: 820px; }
.promo-strip a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.hero.hero-normal { min-height: min(64vh, 620px); }
.hero.hero-normal .hero-grid { padding: 70px 0 110px; }
.center-head { justify-content: center; text-align: center; }
.center-head .lead { margin-inline: auto; }
.center-head .kicker::after { content: ''; width: 28px; height: 2px; background: currentColor; }

/* Rich text section */
.container.narrow { max-width: 860px; }
.text-sec.align-center { text-align: center; }
.text-sec.align-center .kicker::after { content: ''; width: 28px; height: 2px; background: currentColor; }
.text-sec .rt { font-size: 18px; color: var(--muted); }
.text-sec .rt p { margin: 0 0 16px; }
.text-sec .btn { margin-top: 14px; }

/* Image banner */
.img-banner { position: relative; color: #fff; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.img-banner.h-s { min-height: 300px; } .img-banner.h-m { min-height: 440px; } .img-banner.h-l { min-height: 600px; }
.img-banner-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.img-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent), color-mix(in srgb, var(--ink) 80%, transparent)); }
.img-banner .container { padding: 70px 0; }
.img-banner .align-center { text-align: center; }
.img-banner .align-center .kicker::after { content: ''; width: 28px; height: 2px; background: currentColor; }
.img-banner .kicker { color: var(--gold-2); }
.img-banner h2 { font-size: clamp(34px, 5vw, 64px); max-width: 900px; }
.img-banner .align-center h2 { margin-inline: auto; }
.img-banner p { font-size: 19px; color: rgba(255, 255, 255, 0.86); max-width: 640px; margin: 0 0 30px; }
.img-banner .align-center p { margin-inline: auto; }

/* Columns / cards section */
.cols-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 24px; }
.col-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.col-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.col-img { aspect-ratio: 16/10; overflow: hidden; }
.col-img img { width: 100%; height: 100%; object-fit: cover; }
.col-ico { margin: 26px 26px 0; color: var(--red); background: var(--gold-soft); }
.col-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.col-body h3 { margin: 0; font-size: 20px; }
.col-body p { margin: 0; color: var(--muted); }
.col-body .text-link { margin-top: auto; align-self: flex-start; }

/* Logo image + language button in nav */
.logo-has-img img { display: block; width: auto; max-width: 220px; object-fit: contain; }
.nav-lang { color: var(--cream); margin-inline-start: 6px; }

/* Live preview mode (inside dashboard) */
.pv [data-sec], .pv #site-header, .pv #site-footer { position: relative; cursor: pointer; }
.pv [data-sec]:hover::after, .pv #site-header:hover::after, .pv #site-footer:hover::after { content: ''; position: absolute; inset: 0; outline: 2px dashed var(--gold); outline-offset: -2px; pointer-events: none; z-index: 60; }
.pv [data-sec].pv-on::after { content: ''; position: absolute; inset: 0; outline: 3px solid var(--gold); outline-offset: -3px; pointer-events: none; z-index: 60; box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--gold) 5%, transparent); }
.pv .wa-float { display: none; }
.pv .reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 960px) {
  .cols-grid { grid-template-columns: 1fr 1fr; }
  .split.rev .split-media { order: 0; }
}
@media (max-width: 640px) {
  .cols-grid { grid-template-columns: 1fr; }
  .img-banner.h-l { min-height: 460px; }
}

/* Pro customers: header button + price tag */
.acct-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); border: 1.5px solid color-mix(in srgb, var(--cream) 30%, transparent); border-radius: var(--btn-radius, 999px); padding: 7px 14px; font-weight: 600; font-size: 14px; transition: 0.2s; white-space: nowrap; }
.acct-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.acct-btn.in { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); }
.pro-tag { display: inline-block; background: var(--gold-soft); color: var(--red); font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
@media (max-width: 960px) { .acct-btn span { display: none; } .acct-btn { padding: 7px; border: 0; } }

/* ============ Customer portal (/account) ============ */
.acc-head { padding-bottom: 90px; }
.acc-sub .lead { color: var(--muted-light); margin: 10px 0 0; }
.acc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip-d { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; font-weight: 600; }
.chip-d.gold { background: var(--gold); border-color: var(--gold); color: var(--on-primary); }
.acc-main { margin-top: -60px; position: relative; z-index: 2; padding-bottom: 90px; }
.acc-login { display: grid; place-items: center; }
.acc-form { width: min(440px, 100%); display: grid; gap: 16px; padding: 34px 30px; box-shadow: var(--shadow); }
.acc-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-soft); color: var(--red); display: grid; place-items: center; margin: -66px auto 4px; border: 5px solid var(--paper); }
.acc-wa { color: var(--ink); }
.pw-wrap { position: relative; }
.pw-eye { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; display: grid; padding: 6px; }
.acc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.acc-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.acc-stat > span { color: var(--muted); font-weight: 600; font-size: 14px; }
.acc-stat b { font-size: 30px; line-height: 1.2; font-family: 'Oswald', var(--display); font-weight: 600; }
.acc-stat b.sm { font-size: 17px; font-family: var(--body); }
.acc-stat small { color: var(--muted); }
.acc-stat.owe b { color: var(--red); }
.acc-stat.ok b { color: var(--green); }
.acc-stat.muted b { color: var(--muted); }
.acc-bar { height: 8px; background: var(--sand); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.acc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 8px; }
.acc-actions { justify-content: center; gap: 10px; }
.acc-mini { display: flex; gap: 8px; }
.acc-mini .btn { flex: 1; padding: 9px 10px; font-size: 13.5px; }
.acc-pw { margin-bottom: 18px; display: grid; gap: 14px; }
.acc-tabs { display: flex; gap: 8px; align-items: center; margin: 26px 0 12px; flex-wrap: wrap; }
.acc-tabs .spacer { flex: 1; }
.acc-tabs .chip small { opacity: 0.6; margin-inline-start: 4px; }
.acc-panel { padding: 0; overflow: hidden; }
.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.acc-table th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; padding: 14px 18px; background: var(--sand); white-space: nowrap; }
.acc-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.acc-table td small { color: var(--muted); }
.acc-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-table .num.ok { color: var(--green); }
.acc-table tfoot td { background: var(--sand); font-weight: 700; }
.pm.cr { color: var(--red); font-weight: 600; }
.st-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sand); white-space: nowrap; }
.st-pill.st-delivered, .st-pill.st-paid { background: #e5f3eb; color: var(--green); }
.st-pill.st-cancelled { background: #fbe9e7; color: var(--red); }
.method.m-credit { border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 5%, var(--paper)); }
.print-only { display: none; }
@media (max-width: 860px) { .acc-stats { grid-template-columns: 1fr; } }
@media print {
  #site-header, #site-footer, .acc-head, .acc-stats, .acc-tabs, .acc-pw, .wa-float, .drawer, .overlay { display: none !important; }
  .acc-main { margin: 0; padding: 0; }
  .print-only { display: block; padding: 0 0 14px; font-size: 15px; }
  .acc-panel { box-shadow: none; border: 0; }
}
.acc-pw[hidden], .acc-form [hidden] { display: none !important; }

/* Customer portal: chat, overdue banner, notifications */
.acc-overdue { display: flex; align-items: center; gap: 14px; background: #fff1f0; border: 1px solid #f4c1bc; color: #7a1414; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.acc-overdue div { flex: 1; display: grid; }
.acc-overdue small { opacity: 0.8; }
.acc-notify:empty { display: none; }
.acc-notify { margin-bottom: 6px; }
.acc-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.acc-note.ok { color: var(--green); border-style: solid; }
.acc-notify-btn { color: var(--ink); }
.acc-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #25d366; color: #fff; font-size: 11.5px; font-weight: 700; }
.acc-tabs .chip { display: inline-flex; align-items: center; gap: 6px; }
.acc-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: min(640px, 75vh); }
.acc-chat-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #f0f2f5; border-bottom: 1px solid #e1e5e8; color: #128c7e; }
.acc-chat-h b { display: block; color: var(--ink); }
.acc-chat-h small { color: var(--muted); font-size: 13px; }
.acc-chat-b { flex: 1; min-height: 0; }
.acct-btn.has-unread { position: relative; }
.acct-btn.has-unread::after { content: ''; position: absolute; top: 2px; inset-inline-end: 2px; width: 10px; height: 10px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 640px) { .acc-overdue { flex-wrap: wrap; } .acc-chat { height: 78vh; } }

/* Delivery code on the order page */
.dcode { display: flex; align-items: center; gap: 18px; max-width: 520px; margin: 18px auto 6px; padding: 16px 20px; border-radius: var(--radius); background: var(--ink); color: var(--cream); text-align: start; box-shadow: var(--shadow); }
.dcode-num { font-family: 'Oswald', var(--display); font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: 6px; background: var(--gold); color: var(--on-primary); border-radius: 14px; padding: 10px 16px 12px; min-width: 104px; text-align: center; }
.dcode-t { display: grid; gap: 4px; }
.dcode-t b { font-size: 18px; color: var(--gold-2); }
.dcode-t small { color: var(--muted-light); font-size: 14px; line-height: 1.6; }
.dcode.done { background: #e5f3eb; color: var(--ink); }
.dcode.done .dcode-num { background: var(--green); color: #fff; }
.dcode.done .dcode-t b { color: var(--green); }
.dcode.done .dcode-t small { color: var(--muted); }
@media (max-width: 520px) { .dcode { flex-direction: column; text-align: center; } }
