:root {
  color-scheme: dark;
  --bg: #02050e;
  --bg-2: #071021;
  --line: rgba(190, 220, 255, .14);
  --line-strong: rgba(190, 220, 255, .28);
  --glass: rgba(14, 26, 50, .55);
  --text: #f3f7ff;
  --muted: #a3b1c9;
  --blue: #2b7fff;
  --ice: #9bd6ff;
  --amber: #fbab1e;
  --danger: #ff7a7a;
  --ok: #6fe3a5;
  --radius: 24px;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--sans); letter-spacing: -.011em; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h1 em, h2 em { font-style: normal; color: transparent; background: linear-gradient(100deg, #cdeaff 0%, #6fb6ff 55%, #3d7dff 100%); -webkit-background-clip: text; background-clip: text; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
.state { padding: 48px 0; text-align: center; grid-column: 1 / -1; }
.logo { width: 76px; height: auto; }
.logo-lg { width: 130px; margin: 0 auto 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; transition: transform .15s, background .15s, box-shadow .2s, border-color .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: #06101f; }
.btn-white:hover:not(:disabled) { box-shadow: 0 0 28px rgba(155, 214, 255, .55); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .09); }
.btn-danger { background: var(--danger); color: #240404; }
.btn-danger-text { color: var(--danger); }
.btn-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: #fff; color: #06101f; font-size: 1.25rem; line-height: 1; transition: box-shadow .2s, transform .15s; }
.btn-icon:hover:not(:disabled) { box-shadow: 0 0 22px rgba(155, 214, 255, .6); transform: scale(1.06); }

/* Header */
#site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(2, 5, 14, .62); border-bottom: 1px solid rgba(190, 220, 255, .07); }
.header-inner { width: min(1200px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 0; }
.brand { justify-self: start; display: block; }
.nav-pill { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.nav-pill a { padding: 7px 16px; border-radius: 999px; color: var(--muted); font-size: .92rem; transition: color .15s, background .15s; white-space: nowrap; }
.nav-pill a:hover { color: var(--text); }
.nav-pill a[aria-current] { background: rgba(255, 255, 255, .12); color: var(--text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lang { height: 40px; min-width: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.lang:hover { background: rgba(255, 255, 255, .09); }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #201300; font-size: .75rem; font-weight: 600; }

/* Eyebrow pill with light lines on either side */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: .85rem; }
.eyebrow span { padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 -8px 12px -10px var(--ice); }
.eyebrow::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, var(--ice), transparent); }
.eyebrow-center::before { content: ''; width: 64px; height: 1px; background: linear-gradient(270deg, var(--ice), transparent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); isolation: isolate; }
.hero-light { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(600px 420px at 100% 0, rgba(120, 200, 255, .55), transparent 70%),
  radial-gradient(760px 520px at 74% 56%, rgba(26, 92, 255, .42), transparent 72%),
  radial-gradient(520px 300px at 0 0, rgba(120, 190, 255, .28), transparent 72%); }
.network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 32px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.ribbon { position: absolute; inset: 50% auto auto 50%; width: 150%; max-width: 900px; transform: translate(-50%, -50%); overflow: visible; }
.phone { position: relative; width: 250px; aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 44px; background: linear-gradient(150deg, #dcefff 0%, #3a5a86 30%, #0c1730 70%, #6db8ff 100%); box-shadow: 0 0 70px rgba(70, 150, 255, .55), 0 40px 80px rgba(0, 0, 0, .6); animation: float 7s ease-in-out infinite; }
.phone-screen { position: relative; height: 100%; overflow: hidden; display: grid; place-items: center; border-radius: 36px; background: radial-gradient(140% 70% at 50% 110%, #1b66ff, transparent 70%), linear-gradient(170deg, #0c1c38, #030814); }
.phone-screen img { width: 66%; }
.phone-island { position: absolute; top: 12px; left: 50%; width: 76px; height: 21px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone-node { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #5db4ff; box-shadow: 0 0 16px 4px rgba(93, 180, 255, .75); }
.n1 { top: 22%; left: 20%; } .n2 { top: 72%; right: 18%; } .n3 { top: 84%; left: 30%; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Platform pills */
.platforms { display: grid; justify-items: center; gap: 24px; padding-block: 24px; }
.logo-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logo-pills li { padding: 11px 26px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03); font-weight: 600; letter-spacing: -.01em; }

/* Sections and cards */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; justify-items: center; gap: 16px; margin-bottom: 44px; text-align: center; }
.center-row { display: flex; justify-content: center; margin-top: 40px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(18px); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, box-shadow .25s, transform .2s; }
.product-card:hover { border-color: rgba(155, 214, 255, .7); box-shadow: 0 0 34px rgba(70, 150, 255, .35), inset 0 0 22px rgba(155, 214, 255, .1); transform: translateY(-3px); }
.product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, rgba(43, 127, 255, .3), transparent), rgba(255, 255, 255, .02); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.art { width: 70%; height: 70%; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(251, 171, 30, .16); border: 1px solid rgba(251, 171, 30, .5); color: var(--amber); font-size: .75rem; font-weight: 500; }
.badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badges:empty { display: none; }
.badge-promo { background: var(--amber); border-color: var(--amber); color: #201300; font-weight: 600; }
.badge-condition { background: rgba(155, 214, 255, .14); border-color: rgba(155, 214, 255, .5); color: var(--ice); }
.badge-out { background: rgba(255, 122, 122, .14); border-color: rgba(255, 122, 122, .5); color: var(--danger); }
.badge-inline { justify-self: start; }
.product-body { display: grid; gap: 4px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.product-cat { color: var(--muted); font-size: .8rem; }
.product-body h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-foot .price { font-size: 1.2rem; }
.price-lg { font-size: 2.1rem; letter-spacing: -.02em; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { display: grid; gap: 10px; align-content: start; padding: 28px; overflow: hidden; background: linear-gradient(155deg, rgba(43, 100, 255, .22), transparent 55%), var(--glass); }
.why-num { color: var(--amber); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.why-card h3 { font-size: 1.25rem; font-weight: 500; }

.visit { display: grid; grid-template-columns: 1fr 1.2fr; overflow: hidden; }
.visit-copy { display: grid; gap: 22px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 48px); }
.visit dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.visit dt { color: var(--muted); }
.visit dd a:hover { color: var(--ice); }
.visit-map { width: 100%; height: 100%; min-height: 400px; border: 0; filter: invert(.92) hue-rotate(190deg) saturate(.7); }

/* Footer */
#site-footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 28px; }
.footer-inner .logo { margin-bottom: 10px; }
.footer-col { display: grid; gap: 7px; align-content: start; }
.footer-col h4 { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }

/* Catalog: giant soft word behind the glass cards */
.catalog-head { position: relative; overflow-x: clip; padding: clamp(48px, 7vw, 88px) 0 clamp(90px, 13vw, 180px); isolation: isolate; }
.catalog-glow { position: absolute; z-index: -2; left: 50%; top: 60%; width: min(860px, 110vw); height: 460px; transform: translate(-50%, -50%) rotate(-14deg); border-radius: 50%; background: radial-gradient(closest-side, rgba(35, 110, 255, .75), transparent); filter: blur(30px); }
.ghost-word { position: absolute; z-index: -1; inset: auto 0 -.3em; overflow: hidden; text-align: center; font-size: clamp(5rem, 19vw, 16rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; color: transparent; background: linear-gradient(180deg, rgba(140, 200, 255, .42), rgba(30, 80, 200, 0) 82%); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; }
.catalog-intro { display: grid; gap: 14px; }
.catalog-body { padding-bottom: 96px; position: relative; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .92rem; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: #fff; color: #06101f; border-color: #fff; }
#count { margin-bottom: 16px; }

.input { width: 100%; min-height: 44px; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(5, 12, 26, .75); color: var(--text); font: inherit; }
.input::placeholder { color: #8493ac; }
.toolbar-right .input { width: auto; border-radius: 999px; padding-inline: 18px; }
#search { width: 230px; }
select.input option { background: #0a1426; }

/* Product page */
.product-page { padding-block: 32px 96px; }
.back { display: inline-block; margin-bottom: 22px; color: var(--muted); }
.back::before { content: '← '; }
.back:hover { color: var(--text); }
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.product-stage { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, rgba(43, 127, 255, .38), transparent), var(--glass); }
.product-stage img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; height: 72px; padding: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--ice); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: grid; gap: 12px; }
.product-info h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.description { white-space: pre-line; margin-block: 8px; }
.cta-column { display: grid; gap: 10px; margin-top: 10px; }
.stock { font-size: .9rem; white-space: nowrap; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--danger); }

/* Cart drawer and modals */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(1, 3, 10, .72); backdrop-filter: blur(4px); }
.drawer { width: min(430px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; margin-inline-start: auto; padding: 0; border: 0; border-inline-start: 1px solid var(--line-strong); background: var(--bg-2); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer-head, .drawer-foot { padding: 20px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { display: grid; gap: 12px; border-top: 1px solid var(--line); }
.cart-empty { padding: 44px 0; text-align: center; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 76px; height: 76px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: grid; gap: 3px; flex: 1; min-width: 0; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty button:not(.link) { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; }
.qty .link { margin-inline-start: auto; min-height: 32px; border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: .875rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 500; }

.modal { width: min(600px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 26px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); }
.modal-sm { width: min(430px, 100% - 24px); }
.modal h2 { font-size: 1.5rem; margin-bottom: 12px; }
.modal form { display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: .92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.error { color: var(--danger); font-size: .92rem; }
.file-btn { position: relative; justify-self: start; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-grid:empty { display: none; }
.photo { position: relative; width: 82px; height: 82px; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-strong); }
.photo button { position: absolute; top: -8px; inset-inline-end: -8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; color: #06101f; line-height: 1; }

/* Admin */
.admin { background: radial-gradient(800px 420px at 90% -10%, rgba(35, 100, 255, .35), transparent), var(--bg); }
.admin-main { padding-block: 28px 80px; }
.login { width: min(420px, 100%); margin: 10vh auto 0; padding: 32px; display: grid; gap: 16px; text-align: center; }
.login h1 { font-size: 1.5rem; }
.login form { display: grid; gap: 14px; text-align: start; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.admin-title { display: flex; align-items: center; gap: 16px; }
.admin-title h1 { font-size: 1.6rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 18px; border: 1px solid rgba(251, 171, 30, .4); border-radius: 16px; background: rgba(251, 171, 30, .08); }
.status { min-height: 1.6em; color: var(--ok); font-size: .9rem; margin-bottom: 8px; }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 110px 110px auto; align-items: center; gap: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); }
.admin-thumb { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-name { display: grid; min-width: 0; }
.admin-name strong { font-weight: 500; overflow-wrap: anywhere; }
.admin-row-actions { display: flex; gap: 6px; }

/* Delivery */
.delivery-note { display: inline-flex; align-items: center; justify-self: start; gap: 9px; width: fit-content; padding: 7px 14px; border: 1px solid rgba(251, 171, 30, .4); border-radius: 999px; background: rgba(251, 171, 30, .09); color: #ffd488; font-size: .92rem; font-weight: 500; }
.truck { width: 20px; height: 20px; flex: none; }
[dir="ltr"] .truck { transform: none; }
[dir="rtl"] .truck { transform: scaleX(-1); }

/* Two-step sign-in */
.sec-step { display: grid; gap: 14px; }
.sec-step h3 { font-size: 1.1rem; font-weight: 600; }
.qr-box { justify-self: center; width: min(240px, 100%); border-radius: 14px; overflow: hidden; }
.qr-box svg { display: block; width: 100%; height: auto; }
.sec-key { justify-self: center; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: .9rem; word-break: break-all; text-align: center; user-select: all; }
.code-input { letter-spacing: .1em; }
.recovery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; text-align: center; }

/* Google reviews */
.rating-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; padding: 26px; text-align: center; }
.stars { color: var(--amber); letter-spacing: .08em; white-space: nowrap; }
.stars-lg { font-size: 1.5rem; }
.rating-text { font-size: 1.15rem; font-weight: 500; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.review-grid:empty { display: none; }
.review-card { display: grid; gap: 12px; align-content: start; margin: 0; padding: 24px; }
.review-card blockquote { margin: 0; overflow-wrap: anywhere; }
.review-card figcaption { font-size: .9rem; font-weight: 500; overflow-wrap: anywhere; }
.admin-section { margin-top: 36px; margin-bottom: 14px; }
.admin-section h2 { font-size: 1.3rem; }
.admin-review { grid-template-columns: minmax(0, 1fr) auto; }
.admin-review .admin-name span { overflow-wrap: anywhere; }
@media (max-width: 900px) { .admin-review { grid-template-columns: minmax(0, 1fr); } }

/* 404: the hero phone, out of signal */
.nf { display: grid; align-items: center; min-height: calc(100dvh - 68px); }
.nf .lead { max-width: 30rem; }
.nf-search { display: flex; flex-wrap: wrap; gap: 10px; width: min(460px, 100%); }
.nf-search .input { flex: 1 1 220px; width: auto; min-height: 48px; border-radius: 999px; padding-inline: 20px; }
.nf-visual { display: grid; place-items: center; }
.nf-screen { background: radial-gradient(120% 55% at 50% 115%, #0f2c6b, transparent 72%), linear-gradient(170deg, #0a1426, #030711); }
.nf-signal { position: absolute; top: 44px; inset-inline-end: 24px; width: 28px; height: 18px; fill: rgba(190, 220, 255, .22); }
.nf-signal rect { animation: nf-signal-drop .7s var(--ease) backwards; }
.nf-signal rect:nth-child(4) { animation-delay: .5s; }
.nf-signal rect:nth-child(3) { animation-delay: .85s; }
.nf-signal rect:nth-child(2) { animation-delay: 1.2s; }
.nf-signal rect:nth-child(1) { animation-delay: 1.55s; }
.nf-readout { display: grid; gap: 4px; justify-items: center; text-align: center; }
.nf-code { color: var(--amber); font-size: 4.25rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nf-status { color: var(--muted); font-size: .9rem; }
@keyframes nf-signal-drop { from { fill: var(--ice); } }
@media (max-width: 900px) {
  .nf { min-height: 0; }
  .nf-visual .phone { width: 200px; }
  .nf-code { font-size: 3.4rem; }
}

/* Activity list */
.activity-list { display: grid; gap: 2px; }
.event-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.event-warn > :first-child { color: var(--danger); }

/* Battery */
.battery { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--ok); font-size: .82rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.battery svg { width: 24px; height: 12px; flex: none; }
[dir="rtl"] .battery svg { transform: scaleX(-1); }
.battery-low { color: var(--amber); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Sale prices */
.price-stack { display: grid; min-width: 0; line-height: 1.25; }
.price-stack small { font-size: .75rem; }
.old-price { color: var(--muted); font-size: .85rem; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; }
.old-price:empty, .save:empty { display: none; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price-row .old-price { font-size: 1.1rem; }
.save { color: var(--amber); font-size: .92rem; font-weight: 500; }

/* Options on the product page */
.options { min-width: 0; margin: 6px 0 0; padding: 0; border: 0; }
.options legend { padding: 0; margin-bottom: 10px; font-size: .92rem; font-weight: 600; }
.options legend strong { font-weight: 400; color: var(--muted); }
.option-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.option > span { display: grid; gap: 1px; align-content: center; height: 100%; min-height: 58px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: .92rem; font-weight: 500; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.option small { color: var(--muted); font-size: .78rem; font-weight: 400; }
.option:hover > span { border-color: var(--ice); }
.option:active > span { transform: scale(.97); }
.option input:checked + span { border-color: var(--ice); background: rgba(155, 214, 255, .08); box-shadow: 0 0 0 1px var(--ice); }
.option input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 3px; }
.swatch { display: block; width: 20px; height: 20px; margin-bottom: 4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); }
.condition-box { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.condition-box dt { color: var(--muted); font-size: .8rem; }
.condition-box dd { font-weight: 500; }
.condition-note { flex-basis: 100%; }
.condition-note dd { font-weight: 400; color: var(--muted); font-size: .92rem; }
.product-stage { position: relative; }
.chips-extra { margin-bottom: 14px; align-items: center; }
.chip-divider { width: 1px; height: 22px; margin-inline: 4px; background: var(--line-strong); }
.chip-promo[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #201300; }

/* Options in the admin form */
.option-rows { display: grid; gap: 8px; }
.option-rows:empty { display: none; }
.option-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 36px; align-items: center; gap: 8px; }
.option-row[data-row="color"] { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) 52px minmax(0, 1fr) 36px; }
.field-wide { grid-column: 1 / -1; }
.swatch-input { padding: 4px; cursor: pointer; }
.row-remove { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--danger); font-size: 1.1rem; line-height: 1; }
.add-row { justify-self: start; }

/* Floating WhatsApp button */
.wa-float { position: fixed; z-index: 30; inset-inline-end: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #052e16; box-shadow: 0 10px 30px rgba(37, 211, 102, .35), 0 4px 12px rgba(0, 0, 0, .4); transition: transform .4s var(--ease), box-shadow .4s var(--ease); animation: pop-in .7s var(--ease) .8s backwards; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 38px rgba(37, 211, 102, .5), 0 4px 12px rgba(0, 0, 0, .4); }
.wa-float:active { transform: scale(.95); }

/* Apple-style motion: long, soft easing and small distances */
.btn { transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), border-color .25s; }
.btn:hover:not(:disabled) { transform: scale(1.03); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-icon { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn-icon:active:not(:disabled) { transform: scale(.92); }
.chip { transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.chip:active { transform: scale(.96); }
#site-header { backdrop-filter: saturate(180%) blur(20px); }
.card { transition: border-color .4s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease); }
.product-card:hover { transform: translateY(-6px) scale(1.012); }
.product-media img, .art { transition: transform .9s var(--ease); }
.product-card:hover .product-media img, .product-card:hover .art { transform: scale(1.06); }
.why-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.hero-light { will-change: transform; }
.phone-tilt { position: relative; transform-origin: 50% 80%; will-change: transform; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-in { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes phone-in { from { opacity: 0; scale: .86; translate: 0 50px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes price-pop { 0% { opacity: .35; translate: 0 6px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.motion .reveal:not(.in) { opacity: 0; }
.motion .reveal.in { animation: rise 1s var(--ease) var(--delay, 0ms) backwards; }
.motion .settled .reveal.in { animation: glow-in .3s ease backwards; }
.motion .hero-copy > * { animation: rise 1.1s var(--ease) backwards; }
.motion .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .16s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .24s; }
.motion .phone-tilt { animation: phone-in 1.5s var(--ease) .1s backwards; }
.motion .ribbon, .motion .hero-light { animation: glow-in 1.8s ease backwards; }
.motion .catalog-intro > *, .motion .ghost-word { animation: rise 1.1s var(--ease) backwards; }
.motion .catalog-intro > :nth-child(2) { animation-delay: .08s; }
.motion .ghost-word { animation-delay: .12s; }
.price.pop { animation: price-pop .5s var(--ease); display: inline-block; }
.drawer[open] { animation: drawer-in .55s var(--ease-soft); }
.modal[open] { animation: modal-in .45s var(--ease); }
dialog[open]::backdrop { animation: backdrop-in .4s ease; }

/* Arabic: its own font, no letter spacing (it breaks joined letters), mirrored layout */
:root[lang="ar"] { --sans: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif; }
:root[lang="ar"] * { letter-spacing: 0 !important; }
:root[lang="ar"] h1, :root[lang="ar"] h2 { line-height: 1.25; }
:root[lang="ar"] .ghost-word { line-height: 1.45; }
[dir="rtl"] .back::before { content: '→ '; }
[dir="rtl"] .eyebrow::after { background: linear-gradient(270deg, var(--ice), transparent); }
[dir="rtl"] .eyebrow-center::before { background: linear-gradient(90deg, var(--ice), transparent); }
[dir="rtl"] h1 em, [dir="rtl"] h2 em { background-image: linear-gradient(260deg, #cdeaff 0%, #6fb6ff 55%, #3d7dff 100%); }
[dir="rtl"] .hero-light, [dir="rtl"] .network { scale: -1 1; }
[dir="rtl"] .ribbon { transform: translate(-50%, -50%) scaleX(-1); }
[dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }

@media (max-width: 900px) {
  .hero-grid, .product-layout, .visit { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .admin-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .admin-row .stock { grid-column: 2; }
  .admin-row > .price { grid-column: 3; grid-row: 1; }
  .admin-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-pill { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .wrap, .header-inner { width: calc(100% - 32px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 12px; }
  .product-foot .price { font-size: 1rem; }
  .btn-icon { width: 44px; height: 44px; }
  .toolbar-right, #search, .toolbar-right .input { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  #site-footer { padding-bottom: 100px; }
  .option-row, .option-row[data-row="color"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .option-row > :first-child { grid-column: 1 / -1; }
  .option-row[data-row="color"] { grid-template-columns: 52px minmax(0, 1fr) 36px; }
  .option-row[data-row="color"] > :nth-child(2) { grid-column: 1 / -1; }
  .visit-map { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Latin option names stay aligned with the rest of the Arabic layout */
[dir="rtl"] .option > span > bdi { text-align: right; }
