/* ════════════════════════════════════════════════════════════════════
   A7 Watch Faces — public page styles (scoped to .a7wf)
   Theme-aware via DaisyUI vars; 14px radius; font: inherit; RTL.
   ════════════════════════════════════════════════════════════════════ */
.a7wf-main { min-height: 100svh; width: 100%; display: flex; justify-content: center; }
.a7wf {
  width: 100%; max-width: 1100px; margin: 0 auto; padding: 18px 14px 0;
  direction: rtl; font-family: inherit; color: hsl(var(--base-content)); box-sizing: border-box;
}
.a7wf *, .a7wf *::before, .a7wf *::after { box-sizing: border-box; }

/* breadcrumb (always first) */
.a7wf-bc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; padding: 0 16px; margin: 2px 0 10px; color: hsl(var(--base-content)); }
.a7wf-bc__a { color: hsl(var(--base-content)); opacity: .6; text-decoration: none; transition: opacity .15s; }
.a7wf-bc__a:hover { opacity: 1; }
.a7wf-bc__sep { opacity: .35; }
.a7wf-bc__cur { font-weight: 700; opacity: .9; }

/* title row with fading hairlines */
.a7wf-titlerow { display: flex; align-items: center; gap: 14px; padding: 0 16px; margin: 2px 0 12px; }
.a7wf-fadeline { flex: 1; height: 1px; }
/* Solid near the title, transparent toward the OUTER edge (LTR + RTL). */
.a7wf-fadeline:first-child { background: linear-gradient(to left,  color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
.a7wf-fadeline:last-child  { background: linear-gradient(to right, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
[dir="rtl"] .a7wf-fadeline:first-child { background: linear-gradient(to right, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
[dir="rtl"] .a7wf-fadeline:last-child  { background: linear-gradient(to left,  color-mix(in oklch, hsl(var(--base-content)) 22%, transparent), transparent); }
.a7wf-title { font-size: 16px; font-weight: 800; letter-spacing: .4px; white-space: nowrap; }

/* Toolbar host — the filter/sort/search cluster is rendered + styled by the
   shared A7Toolbar module (.a7ut*, /static/apps/a7-toolbar.js). min-height
   reserves the row (A7Boot standard) so the page never jumps when the async
   module mounts over the twin skeleton. */
.a7wf-toolbar { margin-bottom: 16px; min-height: 44px; }

/* fade-both-ends divider between the options (search/sort/filter) and the
   content grid. 90deg symmetric gradient → direction-agnostic (no RTL flip). */
.a7wf-divider { height: 1px; border: 0; width: 100%; max-width: 440px; margin: 22px auto; background: linear-gradient(90deg, transparent, color-mix(in oklch, hsl(var(--base-content)) 22%, transparent) 50%, transparent); }

/* grid — watch cards (roughly square, rounded like a watch screen) */
.a7wf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 520px) { .a7wf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .a7wf-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .a7wf-grid { grid-template-columns: repeat(5, 1fr); } }

.a7wf-card { position: relative; aspect-ratio: 669 / 798; border-radius: 14px; overflow: hidden;
  background: linear-gradient(90deg, hsl(var(--base-200)) 25%, hsl(var(--base-300)) 50%, hsl(var(--base-200)) 75%);
  background-size: 200% 100%; animation: a7wf-skel 1.3s ease-in-out infinite; }
/* The face PNGs are watch-shaped with transparent corners — once the image is
   in, the card box disappears entirely so faces sit on the page background. */
.a7wf-card.is-loaded { animation: none; background: transparent; }
/* Ads keep a neutral panel (banner images are full-bleed; google needs a bg). */
.a7wf-card.a7wf-ad { animation: none; background: hsl(var(--base-200)); }
@media (prefers-reduced-motion: reduce) { .a7wf-card { animation: none; } }
.a7wf-card__img {
  position: absolute; inset: 0;
  border: 0; padding: 0; margin: 0;
  width: 100%; height: 100%;
  cursor: pointer; background: transparent;
}
.a7wf-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .35s ease;
}
.a7wf-card__img img.is-on { opacity: 1; }
/* Icon bar (download/share) — same as wallpapers but with NO gradient: the
   face PNGs have transparent corners and the glassy chips read on their own. */
.a7wf-card__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px;
  opacity: 0;
  transition: opacity .18s;
}
.a7wf-card:hover .a7wf-card__bar,
.a7wf-card:focus-within .a7wf-card__bar { opacity: 1; }
@media (hover: none) { .a7wf-card__bar { opacity: 1; } } /* touch: always show */

.a7wf-ibtn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: color-mix(in oklch, hsl(var(--base-100)) 80%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
          backdrop-filter: blur(10px) saturate(1.5);
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 16%, transparent);
  color: hsl(var(--base-content));
  box-shadow: 0 4px 14px -5px rgba(0,0,0,.4);
  transition: transform .12s, background .16s;
}
.a7wf-ibtn:hover { background: color-mix(in oklch, hsl(var(--base-100)) 92%, transparent); }
.a7wf-ibtn:active { transform: scale(.9); }
.a7wf-ibtn svg { width: 17px; height: 17px; }

/* ad slot (native banner inside the grid) */
.a7wf-ad__native { position: absolute; inset: 0; display: block; }
.a7wf-ad__native img { width: 100%; height: 100%; object-fit: cover; }
.a7wf-ad__cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); color: #fff; font-family: inherit; }
.a7wf-ad__t { font-weight: 700; font-size: 13px; color: #fff; padding: 5px 16px; border-radius: 999px; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px) saturate(1.4); backdrop-filter: blur(6px) saturate(1.4); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 2px 6px rgba(0,0,0,.3); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform .15s ease, background .15s, border-color .15s; }
.a7wf-ad__native:hover .a7wf-ad__t { transform: scale(1.07); background: rgba(0,0,0,.62); border-color: rgba(255,255,255,.55); }
.a7wf-ad__ti { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-inline-end: 6px; }
.a7wf-ad__b { background: hsl(var(--primary)); color: #fff; padding: 6px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* skeleton shimmer */
.a7wf-sk { background: linear-gradient(90deg, hsl(var(--base-200)) 25%, hsl(var(--base-300)) 50%, hsl(var(--base-200)) 75%);
  background-size: 200% 100%; animation: a7wf-skel 1.3s ease-in-out infinite; border-radius: 14px; }
.a7wf-sk--card { aspect-ratio: 669 / 798; }
.a7wf-stack .smart-stack.a7wf-stack--skel { display: flex; align-items: center; justify-content: center; cursor: default; }
.a7wf-sk--stack { height: 78%; aspect-ratio: 669 / 798; border-radius: 22px; }
/* Lightbox skeleton — layout-only override. Inherits the base .a7wf-sk
   gradient + shimmer so it looks identical to the grid cards. */
.a7wf-sk--lb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: inherit; z-index: 1;
}
@media (prefers-reduced-motion: reduce) { .a7wf-sk--lb { animation: none !important; } }
@keyframes a7wf-skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .a7wf-sk { animation: none; } }

.a7wf-empty { grid-column: 1 / -1; text-align: center; padding: 50px 16px; opacity: .6; font-size: 15px; }
/* Recoverable load-failure state (icon + heading + subtext + Retry) — replaces a
   blank grid when the fetch fails after retries. */
.a7wf-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 46px 18px; }
.a7wf-state__ic { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 16px;
  color: hsl(var(--primary)); background: color-mix(in oklch, hsl(var(--primary)) 12%, transparent);
  border: 1px solid color-mix(in oklch, hsl(var(--primary)) 22%, transparent); }
