@font-face {
  font-family: Manrope;
  src: url("/static/fonts/Manrope.woff2") format("woff2"), url("/static/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --orange: #FF6B2C;
  --orange-dark: #E2551A;
  --orange-soft: #FFF1EA;
  --charcoal: #1E242B;
  --off: #F7F6F2;
  --muted: #5E6770;
  --line: #E3DFD6;
  --card: #FFFFFF;
  --ok: #1C7C45;
  --ok-soft: #E7F6EE;
  --info: #24536E;
  --info-soft: #E7F1F6;
  --danger: #B4332A;
  --danger-soft: #FDECEA;
  --shadow: 0 18px 50px rgba(30, 36, 43, 0.08);
  --radius: 20px;
  --font: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--off);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.logo-s { color: var(--orange); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; }
.brand-name {
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 1.45rem;
  line-height: 1;
}
.brand-kicker {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6vw;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  font-size: 0.95rem;
}
.nav a { text-decoration: none; }
.nav-toggle { display: none; }

[hidden] { display: none !important; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--orange);
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--orange-dark); }
.btn.secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn.secondary:hover { background: var(--charcoal); color: white; }
.btn.ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--line);
}
.btn.danger { background: var(--danger); }
.btn.small { padding: 8px 12px; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.nav-toggle, .btn.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 64px 6vw 40px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(255, 107, 44, 0.16), transparent 60%),
    var(--off);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
  background: var(--card);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 36, 43, 0.04);
}
.hero-card img.mark { width: min(100%, 280px); margin: 0 auto 8px; }
.slogan {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 8px 0 18px;
}
.swatches { display: flex; justify-content: center; gap: 18px; }
.swatch { text-align: center; font-size: 0.68rem; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }
.dot {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 6px;
  border: 1px solid rgba(30, 36, 43, 0.08);
}
.dot.orange { background: var(--orange); }
.dot.charcoal { background: var(--charcoal); }
.dot.off { background: var(--off); }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 10px 6vw 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.strip div { background: white; padding: 18px 20px; }
.strip strong { display: block; font-size: 1.35rem; letter-spacing: -0.04em; }
.strip span { color: var(--muted); font-size: 0.92rem; }

section { padding: 28px 6vw 10px; }
section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.section-note { color: var(--muted); margin: 0 0 18px; }

.steps, .roles, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(30, 36, 43, 0.05);
  box-shadow: 0 10px 30px rgba(30, 36, 43, 0.04);
}
.step-no {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange);
  font-weight: 800; margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; letter-spacing: -0.03em; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 8px 0 0; padding-left: 18px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cat-card h3 { display: flex; justify-content: space-between; gap: 8px; }
.pill {
  font-size: 0.75rem;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}

