/* ALIGC page-level layouts */

/* ============================ HOME ============================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 460px at 88% -12%, rgba(232, 163, 61, 0.20), transparent 60%),
    radial-gradient(760px 420px at 8% 108%, rgba(91, 63, 196, 0.18), transparent 60%),
    linear-gradient(168deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--sp-8);
  align-items: center;
  padding-block: clamp(36px, 4.4vw, 74px);
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: var(--sp-7); } }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-2xs);
  font-weight: 650;
}
.hero__kicker .badge { padding: 3px 8px; }
.hero h1 { margin-top: var(--sp-5); font-size: clamp(2.15rem, 1.1rem + 3.4vw, 3.5rem); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-500), var(--deal-500) 70%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.hero__proof { display: flex; gap: var(--sp-7); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero__proof b { font-family: var(--font-display); font-size: var(--fs-2xl); display: block; line-height: 1; }
.hero__proof span { font-size: var(--fs-2xs); color: var(--muted); letter-spacing: 0.04em; }

.hero__stage { position: relative; }
.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.hero__card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  transition: transform var(--dur-4) var(--ease-out), box-shadow var(--dur-4) var(--ease);
}
.hero__card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--sh-xl); }
.hero__card:nth-child(1) { grid-row: span 2; }
.hero__card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero__card:nth-child(2) img, .hero__card:nth-child(3) img { aspect-ratio: 16/11; }
.hero__card--studio img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #f7f2eb 0%, #ece4d9 100%);
  padding: clamp(10px, 5%, 22px);
}
.hero__card-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-2xs);
  font-weight: 750;
}
.hero__float {
  position: absolute;
  z-index: 3;
  padding: 12px 15px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
  font-size: var(--fs-2xs);
  animation: float-y 5.5s var(--ease) infinite;
}
.hero__float--a { top: 10%; left: -22px; }
.hero__float--b { bottom: 8%; right: -18px; animation-delay: 1.4s; }
.hero__float b { display: block; font-size: var(--fs-sm); }
@media (max-width: 620px) { .hero__float { display: none; } }

.promise-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.promise-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.promise {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: var(--sp-5) var(--sp-5);
  border-right: 1px solid var(--line);
  transition: background var(--dur-2) var(--ease);
}
.promise:last-child { border-right: 0; }
.promise:hover { background: var(--surface-2); }
.promise__ico {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand-600);
}
.promise__ico svg { width: 22px; height: 22px; }
.promise:nth-child(2) .promise__ico { background: var(--mint-100); color: var(--mint-600); }
.promise:nth-child(3) .promise__ico { background: var(--gold-100); color: var(--gold-600); }
.promise:nth-child(4) .promise__ico { background: var(--deal-100); color: var(--deal-600); }
.promise b { display: block; font-size: var(--fs-sm); }
.promise span { font-size: var(--fs-2xs); color: var(--muted); }
@media (max-width: 980px) { .promise-strip__grid { grid-template-columns: 1fr 1fr; } .promise:nth-child(2) { border-right: 0; } }
@media (max-width: 560px) { .promise-strip__grid { grid-template-columns: 1fr; } .promise { border-right: 0; border-bottom: 1px solid var(--line); } }

.flash {
  background: linear-gradient(135deg, var(--brand-950), var(--brand-800) 55%, #4A1C4C);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  position: relative;
  overflow: hidden;
}
.flash::after {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.35), transparent 65%);
}
.flash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 2;
}
.flash__title { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.flash__title h2 { color: #fff; }
.flash .card { background: rgba(255,255,255,0.97); border-color: transparent; }
.flash .scroller { position: relative; z-index: 2; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
@media (max-width: 1100px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
.cat-tile {
  display: grid;
  gap: 0;
  justify-items: stretch;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--sh-md);
  color: var(--brand-700);
}
.cat-tile__photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F3EEE6;
}
.cat-tile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-4) var(--ease-out);
}
.cat-tile:hover .cat-tile__photo img { transform: scale(1.05); }
.cat-tile b {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 12px 10px 4px;
}
.cat-tile span {
  font-size: var(--fs-3xs);
  color: var(--muted);
  padding: 0 10px 12px;
}
.panel__head .cat-tile__photo {
  width: 52px;
  height: 52px;
  aspect-ratio: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

.brand-sale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 900px) { .brand-sale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brand-sale-grid { grid-template-columns: 1fr; } }
.brand-sale {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.brand-sale:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-200);
}
.brand-sale__name {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.banner-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 860px) { .banner-duo { grid-template-columns: 1fr; } }
.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
  min-height: 250px;
  padding: var(--sp-7);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.banner--violet { background: linear-gradient(120deg, var(--brand-700), var(--brand-400)); }
.banner--warm { background: linear-gradient(120deg, #A32036, #E23E57 60%, #E8A33D); }
.banner__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-size: cover;
  background-position: center;
}
.banner h3 { color: #fff; font-size: var(--fs-2xl); max-width: 22ch; }
.banner p { font-size: var(--fs-sm); opacity: 0.9; max-width: 34ch; }

.compare-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (max-width: 760px) { .compare-card { grid-template-columns: 1fr; } }
.compare-side { padding: var(--sp-6); }
.compare-side + .compare-side { border-left: 1px solid var(--line); background: var(--brand-050); }
@media (max-width: 760px) { .compare-side + .compare-side { border-left: 0; border-top: 1px solid var(--line); } }
.compare-list { list-style: none; padding: 0; display: grid; gap: 11px; font-size: var(--fs-sm); }
.compare-list li { display: flex; gap: 10px; align-items: flex-start; }
.compare-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.compare-list--bad svg { color: var(--muted-2); }
.compare-list--good svg { color: var(--mint-500); }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.quote__text { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.5; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 800;
  font-size: var(--fs-sm);
  flex: none;
}
.quote__who b { display: block; font-size: var(--fs-sm); }
.quote__who span { font-size: var(--fs-2xs); color: var(--muted); }

.editorial { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; } }
.editorial__art {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/3;
  background: var(--surface-3);
}
.editorial__art img { width: 100%; height: 100%; object-fit: cover; }
.mini-list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.mini-list li { display: flex; gap: 13px; }
.mini-list__n {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: var(--fs-2xs);
  font-weight: 800;
}
.mini-list b { display: block; font-size: var(--fs-sm); }
.mini-list p { font-size: var(--fs-xs); color: var(--muted); }

.newsletter-band {
  background: linear-gradient(120deg, var(--brand-950), var(--brand-700));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 860px) { .newsletter-band { grid-template-columns: 1fr; } }
.newsletter-band h2 { color: #fff; }
.newsletter-band p { opacity: 0.82; margin-top: 10px; font-size: var(--fs-sm); }

/* ============================ LISTING ============================ */
.listing { display: grid; grid-template-columns: 268px 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 1000px) { .listing { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--sp-5) + 74px); display: grid; gap: var(--sp-5); }
@media (max-width: 1000px) {
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 90vw);
    z-index: calc(var(--z-drawer) + 1);
    background: var(--surface);
    padding: var(--sp-5);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform var(--dur-4) var(--ease-out);
    box-shadow: var(--sh-xl);
    top: 0;
  }
  .filters.is-open { transform: none; }
}
.filter-group { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: var(--sp-4) var(--sp-5); }
.filter-group h6 {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.filter-list { display: grid; gap: 9px; max-height: 260px; overflow-y: auto; }
.filter-list label { display: flex; align-items: center; gap: 9px; font-size: var(--fs-sm); cursor: pointer; }
.filter-list input { accent-color: var(--brand-500); width: 16px; height: 16px; }
.filter-list .n { margin-left: auto; font-size: var(--fs-3xs); color: var(--muted-2); }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input { width: 100%; }
input[type="range"] { accent-color: var(--brand-500); width: 100%; }

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
}
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.view-toggle button { width: 36px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.is-active { background: var(--brand-500); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; }

.page-hero {
  background:
    radial-gradient(700px 300px at 92% -30%, rgba(91, 63, 196, 0.14), transparent 62%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-6) var(--sp-7);
}
.page-hero__kicker {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.page-hero h1 { margin-top: 6px; }
.page-hero__lead { color: var(--muted); max-width: 62ch; margin-top: 12px; font-size: var(--fs-md); }
.page-hero__meta { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--muted); }

/* ============================ PRODUCT ============================ */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--sp-8); align-items: start; }
@media (max-width: 980px) { .pdp { grid-template-columns: 1fr; gap: var(--sp-6); } }
.gallery { position: sticky; top: 96px; display: grid; gap: var(--sp-3); }
@media (max-width: 980px) { .gallery { position: static; } }
.gallery__stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
  cursor: zoom-in;
}
.gallery__stage img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.gallery__stage.is-zoom img { transform: scale(1.9); }
.gallery__flags { position: absolute; top: 14px; left: 14px; display: grid; gap: 6px; justify-items: start; z-index: 2; }
.gallery__zoomhint {
  position: absolute;
  right: 14px; bottom: 14px;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  font-size: var(--fs-3xs);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gallery__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.gallery__thumb {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  aspect-ratio: 1/1;
  background: var(--surface-3);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--brand-500); }