.a7wf-state__ic svg { width: 28px; height: 28px; }
.a7wf-state__h { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: hsl(var(--base-content)); }
.a7wf-state__p { margin: 0; font-size: 14px; color: color-mix(in oklch, hsl(var(--base-content)) 62%, transparent); max-width: 34ch; }
.a7wf-state__btn { margin-top: 6px; border: 0; background: hsl(var(--primary)); color: hsl(var(--primary-content));
  font: inherit; font-weight: 800; padding: 10px 24px; border-radius: 999px; cursor: pointer;
  min-height: 44px; transition: background .15s, transform .12s;
  box-shadow: 0 6px 18px -4px color-mix(in oklch, hsl(var(--primary)) 55%, transparent); }
.a7wf-state__btn:hover { background: color-mix(in oklch, hsl(var(--primary)) 82%, #000); }
.a7wf-state__btn:active { transform: scale(.96); }
.a7wf-state__btn:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }

/* pager */
.a7wf-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; }
.a7wf-pager__btn { border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 16%, transparent); background: hsl(var(--base-100));
  color: hsl(var(--base-content)); font: inherit; font-weight: 700; font-size: 14px; padding: 9px 22px; border-radius: 12px; cursor: pointer; }
.a7wf-pager__btn:disabled { opacity: .4; cursor: not-allowed; }
.a7wf-pager__info { font-size: 14px; font-weight: 700; opacity: .7; }
.a7wf-sentinel { height: 1px; width: 100%; }

