/* ============================================================
   Arise Games Clone — original dark cloud-gaming theme
   Structure: navbar / banner / carousel rows / store (filters+grid)
              / subscription / level 1 / footer
   ============================================================ */
:root {
  --bg: #151515;
  --bg-2: #1a1a1a;
  --bg-3: #202020;
  --card: #1e1e22;
  --line: #2b2b31;
  --text: #f2f2f5;
  --muted: #9a9aa5;
  --primary: #d92b2b;
  --primary-2: #ff6a3d;
  --cyan: #ffc94d;
  --red: #f5365c;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-fluid { width: min(1680px, 94%); margin-inline: auto; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; cursor: pointer; transition: .22s; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--primary), #ff6a3d); color: #fff; box-shadow: 0 8px 22px rgba(217, 43, 43, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(217, 43, 43, .5); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary-2); color: var(--primary-2); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary-2); }
.btn--outline:hover { background: rgba(217, 43, 43, .12); }
.btn--lg { padding: .85rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------------- navbar ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: rgba(21, 21, 21, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.6rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.3rem; font-weight: 700; }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; }
.brand__text em { font-style: normal; color: var(--primary-2); }
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a { color: var(--muted); font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); border-bottom-color: var(--primary); }

.nav__search { position: relative; margin-left: auto; width: min(260px, 26vw); }
.nav__search input {
  width: 100%; padding: .5rem 2.2rem .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font: inherit; font-size: .9rem;
}
.nav__search input:focus { outline: 0; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(217, 43, 43, .2); }
.nav__search-icon { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.nav__actions { display: flex; align-items: center; gap: .7rem; }
.dropdown { position: relative; }
.dropdown__toggle {
  display: flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text); cursor: pointer; font: inherit;
}
.dropdown__toggle:hover { border-color: var(--primary-2); }
.avatar { font-size: 1rem; }
.dropdown__caret { color: var(--muted); font-size: .7rem; }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 200px; z-index: 70;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .4rem;
  box-shadow: var(--shadow); display: none;
}
.dropdown.is-open .dropdown__menu { display: block; }
.dropdown__item {
  display: block; width: 100%; text-align: left; padding: .6rem .8rem; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer;
}
.dropdown__item:hover { background: var(--bg-3); color: var(--text); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------------- views ---------------- */
.view { display: none; padding-top: 66px; }
.view.is-active { display: block; }

/* ---------------- hero carousel ---------------- */
.hero-carousel { position: relative; overflow: hidden; height: clamp(400px, 62vh, 640px); background: var(--bg-2); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 6s ease; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,21,21,.4) 0%, rgba(21,21,21,.12) 42%, rgba(21,21,21,.94) 100%); }
.hero-slide__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; max-width: 680px; padding-bottom: clamp(3.6rem, 7vw, 5.6rem); }
.hero-slide__kicker { display: inline-block; width: fit-content; padding: .3rem .9rem; border-radius: 999px; margin-bottom: .9rem; border: 1px solid var(--line); background: rgba(0,0,0,.45); color: var(--cyan); font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.hero-slide__title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin: 0 0 1rem; line-height: 1.15; text-shadow: 0 4px 24px rgba(0,0,0,.55); }
.grad { background: linear-gradient(90deg, var(--primary-2), #fff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slide__sub { color: #c9c9d4; font-size: 1.05rem; max-width: 52ch; margin: 0 0 1.5rem; }
.hero-slide__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.4); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s; }
.hero-carousel__arrow:hover { background: rgba(255,255,255,.18); }
.hero-carousel__arrow--prev { left: 18px; }
.hero-carousel__arrow--next { right: 18px; }
.hero-dots { position: absolute; z-index: 5; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: .55rem; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.38); cursor: pointer; transition: background .25s, transform .25s; }
.hero-dot.is-active { background: var(--cyan); transform: scale(1.3); }

/* ---------------- carousel rows ---------------- */
.rows { padding: 34px 0 70px; display: grid; gap: 34px; }
.row-block { min-width: 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.row-head h2 { margin: 0; }
.row-head__right { display: flex; align-items: center; gap: .9rem; }
.link-more { background: none; border: 0; color: var(--primary-2); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; padding: .2rem .4rem; }
.link-more:hover { text-decoration: underline; }
.row-nav { display: flex; gap: .5rem; }
.arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.arrow:hover { border-color: var(--primary-2); color: var(--primary-2); }

.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }

/* ---------------- game card ---------------- */
.game {
  position: relative; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: var(--card);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #3d3d49; }
.game:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.game__art { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.game__cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.game__art::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.6rem; font-weight: 700; letter-spacing: -.04em; color: rgba(255,255,255,.16); }
.game__art::after { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(260px 180px at 70% 16%, rgba(255,255,255,.12), transparent 65%), linear-gradient(to top, rgba(0,0,0,.35) 6%, rgba(0,0,0,0) 55%); }
.game__glyph { position: relative; z-index: 1; font-size: 2.8rem; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); transform: rotate(-6deg); }
.game__meta { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: .8rem .9rem; }
.game__name { font-weight: 600; font-size: .95rem; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.game__cat { font-size: .76rem; color: #cfcfda; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.game__badge { position: absolute; z-index: 3; top: 9px; left: 9px; padding: .18rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.22); }
.game__play { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(10,10,14,.45); transition: opacity .22s; }
.game:hover .game__play { opacity: 1; }
.game__play span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-size: 1.25rem; padding-left: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* ---------------- store: filters + grid ---------------- */
.store { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding: 30px 0 70px; align-items: start; }
.filters { position: sticky; top: 86px; display: grid; gap: 1.3rem; }
.filters__group { display: grid; gap: .1rem; }
.filters__title { font-size: .95rem; margin: 0 0 .35rem; }
.filter {
  text-align: left; background: none; border: 0; border-left: 2px solid transparent;
  color: var(--muted); font: inherit; font-size: .9rem; padding: .34rem .6rem; cursor: pointer; transition: .18s;
}
.filter:hover { color: var(--text); background: var(--bg-3); }
.filter.is-active { color: var(--primary-2); border-left-color: var(--primary); background: rgba(217,43,43,.1); }

.store__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.store__toolbar h2 { margin: 0; }
.store__tools { display: flex; align-items: center; gap: .7rem; font-size: .88rem; }
.store__tools select {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .4rem .6rem; font: inherit; font-size: .88rem; cursor: pointer;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.empty { color: var(--muted); padding: 3rem 0; text-align: center; }

/* ---------------- subscription ---------------- */
.sub { padding: 40px 0 80px; }
.sub__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.plan { background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; position: relative; }
.plan--featured { border-color: var(--primary); box-shadow: 0 20px 50px rgba(217,43,43,.25); background: linear-gradient(180deg, rgba(217,43,43,.12), var(--bg-3) 45%); }
.plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); padding: .22rem .95rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.plan__price { font-size: 2.3rem; font-weight: 700; }
.plan__price span { font-size: .95rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: .6rem 0 1.4rem; display: grid; gap: .55rem; flex: 1; }
.plan li { display: flex; gap: .6rem; align-items: baseline; color: #cfcfda; font-size: .92rem; }
.plan li::before { content: "✓"; color: var(--cyan); font-weight: 700; }
.notice { margin-top: 1.8rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid rgba(245,54,92,.35); background: rgba(245,54,92,.08); color: #f0d3d9; font-size: .9rem; }
.server { margin-top: 2.6rem; }
.server h2 { font-size: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .42rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--primary-2); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-wrap { margin-top: 2.6rem; }
.faq { display: grid; gap: .8rem; margin-top: 1.2rem; }
.faq details { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: .8rem 0 0; font-size: .93rem; }

/* ---------------- footer ---------------- */
.footer { background: #101010; border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 1.6rem; padding-bottom: 2.2rem; }
.footer__grid h4 { font-size: .95rem; margin-bottom: .8rem; }
.footer__grid a { display: block; color: var(--muted); padding: .2rem 0; font-size: .9rem; transition: color .2s; }
.footer__grid a:hover { color: var(--text); }
.footer__contact { margin-top: .9rem; font-size: .85rem; }
.footer__contact a { display: inline; padding: 0; color: var(--primary-2); }
.footer__contact a:hover { color: var(--text); }
.footer__bar { border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; }
.footer__bar p { margin: 0; color: var(--muted); font-size: .8rem; }

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; visibility: hidden; opacity: 0; transition: .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.modal__card { position: relative; width: min(460px, 100%); max-height: min(92vh, 780px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); transform: translateY(14px) scale(.98); transition: .25s; }
.modal.is-open .modal__card { transform: none; }
.modal__card--region { width: min(420px, 100%); text-align: center; }
.modal__close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-3); color: var(--muted); font-size: 1.25rem; cursor: pointer; display: grid; place-items: center; line-height: 1; transition: .2s; }
.modal__close:hover { color: #fff; background: var(--red); }

.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: var(--bg-3); padding: .35rem; border-radius: 999px; margin-bottom: 1.4rem; }
.auth__tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 500; padding: .5rem; border-radius: 999px; cursor: pointer; transition: .2s; }
.auth__tab.is-active { background: var(--primary); color: #fff; }
.auth__panel { display: none; }
.auth__panel.is-active { display: block; }
.field { margin-bottom: .95rem; display: grid; gap: .3rem; }
.field label { font-size: .86rem; color: #cfcfda; }
.field label .opt { color: var(--muted); font-size: .78rem; }
.field input { width: 100%; padding: .72rem .95rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: 0; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(217,43,43,.22); }
.field input.is-invalid { border-color: var(--red); }
.field__error { color: #ff8098; font-size: .8rem; display: none; }
.field__error:not(:empty) { display: block; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: .2rem 0 1.1rem; cursor: pointer; }
.check a { color: var(--primary-2); }
.check input { accent-color: var(--primary); margin-top: .2rem; }
.auth__success { text-align: center; padding: 1.4rem 0 .4rem; }
.auth__success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: rgba(45,206,137,.15); color: #2dce89; font-size: 1.8rem; font-weight: 700; animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.region__icon { font-size: 2.6rem; margin-bottom: .4rem; }
.region__msg { font-size: 1.02rem; }
.region__note { font-size: .88rem; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 80px); z-index: 120; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: .75rem 1.3rem; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); transition: transform .3s; pointer-events: none; }
.toast.is-show { transform: translate(-50%, 0); }

/* ---------------- game detail page ---------------- */
.detail__hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 420px at 80% -10%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 62%), var(--bg-2);
}
.detail__heroArt { position: absolute; inset: 0; opacity: .22; filter: blur(38px) saturate(140%); transform: scale(1.15); }
.detail__heroArt img { width: 100%; height: 100%; object-fit: cover; }
.detail__heroInner { position: relative; z-index: 1; padding: 30px 0 44px; }
.crumbs { display: flex; gap: .45rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 500; }
.detail__head { display: flex; gap: 2rem; align-items: flex-end; }
.detail__cover {
  width: 230px; flex: 0 0 230px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.detail__headText { min-width: 0; }
.detail__headText h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.detail__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0 .9rem; }
.tag {
  padding: .2rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 500;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #d6d6e0;
}
.tag--region { background: rgba(245,54,92,.14); color: #ff8ba3; border-color: transparent; }
.detail__lead { color: #c9c9d4; max-width: 62ch; }
.detail__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.1rem; }

.detail__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; padding: 40px 0 20px; align-items: start; }
.detail__main { display: grid; gap: 1.2rem; min-width: 0; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; }
.panel h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.panel p { color: #c3c3ce; font-size: .95rem; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: start; }
.shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: .45rem .6rem; font-size: .74rem; color: var(--muted); }
/* real media from an imported package: keep each asset's native shape */
.shot--banner img, .shot--landscape img { aspect-ratio: auto; }
.shot--portrait img { aspect-ratio: 3 / 4; }
.shot--hero img, .shot--icon img { aspect-ratio: 1 / 1; }
.shot--logo img { aspect-ratio: auto; object-fit: contain; padding: 1.2rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: .6rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 34%; }
.specs td { color: #cfcfda; }

.detail__side { display: grid; gap: 1rem; position: sticky; top: 86px; }
.buybox { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; display: grid; gap: .5rem; }
.buybox__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.planopt {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem .85rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--text); font: inherit; cursor: pointer; transition: .18s; text-align: left;
}
.planopt:hover { border-color: var(--primary-2); }
.planopt.is-active { border-color: var(--primary); background: rgba(217,43,43,.14); }
.planopt__name { font-weight: 500; font-size: .92rem; }
.planopt__price { color: var(--muted); font-size: .84rem; }
.factbox { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.factbox h4 { font-size: .95rem; margin-bottom: .7rem; }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; margin: 0; font-size: .88rem; }
.factbox dt { color: var(--muted); }
.factbox dd { margin: 0; color: #d2d2dc; }
.detail__related { padding: 20px 0 70px; }

/* ---------------- payment ---------------- */
.modal__card--wide { width: min(560px, 100%); }
.pay__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-radius: 12px; background: var(--bg-3);
  border: 1px solid var(--line); margin-bottom: 1.1rem;
}
.pay__plan { font-weight: 600; }
.pay__planmeta { font-size: .84rem; margin: 0; }
.pay__amount { font-size: 1.5rem; font-weight: 700; }
.paytabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; background: var(--bg-3); padding: .32rem; border-radius: 999px; margin-bottom: 1.1rem; }
.paytab { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 500; padding: .45rem .2rem; border-radius: 999px; cursor: pointer; transition: .2s; }
.paytab.is-active { background: var(--primary); color: #fff; }
.paypanel { display: none; }
.paypanel.is-active { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field__hint { font-size: .78rem; color: var(--muted); }
.field__hint code { background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .35rem; font-size: .76rem; }
.pay__secure { margin-top: .9rem; }
.pay__done { text-align: center; }
.receipt { text-align: left; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: 1rem 0 1.2rem; display: grid; gap: .5rem; }
.receipt > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.receipt span { color: var(--muted); }
.receipt b.ok { color: #2dce89; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.auth__alt { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); text-align: center; }
.auth__alt .link-more { font-size: .88rem; }
.nav__username { font-size: .84rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .store { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .detail__body { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 940px) {
  .plans { grid-template-columns: 1fr; }
  .detail__head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .detail__cover { width: 160px; flex-basis: 160px; }
  .shots { grid-template-columns: 1fr; }
  .paytabs { grid-template-columns: repeat(2, 1fr); border-radius: 14px; }
  .nav__links, .nav__search {
    position: fixed; top: 66px; right: 0; left: 0; z-index: 55; margin: 0; width: auto;
    flex-direction: column; background: rgba(21,21,21,.98); padding: 1.1rem 5%;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav__search { top: auto; }
  body.nav-open .nav__links { display: flex; }
  body.nav-open .nav__search { display: block; }
  .nav__burger { display: block; }
  .row { grid-auto-columns: 190px; }
  .hero-carousel { height: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

