/*
 * РОСАВТОГРАФ — премиальный слой: филигрань, гильош, золото.
 * Подключается после app.css и переопределяет его. Орнаменты — assets/orn/*.svg
 * (генерируются tools/ornaments.py, та же геометрия, что в приложении).
 */

:root {
  --gold-grad: linear-gradient(135deg, #f1d89a 0%, #d9b163 22%, #b3872f 52%, #8a6424 70%, #d9b163 88%, #f1d89a 100%);
  --gold-line: linear-gradient(90deg, transparent, rgba(179,135,47,.85) 18%, rgba(217,177,99,1) 50%, rgba(179,135,47,.85) 82%, transparent);
  --paper-2: #fffdf8;
  --shadow-card: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -26px rgba(40,28,8,.35);
}

/* ── Бумага с водяным знаком ─────────────────────────────────────────── */
body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(217,177,99,.10), transparent 70%),
    url(orn/watermark.svg) 0 0 / 320px 320px,
    var(--paper);
}
h1, h2, h3 { font-family: var(--font-serif); }

/* ── Шапка ───────────────────────────────────────────────────────────── */
.site-header { background: rgba(250,247,240,.86); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold-line); opacity: .55;
}
.brand { gap: 12px; letter-spacing: .08em; font-size: 16px; }
.brand-mark { width: 40px; height: 40px; background: url(orn/mark.svg) center / contain no-repeat; box-shadow: 0 6px 16px -6px rgba(90,62,12,.55); }
.brand-mark svg { display: none; }
.brand-name {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; text-transform: uppercase;
}
.site-footer .brand-name { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.nav .btn-ghost { font-family: var(--font-serif); font-weight: 600; letter-spacing: .02em; }
.nav .btn-ghost:hover { background: transparent; color: var(--gold); }
.nav .btn-ghost.is-active { color: var(--gold); }
.nav .btn-ghost.is-active::before {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

/* ── Кнопки: сусальное золото ────────────────────────────────────────── */
.btn { border-radius: 999px; letter-spacing: .02em; }
.btn:not(.btn-gold):not(.btn-ghost):not(.btn-outline):not(.btn-outline-light):not(.btn-danger):not(.btn-success) {
  background: linear-gradient(180deg, #232733, #12151c); color: #f5e7c4;
  border: 1px solid rgba(217,177,99,.55); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.btn-gold {
  background: var(--gold-grad); background-size: 200% 100%; background-position: 0 0;
  color: #2a1e07; border: 1px solid rgba(255,236,190,.65);
  text-shadow: 0 1px 0 rgba(255,240,200,.45);
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 -2px 0 rgba(120,82,18,.25) inset, 0 12px 26px -10px rgba(179,135,47,.7);
  transition: background-position .6s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-gold:hover { background-position: 100% 0; }
.btn-outline { background: rgba(255,253,248,.7); border-color: rgba(179,135,47,.45); color: #3a2c10; }
.btn-outline:hover { background: rgba(217,177,99,.12); }
.btn-outline-light { border-color: rgba(217,177,99,.5); color: #f5e7c4; }

/* ── Поля ввода ──────────────────────────────────────────────────────── */
.input, .textarea, select { background: var(--paper-2); border-color: #e2d6b8; border-radius: 10px; }
label.field > span { font-family: var(--font-serif); font-weight: 600; letter-spacing: .01em; }

/* ── Карточки: двойная рамка + уголки-завитки ────────────────────────── */
.card {
  background-color: var(--paper-2);
  background-image: url(orn/corner-tl.svg), url(orn/corner-tr.svg), url(orn/corner-bl.svg), url(orn/corner-br.svg);
  background-position: 7px 7px, calc(100% - 7px) 7px, 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px);
  background-size: 30px 30px; background-repeat: no-repeat;
  border: 1px solid rgba(179,135,47,.38);
  box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px rgba(179,135,47,.18), var(--shadow-card);
}
.card-accent::before { left: 50%; right: auto; width: 120px; transform: translateX(-50%); height: 2px; top: 0; background: var(--gold-grad); }
.card h3 { font-family: var(--font-serif); }
.card-hover:hover { border-color: rgba(179,135,47,.7); }

/* Карточки на тёмном фоне */
.hero .card, .security-band .card, .cta-band .card, .dark-card {
  background-color: rgba(23,26,34,.92); color: var(--paper-text);
  box-shadow: inset 0 0 0 4px rgba(23,26,34,.92), inset 0 0 0 5px rgba(217,177,99,.2), 0 20px 50px -30px #000;
}

/* ── Заголовки страниц кабинета/админки ─────────────────────────────── */
.dashboard > h1, .dashboard .page-title {
  font-size: 30px; margin: 0 0 4px;
  background: linear-gradient(180deg, #2a1f0c, #6b4d18); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dashboard > h1::after, .dashboard .page-title::after {
  content: ""; display: block; width: 180px; height: 18px; margin: 10px 0 6px;
  background: url(orn/divider-ink.svg) left center / contain no-repeat;
}

/* ── Секции главной ──────────────────────────────────────────────────── */
.section-head::before {
  content: ""; display: block; width: 150px; height: 28px; margin: 0 auto 14px;
  background: url(orn/flourish-ink.svg) center / contain no-repeat;
}
.security-band .section-head::before, .cta-band .section-head::before { background-image: url(orn/flourish-gold.svg); }
.section-head h2 { font-size: 34px; }
.section-kicker { letter-spacing: .28em; font-size: 11.5px; }
.process-step .num { background: url(orn/medal.svg) center / cover no-repeat; color: #f1d89a; font-size: 24px; width: 76px; height: 76px;
  text-shadow: 0 1px 2px #000; box-shadow: 0 12px 26px -10px rgba(90,62,12,.6); }
.process-step .num { position: relative; }

.process-grid::before { top: 31px; background: url(orn/band-ink.svg) center / 240px 16px repeat-x; height: 16px; opacity: .9; }

/* ── Hero: розетка-гильош, эмблема над названием ─────────────────────── */
.hero { background:
  radial-gradient(900px 480px at 50% 30%, rgba(217,177,99,.13), transparent 70%),
  radial-gradient(120% 140% at 15% -10%, #1c2130 0%, var(--ink) 45%, #08090c 100%); }
.hero::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; width: 1100px; height: 1100px;
  transform: translate(-50%, -52%); background: url(orn/rosette-gold.svg) center / contain no-repeat; opacity: .16;
  animation: rosette-spin 240s linear infinite;
}
@keyframes rosette-spin { to { transform: translate(-50%, -52%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .rosette { display: none; }
.hero-emblem {
  display: block; width: 132px; height: 132px; margin: 0 auto 22px;
  background: url(orn/emblem.svg) center / contain no-repeat;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(217,177,99,.22));
}
.hero-divider { display: block; width: 260px; height: 24px; margin: 18px auto 0; background: url(orn/divider-gold.svg) center / contain no-repeat; }
.hero-eyebrow { font-family: var(--font-serif); letter-spacing: .32em; font-size: 11.5px; }
.hero .band-edge, .security-band::after, .cta-band::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 16px; background: url(orn/band-gold.svg) 0 0 / 240px 16px repeat-x; opacity: .55; pointer-events: none;
}
.hero .band-edge { bottom: 14px; z-index: 2; }
.security-band::after, .cta-band::after { bottom: 14px; }
.security-band::before, .cta-band::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -260px;
  background: url(orn/rosette-gold.svg) center / contain no-repeat; opacity: .10; pointer-events: none;
}
.security-icon { border-color: rgba(217,177,99,.55); background: radial-gradient(circle at 50% 35%, rgba(217,177,99,.18), rgba(217,177,99,.04)); box-shadow: inset 0 0 0 3px rgba(13,15,20,.9), inset 0 0 0 4px rgba(217,177,99,.25); }

/* ── Таблицы: ведомость с золотой шапкой ─────────────────────────────── */
.table-wrap { border: 1px solid rgba(179,135,47,.4); border-radius: 14px; background: var(--paper-2);
  box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px rgba(179,135,47,.15), var(--shadow-card); }
table.table th { background: linear-gradient(180deg, #1b1e27, #12151c); color: #e9cf92; font-family: var(--font-serif);
  font-weight: 600; letter-spacing: .06em; font-size: 12.5px; text-transform: uppercase; border-bottom: 1px solid rgba(217,177,99,.5); }
table.table tr:hover td { background: rgba(217,177,99,.06); }
table.table td { border-top-color: #efe6d2; }

/* ── Бейджи ──────────────────────────────────────────────────────────── */
.badge { border: 1px solid transparent; letter-spacing: .02em; }
.badge-gold { border-color: rgba(179,135,47,.4); background: rgba(217,177,99,.14); color: #7a5716; }
.badge-green { border-color: rgba(4,120,87,.25); }
.badge-amber { border-color: rgba(180,83,9,.25); }
.badge-red { border-color: rgba(185,28,28,.2); }

/* ── Вход/регистрация: грамота ───────────────────────────────────────── */
.auth-wrap .card { padding: 34px 30px; background-size: 44px 44px; background-position: 9px 9px, calc(100% - 9px) 9px, 9px calc(100% - 9px), calc(100% - 9px) calc(100% - 9px);
  box-shadow: inset 0 0 0 6px var(--paper-2), inset 0 0 0 7px rgba(179,135,47,.3), inset 0 0 0 9px var(--paper-2), inset 0 0 0 10px rgba(179,135,47,.14), 0 30px 60px -34px rgba(40,28,8,.5); }
.auth-wrap .card h3 { text-align: center; font-size: 24px; }
.auth-wrap .card h3::after { content: ""; display: block; width: 180px; height: 18px; margin: 8px auto 0; background: url(orn/divider-ink.svg) center / contain no-repeat; }
.auth-emblem { display: block; width: 92px; height: 92px; margin: 0 auto 8px; background: url(orn/mark.svg) center / contain no-repeat; filter: drop-shadow(0 10px 20px rgba(60,40,8,.35)); }

/* ── Подвал ──────────────────────────────────────────────────────────── */
.site-footer { background: radial-gradient(800px 400px at 80% 0%, rgba(217,177,99,.08), transparent 70%), linear-gradient(180deg, #111319, #08090c); }
.site-footer::before { top: 0; opacity: .7; }
.site-footer::after {
  content: ""; position: absolute; width: 640px; height: 640px; left: -240px; bottom: -300px;
  background: url(orn/rosette-gold.svg) center / contain no-repeat; opacity: .08; pointer-events: none;
}
.site-footer .brand-mark { width: 52px; height: 52px; }
.footer-grid h4 { font-family: var(--font-serif); letter-spacing: .2em; }
.footer-grid h4::after { content: ""; display: block; width: 90px; height: 12px; margin-top: 8px; background: url(orn/divider-gold.svg) left center / contain no-repeat; }
.trust-row { border-top: none; background: url(orn/divider-gold.svg) center top / 240px 24px no-repeat; padding-top: 38px; justify-content: center; }
.copyright { text-align: center; border-top-color: rgba(217,177,99,.18); font-family: var(--font-serif); letter-spacing: .04em; }

/* ── Орнаментальные утилиты ──────────────────────────────────────────── */
.orn-divider { display: block; width: 220px; height: 22px; margin: 18px auto; background: url(orn/divider-ink.svg) center / contain no-repeat; }
.orn-divider.light { background-image: url(orn/divider-gold.svg); }
.orn-emblem { display: inline-block; width: 64px; height: 64px; background: url(orn/mark.svg) center / contain no-repeat; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Уведомления */
.notif-menu { border-color: rgba(179,135,47,.35); background: var(--paper-2); }

@media (max-width: 640px) {
  .hero-emblem { width: 104px; height: 104px; }
  .hero::before { width: 760px; height: 760px; }
  .section-head h2 { font-size: 26px; }
}
@media print {
  body { background: #fff; }
  .card { box-shadow: none; }
}
.motif-feather { display: none; }

/* ── Изумруд: глубокий зелёный в тёмных секциях (как на банкнотах и бланках) ── */
:root { --emerald-ink: #06251d; --emerald-deep: #0b3a2d; --emerald-glow: rgba(20,120,90,.30); }
.hero { background:
  radial-gradient(900px 480px at 50% 30%, rgba(217,177,99,.12), transparent 70%),
  radial-gradient(700px 520px at 85% 110%, var(--emerald-glow), transparent 70%),
  radial-gradient(120% 140% at 15% -10%, #0f3b2f 0%, #0a1f19 42%, #060b09 100%); }
.hero::after { background: radial-gradient(60% 60% at 50% 20%, transparent 0%, rgba(4,12,9,.35) 70%, rgba(4,10,8,.75) 100%); }
.security-band { background: radial-gradient(900px 500px at 10% 0%, var(--emerald-glow), transparent 70%), linear-gradient(180deg, #082a21, #061a15 60%, #050d0b); }
.cta-band { background: radial-gradient(700px 400px at 50% 100%, rgba(217,177,99,.10), transparent 70%), linear-gradient(135deg, #0b3a2d, #072219 55%, #050d0b); }
.site-footer { background: radial-gradient(800px 400px at 80% 0%, rgba(217,177,99,.07), transparent 70%), radial-gradient(700px 500px at 0% 100%, var(--emerald-glow), transparent 70%), linear-gradient(180deg, #072219, #040a08); }
.btn:not(.btn-gold):not(.btn-ghost):not(.btn-outline):not(.btn-outline-light):not(.btn-danger):not(.btn-success) {
  background: linear-gradient(180deg, #0f4a3a, #072a21);
}
table.table th { background: linear-gradient(180deg, #0f4a3a, #072a21); }
.search-glass { background: rgba(6,37,29,.45); border-color: rgba(217,177,99,.3); }
.pill { background: rgba(6,37,29,.4); }
.security-icon { box-shadow: inset 0 0 0 3px rgba(6,26,21,.9), inset 0 0 0 4px rgba(217,177,99,.25); }
.brand-mark { border-radius: 999px; }

/* ── Админка: вкладки и статистика ───────────────────────────────────── */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin: 6px 0 28px; border-radius: 999px;
  background: linear-gradient(180deg, #0f4a3a, #072a21); border: 1px solid rgba(217,177,99,.45); box-shadow: 0 14px 30px -20px rgba(6,37,29,.7); }
.admin-tabs a { padding: 7px 14px; border-radius: 999px; color: #e9d7a8; font-family: var(--font-serif); font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
.admin-tabs a:hover { background: rgba(217,177,99,.12); color: #fff3d0; }
.admin-tabs a.on { background: var(--gold-grad); color: #2a1e07; box-shadow: 0 6px 14px -6px rgba(179,135,47,.8); }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #c0392b; color: #fff; font-size: 11px; font-family: var(--font-sans); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { position: relative; padding: 18px 18px 16px; border-radius: 16px; background: var(--paper-2);
  border: 1px solid rgba(179,135,47,.38); box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px rgba(179,135,47,.16), var(--shadow-card); }
.kpi::before { content: ""; position: absolute; left: 50%; top: -1px; width: 60px; height: 2px; transform: translateX(-50%); background: var(--gold-grad); }
.kpi-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7a6a45; font-weight: 600; }
.kpi-value { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: #0b3a2d; line-height: 1.15; margin-top: 6px; }
.kpi-sub { font-size: 12.5px; color: var(--muted-fg); margin-top: 4px; }
.kpi-sub a { color: var(--gold); }
.kpi-hero { grid-column: span 1; background:
  url(orn/corner-tl.svg) 7px 7px / 26px no-repeat, url(orn/corner-br.svg) calc(100% - 7px) calc(100% - 7px) / 26px no-repeat,
  radial-gradient(300px 140px at 80% 0%, rgba(217,177,99,.25), transparent 70%), linear-gradient(160deg, #0f4a3a, #062a21);
  border-color: rgba(217,177,99,.6); box-shadow: inset 0 0 0 4px #0b3a2d, inset 0 0 0 5px rgba(217,177,99,.3), 0 20px 40px -24px rgba(6,37,29,.8); }
.kpi-hero .kpi-label { color: #d9c08a; }
.kpi-hero .kpi-value { font-size: 34px; }
.kpi-hero .kpi-sub { color: rgba(245,231,196,.72); }

.stat-card { margin-bottom: 18px; padding: 22px 24px; }
.stat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.stat-head h3 { margin: 0; font-size: 19px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-grid .stat-card { margin-bottom: 18px; }
.chart { width: 100%; height: auto; display: block; }
.chart .ax { font: 11px var(--font-sans); fill: #8a7c5c; }
.chart .ax.gold { fill: #9a7428; }
.chart .big { font: 700 34px var(--font-serif); fill: #0b3a2d; }
.chart.spark { height: 70px; margin: 6px 0 12px; }
.legend { font-size: 12.5px; color: var(--muted-fg); display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 10px; }
.lg-em { background: linear-gradient(180deg, #1c7a5c, #0b3a2d); }
.lg-gold { height: 3px; background: var(--gold-grad); }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.mini td { padding: 8px 4px; border-bottom: 1px solid #efe6d2; }
table.mini .r { text-align: right; white-space: nowrap; }
table.mini .gold { color: #8a6424; font-family: var(--font-serif); font-weight: 700; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 8px; border: 1px solid rgba(179,135,47,.6); }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; margin-bottom: 11px; }
.funnel-label { font-size: 13px; color: #4a4030; }
.funnel-bar { height: 14px; border-radius: 999px; background: #efe6d2; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(179,135,47,.2); }
.funnel-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0b3a2d, #1c7a5c 60%, #d9b163); }
.funnel-num { font-family: var(--font-serif); font-weight: 700; color: #0b3a2d; text-align: right; }
.funnel-num em { font-style: normal; font-family: var(--font-sans); font-weight: 500; font-size: 11.5px; color: var(--muted-fg); }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #efe6d2; text-align: center; }
.split b { display: block; font-family: var(--font-serif); font-size: 22px; color: #0b3a2d; }
.split span { font-size: 11.5px; color: var(--muted-fg); letter-spacing: .04em; }
.roles { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted-fg); }
.roles b { color: #0b3a2d; }
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid, .donut-wrap { grid-template-columns: 1fr; }
}
.kpi-hero .kpi-value { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.admin-tabs { border-radius: 22px; }
.admin-tabs a { padding: 6px 11px; font-size: 13px; }

/* ── Страница приложения ─────────────────────────────────────────────── */
.app-hero .container { padding-bottom: 96px; }
.app-title { font-size: 52px; line-height: 1.08; margin: 12px auto 0; color: #fff; letter-spacing: .04em; }
.app-title em { font-style: italic; letter-spacing: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.app-meta { color: rgba(245,231,196,.6); font-size: 13px; margin-top: 12px; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 26px; margin-top: 56px; perspective: 1400px; }
.phone { margin: 0; width: 210px; transition: transform .5s ease; }
.phone-body { position: relative; border-radius: 34px; padding: 9px; background: linear-gradient(145deg, #2a2f36, #0c0e11 60%, #1d2127);
  box-shadow: 0 0 0 1.5px rgba(217,177,99,.55), 0 0 0 5px #0c0e11, 0 0 0 6px rgba(217,177,99,.25), 0 40px 70px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(217,177,99,.25); }
.phone-body img { display: block; width: 100%; border-radius: 26px; }
.phone figcaption { margin-top: 16px; font-family: var(--font-serif); color: #e9d7a8; font-size: 14px; letter-spacing: .04em; }
.phone-0 { transform: rotateY(18deg) translateY(26px); }
.phone-1 { transform: translateY(-6px); width: 230px; }
.phone-2 { transform: translateY(-6px); width: 230px; }
.phone-3 { transform: rotateY(-18deg) translateY(26px); }
.phone:hover { transform: translateY(-14px) scale(1.03); }
.app-features .card h3 { font-size: 18px; }
.install-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.install-steps { counter-reset: st; list-style: none; padding: 0; margin: 0; }
.install-steps li { counter-increment: st; position: relative; padding: 0 0 20px 64px; color: rgba(245,231,196,.78); line-height: 1.55; }
.install-steps li b { color: #fff; font-family: var(--font-serif); }
.install-steps li::before { content: counter(st); position: absolute; left: 0; top: -6px; width: 44px; height: 44px; display: grid; place-items: center;
  background: url(orn/medal.svg) center / contain no-repeat; color: #f1d89a; font-family: var(--font-serif); font-weight: 700; }
.install-qr { text-align: center; }
.qr-frame { display: inline-block; padding: 14px; background: #faf6ea; border-radius: 14px; border: 1px solid rgba(217,177,99,.7);
  box-shadow: inset 0 0 0 5px #faf6ea, inset 0 0 0 6px rgba(11,58,45,.5), 0 20px 40px -20px #000; }
.qr-frame img { display: block; width: 190px; height: 190px; }
.sha { margin-top: 8px; font-size: 11px; color: rgba(245,231,196,.45); font-family: ui-monospace, monospace; }
@media (max-width: 900px) {
  .phones { flex-wrap: wrap; gap: 18px; }
  .phone, .phone-1, .phone-2 { width: 44%; transform: none !important; }
  .install-grid { grid-template-columns: 1fr; }
  .app-title { font-size: 36px; }
}

/* ── Чат (как в приложении): Telegram-раскладка, перья на фоне ──────── */
.chat-page { max-width: 900px; }
.tg { margin-top: 18px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: min(78vh, 820px);
  border: 1px solid rgba(217,177,99,.55); background: #0b0d12;
  box-shadow: 0 0 0 5px var(--paper-2), 0 0 0 6px rgba(179,135,47,.25), 0 30px 60px -30px rgba(6,37,29,.7); }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: linear-gradient(180deg, #171a22, #111319); border-bottom: 1px solid rgba(217,177,99,.35); position: relative; }
.tg-head::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px; background: var(--gold-line); }
.tg-avatar { width: 44px; height: 44px; border-radius: 999px; flex: none; display: grid; place-items: center; color: #f1d89a; font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  background: url(orn/mark.svg) center / contain no-repeat; }
.tg-avatar:not(:empty) { background: url(orn/medal.svg) center / contain no-repeat; }
.tg-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tg-title b { font-family: var(--font-serif); letter-spacing: .08em; font-size: 16px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tg-title span { font-size: 12.5px; color: rgba(245,231,196,.6); font-family: var(--font-serif); }
.tg-live { font-size: 11.5px; color: #3fb68b; }
.tg-live.off { color: #c0392b; }
.tg-body { flex: 1; overflow-y: auto; padding: 14px 14px 8px; position: relative;
  background: url(orn/chat-tile.svg) 0 0 / 236px 236px, radial-gradient(700px 400px at 90% 0%, rgba(217,177,99,.08), transparent 70%), linear-gradient(180deg, #12151c, #0b0d12); }
.tg-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: rgba(245,231,196,.7); padding: 24px; }
.tg-empty[hidden] { display: none; }
.tg-empty b { color: #f5e7c4; font-family: var(--font-serif); font-size: 18px; }
.tg-day { text-align: center; margin: 10px 0; }
.tg-day span { display: inline-block; padding: 4px 11px; border-radius: 12px; background: rgba(11,13,17,.72); color: #f5e7c4; font-size: 12.5px; font-weight: 500; }
.tg-msg { display: flex; margin-top: 2px; }
.tg-msg.first { margin-top: 8px; }
.tg-msg.out { justify-content: flex-end; }
.tg-bubble { max-width: min(460px, 78%); padding: 7px 11px 5px; border-radius: 18px; position: relative; font-size: 14.5px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0,0,0,.25); }
.tg-msg.in .tg-bubble { background: #232731; color: #f5efe0; border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.tg-msg.out .tg-bubble { background: linear-gradient(180deg, #5f481b, #544017); color: #f8efd9; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.tg-msg.in.first .tg-bubble { border-top-left-radius: 18px; }
.tg-msg.out.first .tg-bubble { border-top-right-radius: 18px; }
.tg-msg.in.last .tg-bubble { border-bottom-left-radius: 4px; }
.tg-msg.out.last .tg-bubble { border-bottom-right-radius: 4px; }
.tg-msg.in.last .tg-bubble::before, .tg-msg.out.last .tg-bubble::before { content: ""; position: absolute; bottom: 0; width: 10px; height: 14px; }
.tg-msg.in.last .tg-bubble::before { left: -6px; background: radial-gradient(circle at 0 0, transparent 9px, #232731 10px); }
.tg-msg.out.last .tg-bubble::before { right: -6px; background: radial-gradient(circle at 100% 0, transparent 9px, #544017 10px); }
.tg-author { color: #d9b163; font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.tg-reftag { color: #d9b163; font-size: 12px; margin-bottom: 3px; opacity: .9; }
.tg-text { white-space: normal; word-wrap: break-word; }
.tg-meta { text-align: right; font-size: 11px; margin-top: 2px; color: rgba(245,231,196,.55); }
.tg-msg.out .tg-meta { color: rgba(241,216,154,.75); }
.tg-tick.read { color: #f1d89a; }
.tg-photo { display: block; margin: -3px -7px 6px; }
.tg-photo img { display: block; width: 100%; max-width: 360px; max-height: 360px; object-fit: cover; border-radius: 14px; background: rgba(0,0,0,.25); }
.tg-file { display: flex; gap: 10px; align-items: center; color: inherit; padding: 4px 0 6px; }
.tg-file-ic { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; flex: none; background: var(--gold-grad); color: #2a1e07; font-weight: 700; }
.tg-file b { display: block; font-size: 14px; word-break: break-all; }
.tg-file small { color: rgba(241,216,154,.75); font-size: 12px; }
.tg-input { background: linear-gradient(180deg, #171a22, #111319); border-top: 1px solid rgba(217,177,99,.3); padding: 8px 10px 10px; }
.tg-err { color: #ff8a7a; font-size: 13px; padding: 2px 8px 6px; }
.tg-ref { padding: 0 8px 6px; }
.tg-ref label { font-size: 12.5px; color: #d9b163; display: flex; align-items: center; gap: 8px; }
.tg-ref select { width: auto; max-width: 100%; background: #0e1016; color: #f5e7c4; border: 1px solid rgba(217,177,99,.35); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; }
.tg-pending { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; color: #f5e7c4; font-size: 13px; }
.tg-pending[hidden] { display: none; }
.tg-pending-thumb { width: 42px; height: 42px; border-radius: 8px; background: #232731 center / cover no-repeat; display: grid; place-items: center; color: #d9b163; border: 1px solid rgba(217,177,99,.4); }
.tg-pending-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-x { background: none; border: none; color: #d9b163; font-size: 22px; cursor: pointer; }
.tg-row { display: flex; align-items: flex-end; gap: 6px; }
.tg-clip { width: 42px; height: 42px; display: grid; place-items: center; color: rgba(245,231,196,.65); cursor: pointer; border-radius: 999px; flex: none; }
.tg-clip:hover { color: #f1d89a; background: rgba(217,177,99,.1); }
.tg-clip svg { width: 22px; height: 22px; transform: rotate(45deg); }
.tg-row textarea { flex: 1; resize: none; background: transparent; border: none; color: #f5efe0; font: 15px var(--font-sans); padding: 10px 6px; outline: none; max-height: 160px; }
.tg-row textarea::placeholder { color: rgba(245,231,196,.4); }
.tg-send { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,236,190,.6); flex: none; cursor: pointer; display: grid; place-items: center; color: #2a1e07; background: var(--gold-grad);
  box-shadow: 0 8px 18px -8px rgba(179,135,47,.8); }
.tg-send svg { width: 20px; height: 20px; }
.tg-send:disabled { opacity: .5; cursor: wait; }
.tg-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4,6,8,.92); display: grid; place-items: center; padding: 24px; }
.tg-lightbox[hidden] { display: none; }
.tg-lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 0 0 1px rgba(217,177,99,.5); }
.tg-lightbox button { position: absolute; top: 16px; right: 22px; background: none; border: none; color: #f1d89a; font-size: 36px; cursor: pointer; }
@media (max-width: 640px) { .tg { height: 74vh; border-radius: 14px; } .tg-bubble { max-width: 86%; } }
.tg-photo img { width: min(320px, 62vw); height: auto; }
.tg-bubble:has(.tg-photo) { padding-top: 10px; }
.content-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -10px 0 18px; }
.content-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(179,135,47,.45); font-family: var(--font-serif); font-size: 13.5px; color: #5b4a26; background: var(--paper-2); }
.content-tabs a.on { background: var(--gold-grad); color: #2a1e07; border-color: transparent; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.content-grid .wide { grid-column: span 1; }
@media (max-width: 760px) { .content-grid { grid-template-columns: 1fr; } }

/* ── Покупаем ────────────────────────────────────────────────────────── */
.buy-hero .container { padding-bottom: 90px; }
.buy-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; margin-bottom: 12px; color: #0b4a38;
  background: radial-gradient(circle at 50% 35%, rgba(217,177,99,.28), rgba(217,177,99,.06)); box-shadow: inset 0 0 0 1px rgba(179,135,47,.55), inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px rgba(11,58,45,.25); }
.buy-ic svg { width: 24px; height: 24px; }
.buy-cats .card h3 { font-size: 18px; }
.offer-form, .offer-done { max-width: 760px; margin: 0 auto; padding: 30px; position: relative; z-index: 1; }
.offer-form label.field > span, .offer-form .field > span { color: #e9d7a8; display: block; font-family: var(--font-serif); font-weight: 600; margin-bottom: 6px; }
.offer-form .input, .offer-form .textarea, .offer-form select { background: rgba(6,20,16,.6); color: #f5efe0; border-color: rgba(217,177,99,.35); }
.offer-form .input::placeholder, .offer-form .textarea::placeholder { color: rgba(245,231,196,.35); }
.offer-form .img-cell img { border-color: rgba(217,177,99,.5); }
.offer-done { text-align: center; }
.offer-done h3 { color: #f5e7c4; font-size: 22px; }
.offer-done p { color: rgba(245,231,196,.75); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(245,231,196,.72); margin: 6px 0 18px; }
.consent a { color: #d9b163; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ── Телефон: админка, кабинет, таблицы ──────────────────────────────── */
@media (max-width: 700px) {
  .dashboard { padding: 22px 12px; }
  .dashboard > h1, .dashboard .page-title { font-size: 24px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; border-radius: 999px; scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tabs a { white-space: nowrap; }
  .content-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .content-tabs a { white-space: nowrap; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 12px 11px; min-width: 0; }
  .kpi-label { font-size: 10px; letter-spacing: .08em; }
  .kpi-value, .kpi-hero .kpi-value { font-size: 23px; }
  .kpi-sub { font-size: 11.5px; }
  .kpi-hero { grid-column: span 2; }
  .stat-card { padding: 16px 14px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.table { min-width: 600px; }
  .grid-2, .grid-3, .content-grid { grid-template-columns: 1fr !important; }
  .funnel-row { grid-template-columns: 110px 1fr 70px; }
  .card { padding: 18px 16px; }
  .chat-page .tg { height: calc(100vh - 150px); }
}
/* в приложении администратора: навигация нативная снизу */
.in-admin-app .admin-tabs, .in-admin-app .dashboard > .page-title:first-child { display: none; }
.in-admin-app .chat-page .tg { height: calc(100vh - 90px); margin-top: 6px; }
/* body — flex-колонка: с margin:auto блок иначе сжимается «по содержимому» и растягивается таблицами */
main.dashboard, .dashboard, .doc-stage, .auth-wrap { width: 100%; box-sizing: border-box; min-width: 0; }
/* шапка — только меню, по центру */
.site-header .container { justify-content: center; }
.site-header .nav { justify-content: center; }
/* меню в одну строку на компьютере: плотнее пункты, без бейджа роли */
.site-header .container { max-width: 1320px; }
.site-header .nav { gap: 2px; }
.site-header .nav .btn-sm { padding: 0 10px; }
.site-header .nav > .badge { display: none; }
@media (min-width: 1000px) { .site-header .nav { flex-wrap: nowrap; white-space: nowrap; } }

/* ── Телефон: таблицы превращаются в карточки, без горизонтальной прокрутки ── */
@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .table-wrap { overflow: visible; border: none; background: transparent; box-shadow: none !important; }
  table.table.stackable { min-width: 0 !important; width: 100%; border-collapse: separate; }
  table.table.stackable thead { display: none; }
  table.table.stackable, table.table.stackable tbody { display: block; }
  table.table.stackable tr { display: block; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--paper-2);
    border: 1px solid rgba(179,135,47,.38); box-shadow: inset 0 0 0 3px var(--paper-2), inset 0 0 0 4px rgba(179,135,47,.14), var(--shadow-card); }
  table.table.stackable tr:hover td { background: transparent; }
  table.table.stackable td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0;
    border-top: 1px solid #efe6d2; text-align: right; word-break: break-word; min-width: 0; }
  table.table.stackable td:first-child { border-top: none; display: block; text-align: left; font-size: 15px; padding-top: 2px; }
  table.table.stackable td[data-label]:not(:first-child)::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left;
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a7c5c; font-family: var(--font-serif); }
  table.table.stackable td:empty { display: none; }
  table.table.stackable td > * { max-width: 100%; }
  table.table.stackable td form { justify-content: flex-end; flex-wrap: wrap; }
  table.table.stackable td select { max-width: 60vw; }
  table.table.stackable td[colspan] { display: block; text-align: center; border: none; }
  .img-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Образцы документов ─────────────────────────────────────────────── */
.samples-grid { display: grid; grid-template-columns: 1.42fr 1fr; gap: 34px; align-items: start; }
.sample { margin: 0; }
.sample-img { display: block; border-radius: 6px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 30px 60px -28px rgba(6,37,29,.55), 0 10px 20px -12px rgba(40,28,8,.35); }
.sample-img:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 40px 70px -28px rgba(6,37,29,.6), 0 14px 24px -12px rgba(40,28,8,.4); }
.sample-img img { display: block; width: 100%; height: auto; }
.sample figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.sample figcaption b { font-family: var(--font-serif); font-size: 19px; color: #0b3a2d; }
.sample figcaption span { color: var(--muted-fg); font-size: 14px; line-height: 1.55; }
.sample figcaption .btn { align-self: flex-start; margin-top: 6px; }
.samples-note { text-align: center; color: var(--muted-fg); font-size: 13px; margin-top: 26px; }
.samples-home { padding-top: 40px; }
@media (max-width: 800px) { .samples-grid { grid-template-columns: 1fr; } }

/* ── Редактор документов ─────────────────────────────────────────────── */
.doc-editor { max-width: 1360px; }
.doc-grid { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 22px; align-items: start; }
.doc-form h3 { font-size: 16px; margin: 4px 0 4px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pick { position: relative; display: block; cursor: pointer; border-radius: 10px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(179,135,47,.35); transition: border-color .15s, transform .15s; }
.pick:hover img { transform: translateY(-2px); }
.pick input:checked + img { border-color: #b3872f; box-shadow: 0 0 0 3px rgba(217,177,99,.35); }
.pick input:checked + img::after { content: ""; }
.pick-multi input:checked + img { border-color: #0b4a38; box-shadow: 0 0 0 3px rgba(11,74,56,.25); }
.doc-actions-bar { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--paper-2); padding: 12px 0 2px; }
.doc-preview { position: sticky; top: 84px; }
.doc-preview-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.doc-preview iframe { width: 100%; height: 640px; border: 1px solid rgba(179,135,47,.4); border-radius: 12px; background: #e9e3d3; }
@media (max-width: 1000px) { .doc-grid { grid-template-columns: 1fr; } .doc-preview { position: static; } }

/* ══ Админка: тёмно-зелёная тема (body.admin-dark) ══════════════════════ */
body.admin-dark {
  --bg: #0b2a21; --fg: #efe6cf; --muted: rgba(217,177,99,.10); --muted-fg: #a9b8ae; --border: rgba(217,177,99,.24);
  --paper-2: #0f3328;
  color: var(--fg);
  background: radial-gradient(1100px 600px at 80% -10%, rgba(217,177,99,.10), transparent 70%),
              radial-gradient(900px 700px at 0% 100%, rgba(20,120,90,.22), transparent 70%),
              linear-gradient(180deg, #0b3026 0%, #082219 55%, #06180f 100%) fixed;
}
body.admin-dark .site-header { background: rgba(7,32,25,.88); }
body.admin-dark .site-header.is-scrolled { background: rgba(7,32,25,.96); }
body.admin-dark .nav .btn-ghost { color: #e9dcb8; }
body.admin-dark .nav .btn-ghost:hover { color: #f1d89a; }
body.admin-dark h1, body.admin-dark h2, body.admin-dark h3, body.admin-dark h4 { color: #f3e6c4; }
body.admin-dark .dashboard > h1, body.admin-dark .dashboard .page-title { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.admin-dark .dashboard > h1::after, body.admin-dark .dashboard .page-title::after { background-image: url(orn/divider-gold.svg); }
body.admin-dark a { color: inherit; }
body.admin-dark .muted, body.admin-dark .help { color: var(--muted-fg); }
body.admin-dark .card, body.admin-dark .kpi {
  background-color: #0f3328; color: var(--fg);
  border-color: rgba(217,177,99,.35);
  box-shadow: inset 0 0 0 4px #0f3328, inset 0 0 0 5px rgba(217,177,99,.14), 0 20px 40px -26px rgba(0,0,0,.6);
}
body.admin-dark .kpi-label { color: #c9b27c; }
body.admin-dark .kpi-value, body.admin-dark .split b, body.admin-dark .funnel-num, body.admin-dark .roles b { color: #f3e6c4; }
body.admin-dark .chart .big { fill: #f3e6c4; }
body.admin-dark .chart .ax { fill: #9fb3a8; }
body.admin-dark .chart line { stroke: rgba(217,177,99,.18); }
body.admin-dark .funnel-bar { background: rgba(255,255,255,.07); }
body.admin-dark .funnel-label { color: #d8cfb8; }
body.admin-dark .split, body.admin-dark table.mini td { border-color: rgba(217,177,99,.16); }
body.admin-dark .table-wrap { background: #0f3328; border-color: rgba(217,177,99,.35); box-shadow: inset 0 0 0 4px #0f3328, inset 0 0 0 5px rgba(217,177,99,.12); }
body.admin-dark table.table td { border-top-color: rgba(217,177,99,.14); color: var(--fg); }
body.admin-dark table.table th { background: linear-gradient(180deg, #0a2a21, #071f18); }
body.admin-dark table.table tr:hover td { background: rgba(217,177,99,.06); }
body.admin-dark .input, body.admin-dark .textarea, body.admin-dark select {
  background: #0a261e; color: #f3eada; border-color: rgba(217,177,99,.3);
}
body.admin-dark .input::placeholder, body.admin-dark .textarea::placeholder { color: rgba(239,230,207,.38); }
body.admin-dark label.field > span { color: #e3cf9b; }
body.admin-dark .btn-outline { background: transparent; color: #f1d89a; border-color: rgba(217,177,99,.5); }
body.admin-dark .btn-outline:hover { background: rgba(217,177,99,.10); }
body.admin-dark .btn-ghost { color: #e9dcb8; }
body.admin-dark .btn-danger { background: rgba(192,57,43,.18); color: #ff9d8f; border: 1px solid rgba(255,120,100,.35); }
body.admin-dark .badge-muted { background: rgba(255,255,255,.08); color: #c9d2cb; }
body.admin-dark .badge-gold { background: rgba(217,177,99,.16); color: #f1d89a; border-color: rgba(217,177,99,.4); }
body.admin-dark .badge-green { background: rgba(63,182,139,.16); color: #7fe0b8; border-color: rgba(63,182,139,.35); }
body.admin-dark .badge-amber { background: rgba(224,166,70,.16); color: #f3c66f; border-color: rgba(224,166,70,.35); }
body.admin-dark .badge-red { background: rgba(224,90,75,.16); color: #ff9d8f; border-color: rgba(224,90,75,.35); }
body.admin-dark .alert-success { background: rgba(63,182,139,.14); color: #8ee6c2; }
body.admin-dark .alert-error { background: rgba(224,90,75,.14); color: #ffab9f; }
body.admin-dark .alert-info { background: rgba(217,177,99,.10); color: #efe0b8; }
body.admin-dark .content-tabs a { background: #0f3328; color: #e3cf9b; border-color: rgba(217,177,99,.35); }
body.admin-dark .content-tabs a.on { background: var(--gold-grad); color: #2a1e07; }
body.admin-dark .notif-menu { background: #0f3328; border-color: rgba(217,177,99,.35); }
body.admin-dark .notif-item:hover { background: rgba(217,177,99,.08); }
body.admin-dark .notif-item.unread { background: rgba(217,177,99,.12); }
body.admin-dark .doc-actions-bar { background: #0f3328; }
body.admin-dark .doc-preview iframe { background: #0a261e; border-color: rgba(217,177,99,.35); }
body.admin-dark .pick img { box-shadow: 0 0 0 1px rgba(217,177,99,.3); }
body.admin-dark .danger-zone { border-color: rgba(224,90,75,.35) !important; }
body.admin-dark .site-footer { background: linear-gradient(180deg, #06180f, #040e09); }
body.admin-dark .tg { box-shadow: 0 0 0 5px #0f3328, 0 0 0 6px rgba(217,177,99,.25), 0 30px 60px -30px rgba(0,0,0,.7); }
body.admin-dark .pager a, body.admin-dark .pager span { color: #e3cf9b; }
@media (max-width: 700px) {
  body.admin-dark table.table.stackable tr { background: #0f3328; border-color: rgba(217,177,99,.35); box-shadow: inset 0 0 0 3px #0f3328, inset 0 0 0 4px rgba(217,177,99,.12); }
  body.admin-dark table.table.stackable td { border-top-color: rgba(217,177,99,.14); }
  body.admin-dark table.table.stackable td[data-label]:not(:first-child)::before { color: #c9b27c; }
}

/* пагинация (для всех тем) */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 6px; }
.pager a, .pager span { min-width: 38px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid rgba(179,135,47,.4); font-family: var(--font-serif); font-size: 14px; }
.pager span { border: none; }
.pager a.on { background: var(--gold-grad); color: #2a1e07; border-color: transparent; }
.consent-light { display: flex; gap: 8px; align-items: center; margin: -4px 0 14px; font-size: 14px; }
body.admin-dark .dashboard { max-width: 1360px; }
.badge { white-space: nowrap; }
@media (min-width: 701px) { .table-wrap { overflow-x: auto; } table.table td .btn-sm { white-space: nowrap; } }
.registry-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.registry-filter .input { flex: 1 1 260px; width: auto; }
.registry-filter select { width: auto; }
.reg-num { font-family: var(--font-serif); letter-spacing: .06em; white-space: nowrap; }
body.admin-dark .reg-num { color: #f1d89a; }

/* ══ Боковое меню админки ══════════════════════════════════════════════ */
.admin-tabs { display: none !important; }
.admin-side {
  position: fixed; left: 0; top: 65px; bottom: 0; width: 250px; z-index: 50; overflow-y: auto;
  display: flex; flex-direction: column; padding: 18px 14px 14px;
  background:
    url(orn/band-gold.svg) right top / 16px 240px repeat-y,
    radial-gradient(420px 360px at 0% 0%, rgba(217,177,99,.14), transparent 70%),
    linear-gradient(180deg, #0c3a2e 0%, #082a21 55%, #061d16 100%);
  border-right: 1px solid rgba(217,177,99,.4);
  box-shadow: 10px 0 30px -18px rgba(0,0,0,.7);
  scrollbar-width: thin; scrollbar-color: rgba(217,177,99,.35) transparent;
}
.admin-side::after { /* уголок-завиток внизу */
  content: ""; position: absolute; left: 10px; bottom: 10px; width: 46px; height: 46px; pointer-events: none;
  background: url(orn/corner-bl.svg) center / contain no-repeat; opacity: .8; filter: sepia(1) saturate(2.5) hue-rotate(5deg) brightness(1.15);
}
.admin-side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(217,177,99,.22); }
.admin-side-mark { width: 44px; height: 44px; flex: none; border-radius: 999px; background: url(orn/mark.svg) center / contain no-repeat;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.7), 0 0 18px -6px rgba(217,177,99,.5); }
.admin-side-brand b { display: block; font-family: var(--font-serif); letter-spacing: .12em; font-size: 14px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.admin-side-brand small { display: block; font-size: 11.5px; color: rgba(233,220,184,.6); font-family: var(--font-serif); letter-spacing: .04em; }
.admin-side-group { margin: 14px 10px 6px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(217,177,99,.7);
  font-family: var(--font-serif); display: flex; align-items: center; gap: 8px; }
.admin-side-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217,177,99,.35), transparent); }
.admin-side-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0; border-radius: 12px;
  color: #e3d6b4; font-family: var(--font-serif); font-size: 14px; transition: background .18s, color .18s, transform .18s; }
.admin-side-link svg { width: 18px; height: 18px; flex: none; color: rgba(217,177,99,.85); }
.admin-side-link span { flex: 1; min-width: 0; line-height: 1.25; }
.admin-side-link:hover { background: rgba(217,177,99,.09); color: #fff3d0; transform: translateX(2px); }
.admin-side-link.on { background: linear-gradient(90deg, rgba(217,177,99,.26), rgba(217,177,99,.06)); color: #fff3d0;
  box-shadow: inset 0 0 0 1px rgba(217,177,99,.35); }
.admin-side-link.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad); }
.admin-side-link.on svg { color: #f1d89a; }
.admin-side-link em { font-style: normal; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(180deg, #d9573b, #b23a28); color: #fff; font: 700 11px var(--font-sans); box-shadow: 0 2px 6px -2px rgba(0,0,0,.5); }
.admin-side-foot { margin-top: auto; padding: 14px 8px 4px 58px; border-top: 1px solid rgba(217,177,99,.18); }
.admin-side-foot a { color: rgba(233,220,184,.7); font-size: 13px; }
.admin-side-foot a:hover { color: #f1d89a; }

/* место под меню: контент админки сдвигается вправо */
body.admin-dark:has(.admin-side) main.dashboard { margin-left: 250px; width: calc(100% - 250px); max-width: none; padding-left: 28px; padding-right: 28px; }
body.admin-dark:has(.admin-side) .site-footer { margin-left: 250px; }
body.admin-dark .dashboard .page-title { display: none; }

@media (max-width: 900px) {
  .admin-side { position: static; width: auto; height: auto; padding: 10px 10px 6px; margin: -8px -12px 16px; border-right: none;
    border-bottom: 1px solid rgba(217,177,99,.35); box-shadow: none; overflow: visible; background: linear-gradient(180deg, #0c3a2e, #082a21); }
  .admin-side::after, .admin-side-brand, .admin-side-group, .admin-side-foot { display: none; }
  .admin-side nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .admin-side nav::-webkit-scrollbar { display: none; }
  .admin-side-link { flex: none; padding: 7px 11px; white-space: nowrap; font-size: 13px; }
  .admin-side-link.on::before { display: none; }
  body.admin-dark:has(.admin-side) main.dashboard { margin-left: 0; width: 100%; padding-left: 12px; padding-right: 12px; }
  body.admin-dark:has(.admin-side) .site-footer { margin-left: 0; }
}
/* приложение администратора — своя нижняя навигация */
.in-admin-app .admin-side { display: none !important; }
html.in-admin-app main.dashboard { margin-left: 0 !important; width: 100% !important; }
html.in-admin-app .site-footer { margin-left: 0 !important; }

/* ══ Посещаемость (статистика) ═════════════════════════════════════════ */
.lg-bot { background: #8a8f86; width: 6px !important; }
.traffic-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 4px 0 18px; }
.traffic-kpis > div { position: relative; padding: 14px 16px 12px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(217,177,99,.12), rgba(217,177,99,.03)); border: 1px solid rgba(217,177,99,.28); }
.traffic-kpis > div::before { content: "✦"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #d9b163;
  background: #0d3328; padding: 0 6px; line-height: 16px; }
.traffic-kpis span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #c9b27c; }
.traffic-kpis b { display: block; font: 700 30px/1.15 var(--font-serif); margin-top: 4px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.traffic-kpis em { display: block; font-style: normal; font-size: 12px; color: #9fb3a8; margin-top: 2px; }
.traffic-table td strong { display: block; font-family: var(--font-serif); font-weight: 600; }
.traffic-table td .muted { display: block; font-size: 11.5px; }
.traffic-table .r { text-align: right; }
.traffic-table td.num { font: 600 15px var(--font-serif); white-space: nowrap; }
.traffic-table tr.is-bot td { opacity: .78; }
.traffic-table th:nth-child(2), .traffic-table td:nth-child(2) { background: rgba(217,177,99,.07); }
body.admin-dark .traffic-table td.num { color: #f3e6c4; }
body.admin-dark .traffic-table th:nth-child(2) { color: #f1d89a; }

.rank { display: flex; flex-direction: column; gap: 9px; }
.rank-row { display: grid; grid-template-columns: minmax(120px, 42%) 1fr 56px; align-items: center; gap: 12px; }
.rank-label { font-family: var(--font-serif); font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.rank-label small { display: block; font: 11px var(--font-sans); color: #8a9a90; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 8px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0b3a2d, #2a9a74); }
.rank-bots .rank-bar span { background: linear-gradient(90deg, #6d726a, #a8ab9f); }
.rank-num { text-align: right; font: 600 14px var(--font-serif); }
body.admin-dark .rank-bar { background: rgba(255,255,255,.07); }
body.admin-dark .rank-bar span { background: linear-gradient(90deg, #b3872f, #f1d89a); }
body.admin-dark .rank-bots .rank-bar span { background: linear-gradient(90deg, #5e6a64, #a3ada6); }
body.admin-dark .rank-label { color: #e3d6b4; }
body.admin-dark .rank-num { color: #f3e6c4; }
@media (max-width: 900px) { .traffic-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .traffic-kpis { grid-template-columns: 1fr 1fr; } .traffic-kpis b { font-size: 24px; } }

/* ══ Кабинет: оплата ═══════════════════════════════════════════════════ */
.pay-alert { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 18px; border-radius: 14px; color: #3b2a08;
  background: linear-gradient(135deg, #fbf0d2, #f3dfa8); border: 1px solid #d9b163; box-shadow: 0 8px 22px -14px rgba(138,100,36,.7); }
.pay-alert:hover { filter: brightness(1.03); }
.pay-alert-ico { flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font: 700 20px var(--font-serif);
  color: #fff7df; background: linear-gradient(135deg, #d9b163, #8a6424); }
.pay-alert b { display: block; font-family: var(--font-serif); font-size: 16px; }
.pay-alert small { display: block; font-size: 13px; color: #6b5626; margin-top: 2px; }
.pay-alert em { margin-left: auto; font-style: normal; font-weight: 600; white-space: nowrap; color: #8a6424; }
a.badge-amber { text-decoration: none; white-space: nowrap; }
.pay-card { border: 1px solid rgba(179,135,47,.45); scroll-margin-top: 90px; }
.pay-req { display: grid; grid-template-columns: 190px 1fr; margin: 0; }
.pay-req dt, .pay-req dd { margin: 0; padding: 8px 0; border-bottom: 1px solid rgba(179,135,47,.2); }
.pay-req dt { color: var(--muted-fg); font-size: 13px; }
.pay-req dd { font-weight: 600; word-break: break-word; }
.pay-note { margin-top: 14px; padding: 12px 16px; border-left: 3px solid #b3872f; background: rgba(217,177,99,.1); font-size: 14px; white-space: pre-line; }
@media (max-width: 600px) {
  .pay-alert { flex-wrap: wrap; } .pay-alert em { margin-left: 54px; }
  .pay-req { grid-template-columns: 1fr; } .pay-req dt { border-bottom: none; padding-bottom: 0; }
}

/* ══ Кнопки админки: компактные, «ювелирные» ══════════════════════════ */
body.admin-dark main .btn {
  height: 34px; padding: 0 16px; gap: 6px; font: 600 12.5px/1 var(--font-sans); letter-spacing: .05em;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background-position .6s ease, color .2s, filter .2s;
}
body.admin-dark main .btn-sm { height: 28px; padding: 0 12px; font-size: 11.5px; }
body.admin-dark main .btn-lg { height: 40px; padding: 0 22px; font-size: 13.5px; }
body.admin-dark main .btn:active { transform: translateY(0) scale(.97); }
body.admin-dark main .btn::after { /* блик */
  background: linear-gradient(115deg, transparent 30%, rgba(255,250,230,.55) 48%, transparent 62%);
  transition: transform .75s cubic-bezier(.2,.7,.2,1);
}

/* золото — сусальный металл с фаской и свечением */
body.admin-dark main .btn-gold {
  color: #2a1d05; text-shadow: 0 1px 0 rgba(255,244,210,.6);
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 48%, rgba(0,0,0,.08) 52%, rgba(0,0,0,0)) padding-box,
    linear-gradient(100deg, #f7e3a8, #d9b163 25%, #b3872f 50%, #e6c67c 75%, #f7e3a8) 0 0 / 220% 100% padding-box,
    linear-gradient(135deg, #fff1c8, #8a6424 45%, #f1d89a 80%, #8a6424) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 6px 16px -6px rgba(217,177,99,.65), inset 0 1px 0 rgba(255,255,255,.6);
}
body.admin-dark main .btn-gold:hover {
  background-position: 0 0, 100% 0, 0 0; transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 22px -2px rgba(241,216,154,.55), 0 10px 22px -8px rgba(217,177,99,.8), inset 0 1px 0 rgba(255,255,255,.7);
}

/* контур — изумрудное стекло с золотой нитью */
body.admin-dark main .btn-outline {
  color: #f1d89a;
  background:
    linear-gradient(180deg, rgba(20,84,64,.85), rgba(7,40,31,.9)) padding-box,
    linear-gradient(135deg, rgba(241,216,154,.9), rgba(138,100,36,.55) 45%, rgba(241,216,154,.85)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px -6px rgba(0,0,0,.6);
}
body.admin-dark main .btn-outline:hover {
  color: #fff3d0; transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(34,110,84,.9), rgba(10,52,40,.95)) padding-box,
    linear-gradient(135deg, #fff1c8, #b3872f 45%, #fff1c8) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 16px -4px rgba(217,177,99,.45), 0 8px 18px -8px rgba(0,0,0,.7);
}

/* призрачная — только текст и тонкая подсветка */
body.admin-dark main .btn-ghost { color: #d9c79a; background: transparent; }
body.admin-dark main .btn-ghost:hover { color: #f1d89a; background: rgba(217,177,99,.1); box-shadow: inset 0 0 0 1px rgba(217,177,99,.3); }

/* опасная — рубин */
body.admin-dark main .btn-danger {
  color: #ffd9d2;
  background:
    linear-gradient(180deg, #8e2a1f, #5a150f) padding-box,
    linear-gradient(135deg, #ff9d8f, #7a1d14 50%, #ff9d8f) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 6px 14px -8px rgba(192,57,43,.8);
}
body.admin-dark main .btn-danger:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 0 18px -4px rgba(255,110,90,.55), inset 0 1px 0 rgba(255,255,255,.2); }

/* успех — изумруд */
body.admin-dark main .btn-success {
  color: #eafff6;
  background: linear-gradient(180deg, #2a9a74, #0f5a43) padding-box, linear-gradient(135deg, #bff0dc, #0b3a2d 50%, #bff0dc) border-box;
}

/* обычная (без модификатора) — тёмный бархат */
body.admin-dark main .btn:not(.btn-gold):not(.btn-ghost):not(.btn-outline):not(.btn-outline-light):not(.btn-danger):not(.btn-success) {
  color: #f5e7c4;
  background: linear-gradient(180deg, #123f32, #061d16) padding-box, linear-gradient(135deg, #f1d89a, #6d4f1c 50%, #f1d89a) border-box;
}

/* кнопка-иконка (✎ и т. п.) — круглая */
body.admin-dark main .btn-sm.btn-ghost[title] { width: 28px; padding: 0; }
/* поля ввода рядом с кнопками — той же высоты */
body.admin-dark main form .input:not(textarea), body.admin-dark main form select { min-height: 34px; }
body.admin-dark main .btn-sm.btn-ghost[title] { box-shadow: inset 0 0 0 1px rgba(217,177,99,.35); color: #f1d89a; }
body.admin-dark main input[type=file] { color: #c9b889; font-size: 12.5px; }
body.admin-dark main input[type=file]::file-selector-button {
  height: 28px; padding: 0 14px; margin-right: 10px; border-radius: 999px; cursor: pointer;
  font: 600 11.5px var(--font-sans); letter-spacing: .05em; color: #f1d89a;
  border: 1px solid rgba(217,177,99,.6); background: linear-gradient(180deg, #145440, #07281f);
  transition: box-shadow .2s, color .2s;
}
body.admin-dark main input[type=file]::file-selector-button:hover { color: #fff3d0; box-shadow: 0 0 14px -3px rgba(217,177,99,.5); }

/* ══ Абонементы ════════════════════════════════════════════════════════ */
.sub-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-top: 8px; }
.sub-plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 24px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, #fffdf6, #f6eed8); border: 1px solid rgba(179,135,47,.4);
  box-shadow: 0 18px 40px -26px rgba(11,58,45,.55); transition: transform .25s, box-shadow .25s; }
.sub-plan::before { content: ""; position: absolute; inset: 7px; border-radius: 15px; border: 1px solid rgba(179,135,47,.22); pointer-events: none; }
.sub-plan:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(11,58,45,.6); }
.sub-plan.is-featured { background: radial-gradient(420px 260px at 50% 0%, rgba(217,177,99,.22), transparent 70%), linear-gradient(180deg, #0f4636, #072a21);
  border-color: #d9b163; color: #f3e6c4; transform: translateY(-10px); box-shadow: 0 30px 60px -26px rgba(0,0,0,.7), 0 0 0 1px rgba(217,177,99,.4); }
.sub-plan.is-featured:hover { transform: translateY(-14px); }
.sub-plan.is-featured::before { border-color: rgba(217,177,99,.35); }
.sub-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 16px; border-radius: 999px;
  background: var(--gold-grad); color: #2a1d05; font: 700 11px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(138,100,36,.8); }
.sub-tier { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #9a7428; }
.is-featured .sub-tier { color: #d9b163; }
.sub-plan h3 { margin: 6px 0 12px; font-size: 21px; }
.is-featured h3 { color: #fff3d0; }
.sub-qty { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 14px; }
.sub-qty b { font: 700 58px/1 var(--font-serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub-qty span { text-align: left; font-size: 13px; line-height: 1.3; color: var(--muted-fg); }
.is-featured .sub-qty span { color: #c9b889; }
.sub-price s { display: block; color: #9b8f75; font-size: 15px; }
.sub-price strong { display: block; font: 700 34px/1.1 var(--font-serif); color: #0b3a2d; }
.is-featured .sub-price strong { color: #fff3d0; }
.is-featured .sub-price s { color: #9fb3a8; }
.sub-save { display: inline-flex; align-items: center; gap: 8px; margin: 12px auto 6px; padding: 5px 6px 5px 14px; border-radius: 999px;
  background: rgba(28,122,92,.12); border: 1px solid rgba(28,122,92,.35); color: #0f5a43; font-size: 13.5px; }
.sub-save em { font-style: normal; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #2a9a74, #0f5a43); color: #fff; font-size: 12px; }
.is-featured .sub-save { background: rgba(241,216,154,.12); border-color: rgba(241,216,154,.4); color: #f1d89a; }
.is-featured .sub-save em { background: var(--gold-grad); color: #2a1d05; }
.sub-unit { font-size: 13px; color: var(--muted-fg); }
.sub-unit span { text-decoration: line-through; opacity: .7; margin-left: 4px; }
.is-featured .sub-unit { color: #c9b889; }
.sub-perks { list-style: none; padding: 16px 0 0; margin: 16px 0 20px; border-top: 1px solid rgba(179,135,47,.25); text-align: left; flex: 1; }
.sub-perks li { position: relative; padding: 5px 0 5px 24px; font-size: 14px; line-height: 1.4; }
.sub-perks li::before { content: "✦"; position: absolute; left: 2px; top: 5px; color: #b3872f; font-size: 12px; }
.is-featured .sub-perks li { color: #eadfc0; }
.is-featured .sub-perks li::before { color: #f1d89a; }
.sub-terms ul { margin: 0; padding: 0; list-style: none; }
.sub-terms li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid rgba(217,177,99,.15); line-height: 1.5; }
.sub-terms li:last-child { border-bottom: 0; }
.sub-terms li::before { content: "§"; position: absolute; left: 4px; top: 8px; color: #d9b163; font-family: var(--font-serif); }

.subs-band { display: flex; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 22px; border-radius: 16px; color: #f3e6c4;
  background: radial-gradient(500px 200px at 0% 50%, rgba(217,177,99,.2), transparent 70%), linear-gradient(135deg, #0f4636, #072a21);
  border: 1px solid rgba(217,177,99,.5); box-shadow: 0 16px 36px -22px rgba(0,0,0,.7); transition: transform .2s; }
.subs-band:hover { transform: translateY(-2px); }
.subs-band-ic { flex: none; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; font: 700 22px var(--font-serif);
  background: var(--gold-grad); color: #2a1d05; }
.subs-band b { display: block; font-family: var(--font-serif); font-size: 17px; color: #fff3d0; }
.subs-band small { display: block; font-size: 13px; color: #c9b889; margin-top: 2px; }
.subs-band em { margin-left: auto; font-style: normal; font-weight: 600; color: #f1d89a; white-space: nowrap; }

.sub-cover { text-align: right; white-space: nowrap; }
.sub-cover b { display: block; color: #1c7a5c; }
.sub-cover small { color: var(--muted-fg); }

.sub-meter { height: 6px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; margin: 4px 0; min-width: 90px; }
.sub-meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b3872f, #f1d89a); }
.my-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.my-sub h3 { margin: 8px 0 6px; font-size: 17px; }
.my-sub.is-active { border-color: rgba(28,122,92,.5); box-shadow: 0 0 0 1px rgba(28,122,92,.25); }
.my-sub-left b { font: 700 28px var(--font-serif); color: #0b3a2d; }
.my-sub-left span { color: var(--muted-fg); font-size: 13px; }

.sub-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sub-edit.is-off { opacity: .6; }
.sub-edit.is-new { border-style: dashed; }
.sub-calc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -4px 0 14px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px;
  background: rgba(217,177,99,.08); border: 1px solid rgba(217,177,99,.25); }
body.admin-dark .sub-calc b { color: #f3e6c4; }
body.admin-dark .sub-meter { background: rgba(255,255,255,.08); }

@media (max-width: 900px) {
  .sub-plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 30px; }
  .sub-plan.is-featured { transform: none; } .sub-plan.is-featured:hover { transform: translateY(-4px); }
  .subs-band { flex-wrap: wrap; } .subs-band em { margin-left: 62px; }
}
/* уведомления в админке — справа от бокового меню */
body.admin-dark:has(.admin-side) .flash-wrap { margin-left: 250px; max-width: none; width: calc(100% - 250px); padding: 0 28px; }
@media (max-width: 900px) { body.admin-dark:has(.admin-side) .flash-wrap { margin-left: 0; width: 100%; padding: 0 12px; } }
html.in-admin-app .flash-wrap { margin-left: 0 !important; width: 100% !important; }