/* clock hint toast */
.a7wf-hint { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 200;
  max-width: 90%; background: hsl(var(--neutral, var(--base-300))); color: hsl(var(--neutral-content, var(--base-content)));
  font-size: 13.5px; font-weight: 600; padding: 13px 22px; border-radius: 14px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .35s, transform .35s; text-align: center; }
.a7wf-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

/* site footer (shared look) */
.a7-site-footer { text-align: center; padding: 40px 16px 30px; margin-top: 44px; border-top: 1px solid color-mix(in oklch, hsl(var(--base-content)) 10%, transparent); }
.a7-site-footer__logo { font-weight: 800; font-size: 20px; }
.a7-site-footer__copy { font-size: 13px; opacity: .6; margin-top: 8px; }
.a7-site-footer__social { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
.a7-site-footer__ico { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; width: 40px; height: 40px; border-radius: 50%; color: hsl(var(--base-content)); opacity: .75; text-decoration: none; transition: opacity .18s, transform .12s, background .18s; }
.a7-site-footer__ico:hover { opacity: 1; transform: translateY(-2px); background: color-mix(in oklch, hsl(var(--base-content)) 8%, transparent); }

/* ════════════════════════════════════════════════════════════════════
   "Section closed / coming soon" screen — rendered by renderMaintenance()
   when maintenance_mode is on. Theme-aware: colors come from the host
   DaisyUI vars (--base-content / --base-100/200 / --primary), so it
   follows the site's light/dark automatically. All classes are a7cs-*.
   ════════════════════════════════════════════════════════════════════ */
.a7cs-wrap {
  /* map the site theme → local tokens (one place to retune) */
  --cs-accent:        hsl(var(--primary));
  --cs-accent-press:  color-mix(in oklch, hsl(var(--primary)) 82%, #000);
  --cs-accent-soft:   color-mix(in oklch, hsl(var(--primary)) 12%, transparent);
  --cs-text:          hsl(var(--base-content));
  --cs-muted:         color-mix(in oklch, hsl(var(--base-content)) 62%, transparent);
  --cs-faint:         color-mix(in oklch, hsl(var(--base-content)) 42%, transparent);
  --cs-surface-2:     hsl(var(--base-200));
  --cs-border:        color-mix(in oklch, hsl(var(--base-content)) 12%, transparent);
  --cs-border-strong: color-mix(in oklch, hsl(var(--base-content)) 18%, transparent);

  min-height: 74vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 22px;
  font-family: inherit;          /* use the site's font */
  color: var(--cs-text);
  background: radial-gradient(120% 80% at 50% -10%,
    color-mix(in oklch, hsl(var(--base-content)) 5%, transparent), transparent 60%);
}
.a7cs-card { width: 100%; max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; }

.a7cs-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: var(--cs-accent-soft); color: var(--cs-accent); font-size: 13px; font-weight: 700;
  margin-bottom: 30px; border: 1px solid color-mix(in oklch, hsl(var(--primary)) 22%, transparent);
}
.a7cs-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cs-accent); position: relative; }
.a7cs-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cs-accent);
  animation: a7cs-pulse 1.8s cubic-bezier(.22,.61,.36,1) infinite;
}
@keyframes a7cs-pulse { 0% { transform: scale(1); opacity: .6 } 70% { transform: scale(3); opacity: 0 } 100% { opacity: 0 } }

.a7cs-iconwrap { position: relative; width: 128px; height: 128px; margin-bottom: 34px; display: flex; align-items: center; justify-content: center; }
.a7cs-ring { position: absolute; inset: 0; border-radius: 34px; border: 1.5px solid var(--cs-border-strong); animation: a7cs-floaty 5s ease-in-out infinite; }
.a7cs-ring--b { inset: -14px; border-radius: 42px; opacity: .5; animation-delay: .4s; }
.a7cs-iconbox {
  width: 96px; height: 96px; border-radius: 28px;
  background: linear-gradient(155deg, hsl(var(--primary)), var(--cs-accent-press));
  display: flex; align-items: center; justify-content: center; color: hsl(var(--primary-content));
  box-shadow: 0 14px 34px -10px color-mix(in oklch, hsl(var(--primary)) 45%, transparent);
  animation: a7cs-floaty 5s ease-in-out infinite;
}
.a7cs-iconbox svg { width: 48px; height: 48px; }
@keyframes a7cs-floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }

.a7cs-title {
  font-family: inherit; font-weight: 800; font-size: clamp(22px, 3.8vw, 28px);
  line-height: 1.3; margin: 0 0 14px; letter-spacing: -.3px; color: var(--cs-text); text-wrap: balance;
}
.a7cs-sub { font-size: clamp(15px, 2.4vw, 18px); color: var(--cs-muted); line-height: 1.7; margin: 0 0 34px; max-width: 430px; }

.a7cs-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.a7cs-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 14px;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; font-family: inherit;
  transition: transform .08s, background .14s;
}
.a7cs-btn svg { width: 18px; height: 18px; }
/* Back-arrow points toward "home" per reading direction (flips in RTL). */
.a7cs-wrap[dir="rtl"] .a7cs-btn svg { transform: scaleX(-1); }
.a7cs-btn:active { transform: scale(.97); }
.a7cs-btn--primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-content));
  box-shadow: 0 6px 18px -4px color-mix(in oklch, hsl(var(--primary)) 55%, transparent);
}
.a7cs-btn--primary:hover { background: var(--cs-accent-press); }

.a7cs-progress { margin-top: 40px; width: 100%; max-width: 300px; }
.a7cs-bar { height: 6px; border-radius: 999px; background: var(--cs-surface-2); overflow: hidden; border: 1px solid var(--cs-border); }
.a7cs-fill { height: 100%; width: var(--cs-progress, 68%); border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)), var(--cs-accent-press)); animation: a7cs-grow 2.4s cubic-bezier(.22,.61,.36,1) both; }
@keyframes a7cs-grow { from { width: 0 } to { width: var(--cs-progress, 68%) } }
.a7cs-lbl { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--cs-faint); }

@media (prefers-reduced-motion: reduce) {
  .a7cs-ring, .a7cs-iconbox, .a7cs-pulse::after, .a7cs-fill { animation: none !important; }
}


/* ── Preview: FLIP lightbox + frosted share sheet + toasts ────── */
.a7wf-ov { position: fixed; inset: 0; z-index: 9000; background: rgba(8,8,11,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s cubic-bezier(.32,.72,0,1); }
.a7wf-ov.show { opacity: 1; pointer-events: auto; }
.a7wf-lb { position: fixed; z-index: 9001; display: none; overflow: hidden;
  box-shadow: 0 30px 80px -22px rgba(0,0,0,.7); will-change: top,left,width,height; }
.a7wf-lb__img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.a7wf-lb__img { transition: opacity .2s ease; }
.a7wf-lbspin { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; pointer-events: none; }
.a7wf-lbspin.show { display: flex; }
.a7wf-lbspin::before { content: ''; position: absolute; width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.a7wf-lbspin .a7wf-bspin { position: relative; width: 30px; height: 30px; border-width: 3px; }
.a7wf-lclose { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 16%, transparent);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, hsl(var(--base-100)) 80%, transparent); color: hsl(var(--base-content));
  -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: 0 4px 14px -5px rgba(0,0,0,.45); transition: transform .12s, background .16s; }
.a7wf-lclose:hover { background: color-mix(in oklch, hsl(var(--base-100)) 92%, transparent); }
.a7wf-lclose:active { transform: scale(.92); }
.a7wf-lclose svg { width: 18px; height: 18px; }
/* independent nav layer over the box; the layer ignores clicks, only the arrows take them */
.a7wf-lbx { position: fixed; inset: 0; z-index: 9003; pointer-events: none;
  opacity: 0; transition: opacity .2s ease; }
.a7wf-lbx.show { opacity: 1; }
.a7wf-lbnav { position: fixed; pointer-events: auto; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in oklch, hsl(var(--base-content)) 16%, transparent);
  background: color-mix(in oklch, hsl(var(--base-100)) 80%, transparent); color: hsl(var(--base-content));
  -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); transition: transform .12s, background .16s; }
.a7wf-lbnav:hover { background: color-mix(in oklch, hsl(var(--base-100)) 92%, transparent); }
.a7wf-lbnav:active { transform: scale(.9); }
.a7wf-lbnav svg { width: 22px; height: 22px; }
.a7wf-lbbar { position: fixed; z-index: 9002; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; text-align: center; transition: opacity .2s ease; }
.a7wf-lbbar.show { opacity: 1; pointer-events: auto; }
.a7wf-lbbar__t { color: #fff; font-weight: 800; font-size: 16px; }
.a7wf-lbbar__m { color: #fff; opacity: .7; font-weight: 600; font-size: 13px; margin-top: -4px; }
.a7wf-lbbar__row { display: flex; flex-wrap: nowrap; justify-content: center; gap: 10px; margin-top: 4px; }
.a7wf-tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.14); color: #fff; font: inherit; font-weight: 700; font-size: 14px;
  white-space: nowrap; flex-shrink: 0; min-width: 132px; padding: 12px 18px; border-radius: 14px; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .12s, background .16s, opacity .16s; }
.a7wf-tbtn:active { transform: scale(.96); }
.a7wf-tbtn svg { width: 18px; height: 18px; }
.a7wf-tbtn--primary { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.a7wf-tbtn.is-busy { opacity: .9; }
.a7wf-tbtn.is-busy svg, .a7wf-tbtn.is-done svg { display: none; }
.a7wf-bspin { width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: a7wf-bspin .7s linear infinite; }
@keyframes a7wf-bspin { to { transform: rotate(360deg); } }
@media (max-width: 400px) {
  .a7wf-tbtn { min-width: 0; flex: 1 1 0; padding: 12px 10px; font-size: 13.5px; }
  .a7wf-lbbar__row { width: min(92vw, 360px); }
}
@media (prefers-reduced-motion: reduce) { .a7wf-bspin { animation-duration: 1.4s; } }
.a7wf-tbtn.is-done { background: #16a34a; border-color: #16a34a; }

/* frosted-glass share sheet */
.a7wf-sht-ov { position: fixed; inset: 0; z-index: 9100; background: rgba(0,0,0,.68);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .28s cubic-bezier(.32,.72,0,1); }
.a7wf-sht-ov.show { opacity: 1; pointer-events: auto; }
.a7wf-sht { position: relative; z-index: 1; width: min(92vw, 420px); direction: rtl; padding: 22px;
  transform: translateY(8px) scale(.96); opacity: 0;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5); border-radius: 22px;
  box-shadow: 0 30px 80px -22px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .36s cubic-bezier(.32,.72,0,1), opacity .24s ease; }
.a7wf-sht.show { transform: translateY(0) scale(1); opacity: 1; }
html.dark .a7wf-sht, body.dark .a7wf-sht { background: rgba(30,32,36,.62); border-color: rgba(255,255,255,.12); }
.a7wf-sht__t { font-weight: 800; font-size: 15px; margin-bottom: 16px; color: hsl(var(--base-content)); }
.a7wf-sht__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px; }
@media (max-width: 380px) { .a7wf-sht__grid { grid-template-columns: repeat(4, 1fr); } }
.a7wf-sht__item { display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: transparent; cursor: pointer; text-decoration: none; font: inherit; color: hsl(var(--base-content)); }
.a7wf-sht__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 21px;
  background: rgba(120,120,128,.16); }
