/* =========================================================================
   Nexa Solutions — main stylesheet
   Arabic-first (RTL), mobile-first. Colours live in :root as tokens.
   Each product page sets --brand / --brand-2 / --brand-soft on <body>.
   ========================================================================= */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --text: #0f172a;
  --muted: #5b6678;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #eef3f9;
  --lime: #65c21a;
  --lime-2: #b5f04a;
  --lime-ink: #2f6b05;

  --bexa: #1d4ed8;
  --bexa-2: #3d8bff;
  --bexa-soft: #e8f0ff;
  --foodexa: #f97316;
  --foodexa-2: #ff9f45;
  --foodexa-soft: #fff1e6;
  --storexa: #7c3aed;
  --storexa-2: #a78bfa;
  --storexa-soft: #f2ecff;

  --brand: var(--lime);
  --brand-2: var(--lime-2);
  --brand-soft: #eefbe2;
  --brand-ink: var(--lime-ink);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --font: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
}

body.theme-bexa { --brand: var(--bexa); --brand-2: var(--bexa-2); --brand-soft: var(--bexa-soft); --brand-ink: var(--bexa); }
body.theme-foodexa { --brand: var(--foodexa); --brand-2: var(--foodexa-2); --brand-soft: var(--foodexa-soft); --brand-ink: #c2410c; }
body.theme-storexa { --brand: var(--storexa); --brand-2: var(--storexa-2); --brand-soft: var(--storexa-soft); --brand-ink: var(--storexa); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px var(--brand); }
.btn-lime { background: linear-gradient(135deg, var(--lime), var(--lime-2)); color: #0b1a02; box-shadow: 0 12px 28px -12px rgba(101, 194, 26, .8); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px -10px #25d366; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo img { width: 40px; height: 40px; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; line-height: 1; margin-top: 2px; }
.logo span { line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover, .nav a.active { background: var(--bg-tint); color: var(--ink); }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.menu-btn .i { width: 24px; height: 24px; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff; padding: 20px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.mobile-nav.open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a { padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 12px; }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav a img { width: 32px; height: 32px; }
.mobile-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.mobile-nav .btn { margin-top: 10px; }
body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.section-dark .section-head p { color: #94a3b8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.section-dark .eyebrow { background: rgba(181, 240, 74, .12); color: var(--lime-2); }
h2.title { font-size: clamp(28px, 4.2vw, 44px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  padding: 88px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(61, 139, 255, .35), transparent 60%),
    radial-gradient(520px 380px at 10% 30%, rgba(124, 58, 237, .32), transparent 60%),
    radial-gradient(520px 360px at 50% 110%, rgba(249, 115, 22, .28), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 14.5px; font-weight: 600; margin-bottom: 22px;
}
.hero-badge b { background: linear-gradient(135deg, var(--lime), var(--lime-2)); color: #0b1a02; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.2; margin-bottom: 20px; color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, var(--lime-2), #7dd3fc 55%, var(--storexa-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #cbd5e1; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: #cbd5e1; font-size: 15px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .i { color: var(--lime-2); }

.hero-stack { position: relative; display: grid; gap: 14px; }
.hero-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s, background .25s, border-color .25s;
}
.hero-card:hover { transform: translateX(-6px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.hero-card img { width: 64px; height: 64px; flex: none; }
.hero-card h3 { font-size: 20px; margin: 0; color: #fff; }
.hero-card p { margin: 0; color: #94a3b8; font-size: 15px; line-height: 1.6; }
.hero-card .arrow { margin-inline-start: auto; color: #64748b; transition: color .2s, transform .2s; }
.hero-card:hover .arrow { color: #fff; transform: translateX(-4px); }
.hero-card:nth-child(2) { margin-inline-start: 28px; }
.hero-card:nth-child(3) { margin-inline-start: 56px; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 80px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-card:nth-child(2), .hero-card:nth-child(3) { margin-inline-start: 0; }
}

/* ---------- Product cards (home) ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  --c: var(--lime); --c2: var(--lime-2); --soft: #eefbe2;
  position: relative; display: flex; flex-direction: column; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card.bexa { --c: var(--bexa); --c2: var(--bexa-2); --soft: var(--bexa-soft); }
.product-card.foodexa { --c: var(--foodexa); --c2: var(--foodexa-2); --soft: var(--foodexa-soft); }
.product-card.storexa { --c: var(--storexa); --c2: var(--storexa-2); --soft: var(--storexa-soft); }
.product-card .shot { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--c2), var(--c)); overflow: hidden; }
.product-card .shot img.screen { position: absolute; inset-inline: 7%; top: 12%; width: 86%; border-radius: 12px 12px 0 0; box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); transition: transform .4s; }
.product-card:hover .shot img.screen { transform: translateY(-6px) scale(1.02); }
.product-card .body { padding: 26px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .name { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-card .name img { width: 48px; height: 48px; }
.product-card .name h3 { font-size: 24px; margin: 0; }
.product-card .name span { display: block; font-size: 14px; color: var(--c); font-weight: 700; line-height: 1.2; }
.product-card p { color: var(--muted); font-size: 16px; }
.product-card ul.ticks { margin-bottom: 22px; }
.product-card .formerly { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.product-card .actions { margin-top: auto; display: flex; gap: 10px; }
.product-card .btn-primary { background: var(--c); box-shadow: 0 10px 24px -10px var(--c); }
@media (max-width: 1024px) { .products-grid { grid-template-columns: 1fr 1fr; } .product-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .products-grid { grid-template-columns: 1fr; } }

ul.ticks li { position: relative; padding-inline-start: 30px; margin-bottom: 8px; font-size: 15.5px; line-height: 1.6; }
ul.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--soft, var(--brand-soft)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Ecosystem ---------- */
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eco-flow { display: grid; gap: 14px; }
.flow-step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.flow-step .dot { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.flow-step .dot img { width: 46px; height: 46px; }
.flow-step h3 { font-size: 18px; margin: 0 0 4px; }
.flow-step p { margin: 0; color: #94a3b8; font-size: 15px; line-height: 1.7; }
.flow-arrow { display: flex; justify-content: center; color: var(--lime-2); margin: -6px 0; }
.flow-arrow .i { transform: rotate(90deg); }
@media (max-width: 900px) { .eco { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- What's new ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.news-card { --c: var(--lime); --soft: #eefbe2; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.news-card.bexa { --c: var(--bexa); --soft: var(--bexa-soft); }
.news-card.foodexa { --c: var(--foodexa); --soft: var(--foodexa-soft); }
.news-card.storexa { --c: var(--storexa); --soft: var(--storexa-soft); }
.news-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--c); }
.news-card .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c); background: var(--soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.news-card .tag img { width: 18px; height: 18px; }
.news-card h3 { font-size: 19px; }
.news-card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Features (icon grid) ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px; }
.feature .ico .i { width: 26px; height: 26px; }
.feature h3 { font-size: 18.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }
.section-soft .feature { background: #fff; }
.section-dark .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .feature p { color: #94a3b8; }
.section-dark .feature .ico { background: rgba(181,240,74,.12); color: var(--lime-2); }

/* ---------- Video cards ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-align: start; padding: 0; transition: transform .2s, box-shadow .2s; color: inherit; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; background: #0b1220; overflow: hidden; }
.video-card .thumb img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card .thumb img.fallback { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); opacity: .9; }
.video-card .thumb.t-bexa { background: linear-gradient(135deg, #172b7a, #0b1220); }
.video-card .thumb.t-foodexa { background: linear-gradient(135deg, #7c2d12, #0b1220); }
.video-card .thumb.t-storexa { background: linear-gradient(135deg, #4c1d95, #0b1220); }
.video-card .thumb.portrait img.poster { object-fit: contain; }
.video-card:hover .thumb img.poster { transform: scale(1.04); }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 60%); }
.video-card .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.video-card:hover .play span { transform: scale(1.1); }
.video-card .play .i { width: 26px; height: 26px; margin-inline-start: -3px; }
.video-card .dur { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; padding: 1px 8px; border-radius: 6px; direction: ltr; }
.video-card .meta { padding: 18px 20px 20px; }
.video-card .meta .chips { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--ink-2); }
.chip.bexa { background: var(--bexa-soft); color: var(--bexa); }
.chip.foodexa { background: var(--foodexa-soft); color: #c2410c; }
.chip.storexa { background: var(--storexa-soft); color: var(--storexa); }
.chip.nexa { background: #eefbe2; color: var(--lime-ink); }
.video-card h3 { font-size: 17.5px; margin: 0 0 4px; }
.video-card p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filter { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.filter img { width: 22px; height: 22px; }
.filter:hover { border-color: var(--ink-2); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Modal (video / image) ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 10, 20, .88); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.modal-box video, .modal-box iframe, .modal-box img { width: 100%; max-height: calc(100vh - 120px); border-radius: 14px; background: #000; object-fit: contain; }
.modal-media { width: 100%; display: flex; justify-content: center; }
.modal-box iframe { aspect-ratio: 16 / 9; height: auto; border: 0; }
.modal-box.portrait { max-width: 440px; }
.modal-title { color: #fff; font-weight: 700; margin-top: 14px; text-align: center; }
.modal-close { position: absolute; top: -52px; inset-inline-end: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.modal-close:hover { background: rgba(255,255,255,.26); }
@media (max-width: 600px) { .modal-close { top: -50px; } .modal { padding: 64px 12px 20px; } }

/* ---------- Customers ---------- */
.customers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.customer { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.customer .logo-box { height: 64px; display: flex; align-items: center; }
.customer .logo-box img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; }
.customer .initials { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--ink-2), var(--ink)); }
.customer .initials.t-bexa { background: linear-gradient(135deg, var(--bexa-2), var(--bexa)); }
.customer .initials.t-foodexa { background: linear-gradient(135deg, var(--foodexa-2), var(--foodexa)); }
.customer .initials.t-storexa { background: linear-gradient(135deg, var(--storexa-2), var(--storexa)); }
.customer .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.customer { transition: transform .2s, box-shadow .2s; }
.customer:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.customer h3 { font-size: 18px; margin: 0; }
.customer .where { color: var(--muted); font-size: 14px; }
.customer blockquote { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; border-inline-start: 3px solid var(--lime); padding-inline-start: 12px; }
.join-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 24px; border: 2px dashed #cbd5e1; background: #fff; margin-top: 24px; }
.join-card h3 { font-size: 22px; margin-bottom: 4px; }
.join-card p { margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, arabic-indic); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--lime-2); font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.step h3 { font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-row { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .2s; }
a.info-row:hover { background: rgba(255,255,255,.1); }
.info-row .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(181,240,74,.12); color: var(--lime-2); flex: none; }
.info-row small { display: block; color: #94a3b8; font-size: 14px; }
.info-row strong { color: #fff; font-size: 17px; }
.form { background: #fff; color: var(--text); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.form h3 { font-size: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--text); width: 100%;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { padding: 22px; } .form .row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 48px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 0% 100%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%), radial-gradient(400px 260px at 100% 0%, rgba(181,240,74,.22), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cbd5e1; margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } .cta-band .actions, .cta-band .actions .btn { width: 100%; } }

/* ---------- Product page hero ---------- */
.p-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 72px 0 0; }
.p-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 80% 0%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 65%), radial-gradient(500px 360px at 0% 60%, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 65%); }
.p-hero .container { position: relative; }
.p-hero .intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.p-hero .brand-line { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.p-hero .brand-line img { width: 64px; height: 64px; }
.p-hero .brand-line b { font-size: 28px; display: block; line-height: 1.1; }
.p-hero .brand-line small { color: #94a3b8; font-size: 14px; }
.p-hero h1 { font-size: clamp(32px, 5vw, 56px); color: #fff; margin-bottom: 18px; }
.p-hero h1 em { font-style: normal; color: var(--brand-2); }
.p-hero .lead { color: #cbd5e1; margin-bottom: 28px; }
.p-hero .highlights { display: grid; gap: 12px; }
.p-hero .highlights li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-weight: 600; }
.p-hero .highlights .i { color: var(--brand-2); width: 22px; height: 22px; }
.p-hero .screen-wrap { margin-top: 56px; perspective: 1600px; }
.p-hero .screen-wrap img { width: 100%; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 60px -10px color-mix(in srgb, var(--brand) 60%, transparent), 0 30px 80px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
.formerly-tag { display: inline-block; font-size: 13px; color: #94a3b8; border: 1px solid rgba(255,255,255,.15); padding: 2px 10px; border-radius: 999px; margin-inline-start: 8px; vertical-align: middle; }
@media (max-width: 900px) { .p-hero { padding-top: 48px; } .p-hero .intro { grid-template-columns: 1fr; } .p-hero .screen-wrap { margin-top: 36px; } }

/* sub-navigation on product pages */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.subnav a:hover, .subnav a.active { background: var(--brand-soft); color: var(--brand-ink); }

/* split rows (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split h3 { font-size: clamp(24px, 3vw, 32px); }
.split p { color: var(--muted); font-size: 17px; }
.split .media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.split .media.phones { box-shadow: none; border: 0; background: transparent; display: flex; gap: 14px; justify-content: center; }
.split .media.phones img { width: calc(33.33% - 10px); max-width: 220px; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split .media.phones img:nth-child(2) { transform: translateY(-24px); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 64px; }
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; text-align: start; transition: transform .2s, box-shadow .2s; }
.gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.gallery span { display: block; padding: 10px 14px; font-weight: 700; font-size: 14.5px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px var(--brand); }
.plan .badge { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan .step-name { color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.plan h3 { font-size: 24px; margin: 4px 0; }
.plan .tagline { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.plan .price { font-size: 42px; font-weight: 800; line-height: 1; color: var(--ink); margin-bottom: 4px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .price-note { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan ul.ticks { margin-bottom: 24px; flex: 1; }
.plan .fit { font-size: 14px; color: var(--muted); background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.addons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.addon { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.addon b { color: var(--brand-ink); }
.pricing-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 20px; }
@media (max-width: 960px) { .plans, .plans.two { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* apps trio (Foodexa) */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app { border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.app .pic { background: var(--brand-soft); padding: 28px 28px 0; display: flex; justify-content: center; }
.app .pic img { width: 62%; border-radius: 18px 18px 0 0; box-shadow: var(--shadow); }
.app .txt { padding: 22px 24px 26px; }
.app h3 { font-size: 20px; }
.app p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* compare (Storexa plans) */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15.5px; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); font-size: 16px; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 700; color: var(--ink-2); }
.table-scroll { overflow-x: auto; border-radius: 18px; }

/* ---------- Free-trial download card ---------- */
.trial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .trial-grid { grid-template-columns: 1fr; } }
.trial-card { --c: var(--brand); --soft: var(--brand-soft); position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-sm); overflow: hidden; }
.trial-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--c); }
.trial-card.t-bexa { --c: var(--bexa); --soft: var(--bexa-soft); }
.trial-card.t-foodexa { --c: var(--foodexa); --soft: var(--foodexa-soft); }
.trial-card .btn-primary { background: var(--c); box-shadow: 0 10px 24px -10px var(--c); }
.trial-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.trial-top img { width: 56px; height: 56px; flex: none; }
.trial-top h3 { font-size: 21px; margin: 0 0 6px; }
.trial-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.trial-meta span { display: inline-flex; align-items: center; gap: 6px; }
.trial-meta .i { width: 16px; height: 16px; color: var(--c); }
.trial-req { display: flex; gap: 10px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.trial-req .i { margin-top: 3px; }
.trial-login { background: var(--soft); border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; }
.trial-login-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.trial-login-head .i { color: var(--c); }
.cred { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.cred + .cred { border-top: 1px dashed rgba(15, 23, 42, .12); }
.cred span { color: var(--muted); font-size: 14.5px; min-width: 96px; }
.cred code { font-family: var(--font); unicode-bidi: plaintext; font-size: 16px; font-weight: 700; color: var(--ink); background: #fff; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); }
.cred .copy { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; }
.cred .copy:hover { border-color: var(--c); color: var(--c); }
.cred .copy.ok { background: var(--lime); border-color: var(--lime); color: #fff; }
.cred .copy .i { width: 17px; height: 17px; }
.trial-steps { margin: 0 0 14px; padding-inline-start: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.trial-steps li { margin-bottom: 6px; padding-inline-start: 4px; }
.trial-steps li::marker { color: var(--c); font-weight: 800; }
.trial-note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.trial-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .trial-card { padding: 22px 18px; } .trial-actions .btn { width: 100%; } .cred span { min-width: 80px; } }

/* ---------- Stats / about ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about p { color: var(--muted); font-size: 17.5px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { padding: 22px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); }
.value .i { width: 28px; height: 28px; color: var(--lime-ink); margin-bottom: 10px; }
.value h3 { font-size: 17px; margin-bottom: 4px; }
.value p { font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 420px) { .values { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #070c17; color: #94a3b8; padding: 72px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo small { color: #64748b; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; }
.site-footer .social a:hover { background: rgba(255,255,255,.14); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* floating WhatsApp */
.wa-float { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .i { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* page header (videos / inner pages) */
.page-head { background: var(--ink); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; text-align: center; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 20% 0%, rgba(124,58,237,.35), transparent 70%), radial-gradient(500px 300px at 80% 100%, rgba(61,139,255,.3), transparent 70%); }
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); color: #fff; }
.page-head p { color: #cbd5e1; max-width: 640px; margin: 0 auto; font-size: 18px; }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; border: 2px dashed var(--line); border-radius: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::after { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ===================== Full feature catalog ===================== */
.fx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 28px; }
.fx-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; transition: border-color .2s; }
.fx-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.fx-search .i { width: 20px; height: 20px; color: var(--muted); flex: none; }
.fx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; padding: 12px 0; color: var(--text); }
.fx-count { color: var(--muted); font-size: 15px; }
.fx-count b { color: var(--brand-ink); font-size: 20px; }
.fx-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.fx-group { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 14px; box-shadow: var(--shadow-sm); }
.section-soft .fx-group { background: #fff; }
.fx-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fx-head .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.fx-head .ico .i { width: 22px; height: 22px; }
.fx-head h3 { margin: 0; font-size: 18px; flex: 1; }
.fx-head small { font-weight: 800; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 0 10px; font-size: 13px; }
.fx-group ul { list-style: none; margin: 0; padding: 0; }
.fx-group li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); }
.fx-group li:first-child { border-top: 0; }
.fx-group li > .i { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 5px; stroke-width: 3; }
.fx-group li b { font-size: 15.5px; }
.fx-group li span { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; }
.fx-group li.more { display: none; }
.fx-group.open li.more { display: flex; }
.fx-more { margin-top: 6px; width: 100%; border: 0; background: var(--bg-soft); color: var(--brand-ink); font: inherit; font-weight: 700; font-size: 14px; padding: 8px; border-radius: 10px; cursor: pointer; }
.fx-more:hover { background: var(--brand-soft); }
.fx.searching li { display: none; }
.fx.searching li.hit { display: flex; background: linear-gradient(90deg, transparent, var(--brand-soft)); }
.fx.searching .fx-more { display: none; }
.fx-empty { text-align: center; color: var(--muted); padding: 24px; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 2px; }
.tag.pro { background: var(--bexa-soft); color: var(--bexa); }
.tag.full { background: #ede9fe; color: #6d28d9; }
.tag.new { background: #eefbe2; color: var(--lime-ink); }
.tag.soon { background: #fef3c7; color: #a16207; }
@media (max-width: 400px) { .fx-grid { grid-template-columns: 1fr; } .fx-group { padding: 16px 16px 12px; } }

/* ===================== Share card ===================== */
.share-card { --c: var(--brand); display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: center; }
.share-card.t-bexa { --c: var(--bexa); } .share-card.t-foodexa { --c: var(--foodexa); } .share-card.t-storexa { --c: var(--storexa); }
.share-poster { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .3s; }
.share-poster:hover { transform: translateY(-4px) rotate(-.6deg); }
.share-poster img { display: block; width: 100%; height: auto; }
.share-body p { color: var(--muted); }
.share-link { display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; margin: 18px 0; max-width: 420px; }
.share-link code { flex: 1; font-family: var(--font); font-weight: 700; font-size: 16px; color: var(--c); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-link .copy { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.share-link .copy.ok { background: #eefbe2; color: var(--lime-ink); border-color: transparent; }
.share-link .copy .i { width: 18px; height: 18px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-fb { background: #1877f2; color: #fff; box-shadow: 0 10px 24px -10px #1877f2; }
@media (max-width: 860px) { .share-card { grid-template-columns: 1fr; gap: 28px; } .share-poster { max-width: 380px; margin: 0 auto; } }
@media (max-width: 480px) { .share-actions .btn { flex: 1 1 calc(50% - 10px); justify-content: center; } }

/* ===================== AI assistant ===================== */
.ai-fab { position: fixed; bottom: 22px; inset-inline-end: 20px; z-index: 91; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: 15.5px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #7c3aed 55%, #f97316); box-shadow: 0 14px 30px -10px rgba(124, 58, 237, .7); transition: transform .2s; }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab .i { width: 24px; height: 24px; }
.ai-open .ai-fab { display: none; }
.ai-panel { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 95; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; animation: ai-in .25s ease; }
.ai-panel[hidden] { display: none; }
@keyframes ai-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, #0b1220, #1e1b4b); }
.ai-head div { flex: 1; min-width: 0; }
.ai-head b { display: block; font-size: 16px; }
.ai-head small { display: block; color: #cbd5e1; font-size: 12.5px; }
.ai-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #3d8bff, #a78bfa); flex: none; }
.ai-avatar .i { width: 22px; height: 22px; }
.ai-head button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ai-head button:hover { background: rgba(255,255,255,.16); }
.ai-head button .i { width: 18px; height: 18px; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.7; word-wrap: break-word; overflow-wrap: anywhere; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul, .ai-msg ol { margin: 4px 0 6px; padding-inline-start: 20px; }
.ai-msg a { color: #1d4ed8; font-weight: 700; }
.ai-msg.user { align-self: flex-start; background: #1d4ed8; color: #fff; border-end-start-radius: 6px; }
.ai-msg.assistant { align-self: flex-end; background: #fff; border: 1px solid var(--line); border-end-end-radius: 6px; }
.ai-msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.ai-msg.typing span { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; animation: ai-dot 1s infinite; }
.ai-msg.typing span:nth-child(2) { animation-delay: .15s; } .ai-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-note { color: var(--muted); font-size: 12.5px; margin-top: 6px !important; }
.ai-handoff { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: #e7faf0; color: #128c4a !important; font-size: 13.5px; text-decoration: none; }
.ai-handoff .i { width: 16px; height: 16px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ai-chips button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; text-align: start; }
.ai-chips button:hover { border-color: #7c3aed; color: #7c3aed; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-form textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 12px; font: inherit; font-size: 16px; line-height: 1.5; max-height: 120px; outline: 0; }
.ai-form textarea:focus { border-color: #7c3aed; }
.ai-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #7c3aed; color: #fff; display: grid; place-items: center; cursor: pointer; }
.ai-form button .i { width: 20px; height: 20px; transform: scaleX(-1); }
.ai-foot { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 12px; color: var(--muted); text-align: center; }
.ai-foot a { color: #128c4a; font-weight: 700; }
@media (max-width: 520px) {
  .ai-fab span { display: none; }
  .ai-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .ai-panel { inset: auto 0 0 0; width: 100%; height: 88vh; height: 88dvh; border-radius: 22px 22px 0 0; }
  .ai-open .wa-float { display: none; }
}