.buybox { display: grid; gap: var(--sp-5); }
.buybox__brandline { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.buybox h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.buybox__pricecard {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--deal-050), var(--surface) 70%);
  border: 1px solid var(--deal-100);
}
.buybox__pricerow { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.buybox__stockline { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); }
.buybox__opt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.buybox__opt-head b { font-size: var(--fs-sm); }
.buybox__opt-head span { font-size: var(--fs-xs); color: var(--muted); }
.buybox__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buybox__actions .btn--lg { flex: 1; min-width: 190px; }
.usp-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.usp-list li { display: flex; gap: 11px; font-size: var(--fs-sm); align-items: flex-start; }
.usp-list svg { width: 19px; height: 19px; flex: none; color: var(--brand-500); margin-top: 1px; }
.usp-list b { font-weight: 700; }
.usp-list span { color: var(--muted); }

.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 64;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -14px rgba(23, 21, 31, 0.2);
  transform: translateY(110%);
  transition: transform var(--dur-4) var(--ease-out);
  padding-block: 10px;
}
.sticky-buy.is-on { transform: none; }
.sticky-buy__inner { display: flex; align-items: center; gap: var(--sp-4); }
.sticky-buy img { width: 48px; height: 48px; border-radius: var(--r-sm); flex: none; }
.sticky-buy__info { flex: 1; min-width: 0; }
.sticky-buy__info b { display: block; font-size: var(--fs-sm); }
@media (max-width: 760px) { .sticky-buy { bottom: 62px; } .sticky-buy__info { display: none; } .sticky-buy img { display: none; } }

