/* ══ Store page, Word Lens app look (2026-11-30) ══════════════════════════
   Loaded after store.php's own <style>, so it only restyles: same markup,
   same classes. Glass cards on deep navy, NH brand blue only (no colour gradients),
   Alata (Cairo for Arabic) with Limelight for the accent word — the same
   language as the Word Lens app and /wordlens-guide. */
.st-page {
  --wl-bg: #050b1c; --wl-ink: #fff; --wl-tx: #fff;
  --wl-mut: rgba(220,236,255,.68); --wl-faint: rgba(220,236,255,.42);
  --wl-blue: #1E90FF; --wl-sky: #4da6ff; --wl-cyan: #2A7DD8; --wl-gold: #ffc94d; --wl-good: #4ade80;
  /* (2026-11-30) No multi-colour gradients: the site brand blue only
     (#1E90FF, from the NH logo). Kept as a variable so text-clip rules work. */
  --wl-grad: linear-gradient(#1E90FF, #1E90FF);
  --wl-glass: rgba(13,27,58,.66);
  --wl-rim: rgba(30,144,255,.18);
  --wl-font: 'Alata', 'Cairo', system-ui, sans-serif;
  position: relative; isolation: isolate;
  font-family: var(--wl-font);
}
/* Soft navy glow behind the whole page, like the app background. */
.st-page::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 22% 0%, rgba(30,144,255,.18), transparent 70%),
    radial-gradient(800px 480px at 82% 6%, rgba(30,144,255,.12), transparent 70%),
    radial-gradient(1100px 700px at 50% 100%, rgba(20,42,92,.45), transparent 75%);
}
/* (2026-11-30) Texture, in three layers like the app background:
   1. film grain over everything, so the dark never reads as flat black;
   2. a dot grid that is strongest under the hero and fades out below;
   3. soft diagonal light bands that give the surface some depth.
   All inside one pseudo-element; nothing here takes clicks. */
.st-page::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .88 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(rgba(30,144,255,.38) 1px, transparent 1.6px),
    repeating-linear-gradient(115deg, rgba(30,144,255,.045) 0 1px, transparent 1px 120px);
  background-size: 220px 220px, 24px 24px, auto;
  opacity: .32;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
}
html.light-theme .st-page::after { opacity: .1; }
.st-page :is(h1,h2,p,span,a,button,div) { font-family: inherit; }

/* ── Hero ──
   (2026-11-30) The motion-timeline strip, diamonds and grid are gone: the
   app look is calm glass and light, not decoration. Two aurora orbs, a
   glow line under the hero, and a glass "Works with" pill of app icons. */
.st-header { padding: 36px 24px 56px; }
.st-header-grid, .st-hero-tl, .st-hero-dia { display: none; }
.st-hero-orb { filter: blur(90px); }
/* (2026-11-30) The orbs used to be cut by the header's overflow:hidden,
   which drew a hard horizontal line right under the navbar. The header now
   lets them spill and the light fades out on every side instead; the page
   clips sideways so nothing can cause a horizontal scrollbar. */
.st-page { overflow-x: clip; }
.st-header { overflow: visible; }
.st-hero-fx {
  overflow: visible; top: -80px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 70%, transparent 100%);
}
.st-hero-orb.a { top: -120px; }
.st-hero-orb.b { top: -80px; }
.st-hero-orb.a { width: 560px; height: 560px; left: 8%; top: -220px; }
.st-hero-orb.b { width: 500px; height: 500px; right: 6%; top: -160px; }
.st-header::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(760px, 80%); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(30,144,255,.55), transparent);
  box-shadow: 0 0 24px 2px rgba(30,144,255,.25);
}
.st-hero-apps {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 8px 10px 8px 18px; border-radius: 99px;
  background: var(--wl-glass); border: 1px solid var(--wl-rim);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 50px -24px rgba(30,144,255,.45);
}
[dir="rtl"] .st-hero-apps { padding: 8px 18px 8px 10px; }
.st-hero-apps-lbl { font-size: 13px; font-weight: 700; color: var(--wl-mut); margin-inline-end: 4px; }
.st-hero-apps img {
  width: 30px; height: 30px; border-radius: 9px; display: block;
  transition: transform .25s;
}
.st-hero-apps img:hover { transform: translateY(-3px) scale(1.08); }
@media (max-width: 600px) {
  .st-header { padding: 28px 18px 40px; }
  .st-hero-apps { gap: 7px; padding: 7px 8px 7px 14px; }
  .st-hero-apps img { width: 26px; height: 26px; }
}
html.light-theme .st-hero-apps { background: rgba(255,255,255,.8); border-color: rgba(16,26,46,.12); }
html.light-theme .st-hero-apps-lbl { color: #56627a; }
.st-hero-orb.a { background: radial-gradient(circle, rgba(30,144,255,.30), transparent 70%); }
.st-hero-orb.b { background: radial-gradient(circle, rgba(30,144,255,.20), transparent 70%); }
.st-hero-veil { background: radial-gradient(ellipse 62% 58% at 50% 38%, rgba(5,11,28,.85), rgba(5,11,28,.45) 55%, transparent 78%); }
.st-tl-bar { background: linear-gradient(90deg, rgba(30,144,255,.32), rgba(30,144,255,.10)); border-color: var(--wl-rim); }
.st-tl-kf { background: var(--wl-sky); }
.st-hero-dia { background: rgba(30,144,255,.6); box-shadow: 0 0 14px rgba(30,144,255,.5); }

.st-header-label {
  padding: 7px 16px; border-radius: 99px; letter-spacing: .4px; text-transform: none;
  font-size: 13px; color: var(--wl-tx);
  background: rgba(255,255,255,.07); border: 1px solid var(--wl-rim);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.st-header-label i { color: var(--wl-sky); }
.st-header-title {
  font-size: clamp(30px, 5.4vw, 58px); font-weight: 800; letter-spacing: 0; line-height: 1.15;
}
.st-header-title em {
  font-family: 'Limelight', serif; font-weight: 400;
  background: var(--wl-grad); -webkit-background-clip: text; background-clip: text;
}
.st-header-sub { color: var(--wl-mut); font-size: 17px; max-width: 560px; line-height: 1.7; }

/* ── Categories: one glass bar of chips, like the app's top tabs ── */
.st-cats-wrap { padding-bottom: 34px; }
.st-cats {
  gap: 6px; padding: 6px; border-radius: 22px;
  background: rgba(14,29,64,.7); border: 1px solid var(--wl-rim);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 50px -24px rgba(0,0,0,.8);
}
.st-cat {
  padding: 10px 16px; border-radius: 16px; border: 0; background: none;
  color: var(--wl-mut); font-size: 14px; font-weight: 700;
}
.st-cat:hover { background: rgba(255,255,255,.06); color: var(--wl-tx); }
.st-cat.active {
  background: var(--wl-grad); color: var(--wl-ink);
  box-shadow: 0 6px 22px -6px rgba(30,144,255,.6);
}
.st-cat.active .st-cat-count { background: rgba(255,255,255,.22); color: #fff; }
.st-cat-count { background: rgba(30,144,255,.16); color: var(--wl-sky); }
.st-cat.soon { opacity: .45; }
.st-cat-soon-badge {
  top: -8px; right: 4px; border-radius: 99px; padding: 2px 7px; font-size: 9px;
  background: rgba(255,201,77,.16); border: 1px solid rgba(255,201,77,.4); color: var(--wl-gold);
}
[dir="rtl"] .st-cat-soon-badge { right: auto; left: 4px; }
.st-divider { display: none; }

/* ── Toolbar ── */
.st-result-count { color: var(--wl-faint); font-size: 14px; }
.st-result-count strong { color: var(--wl-tx); }
.st-admin-link { border-radius: 99px; padding: 8px 16px; }

/* ── Product cards: glass, rounded, with a lit edge ── */
.st-grid { gap: 18px; }
.st-card {
  background: var(--wl-glass); border: 1px solid var(--wl-rim); border-radius: 26px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 60px -30px rgba(0,0,0,.9);
}
.st-card:hover, .st-card.featured-card:hover {
  border-color: rgba(30,144,255,.45); transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(30,144,255,.14), 0 26px 60px -24px rgba(30,144,255,.45);
}
.st-card.featured-card { border-color: rgba(30,144,255,.34); }
.st-card-cover { margin: 8px 8px 0; width: auto; border-radius: 20px; background: rgba(5,11,28,.6); }
.st-card-cover img { border-radius: 20px; }
.st-card-badges { top: 12px; left: 12px; }
[dir="rtl"] .st-card-badges { left: auto; right: 12px; }
.st-badge { border-radius: 99px; padding: 4px 10px; letter-spacing: .3px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge-blue { background: rgba(30,144,255,.18); border-color: rgba(30,144,255,.45); color: var(--wl-sky); }
.badge-new { background: rgba(74,222,128,.16); border-color: rgba(74,222,128,.45); color: var(--wl-good); }

.st-card-body { padding: 18px 20px 0; }
.st-card-name { font-size: 21px; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.st-card-tagline { color: var(--wl-mut); font-size: 14.5px; line-height: 1.65; }
.st-tag {
  border-radius: 99px; padding: 3px 10px; font-size: 11.5px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); color: var(--wl-mut);
}

.st-card-footer { margin: 0 10px 10px; padding: 12px 12px; border-top: 0; border-radius: 18px; background: rgba(5,11,28,.45); }
.st-price-curr { color: var(--wl-sky); }
.st-price-val {
  font-size: 28px; font-weight: 800;
  background: var(--wl-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.st-price-note { color: var(--wl-faint); font-size: 11px; }
.st-btn-view {
  width: 40px; height: 40px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid var(--wl-rim); color: var(--wl-mut);
}
.st-btn-view:hover { color: var(--wl-tx); background: rgba(30,144,255,.14); border-color: rgba(30,144,255,.4); }
.st-btn-cart {
  padding: 10px 18px; border: 0; border-radius: 99px;
  background: var(--wl-grad); background-size: auto; color: var(--wl-ink);
  font-size: 13.5px; font-weight: 800;
  box-shadow: 0 6px 22px -6px rgba(30,144,255,.6);
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.st-btn-cart:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 28px -6px rgba(30,144,255,.75); }

/* ── "More coming soon" placeholders ── */
.st-soon-card {
  border-radius: 26px; background: rgba(14,29,64,.28);
  border: 1px dashed rgba(30,144,255,.18);
}
.st-soon-icon { color: rgba(30,144,255,.22); }
.st-soon-title { color: var(--wl-faint); font-size: 16px; letter-spacing: 0; }
.st-soon-sub { color: rgba(220,236,255,.3); font-size: 13px; }
.st-soon-badge { border-radius: 99px; background: rgba(255,201,77,.08); border-color: rgba(255,201,77,.25); color: rgba(255,201,77,.7); letter-spacing: .5px; }

.st-empty-title { font-size: 22px; }

/* ── Toast ── */
#st-toast {
  font-family: 'Alata', 'Cairo', system-ui, sans-serif; border-radius: 18px;
  background: rgba(13,27,58,.94);
  border: 1px solid rgba(30,144,255,.25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.st-toast-btn { border-radius: 99px; font-family: inherit; }
.st-toast-view { background: #1E90FF; color: #fff; }

@media (max-width: 600px) {
  .st-cats { border-radius: 18px; max-width: 100%; scrollbar-width: none; }
  .st-cats::-webkit-scrollbar { display: none; }
  .st-cat { flex: none; white-space: nowrap; padding: 9px 14px; font-size: 13px; }
  .st-card-name { font-size: 19px; }
}

/* ── Light theme: keep the same shapes, light glass ── */
html.light-theme .st-page::before {
  background: radial-gradient(900px 520px at 18% 0%, rgba(30,144,255,.12), transparent 70%),
              radial-gradient(800px 480px at 85% 8%, rgba(30,144,255,.10), transparent 70%);
}
html.light-theme .st-hero-veil { background: radial-gradient(ellipse 62% 58% at 50% 38%, #fff, rgba(255,255,255,.7) 55%, transparent 78%); }
html.light-theme .st-header-label { background: rgba(255,255,255,.8); color: #101a2e; border-color: rgba(16,26,46,.12); }
html.light-theme .st-header-sub { color: #56627a; }
html.light-theme .st-cats { background: rgba(255,255,255,.75); border-color: rgba(16,26,46,.1); box-shadow: 0 14px 40px -24px rgba(16,26,46,.35); }
html.light-theme .st-cat { background: none; border: 0; color: #56627a; }
html.light-theme .st-cat:hover { background: rgba(16,26,46,.05); color: #101a2e; }
html.light-theme .st-cat.active { background: #1E90FF; color: #fff; }
html.light-theme .st-card { background: rgba(255,255,255,.85); border-color: rgba(16,26,46,.1); box-shadow: 0 18px 50px -30px rgba(16,26,46,.4); }
html.light-theme .st-card-cover { background: #eef3fb; }
html.light-theme .st-card-tagline { color: #56627a; }
html.light-theme .st-tag { background: rgba(16,26,46,.04); border-color: rgba(16,26,46,.1); color: #56627a; }
html.light-theme .st-card-footer { background: rgba(16,26,46,.04); }
html.light-theme .st-price-val { background: linear-gradient(#1E90FF, #1E90FF); -webkit-background-clip: text; background-clip: text; }
html.light-theme .st-btn-view { background: #fff; border-color: rgba(16,26,46,.14); color: #56627a; }
html.light-theme .st-soon-card { background: rgba(255,255,255,.6); border-color: rgba(16,26,46,.14); }
html.light-theme .st-soon-title, html.light-theme .st-soon-sub { color: #6b778d; }
html.light-theme #st-toast { background: #fff; color: #101a2e; border-color: rgba(16,26,46,.12); }
