/* ==========================================================================
   Al-Saady Lab — luxury home-laboratory theme (works LTR + RTL)
   ========================================================================== */
:root {
  --ink: #0a141f; --ink-2: #0f1e2d; --navy: #13304a; --brand-1: #1b4d7a; --brand-2: #0d7a5f; --mint: #7ecfc0;
  --gold: #c9a96a; --gold-hi: #f0dfb4; --gold-lo: #9c7a43;
  --ivory: #f7f3ec; --paper: #fbf9f5; --line: rgba(10, 20, 31, .1); --line-d: rgba(240, 223, 180, .16);
  --text: #14202b; --muted: #6b7682; --muted-d: #a9b4bf;
  --ok: #2e8b6e; --warn: #c7882c; --bad: #b54848; --info: #3b6ea8;
  --radius: 18px; --shadow: 0 30px 80px -30px rgba(10, 20, 31, .35);
  --serif: "Cormorant Garamond", "Amiri", Georgia, serif;
  --sans: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --gold-grad: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
}
html[lang="ar"] { --serif: "Amiri", "Cormorant Garamond", Georgia, serif; --sans: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold-hi); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.dark .muted, .site-footer .muted { color: var(--muted-d); }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] h1 em, html[lang="ar"] h2 em { font-style: normal; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-lo); margin-bottom: 18px; }
html[lang="ar"] .kicker { letter-spacing: .04em; font-size: .9rem; }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.dark .kicker { color: var(--gold); }
.lead { font-size: 1.12rem; max-width: 600px; color: var(--muted); }
.dark .lead { color: var(--muted-d); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 14px 34px -14px rgba(201, 169, 106, .8); }
.btn-gold:hover { box-shadow: 0 20px 40px -14px rgba(201, 169, 106, .95); }
.btn-ghost { border-color: rgba(201, 169, 106, .55); color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(201, 169, 106, .1); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--gold-lo); cursor: pointer; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.demo-bar { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 60; max-width: calc(100% - 120px); background: var(--gold-grad); color: var(--ink); font-size: .74rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(10, 20, 31, .5); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 20, 31, .96); color: var(--ivory); transition: background .3s, backdrop-filter .3s; border-bottom: 1px solid var(--line-d); }
.site-header.over-hero { position: absolute; inset-inline: 0; background: transparent; border-color: transparent; }
.site-header.over-hero.scrolled { position: fixed; top: 0; background: rgba(10, 20, 31, .82); backdrop-filter: blur(14px); border-color: var(--line-d); }
.nav { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; }
.logo-text b i { font-style: italic; color: var(--gold); }
.logo-text small { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-d); }
html[lang="ar"] .logo-text small { letter-spacing: .02em; font-size: .72rem; }
.links { display: flex; gap: 30px; margin-inline-start: auto; }
.links a { font-size: .92rem; color: rgba(247, 243, 236, .78); position: relative; padding: 6px 0; }
.links a:hover, .links a.on { color: var(--ivory); }
.links a.on::after, .links a:hover::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 1px solid var(--line-d); color: var(--ivory); border-radius: 999px; padding: 8px 14px; font-size: .82rem; cursor: pointer; }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); background: none; color: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold-grad); color: var(--ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 16px; height: 1.5px; background: var(--ivory); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; color: var(--ivory); background: var(--ink); overflow: hidden; display: flex; align-items: center; padding: 140px 0 90px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(900px 520px at 85% 15%, rgba(13, 122, 95, .38), transparent 60%),
    radial-gradient(700px 600px at 10% 90%, rgba(27, 77, 122, .55), transparent 60%),
    radial-gradient(500px 300px at 60% 70%, rgba(201, 169, 106, .12), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero .lead { margin: 24px 0 38px; font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line-d); }
.trust span { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted-d); }
.trust span::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.hero-card { position: relative; border-radius: 26px; padding: 30px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid var(--line-d); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.hero-card .mark { width: 74px; height: 74px; margin-bottom: 18px; }
.hc-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-d); font-size: .92rem; }
.hc-row span:first-child { color: var(--muted-d); }
.hc-status { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); }
.hc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(126, 207, 192, .15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(126, 207, 192, 0); } }
.hero-card .float { position: absolute; inset-inline-start: -34px; bottom: -26px; background: var(--ivory); color: var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-size: .85rem; }
.hero-card .float b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1; }

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 80px 0; }
.dark { background: var(--ink); color: var(--ivory); }
.ivory { background: var(--ivory); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head .lead { margin: 0; }
.page-head { padding: 150px 0 60px; background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 90% 0, rgba(13, 122, 95, .35), transparent 60%), radial-gradient(600px 300px at 0 100%, rgba(27, 77, 122, .5), transparent 60%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.has-sticky-head .page-head { padding-top: 90px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--paper); padding: 44px 36px; }
.step .num { font-family: "Cormorant Garamond", serif; font-size: 4rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-top: 18px; }

/* package cards */
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pk { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); padding: 32px; background: linear-gradient(170deg, var(--ink-2), var(--ink)); color: var(--ivory); border: 1px solid var(--line-d); transition: transform .35s, border-color .35s; overflow: hidden; }
.pk::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0, rgba(13, 122, 95, .22), transparent 70%); pointer-events: none; }
.pk:hover { transform: translateY(-6px); border-color: rgba(201, 169, 106, .5); }
.pk > * { position: relative; }
.pk .tag { align-self: flex-start; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201, 169, 106, .4); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
html[lang="ar"] .pk .tag { letter-spacing: 0; font-size: .8rem; }
.pk h3 { font-size: 1.7rem; }
.pk .price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px; }
.pk .price b { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; font-weight: 600; color: var(--gold-hi); }
.pk .price s { color: var(--muted-d); font-size: .95rem; }
.pk ul { list-style: none; padding: 0; margin: 0 0 26px; columns: 2; column-gap: 18px; font-size: .86rem; color: var(--muted-d); }
.pk li { padding: 3px 0; break-inside: avoid; }
.pk li::before { content: "·"; color: var(--gold); margin-inline-end: 8px; font-weight: 700; }
.pk .btn { margin-top: auto; }
.pk.light { background: var(--paper); color: var(--text); border-color: var(--line); }
.pk.light .price b { color: var(--ink); }
.pk.light ul { color: var(--muted); }