.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 720px) { .review-summary { grid-template-columns: 1fr; gap: var(--sp-5); } }
.review-score { text-align: center; padding: var(--sp-5); background: var(--surface-2); border-radius: var(--r-md); }
.review-score b { font-family: var(--font-display); font-size: 3rem; line-height: 1; display: block; }
.hist-row { display: grid; grid-template-columns: 46px 1fr 44px; align-items: center; gap: 12px; font-size: var(--fs-2xs); color: var(--muted); }
.hist-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hist-bar span { display: block; height: 100%; background: var(--gold-500); border-radius: 99px; }
.review {
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.review__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review__head b { font-size: var(--fs-sm); }
.review__photos { display: flex; gap: 8px; }
.review__photos img, .review__photos .thumb {
  width: 68px; height: 68px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--surface-3);
}
.review__foot { display: flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-2xs); color: var(--muted); }
.qa { display: grid; gap: 10px; padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
.qa__q, .qa__a { display: flex; gap: 12px; font-size: var(--fs-sm); }
.qa__tag {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: var(--fs-3xs);
  font-weight: 800;
}
.qa__q .qa__tag { background: var(--brand-100); color: var(--brand-700); }
.qa__a .qa__tag { background: var(--mint-100); color: var(--mint-600); }
.qa__a { color: var(--muted); }

.bundle { display: grid; grid-template-columns: 1fr 260px; gap: var(--sp-6); align-items: center; }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; } }
.bundle__items { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.bundle__item { width: 118px; text-align: center; font-size: var(--fs-3xs); }
.bundle__item img { width: 100%; aspect-ratio: 1/1; border-radius: var(--r-sm); object-fit: cover; margin-bottom: 7px; }
.bundle__plus { font-size: var(--fs-xl); color: var(--muted-2); font-weight: 300; }

/* ============================ CART / CHECKOUT ============================ */
[data-page="cart"] main.section {
  padding-top: clamp(56px, 7vw, 92px);
}
[data-page="cart"] main.section > .container > h1 {
  margin: 0 0 var(--sp-6);
}
@media (max-width: 900px) {
  [data-page="cart"] main.section {
    padding-top: calc(var(--sp-8) + var(--sp-6));
  }
}
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: var(--sp-7); align-items: start; }
@media (max-width: 980px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-summary-actions {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.summary { position: sticky; top: 96px; display: grid; gap: var(--sp-4); }
@media (max-width: 980px) { .summary { position: static; } }
.summary__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); }
.summary__row--total {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  margin-top: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: 800;
}
.summary__row--total .price__now { font-size: var(--fs-2xl); }
.summary__save { color: var(--mint-600); font-weight: 700; }

.nu-cart-bundle {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: var(--sp-2);
}
.nu-cart-bundle__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124,58,237,.06), transparent);
}
.nu-cart-bundle__head-text { display: grid; gap: 4px; }
.nu-cart-bundle__price { font-size: var(--fs-md); font-weight: 800; color: var(--deal-600); white-space: nowrap; }
.nu-cart-bundle__items { display: grid; }
.nu-cart-bundle__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.nu-cart-bundle__item:last-child { border-bottom: 0; }
.nu-cart-bundle__tag { color: var(--mint-600); font-weight: 600; }
.nu-cart-bundle__foot { padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line); }
.nu-cart-bundle--compact .nu-cart-bundle__head { padding: var(--sp-3) var(--sp-4); }
.nu-cart-bundle__item--row {
  grid-template-columns: 48px 1fr;
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 0;
  gap: var(--sp-3);
}

.line-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  animation: fade-up var(--dur-3) var(--ease-out);
}
.line-item__media { border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); aspect-ratio: 1/1; }
.line-item__media img { width: 100%; height: 100%; object-fit: cover; }
.line-item__info { display: grid; gap: 7px; align-content: start; }
.line-item__info b { font-size: var(--fs-sm); font-weight: 650; }
.line-item__variant { font-size: var(--fs-2xs); color: var(--muted); }
.line-item__side { display: grid; gap: 10px; justify-items: end; align-content: space-between; }
.line-item__tools { display: flex; gap: var(--sp-4); font-size: var(--fs-2xs); color: var(--muted); }
.line-item__tools button:hover { color: var(--deal-600); }
@media (max-width: 620px) {
  .line-item { grid-template-columns: 84px 1fr; }
  .line-item__side { grid-column: 2; justify-items: start; }
}

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: var(--sp-7); align-items: start; }
@media (max-width: 980px) { .checkout-layout { grid-template-columns: 1fr; } }
.opt-card {
  display: flex;
  gap: 13px;
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}
.opt-card:hover { border-color: var(--brand-300); }
.opt-card.is-active { border-color: var(--brand-500); background: var(--brand-050); box-shadow: var(--ring); }
.opt-card input { margin-top: 3px; accent-color: var(--brand-500); width: 18px; height: 18px; flex: none; }
.opt-card b { display: block; font-size: var(--fs-sm); }
.opt-card span { font-size: var(--fs-2xs); color: var(--muted); }
.bind-card-form {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.bind-card-form h3 { margin: 0; font-size: var(--fs-md); }
.empty-state--compact { padding: var(--sp-5) 0; text-align: left; }
.bound-card { align-items: flex-start; }
.bound-card-row .row { justify-content: space-between; gap: 10px; }

/* Checkout — payment step */
.co-pay { display: flex; flex-direction: column; gap: var(--sp-5); }
.co-pay__banner {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.45;
}
.co-pay__banner--member {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.18);
}
.co-pay__cards { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.co-pay__picked-head { margin-bottom: 2px; }
.co-pay__card { margin: 0; }
.co-pay__notice {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.45;
}
.co-pay__notice--warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--ink-2);
}
.co-pay__bind-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px 14px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
}
.co-pay__bind-icon {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23e11d48' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E") center/24px no-repeat;
}
.co-pay__bind-copy { align-self: center; }
.co-pay__bind-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
}
.co-pay__bind-lead {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.45;
}
.co-pay__bind-btn {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}
.co-pay__foot { padding-top: 4px; }
@media (min-width: 640px) {
  .co-pay__bind-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
  }
  .co-pay__bind-icon { grid-row: auto; }
  .co-pay__bind-btn {
    grid-column: auto;
    width: auto;
    min-width: 168px;
    justify-self: end;
  }
}