.site-footer {
  margin-top: 36px;
  padding: 28px 6vw 36px;
  background: var(--charcoal);
  color: #F7F6F2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a { color: white; }
.muted { color: var(--muted); }
.footer-note { color: rgba(247, 246, 242, 0.72); max-width: 46ch; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(500px 240px at 80% 0%, rgba(255, 107, 44, 0.18), transparent 60%),
    var(--off);
}
.login-card { width: min(440px, 100%); }
.login-card h1 { font-size: 2rem; }
.form { display: grid; gap: 12px; }
.create-slot { margin: 0 0 12px; }
.create-toggle { min-height: 40px; padding: 8px 14px; }
.create-panel-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.create-slot.is-open .create-panel-wrap { grid-template-rows: 1fr; }
.create-panel { overflow: hidden; min-height: 0; margin-top: 0; opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .28s ease, margin-top .28s ease; }
.create-slot.is-open .create-panel { opacity: 1; transform: none; margin-top: 10px; }
.create-slot.is-open .create-toggle { display: none; }
.create-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.create-head h2 { margin: 0; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 12px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(255, 107, 44, 0.25);
  border-color: var(--orange);
}
.demo-box {
  background: var(--off);
  border-radius: 14px;
  padding: 12px;
  font-size: 0.88rem;
}
.demo-box code { font-weight: 750; }
.error { color: var(--danger); font-weight: 700; min-height: 1.2em; }
.schema-result { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 750; }
.schema-result.ok { background: #e7f6ee; color: #146c43; }
.schema-result.bad { background: #fdecea; color: #9a2b22; }
.schema-result ul { margin: 8px 0 0; padding-left: 18px; font-weight: 650; }
.schema-result time { display: block; margin-top: 8px; font-weight: 650; font-size: 0.85rem; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar {
  background: var(--charcoal);
  color: var(--off);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar .brand-name, .sidebar .brand-kicker { color: white; }
.sidebar .brand-kicker { color: rgba(247, 246, 242, 0.62); }
.side-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  color: white;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 700;
}
.side-ico { display: inline-flex; flex: none; }
.side-label { flex: 1; }
.side-btn .nav-badge { margin-left: auto; }
.side-btn.active, .side-btn:hover { background: rgba(255, 107, 44, 0.18); color: white; }
.logout-btn {
  background: transparent;
  color: #F7F6F2;
  border: 1.5px solid rgba(247, 246, 242, 0.72);
}
.logout-btn:hover { background: var(--orange); color: white; border-color: var(--orange); }
.side-btn.active { box-shadow: inset 3px 0 0 var(--orange); }
.sidebar .grow { flex: 1; }
.who { font-size: 0.85rem; color: rgba(247, 246, 242, 0.75); padding: 8px; }
.admin-main { padding: 18px 22px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 12px; margin-bottom: 16px; }
.topbar-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 0 auto; }
.topbar h1 { font-size: 1.8rem; margin: 0; white-space: nowrap; }
.topbar-side { margin-left: auto; display: flex; justify-content: flex-end; align-items: center; flex-wrap: nowrap; gap: 12px; min-width: 0; }
.online-counts { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; overflow-x: auto; }
.online-chip { font-size: 13px; line-height: 1.2; color: #5C6570; white-space: nowrap; }
.online-chip.is-total { font-weight: 800; color: #1E242B; }
.online-sep { color: #C5CBD3; flex: none; }
.menu-toggle { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: white; border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 0.86rem; }

.split { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.list { display: grid; gap: 10px; }
.order {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.order-head, .row-between { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.badge.in_progress { background: var(--info-soft); color: var(--info); }
.badge.completed { background: var(--ok-soft); color: var(--ok); }
.badge.canceled { background: var(--danger-soft); color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--off); border-radius: 999px; padding: 3px 8px; font-size: 0.8rem; font-weight: 700; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--off); }
.controls { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; }
.tree-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.cat-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.cat-tools .search { flex: 1; min-width: 180px; }
.tree-row { display: flex; gap: 8px; align-items: center; align-self: stretch; width: auto; box-sizing: border-box; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px; }
.tree-row .name { flex: 1 1 7rem; min-width: 7rem; }
.lvl { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.lvl-1 { background: #1E242B; color: #fff; }
.lvl-2 { background: #FF6B2C; color: #fff; }
.lvl-3 { background: #FFF1EA; color: #FF6B2C; }
.lvl-4 { background: #E7F8EF; color: #15803D; }
.modal { position: fixed; inset: 0; background: rgba(30, 36, 43, 0.45); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal-card { width: min(460px, 100%); }
.tree-wrap { padding: 8px; }
.tree-item.children { margin-left: 16px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select { width: auto; min-width: 180px; flex: 0 1 220px; }
.filter-btn.active { background: var(--charcoal); color: white; }
.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--charcoal);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: white;
  border-radius: 16px;
  border: 1px dashed var(--line);
}
.user-cards { display: grid; gap: 12px; }
.user-more { margin-top: 12px; }
.user-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.user-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.user-card h3 { margin: 0; font-size: 1.05rem; }
.user-meta { color: var(--muted); font-size: 0.92rem; }
.user-money { font-weight: 800; color: var(--orange); font-size: 1.15rem; white-space: nowrap; }
.role-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; background: var(--off); color: var(--charcoal); font-weight: 700; font-size: 0.82rem; }
.role-badge.blocked { background: #fde8e6; color: #9a2b22; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-badge { display: inline-flex; min-width: 1.4rem; justify-content: center; margin-left: 8px; padding: 1px 6px; border-radius: 999px; background: var(--orange); color: white; font-size: 0.75rem; }
.review-card { display: grid; gap: 6px; }
.review-stars { color: var(--orange); font-weight: 800; letter-spacing: 0.04em; }
.review-card .user-actions { margin-top: 4px; }
.topup-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.topup-card .user-actions { margin-left: auto; }
.topup-heading { margin: 18px 0 8px; font-size: 1.2rem; }
.topup-history { margin-top: 16px; }
.topup-history summary { cursor: pointer; font-weight: 750; font-size: 1.15rem; }
.topup-history .list { margin-top: 12px; }
.topup-history .btn { margin-top: 12px; }

body.gate-open > header,
body.gate-open > #guest,
body.gate-open > #workspace,
body.gate-open > footer { display: none; }
.gate { min-height: 100vh; background: #F7F6F2; color: #1E242B; padding: 28px 22px 48px; }
.gate-page { max-width: 520px; margin: 0 auto; }
.gate-page[data-gate="menu"] { text-align: center; }
.gate-page[data-gate="menu"] .gate-back-text { display: block; text-align: left; width: 100%; }
.gate-page[data-gate="menu"] h1,
.gate-page[data-gate="menu"] .gate-lead { text-align: center; }
.gate-back-text { background: none; border: 0; color: #1E242B; font: inherit; font-weight: 650; padding: 0; cursor: pointer; }
.gate-logo { display: block; width: 84px; height: 84px; margin: 28px auto 16px; }
.gate h1 { margin: 0; text-align: center; font-size: 1.65rem; line-height: 1.25; }
.gate-lead { text-align: center; color: #3E4651; margin: 8px 0 22px; }
.gate-card { background: white; border-radius: 28px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 1px 0 rgba(30,36,43,0.04); }
.gate-channels { display: flex; gap: 10px; }
.gate-channel { flex: 1; min-width: 0; height: 78px; border: 1px solid #E3DED4; border-radius: 16px; background: white; color: #1E242B; font-weight: 750; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 4px; }
.gate-channel img { width: 26px; height: 26px; }
.gate-channel.soon img,
.gate-channel.soon span { opacity: 0.55; }
.gate-channel.soon .soon-tag { opacity: 1; color: #FF6B2C; font-size: 10px; font-style: normal; font-weight: 800; }
.soon-dialog { position: fixed; inset: 0; z-index: 90; background: rgba(30, 36, 43, 0.45); display: grid; place-items: center; padding: 20px; }
.soon-card { width: min(360px, 100%); background: white; border-radius: 20px; padding: 22px; text-align: center; display: grid; gap: 14px; }
.soon-card p { margin: 0; font-weight: 650; }
.gate-or { display: flex; align-items: center; gap: 10px; color: #3E4651; font-size: 0.92rem; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: #E3DED4; }
.gate-alt { display: flex; flex-direction: column; gap: 10px; }
.gate-alt button { background: #fff; border: 1.5px solid #1E242B; color: #1E242B; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; min-height: 56px; border-radius: 16px; padding: 0 16px; }
.hero-download { margin-top: 18px; background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 10px 30px rgba(30,36,43,.08); }
.hero-download h2 { margin: 0 0 6px; }
.soon-pill { display: inline-block; margin-left: 6px; color: #FF6B2C; font-size: 12px; font-weight: 700; }
.is-new { outline: 2px solid #FF6B2C; background: #FFF4EE; }
.attach-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #F7F6F2; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 0; right: 0; border: 0; background: #1E242B; color: #fff; width: 22px; height: 22px; border-radius: 0 0 0 8px; cursor: pointer; }
.thumb .badge { position: absolute; left: 4px; bottom: 4px; background: rgba(30,36,43,.8); color: #fff; font-size: 11px; border-radius: 8px; padding: 1px 4px; }
.voice-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.admin-grid { display: grid; gap: 8px; }
.phone-prefix { letter-spacing: 0; }
.gate-docs { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 1px solid #E3DED4; border-radius: 16px; color: #1E242B; text-decoration: none; font-weight: 650; }
.gate-doc-icon { width: 16px; height: 18px; border: 1.6px solid #1E242B; border-radius: 2px; position: relative; }
.gate-doc-icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 1.6px; background: #1E242B; box-shadow: 0 4px 0 #1E242B; }
.gate-round { width: 42px; height: 42px; border-radius: 50%; border: 0; background: white; color: #1E242B; font-size: 1.1rem; cursor: pointer; box-shadow: 0 1px 2px rgba(30,36,43,0.08); }
.gate-page > h1, .gate-page > .gate-lead { text-align: left; }
.gate-chip { justify-self: start; background: #FFF1EA; color: #E25A1C; border-radius: 999px; padding: 4px 10px; font-size: 0.82rem; font-weight: 700; }
.gate-field { display: flex; align-items: center; gap: 8px; min-height: 52px; border: 1px solid #E3DED4; border-radius: 16px; padding: 0 12px; background: white; }
.gate-field input { flex: 1; border: 0; outline: none; font: inherit; background: transparent; min-width: 0; }
.gate-ico { color: #3E4651; width: 1.2rem; text-align: center; }
.gate-eye { border: 0; background: none; cursor: pointer; color: #3E4651; }
.gate-gold { width: 100%; min-height: 52px; border-radius: 16px; }
.gate-quiet { background: none; border: 0; color: #3E4651; font: inherit; font-weight: 650; cursor: pointer; padding: 8px 0 2px; }
.gate-note { color: #3E4651; font-size: 0.92rem; margin: 0; }
.gate-doclinks { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.gate-doclinks a { color: #E25A1C; font-weight: 750; text-decoration: none; }
.search { max-width: 360px; }

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.workspace { padding: 12px 4vw 96px; }
.app-tabs { display: none !important; }
.page { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.market-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 48px 0 24px; }
.market-hero h1 { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 8px 0 12px; }
.home-search { display: flex; gap: 10px; margin-top: 18px; background: white; border-radius: 18px; padding: 6px; box-shadow: 0 10px 30px rgba(30,36,43,.08); }
.home-search input { flex: 1; min-width: 0; height: 52px; border: 0; padding: 0 16px; font: inherit; background: transparent; }
.home-search input:focus { outline: none; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggest button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 6px 12px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 700; }
.phone-mock { justify-self: end; width: 280px; height: 520px; border-radius: 36px; padding: 14px; background: #1E242B; box-shadow: 0 24px 50px rgba(30,36,43,.18); }
.phone-screen { height: 100%; border-radius: 26px; background: #F7F6F2; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 20px; }
.phone-screen img { width: 72px; height: 72px; background: white; border-radius: 18px; padding: 8px; }
.phone-screen strong { font-size: 2rem; line-height: 1.05; margin-top: 12px; }
.phone-screen span { color: #FF6B2C; font-weight: 800; margin-top: 8px; }
.popular-card { min-height: 96px; border-radius: 20px; box-shadow: 0 8px 20px rgba(30,36,43,.04); transition: transform .15s ease, box-shadow .15s ease; }
.popular-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(30,36,43,.08); }
.popular-card .l1-icon { width: 52px; height: 52px; border-radius: 16px; background: #FFF1EA; display: grid; place-items: center; color: #FF6B2C; flex: none; }
.popular-card .l1-icon svg { width: 26px; height: 26px; }
.step-grid b { width: 36px; height: 36px; border-radius: 12px; background: #FFF1EA; color: #FF6B2C; display: grid; place-items: center; }
.home-masters { margin-top: 36px; background: #1E242B; color: white; border-radius: 28px; padding: 36px; }
.home-masters h2, .home-masters p { color: white; }
.home-masters .eyebrow { color: #FF6B2C; }
.home-download { margin-top: 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; background: white; border-radius: 28px; padding: 28px; box-shadow: 0 8px 24px rgba(30,36,43,.05); }
.store-badge { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 14px; background: #1E242B; color: white; text-decoration: none; font-weight: 800; }
.store-badge.light { background: white; color: #1E242B; border: 1.5px solid #1E242B; }
.gate { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 480px); justify-content: center; align-items: center; gap: 28px; padding: 32px 20px; box-sizing: border-box; }
.gate-side { background: #1E242B; color: white; border-radius: 28px; padding: 32px; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.gate-side img { width: 72px; height: 72px; background: #F7F6F2; border-radius: 18px; padding: 8px; }
.gate-side strong { font-size: 2rem; line-height: 1.05; }
.gate-page, .gate-card { max-width: 100%; box-sizing: border-box; }
.tree-row .name { overflow-wrap: normal; word-break: normal; }
.icon-btn { width: 32px; height: 32px; padding: 0; border-radius: 10px; }
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.popular-card { display: flex; align-items: center; gap: 12px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-height: 76px; }
.popular-copy { display: grid; gap: 2px; }
.popular-copy span { color: var(--orange); font-weight: 800; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.step-grid li { background: white; border-radius: 18px; padding: 16px; display: grid; gap: 6px; }
.home-masters, .home-download { margin-top: 28px; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 18px; border-radius: 14px; background: #1E242B; color: white; text-decoration: none; font-weight: 750; border: 0; }
.store-btn[disabled], .store-btn.soon { opacity: 0.72; cursor: default; }
.safari-steps { margin: 8px 0 0; padding-left: 18px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.download-card { background: white; border-radius: 24px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.tab-btn { white-space: nowrap; }
.tab-btn.active { background: var(--charcoal); color: white; }
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]),
.check-line:has(input[type="checkbox"]),
.check-line:has(input[type="radio"]) {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 4px 0;
  white-space: nowrap;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #FF6B2C;
}
.subcats { margin: 0 0 8px 28px; }
.cat-block { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; margin-bottom: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-chip { font-weight: 750; font-size: 0.92rem; }
.screen-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
details.demo-box summary { cursor: pointer; font-weight: 750; }
.file-note { color: var(--muted); font-size: 0.9rem; }
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.filter-field { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 750; }
.filter-bar .btn { height: 46px; }
.chat { display: grid; gap: 8px; margin-top: 8px; }
.chat-list { display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.bubble { background: var(--off); border-radius: 12px; padding: 8px 10px; }
.bubble.mine { background: #fff1ea; }
.bubble .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 0.78rem; margin-bottom: 4px; }

.hero-steps { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.hero-steps li { font-weight: 650; }
.catalog-cta { margin: 16px 0 0; }
.auth-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.auth-app { margin-bottom: 16px; }
.channel-row { display: flex; gap: 10px; }
.channel-row .btn { flex: 1; min-height: 52px; }
.btn.wa { background: #25D366; color: #fff; }
.btn.max { background: #2F6BFF; color: #fff; }
.linkish { background: none; border: 0; color: #FF6B2C; padding: 0; font: inherit; cursor: pointer; }
.balance-line { font-size: 22px; font-weight: 800; color: #FF6B2C; margin: 4px 0 8px; }
.catalog-picker, .catalog-board { display: grid; gap: 12px; }
.pick-summary {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.pick-label { margin: 0 0 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off);
  border-radius: 999px;
  padding: 6px 6px 6px 12px;
  font-weight: 750;
}
.pick-x {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  color: white;
  line-height: 1;
  font-weight: 700;
}
.l1-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.l1-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 36, 43, 0.08); }
.l1-card.open, .l1-card.picked { border-color: rgba(255, 107, 44, 0.55); }
.l1-card.picked { box-shadow: 0 10px 24px rgba(255, 107, 44, 0.12); }
.l1-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
}
.l1-copy { display: grid; gap: 2px; min-width: 0; }
.l1-copy strong { font-size: 1.05rem; letter-spacing: -0.03em; }
.l1-copy span { color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.l1-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--off);
  color: var(--orange);
  flex: none;
}
.l1-card.open .l1-icon, .l1-card.picked .l1-icon { background: var(--orange); color: white; }
.l1-badge {
  margin-left: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--off);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}
.l1-badge.on { background: var(--charcoal); color: var(--off); }
.l2-shell { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.l1-card.open .l2-shell { grid-template-rows: 1fr; }
.l2-shell > .l2-panel { overflow: hidden; min-height: 0; }
.l2-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  padding: 0 16px;
  background: var(--off);
}
.l1-card.open .l2-panel { padding-bottom: 16px; }
.svc-glyph { width: 28px; height: 28px; border-radius: 8px; background: #FFF1EA; color: #FF6B2C; display: inline-grid; place-items: center; flex: none; }
.svc-glyph svg { width: 18px; height: 18px; display: block; }
.svc-chip .svc-glyph { width: 22px; height: 22px; }
.icon-pick-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--charcoal); font: inherit; font-weight: 650; cursor: pointer; }
.icon-dialog { position: fixed; inset: 0; z-index: 80; background: rgba(30, 36, 43, 0.45); display: grid; place-items: center; padding: 16px; }
.icon-dialog-card { width: min(760px, 100%); max-height: min(82vh, 760px); overflow: auto; background: white; border-radius: 20px; padding: 16px; box-shadow: 0 18px 50px rgba(30, 36, 43, 0.18); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.icon-choice { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--charcoal); cursor: pointer; font: inherit; }
.icon-choice.on { border-color: var(--orange); background: #FFF1EA; }
.icon-choice span { font-size: 11px; line-height: 1.25; text-align: center; }
.svc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: white;
  text-align: left;
  font-weight: 750;
}
.svc-chip.on { background: var(--charcoal); color: var(--off); }
.svc-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex: none;
}
.svc-chip.on .svc-mark { background: var(--orange); border-color: var(--orange); color: white; }

@media (max-width: 800px) {
  .page { width: min(100% - 28px, 1200px); }
  .market-hero, .home-download, .step-grid, .download-grid, .gate { grid-template-columns: 1fr; display: grid; }
  .home-search { display: grid; }
  .phone-mock { display: none; }
  .gate { padding: 16px 12px 32px; }
  .gate-side { display: none; }
  .workspace { padding-bottom: 24px; }
}

@media (max-width: 980px) {
  .hero, .steps, .roles, .split, .stats, .strip, .auth-layout, .auth-pair, .filter-bar { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .topbar-side { width: 100%; overflow-x: auto; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; }
  .btn.menu-toggle, .btn.nav-toggle { display: inline-flex; }
  .site-header { flex-wrap: wrap; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0 8px;
  }
  .nav.open { display: flex; }
}

.cat-panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px 12px; margin-bottom: 12px; position: sticky; top: 8px; z-index: 4; }
.cat-panel > summary { display: none; }
.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.cat-bar > label { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 750; min-width: 92px; flex: 1; }
.cat-bar > label.wide { flex: 1.6; min-width: 160px; }
.cat-bar input, .cat-bar select, .cat-bar textarea { width: 100%; min-height: 40px; }
.cat-bar .cat-active { align-self: center; min-width: auto; flex: 0; }
.cat-more { flex-basis: 100%; }
.cat-more summary { cursor: pointer; font-weight: 750; }
.hint-fold { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin: 0 0 12px; }
.hint-fold > summary { cursor: pointer; font-weight: 750; }
.hint-fold .section-note { margin: 10px 0 0; }
.locality-tools, .locality-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.locality-tools .search, .locality-add input, .locality-add select { width: auto; min-width: 140px; flex: 1; }
.locality-list { display: grid; gap: 8px; max-height: 460px; overflow: auto; margin-top: 12px; }
.locality-list h3 { margin: 8px 0 0; font-size: 0.95rem; }
.locality-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 90px minmax(100px, 1fr) 88px auto auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.locality-row input[type="number"] { width: 88px; min-height: 36px; }
.travel-line { color: #FF6B2C; font-weight: 800; }
.price-fee-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.price-fee-row .fee-side { margin-left: auto; color: #FF6B2C; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-row.is-saved { outline: 2px solid var(--orange); background: #fff1ea; }
.cat-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
@media (max-width: 900px) {
  .cat-panel { position: static; }
  .cat-panel > summary { display: block; font-weight: 800; margin-bottom: 8px; cursor: pointer; }
  .cat-bar > label { min-width: calc(50% - 8px); }
}

/* Admin checkboxes stay [box] label on one left-aligned row. File inputs are not checkboxes. */
.admin-main label:has(> input[type="checkbox"]),
.admin-main label:has(> input[type="radio"]),
.admin-main .check-line:has(input[type="checkbox"]),
.admin-main .check-line:has(input[type="radio"]) {
  display: inline-flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  align-self: start !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
}
.admin-main input[type="checkbox"],
.admin-main input[type="radio"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 1.15rem !important;
  accent-color: #FF6B2C;
}
#order-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px 24px;
  width: 100%;
}
#order-filters .order-status-tabs { flex: 1 1 auto; min-width: 0; }
.order-admin-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}
.order-admin-tools form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  width: 100%;
}
.order-admin-tools input[type="number"] { width: 64px; min-height: 32px; padding: 4px 8px; }
@media (max-width: 899px) {
  #order-filters { flex-direction: column; flex-wrap: wrap; align-items: stretch; }
  .order-admin-tools { margin-left: 0; align-items: flex-start; width: 100%; }
  .order-admin-tools form { flex-wrap: wrap; justify-content: flex-start; }
}

/* WhatsApp-style chats */
.wa-list, .chat-list.wa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  max-height: 480px;
  padding: 10px 8px 14px;
  background: #F7F6F2;
  border-radius: 16px;
}
.wa-row { display: flex; flex-direction: column; max-width: 100%; }
.wa-row.mine { align-items: flex-end; }
.wa-row.theirs { align-items: flex-start; }
.wa-sender { display: flex; gap: 6px; align-items: center; margin: 0 4px 2px; font-size: 13px; font-weight: 650; color: #1E242B; }
.wa-role { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: rgba(255,107,44,.14); color: #FF6B2C; }
.wa-role.admin, .wa-role.moderator { background: #1E242B; color: #fff; }
.wa-role.client { background: #eceae6; color: #7a756c; }
.wa-bubble {
  max-width: min(78%, 420px);
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  border: 1px solid #e6e3dc;
  padding: 8px 12px 6px;
  color: #1E242B;
  font-size: 16px;
  line-height: 1.35;
}
.wa-row.mine .wa-bubble { background: #fff1ea; border: 0; border-radius: 18px 18px 4px 18px; }
.wa-text { white-space: pre-wrap; word-break: break-word; }
.wa-time { display: block; text-align: right; font-size: 11px; color: #7a756c; margin-top: 2px; }
.wa-system {
  align-self: center;
  background: #eceae6;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1E242B;
  text-align: center;
  margin: 4px 0;
}
.wa-date { display: flex; justify-content: center; margin: 8px 0; }
.wa-date span { background: rgba(230,227,220,.85); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: #1E242B; }
.wa-compose-wrap { margin-top: 8px; }
.wa-composer { display: flex; gap: 8px; align-items: flex-end; padding: 4px 0 8px; }
.wa-pill {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e6e3dc;
  border-radius: 28px;
  padding: 4px;
  min-height: 48px;
  box-sizing: border-box;
}
.wa-pill textarea,
.wa-pill textarea:focus {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  line-height: 24px;
  padding: 8px 4px;
  margin: 0;
  font: inherit;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #1E242B;
  overflow-y: auto;
  box-sizing: border-box;
}
.wa-pill .wa-icon { flex-shrink: 0; align-self: flex-end; }
.wa-icon { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 18px; color: #7a756c; }
.wa-round {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #FF6B2C;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wa-round.rec { background: #B4332A; }
.wa-emoji-panel { background: #F7F6F2; padding: 6px 8px 10px; max-height: 220px; overflow: auto; border-radius: 12px; }
.wa-emoji-tabs { display: flex; gap: 8px; margin-bottom: 6px; }
.wa-emoji-tabs button { border: 0; background: none; color: #7a756c; font-weight: 650; cursor: pointer; font-size: 13px; }
.wa-emoji-tabs button.on { color: #FF6B2C; font-weight: 800; }
.wa-emoji-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.wa-emoji-grid button { border: 0; background: none; font-size: 26px; cursor: pointer; padding: 6px; line-height: 1; }
.wa-voice { display: flex; align-items: center; gap: 8px; min-width: 180px; margin-top: 4px; }
.wa-voice-play { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #FF6B2C; color: #fff; cursor: pointer; flex-shrink: 0; }
.wa-wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 22px; }
.wa-wave i { display: block; width: 3px; border-radius: 2px; background: #e6e3dc; }
.wa-wave i.on { background: #FF6B2C; }
.wa-voice-time { font-size: 12px; font-weight: 650; color: #7a756c; white-space: nowrap; }
.wa-img { max-width: 180px; max-height: 140px; border-radius: 12px; display: block; margin-top: 6px; cursor: pointer; }
.wa-file { color: #FF6B2C; font-weight: 650; display: inline-block; margin-top: 4px; }
.wa-delete { margin-top: 4px; border: 0; background: none; color: #B4332A; cursor: pointer; font-size: 12px; font-weight: 650; }
.wa-empty { color: #7a756c; text-align: center; padding: 16px 8px; }
.hidden { display: none !important; }

/* voice recording state (3.3.3) */
.wa-rec { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; color: #1E242B; }
.wa-rec b { color: #D32F2F; }
.wa-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #D32F2F; animation: wa-pulse 0.9s ease-in-out infinite alternate; }
.wa-rec-time { font-variant-numeric: tabular-nums; font-weight: 650; }
.wa-rec-cancel { margin-left: auto; border: 0; background: none; color: #7a756c; cursor: pointer; font-weight: 650; }
.wa-compose-wrap.recording .wa-pill > :not(.wa-rec) { display: none !important; }
.wa-round.rec { background: #D32F2F; animation: wa-pulse-ring 1.2s ease-out infinite; }
.wa-peer-rec { color: #FF6B2C; font-size: 13px; font-weight: 650; padding: 2px 4px 6px; }
.wa-peer-rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #D32F2F; margin-right: 6px; animation: wa-pulse 0.9s ease-in-out infinite alternate; }
@keyframes wa-pulse { from { opacity: 1; } to { opacity: 0.2; } }
@keyframes wa-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(211,47,47,0.5); } 100% { box-shadow: 0 0 0 12px rgba(211,47,47,0); } }

/* admin: delete all orders (3.3.3) */
.order-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.order-tools .search { flex: 1; min-width: 200px; max-width: 360px; }
#orders-delete-all { background: #D32F2F; color: #fff; white-space: nowrap; }
.confirm-wipe { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(30,36,43,.55); padding: 16px; }
.confirm-wipe .box { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.confirm-wipe h3 { margin: 0 0 8px; color: #D32F2F; }
.confirm-wipe p { margin: 6px 0; }
.confirm-wipe input { width: 100%; box-sizing: border-box; margin: 10px 0; }
.confirm-wipe .row { display: flex; gap: 8px; justify-content: flex-end; }
.confirm-wipe .err { color: #D32F2F; min-height: 1.2em; }

/* 3.3.4: fullscreen photo + send ticks */
.wa-lightbox { position: fixed; inset: 0; z-index: 400; background: #000; display: grid; place-items: center; }
.wa-lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; transform-origin: center center; }
.wa-lightbox-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.wa-tick { margin-left: 4px; font-size: 12px; color: #7a756c; }
.wa-tick.sending { opacity: 0.7; }
.wa-tick.failed { color: #D32F2F; cursor: pointer; font-size: 16px; }

/* 3.3.6 cart */
.cart-bar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:70;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:720px;margin:0 auto;padding:12px 14px 12px 18px;border-radius:18px;background:#1E242B;color:#F7F6F2;box-shadow:0 10px 30px rgba(30,36,43,.28)}
.cart-bar .cart-bar-text{font-weight:700}
.cart-bar .btn{background:#FF6B2C;color:#fff;border:0}
.order-create{padding-bottom:84px}
.qty-stepper{display:inline-flex;align-items:center;gap:2px;border:1px solid #FF6B2C;border-radius:999px;padding:2px;background:#fff;flex:none}
.qty-btn{width:30px;height:30px;border:0;border-radius:50%;background:#FFF1EA;color:#FF6B2C;font-size:18px;font-weight:700;line-height:1;cursor:pointer}
.qty-value{min-width:24px;text-align:center;font-weight:700;color:#1E242B}
.add-svc{flex:none;white-space:nowrap}
.svc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 4px;border-bottom:1px solid rgba(30,36,43,.08)}
.svc-row.on .svc-name{color:#FF6B2C}
.svc-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.cart-panel{display:block}
.trade-label{margin:12px 0 2px}
.cart-line{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid rgba(30,36,43,.08)}
.cart-line-name{min-width:0}
.cart-line-sum{color:#FF6B2C;font-weight:700;white-space:nowrap}
.cart-total{font-weight:800;font-size:18px;text-align:right;margin:8px 0 4px;color:#1E242B}
.pick-pill.together{cursor:pointer;border:1px dashed #FF6B2C;background:#FFF7F2}
@media (max-width:520px){.cart-line{grid-template-columns:1fr auto auto}.cart-line-sum{grid-column:1/2}}

.addresses-card .addr-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.addr-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid rgba(30,36,43,.08)}
.addr-text{flex:1;min-width:0;display:flex;flex-direction:column}
.addr-form{display:grid;gap:8px;margin-top:10px}
.saved-address-row{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.invite-card{background:#FF6B2C;color:#fff;border:0}
.invite-card h3,.invite-card p{color:#fff}
.invite-card .btn{background:#fff;color:#FF6B2C}

.voice-compose{display:grid;gap:8px;margin:10px 0}
.voice-draft-list{display:grid;gap:8px}
.voice-draft{display:flex;align-items:center;gap:8px;background:#FFE9DE;border-radius:18px;padding:6px 8px}
.voice-draft .wa-voice{flex:1;margin-top:0}
.voice-draft .voice-state.error{color:#B3261E}
.voice-pill{min-height:44px;display:flex;align-items:center;padding:0 14px}
.voice-compose .hidden{display:none!important}

.feed-header{display:grid;gap:8px;margin:8px 0}
.feed-balance-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.feed-balance{border:0;border-radius:999px;background:#FFE9DE;color:#FF6B2C;font-weight:700;padding:7px 14px;cursor:pointer}
.feed-tabs{display:flex;gap:8px;overflow-x:auto}
.feed-tab{border:1px solid #e6e3dc;background:#fff;border-radius:999px;padding:6px 14px;cursor:pointer;white-space:nowrap}
.feed-tab.on{background:#FF6B2C;border-color:#FF6B2C;color:#fff}
.feed-card{display:grid;gap:5px}
.money-block{display:grid;gap:2px}
.money-total{color:#1E242B;font-size:16px}
.money-amount{color:#FF6B2C;font-weight:700}
.money-sub{color:#8A8F96;font-size:12px}
.feed-lowbalance{border:0;border-radius:10px;background:#FFE9DE;color:#FF6B2C;font-weight:700;padding:6px 12px;cursor:pointer;text-align:left}
.taken-when{font-weight:800;font-size:24px;color:#1E242B}
.taken-today{background:#FFE9DE;border:1.5px solid #FF6B2C}
.taken-today .taken-when{color:#FF6B2C}
.quick-actions{display:flex;justify-content:space-around;margin:10px 0}
.round-action{display:grid;justify-items:center;gap:4px;border:0;background:none;color:#1E242B;font-size:12px;text-decoration:none;cursor:pointer}
.round-icon{width:56px;height:56px;border-radius:50%;background:#FF6B2C;display:flex;align-items:center;justify-content:center;font-size:24px}
.todo-block{background:#fff;border:1px solid #e6e3dc;border-radius:16px;padding:14px;display:grid;gap:8px;margin:10px 0}
.todo-block h3{margin:0}
.todo-photo{width:96px;height:96px;object-fit:cover;border-radius:14px}
.pending-change{background:#FFE9DE;border:1px solid #FF6B2C;border-radius:14px;padding:12px;margin:10px 0;display:grid;gap:4px}
.reason-chip.on{background:#FF6B2C;color:#fff}
.feed-fee,.feed-who,.feed-count{font-size:12px}
.feed-address{font-weight:650}
.feed-when{font-weight:650}
.feed-chips{display:flex;flex-wrap:wrap;gap:6px}
.feed-chip{background:#FFE9DE;border-radius:999px;padding:4px 10px;font-size:12px}
.feed-media{font-size:13px}

/* 3.3.11 simplified auth */
.code-cells{display:flex;gap:8px;justify-content:center;margin:10px 0}
.code-cell{width:min(48px,13vw);height:60px;border:1px solid #E3DED4;border-radius:16px;background:#fff;text-align:center;font:inherit;font-size:28px;font-weight:700;color:#1E242B;outline:none;padding:0}
.code-cell:focus{border:2px solid #FF6B2C}
.gate-consent{margin:0;color:#8A8F96;font-size:12px;text-align:center}
.gate-consent a{color:#E25A1C;font-weight:650;text-decoration:underline}
.gate-page .error:empty{display:none}

/* 3.3.12 client catalog: search, hint chips, popular 3x2, one 3-column category grid, single list per category. */
.cat-search { width: 100%; box-sizing: border-box; margin: 4px 0 4px; padding: 13px 18px; border: 1px solid #e3e0d6; border-radius: 28px; background: #fff; font: inherit; font-size: 16px; color: #1E242B; }
.cat-search:focus { outline: none; border-color: #FF6B2C; }
.hint-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; -webkit-overflow-scrolling: touch; }
.hint-chip { flex: 0 0 auto; border: 1px solid #e3e0d6; background: #fff; color: #1E242B; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.cat-h { margin: 20px 0 6px; font-size: 20px; color: #1E242B; }
.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pop-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 118px; padding: 10px 6px; border: 1px solid #e3e0d6; background: #fff; border-radius: 16px; cursor: pointer; font: inherit; color: #1E242B; }
.pop-icon { width: 40px; height: 40px; border-radius: 12px; background: #FFF0E8; display: grid; place-items: center; }
.pop-icon svg, .cat-icon svg { width: 24px; height: 24px; fill: #FF6B2C; }
.pop-name { font-size: 13px; line-height: 16px; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-from { margin-top: auto; font-size: 12px; font-weight: 700; color: #FF6B2C; }
.cat-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; cursor: pointer; font: inherit; color: #1E242B; }
.cat-icon { width: 72px; height: 72px; border-radius: 18px; background: #FFF0E8; display: grid; place-items: center; }
.cat-icon svg { width: 32px; height: 32px; }
.cat-name { font-size: 13px; line-height: 16px; text-align: center; }
.trade-head { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.trade-head h3 { margin: 0; font-size: 20px; }
.group-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; position: sticky; top: 66px; background: #fff; z-index: 3; }
.group-chip { flex: 0 0 auto; border: 0; background: #FFF0E8; color: #1E242B; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.group-title { margin: 18px 0 2px; font-size: 18px; color: #1E242B; scroll-margin-top: 120px; }
.svc-list { display: block; }
.svc-line { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e8e5dc; }
.svc-line:last-child { border-bottom: 0; }
.svc-main { flex: 1; min-width: 0; cursor: pointer; }
.svc-title { display: block; font-size: 16px; font-weight: 500; color: #1E242B; }
.svc-from { display: block; font-size: 14px; font-weight: 700; color: #FF6B2C; }
.svc-desc { margin: 4px 0 0; font-size: 13px; color: #3E4651; }
.add-plus { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #FF6B2C; color: #fff; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.free-task { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 20px 0 24px; padding: 14px; text-align: left; border: 1px solid #e3e0d6; background: #fff; border-radius: 16px; cursor: pointer; font: inherit; color: #1E242B; }
.free-task span { font-size: 13px; color: #3E4651; }
.catalog-picker, .cat-body, .svc-list, .pop-grid, .cat-grid3 { min-width: 0; max-width: 100%; box-sizing: border-box; }
.hint-chips, .group-chips { max-width: 100%; }
.pop-tile, .cat-tile { min-width: 0; }

/* 3.3.13–3.3.14 hidden add-ons and popular-on-home picker */
.addon-for-list, #home-popular-catalog { max-height: 280px; overflow: auto; border: 1px solid #e3e0d6; border-radius: 12px; padding: 8px; background: #fff; }
.addon-for-item, .pop-pick-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.badge-addon { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #FFF1E8; color: #C2410C; font-size: 11px; }
#home-popular-picked .pop-pick-row { padding: 8px 0; border-bottom: 1px solid #eee; }
#category-addon-for-wrap { grid-column: 1 / -1; }

/* 3.3.17 (GB-31): service/category editor — settings first, then a calm grouped form. */
.cat-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 0 0 12px; }
.cat-settings > .hint-fold { margin: 0; }
.cat-panel:has(.svc-form) { position: static; padding: 0; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.svc-form { display: grid; gap: 16px; padding: 18px 20px 20px; color: var(--charcoal); }
.svc-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.svc-form-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc-span-2 { grid-column: span 2; }
.svc-form label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.svc-form input:not([type="checkbox"]), .svc-form select, .svc-form textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; color: var(--charcoal); font: inherit; font-size: 0.95rem; font-weight: 600; }
.svc-form input:focus, .svc-form select:focus, .svc-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.svc-form textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.svc-group { margin: 0; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--off); display: grid; gap: 12px; }
.svc-group legend { padding: 0 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--charcoal); }
.svc-form .svc-check, .svc-form .svc-switch { color: var(--charcoal); font-size: 0.9rem; font-weight: 650; gap: 8px; }
.svc-form .svc-switch { padding: 6px 12px; border-radius: 999px; background: var(--orange-soft); }
.svc-form input[type="checkbox"] { accent-color: var(--orange); width: 18px; height: 18px; }
.svc-block { display: grid; gap: 6px; }
/* 3.3.21 GB-55: collapsible service editor sections */
.svc-group legend:has(.svc-toggle) { padding: 0 2px; }
.svc-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 2px 6px; margin: 0; border-radius: 8px; font: inherit; font-size: 0.78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--charcoal); cursor: pointer; }
.svc-toggle:hover { color: var(--orange); }
.svc-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--orange-soft); color: var(--orange); }
.svc-toggle .svc-chev { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; }
.svc-group.svc-collapsed .svc-chev { transform: rotate(-45deg); }
.svc-group.svc-collapsed { padding-bottom: 6px; gap: 0; background: #fff; }
.svc-group.svc-collapsed > :not(legend) { display: none !important; }
.svc-toggle .svc-count { font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.svc-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.svc-actions .btn { min-width: 128px; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-form { padding: 14px; }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-span-2 { grid-column: auto; }
  .svc-actions .btn { flex: 1; min-width: 0; }
}

/* 3.3.17 (GB-26/27): per-master settings in the user editor. */
.master-box { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--off); }
.master-box legend { font-weight: 800; font-size: 0.85rem; padding: 0 6px; color: var(--charcoal); }
.master-box .hint { color: var(--muted); font-size: 0.8rem; margin: 0; }
.user-flag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; background: var(--danger-soft); color: var(--danger); }
.user-flag.info { background: var(--info-soft); color: var(--info); }

/* 3.3.18: multi-line service descriptions (GB-40) and quantity discounts (GB-39). */
.svc-desc { white-space: pre-line; }
.svc-disc { display: block; font-size: 12px; font-weight: 600; color: #FF6B2C; margin-top: 2px; }
.cart-line-disc { color: #FF6B2C; font-weight: 600; margin-left: 2px; }
.qty-disc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.qty-disc-grid label { font-size: 13px; }
.qty-disc-grid input { width: 100%; }
@media (max-width: 640px) { .qty-disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.together-picked { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.together-picked .pop-pick-row span { flex: 1; }
.together-picked:empty::before { content: "Не выбрано — подсказки подбираются автоматически."; color: #6b7280; font-size: 13px; }

/* 3.3.21 GB-51 / GB-50 */
.wa-order-tag { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 999px; background: #FFE7DC; color: #1E242B; font-size: 12px; font-weight: 600; }
.kyc-box { margin-top: 10px; padding: 10px 12px; border: 1px solid #E6E2DA; border-radius: 12px; background: #F7F6F2; }
.kyc-box .kyc-photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.kyc-box .kyc-photos figure { margin: 0; text-align: center; font-size: 12px; color: #6B7280; }
.kyc-box .kyc-photos img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; cursor: pointer; background: #fff; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #E8F5EC; color: #1F7A3E; font-size: 12px; font-weight: 700; }
.master-profile { display: flex; gap: 12px; align-items: center; margin: 6px 0; }
.master-profile .mp-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #FFE7DC; color: #FF6B2C; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.master-profile .mp-meta { font-size: 13px; color: #6B7280; }
.mp-works { display: flex; gap: 8px; overflow-x: auto; margin: 6px 0; }
.mp-works img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; background: #F7F6F2; }
.btn.problem { border-color: #FF6B2C; color: #FF6B2C; }

/* 3.3.22 GB-58: profile photos / letter avatars */
.u-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #FF6B2C; color: #fff; font-weight: 700; line-height: 1; vertical-align: middle; }
.u-avatar.has-photo { background: #F7F6F2; cursor: zoom-in; }
.u-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-who { flex: 1; min-width: 0; }
.client-row, .review-line { display: flex; align-items: center; gap: 10px; }
.mp-photo.zoomable { cursor: zoom-in; }
.wa-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-right: 6px; vertical-align: middle; cursor: zoom-in; }
.photo-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(30, 36, 43, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.photo-zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.photo-zoom-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FF6B2C; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.profile-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 3.3.22 GB-54: order moderation */
.badge.moderation { background: #FFF1E9; color: #C24E14; }
.mod-note { background: #FFF1E9; color: #1E242B; border-left: 3px solid #FF6B2C; padding: 8px 12px; border-radius: 8px; margin: 8px 0; }
.mod-note.rejected { background: #FDECEC; border-left-color: #C62828; }
.mod-panel { margin-bottom: 14px; border: 1px solid #FFD5C2; background: #fff; }
.mod-head { display: flex; align-items: center; gap: 10px; }
.mod-card { border-left: 3px solid #FF6B2C; margin-top: 10px; display: grid; gap: 4px; }
.mod-card .actions { display: flex; gap: 8px; margin-top: 6px; }
.mod-desc { margin: 4px 0; color: #1E242B; }

/* 3.3.24 admin: search hint chips */
#search-hints-list .hint-admin-row { padding: 10px 0; border-bottom: 1px solid #eee; flex-wrap: wrap; }
#search-hints-list .hint-admin-title { flex: 1; min-width: 180px; }
#search-hints-list .hint-admin-row.is-off .hint-admin-title { opacity: 0.55; }
#search-hints-list .hint-on { margin: 0; }
#search-hint-catalog { max-height: 280px; overflow: auto; border: 1px solid #e3e0d6; border-radius: 12px; padding: 8px; background: #fff; }
#search-hint-catalog .pop-pick-row.is-picked { background: #F7F6F2; border-radius: 8px; padding: 8px; }
#view-search-hints .svc-actions { margin-top: 8px; }

/* ---------- 3.3.25: public pages (catalog, landings, masters, contacts, docs, 404) ---------- */
.seo-page { max-width: 1080px; margin: 0 auto; padding: 28px 6vw 48px; }
.seo-page h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 8px 0 12px; }
.seo-page h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin: 28px 0 12px; }
.seo-page .lead { font-size: 1.08rem; color: var(--muted); max-width: 64ch; }
.seo-page p, .seo-page li { line-height: 1.6; }
.seo-text { max-width: 72ch; }
.seo-text ul { padding-left: 1.2em; }
.seo-price { display: inline-block; margin: 4px 0 8px; padding: 6px 14px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 800; }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--charcoal); font-weight: 650; }
.svc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.svc-toc a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; text-decoration: none; font-weight: 650; font-size: 0.9rem; }
.svc-section { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; scroll-margin-top: 90px; }
.svc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc-head h2 { margin: 0; }
.svc-head h2 a { text-decoration: none; }
.svc-tree, .svc-sub { list-style: none; padding: 0; margin: 10px 0 0; }
.svc-tree > li { padding: 10px 0; border-top: 1px solid var(--line); }
.svc-tree > li:first-child { border-top: 0; }
.svc-sub { margin: 6px 0 0 14px; columns: 2 280px; column-gap: 28px; }
.svc-sub li { break-inside: avoid; padding: 3px 0; font-size: 0.95rem; }
.svc-price { color: var(--muted); font-weight: 650; white-space: nowrap; font-size: 0.92rem; }
.seo-steps ol { padding-left: 1.3em; }
.seo-steps li, .seo-rules li { margin: 6px 0; }
.master-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 18px 0; }
.master-card { display: grid; grid-template-columns: 72px 1fr; gap: 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.master-card h2 { margin: 0 0 4px; font-size: 1.15rem; }
.m-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--orange-soft); }
.m-initial { display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: var(--orange-dark); }
.m-badge { display: inline-block; font-size: 0.7rem; font-weight: 750; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.m-meta, .m-skills { margin: 2px 0; color: var(--muted); font-size: 0.92rem; }
.m-reviews { display: grid; gap: 8px; margin-top: 10px; }
.stars { color: var(--orange); letter-spacing: 1px; }
.review-card { background: var(--off); border-radius: 14px; padding: 10px 12px; }
.review-card p { margin: 4px 0; }
.review-card footer { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.82rem; }
.empty-state { padding: 20px; }
.contacts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 720px; }
.contacts dt { color: var(--muted); font-weight: 650; }
.contacts dd { margin: 0; font-weight: 650; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.doc-card { display: grid; gap: 4px; text-decoration: none; padding: 16px; }
.doc-card span { color: var(--muted); font-size: 0.9rem; }
.doc-body { line-height: 1.65; padding: 20px 22px; overflow-wrap: anywhere; }
.error-page { text-align: center; padding: 40px 0; }
.error-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--orange); margin: 0; line-height: 1; }
.error-page .seo-cta { justify-content: center; }
.error-page .lead { margin: 0 auto; }
.footer-req { flex-basis: 100%; margin: 6px 0 0; color: rgba(247, 246, 242, 0.72); font-size: 0.85rem; line-height: 1.5; }
.footer-req a { color: rgba(247, 246, 242, 0.9); }
.nav a[aria-current] { color: var(--orange-dark); }
@media (max-width: 640px) {
  .seo-page { padding: 18px 5vw 36px; }
  .svc-head { flex-direction: column; align-items: flex-start; }
  .svc-sub { columns: 1; margin-left: 8px; }
  .master-card { grid-template-columns: 56px 1fr; }
  .m-avatar { width: 56px; height: 56px; }
  .contacts { grid-template-columns: 1fr; gap: 2px; }
  .contacts dd { margin-bottom: 10px; }
}

/* 3.3.25 home: order CTA, real reviews, masters, guarantee */
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.hero-cta .btn { font-size: 1.05rem; padding: 14px 22px; }
.home-proof { margin: 28px 0; }
.home-proof .proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.proof-grid .review-card { background: white; border: 1px solid var(--line); }
.proof-masters { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.proof-master { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; width: 120px; text-align: center; font-size: 0.88rem; }
.proof-master img, .proof-master .m-initial { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--orange-soft); }
.guarantee { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 38px; margin: 0; }
.guarantee li { margin: 5px 0; line-height: 1.5; }
.home-masters .btn.ghost { color: white; border-color: rgba(255, 255, 255, 0.45); }
.home-masters .become-steps li { margin: 4px 0; }
.become-steps { margin: 8px 0 14px; padding-left: 1.2em; }

/* 3.3.25 complaints & blocks */
.report-link { background: none; border: 0; padding: 2px 4px; color: var(--muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline; }
.report-link:hover { color: var(--danger); }
.report-dialog { position: fixed; inset: 0; z-index: 80; background: rgba(30, 36, 43, 0.5); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; box-sizing: border-box; }
.report-dialog *, .report-dialog *::before, .report-dialog *::after { box-sizing: border-box; }
.report-card { width: min(440px, 100%); min-width: 0; background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; max-height: 92vh; overflow: auto; }
.report-card h3 { margin: 0; }
.report-card label, .report-card label.reason { min-width: 0; white-space: normal; overflow-wrap: anywhere; width: 100%; line-height: 1.3; }
.report-card label input { flex: 0 0 auto; }
.report-card label.reason { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.report-card textarea { width: 100%; min-height: 80px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.blocked-list { display: grid; gap: 8px; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.complaint-card .snapshot { background: var(--off); border-radius: 12px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.seo-page section, .seo-page .seo-steps, .seo-page .seo-rules { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }

/* ===== 3.3.29: review photos, favorites, promo, quick order ===== */
.review-photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.review-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; cursor: zoom-in; background: #F7F6F2; outline-offset: 2px; }
.review-photos img:focus-visible { outline: 2px solid #FF6B2C; }
.review-video { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 10px; background: #1E242B; color: #F7F6F2; font-size: 12px; text-decoration: none; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(247,246,242,.18); color: #fff; font-size: 38px; cursor: pointer; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #F7F6F2; font-size: 14px; }
.review-prompt { background: #FFF1E9; border-left: 3px solid #FF6B2C; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.review-prompt p { margin: 0 0 8px; }
.rv-back { position: fixed; inset: 0; z-index: 90; background: rgba(30,36,43,.5); display: flex; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; }
.rv-card { width: min(460px, 100%); max-height: 100%; overflow-y: auto; background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.rv-card h3, .rv-card h4 { margin: 0; }
.rv-card textarea { min-height: 84px; width: 100%; box-sizing: border-box; }
.rv-stars { display: flex; gap: 4px; }
.rv-star { border: 0; background: none; font-size: 34px; line-height: 1; color: #D8D4CB; cursor: pointer; padding: 0 2px; }
.rv-star.on { color: #FF6B2C; }
.rv-hint { margin: 0; font-size: 13px; color: #6B7280; }
.rv-pick input { display: none; }
.rv-actions { display: flex; justify-content: flex-end; gap: 8px; }
.mp-reviews-title { margin-top: 10px; font-weight: 700; }
.mp-review { margin: 8px 0; }
.heart-btn { border: 0; background: none; font-size: 24px; line-height: 1; color: #FF6B2C; cursor: pointer; margin-left: 6px; vertical-align: middle; }
.heart-btn.on { transform: scale(1.1); }
.direct-banner { background: #FFF1E9; border-left: 3px solid #FF6B2C; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fav-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #E6E3DC; }
.fav-row:first-child { border-top: 0; }
.fav-info { flex: 1; min-width: 0; }
.promo-box { margin: 10px 0; }
.promo-row { display: flex; gap: 8px; align-items: center; }
.promo-row input { flex: 1; }
.promo-note { margin: 4px 0 0; font-size: 13px; color: #6B7280; }
.promo-note.ok { color: #1B7F4B; } .promo-note.bad { color: #C0392B; }
.promo-master, .promo-client { background: #F7F6F2; border-radius: 10px; padding: 8px 10px; margin: 8px 0; font-size: 14px; }
.promo-comp { color: #1B7F4B; font-weight: 700; }
.direct-for-you { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #1E242B; color: #F7F6F2; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.order-marks { font-size: 13px; color: #FF6B2C; font-weight: 700; margin: 4px 0; }
.quick-order { display: flex; flex-direction: column; gap: 12px; }
.quick-order textarea { min-height: 96px; width: 100%; box-sizing: border-box; }
.quick-when-title { font-weight: 700; margin-bottom: 6px; }
.quick-when-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.quick-chip.active { background: #FF6B2C; color: #fff; border-color: #FF6B2C; }
.quick-hint { background: #FFF1E9; border-left: 3px solid #FF6B2C; border-radius: 10px; padding: 10px 12px; margin: 0; }
.quick-media { border: 1px solid #E6E3DC; border-radius: 14px; padding: 10px 12px; }
.quick-media-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.quick-media input[type=file] { display: none; }
.quick-rec { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.lazy-video .order-video { max-width: 100%; border-radius: 12px; }
.check-row { display: flex; gap: 8px; align-items: center; }
.review-photo-cell { position: relative; display: inline-block; }
.review-photo-del { position: absolute; top: 2px; right: 8px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #1E242B; color: #fff; cursor: pointer; line-height: 1; }
.mod-media { margin: 8px 0; }
.mod-media-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.promo-form, .broadcast-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.promo-card, .promo-usage { margin-top: 8px; }
.bc-filters { border: 1px solid #E6E3DC; border-radius: 12px; padding: 8px 12px; }
.bc-filters label { display: block; margin: 8px 0; }
.review-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.review-thumbs img, .review-thumbs a img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block; background: #F7F6F2; }

/* 3.3.30: помощник, функции, справочник цен, прайсы мастеров */
.assist-hint { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--off); border: 1px solid var(--line); display: grid; gap: 4px; }
.assist-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.assist-chip { padding: 2px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-size: 0.88rem; }
.assist-transcript { font-size: 0.92rem; color: var(--charcoal); }
.assist-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; }
.assist-pick select { max-width: 420px; }
.assist-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.assist-stat { background: var(--off); border-radius: 12px; padding: 10px; display: grid; }
.assist-stat b { font-size: 1.4rem; color: var(--charcoal); }
.assist-tabs { margin: 12px 0; gap: 6px; flex-wrap: wrap; }
.assist-try-out { display: grid; gap: 4px; margin-top: 8px; }
.feature-card { margin-bottom: 12px; }
.feature-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.feature-row input { margin-top: 4px; accent-color: var(--orange); }
.guide-row { display: grid; gap: 6px; }
.guide-inputs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.guide-inputs input[type="number"] { width: 110px; }
.guide-inputs input:not([type]) { flex: 1 1 200px; }
/* client / master site */
.price-guide { color: var(--muted); font-size: 0.9rem; }
.price-guide b { color: var(--charcoal); }
.pause-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--off); border: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.reply-badge { color: var(--ok); font-size: 0.88rem; font-weight: 700; }
.onway-line { padding: 8px 12px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; }
.mp-list { display: grid; gap: 6px; }
.mp-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mp-row b { color: var(--charcoal); white-space: nowrap; }
.assist-client { padding: 8px 12px; border-radius: 12px; background: var(--off); border: 1px dashed var(--orange); font-size: 0.92rem; }

/* 3.3.32 admin: business accounts + demand map */
.biz-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.biz-details { margin-top: 10px; border-top: 1px solid rgba(30,36,43,.12); padding-top: 10px; }
.biz-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.biz-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px; }
.dm-filters { flex-wrap: wrap; gap: 6px; align-items: center; }
.dm-totals { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.dm-stat { background: #fff; border-radius: 12px; padding: 10px 14px; min-width: 110px; display: flex; flex-direction: column; }
.dm-stat strong { font-size: 22px; color: #1E242B; }
.dm-map { height: 520px; border-radius: 14px; overflow: hidden; background: #F7F6F2; border: 1px solid rgba(30,36,43,.12); }
.dm-map-off { display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; height: auto; min-height: 120px; }
.dm-table { display: grid; gap: 2px; margin-bottom: 12px; overflow-x: auto; }
.dm-tr { display: grid; grid-template-columns: minmax(170px, 2fr) repeat(5, minmax(70px, 1fr)) minmax(160px, 3fr); gap: 8px; padding: 6px 8px; background: #fff; border-radius: 8px; font-size: 14px; }
.dm-table .dm-tr:has(> span:nth-child(5):last-child) { grid-template-columns: minmax(170px, 2fr) repeat(3, minmax(70px, 1fr)) minmax(140px, 1.5fr); }
.dm-th { background: #1E242B; color: #F7F6F2; font-weight: 600; }
.dm-short span:last-child { color: #FF6B2C; font-weight: 600; }
.biz-form { display: grid; gap: 10px; }
.biz-field { display: grid; gap: 4px; }
.biz-field input, .biz-field select, .biz-field textarea, .biz-branch input, .biz-add input, .biz-add select { width: 100%; box-sizing: border-box; }
.biz-sub { font-weight: 700; margin: 12px 0 4px; color: #1E242B; }
.biz-branch { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; margin-bottom: 6px; }
.biz-chips { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.biz-accept a { color: #FF6B2C; }
.biz-toggle { margin-bottom: 10px; font-weight: 600; }
.biz-add { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin: 8px 0; }
.biz-member, .biz-order { padding: 8px 0; border-bottom: 1px solid rgba(30,36,43,.1); display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; }
.biz-order { display: block; }
@media (max-width: 560px) { .biz-branch { grid-template-columns: 1fr; } .biz-add { grid-template-columns: 1fr; } .dm-map { height: 380px; } }

/* 3.3.33 partner stores + turnkey renovation */
.pt-head { display: flex; gap: 12px; align-items: center; }
.pt-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid rgba(30,36,43,.1); }
.pt-discount { color: #FF6B2C; font-weight: 800; margin: 6px 0 2px; }
.pt-terms { white-space: pre-line; }
.pt-fee { background: #fff; border-left: 3px solid #1E242B; padding: 6px 10px; border-radius: 8px; margin: 6px 0; font-size: 14px; }
.pt-map { height: 360px; margin: 12px 0; }
.pt-form label, .reno-form label { display: grid; gap: 4px; }
.pt-form input, .pt-form textarea, .reno-form input, .reno-form textarea { width: 100%; box-sizing: border-box; }
.reno-progress { height: 10px; border-radius: 999px; background: rgba(30,36,43,.1); overflow: hidden; margin: 8px 0 2px; }
.reno-progress span { display: block; height: 100%; background: #FF6B2C; border-radius: 999px; }
.qr-card { background: #fff; color: #1E242B; border-radius: 22px; padding: 18px; text-align: center; border: 2px solid #1E242B; }
.qr-card .qr-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #FF6B2C; background: #1E242B; color: #F7F6F2; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; overflow: hidden; }
.qr-card .qr-badge { display: inline-block; background: #FF6B2C; color: #fff; font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 13px; letter-spacing: .05em; margin: 6px 0; }
.qr-card .qr-box svg { width: min(260px, 70vw); height: auto; display: block; margin: 10px auto; }
.qr-card .qr-timer { font-size: 13px; opacity: .75; }
.reno-stage { border-top: 1px solid rgba(30,36,43,.12); padding: 10px 0; }
.reno-stage.current { border-left: 4px solid #FF6B2C; padding-left: 10px; }
.reno-stage .reno-step { font-weight: 800; }
.reno-bid { background: #fff; border-radius: 12px; padding: 8px 10px; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.reno-media-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.reno-media-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; cursor: zoom-in; background: #F7F6F2; }
.reno-tpls { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pt-list-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(30,36,43,.1); }

/* 3.3.34: public master page /m/<slug> */
.mpage { display: grid; gap: 18px; }
.mp-hero { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mp-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid var(--orange); background: var(--charcoal); color: var(--off); display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 800; }
.mp-head h1 { margin: 2px 0 6px; }
.mp-verified { margin: 0 0 6px; font-weight: 750; color: var(--ok); }
.mp-verified span { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; align-items: center; justify-content: center; font-size: 13px; margin-right: 4px; }
.mp-meta, .mp-skills, .mp-resp { margin: 4px 0; color: var(--muted); }
.mp-meta .stars { color: var(--orange); }
.mp-paused { margin: 8px 0 0; font-weight: 700; color: var(--danger); }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mp-call { min-width: 160px; }
.mp-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.mp-block h2 { margin: 0 0 12px; }
.mp-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mp-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mp-prices li:last-child { border-bottom: 0; }
.mp-pt small { display: block; color: var(--muted); font-size: .85rem; }
.mp-pp { white-space: nowrap; color: var(--charcoal); }
.mp-pp.fixed { color: var(--orange-dark); }
.mp-note { font-size: .85rem; margin: 10px 0 0; }
.mp-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.mp-work img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.mp-reviews { display: grid; gap: 12px; }
.mp-cta { background: var(--charcoal); color: var(--off); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mp-cta p { margin: 0; max-width: 60ch; }
@media (max-width: 640px) { .mp-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .mp-actions { justify-content: center; } }

/* 3.3.34: client price, price offers, training */
.cp-box { border: 1px dashed var(--orange); background: var(--orange-soft); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.cp-box label { font-weight: 700; }
.cp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-row input { max-width: 180px; }
.cp-badge { display: inline-block; background: var(--orange); color: #fff; font-weight: 800; border-radius: 999px; padding: 3px 10px; font-size: .85rem; }
.cp-offer { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cp-offer:last-child { border-bottom: 0; }
.cp-offer .cp-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.tr-list { display: grid; gap: 14px; }
.tr-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; }
.tr-item video { width: 100%; max-height: 70vh; background: var(--charcoal); border-radius: 14px; }
.tr-chapters { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-chapters button { border: 1px solid var(--line); background: var(--off); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.tr-state { font-weight: 700; }
.tr-state.ok { color: var(--ok); }
.tr-quiz { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.tr-quiz fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.tr-quiz label { display: flex; gap: 8px; padding: 4px 0; align-items: flex-start; }
.tr-gate { background: var(--charcoal); color: var(--off); border-radius: 14px; padding: 12px 14px; }
.mpg-card .mpg-link { word-break: break-all; font-weight: 700; }
.mpg-share { display: flex; flex-wrap: wrap; gap: 8px; }
.mpg-og { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 96px 1fr; background: #fff; }
.mpg-og img { width: 96px; height: 96px; object-fit: cover; }
.mpg-og div { padding: 8px 10px; display: grid; gap: 2px; font-size: .88rem; }
.mpg-og b { font-size: .95rem; }
.mpg-qr { width: 180px; height: 180px; }

/* 3.3.35 «Статистика» */
.st-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.st-toolbar input[type=date], .st-toolbar select { padding: 6px 8px; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.st-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.st-stat small { font-size: 11px; margin-top: 2px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; margin-bottom: 12px; }
.st-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; border: 1px solid #ECEAE4; min-width: 0; }
.st-h { margin: 0 0 4px; font-size: 16px; color: #1E242B; }
.st-legend { margin: 0 0 8px; font-size: 12px; color: #6B7178; }
.st-chart { width: 100%; height: auto; display: block; background: #F7F6F2; border-radius: 10px; }
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { text-align: left; color: #6B7178; font-weight: 600; border-bottom: 1px solid #ECEAE4; padding: 6px 8px; white-space: nowrap; }
.st-table td { border-bottom: 1px solid #F1EFEA; padding: 6px 8px; vertical-align: top; }
.st-hbars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.st-hbar { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.st-hbar-track { background: #F7F6F2; border-radius: 6px; height: 14px; overflow: hidden; }
.st-hbar-fill { display: block; height: 100%; background: #FF6B2C; border-radius: 6px; }
.st-hbar-val { color: #1E242B; white-space: nowrap; }
.st-actions { display: flex; gap: 4px; }
.st-warn { background: #FFF1EA; border: 1px solid #FFD2BD; color: #1E242B; border-radius: 10px; padding: 8px 12px; }
.st-modal { position: fixed; inset: 0; background: rgba(30,36,43,.55); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.st-modal-box { background: #F7F6F2; border-radius: 16px; padding: 16px; width: min(900px, 100%); }
.st-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st-modal-head h3 { margin: 0; color: #1E242B; }