/* popular tests */
.pop-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pop-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 14px; }
.pop-group h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 10px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.trow .nm { flex: 1; font-size: .93rem; }
.trow .pr { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.add { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(201, 169, 106, .6); background: none; color: var(--gold-lo); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: .2s; }
.add:hover { background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.add.on { background: var(--ink); color: var(--gold-hi); border-color: var(--ink); }

/* partner banner */
.partner-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; border-radius: 28px; padding: 64px; background: linear-gradient(130deg, var(--brand-1), #145e6b 55%, var(--brand-2)); color: var(--ivory); position: relative; overflow: hidden; }
.partner-band::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(240, 223, 180, .25); inset-inline-end: -160px; top: -200px; }
.partner-band .kicker { color: var(--gold-hi); }
.perks { display: grid; gap: 12px; }
.perks div { padding: 16px 20px; border-radius: 14px; background: rgba(10, 20, 31, .25); border: 1px solid rgba(240, 223, 180, .18); }

.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding: 80px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.foot-grid h4 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 6px 0 16px; color: var(--gold); }
.foot-grid a:not(.logo) { display: block; color: var(--muted-d); padding: 5px 0; font-size: .92rem; }
.foot-grid a:not(.logo):hover { color: var(--ivory); }
.foot-grid p { max-width: 380px; font-size: .92rem; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: .82rem; color: var(--muted-d); flex-wrap: wrap; }

/* ---------- catalogue ---------- */
.search { position: relative; margin-top: 30px; max-width: 640px; }
.search input { width: 100%; padding: 20px 26px; padding-inline-start: 58px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .06); color: var(--ivory); font-size: 1.02rem; outline: none; }
.search input:focus { border-color: var(--gold); }
.search svg { position: absolute; inset-inline-start: 22px; top: 50%; transform: translateY(-50%); width: 20px; color: var(--gold); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 34px; }
.tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 11px 20px; cursor: pointer; font-size: .9rem; }
.tabs button.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.tlist { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; }
.tlist .trow:first-child { border-top: 0; }
.letter { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-lo); padding: 18px 0 4px; border-top: 1px solid var(--line); }
.letter:first-child { border-top: 0; }
.rx-note { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; border-radius: var(--radius); background: var(--ivory); border: 1px dashed rgba(201, 169, 106, .6); flex-wrap: wrap; }

/* ---------- basket drawer ---------- */
.cart-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(430px, 100%); z-index: 80; background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
html[dir="rtl"] .cart-drawer { transform: translateX(-105%); }
body.cart-open .cart-drawer { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10, 20, 31, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.cart-head h3 { margin: 0; }
.x { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-body { flex: 1; overflow: auto; padding: 10px 28px; }
.cart-body .empty { margin: 30px 0 20px; }
.cart-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row b { font-weight: 600; font-size: .93rem; display: block; }
.cart-row small { color: var(--muted); }
.cart-row-end { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.cart-foot { padding: 22px 28px 28px; border-top: 1px solid var(--line); background: var(--ivory); }
.sum { display: flex; justify-content: space-between; padding: 6px 0; font-size: .93rem; }
.sum.total { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; padding: 12px 0 18px; }
.sum.disc { color: var(--ok); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.field input, .field select, .field textarea { padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 106, .15); }
.field textarea { min-height: 96px; resize: vertical; }
.field .err { border-color: var(--bad); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--text); letter-spacing: 0; }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; }
.choice label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 106, .15); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 38px; box-shadow: 0 30px 80px -50px rgba(10, 20, 31, .35); }
.book-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 30px; align-items: start; }
.summary { position: sticky; top: 110px; }
.summary .cart-row { padding: 12px 0; }
.note { font-size: .86rem; padding: 14px 18px; border-radius: 12px; background: var(--ivory); color: var(--muted); margin-top: 18px; }
.ref-ok { color: var(--ok); font-size: .85rem; font-weight: 600; }
.form-msg { color: var(--bad); font-size: .9rem; margin-top: 12px; min-height: 1.2em; }

/* confirmation */
.done { text-align: center; max-width: 720px; margin: 0 auto; }
.done .seal { width: 92px; height: 92px; margin: 0 auto 24px; }
.code-box { display: inline-block; margin: 18px 0 8px; padding: 18px 34px; border-radius: 16px; background: var(--ink); color: var(--gold-hi); font-family: "Cormorant Garamond", serif; font-size: 2.6rem; letter-spacing: .12em; font-weight: 600; direction: ltr; }
.pay-box { text-align: start; margin-top: 30px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.kv b { direction: ltr; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- results ---------- */
.res-card { max-width: 560px; margin: -60px auto 0; position: relative; z-index: 2; }
.timeline { display: flex; justify-content: space-between; margin: 28px 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; inset-inline: 10px; height: 2px; background: var(--line); }
.timeline div { position: relative; text-align: center; font-size: .72rem; color: var(--muted); flex: 1; }
.timeline i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto 8px; }
.timeline .on i { background: var(--gold-grad); border-color: var(--gold); }
.timeline .on { color: var(--text); font-weight: 600; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: #eef1f4; color: #4b5866; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { background: #e8f0fa; color: var(--info); } .st-confirmed { background: #ece9fb; color: #5a4fb0; }
.st-collected { background: #e3f4f0; color: #1f7d6a; } .st-processing { background: #fbf1e1; color: var(--warn); }
.st-ready { background: #e2f3ea; color: var(--ok); } .st-completed { background: #f3ecdc; color: var(--gold-lo); }
.st-cancelled { background: #f6e6e6; color: var(--bad); }
.ps-unpaid { background: #f6e6e6; color: var(--bad); } .ps-pending { background: #fbf1e1; color: var(--warn); } .ps-paid { background: #e2f3ea; color: var(--ok); }

/* ---------- dashboards ---------- */
.dash { padding: 40px 0 100px; background: var(--ivory); min-height: 70vh; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.kpi small { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.kpi b { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.1rem; font-weight: 600; line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi.gold { background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--ivory); border-color: var(--ink); }
.kpi.gold small { color: var(--muted-d); } .kpi.gold b { color: var(--gold-hi); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-bottom: 22px; }
.panel h3 { font-size: 1.45rem; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.t th { text-align: start; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: rgba(201, 169, 106, .05); }
table.t .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reflink { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.reflink input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; direction: ltr; }
.qr { width: 180px; height: 180px; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.auth-wrap { max-width: 1000px; margin: -60px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* admin modal + compact selects in tables */
.modal { position: fixed; inset: 0; z-index: 85; background: rgba(10, 20, 31, .55); display: none; align-items: flex-start; justify-content: center; padding: 50px 16px; overflow: auto; }
.modal.open { display: flex; }
.modal-card { background: var(--paper); border-radius: 22px; padding: 30px; width: min(900px, 100%); box-shadow: var(--shadow); }
table.t select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .82rem; }
code { background: var(--ivory); padding: 2px 6px; border-radius: 6px; font-size: .85em; }

/* Cormorant defaults to old-style figures; prices and numbers read better as lining figures */
.step .num, .pk .price b, .kpi b, .code-box, .hero-card .float b, .sum.total, .logo-text b { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- misc ---------- */
.wa-fab { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1fae5b; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31, 174, 91, .7); transition: transform .25s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }
#toast { position: fixed; bottom: 100px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--ivory); padding: 12px 22px; border-radius: 999px; font-size: .88rem; opacity: 0; transition: .3s; z-index: 90; pointer-events: none; border: 1px solid var(--line-d); max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .partner-band, .book-grid, .auth-wrap, .two { grid-template-columns: 1fr; }
  .pk-grid, .pop-groups { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero-card .float { inset-inline-start: 16px; }
}
@media (max-width: 820px) {
  .links { display: none; position: absolute; top: 84px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--ink); padding: 10px 24px 24px; border-bottom: 1px solid var(--line-d); }
  body.menu-open .links { display: flex; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .burger { display: flex; }
  .hide-sm { display: none; }
  .nav { gap: 12px; }
  .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .pk-grid, .pop-groups, .form-grid, .foot-grid, .choice { grid-template-columns: 1fr; }
  .partner-band { padding: 36px 26px; }
  .card { padding: 26px 20px; }
  .pk ul { columns: 1; }
  .logo-text small { display: none; }
  .logo-text b { font-size: 1.2rem; white-space: nowrap; }
  .logo .mark { width: 36px; height: 36px; }
  .nav { height: 70px; }
  .lang, .cart-btn, .burger { height: 38px; }
  .cart-btn, .burger { width: 38px; }
  .links { top: 70px; }
  .hero { padding-top: 110px; }
  .section.tight { padding: 36px 0 60px; }
  .tabs { margin-top: 0; }
  .page-head { padding-bottom: 40px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .demo-bar { bottom: 18px; inset-inline-start: 12px; font-size: .64rem; padding: 6px 10px; max-width: calc(100% - 96px); }
  .wa-fab { bottom: 16px; inset-inline-end: 16px; width: 52px; height: 52px; }
}