/* Account — payment methods (tab + add link) */
.pay-methods__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px 26px;
}
.pay-methods__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
}
.pay-methods__subtitle {
  margin: 0 0 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--ink);
}
.pay-tabs {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}
.pay-tabs__item {
  position: relative;
  border: none;
  background: none;
  padding: 0 0 11px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.pay-tabs__item:hover { color: var(--ink-2); }
.pay-tabs__item.is-active {
  color: var(--ink);
  font-weight: 800;
}
.pay-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: #1a8754;
}
.pay-tabs__rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 18px;
}
.pay-tab-panel { min-height: 48px; }
.pay-card-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 0;
}
.pay-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.pay-card-item:first-child { padding-top: 2px; }
.pay-card-item__main b {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.pay-card-item__main span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.pay-card-item__remove {
  border: none;
  background: none;
  padding: 4px 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.pay-card-item__remove:hover { color: var(--deal-600); text-decoration: underline; }
.pay-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 4px 0;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.pay-add:hover { color: var(--ink); }
.pay-add__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: inherit;
  opacity: 0.85;
}
.pay-add__icon svg { width: 14px; height: 14px; }
.pay-add-form {
  margin-top: 4px;
  padding-top: 16px;
  display: grid;
  gap: 14px;
}
.pay-add-form h3 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 800;
}
.pay-add-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.pay-paypal-note {
  margin: 0 0 12px;
  padding: 8px 0 2px;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
}
.pay-paypal-linked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.pay-paypal-linked__main b {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.pay-paypal-linked__main span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.pay-paypal-unlink {
  border: none;
  background: none;
  padding: 4px 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.pay-paypal-unlink:hover { color: var(--deal-600); text-decoration: underline; }

.modal__panel--pay {
  width: min(520px, 100%);
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
}
#pay-bind-modal.modal.is-open {
  padding: 16px;
  align-items: center;
}
.pay-bind-modal {
  position: relative;
  padding: 20px 22px 18px;
  min-height: 0;
}
/* CURVE loader — inside bind-card modal */
.pay-bind-modal__actions .btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  cursor: wait;
}
.pay-bind-spin,
#co-bind-form .btn.is-loading .pay-bind-spin {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#co-bind-form .btn--ghost.is-loading .pay-bind-spin {
  border-color: rgba(91, 63, 196, .25);
  border-top-color: var(--brand-500);
}

.pay-bind-modal__curve {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.pay-bind-modal__curve.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pay-bind-modal__curve-inner {
  text-align: center;
  animation: curve-splash-in 0.45s var(--ease-out) both;
}
.pay-bind-modal__curve-logo {
  display: block;
  width: min(168px, 72%);
  height: auto;
  margin: 0 auto 22px;
  object-fit: contain;
}
.pay-bind-modal__curve-ring {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 3px solid var(--line);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.pay-bind-modal__curve-text {
  margin: 0 0 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}
.pay-bind-modal__curve-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-bind-modal__curve-sub svg { opacity: 0.75; color: var(--brand-500); }
@keyframes curve-splash-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.pay-bind-modal__form.is-curve-loading {
  pointer-events: none;
  user-select: none;
}
.pay-bind-modal__secure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-050);
  flex: none;
}
.pay-bind-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-right: 32px;
}
.pay-bind-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}
.pay-bind-modal__section {
  margin: 0;
  padding-top: 6px;
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-bind-modal__form .form-grid--pay-compact {
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.pay-bind-modal__form .form-grid--pay-compact .g-12 { grid-column: 1 / -1; }
.pay-bind-modal__form .form-grid--pay-compact .g-8 { grid-column: span 8; }
.pay-bind-modal__form .form-grid--pay-compact .g-6 { grid-column: span 6; }
.pay-bind-modal__form .form-grid--pay-compact .g-4 { grid-column: span 4; }
.pay-bind-modal .field__label {
  margin-bottom: 5px;
  font-size: var(--fs-2xs);
  line-height: 1.25;
}
.pay-bind-modal .input,
.pay-bind-modal .select {
  padding: 10px 12px;
  min-height: 42px;
  font-size: var(--fs-sm);
}
.pay-bind-modal .field__error {
  margin-top: 4px;
  font-size: var(--fs-2xs);
  line-height: 1.25;
}
.pay-bind-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pay-bind-modal .pay-field-secure__overlay {
  font-size: 9px;
}
.pay-bind-modal__actions .btn--sm {
  min-height: 40px;
  padding: 8px 18px;
}
#pay-bind-modal .modal__close {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
}
#pay-bind-modal .modal__close svg {
  width: 16px;
  height: 16px;
}
@media (max-height: 640px) {
  .pay-bind-modal { padding: 10px 12px 8px; }
  .pay-bind-modal__form .form-grid--pay-compact { gap: 5px; }
  .pay-bind-modal .input,
  .pay-bind-modal .select { min-height: 32px; padding: 6px 9px; }
  .pay-bind-modal__actions { margin-top: 8px; padding-top: 6px; }
}

/* Member checkout — bind card gate */
.modal__panel--bind-gate {
  width: min(420px, 100%);
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--brand-200) 55%, var(--line));
  box-shadow: 0 24px 64px rgba(36, 20, 70, 0.22);
}
#member-bind-gate-modal.modal.is-open {
  padding: 12px;
  align-items: center;
}
.bind-gate { display: grid; }
.bind-gate__hero {
  position: relative;
  padding: 30px 24px 22px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -25%, rgba(91, 63, 196, 0.24), transparent 58%),
    linear-gradient(180deg, var(--brand-050), var(--surface));
  border-bottom: 1px solid var(--line);
}
.bind-gate__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.bind-gate__visual {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(91, 63, 196, 0.38);
}
.bind-gate__visual svg { width: 30px; height: 30px; }
.bind-gate__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.bind-gate__eyebrow svg { color: var(--brand-500); }
.bind-gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.bind-gate__body {
  padding: 22px 24px 24px;
  display: grid;
  gap: 14px;
}
.bind-gate__lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
  text-align: center;
}
.bind-gate__trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: var(--fs-2xs);
  color: var(--muted);
  line-height: 1.45;
}
.bind-gate__trust svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--mint-600);
  margin-top: 1px;
}
.bind-gate__actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}
@media (max-width: 520px) {
  .bind-gate__hero { padding: 26px 18px 18px; }
  .bind-gate__body { padding: 18px 18px 20px; }
}

