:root {
  --emerald: #07231F; --teal: #086C66; --teal2: #0f9488; --gold: #F1CC70; --gold2: #d9a93a; --bg: #F7FAF7; --card: #fff;
  --ink: #12261f; --muted: #5b6f68; --line: #dbe5df; --warn: #fff6dc; --bad: #b3261e; --ok: #0a7a4a;
  --shadow: 0 1px 2px rgba(7, 35, 31, .06), 0 8px 24px rgba(7, 35, 31, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  background: radial-gradient(900px 380px at 100% -80px, rgba(15, 148, 136, .13), transparent 70%), var(--bg); min-height: 100vh; }
body.class { padding-bottom: 84px; }
a { color: var(--teal); }
h1, h2, .hero-num, .big-num, .brand { font-family: 'Montserrat', 'Inter', sans-serif; }
h1 { font-size: 1.65rem; margin: .8rem 0 .6rem; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 1.2rem 0 .5rem; }
.wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 32px; }
body.admin .wrap { max-width: 1100px; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .break { word-break: break-all; overflow-wrap: anywhere; }
.warn-t { color: #8a5a00; font-weight: 600; }

/* ── шапка и навигация ── */
.top { background: linear-gradient(135deg, #0b5a52 0%, var(--emerald) 62%); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 18px rgba(7, 35, 31, .25); }
.top a { color: #fff; text-decoration: none; }
.brand { font-weight: 800; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; line-height: 1.1; color: var(--gold) !important; }
.brand span { display: flex; flex-direction: column; }
.brand small { font-weight: 500; letter-spacing: .02em; color: #bcd3cb; font-size: .72rem; }
.logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 2px rgba(241, 204, 112, .55); }
.logo-big { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; display: block; margin: 0 auto 8px; box-shadow: 0 10px 30px rgba(7, 35, 31, .35), 0 0 0 3px rgba(241, 204, 112, .6); animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.top-r { display: flex; gap: 14px; align-items: center; font-size: .95rem; }
.top-r a.on { color: var(--gold); }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; order: 3; width: 100%; }
.topnav a { padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.topnav a:hover { background: rgba(255, 255, 255, .1); } .topnav a.on { background: var(--teal); }
@media (min-width: 760px) { .topnav { order: 0; width: auto; } }
.top form.inline, form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: #cfe3db; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.bell { position: relative; font-size: 1.25rem; line-height: 1; padding: 4px; }
.bell b { position: absolute; top: -4px; right: -6px; background: var(--gold); color: var(--emerald); border-radius: 999px; font-size: .68rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; animation: ring 2.4s ease-in-out infinite; }

.tabs { position: fixed; left: 8px; right: 8px; bottom: 8px; display: flex; background: rgba(7, 35, 31, .96); backdrop-filter: blur(8px); padding: 6px; z-index: 30; border-radius: 22px; box-shadow: 0 10px 30px rgba(7, 35, 31, .4); margin-bottom: env(safe-area-inset-bottom); max-width: 560px; margin-inline: auto; }
.tabs a { flex: 1; text-align: center; color: #bcd3cb; text-decoration: none; padding: 7px 2px; font-size: .74rem; border-radius: 16px; display: flex; flex-direction: column; gap: 1px; transition: background .25s, color .25s, transform .15s; }
.tabs a span { font-size: 1.3rem; } .tabs a:active { transform: scale(.94); }
.tabs a.on { color: var(--emerald); background: linear-gradient(135deg, var(--gold), #f7dc94); font-weight: 700; }

/* ── карточки и герой ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 14px 0; box-shadow: var(--shadow); }
.card.narrow, .narrow { max-width: 460px; margin: 24px auto; }
.hero-card { text-align: center; }
.card.warn { background: var(--warn); border-color: #ecd9a3; }
.card.ai { background: #eef7ff; border-color: #bcd9f2; }
.card > h2:first-child { margin-top: 0; }
.link-card { display: block; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; } .link-card:hover { transform: translateY(-2px); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); border: 2px dashed var(--line); border-radius: 18px; margin: 14px 0; }

.hero { position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 18px 18px 16px; margin: 12px 0;
  background: radial-gradient(420px 220px at 90% -10%, rgba(241, 204, 112, .35), transparent 60%), linear-gradient(145deg, #11a193 0%, #086C66 38%, #07231F 100%); box-shadow: 0 16px 40px rgba(7, 35, 31, .3); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .09) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 5s ease-in-out 1.2s infinite; pointer-events: none; }
.hero.compact { padding: 14px 16px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; opacity: .95; }
.hero-num { font-size: 2.7rem; font-weight: 800; color: var(--gold); letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 10px; }
.hero-sub { margin: 8px 0 0; font-size: .9rem; color: #d5ece6; } .hero-sub b { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hero-grid > div { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 12px; }
.hero-grid span { display: block; font-size: .78rem; color: #bfe0d8; } .hero-grid b { font-size: 1.15rem; }
.tier { background: linear-gradient(120deg, var(--gold), #fff3c4, var(--gold)); background-size: 220% 100%; color: var(--emerald); font-weight: 800; padding: 4px 12px; border-radius: 999px; animation: shimmer 3.5s linear infinite; }
.bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--gold2), var(--gold), #fff1bd); animation: fill 1.3s cubic-bezier(.2, .8, .2, 1) .25s both; }
.bar.teal { background: #dbe9e4; } .bar.teal i { background: linear-gradient(90deg, var(--teal), var(--teal2)); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: .82rem; color: var(--muted); }
.stat b { display: block; font-size: 1.45rem; margin-top: 2px; } .stat small { color: var(--muted); font-size: .78rem; }
.stat.gold { background: linear-gradient(135deg, var(--gold), #f7dc94); border-color: var(--gold); } .stat.gold span, .stat.gold small { color: #4a3b0a; }
.big-num { font-size: 2.4rem; font-weight: 800; margin: 4px 0; color: var(--teal); } .big-num span { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
progress, meter { width: 100%; height: 14px; accent-color: var(--teal); } meter { width: 90px; height: 10px; vertical-align: middle; }

/* ── кнопки и формы ── */
.btn { display: inline-block; background: linear-gradient(135deg, var(--teal2), var(--teal)); color: #fff; border: 0; border-radius: 14px; padding: 12px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 48px; text-align: center; box-shadow: 0 6px 16px rgba(8, 108, 102, .25); transition: transform .12s, box-shadow .2s; }
.btn:hover { box-shadow: 0 8px 20px rgba(8, 108, 102, .35); } .btn:active { transform: scale(.97); }
.btn.big { display: block; width: 100%; margin: 14px 0; padding: 16px; font-size: 1.1rem; }
.btn.gold-btn { background: linear-gradient(135deg, #f7dc94, var(--gold) 45%, var(--gold2)); color: var(--emerald); box-shadow: 0 8px 22px rgba(217, 169, 58, .4); }
.btn.danger { background: #fff; color: var(--bad); border: 2px solid var(--bad); box-shadow: none; }
.btn.small-btn { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn[disabled] { opacity: .55; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 8px 0; }

.form { display: grid; gap: 12px; margin: 10px 0; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
input, select, textarea { font: inherit; padding: 12px; border: 1px solid #b9cbc2; border-radius: 12px; background: #fff; width: 100%; min-height: 48px; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 10px; }
fieldset.shots { background: linear-gradient(135deg, #f1f9f6, #fff); border-style: dashed; border-color: var(--teal2); }
.stack { display: grid; gap: 6px; min-width: 190px; margin-bottom: 8px; } .stack input { min-height: 36px; padding: 6px 8px; }
.inline-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; } .filters input { flex: 1 1 200px; width: auto; } .filters select { width: auto; }
.copy { font-family: monospace; font-size: .85rem; }
details > summary { cursor: pointer; font-weight: 600; padding: 6px 0; } details summary .r { float: right; }
.rules p { margin: .4rem 0; font-size: .95rem; }

/* ── статусы ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e7eeea; color: #35504a; white-space: nowrap; }
.b-ok { background: #d7f2e3; color: #075c36; } .b-wait { background: #e5ecff; color: #26418f; }
.b-warn { background: #ffe9b8; color: #7a4d00; } .b-done { background: #dfe7e3; color: #2f4640; } .b-bad { background: #fbd9d6; color: #8b1a14; }

.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: 12px 0; box-shadow: var(--shadow); transition: transform .2s; } .vcard:hover { transform: translateY(-2px); }
.vlink { display: block; padding: 12px 14px; color: inherit; text-decoration: none; }
.vhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.vrow { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: .95rem; } .vrow span:first-child { color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 8px 0; } ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); } ul.plain li:last-child { border: 0; }
.note { background: #eef4f1; border-radius: 12px; padding: 8px 12px; margin: 8px 0; } .note.adm { background: #e4f0ee; border-left: 4px solid var(--teal); }
.shots-row { display: flex; gap: 10px; flex-wrap: wrap; } .shots-row img { max-width: 220px; max-height: 300px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; }

.flash { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-weight: 600; animation: rise .4s both; }
.flash.ok { background: #d7f2e3; color: #075c36; } .flash.err { background: #fbd9d6; color: #8b1a14; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e7eeea; text-decoration: none; margin: 2px 4px 2px 0; font-size: .88rem; } .chip.on { background: var(--teal); color: #fff; }
.ai-chip { background: #dcecff; color: #1d4f8a; }

.notif { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0; color: inherit; text-decoration: none; }
.notif.new { border-color: var(--gold2); background: linear-gradient(135deg, #fffaf0, #fff); box-shadow: 0 0 0 3px rgba(241, 204, 112, .25); }
.notif span { color: var(--muted); font-size: .92rem; } .notif small { color: var(--muted); }

/* ── лига: пирамида, таблица, достижения ── */
.pyramid { display: grid; gap: 6px; justify-items: center; margin: 12px 0; }
.pyr-row { width: calc(44% + var(--i) * 11.2%); min-width: 150px; border-radius: 14px; padding: 8px 10px; text-align: center; color: var(--emerald); animation: rise .6s both; animation-delay: calc((5 - var(--i)) * 110ms); }
.pyr-head { display: flex; justify-content: center; gap: 8px; align-items: baseline; font-weight: 800; } .pyr-head small { font-weight: 500; opacity: .75; }
.pyr-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.pyr-chips .chip { background: rgba(255, 255, 255, .7); margin: 0; font-size: .82rem; } .pyr-chips .chip.me { background: var(--emerald); color: var(--gold); font-weight: 700; }
.pyr-row.t5 { background: linear-gradient(135deg, #ffe9a6, var(--gold), #e2b13f); } .pyr-row.t4 { background: linear-gradient(135deg, #c6f3ee, #7fd8cf); }
.pyr-row.t3 { background: linear-gradient(135deg, #fff1c2, #f4d57c); } .pyr-row.t2 { background: linear-gradient(135deg, #eceff1, #c5ccd1); }
.pyr-row.t1 { background: linear-gradient(135deg, #f0d4b8, #d6a173); } .pyr-row.t0 { background: linear-gradient(135deg, #e6f2ec, #cfe4d9); }
.pyr-row.mine { box-shadow: 0 0 0 3px var(--emerald), 0 0 22px rgba(241, 204, 112, .9); animation: rise .6s both, glow 2.4s ease-in-out 1s infinite; }
.board { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #f2f7f4; }
.board li.top1 { background: linear-gradient(135deg, #fff1c2, #f7dc94); } .board li.top2 { background: #eceff1; } .board li.top3 { background: #f6e3d2; }
.board li.me { outline: 3px solid var(--teal2); }
.board .pl { font-size: 1.3rem; text-align: center; font-weight: 800; } .board .nm small { display: block; color: var(--muted); font-size: .78rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.bdg { display: grid; place-items: center; text-align: center; background: var(--card); border: 1px solid var(--gold2); border-radius: 16px; padding: 8px 10px; font-size: 1.5rem; min-width: 84px; animation: pop .6s both; } .bdg small { font-size: .68rem; color: var(--muted); }
.ach { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ach .a { display: grid; gap: 2px; text-align: center; padding: 12px 8px; border-radius: 16px; border: 1px dashed var(--line); filter: grayscale(1); opacity: .5; }
.ach .a.done { filter: none; opacity: 1; border: 1px solid var(--gold2); background: linear-gradient(135deg, #fffaf0, #fff); animation: pop .6s both; }
.ach .a span { font-size: 1.8rem; } .ach .a small { color: var(--muted); font-size: .72rem; }

/* ── таблицы ── */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; } th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef4f1; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr.error td { background: #fdecea; } tr.duplicate td { background: #fff6dc; }

canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* ── анимации ── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { width: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.7); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes sheen { to { transform: translateX(100%); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 3px var(--emerald), 0 0 34px rgba(241, 204, 112, 1); } }
@keyframes ring { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-14deg); } 96% { transform: rotate(14deg); } }
.rise { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.wrap > .rise:nth-child(2), .stats > .rise:nth-child(2) { animation-delay: .06s; } .wrap > .rise:nth-child(3), .stats > .rise:nth-child(3) { animation-delay: .12s; }
.wrap > .rise:nth-child(4), .stats > .rise:nth-child(4) { animation-delay: .18s; } .wrap > .rise:nth-child(5), .stats > .rise:nth-child(5) { animation-delay: .24s; }
.wrap > .rise:nth-child(n+6), .stats > .rise:nth-child(n+6) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .bar i { width: var(--w); } }

/* ── узкие экраны: шапка класса в одну строку ── */
.top:not(.admin) { flex-wrap: nowrap; padding: 8px 12px; gap: 8px; }
.top:not(.admin) .brand { font-size: .95rem; min-width: 0; }
.top:not(.admin) .brand small { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top:not(.admin) .top-r { gap: 10px; font-size: .88rem; flex-shrink: 0; }
.logo { flex-shrink: 0; }
.pyr-row { min-width: 210px; } .pyr-head { flex-wrap: wrap; } .pyr-head small { white-space: nowrap; }

/* ── Telegram: кнопка и шаги ── */
.tg-btn-link { display: block; background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 6px 16px rgba(34, 158, 217, .35); margin: 6px 0; }
.steps { text-align: left; padding-left: 1.2rem; margin: 10px 0; } .steps li { margin: 6px 0; }

/* ── партнёрка: тексты и дерево команды (оргсхема) ── */
.share-text { background: #f1f9f6; border-radius: 12px; padding: 10px 12px; font-size: .92rem; white-space: pre-wrap; }
.otree-card { background: linear-gradient(160deg, #0b3a34, var(--emerald)); color: #fff; border-color: #0f4a42; } .otree-card h2 { color: var(--gold); margin-top: 0; }
.otree-wrap { overflow-x: auto; padding: 6px 0 12px; }
.otree, .otree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; position: relative; }
.otree ul { padding-top: 22px; }
.otree ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid rgba(241, 204, 112, .5); }
.otree li { position: relative; padding: 22px 4px 0; display: flex; flex-direction: column; align-items: center; }
.otree > li { padding-top: 0; }
.otree { width: max-content; margin: 0 auto; } /* центр, а при нехватке места — прокрутка с левого края */
.otree li::before, .otree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid rgba(241, 204, 112, .5); }
.otree li::after { right: auto; left: 50%; border-left: 2px solid rgba(241, 204, 112, .5); }
.otree li:only-child::before, .otree li:only-child::after, .otree > li::before, .otree > li::after { display: none; }
.otree li:only-child { padding-top: 22px; } .otree > li { padding-top: 0; }
.otree li:first-child::before, .otree li:last-child::after { border: 0; }
.otree li:last-child::before { border-right: 2px solid rgba(241, 204, 112, .5); border-radius: 0 10px 0 0; } .otree li:first-child::after { border-radius: 10px 0 0 0; }
.onode { width: 132px; display: grid; justify-items: center; gap: 2px; text-align: center; padding: 10px 8px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; transition: transform .2s, background .2s; }
.onode b { font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; } .onode small { color: #a9c7bd; font-size: .76rem; }
.onode .av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--emerald); font-weight: 800; margin-bottom: 4px; }
.onode .st { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #cfe3dc; margin-top: 3px; }
.onode.on .st { background: #1c7a56; color: #d9ffe9; } .onode.wait .st { background: #3a4f8f; color: #e0e8ff; }
.onode .inc { color: var(--gold); font-weight: 800; font-size: .95rem; }
.onode.root { width: 190px; background: rgba(241, 204, 112, .14); border-color: rgba(241, 204, 112, .6); } .onode.root .av { width: 52px; height: 52px; box-shadow: 0 0 0 4px rgba(241, 204, 112, .25); }
.onode.l2 { width: 100px; padding: 8px 4px; } .onode.l2 b { font-size: .82rem; } .onode.l2 .av { width: 32px; height: 32px; font-size: .9rem; }
.onode.free { background: transparent; border: 2px dashed rgba(255, 255, 255, .28); color: #cfe3dc; } .onode.free .av { background: rgba(255, 255, 255, .1); color: #cfe3dc; }
a.onode.free:hover { background: rgba(241, 204, 112, .12); border-color: var(--gold); transform: translateY(-2px); }
@media (max-width: 640px) { /* на телефоне — вертикально, без горизонтальной прокрутки */
  .otree-wrap { overflow: visible; }
  .otree { width: auto; } .otree, .otree ul { display: block; padding-top: 0; } .otree ul::before, .otree li::before, .otree li::after { display: none; }
  .otree li, .otree li:only-child { padding: 8px 0 0; align-items: stretch; }
  .otree > li > ul { margin-left: 18px; padding-left: 12px; border-left: 3px solid rgba(241, 204, 112, .5); }
  .otree li li > ul { margin-left: 18px; padding-left: 12px; border-left: 2px dashed rgba(241, 204, 112, .35); }
  .onode, .onode.root, .onode.l2 { width: auto; grid-template-columns: 44px 1fr auto; justify-items: start; text-align: left; align-items: center; column-gap: 10px; }
  .onode .av { grid-row: span 3; margin: 0; } .onode .inc, .onode .st { grid-column: 2; justify-self: start; }
  .onode.root { grid-template-columns: 56px 1fr; } .onode.free { grid-template-columns: 44px 1fr; }
}

/* ── превью видео ── */
.vlink.has-thumb { display: flex; gap: 12px; align-items: flex-start; } .vbody { flex: 1; min-width: 0; }
.vthumb { width: 64px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; background: #dbe5df; } .vthumb.sm { width: 36px; height: 48px; border-radius: 8px; vertical-align: middle; margin-right: 6px; }
.vcover { width: 180px; max-width: 50%; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); float: right; margin: 0 0 8px 12px; }
.onode .st { max-width: 100%; text-align: center; line-height: 1.25; } .onode.l2 .st { font-size: .64rem; }

/* ── первые шаги и помощь ── */
.checklist li { padding: 6px 0; display: flex; gap: 8px; align-items: baseline; } .checklist li.done { color: var(--muted); } .checklist s { text-decoration-color: rgba(0, 0, 0, .3); }
.steps h2 small { font-weight: 500; font-size: .85rem; }
.help-i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); font-weight: 800; font-size: .9rem; }
.wrap.wide { max-width: 1000px; }
.lang-sw { font-size: .78rem; font-weight: 800; border: 1.5px solid rgba(241, 204, 112, .7); color: var(--gold) !important; border-radius: 999px; padding: 2px 8px; }
@media (max-width: 420px) { .top-r { gap: 9px; font-size: .88rem; } .top .brand { font-size: .9rem; } }

/* ── план недели: кольцо прогресса и серия ── */
.plan { display: flex; gap: 16px; align-items: center; } .plan h2 { margin: 0 0 4px; } .plan p { margin: 2px 0; }
.ring { --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e2ece7 0); animation: ringin 1.2s ease-out both; position: relative; }
.ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-size: 1.25rem; color: var(--teal); }
.plan.done .ring { background: conic-gradient(var(--gold2) 100%, #e2ece7 0); } .plan.done .ring b { color: #8a6400; }
.streak { font-weight: 800; color: #c2410c; }
@keyframes ringin { from { transform: scale(.6) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── графики ── */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 600 9px system-ui, sans-serif; fill: var(--muted); text-anchor: middle; } .chart text.v { fill: var(--ink); font-weight: 800; }
.bars rect { fill: #9fd3c7; transform-box: fill-box; transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); } .bars rect.now { fill: var(--teal); }
.bars .bar-g { --d: 0ms; }
.line .ln { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease-out .2s forwards; }
.line .area { fill: rgba(15, 148, 136, .12); } .line .dot { fill: var(--gold2); stroke: #fff; stroke-width: 2; }
.line .goal { stroke: var(--gold2); stroke-dasharray: 4 4; stroke-width: 1.5; } .line .gl { fill: #8a6400; text-anchor: end; }
@keyframes grow { from { transform: scaleY(0); } } @keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .line .ln { stroke-dashoffset: 0; animation: none; } .bars rect { animation: none; } }

/* ── добавление видео: шаги и подсказки ── */
.howto { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; }
.howto li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 600; animation: rise .5s both; animation-delay: calc(var(--k) * 120ms); }
.howto li span { font-size: 1.4rem; }
.url-row { display: flex; gap: 8px; } .url-row input { flex: 1; min-width: 0; }
.url-hint { min-height: 1.2em; } .url-hint.ok { color: var(--ok); font-weight: 700; } .url-hint.bad { color: var(--bad); font-weight: 700; }

/* ── инструкция с фото ── */
.guide-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guide figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.guide img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s; } .guide figure:hover img { transform: scale(1.03); }
.guide figcaption { padding: 10px 12px; display: grid; gap: 4px; font-size: .9rem; } .guide figcaption span { color: var(--muted); }
.chart { max-height: 230px; }
.empty.illus img { width: 100%; max-width: 360px; height: auto; border-radius: 18px; margin: 0 auto 10px; display: block; box-shadow: var(--shadow); }
.card.tips { background: linear-gradient(135deg, #fff8e1, #fff); border-color: #f1dc9a; } .card.tips li { padding: 4px 0; }
.two-charts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .two-charts h3 { margin: 0 0 6px; font-size: 1rem; }

/* ── админка: классы и обзор ── */
.bar.mini { height: 6px; margin-top: 4px; max-width: 110px; }
.owed { color: #8a5a00; }
.toplist li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); } .toplist li .r { margin-left: auto; }
.danger-zone summary { color: var(--bad); } .danger-zone { border-color: #f3c9c5; }
.classes-t th { cursor: help; }

/* ── кнопка менеджера (WhatsApp) ── */
.wa-fab { position: fixed; right: 14px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff !important; text-decoration: none; border-radius: 999px; padding: 8px 14px 8px 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); animation: fabin .6s .8s both; }
.wa-fab .wa-ico { font-size: 1.4rem; } .wa-fab small { display: block; font-size: .68rem; opacity: .9; line-height: 1; } .wa-fab b { font-size: .95rem; line-height: 1.1; }
body.class .wa-fab { bottom: 92px; padding: 8px; } body.class .wa-fab .wa-txt { display: none; }
@keyframes fabin { from { transform: translateY(30px) scale(.8); opacity: 0; } }
.card.manager { display: flex; gap: 12px; align-items: center; } .card.manager > span { font-size: 1.8rem; } .card.manager div { flex: 1; display: grid; } .card.manager small { color: var(--muted); }

/* ── менеджер: WhatsApp + Telegram (заменяет одиночную кнопку) ── */
.mgr-fab { position: fixed; right: 12px; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 6px; background: rgba(7, 35, 31, .92); backdrop-filter: blur(8px); padding: 6px 6px 6px 12px; border-radius: 999px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); animation: rise .6s .8s both; }
.mgr-fab .mgr-label { color: #cfe3dc; font-size: .78rem; line-height: 1.15; max-width: 150px; } .mgr-fab .mgr-label b { color: #fff; display: block; font-size: .92rem; }
.mgr-fab .wa-fab, .mgr-fab .tg-fab { position: static; animation: none; box-shadow: none; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 800; font-size: .85rem; }
.mgr-fab .wa-fab { background: #25d366; } .mgr-fab .tg-fab { background: #2aabee; }
@media (max-width: 700px) { .mgr-fab .mgr-label { display: none; } .mgr-fab { padding: 5px; } .mgr-fab .wa-fab, .mgr-fab .tg-fab { padding: 7px 10px; font-size: .78rem; } }
body.class .mgr-fab { bottom: 92px; } body.class .mgr-fab .mgr-label { display: none; }
.wa-btn { background: #25d366 !important; } .tg-btn { background: #2aabee !important; }
.card.welcome { background: linear-gradient(135deg, #fff, #f1f9f6); border: 2px solid var(--teal2); }
.wsteps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.wsteps li { display: flex; gap: 10px; align-items: center; } .wsteps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold2)); font-weight: 800; color: var(--emerald); }
.wsteps li > div { flex: 1; display: grid; } .wsteps small { color: var(--muted); }

/* ── современные уведомления вместо жёлтых блоков ── */
:root { --warn: #fff; }
.card.warn { background: #fff; border: 1px solid var(--line); border-left: 4px solid #f59e0b; box-shadow: 0 6px 20px rgba(7, 35, 31, .06); }
.warn-t { color: #b45309; }
.todo h2 { margin-top: 0; }
.todo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.todo-tile { position: relative; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 4px 14px rgba(7, 35, 31, .05); transition: transform .2s, box-shadow .2s; }
.todo-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 35, 31, .1); }
.todo-tile .ti { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef6f3; font-size: 1.3rem; }
.todo-tile b { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.5rem; line-height: 1; color: var(--teal); } .todo-tile span { font-size: .9rem; color: var(--ink); }
.todo-tile p { margin: 6px 0 0; } .todo-go { position: absolute; inset: 0; border-radius: 16px; display: flex; justify-content: flex-end; align-items: center; padding-right: 14px; color: var(--muted); text-decoration: none; font-size: 1.2rem; }
.todo-done { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 14px; padding: 12px 16px; margin: 12px 0; font-weight: 600; }
.flash.err { background: #fff; color: var(--bad); border: 1px solid #f3c9c5; border-left: 4px solid var(--bad); } .flash.ok { background: #fff; color: var(--ok); border: 1px solid #c9ecd9; border-left: 4px solid var(--ok); }
.flash { box-shadow: 0 6px 18px rgba(7, 35, 31, .06); }
.b-warn { background: #fef3c7; color: #92400e; }

/* ── горизонтальные полосы (рейтинг классов) ── */
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; gap: 10px; align-items: center; color: inherit; text-decoration: none; padding: 4px 6px; border-radius: 10px; }
.hbar:hover { background: #f1f7f4; }
.hbar .hl { display: grid; line-height: 1.2; } .hbar .hl small { color: var(--muted); font-size: .78rem; }
.hbar .ht { height: 14px; background: #e8f0ec; border-radius: 999px; overflow: hidden; }
.hbar .ht i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--teal2), var(--teal)); animation: fill 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
.hbar:first-child .ht i { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.hbar .hv { font-weight: 800; font-size: .92rem; white-space: nowrap; }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr auto; } .hbar .ht { grid-column: 1 / -1; grid-row: 2; } }
.acc-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-mates { display: flex; gap: 12px; align-items: center; } .invite-mates > span { font-size: 1.8rem; } .invite-mates > div { flex: 1; display: grid; } .invite-mates small { color: var(--muted); }
.stat.gold { background: linear-gradient(135deg, var(--teal), var(--emerald)); border-color: var(--emerald); color: #fff; } .stat.gold span, .stat.gold small { color: #bfe0d8; } .stat.gold b { color: var(--gold); }
.upd-note { background: #eef6f3; border-left: 4px solid var(--teal2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-weight: 600; } .upd-note small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.flash.info { background: #fff; color: var(--ink); border: 1px solid #cfe3dc; border-left: 4px solid var(--teal2); }

/* ═════════ Современная тема (v2): светлая, чистая, с мягкими тенями ═════════ */
:root { --bg: #f2f6f4; --card: #fff; --line: #e3ebe7; --ink: #10231d; --muted: #61766e; --teal: #0f766e; --teal2: #14a094;
  --shadow: 0 1px 2px rgba(16, 35, 29, .04), 0 10px 30px rgba(16, 35, 29, .06); --r: 20px; }
body { background: var(--bg); font-size: 16.5px; line-height: 1.5; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; } h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.wrap { padding: 12px 16px 40px; }
/* шапка: тёмная, плоская, с размытием */
.top { background: rgba(7, 35, 31, .94); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); box-shadow: none; }
.brand { color: #fff !important; letter-spacing: .02em; } .brand small { color: #9fbdb3; }
.logo { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25); border-radius: 12px; }
/* карточки */
.card { border-radius: var(--r); padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card.warn { background: #fff; }
.stat { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 16px; }
.stat b { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: 1.5rem; }
.stat span { font-size: .8rem; text-transform: none; color: var(--muted); font-weight: 500; }
/* главный блок с суммой */
.hero { border-radius: 26px; padding: 22px 20px 18px; background: linear-gradient(140deg, #0f766e 0%, #0a5750 55%, #073f3a 100%); box-shadow: 0 18px 40px rgba(7, 63, 58, .28); }
.hero::after { display: none; }
.hero-num { font-size: 2.9rem; letter-spacing: -.035em; color: #fff; }
.hero-grid > div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; }
.tier { background: rgba(255, 255, 255, .16); color: #fff; animation: none; border: 1px solid rgba(255, 255, 255, .22); }
.bar { height: 8px; } .bar i { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.bar.teal { background: #e3ebe7; } .bar.teal i { background: linear-gradient(90deg, #14a094, #0f766e); }
/* кнопки */
.btn { border-radius: 14px; background: var(--teal); box-shadow: 0 1px 2px rgba(15, 118, 110, .3), 0 6px 14px rgba(15, 118, 110, .18); font-weight: 600; letter-spacing: 0; }
.btn:hover { background: #0c6a63; } .btn:active { transform: scale(.98); }
.btn.gold-btn { background: linear-gradient(180deg, #fde68a, #fbbf24); color: #422006; box-shadow: 0 1px 2px rgba(180, 83, 9, .25), 0 8px 18px rgba(245, 158, 11, .28); }
.btn.danger { background: #fff; border: 1.5px solid #fca5a5; color: #b91c1c; box-shadow: none; }
.btn.big { border-radius: 16px; padding: 15px; font-size: 1.05rem; }
/* поля */
input, select, textarea { border-radius: 14px; border: 1.5px solid #d7e2dd; background: #fbfdfc; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal2); box-shadow: 0 0 0 4px rgba(20, 160, 148, .15); }
/* нижнее меню: светлое «стекло», активный пункт — зелёная таблетка */
.tabs { left: 10px; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(16px); border: 1px solid rgba(16, 35, 29, .08); box-shadow: 0 10px 34px rgba(16, 35, 29, .16); border-radius: 24px; padding: 6px; }
.tabs a { color: #6b7f77; font-weight: 500; border-radius: 18px; }
.tabs a.on { background: var(--teal); color: #fff; box-shadow: 0 6px 14px rgba(15, 118, 110, .3); }
/* значки */
.badge { border-radius: 999px; font-weight: 600; padding: 3px 10px; }
.chip { background: #eaf1ee; color: var(--ink); } .chip.on { background: var(--teal); color: #fff; }
.vcard { border-radius: 20px; box-shadow: var(--shadow); } .vcard:hover { transform: none; box-shadow: 0 14px 34px rgba(16, 35, 29, .1); }
.table-wrap { border-radius: 18px; box-shadow: var(--shadow); }
details.card > summary { font-weight: 600; }
/* меньше «мигания»: появление блоков короче */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation-duration: .35s !important; }
/* кнопка менеджера: компактнее на странице кабинета */
body.class .mgr-fab { bottom: 88px; right: 10px; } body.class .mgr-fab .wa-fab, body.class .mgr-fab .tg-fab { padding: 6px 9px; font-size: .75rem; }
body.class .mgr-fab { padding: 4px; bottom: 92px; } body.class .mgr-fab .tg-fab { display: none; }
body.class .mgr-fab .wa-fab { padding: 9px 13px; font-size: .78rem; }
.invite-mates { flex-wrap: wrap; } .invite-mates > div { flex: 1 1 180px; } .invite-mates form { margin-left: auto; }
.how-pay { background: #f1f8f6; border-color: #cfe5df; }

/* ═════════ TREND CLASS 2.0: форматы, банк идей, бренд ═════════ */
.center { text-align: center; }
h2.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 22px 0 10px; }
h2.sec a { font-size: .9rem; font-family: Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.invite-top i { font-style: normal; }
@media (max-width: 520px) { .invite-top i { display: none; } }

.brand-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); margin: 12px 0; }
.brand-card img { border-radius: 14px; flex: none; } .brand-card span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.brand-card small { color: var(--muted); line-height: 1.3; } .brand-card i { font-style: normal; color: var(--teal); font-weight: 700; font-size: .9rem; white-space: nowrap; }

.banner { display: block; position: relative; border-radius: 24px; overflow: hidden; margin: 12px 0; color: #fff; text-decoration: none; min-height: 200px; box-shadow: 0 14px 34px rgba(7, 35, 31, .25); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner > span { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; min-height: 200px; padding: 16px; background: linear-gradient(180deg, rgba(7, 35, 31, .05) 20%, rgba(7, 35, 31, .9)); }
.banner em { font-style: normal; background: var(--gold); color: var(--emerald); font-weight: 800; font-size: .78rem; border-radius: 999px; padding: 3px 10px; }
.banner b { font: 800 1.5rem/1.15 Montserrat, sans-serif; } .banner small { color: #e3efeb; }
.banner u { text-decoration: none; background: #fff; color: var(--emerald); font-weight: 700; border-radius: 12px; padding: 9px 16px; margin-top: 6px; }

.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }
.fcard { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: 20px; overflow: hidden; background: var(--emerald); color: #fff !important; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s; }
.fcard:active { transform: scale(.97); } .fcard:hover { transform: translateY(-3px); }
.fcard img { width: 100%; height: 100%; object-fit: cover; }
.fcard.hot { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.fpill { position: absolute; top: 8px; left: 8px; background: rgba(7, 35, 31, .75); backdrop-filter: blur(6px); border-radius: 999px; font-size: .74rem; font-weight: 700; padding: 4px 9px; }
.fcard.hot .fpill { background: var(--gold); color: var(--emerald); }
.fbody { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 46px 10px 10px; display: flex; flex-direction: column; background: linear-gradient(180deg, transparent, rgba(7, 35, 31, .94)); }
.fbody b { line-height: 1.2; font-size: .95rem; } .fbody small { color: #cfe3db; font-size: .74rem; margin-top: 2px; }
.fplus { position: absolute; right: 8px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--emerald); font-weight: 800; font-size: 1.15rem; }

.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
@media (min-width: 560px) { .ideas { grid-template-columns: repeat(4, 1fr); } }
.ideas.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.ideas.strip .idea { flex: 0 0 42%; max-width: 180px; scroll-snap-align: start; }
.idea > a:first-child { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--teal2), var(--emerald)); color: #fff; }
.idea img { width: 100%; height: 100%; object-fit: cover; }
.idea-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; opacity: .8; }
.ipf, .iv { position: absolute; left: 8px; background: rgba(7, 35, 31, .75); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 3px 8px; }
.ipf { top: 8px; } .iv { bottom: 8px; }
.isame { display: block; text-align: center; margin-top: 6px; padding: 9px; border-radius: 12px; background: #e3f1ed; color: var(--teal); font-weight: 700; font-size: .86rem; text-decoration: none; }

.team-card { display: block; color: inherit; text-decoration: none; background: linear-gradient(135deg, #fff8e1, #fff); border-color: #ecd9a3; }
.team-card h2 { margin-top: 0; }

/* карточка формата: без нижнего меню и шапки, поле отправки закреплено снизу */
body.class.sheet { padding-bottom: 100px; } body.sheet .top { display: none; }
.sheet-head { position: relative; padding-right: 48px; margin-top: 8px; } .sheet-head h1 { margin: 6px 0 2px; } .sheet-head p { margin: 4px 0; }
.sheet-head .x { position: absolute; right: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; }
.pill.green { background: #d7f2e3; color: #075c36; }
.player { width: min(100%, 330px, calc(58vh * 9 / 16)); aspect-ratio: 9 / 16; margin: 12px auto 0; border-radius: 22px; overflow: hidden; background: var(--emerald); box-shadow: 0 16px 36px rgba(7, 35, 31, .25); }
.player iframe, .player img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.player.still { aspect-ratio: 4 / 5; }
.refs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; margin: 8px 0; }
.refs a { min-width: 62px; text-align: center; padding: 10px 6px; border-radius: 14px; background: #fff; border: 2px solid var(--line); text-decoration: none; font-weight: 800; }
.refs a small { display: block; font-weight: 500; color: var(--muted); font-size: .68rem; } .refs a.on { border-color: var(--teal); background: #e3f1ed; }
ul.ticks, ul.numbered { list-style: none; padding: 0; margin: 6px 0; counter-reset: n; }
ul.ticks li, ul.numbered li { position: relative; padding: 6px 0 6px 32px; }
ul.ticks li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #d7f2e3; color: #075c36; font-weight: 800; font-size: .8rem; }
ul.numbered li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 700; font-size: .78rem; }
.pay-box { background: linear-gradient(160deg, #eef8f4, #fff); }
.pay-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; } .pay-row b { font: 800 1.35rem Montserrat, sans-serif; color: var(--teal); }
.send-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(7, 35, 31, .12); }
.send-bar form { display: flex; gap: 8px; max-width: 728px; margin: 0 auto; } .send-bar input[type=url] { flex: 1; min-width: 0; }
.send-bar .btn.big { margin: 0 auto; max-width: 728px; }

.brand-hero { display: flex; gap: 14px; align-items: center; } .brand-hero img { border-radius: 18px; } .brand-hero h1 { margin: 0; } .brand-hero p { margin: 2px 0; color: var(--muted); }
.rule { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 8px 0; } .rule span { color: var(--muted); font-size: .94rem; }
ul.crit { list-style: none; padding: 0; } ul.crit li { position: relative; padding: 6px 0 6px 30px; display: flex; flex-direction: column; } ul.crit li::before { content: '✓'; position: absolute; left: 2px; top: 6px; color: var(--ok); font-weight: 900; } ul.crit span { color: var(--muted); font-size: .92rem; }
.me-btn { font-size: 1.15rem; text-decoration: none; }
.logout-card { text-align: center; } .logout-card button.link { color: var(--bad); font-weight: 700; padding: 8px 16px; }
body.class .top { flex-wrap: nowrap; } body.class .brand { white-space: nowrap; min-width: 0; overflow: hidden; }
@media (max-width: 420px) { body.class .top { padding: 8px 12px; gap: 8px; } body.class .top-r { gap: 10px; } body.class .top .logo { width: 34px; height: 34px; } body.class .top .brand { font-size: .82rem; } }
@media (max-width: 560px) { .hide-s { display: none; } }

/* ── простая шапка, иконки меню, кнопка «Добавить видео» ── */
.tabs a svg { display: block; margin: 0 auto 2px; }
body.class { padding-bottom: 156px; }
body.class.sheet { padding-bottom: 100px; }
.bell b { min-width: 10px; height: 10px; padding: 0; font-size: 0; top: 2px; right: 0; }
.fab { position: fixed; right: max(14px, calc(50% - 366px)); bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 29; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-wa { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1fb457; color: #fff !important; box-shadow: 0 8px 20px rgba(31, 180, 87, .4); }
.fab-add { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; font-weight: 800; text-decoration: none; background: linear-gradient(135deg, #f7dc94, var(--gold) 45%, var(--gold2)); color: var(--emerald) !important; box-shadow: 0 10px 26px rgba(160, 118, 20, .45); }
.fab-add:active { transform: scale(.96); }
.hero .when { font-size: .8rem; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.gift { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #fff4cf, #fffdf5); border: 1px solid #ecd48c; border-radius: 20px; padding: 12px 14px; margin: 12px 0; }
.gift > span { font-size: 2rem; line-height: 1; } .gift div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .gift small { color: #6b5710; }
.gift .bar { height: 8px; background: #f1e3b4; } .gift .bar i { background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.menu { display: grid; padding: 4px 16px; } .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; } .menu a:last-child { border: 0; }
.pfs { display: flex; gap: 4px; margin-top: 4px !important; } .pfs i { font-style: normal; font-size: .62rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 0 6px; color: #fff; }

/* ── примеры листаются вправо-влево ── */
.slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
.slider figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; text-align: center; }
.slider.many figure { flex-basis: 78%; }
.slider .player { margin-top: 0; } .slider.many .player { width: 100%; max-width: 300px; }
.slider figcaption { font-size: .88rem; padding: 8px 0 0; }

/* ── админка: галерея ── */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; }
.agrid.scroll { max-height: 640px; overflow-y: auto; padding-right: 4px; }
.acard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; text-decoration: none; color: inherit; box-shadow: var(--shadow); min-width: 0; }
.acard.pin { border: 2px solid var(--gold2); } .acard.off { opacity: .55; }
.acard small { color: var(--muted); line-height: 1.3; }
.athumb { position: relative; display: block; width: 100%; aspect-ratio: 9 / 13; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--teal2), var(--emerald)); border: 0; padding: 0; color: #fff; font: inherit; }
.athumb.play { cursor: pointer; }
.athumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.athumb i { position: absolute; font-style: normal; font-weight: 700; font-size: .72rem; background: rgba(7, 35, 31, .75); border-radius: 999px; padding: 3px 8px; }
.athumb i.aplay { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; padding: 0; display: grid; place-items: center; font-size: 1.1rem; }
.athumb i.apf { left: 6px; top: 6px; } .athumb i.aviews { left: 6px; bottom: 6px; }
.athumb i.astate { right: 6px; top: 6px; background: var(--gold); color: var(--emerald); } .athumb i.astate.off { background: #fff; }
.abtns { display: flex; gap: 6px; flex-wrap: wrap; } .abtns select { flex: 1; min-width: 0; min-height: 36px; padding: 4px 6px; font-size: .85rem; } .abtns form { margin: 0; }
.vmodal { border: 0; border-radius: 20px; padding: 12px; width: min(94vw, 380px); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.vmodal::backdrop { background: rgba(7, 35, 31, .7); }
.vmodal iframe { display: block; width: 100%; height: min(72vh, 620px); border: 0; border-radius: 14px; margin: 10px 0; background: var(--emerald); }

/* ═════════ Дизайн v3: яркий изумруд, насыщенное золото, белое; выгода — крупными чёрными цифрами ═════════ */
:root { --emerald: #05392e; --green: #0a8f70; --green-d: #076b55; --teal: #08795f; --teal2: #10a983; --gold: #ffc933; --gold2: #eda400;
  --bg: #f5f7f4; --ink: #0b1210; --muted: #55665f; --line: #e6ece8; --r: 22px;
  --shadow: 0 1px 2px rgba(5, 40, 32, .05), 0 12px 28px rgba(5, 40, 32, .08);
  --grad-green: linear-gradient(145deg, #13b48a 0%, #0a8567 42%, #05523f 100%);
  --grad-gold: linear-gradient(180deg, #ffe27a 0%, #ffc933 55%, #f2a900 100%); }
body { color: var(--ink); background: radial-gradient(700px 300px at 100% -60px, rgba(16, 169, 131, .16), transparent 70%), radial-gradient(500px 260px at -10% 10%, rgba(255, 201, 51, .14), transparent 70%), var(--bg); }
h1 { font-size: 1.55rem; } a { color: var(--green-d); }

/* шапка */
.top, body.class .top, .top.admin { background: linear-gradient(135deg, #0a8f70, #056048 70%, #054536); border: 0; border-radius: 0 0 22px 22px; box-shadow: 0 10px 26px rgba(5, 96, 72, .28); }
.brand small { color: #bff0df; }
.logo { box-shadow: 0 0 0 2px var(--gold); }
.lang-sw { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff !important; padding: 6px 12px; background: rgba(255, 255, 255, .1); }
body.class .top-r .bell, .me-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); padding: 0; }
.me-btn.on { background: var(--grad-gold); color: var(--emerald) !important; }
.bell svg, .me-btn svg { width: 21px; height: 21px; }
body.class .bell b { background: #ff5a4f; box-shadow: 0 0 0 2px #067056; top: 7px; right: 8px; }

/* главный блок */
.hero { background: radial-gradient(300px 170px at 92% 0%, rgba(255, 201, 51, .45), transparent 65%), var(--grad-green); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 18px 38px rgba(8, 133, 103, .34); }
.hero-num { color: var(--gold); text-shadow: 0 2px 18px rgba(255, 201, 51, .35); }
.hero-sub b { color: var(--gold); }
.bar i, .gift .bar i { background: linear-gradient(90deg, #eda400, #ffd24a, #fff0a8); }

/* кнопки: золотая — главное действие, зелёная — обычные */
.btn { background: linear-gradient(180deg, #11a17f, #087459); border-radius: 999px; font-weight: 700; box-shadow: 0 8px 18px rgba(8, 116, 89, .25); }
.btn:hover { background: linear-gradient(180deg, #0f9374, #06634c); }
.btn.gold-btn, .btn.gold-btn:hover, .fab-add { background: var(--grad-gold); color: #231800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px rgba(237, 164, 0, .38); }
.fab-add { color: #231800 !important; }
.btn.wa-btn { background: #1fb457; color: #fff; } .btn.tg-btn { background: #2597d4; color: #fff; }
.btn.danger, .btn.danger:hover { background: #fff; color: #b3261e; }
input, select, textarea { background: #fff; border-color: #dbe5df; }

/* карточки и выгода */
.card, .stat, .brand-card, .acard { border-color: var(--line); box-shadow: var(--shadow); }
.stat b, .pay-row b, .calc b, .earn b, .reward b { color: var(--ink); }
.stat.gold { background: var(--grad-gold); border: 0; } .stat.gold b { color: #231800; } .stat.gold span, .stat.gold small { color: #4d3700; }
.earn { background: #fff; border-radius: var(--r); padding: 12px; margin: 12px 0; box-shadow: var(--shadow); border: 1px solid var(--line); }
.earn h2 { margin: 0 4px 8px; font-size: 1rem; }
.earn > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.earn p { margin: 0; text-align: center; border-radius: 16px; padding: 10px 2px; background: #f4f7f5; }
.earn p:last-child { background: linear-gradient(180deg, #fff5cc, #ffe589); }
.earn small { display: block; color: var(--muted); font-size: .72rem; } .earn b { font: 800 1.12rem Montserrat, sans-serif; white-space: nowrap; }
.pay-box { background: #fff; border-top: 4px solid var(--gold); }
.pill.green { background: var(--grad-gold); color: #231800; }
.gift { border: 0; background: linear-gradient(135deg, #ffe681, #ffc933); box-shadow: 0 12px 26px rgba(237, 164, 0, .28); }
.gift b { color: #1c1300; } .gift small { color: #553d00; } .gift .bar { background: rgba(255, 255, 255, .65); } .gift .bar i { background: linear-gradient(90deg, #08795f, #10a983); }

/* нижнее меню: тёмно-изумрудное, активный пункт — золото */
.tabs { background: linear-gradient(180deg, #0a4f3e, #05342a); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 34px rgba(5, 52, 42, .42); border-radius: 26px; backdrop-filter: none; }
.tabs a { color: #b9d9ce; font-size: .68rem; min-width: 0; }
.tabs a.on { background: rgba(255, 255, 255, .13); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 201, 51, .55), 0 0 18px rgba(255, 201, 51, .22); }
.chip.on { background: var(--green); }

/* форматы */
.fcard { border-radius: 22px; } .fcard.hot { box-shadow: 0 0 0 3px var(--gold), 0 12px 26px rgba(237, 164, 0, .28); }
.fcard.hot .fpill { background: var(--grad-gold); color: #231800; }
.fplus { background: var(--grad-gold); color: #231800; }
.isame { background: #fff; border: 1.5px solid #cfe3da; border-radius: 999px; }

/* рефералы */
.reward { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin: 12px 0; }
.reward p { margin: 0; border-radius: var(--r); padding: 16px 14px; background: #fff; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.reward b { display: block; font: 800 1.75rem/1.15 Montserrat, sans-serif; } .reward small { color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
.share3 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .share3 .gold-btn { grid-column: 1 / -1; }
.calc li { display: flex; justify-content: space-between; gap: 10px; align-items: center; } .calc b { font: 800 1.2rem Montserrat, sans-serif; white-space: nowrap; }

/* админка в том же стиле */
body.admin .topnav a { background: rgba(255, 255, 255, .1); font-weight: 600; font-size: .92rem; }
body.admin .topnav a.on { background: var(--grad-gold); color: #231800; }
body.admin h1 { font-size: 1.7rem; }
body.admin .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
body.admin th { background: #eef5f1; color: #33473f; }
body.admin tbody tr:hover { background: #fbfdf6; }
body.admin .acard { border-radius: 20px; }
body.admin .card > h2:first-child { font-size: 1.1rem; }
@media (max-width: 560px) { body.admin .topnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } body.admin .topnav a { white-space: nowrap; } }

/* ── спокойные цвета (правка владельца): мягкое золото, лёгкие тени, сумма «К выплате» белая ── */
:root { --gold: #efcf7a; --gold2: #d6ad4e; --green: #14806a; --green-d: #0f6a57; --teal: #12735f; --teal2: #1b947b;
  --grad-green: linear-gradient(150deg, #17806a 0%, #0f6654 55%, #0a4a3d 100%);
  --grad-gold: linear-gradient(180deg, #f6dfa0 0%, #eecb72 100%);
  --shadow: 0 1px 2px rgba(10, 40, 32, .04), 0 6px 16px rgba(10, 40, 32, .05); }
body { background: radial-gradient(700px 300px at 100% -60px, rgba(27, 148, 123, .08), transparent 70%), var(--bg); }
.top, body.class .top, .top.admin { background: linear-gradient(135deg, #13705c, #0b5142); box-shadow: 0 4px 14px rgba(10, 74, 61, .16); }
.logo { box-shadow: 0 0 0 1.5px rgba(239, 207, 122, .8); }
.hero { background: radial-gradient(300px 170px at 92% 0%, rgba(239, 207, 122, .16), transparent 65%), var(--grad-green); box-shadow: 0 8px 22px rgba(10, 74, 61, .18); }
.hero-num { color: #fff; text-shadow: none; }
.hero-sub b { color: #f6dfa0; }
.bar i, .gift .bar i { background: linear-gradient(90deg, #d6ad4e, #f1d48a); }
.btn, .btn:hover { box-shadow: 0 3px 10px rgba(15, 106, 87, .16); }
.btn { background: #12735f; } .btn:hover { background: #0f6451; }
.btn.gold-btn, .btn.gold-btn:hover, .fab-add { background: var(--grad-gold); color: #35290a; box-shadow: 0 4px 12px rgba(140, 108, 30, .18); }
.fab-add { color: #35290a !important; }
.fab-wa { box-shadow: 0 4px 12px rgba(10, 60, 40, .2); }
.stat.gold { background: linear-gradient(160deg, #fbf0cf, #f5e1a6); } .stat.gold b { color: #2a2007; }
.earn p:last-child { background: #fbf2d6; }
.pay-box { border-top-width: 3px; }
.pill.green { background: #fbf0cf; color: #4a3908; }
.gift { background: #fdf6e0; border: 1px solid #eddca6; box-shadow: var(--shadow); } .gift .bar { background: #efe3bb; } .gift .bar i { background: linear-gradient(90deg, #12735f, #1b947b); }
.tabs { background: #0c4a3d; box-shadow: 0 8px 22px rgba(10, 60, 48, .24); }
.tabs a.on { color: #f6dfa0; box-shadow: none; background: rgba(255, 255, 255, .12); }
.fcard.hot { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.fcard.hot .fpill, .fplus { background: #fbf0cf; color: #35290a; }
.reward p { border-top-width: 3px; }
body.admin .topnav a.on { background: #fff; color: #0b5142; }
.team-card { background: #fdfaf0; border-color: #eadfb8; }

/* ── витрина: видео, которые зарабатывают ── */
.show-stats { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; margin-bottom: 10px; }
.show-stats p { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 6px; text-align: center; box-shadow: var(--shadow); }
.show-stats b { display: block; font: 800 1.15rem Montserrat, sans-serif; color: var(--ink); white-space: nowrap; } .show-stats small { color: var(--muted); font-size: .7rem; line-height: 1.2; display: block; }
.show-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; }
.win { flex: 0 0 44%; max-width: 190px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px; box-shadow: var(--shadow); text-align: center; }
.win-video { position: relative; display: block; width: 100%; aspect-ratio: 9 / 13; border: 0; padding: 0; border-radius: 15px; overflow: hidden; cursor: pointer; background: linear-gradient(160deg, var(--teal2), var(--emerald)); color: #fff; }
.win-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.win-video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 40, 32, .65); }
.win p { margin: 6px 0 4px; } .win b { display: block; font: 800 1.2rem Montserrat, sans-serif; color: var(--ink); } .win small { color: var(--muted); }
.win a { display: block; background: #eaf4f0; border-radius: 999px; padding: 8px 4px; font-weight: 700; font-size: .82rem; text-decoration: none; }
.guide figure img { object-position: 50% 35%; }
.empty.illus img { object-fit: cover; aspect-ratio: 4 / 3; object-position: 50% 45%; }

/* ── опрос по шагам ── */
body.class.sheet:has(.quiz) { padding-bottom: 24px; }
.quiz-top { display: none; } .quiz.js .quiz-top { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.quiz-back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; }
.quiz-bar { flex: 1; height: 10px; border-radius: 999px; background: #e2ebe6; overflow: hidden; } .quiz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #12735f, #1b947b); border-radius: inherit; transition: width .3s; }
.quiz fieldset.step { border: 0; padding: 0; margin: 0 0 16px; display: block; }
.quiz fieldset.step[hidden], .quiz [hidden] { display: none !important; }
.quiz legend { font: 800 1.5rem/1.2 Montserrat, sans-serif; padding: 0; margin-bottom: 12px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; flex-direction: row; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px; font-size: 1.05rem; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #e2ebe6; transition: transform .1s, border-color .15s, background .15s; }
.opt:active { transform: translateY(2px); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.opt .oi { font-size: 1.6rem; line-height: 1; }
.opt:has(input:checked) { border-color: var(--teal); background: #eaf6f1; box-shadow: 0 3px 0 #bfe0d3; }
.opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz-bottom [data-next], .quiz-bottom [data-done] { margin: 8px 0; }
.quiz:not(.js) [data-next] { display: none; }

/* ── оферта, уровни, Telegram, повышенная ставка ── */
.offer-doc h3 { margin: 14px 0 4px; font-size: 1rem; } .offer-doc p { margin: 4px 0; font-size: .94rem; }
.offer-scroll { max-height: 48vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px 12px; box-shadow: var(--shadow); }
.offer-checks { display: grid; gap: 8px; } .offer-checks .opt { padding: 12px 14px; font-size: .92rem; font-weight: 600; align-items: flex-start; }
.offer-checks .opt input { position: static; opacity: 1; width: 22px; height: 22px; flex: none; accent-color: var(--teal); }
.offer-checks .opt:has(input:disabled) { opacity: .55; }
body.class.sheet:has([data-offer]) { padding-bottom: 24px; }
.level-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .level-top span { display: flex; gap: 4px; } .level-top i { width: 22px; height: 8px; border-radius: 999px; background: #e2ebe6; } .level-top i.on { background: var(--teal); }
.level-task { display: flex; justify-content: space-between; margin: 8px 0 2px; }
.tg-tip { background: #eaf5fc; border: 1px solid #c4e1f3; border-radius: 16px; padding: 10px 14px; font-size: .92rem; }
.fcard.boost .fpill { background: var(--grad-gold); }

/* ── широкий экран, листание на компьютере, обложки, аватарки, опрос ── */
@media (min-width: 900px) { body.class .wrap.wide { max-width: 1080px; } .wrap.wide .fgrid { grid-template-columns: repeat(5, 1fr); } .wrap.wide .ideas:not(.strip) { grid-template-columns: repeat(6, 1fr); } .wrap.wide .win { flex-basis: 200px; } .wrap.wide .hero, .wrap.wide .earn, .wrap.wide .gift { max-width: 760px; margin-left: auto; margin-right: auto; } }
.scroller { position: relative; } .s-arrow { position: absolute; top: 40%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line, #e6ece8); background: #fff; color: #0b5142; font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(5, 40, 32, .22); z-index: 5; display: grid; place-items: center; }
.s-arrow[hidden] { display: none; } .s-arrow.prev { left: -6px; } .s-arrow.next { right: -6px; }
.dragging { scroll-snap-type: none !important; cursor: grabbing; user-select: none; }
.idea-video { position: relative; display: block; width: 100%; aspect-ratio: 9 / 14; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: linear-gradient(160deg, var(--teal2), var(--emerald)); color: #fff; font: inherit; }
.idea-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idea-video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 40, 32, .6); }
.idea-video .idea-empty { align-items: end; padding-bottom: 38%; font-size: .85rem; font-weight: 700; }
.chip-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; } .chip-row .chip { flex: none; margin: 0; padding: 7px 14px; }
.ava-row { display: flex; gap: 14px; align-items: center; } .ava-row h2 { margin: 0; } .ava-row p { margin: 2px 0; }
.ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: #e7eeea; vertical-align: middle; margin-right: 8px; flex: none; } .ava.lg { width: 72px; height: 72px; margin: 0; font-size: 1.5rem; }
.quiz-gift { text-align: center; } .gift-emoji { font-size: 4.5rem; margin: 6px 0; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.gift-how { text-align: left; background: #fdf6e0; border: 1px solid #eddca6; border-radius: 20px; padding: 14px 14px 14px 36px; } .gift-how li { padding: 6px 0; }

/* ── картинка ролика без сохранённой обложки: кадр из плеера соцсети (нажатие обрабатывает карточка) ── */
.vframe { position: absolute; inset: 0; display: block; overflow: hidden; background: #0b2f26; pointer-events: none; }
.vframe iframe { position: absolute; left: 50%; top: 50%; width: 101%; height: 101%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.vframe.instagram iframe { top: -54px; height: calc(100% + 190px); transform: translateX(-50%); }
.vbox { position: relative; display: block; overflow: hidden; } .vbox img { width: 100%; height: 100%; object-fit: cover; }
.gvideo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #0b2f26; color: #fff; }
.gvideo img { width: 100%; height: 100%; object-fit: cover; } .gvideo .vframe iframe { height: 237%; }
.gvideo .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 40, 32, .65); }

/* ── аккуратные фильтры: свёрнуты в одну кнопку; ленты чипов в одну строку ── */
.filter-box { margin: 4px 0 14px; }
.filter-box > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .92rem; cursor: pointer; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filter-box > summary::after { content: '▾'; color: var(--muted); } .filter-box[open] > summary::after { content: '▴'; }
.filter-box > summary b { background: var(--teal); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: .75rem; }
.filter-body { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; margin-top: 8px; box-shadow: var(--shadow); }
.filter-body small { display: block; color: var(--muted); font-weight: 600; margin: 2px 0 4px; } .filter-body .chip-row { flex-wrap: wrap; overflow: visible; }
.filter-body p { margin: 6px 0; }
.chip-row { flex-wrap: nowrap; scrollbar-width: none; } .chip-row::-webkit-scrollbar { display: none; }
.filter-body .chip-row { flex-wrap: wrap; }
.win > p { min-height: 2.9em; }

/* ── мелкие неровности ── */
.fab-add span { white-space: nowrap; }
.fab.mini .fab-add { width: 52px; padding: 0; justify-content: center; font-size: 1.5rem; } .fab.mini .fab-add span { display: none; }
.fab.mini .fab-wa { width: 42px; height: 42px; margin-right: 5px; }
.card.manager { flex-wrap: wrap; } .card.manager > div { flex: 1 1 140px; min-width: 0; } .card.manager .btn { flex: 0 0 auto; }
.vrow b { white-space: nowrap; } .vhead b { min-width: 0; }
.how-pay details summary { font-weight: 600; }

/* ── пока обложка не скачалась ── */
img.nocover { filter: saturate(.9); }
/* ── админка: обычные кнопки и плотная, спокойная раскладка ── */
body.admin .btn { min-height: 38px; padding: 8px 16px; border-radius: 10px; font-size: .9rem; font-weight: 600; box-shadow: none; }
body.admin .btn.gold-btn { box-shadow: none; }
body.admin .btn.big { min-height: 42px; padding: 10px 18px; font-size: .95rem; margin: 10px 0 0; width: auto; display: inline-block; }
body.admin .btn.small-btn { min-height: 32px; padding: 5px 10px; font-size: .82rem; border-radius: 9px; }
body.admin .filters { align-items: flex-end; margin: 8px 0; }
body.admin .filters label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
body.admin input:not([type=checkbox]), body.admin select { min-height: 38px; padding: 7px 12px; border-radius: 10px; font-size: .92rem; }
body.admin .filters select { width: auto; max-width: 100%; }
body.admin .stats { gap: 8px; margin: 10px 0; } body.admin .stat { padding: 10px 14px; border-radius: 14px; } body.admin .stat b { font-size: 1.25rem; }
body.admin .filter-box > summary { padding: 7px 14px; font-size: .86rem; box-shadow: none; }
body.admin .card { padding: 14px 16px; border-radius: 16px; }
body.admin h1 { font-size: 1.45rem; margin: .6rem 0 .5rem; }
body.admin .agrid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
body.admin .acard { padding: 7px; gap: 4px; border-radius: 14px; box-shadow: none; }
body.admin .acard .abtns { gap: 4px; flex-wrap: wrap; } body.admin .acard .abtns .btn { flex: 1 1 auto; }
body.admin .acard form.inline { display: contents; }
body.admin .acard select { min-height: 32px; padding: 3px 6px; font-size: .8rem; flex: 1 1 100%; }

/* ── окно просмотра: плеер не выезжает за край, кнопка «Смотреть в TikTok» всегда на виду ── */
.vmodal { box-sizing: border-box; overflow: hidden; display: none; }
.vmodal[open] { display: flex; flex-direction: column; gap: 8px; max-height: 96vh; }
.vmodal iframe { width: 100% !important; height: min(66vh, 600px) !important; margin: 0 !important; flex: 0 1 auto; }
.vmodal .vm-close { align-self: flex-end; }
.vmodal .vm-hint { margin: 0; font-size: .82rem; color: #55665f; }
.vmodal .vm-open { display: block; background: #05392e; color: #fff !important; border-radius: 999px; padding: 12px 16px; font-weight: 700; text-decoration: none; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.player.facade { position: relative; display: block; border: 0; padding: 0; cursor: pointer; width: 100%; color: #fff; }
.player.facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player.facade .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 40, 32, .65); font-size: 1.3rem; }
.slider .player { max-width: 300px; margin-left: auto; margin-right: auto; }
video.athumb { object-fit: contain; background: #000; }
.vupload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .vupload input[type=file] { flex: 1 1 240px; width: auto; } .vupload p { flex-basis: 100%; margin: 0; font-weight: 600; }
.pick-box > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

/* регистрация по шагам и бонус за количество видео */
.step-ic { display: block; font-size: 3.2rem; line-height: 1.1; margin-bottom: 8px; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.quiz.form legend { text-align: center; } .quiz.form .muted { text-align: center; }
.reg-bonus { display: grid; gap: 2px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #fff7dc; border: 1px solid #f0d98a; text-align: center; }
.reg-bonus small { color: #6b5a1e; }
.gift.vol { background: linear-gradient(135deg, #fff7dc, #ffffff); }

/* главная: ленты идей и форматов листаются вправо */
.fgrid.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; gap: 10px; scrollbar-width: none; }
.fgrid.strip .fcard { flex: 0 0 46%; max-width: 210px; scroll-snap-align: start; }
.wrap.wide .fgrid.strip { grid-template-columns: none; }
.itags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; } .itags span { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e8f3ee; color: #0b5a4a; }
.chip-row.years { margin-top: -2px; }

/* заработок на видео и цель дня */
.iearn { margin: 6px 0 0; font-size: .82rem; color: #0b5a4a; } .iearn b { color: #0b3d34; font-weight: 800; background: #fff1b8; padding: 1px 7px; border-radius: 999px; }
.gift.day .btn { margin-top: 8px; }

/* Окно «Добавить на экран телефона» и заработок на карточке видео */
.inst-pop { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: #fff; color: #10251f; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.35); padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; text-align: center; }
.inst-pop[hidden] { display: none; }
.inst-pop h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.inst-pop .lead-ic { font-size: 2.2rem; margin: 0; }
.inst-pop .lead-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.2rem; color: #6a7f78; }
.inst-steps { text-align: left; margin: 10px 0 14px; padding-left: 22px; line-height: 1.45; font-size: .95rem; }
.inst-pop .btn { display: block; margin: 8px 0; }
.vearn { margin: 4px 0 6px; font-weight: 800; color: #0a7a5c; font-size: 1.05rem; }
@media (min-width: 700px) { .inst-pop { left: auto; right: 24px; bottom: 24px; width: 380px; border-radius: 22px; padding: 22px; } }

/* окно «поделитесь входом с классом» */
.share-pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7, 35, 31, .72); }
.share-card { background: #fff; border-radius: 22px; padding: 22px 18px; width: min(94vw, 420px); max-height: 92vh; overflow: auto; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.share-card h2 { margin: 0 0 8px; } .share-box p { margin: 10px 0 4px; font-size: .85rem; color: var(--muted); }
.share-box .btn-row { margin: 14px 0 6px; justify-content: center; }