.a7wf-sht__ic svg { width: 21px; height: 21px; }
.a7wf-sht__lbl { font-size: 11.5px; font-weight: 600; opacity: .85; }
.a7wf-sht__foot { display: flex; gap: 10px; margin-top: 16px; }
.a7wf-sht__more, .a7wf-sht__cancel { flex: 1; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px; padding: 13px; }
.a7wf-sht__more { background: hsl(var(--primary)); color: #fff; }
.a7wf-sht__cancel { background: color-mix(in oklch, hsl(var(--base-content)) 10%, transparent); color: hsl(var(--base-content)); }
html.dark .a7wf-sht__cancel, body.dark .a7wf-sht__cancel { background: rgba(255,255,255,.12); color: #fff; }

html.a7wf-noscroll { overflow: hidden !important; }

/* toasts (stack, bottom-center) */
.a7wf-toaster { position: fixed; z-index: 9200; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.a7wf-toast { background: rgba(20,20,24,.92); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(120%);
  transition: opacity .35s, transform .35s cubic-bezier(.32,.72,0,1); }
@media (prefers-reduced-motion: reduce) {
  .a7wf-ov, .a7wf-sht, .a7wf-toast, .a7wf-lbbar { transition: none; }
}

/* ── Smart Stack (المكدّس الذكي) — infinite ring carousel ─────────── */
.a7wf-stack { --brand: hsl(var(--primary)); margin: 2px 0 12px; display: flex; flex-direction: column; align-items: center; }
.a7wf-stack .smart-stack {
  position: relative;
  width: 100%;
  height: clamp(230px, 50vh, 360px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;          /* vertical page scroll stays native */
}
.a7wf-stack .smart-stack.is--drag { cursor: grabbing; }
.a7wf-stack .cell {
  position: absolute; top: 50%; left: 50%;
  height: 86%;
  aspect-ratio: 669 / 798;
  transform: translate(-50%, -50%);   /* JS appends translateX + scale */
  will-change: transform, opacity;
}
.a7wf-stack .card {
  display: block; width: 100%; height: 100%;
  border: 0; padding: 0; background: transparent; cursor: pointer;
}
.a7wf-stack .card img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  -webkit-user-drag: none; user-select: none;
}
.a7wf-stack .card img { opacity: 0; transition: opacity .4s ease; }
.a7wf-stack .card img.is-on { opacity: 1; }
.a7wf-stack__name {
  margin-top: 10px; min-height: 22px;
  font-size: 15px; font-weight: 800; text-align: center;
  color: hsl(var(--base-content));
  transition: opacity .18s ease;
}
.a7wf-stack__name.is-swap { opacity: 0; }
.a7wf-stack .stack-dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.a7wf-stack .stack-dots i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklch, hsl(var(--base-content)) 22%, transparent); transition: .22s; cursor: pointer; }
.a7wf-stack .stack-dots i.on { width: 22px; border-radius: 4px; background: var(--brand, #2D6CDF); }

/* ============ A7 Featured — Gold Frame (generic, shared a7- classes) ============
   The frame is drawn OUTSIDE the card via ::before/::after so it bleeds into the
   grid gap (14px) — the featured card keeps the EXACT size + position of its
   siblings. --a7-radius = the section's visible-card radius; --a7-page-bg defaults
   to the live theme bg so the 4px gap auto-matches light/dark. */
.a7-featured{ position: relative; border-radius: var(--a7-radius); animation: a7-feat-bob 3.6s ease-in-out infinite; }
.a7-featured::before{                 /* animated gold ring (3px), bleeds 7px out */
  content:""; position:absolute; inset:-7px; z-index:0; pointer-events:none;
  border-radius: calc(var(--a7-radius) + 7px);
  background: linear-gradient(135deg,#ffe9a8,#f6b321,#d4881a,#ffe9a8);
  background-size: 300% 300%; animation: a7-goldflow 5s ease infinite;
  box-shadow: 0 16px 38px -14px rgba(214,150,20,.7);
}
.a7-featured::after{                  /* page-bg gap (4px) between ring and card */
  content:""; position:absolute; inset:-4px; z-index:1; pointer-events:none;
  border-radius: calc(var(--a7-radius) + 4px);
  background: var(--a7-page-bg, hsl(var(--base-100)));
}
.a7-featured__card{ position:relative; z-index:2; }
@keyframes a7-goldflow{ 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes a7-feat-bob{ 0%,100%{ transform: scale(1) } 50%{ transform: scale(1.01) } }
.a7-featured__crown{
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  z-index: 8; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#ffe08a,#f6b321); color: #5a3c05;
  box-shadow: 0 6px 16px rgba(214,150,20,.55), inset 0 1px 0 rgba(255,255,255,.7);
  border: 3px solid var(--a7-page-bg, hsl(var(--base-100)));
}
.a7-featured__crown svg{ width: 28px; height: 28px; }
.a7-featured__ribbon{
  position: absolute; top: 0; left: 0; width: 128px; height: 128px;
  overflow: hidden; z-index: 6; pointer-events: none;
}
.a7-featured__ribbon span{
  position: absolute; top: 30px; left: -32px; width: 166px; text-align: center;
  transform: rotate(-45deg); white-space: nowrap;
  background: linear-gradient(90deg,#f6b321,#ffe08a,#f6b321); color: #5a3c05;
  font-weight: 800; font-size: 11px; padding: 7px 0; box-shadow: 0 4px 10px rgba(0,0,0,.28);
}
.a7-shine{ position: relative; overflow: hidden; }
.a7-shine::after{
  content: ""; position: absolute; top: -20%; left: -60%;
  width: 42%; height: 150%; z-index: 4; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); animation: a7-shimmer 3.6s ease-in-out infinite;
}
@keyframes a7-shimmer{ 0%{left:-60%} 55%,100%{left:135%} }
@media (prefers-reduced-motion: reduce){
  .a7-featured, .a7-featured::before, .a7-shine::after{ animation: none; }
}
