/* ===== RUWAD design system =====
   Tokens -> base -> type -> components -> sections -> admin -> responsive.
   Rules: one accent (royal blue), two radii (--r, --r-lg) + pill, 4/8 spacing scale,
   one shadow, motion only on enter + hover (disabled for reduced-motion). */

:root {
  --bg: #f6fafe;
  --surface: #ffffff;
  --sunken: #edf5fb;
  --ink: #0a1535;
  --ink-2: #24325a;
  --muted: #5a6b8c;
  --line: #dbe8f3;
  --accent: #002070;
  --accent-strong: #001558;
  --accent-soft: #e2f5fd;
  --navy: #001a5c;
  --sky: #50c8f0;
  --ok: #1f7a4d;
  --ok-soft: #e3f3ea;
  --warn: #9a5b00;
  --warn-soft: #fdf0d8;
  --bad: #b3261e;
  --bad-soft: #fbe6e4;
  --r: 12px;
  --r-lg: 20px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;
  --shadow: 0 1px 2px rgba(10, 21, 53, .05), 0 14px 36px -14px rgba(0, 32, 112, .22);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  --maxw: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 var(--sp-4); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 8px; }

/* ----- type ----- */
h1, h2, h3 { font-weight: 500; line-height: 1.25; margin: 0 0 var(--sp-4); letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--accent-strong); font-weight: 500; margin-bottom: var(--sp-4); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; display: inline-block; }
mark.accent { background: none; color: var(--accent); }

/* ----- layout ----- */
.wrap { width: min(100% - 2 * var(--sp-4), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(var(--sp-7), 8vw, var(--sp-9)); }
.section.tight { padding-block: clamp(var(--sp-6), 5vw, var(--sp-8)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--sp-5); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: var(--sp-5); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5); border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: var(--fs-base); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(0, 32, 112, .7); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.btn-wa { background: #17844f; color: #fff; }
.btn-wa:hover { background: #166039; transform: translateY(-1px); }
.btn-danger { background: transparent; color: var(--bad); border-color: #e9b9b5; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--accent-strong); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-color: currentColor; }

/* ----- forms ----- */
.field { display: grid; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px var(--sp-4); border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.7; }
.input:hover { border-color: #a9c6df; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { font-size: var(--fs-sm); color: var(--muted); }
.check { display: flex; gap: var(--sp-3); align-items: center; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
input[type=file].input { padding: 10px; min-height: 0; }
.ltr { direction: ltr; text-align: left; }

/* ----- cards / badges / alerts ----- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.card.flat { background: var(--sunken); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; background: var(--sunken); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent-strong); }
.alert { border-radius: var(--r); padding: var(--sp-4); margin-bottom: var(--sp-4); border: 1px solid var(--line); background: var(--sunken); }
.alert.ok { background: var(--ok-soft); border-color: #bfe3cf; color: #14532f; }
.alert.bad { background: var(--bad-soft); border-color: #efc2be; color: #7f1a14; }
.alert.warn { background: var(--warn-soft); border-color: #f1d9a6; color: #6b3f00; }
.note { border-inline-start: 3px solid var(--accent); background: var(--accent-soft); padding: var(--sp-4) var(--sp-5); border-radius: var(--r); }
.note strong { display: block; margin-bottom: 4px; }

.flash-wrap { padding-top: var(--sp-4); }

/* ----- header / nav ----- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--accent-soft); display: grid; place-items: center; font-size: 1rem; font-weight: 600; }
.brand-logo { height: 68px; width: auto; aspect-ratio: 638 / 456; flex: none; object-fit: contain; }
.footer .brand, .admin-side .brand { background: #fff; border-radius: 16px; padding: 6px 14px; }
.footer .brand-logo { height: 64px; }
.admin-side .brand-logo { height: 52px; }
.admin-label { color: #8fd8f4; font-size: .8rem; letter-spacing: .04em; padding-inline: var(--sp-3); margin: calc(-1 * var(--sp-4)) 0 var(--sp-5); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0, transparent 70%); }
.hero-art .art-main img { position: relative; width: min(250px, 56vw); height: auto; background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 24px 50px -16px rgba(0, 32, 112, .45), 0 0 0 1px var(--line); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img, .art-card { animation: none !important; } }
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav a.nl { color: var(--ink-2); font-size: .95rem; position: relative; padding-block: 6px; }
.nav a.nl::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a.nl:hover::after, .nav a.nl[aria-current=page]::after { transform: scaleX(1); }
.cart-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-count { background: var(--sky); color: var(--navy) !important; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; font: inherit; cursor: pointer; }

/* ----- footer ----- */
.footer { background: var(--navy); color: #c3d0e6; padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-8); }
.footer a { color: #c3d0e6; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .about { margin-top: var(--sp-4); max-width: 38ch; }

.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1.4fr 1fr 1fr; }
.footer h4 { color: #fff; margin: 0 0 var(--sp-3); font-weight: 500; font-size: var(--fs-base); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer .legal { border-top: 1px solid #1f3560; margin-top: var(--sp-6); padding-top: var(--sp-5); font-size: var(--fs-sm); color: #8da0c0; display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

/* ----- hero ----- */
.hero { position: relative; padding-block: clamp(var(--sp-7), 9vw, 120px) clamp(var(--sp-7), 7vw, 96px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(0, 32, 112, .12) 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000 0, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: var(--sp-7); grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #0a3aa8, #2fb4e6); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.hero .cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.hero-card .step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.hero-card .step + .step { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 600; }
.step b { display: block; font-weight: 500; }
.step span { color: var(--muted); font-size: var(--fs-sm); }

/* trust strip */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: var(--sp-5) var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item svg { flex: none; color: var(--accent); }
.trust-item b { display: block; font-weight: 500; line-height: 1.4; }
.trust-item span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; display: block; }

/* ----- product card ----- */
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #a9dcf3; }
.cover { position: relative; aspect-ratio: 4 / 3; background: var(--sunken); overflow: hidden; }
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-soft); background:
  radial-gradient(120% 90% at 100% 0, rgba(80, 200, 240, .65), transparent 55%), linear-gradient(160deg, #0a2f8f, var(--navy)); }
.cover-fallback .mono { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 200; line-height: 1; }
.cover-fallback .cd { position: absolute; inset-inline-start: var(--sp-4); bottom: var(--sp-3); font-size: 12px; letter-spacing: .12em; opacity: .75; direction: ltr; }
.cover .tag { position: absolute; inset-inline-end: var(--sp-3); top: var(--sp-3); }
.pbody { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.pbody h3 { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.pbody p { color: var(--muted); font-size: var(--fs-sm); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pfoot { margin-top: auto; padding-top: var(--sp-4); display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.price { font-weight: 600; font-size: 1.2rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: var(--fs-sm); margin-inline-start: var(--sp-2); }
.code-chip { font-size: 12px; letter-spacing: .08em; color: var(--muted); direction: ltr; display: inline-block; }

/* ----- product page ----- */
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-5); }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; gap: var(--sp-7); grid-template-columns: 1.1fr .9fr; align-items: start; padding-block: var(--sp-6) var(--sp-8); }
.gallery { display: grid; gap: var(--sp-3); }
.gallery .main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sunken); cursor: zoom-in; display: grid; place-items: center; }
.gallery .main:has(> .cover) { aspect-ratio: 4 / 3; }
.gallery .main img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.thumb { border: 2px solid transparent; padding: 0; border-radius: var(--r); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; transition: border-color .2s; }
.thumb[aria-current=true] { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--sunken); }
.buybox { position: sticky; top: 92px; display: grid; gap: var(--sp-4); }
.price-line { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.price-big { font-size: 2.2rem; font-weight: 500; letter-spacing: -.02em; }
.save { color: var(--ok); font-weight: 500; font-size: var(--fs-sm); }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.feat-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feat-list svg { flex: none; margin-top: 5px; color: var(--ok); }
.share { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.sticky-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .35s var(--ease); display: none; }
.sticky-bar.show { transform: none; }
.sticky-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.sticky-bar .t { min-width: 0; }
.sticky-bar .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0, 12, 48, .92); z-index: 90; display: none; place-items: center; padding: var(--sp-4); }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: var(--r); }
.lightbox button { position: absolute; top: 16px; inset-inline-start: 16px; }

/* ----- how / faq / cta ----- */
.how { display: grid; gap: var(--sp-5); grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.how .card { position: relative; padding-top: var(--sp-6); }
.how .card::before { counter-increment: s; content: counter(s); position: absolute; top: var(--sp-4); inset-inline-end: var(--sp-5); font-size: 3.5rem; font-weight: 200; color: var(--line); line-height: 1; }
.how h3 { margin-bottom: var(--sp-2); }
.how p { color: var(--muted); margin: 0; }
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 var(--sp-5); transition: border-color .2s; }
.faq details[open] { border-color: #7fd0f1; }
.faq summary { cursor: pointer; list-style: none; padding: var(--sp-4) 0; font-weight: 500; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: var(--sp-4); margin: 0; }
.band { background: linear-gradient(135deg, #001a5c 0%, #0a3aa8 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(var(--sp-6), 6vw, var(--sp-8)); display: flex; justify-content: space-between; gap: var(--sp-5); align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset-inline-start: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(80, 200, 240, .45), transparent 70%); pointer-events: none; }
.band h2 { margin: 0 0 var(--sp-2); color: #fff; }
.band p { margin: 0; color: #d6e4ff; max-width: 52ch; }
.band > * { position: relative; z-index: 1; }

/* ----- bundles ----- */
.bundle { display: grid; gap: var(--sp-4); }
.bundle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.bundle li { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--ink-2); }

/* ----- auth / narrow pages ----- */
.narrow { width: min(100% - 2 * var(--sp-4), 460px); margin: var(--sp-8) auto; }
.page-title { padding-block: var(--sp-7) var(--sp-5); }
.page-title h1 { font-size: var(--fs-h2); font-weight: 400; margin: 0 0 var(--sp-2); }

/* ----- filter bar ----- */
.filter { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.filter .input { flex: 1; min-width: 200px; }

/* ----- order / transfer ----- */
.order-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1.2fr .8fr; align-items: start; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--muted); }
.copyable { display: inline-flex; gap: var(--sp-2); align-items: center; }
.big-num { font-size: 1.6rem; font-weight: 500; letter-spacing: .04em; direction: ltr; display: inline-block; }
.timeline { display: flex; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--muted); flex-wrap: wrap; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.timeline .on .dot, .timeline .on { color: var(--ink); }
.timeline .on .dot { background: var(--accent); }
.timeline span { display: inline-flex; align-items: center; gap: 6px; }
.timeline hr { flex: 1; min-width: 20px; border: 0; border-top: 1px solid var(--line); }

/* ----- library ----- */
.lib-item { display: grid; gap: var(--sp-3); }
.files { display: grid; gap: var(--sp-2); }
.file { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); background: var(--sunken); border-radius: var(--r); padding: var(--sp-3) var(--sp-4); }
.file .fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }

/* ----- cart ----- */
.cart-line { display: flex; gap: var(--sp-4); align-items: center; padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .cover { width: 84px; flex: none; border-radius: var(--r); }
.cart-line .grow { flex: 1; min-width: 0; }
.empty { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ----- reveal ----- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== admin ===== */
.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #c3d0e6; padding: var(--sp-5) var(--sp-4); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; margin-bottom: var(--sp-6); padding-inline: var(--sp-3); }

.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a { padding: 10px var(--sp-3); border-radius: var(--r); color: #c3d0e6; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.admin-side nav a:hover { background: #0a2f8f; color: #fff; }
.admin-side nav a[aria-current=page] { background: #0a3aa8; box-shadow: inset 3px 0 0 var(--sky); color: #fff; }
.admin-side .count { background: var(--sky); color: var(--navy); border-radius: 999px; font-size: 12px; padding: 0 8px; }
.admin-main { padding: var(--sp-6) clamp(var(--sp-4), 3vw, var(--sp-7)) var(--sp-8); min-width: 0; }
.admin-main h1 { font-size: 1.8rem; font-weight: 500; margin-bottom: var(--sp-5); }
.stats { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: var(--sp-6); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.stat b { display: block; font-size: 1.9rem; font-weight: 500; line-height: 1.2; }
.stat span { color: var(--muted); font-size: var(--fs-sm); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: start; font-weight: 500; color: var(--muted); font-size: var(--fs-sm); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); background: var(--sunken); white-space: nowrap; }
td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f4faff; }
.admin-form { max-width: 760px; }
.admin-form.wide { max-width: 980px; }
.two { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
.img-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.img-row .cell { width: 120px; }
.img-row img { border-radius: var(--r); aspect-ratio: 4/3; object-fit: contain; background: var(--sunken); border: 1px solid var(--line); }
.pick { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-3) var(--sp-4); display: grid; gap: var(--sp-2); background: var(--surface); }
.admin-top { display: none; }

/* ===== responsive ===== */
@media (max-width: 960px) {
  .hero .wrap, .pdp, .order-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; order: -1; }
  .buybox { position: static; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .how { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .sticky-bar { display: block; }
  body.has-sticky { padding-bottom: 84px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: 88px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-3) var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; box-shadow: var(--shadow); }
  .nav a.nl { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.nl::after { display: none; }
  .nav .btn { margin-top: var(--sp-4); }
  .two { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: var(--sp-3); }
  .admin-side .brand { margin-bottom: var(--sp-3); }
  .admin-side nav { grid-auto-flow: column; overflow-x: auto; gap: var(--sp-2); padding-bottom: var(--sp-2); }
  .admin-side nav a { white-space: nowrap; }
}
@media (max-width: 520px) {
  .trust .wrap { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .band .btn { width: 100%; }
  .hero .cta .btn { flex: 1; }
  .cart-line .cover { width: 64px; }
}
@media print { .header, .footer, .sticky-bar, .admin-side { display: none; } }

/* hero enters with pure CSS so first paint never depends on JS */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .hero .reveal, .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .8s var(--ease) both; }
.hero .reveal[data-d="1"] { animation-delay: .08s; }
.hero .reveal[data-d="2"] { animation-delay: .16s; }
.hero .reveal[data-d="3"] { animation-delay: .24s; }

td .num, td .badge, th { white-space: nowrap; }


/* ===== RUWAD additions ===== */
.btn-lg { min-height: 54px; padding: 0 var(--sp-6); font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.section.alt { background: linear-gradient(180deg, #e8f6fd 0%, #f6fafe 100%); border-block: 1px solid var(--line); }
.page-title.center { text-align: center; }
.page-title.center .eyebrow::before { display: none; }
.center-lead { margin-inline: auto; }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; }
.ico.big { width: 56px; height: 56px; border-radius: 16px; }

/* hero visual */
.hero-art::before { background: radial-gradient(circle, rgba(80, 200, 240, .35) 0, transparent 70%); width: 90%; }
.art-card { position: absolute; display: flex; gap: var(--sp-3); align-items: center; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); animation: floaty 8s ease-in-out infinite; }
.art-card b { display: block; font-weight: 500; line-height: 1.4; font-size: .95rem; }
.art-card span:not(.ico) { font-size: 12.5px; color: var(--muted); }
.art-card .ico { width: 40px; height: 40px; border-radius: 12px; }
.art-card.a1 { top: 6%; inset-inline-start: 0; animation-delay: -2s; }
.art-card.a2 { bottom: 10%; inset-inline-end: 0; animation-delay: -4s; }
.art-card.a3 { bottom: 2%; inset-inline-start: 6%; animation-delay: -1s; }

/* service cards */
.scard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #a9dcf3; }
.sart { position: relative; height: 128px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(90% 120% at 0 0, rgba(80, 200, 240, .75), transparent 60%), linear-gradient(150deg, #0a3aa8, #001a5c); }
.sart::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 0); background-size: 18px 18px; }
.sico { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; backdrop-filter: blur(6px); }
.sart .tag { position: absolute; top: var(--sp-3); inset-inline-end: var(--sp-3); z-index: 1; }
.sbody { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.sbody h3 { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.sbody p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.sbody .btn { margin-top: auto; }
.feat-list.compact { gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--sp-3); }
.feat-list.compact svg { margin-top: 4px; color: var(--accent); }

/* why / steps */
.why { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); transition: transform .3s var(--ease), box-shadow .3s; }
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-item h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: 1.1rem; }
.why-item p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
.steps { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.step-card h3 { margin: var(--sp-3) 0 var(--sp-2); font-size: 1.05rem; }
.step-card p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
.step-card .step-n { background: var(--accent); color: #fff; }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--sunken); border-radius: 999px; margin-bottom: var(--sp-5); }
.tabs a { padding: 8px 22px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--accent-strong); }
.tabs a[aria-current=page] { background: #fff; color: var(--accent-strong); box-shadow: 0 1px 4px rgba(10, 21, 53, .12); }

/* polish */
.pcard .code-chip { color: var(--accent-strong); background: var(--accent-soft); padding: 1px 10px; border-radius: 999px; align-self: flex-start; letter-spacing: .06em; }
.pcard .pfoot .link { opacity: .9; }
.trust { background: #fff; }
.input:focus { box-shadow: 0 0 0 4px rgba(0, 32, 112, .16); }
th { background: #eef6fc; }
.stat { border-top: 3px solid var(--accent); }
.header.scrolled { box-shadow: 0 6px 24px -16px rgba(0, 32, 112, .4); }
.badge.accent { background: var(--accent-soft); color: var(--accent-strong); }
.sart .badge.accent { background: #fff; }
@media (max-width: 960px) {
  .hero-art { min-height: 300px; order: 0; }
  .art-card.a1 { inset-inline-start: 0; } .art-card.a2 { inset-inline-end: 0; }
}
@media (max-width: 520px) {
  .art-card { padding: 9px 12px; } .art-card b { font-size: .85rem; }
  .art-card.a3 { display: none; }
  .band .row { width: 100%; } .band .row .btn { flex: 1; }
  .tabs a { padding: 8px 18px; }
}

/* logo sizing per device */
@media (max-width: 760px) {
  .header .wrap { height: 72px; }
  .nav { inset: 72px 0 auto 0; }
  .brand-logo { height: 56px; }
  .footer .brand-logo { height: 56px; }
}
@media (max-width: 380px) { .brand-logo { height: 46px; } }
.btn-primary:hover { background: #0a3aa8; }
.link { color: #0a3aa8; }
.eyebrow { color: #0a3aa8; }
.eyebrow::before { background: var(--sky); height: 2px; border-radius: 2px; }
.pcard .code-chip, .tabs a:hover { color: var(--accent); }
.tabs a[aria-current=page] { color: var(--accent); }
.nav a.nl[aria-current=page] { color: var(--accent); font-weight: 500; }
.nav a.nl::after { background: var(--sky); }
:focus-visible { outline-color: var(--sky); }
.timeline .on .dot { background: var(--sky); }
.step-card .step-n, .step-n { background: var(--accent); color: #fff; }
.note { border-inline-start-color: var(--sky); }