/* Secure field loading (expiry / CVC) */
.pay-field-secure {
  position: relative;
}
.pay-field-secure__input {
  width: 100%;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.pay-field-secure.is-loading .pay-field-secure__input {
  color: transparent;
  background: var(--surface-3);
  border-color: var(--line);
  pointer-events: none;
}
.pay-field-secure__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-sm);
  background: linear-gradient(100deg, #f3f0fa 28%, #ebe6f5 48%, #f3f0fa 68%);
  background-size: 220% 100%;
  animation: shimmer 1.15s var(--ease) infinite;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-600);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pay-field-secure.is-loading .pay-field-secure__overlay { opacity: 1; }
.pay-field-secure__ico {
  display: grid;
  place-items: center;
  animation: pay-lock-pulse 1.1s ease-in-out infinite;
}
.pay-field-secure__badge {
  position: absolute;
  top: -9px;
  right: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a8754;
  background: #e8f7ef;
  box-shadow: 0 1px 4px rgba(26, 135, 84, 0.18);
  animation: pay-badge-pop 0.4s var(--ease-out) both;
}
.pay-field-secure.is-ready .pay-field-secure__input {
  border-color: #1a8754;
  box-shadow: 0 0 0 3px rgba(26, 135, 84, 0.12);
  animation: pay-field-unlock 0.55s var(--ease-out);
}
@keyframes pay-lock-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes pay-field-unlock {
  0% { box-shadow: 0 0 0 0 rgba(26, 135, 84, 0.28); }
  100% { box-shadow: 0 0 0 3px rgba(26, 135, 84, 0.12); }
}
@keyframes pay-badge-pop {
  from { opacity: 0; transform: translateY(4px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.success-hero { text-align: center; padding-block: var(--sp-8); }
.success-check {
  width: 84px; height: 84px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint-100);
  color: var(--mint-600);
  animation: pop-in var(--dur-4) var(--ease-spring);
}
.success-check svg { width: 40px; height: 40px; }

/* ============================ ACCOUNT ============================ */
.account-layout { display: grid; grid-template-columns: 258px 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }
.side-nav { display: grid; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.side-nav a, .side-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  width: 100%;
}
.side-nav a:hover, .side-nav button:hover { background: var(--surface-2); color: var(--brand-700); }
.side-nav .is-active { background: var(--brand-050); color: var(--brand-700); font-weight: 750; }
.side-nav svg { width: 18px; height: 18px; color: var(--muted); }
.side-nav .is-active svg { color: var(--brand-500); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.stat b { font-family: var(--font-display); font-size: var(--fs-2xl); display: block; line-height: 1.1; }
.stat span { font-size: var(--fs-2xs); color: var(--muted); }

.order-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.order-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-2xs);
}
.order-card__head b { display: block; font-size: var(--fs-xs); }
.order-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.order-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.order-thumbs img { width: 58px; height: 58px; border-radius: var(--r-xs); object-fit: cover; background: var(--surface-3); }

/* ============================ AUTH ============================ */
.auth-page {
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: var(--sp-8) 0;
}
.auth-page__fallback {
  text-align: center;
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
  max-width: 36ch;
}
.strength { display: flex; gap: 5px; margin-top: 8px; }
.strength i { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); transition: background var(--dur-2) var(--ease); }
.strength[data-level="1"] i:nth-child(1) { background: var(--deal-500); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--gold-500); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--mint-500); }
.strength[data-level="4"] i { background: var(--mint-500); }

/* ============================ CONTENT / BLOG / LEGAL ============================ */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-8); font-size: var(--fs-2xl); }
.prose h3 { margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.72; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose blockquote {
  border-left: 3px solid var(--brand-300);
  padding: 6px 0 6px 20px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--ink);
}
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose table { margin-top: var(--sp-4); }

