/* access-levels 2026-11-13: страница «Уровень доступа» на сайте и пример при первой покупке */
.lvs-gs { --lv: #7b8591; --lv-soft: color-mix(in srgb, #7b8591 14%, var(--panel)); }
.lvs-nb { --lv: #12A66A; --lv-soft: color-mix(in srgb, #12A66A 13%, var(--panel)); }
.lvs-vf { --lv: #2F74D8; --lv-soft: color-mix(in srgb, #2F74D8 13%, var(--panel)); }
.lvs-tr { --lv: #C98A00; --lv-soft: color-mix(in srgb, #F2B935 20%, var(--panel)); }
[data-theme="dark"] .lvs-tr { --lv: #F2B935; }
[data-theme="dark"] .lvs-vf { --lv: #6F9BFF; }

.lvs-hero { display: grid; gap: 16px; padding: 26px 30px; border: 1px solid color-mix(in srgb, var(--lv) 35%, var(--line)); border-radius: var(--r-xl); background: linear-gradient(120deg, var(--lv-soft), var(--panel) 70%); }
.lvs-hero-top { display: flex; align-items: center; gap: 16px; }
.lvs-hero-top small { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.lvs-hero-top h2 { margin: 2px 0 0; font-size: 28px; line-height: 1.15; }
.lvs-hero-e { display: grid; flex: 0 0 60px; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--lv-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lv) 30%, transparent); font-size: 30px; line-height: 1; }
.lvs-hero-act { margin-left: auto; }
.lvs-hero-tx { max-width: 760px; margin: 0; color: var(--ink-2, var(--ink)); font-size: 16px; line-height: 1.45; }
.lvs-hero .acs-note { margin: 0; color: var(--muted); font-size: 14px; }

.lvs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 720px; margin: 0; padding: 0; list-style: none; }
.lvs-steps li { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
.lvs-steps li::before { content: ''; position: absolute; top: 17px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 2px; background: var(--line-2, var(--line)); }
.lvs-steps li:first-child::before { display: none; }
.lvs-steps li.done::before, .lvs-steps li.on::before { background: var(--lv); }
.lvs-steps i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; font-style: normal; line-height: 1; filter: grayscale(1); opacity: .65; }
.lvs-steps li.done i { background: var(--lv-soft); color: var(--lv); box-shadow: inset 0 0 0 1.5px var(--lv); filter: none; opacity: 1; font-weight: 800; }
.lvs-steps li.on i { background: var(--lv-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lv) 22%, transparent), inset 0 0 0 1.5px var(--lv); filter: none; opacity: 1; }
.lvs-steps li.on span { color: var(--ink); font-weight: 760; }
.lvs-steps span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }

.lvs-prog { overflow: hidden; max-width: 520px; height: 9px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.lvs-prog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lv), #F2B935); }
.lvs-prog-t { color: var(--muted); font-size: 13.5px; font-weight: 600; }

.lvs-sub { margin: -6px 0 14px; color: var(--muted); }
.lvs-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lvs-lv { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.lvs-lv.is-on { border-color: color-mix(in srgb, var(--lv) 55%, var(--line)); background: linear-gradient(160deg, var(--lv-soft), var(--panel) 65%); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--lv) 50%, transparent); }
.lvs-lv-h { display: flex; align-items: center; gap: 10px; }
.lvs-lv-h b { font-size: 17.5px; }
.lvs-lv-e { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lv-soft); font-size: 20px; line-height: 1; }
.lvs-lv.is-next .lvs-lv-e { filter: grayscale(.6); }
.lvs-chip { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.lvs-chip.on { background: var(--lv); color: #fff; }
.lvs-chip.done { background: var(--lv-soft); color: var(--lv); }
.lvs-lv-how { display: grid; gap: 2px; margin: 0; padding: 9px 11px; border-radius: 12px; background: var(--soft); font-size: 13.5px; line-height: 1.35; }
.lvs-lv-how small { color: var(--muted); font-size: 12px; font-weight: 700; }
.lvs-lv-g, .lvs-lv-l { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lvs-lv-g li, .lvs-lv-l li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.35; }
.lvs-lv-g li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: var(--lv); font-weight: 800; }
.lvs-lv.is-next .lvs-lv-g li::before { content: '+'; color: var(--muted); }
.lvs-lv-l li { color: var(--muted); font-size: 13.5px; }
.lvs-lv-l li::before { content: '•'; position: absolute; left: 6px; top: 0; }
.lvs-me { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--lv) 32%, var(--line)); border-radius: 14px; background: linear-gradient(120deg, var(--lv-soft), var(--panel) 75%); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.lvs-me:hover { border-color: var(--lv); }
.lvs-me-e { flex: 0 0 auto; font-size: 21px; line-height: 1; }
.lvs-me-t { display: grid; min-width: 0; line-height: 1.2; }
.lvs-me-t small { color: var(--muted); font-size: 11.5px; font-weight: 650; }
.lvs-me-t > span { display: block; }
.lvs-me .lvs-me-t b { display: inline; font-size: 15px; }
.lvs-me-t em { color: var(--lv); font-size: 13px; font-style: normal; font-weight: 700; }
.lvs-me i { margin-left: auto; padding-left: 6px; color: var(--muted); font-style: normal; }
a.lvs-sub { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
a.lvs-sub:hover { color: var(--accent); }
.lvs-lv-a { margin-top: auto; padding-top: 4px; }
.lvs-lv-a .btn { width: 100%; }
.lvs-shop-b { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.lvs-shop-b p { margin: 0; color: var(--muted); }

@media (max-width: 1080px) { .lvs-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lvs-hero { padding: 20px 18px; }
  .lvs-hero-top { flex-wrap: wrap; }
  .lvs-hero-top h2 { font-size: 23px; }
  .lvs-hero-act { width: 100%; margin-left: 0; }
  .lvs-hero-act .btn { width: 100%; }
  .lvs-steps { gap: 2px; }
  .lvs-steps li { font-size: 10.5px; letter-spacing: -.01em; }
  .lvs-steps span { overflow: visible; text-overflow: clip; }
  .lvs-ladder { grid-template-columns: 1fr; }
}

.lvs-cap { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(10, 14, 24, .5); }
.lvs-cap-card { display: grid; gap: 12px; width: min(380px, 100%); padding: 22px; border-radius: 22px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.lvs-cap-card b { font-size: 19px; }
.lvs-cap-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lvs-cap-card label { display: grid; gap: 6px; font-weight: 650; }
.lvs-cap-card input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2, var(--line)); border-radius: 12px; background: var(--soft); color: inherit; font: inherit; font-size: 18px; }
.lvs-cap-a { display: flex; justify-content: flex-end; gap: 8px; }

/* плашка уровня в профиле на телефоне (над «Кошельком») */
.lvs-me.lvs-me-ph { margin: 0 0 18px; padding: 12px 14px; }
.lvs-me-ph .lvs-me-e { font-size: 24px; }
.lvs-me-ph .lvs-me-t small { font-size: 12.5px; }
.lvs-me-ph .lvs-me-t b { font-size: 16.5px; }

/* напоминание новичку — всплывающая плашка, «×» — закрыть */
.lvs-nudge { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: flex; align-items: flex-start; gap: 12px; width: min(400px, calc(100vw - 24px)); padding: 16px 44px 16px 16px; border: 1px solid color-mix(in srgb, var(--lv) 40%, var(--line)); border-radius: 20px; background: linear-gradient(120deg, var(--lv-soft), var(--panel) 70%); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.lvs-nudge.on { opacity: 1; transform: none; }
.lvs-nudge-e { flex: 0 0 auto; font-size: 28px; line-height: 1; }
.lvs-nudge-t { display: grid; gap: 4px; min-width: 0; }
.lvs-nudge-t b { font-size: 16px; }
.lvs-nudge-t span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.lvs-nudge-go { justify-self: start; margin-top: 6px; }
.lvs-nudge-x { position: absolute; top: 8px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.lvs-nudge-x:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 760px) { .lvs-nudge { left: 12px; right: 12px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }