/* bf-social: Instagram-style page in SnappPay's look (brand blue + the magenta of the Black Friday campaign). */
/* تخفیف‌من palette (BF 1405 timetable): comic blue, yellow, discount red; magenta stays for live. */
:root {
  --tm-blue: #1659d2;
  --tm-blue-2: #007dfa;
  --tm-navy: #0b3a9e;
  --tm-yellow: #ffd31a;
  --tm-yellow-soft: #fff7e0;
  --tm-red: #d3122b;
  --tm-red-2: #ff4a3d;
  --sc-magenta: #d1146a;
  --sc-magenta-soft: #fdeef4;
  --sc-ring: conic-gradient(from 210deg, #007dfa, #6a5cff, #d1146a, #ff4a3d, #ffd31a, #007dfa);
  --sc-ink-soft: #3a4254;
  --sc-dark: #0d1018;
}
.sc-shell { max-width: 520px; padding-bottom: calc(96px + var(--ap-safe-bottom)); }
.sc-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-tick { width: 16px; height: 16px; flex: none; color: #0095f6; margin-inline-start: 3px; vertical-align: -3px; }
bdi { unicode-bidi: isolate; }
.sc-rail { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(-1 * var(--ap-gutter)); padding-inline: var(--ap-gutter); scroll-padding-inline: var(--ap-gutter); }
.sc-rail::-webkit-scrollbar { display: none; }
.sc-rail > li { flex: none; scroll-snap-align: start; }

/* ---- buttons, chips ---- */
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 12px;
  border: 0; background: #eff2f6; color: var(--ap-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sc-btn .sc-icon { width: 18px; height: 18px; }
.sc-btn--primary { background: var(--ap-brand-strong); color: #fff; }
.sc-btn:active { transform: scale(.98); }
.sc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ap-line);
  background: #fff; color: var(--sc-ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sc-chip[aria-pressed="true"] { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
.sc-chip .sc-icon { width: 16px; height: 16px; }
.sc-chip__n { font-size: 11px; opacity: .7; font-weight: 500; }

/* ---- avatar with story ring ---- */
.sc-avatar { --size: 56px; position: relative; display: inline-grid; place-items: center; width: var(--size); height: var(--size); flex: none; border-radius: 50%; }
.sc-avatar__img { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--ap-surface); }
.sc-avatar__img img { width: 100%; height: 100%; object-fit: cover; }
.sc-avatar.is-broken .sc-avatar__img img { display: none; }
.sc-avatar.is-broken .sc-avatar__img::after { content: attr(data-initial); }
.sc-avatar.is-broken .sc-avatar__img { display: grid; place-items: center; color: var(--ap-brand-ink); font-weight: 800; background: var(--ap-brand-soft); }
.sc-avatar.has-ring { padding: 3px; background: var(--sc-ring); }
.sc-avatar.has-ring .sc-avatar__img { border: 2.5px solid #fff; }
.sc-avatar.has-ring.is-seen { background: #d6dae2; }
.sc-avatar.is-live { background: linear-gradient(135deg, #ff2d55, var(--sc-magenta)); }
.sc-avatar__live { position: absolute; bottom: -6px; inset-inline: 0; margin: auto; width: max-content; padding: 0 6px; border-radius: 4px; border: 2px solid #fff;
  background: linear-gradient(90deg, #ff2d55, var(--sc-magenta)); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; }

[data-media] { background: var(--ap-media); }
[data-media] > img, [data-media] > video { opacity: 0; transition: opacity .25s ease; }
[data-media] img.is-loaded, [data-media] video.is-loaded { opacity: 1; }
/* Players (reels, stories) are never faded: they show from the first frame. */
[data-media] > .sc-reel__video, [data-media] > .sc-story__media, .sc-reel-card [data-media] > video, .sc-profile__grid--reels [data-media] > video { opacity: 1; }
[data-media].is-broken { background: linear-gradient(135deg, #f3f3f3, #e9ecf2); }
[data-media].is-broken img { display: none; }

/* ---- hero: the #تخفیف‌من banner, then the copy on the same blue ---- */
.sc-hero { margin: 6px 0 14px; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px -22px #0b3a9e99; }
.sc-hero__banner, .sc-hero__banner img { display: block; }
.sc-hero__banner img { width: 100%; height: auto; aspect-ratio: 1367 / 600; object-fit: cover; }
/* Hero like the other landings: no card, the transparent art on a soft glow, pills floating around it, copy below
   (desktop: copy on the right, art on the left). */
.sc-hero--clean { display: grid; justify-items: center; gap: 6px; overflow: visible; border-radius: 0; background: none; box-shadow: none; text-align: center; }
.sc-hero__scene { position: relative; isolation: isolate; width: min(340px, 82vw); }
.sc-hero__scene::before { content: ''; position: absolute; inset: 4% 2%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, #2aa8ff47, #d1146a1f 60%, transparent 100%); filter: blur(6px); }
.sc-hero__art { display: block; width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 26px #0b3a9e40);
  animation: sc-hero-float 6s ease-in-out infinite; }
@keyframes sc-hero-float { 50% { transform: translateY(-8px); } }
.sc-hero-pill { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff;
  color: var(--ap-ink); font-size: 12px; font-weight: 800; line-height: 1.4; white-space: nowrap; text-decoration: none;
  box-shadow: 0 1px 2px #0a3a5c14, 0 10px 24px -10px #0a3a5c59; animation: sc-pill-in .5s var(--ap-ease) both, sc-pill-bob 5s ease-in-out infinite; }
.sc-hero-pill .sc-icon { width: 16px; height: 16px; color: var(--sc-magenta); }
.sc-hero-pill .sc-live-dot { width: 8px; height: 8px; }
.sc-hero-pill--s1 { top: 9%; right: -4%; animation-delay: .05s, 1.2s; }
.sc-hero-pill--s2 { top: 30%; left: -6%; animation-delay: .15s, 2.1s; }
.sc-hero-pill--s3 { top: 62%; right: -6%; animation-delay: .25s, 3s; }
.sc-hero-pill--s4 { bottom: 4%; left: -2%; animation-delay: .35s, 3.9s; }
.sc-hero-pill:active { transform: scale(.96); }
@keyframes sc-pill-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@keyframes sc-pill-bob { 50% { translate: 0 -4px; } }
.sc-hero__copy { display: grid; justify-items: center; gap: 6px; max-width: 520px; }
.sc-hero__title { display: grid; margin: 0; font-weight: 900; }
.sc-hero__kicker { color: var(--ap-ink); font-size: 16px; font-weight: 800; line-height: 1.7; }
.sc-hero__tag { font-size: 38px; line-height: 1.35; color: var(--tm-yellow); -webkit-text-stroke: 7px var(--tm-navy); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--tm-navy), 0 10px 18px #0b3a9e40; letter-spacing: -.01em; }
.sc-hero__lead { color: var(--ap-ink); font-size: 18px; font-weight: 900; line-height: 1.7; }
.sc-hero__sub { margin: 0; max-width: 360px; color: #5b6170; font-size: 13px; font-weight: 600; line-height: 1.9; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .sc-hero__art, .sc-hero-pill { animation: none; } }
@media (min-width: 900px) {
  .sc-hero--clean { grid-template-columns: 1fr 1fr; align-items: center; justify-items: stretch; gap: 32px; padding: 12px 24px 0; text-align: start; }
  .sc-hero__copy { order: -1; justify-items: start; }
  .sc-hero__scene { width: 400px; justify-self: center; }
  .sc-hero-pill { font-size: 13px; padding: 8px 14px; }
  .sc-hero__kicker { font-size: 24px; }
  .sc-hero__tag { font-size: 60px; }
  .sc-hero__lead { font-size: 28px; }
  .sc-hero__sub { font-size: 15px; max-width: 420px; }
}
.sc-nowrap { white-space: nowrap; }

/* ---- sections ---- */
.sc-section { margin-top: 22px; }
.sc-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sc-section__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.sc-section__title .sc-icon { color: var(--tm-blue-2); }
.sc-hash { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--tm-yellow); color: var(--tm-blue); font-size: 17px; font-weight: 900; transform: rotate(-6deg); box-shadow: 0 2px 0 var(--tm-blue); }
.sc-section__count { color: var(--ap-muted); font-size: 12px; }
.sc-section__more { padding: 0; border: 0; background: none; color: var(--ap-link); font-size: 13px; font-weight: 700; text-decoration: none; }


/* ---- stories row ---- */
.sc-stories { margin-top: 4px; }
.sc-stories__row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--ap-gutter)); padding: 4px var(--ap-gutter); }
.sc-stories__row::-webkit-scrollbar { display: none; }
.sc-story-chip { display: grid; justify-items: center; gap: 4px; width: 74px; padding: 0; border: 0; background: none; }
.sc-story-chip__name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--sc-ink-soft); text-align: center; }
.sc-skeleton { background: linear-gradient(90deg, #f1f3f6 25%, #e8ebf0 37%, #f1f3f6 63%); background-size: 400% 100%; animation: sc-shimmer 1.4s ease infinite; }
.sc-skeleton--story { flex: none; width: 66px; height: 66px; border-radius: 50%; }
.sc-skeleton--reel { width: 132px; height: 234px; border-radius: 16px; }
.sc-skeleton--card { width: 260px; height: 250px; border-radius: 20px; }
@keyframes sc-shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

.sc-filter { position: sticky; top: calc(var(--sp-header-h, 64px) - 1px); z-index: 5; margin: 18px calc(-1 * var(--ap-gutter)) 0; padding: 8px var(--ap-gutter);
  background: #fffffff0; backdrop-filter: blur(8px); }
.sc-filter .sc-chips { margin: 0; padding: 0; }

/* ---- error ---- */
.sc-error { display: grid; gap: 10px; justify-items: center; margin: 20px 0; padding: 20px; border-radius: 16px; background: var(--ap-danger-soft); color: var(--ap-danger); text-align: center; }

/* ---- live ---- */
.sc-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 4px #ff2d5526; animation: sc-pulse 1.6s ease infinite; }
@keyframes sc-pulse { 50% { box-shadow: 0 0 0 7px #ff2d5500; } }
.sc-lives { margin-inline: calc(-1 * var(--ap-gutter)); padding: 16px var(--ap-gutter) 18px; background: linear-gradient(180deg, #fff3f7, #fff 85%); border-radius: 0; }
.sc-lives__lead { margin: -4px 0 10px; font-size: 13px; color: var(--sc-ink-soft); line-height: 1.9; }
.sc-lives__days { margin-bottom: 12px; }
.sc-chip--live[aria-pressed="true"] { background: linear-gradient(90deg, #ff2d55, var(--sc-magenta)); border-color: transparent; }
.sc-chip--live .sc-live-dot { width: 8px; height: 8px; }
.sc-chip--live[aria-pressed="true"] .sc-live-dot { background: #fff; box-shadow: none; }
.sc-live { display: grid; gap: 4px; width: 156px; padding: 0; border: 0; background: none; color: inherit; text-align: start; }
.sc-live__cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; box-shadow: var(--ap-elev-1); }
.sc-live__cover img { width: 100%; height: 100%; object-fit: cover; }
.sc-live__cover::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(#0000, #000a); }
.sc-live.is-live .sc-live__cover { outline: 2.5px solid #ff2d55; outline-offset: -2.5px; }
.sc-live__badge { position: absolute; z-index: 1; top: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 7px;
  background: #0d1018b3; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 24px; backdrop-filter: blur(4px); }
.sc-live__badge .sc-icon { width: 14px; height: 14px; }
.sc-live__badge.is-on { background: linear-gradient(90deg, #ff2d55, var(--sc-magenta)); }
/* Ended sessions stay at the end of the row, in grey. */
.sc-live.is-ended .sc-live__cover { filter: grayscale(1); opacity: .55; box-shadow: none; }
.sc-live.is-ended .sc-live__title, .sc-live.is-ended .sc-live__off { color: var(--ap-muted); }
.sc-live__badge.is-ended { background: #5b6170e6; }
.sc-live__count { position: absolute; z-index: 1; top: 8px; inset-inline-end: 8px; padding: 0 7px; border-radius: 7px; background: #fffffff0; color: var(--ap-ink); font-size: 10.5px; font-weight: 700; line-height: 22px; }
.sc-live__who { position: absolute; z-index: 1; bottom: 8px; inset-inline: 8px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 800; }
.sc-live__who bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-live__who .sc-avatar__img { border: 1.5px solid #fff; }
.sc-live__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.7; }
.sc-live__off { font-size: 12px; font-weight: 800; color: var(--sc-magenta); }

/* live sheet */
.sc-livesheet__frame { display: flex; flex-direction: column; width: min(100%, 520px); height: 100%; margin: 0 auto; background: #fff; color: var(--ap-ink); }
.sc-livesheet__head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 4px; }
.sc-livesheet__name { font-size: 16px; font-weight: 900; }
.sc-livesheet__handle { font-size: 12.5px; color: var(--ap-muted); direction: rtl; }
.sc-livesheet__when { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--sc-ink-soft); }
.sc-livesheet__when .sc-icon { width: 16px; height: 16px; }
.sc-livesheet__when.is-on { color: #e0103a; }
.sc-btn--live { background: linear-gradient(90deg, #ff2d55, var(--sc-magenta)); color: #fff; }
.sc-livesheet__title { padding: 18px 16px 8px; font-size: 15px; font-weight: 800; }
.sc-livesheet__items { display: grid; gap: 10px; padding: 0 16px; }
.sc-liveitem { display: flex; gap: 12px; padding: 8px; border: 1px solid var(--ap-line); border-radius: 16px; }
.sc-liveitem__img { position: relative; width: 92px; height: 92px; flex: none; border-radius: 12px; overflow: hidden; }
.sc-liveitem__img img { width: 100%; height: 100%; object-fit: cover; }
.sc-liveitem__off { position: absolute; top: 6px; inset-inline-start: 6px; padding: 0 6px; border-radius: 6px; background: var(--ap-danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; }
.sc-liveitem__text { display: grid; align-content: center; gap: 1px; min-width: 0; line-height: 1.7; }
.sc-liveitem__title { font-size: 13.5px; }
.sc-liveitem__pre { font-size: 12px; color: var(--ap-subtle); }
.sc-liveitem__price { font-size: 14.5px; font-weight: 900; }
.sc-liveitem__note { font-size: 11.5px; color: var(--ap-brand-ink); }

/* ---- reels rail ---- */
.sc-reel-card { position: relative; display: block; width: 132px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--sc-dark); color: #fff; text-align: start; }
.sc-reel-card__media { display: block; aspect-ratio: 9 / 16; background: #1b2030 var(--cover, none) center / cover; }
.sc-reel-card__media[style] video:not(.is-loaded) { opacity: 0; }
.sc-reel-card video, .sc-reel-card__media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sc-reel-card--all { display: grid; place-items: center; background: linear-gradient(160deg, var(--tm-blue-2), var(--tm-navy)); }
.sc-reel-card--all .sc-reel-card__media { position: absolute; inset: 0; display: grid; place-items: center; background: none; }
.sc-reel-card--all .sc-icon { width: 40px; height: 40px; color: var(--tm-yellow); }
.sc-reel-card--all::after { display: none; }
.sc-reel-card__allname { position: absolute; bottom: 18px; inset-inline: 8px; text-align: center; font-size: 13px; font-weight: 800; }
.sc-reel-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 55%, #000a); pointer-events: none; }
.sc-reel-card__play { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0006; }
.sc-reel-card__play .sc-icon { width: 14px; height: 14px; fill: #fff; stroke: none; }
.sc-reel-card__who { position: absolute; z-index: 1; bottom: 8px; inset-inline: 8px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.sc-reel-card__who bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-reel-card__who .sc-avatar__img { border: 1.5px solid #fff; }

/* ---- page cards ---- */
.sc-page-card { position: relative; width: 264px; padding: 6px 6px 12px; border: 1px solid var(--ap-line); border-radius: 20px; background: #fff; box-shadow: var(--ap-elev-1); }
.sc-page-card__grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 150px; border-radius: 15px; overflow: hidden; }
.sc-page-card__grid > :first-child { grid-row: span 2; }
.sc-page-card__grid > span:only-child { grid-column: span 2; }
.sc-page-card__grid img, .sc-page-card__grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-page-card__body { display: flex; align-items: center; gap: 10px; margin: -22px 8px 0; position: relative; }
.sc-page-card__body .sc-avatar { box-shadow: 0 0 0 3px #fff; }
.sc-page-card__text { min-width: 0; padding-top: 22px; }
.sc-page-card__name { display: flex; align-items: center; font-size: 14.5px; font-weight: 800; line-height: 1.6; }
.sc-page-card__name bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-page-card__meta { color: var(--ap-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-page-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 12px 8px 0; }
.sc-page-card__actions .sc-btn:not(.sc-btn--primary) { position: relative; z-index: 2; }
.sc-page-card__open { position: absolute; inset: 0; z-index: 1; border: 0; background: none; border-radius: inherit; }

/* ---- feed posts ---- */
.sc-feed__list { display: grid; gap: 18px; }
.sc-post { background: #fff; }
.sc-feed .sc-post { border: 1px solid var(--ap-line); border-radius: 20px; overflow: hidden; }
.sc-post__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.sc-post__who { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; text-align: start; }
.sc-post__who > span:last-child { display: grid; min-width: 0; line-height: 1.5; }
.sc-post__name { display: flex; align-items: center; font-size: 14px; font-weight: 800; }
.sc-post__name bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-post__cat { font-size: 11.5px; color: var(--ap-muted); }
.sc-post__follow { flex: none; padding: 4px 12px; border-radius: 10px; background: var(--ap-brand-soft); color: var(--ap-brand-ink); font-size: 12.5px; font-weight: 800; text-decoration: none; }
.sc-post__actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0; }
.sc-post__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ap-ink); }
.sc-post__icon .sc-icon { width: 25px; height: 25px; }
.sc-post__buy { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 12px;
  background: linear-gradient(90deg, var(--tm-red), var(--tm-red-2)); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.sc-post__buy .sc-icon { width: 17px; height: 17px; }
.sc-post__caption { padding: 6px 14px 14px; font-size: 13px; line-height: 1.9; color: var(--sc-ink-soft); }
.sc-post__author { font-weight: 800; color: var(--ap-ink); }
.sc-feed__more { display: flex; width: 100%; margin-top: 16px; }
.sc-feed__end { margin-top: 14px; color: var(--ap-muted); font-size: 13px; text-align: center; }

/* carousel (one post, several slides) */
.sc-carousel { position: relative; }
.sc-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sc-carousel__track::-webkit-scrollbar { display: none; }
.sc-carousel__slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: center; scroll-snap-stop: always; }
.sc-carousel__slide img, .sc-carousel__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-carousel__count { position: absolute; top: 10px; inset-inline-end: 10px; padding: 0 8px; border-radius: 999px; background: #0d1018a6; color: #fff; font-size: 11.5px; line-height: 22px; }
.sc-carousel__dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.sc-carousel__dots i { width: 6px; height: 6px; border-radius: 50%; background: #ffffff8c; transition: background .2s, transform .2s; }
.sc-carousel__dots i.is-on { background: #fff; transform: scale(1.2); }

/* ---- how to ---- */
.sc-howto { padding: 18px; border-radius: 22px; background: var(--ap-brand-soft); }
.sc-steps { counter-reset: step; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sc-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; }
.sc-steps li::before { content: counter(step, persian); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--ap-brand-strong); color: #fff; font-weight: 900; }
.sc-steps strong { font-size: 14.5px; }
.sc-steps span { font-size: 13px; color: var(--sc-ink-soft); line-height: 1.8; }
.sc-benefits { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ap-brand-line); }
.sc-benefits li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.sc-benefits .sc-icon { color: var(--tm-blue-2); }

/* ---- directory ---- */
.sc-search { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--ap-line); border-radius: 14px; background: var(--ap-surface); color: var(--ap-muted); }
.sc-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--ap-ink); }
.sc-search:focus-within { border-color: var(--ap-brand); background: #fff; }
.sc-directory__chips { margin-top: 10px; }
.sc-directory__list { display: grid; margin-top: 8px; }
.sc-dir { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ap-line); }
.sc-dir__logo { position: relative; display: grid; place-items: center; width: var(--size, 46px); height: var(--size, 46px); flex: none; border-radius: 50%; overflow: hidden; border: 1px solid var(--ap-line); background: #fff; }
.sc-dir__logo img { width: 100%; height: 100%; object-fit: contain; }
.sc-dir__logo:not(:has(img)), .sc-dir__logo.is-broken { background: var(--ap-brand-soft); }
.sc-dir__logo:not(:has(img))::after, .sc-dir__logo.is-broken::after { content: attr(data-initial); color: var(--ap-brand-ink); font-weight: 800; }
.sc-dir__text { display: grid; min-width: 0; flex: 1; line-height: 1.6; }
.sc-dir__name { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; text-align: start; }
.sc-dir__name bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.sc-dir__name { color: var(--ap-ink); }
.sc-dir__has-page { flex: none; padding: 0 6px; border-radius: 6px; background: var(--sc-magenta-soft); color: var(--sc-magenta); font-size: 10.5px; font-weight: 800; line-height: 18px; }
.sc-dir__cat { font-size: 12px; color: var(--ap-muted); }
.sc-dir__links { display: flex; gap: 6px; flex: none; }
.sc-dir__link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ap-surface); color: var(--sc-ink-soft); text-decoration: none; font-size: 13px; font-weight: 800; }
.sc-dir__link .sc-icon { width: 19px; height: 19px; }
.sc-dir__link--instagram { color: var(--sc-magenta); background: var(--sc-magenta-soft); }
.sc-dir__link--telegram { color: #229ed9; background: #e9f6fc; }
.sc-directory__empty { padding: 24px 0; color: var(--ap-muted); text-align: center; }
.sc-directory__more { display: flex; width: 100%; margin-top: 14px; }
.sc-directory__join { margin-top: 14px; font-size: 13px; color: var(--ap-muted); text-align: center; }
.sc-directory__join a { color: var(--ap-link); font-weight: 700; }

/* ================================================================ full-screen layers */
dialog.sc-layer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
dialog.sc-layer::backdrop { background: #000c; }
dialog.sc-layer[open] { animation: sc-layer-in .22s var(--ap-ease) both; }
dialog.sc-layer.is-closing { animation: sc-layer-out .18s ease both; }
@keyframes sc-layer-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes sc-layer-out { to { opacity: 0; transform: translateY(16px); } }
.sc-viewer__close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: none; color: inherit; }
.sc-viewer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-viewer__who { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; }
.sc-viewer__name { display: flex; align-items: center; font-size: 14px; font-weight: 800; }

/* story */
.sc-story__frame { position: relative; width: min(100%, calc(100dvh * 9 / 16)); height: 100%; margin: 0 auto; background: #000; color: #fff; overflow: hidden; touch-action: none; user-select: none; }
.sc-story__stage { position: absolute; inset: 0; display: grid; place-items: center; background: #111; }
.sc-story__media, .sc-story__stage img { width: 100%; height: 100%; object-fit: contain; }
.sc-story__top { position: absolute; top: 0; inset-inline: 0; z-index: 2; padding: calc(10px + var(--ap-safe-top)) 10px 18px; background: linear-gradient(#0008, #0000); }
.sc-story__bars { display: flex; gap: 3px; direction: ltr; flex-direction: row-reverse; }
.sc-story__bar { flex: 1; height: 2.5px; border-radius: 2px; background: #ffffff59; overflow: hidden; }
.sc-story__bar i { display: block; width: 0; height: 100%; background: #fff; float: right; }
.sc-story__bar.is-done i { width: 100%; transition: none; }
.sc-story__head { margin-top: 10px; }
.sc-story__head .sc-avatar__img { border: 1.5px solid #fff; }
.sc-story__tap { position: absolute; top: 0; bottom: 90px; z-index: 1; width: 40%; border: 0; background: none; }
.sc-story__tap--prev { right: 0; }
.sc-story__tap--next { left: 0; width: 60%; }
.sc-story__foot { position: absolute; bottom: 0; inset-inline: 0; z-index: 2; display: flex; gap: 8px; padding: 20px 12px calc(14px + var(--ap-safe-bottom)); background: linear-gradient(#0000, #0009); }
.sc-story__reply, .sc-story__cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; }
.sc-story__reply { flex: 1; border: 1px solid #ffffffa6; }
.sc-story__cta { padding: 0 18px; background: #fff; color: var(--ap-ink); }
.sc-story__frame.is-paused .sc-story__top, .sc-story__frame.is-paused .sc-story__foot { opacity: .4; transition: opacity .2s; }

/* reels */
.sc-reels__frame { position: relative; width: min(100%, calc(100dvh * 9 / 16)); height: 100%; margin: 0 auto; background: #000; color: #fff; }
.sc-reels__title { position: absolute; top: calc(12px + var(--ap-safe-top)); inset-inline-start: 16px; z-index: 3; font-size: 20px; font-weight: 900; text-shadow: 0 1px 6px #0007; pointer-events: none; }
.sc-reels__close { position: absolute; top: calc(6px + var(--ap-safe-top)); inset-inline-end: 6px; z-index: 3; }
.sc-reels__list { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.sc-reels__list::-webkit-scrollbar { display: none; }
.sc-reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.sc-reel__media { position: absolute; inset: 0; background: #000; }
.sc-reel__video, .sc-story__media { width: 100%; height: 100%; object-fit: cover; background: #000; }
.sc-reel__media::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(#0000, #000b); pointer-events: none; }
.sc-reel__paused { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #0007; opacity: 0; transition: opacity .2s; pointer-events: none; }
.sc-reel__paused .sc-icon { width: 34px; height: 34px; fill: #fff; stroke: none; }
.sc-reel.is-paused .sc-reel__paused { opacity: 1; }
.sc-reel__sound { position: absolute; top: calc(58px + var(--ap-safe-top)); inset-inline-end: 12px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #0008; color: #fff; }
.sc-reel__sound .sc-icon { width: 19px; height: 19px; }
.sc-reel__side { position: absolute; bottom: calc(120px + var(--ap-safe-bottom)); inset-inline-end: 10px; z-index: 2; display: grid; gap: 16px; justify-items: center; }
.sc-reel__action { display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; filter: drop-shadow(0 1px 3px #0008); }
.sc-reel__action .sc-icon { width: 28px; height: 28px; }
.sc-reel__store .sc-avatar__img { border: 2px solid #fff; }
.sc-reel__info { position: absolute; bottom: 0; inset-inline: 0; z-index: 2; padding: 0 14px calc(16px + var(--ap-safe-bottom)); padding-inline-end: 70px; }
.sc-reel__who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 0; border: 0; background: none; color: #fff; font-size: 15px; font-weight: 800; text-align: start; }
.sc-reel__cat { padding: 0 8px; border: 1px solid #ffffff80; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 20px; }
.sc-reel__pay { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.sc-reel__pay .sc-icon { width: 17px; height: 17px; }
.sc-reel__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 10px; border-radius: 14px; background: #fff; color: var(--ap-ink); font-size: 14.5px; font-weight: 800; text-decoration: none; }
.sc-reel__cta .sc-icon { width: 19px; height: 19px; color: var(--tm-red); }

/* profile + post viewer: white sheets */
.sc-profile__frame, .sc-postview__frame { display: flex; flex-direction: column; width: min(100%, 520px); height: 100%; margin: 0 auto; background: #fff; color: var(--ap-ink); }
.sc-profile__bar, .sc-postview__frame > .sc-viewer__head { display: flex; align-items: center; gap: 4px; padding: calc(4px + var(--ap-safe-top)) 6px 4px; border-bottom: 1px solid var(--ap-line); }
.sc-profile__handle { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; direction: ltr; }
.sc-profile__scroll, .sc-postview__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(20px + var(--ap-safe-bottom)); }
.sc-profile__head { display: flex; align-items: center; gap: 18px; padding: 16px 16px 6px; }
.sc-profile__pic { padding: 0; border: 0; background: none; border-radius: 50%; }
.sc-profile__stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.sc-profile__stats li { display: grid; line-height: 1.5; }
.sc-profile__stats strong { font-size: 18px; font-weight: 900; }
.sc-profile__stats span { font-size: 12.5px; color: var(--sc-ink-soft); }
.sc-profile__installments strong { color: var(--tm-red); }
.sc-profile__bio { padding: 6px 16px 0; line-height: 1.7; }
.sc-profile__name { font-size: 14.5px; font-weight: 800; }
.sc-profile__cat { font-size: 13px; color: var(--ap-muted); }
.sc-profile__pay { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--ap-brand-ink); font-weight: 700; }
.sc-profile__pay .sc-icon { width: 17px; height: 17px; }
.sc-profile__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 0; }
.sc-profile__channels { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.sc-profile__tabs { display: flex; margin-top: 16px; border-bottom: 1px solid var(--ap-line); }
.sc-profile__tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ap-muted); font-size: 13px; font-weight: 700; }
.sc-profile__tabs button[aria-selected="true"] { border-color: var(--ap-ink); color: var(--ap-ink); }
.sc-profile__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.sc-profile__cell { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; }
.sc-profile__grid--reels .sc-profile__cell { aspect-ratio: 9 / 16; background: #111; }
.sc-profile__cell img, .sc-profile__cell video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sc-profile__badge { position: absolute; top: 6px; inset-inline-end: 6px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px #0009); }
.sc-profile__note { padding: 14px 16px 0; font-size: 12px; color: var(--ap-muted); text-align: center; }
.sc-postview__list { display: grid; gap: 14px; align-content: start; }

.sc-reel__media.is-broken, .sc-reel-card__media.is-broken { background: #1b2030; }


/* ---- stores row (first section) ---- */
.sc-stores__row { gap: 12px; padding-block: 2px 4px; }
.sc-store { display: grid; justify-items: center; gap: 2px; width: 82px; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; text-align: center; }
.sc-store .sc-dir__logo { width: 64px; height: 64px; border: 2px solid var(--tm-yellow); box-shadow: 0 3px 0 var(--tm-blue); }
.sc-store__name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; font-size: 12px; font-weight: 700; }
.sc-store__cat { font-size: 10.5px; color: var(--ap-muted); line-height: 1.4; }
.sc-store--all .sc-store__logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tm-blue); color: var(--tm-yellow); box-shadow: 0 3px 0 var(--tm-navy); }
.sc-store--all .sc-icon { width: 26px; height: 26px; }
.sc-dir__hot { margin-inline-end: 6px; padding: 0 6px; border-radius: 5px; background: var(--tm-yellow); color: var(--tm-blue); font-size: 10px; font-weight: 900; }
.sc-allstores { display: grid; gap: 10px; justify-items: center; margin-top: 22px; padding: 18px; border-radius: 20px; background: var(--ap-brand-soft); text-align: center; font-size: 13px; color: var(--sc-ink-soft); }

/* directory modal */
.sc-dirsheet__frame { display: flex; flex-direction: column; width: min(100%, 560px); height: 100%; margin: 0 auto; background: #fff; color: var(--ap-ink); }
.sc-dirsheet__top { padding-bottom: 8px; border-bottom: 1px solid var(--ap-line); }
.sc-dirsheet__top .sc-profile__bar { border-bottom: 0; }
.sc-dirsheet__top .sc-search { margin: 4px 16px 0; }
.sc-dirsheet__top .sc-chips { margin: 8px 0 0; padding-inline: 16px; }
.sc-dirsheet__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px calc(24px + var(--ap-safe-bottom)); }
.sc-directory__count { font-size: 12px; color: var(--ap-muted); }

/* ---- vouchers: tickets in the تخفیف‌من style ---- */
.sc-vouchers__list { display: grid; gap: 10px; }
/* Compact ticket (~96px): title, one meta line, then copy + terms; the amount sits on the stub. */
.sc-ticket { --notch: 10px; --stub: 84px; position: relative; display: grid; grid-template-columns: 1fr var(--stub); border-radius: 16px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #ff6b4a 0%, transparent 55%), linear-gradient(120deg, var(--tm-red-2), var(--tm-red) 55%, #a50c22);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom left / 100% 51% no-repeat;
  box-shadow: 0 10px 22px -16px #d3122b; }
.sc-ticket::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: var(--stub); border-left: 1.5px dashed #ffffff73; }
.sc-ticket__body { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 10px 14px 10px 10px; }
.sc-ticket__title { overflow: hidden; color: var(--tm-yellow); font-size: 15px; font-weight: 900; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.sc-ticket__meta { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.7; color: #ffffffe0; }
.sc-ticket__meta > span + span::before { content: '·'; margin-inline-end: 6px; opacity: .7; }
.sc-ticket__meta > span { flex: none; }
.sc-ticket__meta > .sc-ticket__tag { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.sc-ticket__row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.sc-ticket__copy { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 4px 0 10px; border: 1.5px dashed #ffffffb3; border-radius: 10px; background: #ffffff1a; color: #fff; font-size: 11.5px; font-weight: 800; }
.sc-ticket__code { font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; padding: 0 7px; border-radius: 7px; background: #fff; color: var(--tm-red); font-size: 12.5px; font-weight: 900; letter-spacing: .05em; line-height: 22px; direction: ltr; }
.sc-ticket__copy .sc-icon { width: 15px; height: 15px; }
.sc-ticket__copy.is-copied, .sc-btn--copy.is-copied { background: #0f9d58; border-color: #0f9d58; }
.sc-ticket__terms { display: inline-flex; align-items: center; gap: 1px; min-height: 32px; padding: 0 6px; border: 0; background: none; color: #fff; font-size: 11.5px; font-weight: 800; opacity: .9; }
.sc-ticket__terms .sc-icon { width: 14px; height: 14px; }
.sc-ticket__stub { display: grid; place-content: center; justify-items: center; padding: 8px 4px; text-align: center; }
.sc-ticket__amount { color: var(--tm-yellow); font-size: 32px; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 0 #9b0a1e; }
.sc-ticket__unit { font-size: 11px; font-weight: 800; }

/* voucher sheet (bottom sheet) */
dialog.sc-vsheet { display: grid; align-items: end; }
dialog.sc-vsheet:not([open]) { display: none; }
.sc-vsheet__panel { width: min(100%, 520px); margin: 0 auto; padding: 8px 16px calc(18px + var(--ap-safe-bottom)); border-radius: 24px 24px 0 0; background: #fff; color: var(--ap-ink); animation: sc-sheet-up .28s var(--ap-ease) both; }
@keyframes sc-sheet-up { from { transform: translateY(40%); opacity: .4; } }
.sc-vsheet__grab { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 3px; background: #d6dae2; }
.sc-vsheet__head { display: flex; justify-content: flex-end; margin-top: -20px; }
.sc-vsheet__hero { display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; }
.sc-vsheet__amount { display: grid; place-content: center; justify-items: center; width: 92px; height: 92px; flex: none; border-radius: 22px; background: linear-gradient(135deg, var(--tm-red-2), var(--tm-red)); color: #fff; }
.sc-vsheet__amount strong { color: var(--tm-yellow); font-size: 34px; font-weight: 900; line-height: 1.1; }
.sc-vsheet__amount span { font-size: 11px; font-weight: 800; }
.sc-vsheet__title { font-size: 17px; font-weight: 900; }
.sc-vsheet__tag { font-size: 13px; color: var(--tm-red); font-weight: 700; }
.sc-vsheet__terms { display: grid; margin: 0; border-top: 1px solid var(--ap-line); }
.sc-vsheet__terms div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ap-line); font-size: 13px; }
.sc-vsheet__terms dt { color: var(--ap-muted); }
.sc-vsheet__terms dd { margin: 0; font-weight: 700; line-height: 1.8; }
.sc-vsheet__list { display: grid; gap: 4px; margin: 10px 0 0; padding-inline-start: 18px; list-style: disc; font-size: 12.5px; color: var(--sc-ink-soft); line-height: 1.9; }
.sc-vsheet__actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 16px; }
.sc-btn--copy { gap: 8px; background: var(--tm-red); color: #fff; min-height: 48px; }
.sc-btn--copy .sc-ticket__code { line-height: 24px; }
.sc-btn--copy .sc-icon { width: 18px; height: 18px; }

/* ---- products ---- */
.sc-products__list { gap: 10px; padding-block: 2px 8px; }
.sc-products__chips { margin-bottom: 10px; }
.sc-product__cta { font-size: 11px; }
.sc-product { display: grid; width: 158px; padding: 0; border: 1px solid var(--ap-line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; text-align: start; overflow: hidden; box-shadow: var(--ap-elev-1); }
.sc-product__media { position: relative; display: block; aspect-ratio: 1; background: var(--ap-media); }
.sc-product__media img { width: 100%; height: 100%; object-fit: cover; }
.sc-product__off { position: absolute; top: 8px; inset-inline-start: 8px; display: grid; justify-items: center; padding: 3px 7px 2px; border-radius: 10px; background: var(--tm-yellow); color: var(--tm-red); font-size: 9.5px; font-weight: 900; line-height: 1.2; box-shadow: 0 2px 0 var(--tm-red); }
.sc-product__off strong { font-size: 15px; }
.sc-product__body { display: grid; gap: 2px; padding: 8px 10px 10px; }
.sc-product__shop { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ap-muted); overflow: hidden; white-space: nowrap; }
.sc-product__shop .sc-icon { width: 13px; height: 13px; color: var(--sc-magenta); }
.sc-product__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; font-size: 12.5px; line-height: 1.7; }
.sc-product__prices { display: grid; line-height: 1.5; min-height: 2.4em; align-content: end; }
.sc-product__pre { font-size: 11px; color: var(--ap-subtle); }
.sc-product__price { font-size: 14px; font-weight: 900; }
.sc-product__cta { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; min-height: 32px; border-radius: 10px; background: var(--tm-blue); color: #fff; font-size: 11.5px; font-weight: 800; }
.sc-product__cta .sc-icon { width: 15px; height: 15px; }
.sc-skeleton--product { width: 158px; height: 300px; border-radius: 18px; }

/* ---- mobile tab bar ---- */
.sc-tabbar { position: fixed; z-index: 20; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 6px calc(4px + var(--ap-safe-bottom));
  border-top: 1px solid var(--ap-line); background: #fffffff2; backdrop-filter: blur(10px); transition: transform .25s var(--ap-ease); }
.sc-tabbar.is-hidden { transform: translateY(110%); }
.sc-tabbar button { display: grid; justify-items: center; gap: 1px; min-height: 50px; padding: 4px 0 0; border: 0; background: none; color: var(--sc-ink-soft); font-size: 10.5px; font-weight: 700; }
.sc-tabbar button[data-tab="reels"] .sc-icon { color: var(--tm-red); }
.sc-tabbar .sc-icon { width: 24px; height: 24px; }
html.is-panel-open .sc-tabbar { display: none; }
.sp-totop { bottom: calc(76px + var(--chrome-safe-bottom, 0px)) !important; }

/* ---- loading spinners (stories, reels) ---- */
.sc-spinner { position: absolute; inset: 0; z-index: 1; margin: auto; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #ffffff40; border-top-color: #fff; opacity: 0; pointer-events: none;
  animation: sc-spin .8s linear infinite; transition: opacity .2s .25s; }
.sc-story__frame.is-loading .sc-spinner, .sc-reel.is-loading .sc-spinner { opacity: 1; }
@keyframes sc-spin { to { transform: rotate(360deg); } }


/* ---- Swiper rails & post photos (assets/vendor, loaded on demand) ---- */
.sc-swiper-shell { position: relative; margin-inline: calc(-1 * var(--ap-gutter)); overflow: hidden; overflow: clip; }
/* Nothing may widen the page on phones (iOS Safari ignores overflow-x on body alone): clip at the root and per section. */
html, body { overflow-x: hidden; max-width: 100%; }
body { position: relative; }
@supports (overflow: clip) { html { overflow-x: clip; } }

.sc-swiper { padding-block: 4px 10px; margin-block: -4px -10px; }
.sc-swiper:not(.swiper-initialized) { overflow: visible; }
.sc-swiper > .sc-rail, .sc-swiper > .sc-stories__row { margin-inline: 0; }
.sc-swiper.swiper-initialized > .swiper-wrapper { overflow: visible; padding: 0; gap: 0; scroll-snap-type: none; }
.sc-swiper > .swiper-wrapper > .swiper-slide { width: auto; height: auto; flex-shrink: 0; }
.sc-swiper.swiper-initialized { cursor: grab; }
.sc-nav { position: absolute; z-index: 3; top: 50%; display: none; place-items: center; width: 40px; height: 40px; margin-top: -24px; padding: 0; border: 1px solid var(--ap-line); border-radius: 50%;
  background: #fffffff2; color: var(--ap-ink); box-shadow: var(--ap-elev-2); transition: opacity .2s, transform .2s var(--ap-ease); }
.sc-nav .sc-icon { width: 20px; height: 20px; }
.sc-nav--prev { right: 6px; }
.sc-nav--prev .sc-icon { transform: scaleX(-1); }
.sc-nav--next { left: 6px; }
.sc-nav.is-off { opacity: 0; pointer-events: none; }
.sc-nav:hover { transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
  .sc-swiper-shell.is-ready > .sc-nav { display: grid; }
  .sc-carousel.is-ready > .sc-nav { display: grid; opacity: 0; width: 32px; height: 32px; margin-top: -16px; }
  .sc-carousel.is-ready:hover > .sc-nav:not(.is-off), .sc-carousel.is-ready:focus-within > .sc-nav:not(.is-off) { opacity: 1; }
  .sc-carousel > .sc-nav--prev { right: 8px; }
  .sc-carousel > .sc-nav--next { left: 8px; }
}
.sc-carousel__swiper { width: 100%; }
/* Swiper inside grid/flex items: without min-width 0 an item grows with its slides (endless width). */
.sc-feed__list, .sc-postview__list { grid-template-columns: minmax(0, 1fr); }
.sc-feed__list > li, .sc-post, .sc-carousel, .sc-swiper-shell, .sc-section { min-width: 0; }
.sc-carousel { max-width: 100%; overflow: hidden; }
.sc-carousel__swiper.swiper-initialized > .sc-carousel__track { overflow: visible; scroll-snap-type: none; }
.sc-carousel__swiper .sc-carousel__slide { width: 100%; }
.sc-carousel__count, .sc-carousel__dots { z-index: 2; }

/* ---- rhythm (minimal): one even gap between every section, quieter titles, flat cards.
   Benchmark: Instagram shop / Pinterest / Digikala Mag landings use ~40px between blocks on phones, 56–72px on desktop. ---- */
:root { --sc-gap: 40px; --sc-gap-tight: 20px; }
.sc-section, .sc-filter, .sc-shell > .ap-guide { margin-top: var(--sc-gap); }
.sc-hero { margin: 8px 0 0; }
.sc-hero + .sc-stories, .sc-filter + .sc-section { margin-top: var(--sc-gap-tight); }
.sc-section__head { align-items: flex-end; margin-bottom: 14px; }
.sc-section__title { font-size: 18px; letter-spacing: -.01em; }
.sc-hash { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
.sc-lives { padding-block: 28px; }
.sc-howto { padding: 22px 20px; }
.sc-page-card, .sc-product { box-shadow: none; }
.sc-feed__list { gap: 24px; }

/* ---- motion & desktop ---- */
@media (prefers-reduced-motion: reduce) {
  .sc-skeleton, .sc-live-dot { animation: none; }
  .sc-spinner { animation-duration: 2s; }
  .sc-vsheet__panel { animation: none; }
  dialog.sc-layer[open], dialog.sc-layer.is-closing { animation: none; }
}
@media (hover: hover) {
  .sc-page-card { transition: box-shadow .2s, transform .2s var(--ap-ease); }
  .sc-page-card:hover { box-shadow: var(--ap-elev-2); transform: translateY(-2px); }
  .sc-reel-card:hover video { transform: scale(1.03); }
  .sc-reel-card video { transition: transform .4s var(--ap-ease); }
}
@media (min-width: 900px) {
  :root { --sc-gap: 64px; --sc-gap-tight: 28px; }
  .sc-shell { max-width: 1080px; padding-bottom: 40px; }
  .sc-tabbar { display: none !important; }
  .sp-totop { bottom: calc(16px + var(--chrome-safe-bottom, 0px)) !important; }
  .sc-vouchers__list { grid-template-columns: 1fr 1fr; }
  .sc-product { width: 190px; }
  .sc-dirsheet__frame { height: min(100%, 860px); margin-top: max(0px, calc((100dvh - 860px) / 2)); border-radius: 20px; overflow: hidden; }
  dialog.sc-vsheet { align-items: center; }
  .sc-vsheet__panel { border-radius: 24px; }
  .sc-reel-card { width: 168px; }
  .sc-lives { margin-inline: 0; padding-inline: 20px; border-radius: 24px; }
  .sc-live { width: 184px; }
  .sc-feed__list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .sc-howto { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .sc-howto .sc-section__head { grid-column: span 2; }
  .sc-benefits { margin-top: 0; padding-top: 0; border-top: 0; align-content: start; }
  .sc-profile__frame, .sc-postview__frame, .sc-livesheet__frame { height: min(100%, 860px); margin-top: max(0px, calc((100dvh - 860px) / 2)); border-radius: 20px; overflow: hidden; }
  .sc-story__frame, .sc-reels__frame { height: min(100%, 900px); margin-top: max(0px, calc((100dvh - 900px) / 2)); border-radius: 16px; }
}

/* Merchant codes (#merchant-vouchers): one compact white card per page, all the same height — who and a live countdown,
   then its two best codes (amount, minimum, code) and «+N کد دیگه» for the rest. One and a peek on a phone, three
   per view on desktop. */
.sc-mvouchers__list { align-items: stretch; }
.sc-swiper > .sc-mvouchers__list > .swiper-slide { height: auto; }
.sc-mvouchers__list > li, .sc-swiper > .sc-mvouchers__list > .swiper-slide { width: min(296px, calc(100vw - 2 * var(--ap-gutter) - 48px)); }
.sc-mv { display: flex; flex-direction: column; height: 100%; padding: 12px; border: 1px solid #e9ebf2; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px #0a1a3a08, 0 6px 18px -14px #0b3a9e40; }
.sc-mv__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f1f5; }
.sc-mv__who { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: start; text-decoration: none; font: inherit; }
.sc-mv__who .sc-avatar { flex: none; }
.sc-mv__id { display: grid; min-width: 0; }
.sc-mv__name { overflow: hidden; color: var(--ap-ink); font-size: 13.5px; font-weight: 800; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.sc-mv__sub { color: #8a90a0; font-size: 11px; font-weight: 600; line-height: 1.5; }
.sc-mv__timer { display: inline-flex; flex: none; align-items: center; gap: 4px; color: var(--tm-red);
  font-size: 12px; font-weight: 800; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-mv__timer .sc-icon { width: 14px; height: 14px; }
.sc-mv__codes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sc-mv__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.sc-mv__row[hidden] { display: none; }
.sc-mv__deal { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; color: var(--ap-ink); font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.sc-mv__deal strong { color: var(--tm-navy); font-size: 14px; font-weight: 900; }
.sc-mv__today { padding: 0 6px; border-radius: 999px; background: var(--tm-red); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.7; }
.sc-mv__min { grid-column: 1; margin: 0; color: #7b8294; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.sc-mv__copy { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-height: 36px; padding: 0 2px;
  border: 0; background: none; color: var(--tm-navy); font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.sc-mv__copy:hover .sc-mv__code { text-decoration: underline; text-underline-offset: 3px; }
.sc-mv__code { direction: ltr; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.sc-mv__copy .sc-icon { width: 14px; height: 14px; color: var(--tm-blue-2); }
.sc-mv__copy-label { display: none; }
.sc-mv__copy.is-copied { color: #0f9d58; }
.sc-mv__copy.is-copied .sc-mv__copy-label { display: inline; }
.sc-mv__copy.is-copied .sc-mv__code, .sc-mv__copy.is-copied .sc-icon { display: none; }
.sc-mv__more { align-self: center; margin-top: auto; padding: 8px 10px 0; border: 0; background: none; color: var(--tm-blue-2);
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.sc-mv__more:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .sc-mvouchers__list > li, .sc-swiper > .sc-mvouchers__list > .swiper-slide { width: calc((min(100vw, 1080px) - 2 * var(--ap-gutter) - 24px) / 3); }
  .sc-mv { padding: 14px; }
}

/* ---- تخفیف‌من mood: the campaign's comic blue/yellow/red, sticker logo, sunburst rays and halftone dots ---- */
#landing { position: relative; isolation: isolate; }
#landing::before { content: ''; position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; height: 720px; transform: translateX(-50%); pointer-events: none;
  background: url("../assets/images/takhfifman/prep-halftone.webp") center top / 720px auto repeat-x,
              radial-gradient(60% 70% at 50% 18%, #d8ecff 0%, #eef6ff 45%, #fff 100%);
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); opacity: .9; }
.sc-hero__scene::before { inset: -8%; background: url("../assets/images/takhfifman/prep-rays-900.webp") center / contain no-repeat;
  filter: none; opacity: .9; border-radius: 0; animation: sc-rays 60s linear infinite;
  -webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%); mask: radial-gradient(closest-side, #000 35%, transparent 100%); }
.sc-hero__scene::after { content: ''; position: absolute; inset: 12% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, #ffd31a59, #2aa8ff33 60%, transparent 100%); filter: blur(8px); }
@keyframes sc-rays { to { rotate: 360deg; } }
.sc-hero-pill { color: var(--tm-navy); border: 2px solid var(--tm-navy); box-shadow: 0 3px 0 var(--tm-navy), 0 10px 20px -12px #0b3a9e80; }
.sc-hero-pill .sc-icon { color: var(--tm-red); }
.sc-hero-pill--s4 { background: var(--tm-yellow); }
.sc-hero__brand { display: block; width: 150px; height: auto; margin-bottom: 2px; rotate: -3deg; filter: drop-shadow(0 6px 10px #0b3a9e33); }
.sc-hero__kicker, .sc-hero__lead { color: var(--tm-navy); }
/* Section stickers: yellow, navy outline, a hard offset shadow — like the campaign's comic badges. */
.sc-hash { border: 2px solid var(--tm-navy); color: var(--tm-navy); box-shadow: 2px 2px 0 var(--tm-navy); transform: rotate(-6deg); }
.sc-section__title { color: var(--tm-navy); }
/* The slogan sticker between the offers and the videos. */
.sc-slogan { position: relative; display: grid; place-items: center; margin: var(--sc-gap, 40px) calc(-1 * var(--ap-gutter)) 0; padding: 18px var(--ap-gutter);
  background: url("../assets/images/takhfifman/prep-halftone.webp") center / 520px auto, linear-gradient(100deg, var(--tm-yellow), #ffe46b);
  border-block: 3px solid var(--tm-navy); overflow: hidden; }
.sc-slogan img { width: min(300px, 78vw); height: auto; rotate: -2.5deg; filter: drop-shadow(0 8px 14px #0b3a9e55); }
.sc-slogan + .sc-section { margin-top: var(--sc-gap, 40px); }
@media (prefers-reduced-motion: reduce) { .sc-hero__scene::before { animation: none; } }
@media (min-width: 900px) {
  .sc-hero__brand { width: 190px; }
  .sc-hero__tag { -webkit-text-stroke-width: 10px; text-shadow: 0 6px 0 var(--tm-navy), 0 14px 24px #0b3a9e40; }
  .sc-slogan { margin-inline: 0; border-radius: 24px; border: 3px solid var(--tm-navy); box-shadow: 0 5px 0 var(--tm-navy); }
  .sc-slogan img { width: 340px; }
}

/* ---- SnappPay codes on the Instagram voucher art (2163×623): text right under the cyan dash, the code on the white
   field (its copy icon is drawn at the field's right end), «شرایط» beside the cyan chevron. Sizes follow the card. ---- */
.sc-vcard { position: relative; container-type: inline-size; aspect-ratio: 2163 / 623; color: #fff; filter: drop-shadow(0 10px 18px #120a5a33); }
.sc-vcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.sc-vcard__text { position: absolute; top: 17%; bottom: 33%; inset-inline-start: 4.7%; inset-inline-end: 36%;
  display: flex; flex-direction: column; justify-content: center; gap: 1cqw; min-width: 0; }
.sc-vcard__amount { margin: 0; overflow: hidden; color: #fff; font-size: max(13px, 3.4cqw); font-weight: 800; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.sc-vcard__amount strong { color: var(--tm-yellow); font-size: 1.6em; font-weight: 900; }
.sc-vcard__amount span { color: #fff; }
.sc-vcard__title { margin: 0; overflow: hidden; color: #ffffffd9; font-size: max(11px, 2.5cqw); font-weight: 800; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.sc-vcard__meta { margin: 0; overflow: hidden; color: #cfcbff; font-size: max(10.5px, 2.2cqw); font-weight: 600; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.sc-vcard__copy { position: absolute; top: 70.5%; height: 18.5%; inset-inline-start: 6.4%; inset-inline-end: 66.85%;
  display: flex; align-items: center; justify-content: center; gap: 1.4cqw; padding-inline: max(20px, 5.4cqw) 1.5cqw; border: 0; border-radius: 999px; background: transparent;
  color: #1b1464; font: inherit; cursor: pointer; }
.sc-vcard__copy:hover { background: #1b14640d; }
.sc-vcard__copy:focus-visible { outline: 2px solid #5ff2ff; outline-offset: 2px; }
.sc-vcard__copy-label { display: none; font-size: max(10px, 1.9cqw); font-weight: 800; }
.sc-vcard__copy.is-copied .sc-vcard__copy-label { display: inline; }
.sc-vcard__copy.is-copied .sc-vcard__code { display: none; }
.sc-vcard__code { direction: ltr; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: max(11px, 2.5cqw); font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.sc-vcard__copy.is-copied { background: #12b76a; color: #fff; }
/* Narrow cards: one line under the amount. */
@container (max-width: 480px) { .sc-vcard__copy { padding-inline: 25px 4px; } .sc-vcard__code { font-size: 10.5px; letter-spacing: .01em; } .sc-vcard__text { gap: 0; } .sc-vcard__amount { font-size: 13px; } .sc-vcard__title { font-size: 10.5px; line-height: 1.5; } .sc-vcard__meta { font-size: 10px; line-height: 1.6; letter-spacing: -.01em; } .sc-vcard__text { gap: 3px; } }
/* Three codes (or more) on desktop: one row of three, no orphan card. */
@media (min-width: 960px) { .sc-vouchers__list:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@container (max-width: 330px) { .sc-vcard__text { inset-inline-end: 31%; } .sc-vcard__meta { font-size: 9.5px; letter-spacing: -.02em; } }
.sc-mv__time { unicode-bidi: isolate; }

/* ---- Lives as the تخفیف‌من arena: navy panel with sunburst rays and halftone, a LIVE sticker, a FOMO line with a
   ticking countdown, and the best discount as a comic burst on each cover. ---- */
.sc-lives { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(90% 70% at 85% 0%, #1f6bff 0%, transparent 60%), linear-gradient(160deg, #0b3a9e 0%, #062a80 45%, #021d6d 100%); }
.sc-lives::before { content: ''; position: absolute; z-index: -1; top: -180px; right: -160px; width: 520px; height: 520px; opacity: .35;
  background: url("../assets/images/takhfifman/prep-rays-900.webp") center / contain no-repeat; animation: sc-rays 80s linear infinite; }
.sc-lives::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 55%; opacity: .18;
  background: url("../assets/images/takhfifman/prep-halftone.webp") center bottom / 640px auto repeat-x; }
.sc-lives .sc-section__title { color: var(--tm-yellow); }
.sc-lives__on { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 8px; background: var(--tm-red); color: #fff;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .06em; rotate: -4deg;
  box-shadow: 2px 2px 0 #021d6d; }
.sc-lives__on .sc-live-dot { width: 7px; height: 7px; background: #fff; box-shadow: 0 0 0 3px #ffffff40; }
.sc-lives__lead { color: #d6e4ff; }
.sc-lives__fomo { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px;
  background: #ffffff14; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.6; }
.sc-lives__fomo[hidden] { display: none; }
.sc-lives__fomo .sc-icon { width: 18px; height: 18px; color: var(--tm-yellow); }
.sc-lives__fomo strong { margin-inline-start: auto; color: var(--tm-yellow); font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sc-lives__fomo.is-on { background: linear-gradient(90deg, var(--tm-red), #ff4a3d); box-shadow: 0 6px 18px -8px #ff2d55; animation: sc-fomo 1.8s ease-in-out infinite; }
.sc-lives__fomo.is-on .sc-live-dot { background: #fff; box-shadow: 0 0 0 4px #ffffff40; }
@keyframes sc-fomo { 50% { box-shadow: 0 6px 26px -4px #ff2d55; } }
.sc-lives .sc-live__title { color: #fff; }
.sc-lives .sc-live__off { color: var(--tm-yellow); font-weight: 700; }
.sc-lives .sc-live__cover { box-shadow: 0 10px 22px -12px #000a; }
.sc-lives .sc-live.is-live .sc-live__cover { outline: 3px solid var(--tm-yellow); outline-offset: -3px; animation: sc-live-glow 1.6s ease-in-out infinite; }
@keyframes sc-live-glow { 50% { box-shadow: 0 0 0 4px #ffd31a59, 0 10px 22px -12px #000a; } }
.sc-live__badge.is-on { background: var(--tm-red); }
.sc-live__badge.is-on .sc-live-dot { width: 7px; height: 7px; background: #fff; box-shadow: none; }
.sc-live__badge.is-soon { background: #021d6dd9; color: var(--tm-yellow); font-variant-numeric: tabular-nums; }
.sc-live__burst { position: absolute; z-index: 1; top: 6px; inset-inline-end: 6px; display: grid; place-items: center; width: 54px; height: 54px; padding-top: 2px;
  background: var(--tm-yellow); color: var(--tm-red); font-size: 17px; font-weight: 900; line-height: 1; rotate: 8deg;
  clip-path: polygon(50% 0%, 61% 12%, 77% 6%, 80% 22%, 96% 25%, 90% 40%, 100% 52%, 88% 62%, 93% 78%, 77% 80%, 72% 96%, 58% 88%, 45% 100%, 36% 87%, 20% 94%, 18% 78%, 3% 72%, 11% 58%, 0% 45%, 12% 35%, 6% 19%, 22% 18%, 27% 3%, 40% 11%);
  filter: drop-shadow(2px 2px 0 #021d6d); }
.sc-live__burst small { display: block; color: #021d6d; font-size: 10px; font-weight: 800; }
.sc-lives .sc-live.is-ended .sc-live__title, .sc-lives .sc-live.is-ended .sc-live__off { color: #9fb0d6; }
@media (prefers-reduced-motion: reduce) { .sc-lives::before, .sc-lives__fomo.is-on, .sc-lives .sc-live.is-live .sc-live__cover { animation: none; } }
@media (min-width: 900px) { .sc-live__burst { width: 60px; height: 60px; font-size: 19px; } }

/* ---- Featured code (featured-voucher.js): a marquee ticket in Instagram colours — navy frame with a ring of lit bulbs,
   the gradient ticket with a stub («کد تخفیف ویژه»), perforation notches and the code to copy. Popup, then sticky. ---- */
.sc-hv { --ig: linear-gradient(115deg, #feda75 0%, #fa7e1e 22%, #d62976 52%, #962fbf 78%, #4f5bd5 100%);
  position: relative; padding: 9px; border-radius: 22px; background: linear-gradient(160deg, #1d1466, #0d0a3a); box-shadow: 0 0 0 2px #2b2290, 0 18px 40px -14px #4f5bd5aa; }
.sc-hv::before { content: ''; position: absolute; inset: 3px; border: 3px dotted #ffe9a8; border-radius: 19px; pointer-events: none;
  filter: drop-shadow(0 0 3px #ffd31a) drop-shadow(0 0 6px #ffd31a99); animation: sc-bulbs 1.2s steps(2) infinite; }
@keyframes sc-bulbs { 50% { opacity: .55; } }
.sc-hv__ticket { --cut: 48px; position: relative; display: grid; grid-template-columns: var(--cut) 1fr; min-height: 124px; border-radius: 14px; background: var(--ig); color: #fff; overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 9px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.sc-hv__ticket::after { content: ''; position: absolute; top: 12px; bottom: 12px; right: var(--cut); border-right: 2px dashed #ffffffa6; }
.sc-hv__stub { display: grid; place-items: center; align-content: center; gap: 6px; padding: 8px 0; background: #00000014; }
.sc-hv__stub .sc-icon { width: 24px; height: 24px; }
.sc-hv__body { display: grid; align-content: center; justify-items: center; gap: 6px; min-width: 0; padding: 16px 8px; text-align: center; }
.sc-hv__amount { margin: 0; font-size: min(26px, 6vw); font-weight: 900; line-height: 1.25; white-space: nowrap; text-shadow: 0 2px 0 #00000033; }
.sc-hv__amount span { font-size: .62em; }
.sc-hv__line { margin: 0; color: #fffffff0; font-size: 12.5px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.sc-hv__code { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 14px; border: 0; border-radius: 999px; background: #fff; color: #962fbf;
  font: inherit; font-size: 12px; font-weight: 800; box-shadow: 0 4px 12px -4px #0005; cursor: pointer; }
.sc-hv__code bdi { direction: ltr; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 15px; font-weight: 900; letter-spacing: .1em; color: #1d1466; }
.sc-hv__code .sc-icon { width: 16px; height: 16px; }
.sc-hv__copied { display: none; }
.sc-hv__code.is-copied { background: #12b76a; color: #fff; }
.sc-hv__code.is-copied bdi, .sc-hv__code.is-copied .sc-icon { display: none; }
.sc-hv__code.is-copied .sc-hv__copied { display: inline; }
/* Popup */
dialog.sc-hvpop { display: grid; place-items: center; padding: 16px; background: #0b0a2acc; backdrop-filter: blur(4px); }
dialog.sc-hvpop:not([open]) { display: none; }
.sc-hvpop__panel { position: relative; display: grid; gap: 18px; width: min(380px, 100%); padding: 30px 20px 22px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #2a1f8f 0%, #120c4a 60%, #0b0833 100%); color: #fff; box-shadow: 0 30px 60px -20px #000c;
  animation: sc-hvpop-in .45s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes sc-hvpop-in { from { opacity: 0; transform: translateY(24px) scale(.92); } }
.sc-hvpop.is-closing .sc-hvpop__panel { opacity: 0; transform: scale(.96); transition: .18s ease; }
.sc-hvpop__close { position: absolute; top: 10px; left: 10px; color: #fff; }
.sc-hvpop__title { margin: 0; padding-inline: 28px; font-size: 19px; font-weight: 900; line-height: 1.5; }
.sc-hvpop__go { justify-self: stretch; justify-content: center; min-height: 46px; background: #fff; color: var(--tm-navy); }
/* Sticky mini ticket */
.sc-hvmini { position: fixed; z-index: 19; left: 50%; bottom: calc(72px + var(--ap-safe-bottom, 0px)); display: flex; align-items: center; width: min(360px, calc(100vw - 24px));
  padding: 3px; border-radius: 16px; background: linear-gradient(115deg, #feda75, #fa7e1e 22%, #d62976 52%, #962fbf 78%, #4f5bd5);
  box-shadow: 0 10px 26px -10px #962fbfcc; transform: translate(-50%, 150%); opacity: 0; transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .2s ease; pointer-events: none; }
.sc-hvmini.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sc-hvmini__open { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 10px; border: 0; border-radius: 13px;
  background: #140d4ef2; color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; text-align: start; cursor: pointer; }
.sc-hvmini__open .sc-icon { width: 20px; height: 20px; color: #feda75; }
.sc-hvmini__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-hvmini__text strong { color: var(--tm-yellow); font-weight: 900; }
.sc-hvmini__code { padding: 2px 8px; border-radius: 8px; background: #fff; color: #1d1466; direction: ltr; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.sc-hvmini__close { position: absolute; top: -9px; right: -6px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: #1d2433; box-shadow: 0 2px 8px #10182840; font: 700 16px/1 inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sc-hv::before, .sc-hvpop__panel { animation: none; } .sc-hvmini { transition: none; } }
@media (min-width: 900px) {
  .sc-hvmini { left: auto; right: 20px; bottom: 20px; transform: translateY(150%); }
  .sc-hvmini.is-shown { transform: none; }
  .sc-hv__amount { font-size: 30px; }
  .sc-hvpop__panel { width: 400px; }
}