.about { display: grid; gap: var(--sp-8); }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}
@media (max-width: 860px) { .about-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .about-facts { grid-template-columns: 1fr; } }
.about-facts__item {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.about-facts__item--wide { grid-column: 1 / -1; }
.about-facts dt {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.about-facts dd { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.45; }
.about-block h2 { margin-bottom: 12px; font-size: var(--fs-2xl); }
.about-pills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-pills li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand-800);
  font-size: var(--fs-sm);
  font-weight: 650;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  align-content: start;
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-3);
}
.team-card h3 { padding: 16px 18px 0; font-size: var(--fs-lg); }
.team-card__role {
  padding: 4px 18px 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--brand-600);
}
.team-card p:last-child {
  padding: 10px 18px 18px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
@media (max-width: 800px) { .about-split { grid-template-columns: 1fr; } }
.about .compare-list--good li::before {
  content: "✓";
  color: var(--mint-500);
  font-weight: 800;
  width: 18px;
  flex: none;
}

.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 96px; font-size: var(--fs-xs); display: grid; gap: 7px; }
.toc b { text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-3xs); color: var(--muted); }
.toc a { color: var(--muted); padding: 3px 0; }
.toc a:hover { color: var(--brand-600); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.brand-toolbar { margin-bottom: var(--sp-6); max-width: 420px; }
.brand-toolbar__search { width: 100%; }
.brand-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--sp-4);
}
.brand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--dur-3) var(--ease-out);
  min-height: 100%;
}
.brand-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--brand-200);
}
.brand-chip__name {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.brand-feature-grid .brand-chip__name {
  font-size: var(--fs-xl);
}
@media (max-width: 620px) {
  .brand-feature-grid .brand-chip__name { font-size: var(--fs-lg); }
}
.brand-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 1100px) { .brand-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .brand-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--dur-3) var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.post-card__media { aspect-ratio: 16/10; background: var(--surface-3); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: var(--sp-5); display: grid; gap: 9px; flex: 1; align-content: start; }
.post-card__meta { font-size: var(--fs-3xs); color: var(--muted); display: flex; gap: 10px; }
.post-card h3 { font-size: var(--fs-lg); }
.post-card p { font-size: var(--fs-sm); color: var(--muted); }

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(91,63,196,0.06) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(91,63,196,0.06) 0 1px, transparent 1px 42px),
    var(--surface-2);
  min-height: 300px;
  position: relative;
  display: grid;
  place-items: center;
}
.map-pin {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--deal-500);
  border: 3px solid #fff;
  box-shadow: var(--sh-md);
  animation: pulse-ring 2.4s infinite;
}

.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.value-card__ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand-600);
}
.value-card__ico svg { width: 23px; height: 23px; }
.value-card p { font-size: var(--fs-sm); color: var(--muted); }

.timeline-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 900px) { .timeline-h { grid-template-columns: 1fr 1fr; } }
.timeline-h__item { padding-top: var(--sp-5); border-top: 3px solid var(--brand-200); }
.timeline-h__item b { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--brand-600); display: block; }
.timeline-h__item p { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }
.service-grid .value-card--action { border-color: var(--brand-200); background: linear-gradient(165deg, var(--surface) 0%, color-mix(in srgb, var(--brand-50) 40%, var(--surface)) 100%); }
.service-topics { display: grid; gap: var(--sp-5); }
.service-topic {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.service-topic:last-child { padding-bottom: 0; border-bottom: 0; }
.service-topic p { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.service-topic__ico {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand-600);
}
.service-topic__ico svg { width: 22px; height: 22px; }
.editorial--compact { grid-template-columns: 1fr; gap: 0; }

.coupon {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px dashed var(--deal-100);
  background: var(--surface);
}
.coupon__amount {
  background: linear-gradient(150deg, var(--deal-500), var(--deal-700));
  color: #fff;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  text-align: center;
}
.coupon__amount b { font-family: var(--font-display); font-size: var(--fs-2xl); display: block; line-height: 1; }
.coupon__amount span { font-size: var(--fs-3xs); opacity: 0.85; }
.coupon__body { padding: var(--sp-4) var(--sp-5); display: grid; gap: 6px; align-content: center; }
.coupon__code {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  font-size: var(--fs-xs);
}
.coupon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (max-width: 760px) { .coupon-grid { grid-template-columns: 1fr; } }

.err-page { text-align: center; padding-block: var(--sp-11); }
.err-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.9;
  background: linear-gradient(120deg, var(--brand-500), var(--deal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================ LONG POLICY / FAQ ============================ */
.prose h2, .prose h3, .faq-h, .toc a { scroll-margin-top: 108px; }
.doc-layout .prose { max-width: none; }
.toc {
  max-height: calc(100vh - 128px);
  overflow: auto;
  padding-right: 8px;
}
@media (max-width: 900px) {
  .toc {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
.policy-note {
  margin-top: var(--sp-4);
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--brand-050);
  border: 1px solid var(--brand-200);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.policy-note b { color: var(--ink); }
.policy-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: var(--sp-8);
}
@media (max-width: 800px) { .policy-related { grid-template-columns: 1fr; } }
.policy-related a {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.policy-related a:hover { border-color: var(--brand-300); }
.policy-related a b { color: var(--brand-700); font-size: var(--fs-sm); }
.policy-related a span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.faq-toolbar { margin: 0 0 20px; }
.faq-h {
  margin: 36px 0 4px;
  font-size: var(--fs-xl);
}
.faq-empty {
  padding: 28px 8px 12px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.accordion__inner p + p { margin-top: 10px; }
.accordion__inner ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.legal-meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; }
.stack-lg > .policy-related { grid-template-columns: 1fr; }

/* ---------- new user exclusive zone ---------- */
.page-hero--deal { background: linear-gradient(135deg, rgba(91, 63, 196, 0.08), rgba(226, 62, 87, 0.06)); }
.nu-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 16px;
}
.nu-hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.nu-hero-price__tag {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--deal-600);
}
.nu-hero-price__note { color: var(--muted); font-size: var(--fs-sm); }
.nu-hero-check {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: min(100%, 280px);
  margin-left: auto;
}
.nu-hero-check .btn { white-space: nowrap; }
.nu-hero-check__result {
  margin: 0;
  text-align: right;
  max-width: 340px;
  line-height: 1.45;
}
.nu-hero-check__result.is-ok { color: var(--mint-600); font-weight: 650; }
.nu-hero-check__result.is-fail { color: var(--deal-600); font-weight: 650; }
@media (max-width: 720px) {
  .nu-hero-check { justify-items: stretch; min-width: 100%; }
  .nu-hero-check .btn { width: 100%; }
  .nu-hero-check__result { text-align: left; max-width: none; }
}
.nu-main { padding-bottom: 120px; }
.nu-status { margin-bottom: var(--sp-6); padding: 16px 18px; }
.nu-status.is-warn { border-color: var(--gold-300); background: rgba(201, 162, 39, 0.08); }
.nu-status.is-ok { border-color: var(--mint-400); background: rgba(46, 184, 138, 0.08); }
.nu-status.is-muted { opacity: 0.85; }
.nu-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
@media (max-width: 620px) { .nu-steps { grid-template-columns: 1fr; } }
.nu-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-sm);
}
.nu-step span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3);
  font-weight: 700;
  flex-shrink: 0;
}
.nu-step.is-done { color: var(--ink); border-color: var(--brand-200); }
.nu-step.is-done span { background: var(--brand-600); color: #fff; }
.nu-step.is-active { border-color: var(--deal-400); box-shadow: var(--sh-sm); color: var(--ink); }
.nu-step.is-active span { background: var(--deal-500); color: #fff; }
.nu-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-5); }
.nu-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.nu-cat-tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.nu-cat-tabs button.is-active,
.nu-cat-tabs button:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.nu-grid { margin-bottom: var(--sp-8); }
.nu-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: var(--sp-4) 0; }

.nu-pick {
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2);
}
.nu-pick:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.nu-pick.is-selected { border-color: var(--deal-500); box-shadow: 0 0 0 3px rgba(226, 62, 87, 0.15); }
.nu-pick__check {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: transparent;
}
.nu-pick.is-selected .nu-pick__check {
  background: var(--deal-500);
  border-color: var(--deal-500);
  color: #fff;
}
.nu-pick .card__quick,
.nu-pick .card__fav { display: none; }
.nu-pick .card__media a { pointer-events: none; }
.nu-pick .card__title a { pointer-events: auto; }
.nu-bind-panel { margin-top: var(--sp-6); }
.nu-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(20, 16, 40, 0.08);
  backdrop-filter: blur(12px);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
[data-theme="dark"] .nu-bar { background: rgba(18, 16, 28, 0.96); }
.nu-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nu-bar__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.nu-bar__count { font-weight: 800; font-size: var(--fs-lg); color: var(--deal-600); }
.nu-bar__total { font-weight: 700; color: var(--ink); }
.nu-bar__actions { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .nu-bar { bottom: 62px; }
  .nu-main { padding-bottom: 188px; }
}

/* ---------- jackpot slots (referral) ---------- */
.rp-modal { z-index: calc(var(--z-modal) + 8); background: rgba(18, 10, 40, 0.78); }
.rp-modal__panel {
  width: min(380px, 100%) !important;
  padding: 0;
  overflow: hidden;
  border: none;
  background: #fff;
  box-shadow: 0 24px 60px rgba(36, 0, 70, 0.28);
}
.rp-modal__banner {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
  color: #fff;
  padding: 16px 18px 14px;
  text-align: center;
}
.rp-modal__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.rp-modal__banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  margin: 0 0 4px;
  color: #fff;
}
.rp-modal__sub { margin: 0; font-size: var(--fs-xs); opacity: 0.9; line-height: 1.4; }
.rp-body { padding: 14px 16px 18px; }
.rp-game { padding: 14px 16px 16px; }
.rp-game__status {
  margin: 10px 0 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.rp-game__fine {
  margin: 10px 0 0;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.rp-cabinet { position: relative; }
.rp-slot {
  display: block;
  max-width: 320px;
  margin: 0 auto;
}
.rp-slot__machine {
  display: grid;
  grid-template-columns: 1fr 68px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #34215f 0%, #1b1030 100%);
  box-shadow: 0 10px 24px rgba(27, 16, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.rp-slot__main {
  padding: 10px;
  min-width: 0;
}
.rp-slot__lever-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px;
  background: linear-gradient(180deg, #261545 0%, #120820 100%);
  border-left: 2px solid rgba(255, 209, 102, 0.22);
}
.rp-slot__marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffd166;
}
.rp-slot__marquee strong { font-size: 12px; color: #fff; letter-spacing: 0.04em; }
.rp-slot__top {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rp-slot__light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffb703;
  box-shadow: 0 0 10px #ffb703;
  animation: rp-blink 1.1s ease-in-out infinite;
}
.rp-slot__light:nth-child(2) { animation-delay: 0.2s; }
.rp-slot__light:nth-child(3) { animation-delay: 0.4s; }
.rp-slot__window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #10002b;
  border: 3px solid #ffb703;
  overflow: hidden;
}
.rp-slot__reel {
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.rp-slot__strip {
  display: grid;
  gap: 0;
  transform: translateY(0);
}
.rp-slot__sym {
  display: grid;
  place-items: center;
  height: 72px;
  font-size: 1.65rem;
  font-weight: 900;
  color: #5a189a;
  line-height: 1;
}
.rp-slot__sym--icon { font-size: 0; }
.rp-slot__ico {
  width: 30px;
  height: 30px;
  display: block;
}
.rp-slot__sym--amt {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 0 4px;
  text-align: center;
}
.rp-slot__reel--win .rp-slot__strip { transform: translateY(0) !important; animation: none !important; }
.rp-slot.is-spinning .rp-slot__strip { animation: rp-spin 2.2s cubic-bezier(0.15, 0.85, 0.25, 1) forwards; }
.rp-slot.is-spinning .rp-slot__reel:nth-child(1) .rp-slot__strip { animation-delay: 0s; }
.rp-slot.is-spinning .rp-slot__reel:nth-child(2) .rp-slot__strip { animation-delay: 0.15s; }
.rp-slot.is-spinning .rp-slot__reel:nth-child(3) .rp-slot__strip { animation-delay: 0.3s; }
.rp-slot.is-spinning .rp-slot__light { animation-duration: 0.35s; }
.rp-slot__base {
  height: 10px;
  margin-top: 8px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #7b2cbf, #5a189a);
}
/* Lever — integrated on machine right side */
.rp-lever {
  position: relative;
  width: 48px;
  height: 118px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.rp-lever:disabled { cursor: not-allowed; opacity: 0.5; }
.rp-lever__hinge {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 26px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(180deg, #5c4d6d 0%, #2d2340 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.35);
}
.rp-lever__stick {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 10px;
  height: 62px;
  margin-left: -5px;
  border-radius: 5px;
  background: linear-gradient(90deg, #7a6548 0%, #c9a96e 42%, #e8d4a8 50%, #c9a96e 58%, #7a6548 100%);
  transform-origin: bottom center;
  transform: rotate(12deg);
  transition: transform 0.42s cubic-bezier(0.34, 1.35, 0.64, 1);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.35);
}
.rp-lever__knob {
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff8787 0%, #e03131 52%, #9b1c1c 100%);
  box-shadow: 0 4px 12px rgba(155, 28, 28, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.42s cubic-bezier(0.34, 1.35, 0.64, 1);
}
.rp-lever__guide {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  color: #ffd166;
  max-width: 56px;
  letter-spacing: 0.02em;
}
.rp-lever.is-pulled .rp-lever__stick { transform: rotate(48deg); }
.rp-lever.is-pulled .rp-lever__knob { transform: translate(8px, 14px); }
.rp-lever:not(:disabled):not(.is-pulled) .rp-lever__knob {
  animation: rp-lever-hint 2s ease-in-out infinite;
}
.rp-lever:not(:disabled):hover .rp-lever__knob { filter: brightness(1.1); }
@keyframes rp-lever-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Spin result */
.rp-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(180deg, #f5f1fe, #fff);
  border: 1px solid var(--brand-200);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}
.rp-result.is-pop {
  animation: rp-pop 0.65s var(--ease-out) forwards;
}
.rp-result__tag {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rp-result__amt {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-600);
  line-height: 1;
}
.rp-result__sub {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.4;
}

/* Compact auth */
.rp-auth {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rp-auth.is-highlight {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px rgba(91, 63, 196, 0.12);
}
.rp-auth__lead {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.rp-auth__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rp-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.rp-progress__label { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.rp-progress__amount {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  font-weight: 800;
  color: #7b2cbf;
  line-height: 1;
}
.rp-progress__bar {
  height: 14px;
  border-radius: 999px;
  background: #ede0ff;
  overflow: hidden;
  margin-bottom: 8px;
}
.rp-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9d4edd, #7b2cbf 60%, #ffb703);
  transition: width 0.6s var(--ease-out);
}
.rp-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 14px;
}
.rp-progress__left { color: #7b2cbf; font-weight: 800; }
.rp-boost {
  text-align: center;
  margin: -4px 0 10px;
  min-height: 36px;
}
.rp-boost__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7b2cbf;
  font-weight: 900;
  font-size: var(--fs-lg);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
}
.rp-boost.is-pop .rp-boost__tag {
  animation: rp-pop 0.9s var(--ease-out) forwards;
}
.rp-countdown {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 14px;
}
.rp-countdown b { color: #7b2cbf; font-variant-numeric: tabular-nums; }
.rp-invite-btn { margin-bottom: 10px; }
.input--sm { padding: 8px 10px; font-size: var(--fs-xs); }
.rp-share { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.rp-rules { margin-bottom: 12px; line-height: 1.45; }
.rp-ticker {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 0 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.rp-ticker__viewport {
  height: 36px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.rp-ticker__track {
  animation: rp-ticker-scroll 48s linear infinite;
}
.rp-ticker:hover .rp-ticker__track { animation-play-state: paused; }
.rp-ticker__item {
  font-size: var(--fs-3xs);
  color: var(--muted);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-ticker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.rp-helpers { display: grid; gap: 8px; margin-bottom: 12px; }
.rp-helper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
}
.rp-helper__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #ede0ff;
  color: #7b2cbf;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.rp-helper b { display: block; }
.rp-helper span { color: var(--muted); }
.rp-empty-help { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin: 0; }
.rp-withdraw { opacity: 0.55; }
.rp-float {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: calc(var(--z-modal) - 1);
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #9d4edd, #5a189a);
  color: #ffb703;
  box-shadow: 0 8px 24px rgba(90, 24, 154, 0.45);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.rp-float__icon { font-size: 0.95rem; line-height: 1; letter-spacing: -0.04em; }
.rp-float__amt {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb703;
  color: #240046;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.rp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(157, 78, 221, 0.45);
  animation: rp-ring 1.8s ease-out infinite;
}
@keyframes rp-ticker-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes rp-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-72px * 5)); }
}
@keyframes rp-blink {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes rp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes rp-pop {
  0% { opacity: 0; transform: translateY(12px) scale(0.85); }
  35% { opacity: 1; transform: translateY(-4px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rp-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}
body:has(.cookiebar.is-open) .rp-float { bottom: 220px; }
@media (max-width: 760px) {
  .rp-float {
    left: 14px;
    right: auto;
    bottom: calc(var(--mob-nav-h, 62px) + var(--mob-float-gap, 10px) + var(--mob-cs-size, 48px) + var(--mob-float-gap, 10px) + env(safe-area-inset-bottom, 0px));
    width: var(--mob-rp-size, 56px);
    height: var(--mob-rp-size, 56px);
    z-index: 69;
  }
  body:not(:has(.rp-float:not([hidden]))) {
    --mob-float-stack-top: calc(var(--mob-nav-h, 62px) + var(--mob-float-gap, 10px) + var(--mob-cs-size, 48px) + 14px);
  }
  body:has(.cookiebar.is-open) .rp-float {
    bottom: calc(250px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 620px) {
  body:has(.cookiebar.is-open) .rp-float { bottom: 250px; }
}
