/* OvenSaathi owner panel, super admin and auth pages. CRM style: dark sidebar, light workspace, mobile bottom bar. */
:root {
  --brand: #e2531b; --brand-2: #f97316; --brand-soft: #fff1e8; --brand-ink: #9a3412;
  --side: #1d1411; --side-2: #2a1c16; --side-text: #cdbfb6; --side-muted: #8f7c70;
  --bg: #f6f4f1; --panel: #ffffff; --panel-2: #f8f6f3; --line: #ece7e1; --line-2: #ddd5cc;
  --text: #1f1712; --text-2: #4d4038; --muted: #8b7d73;
  --ok: #15803d; --ok-soft: #e8f7ee; --warn: #b45309; --warn-soft: #fef5d8; --danger: #c81e1e; --danger-soft: #fdeeee;
  --info: #2563eb; --info-soft: #eaf1ff; --violet: #7c3aed; --violet-soft: #f1eafe; --teal: #0f766e; --teal-soft: #e2f6f3;
  --r: 16px; --r-sm: 11px;
  --shadow: 0 1px 2px rgba(31,23,18,.04), 0 6px 20px rgba(31,23,18,.05);
  --shadow-lg: 0 18px 48px rgba(31,23,18,.12);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14.5px/1.55 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.08rem; font-weight: 700; } h3 { font-size: .98rem; }
code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.muted { color: var(--muted); } .small { font-size: .84rem; } .nowrap { white-space: nowrap; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; } .right { text-align: right; }

/* ---------- Shell: slim icon rail + workspace ---------- */
.shell { display: grid; grid-template-columns: 92px 1fr; min-height: 100vh; }
.i { display: block; flex: none; }
.rail { background: var(--panel); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: stretch; padding: 14px 8px 12px; gap: 4px; overflow-y: auto; scrollbar-width: none; z-index: 25; }
.rail::-webkit-scrollbar { display: none; }
.rail-brand { display: grid; place-items: center; padding: 2px 0 12px; }
.rail-brand:hover { text-decoration: none; }
.rail-name, .rail .rf { display: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, #fb923c, #e2531b 60%, #be185d); display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 18px rgba(226,83,27,.35); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: #fff; padding: 4px 10px 18px; letter-spacing: -.01em; }
.brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
.brand:hover { text-decoration: none; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a, .rail-out, .rail-me { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 7px; border-radius: 14px; color: var(--text-2); font-size: .7rem; font-weight: 600; text-align: center; line-height: 1.15; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; }
.rail-nav a:hover, .rail-out:hover, .rail-me:hover { text-decoration: none; color: var(--text); }
.rail .ri { position: relative; width: 52px; height: 32px; border-radius: 999px; display: grid; place-items: center; transition: background .15s, color .15s; }
.rail-nav a:hover .ri { background: var(--panel-2); }
.rail-nav a.on { color: var(--text); font-weight: 800; }
.rail-nav a.on .ri { background: var(--brand-soft); color: var(--brand); }
.rail-nav a.on .ri::before { content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.rail .rb { position: absolute; top: -3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font: 700 .62rem/18px var(--font); font-style: normal; border: 2px solid var(--panel); box-sizing: content-box; }
.rail .rs { position: absolute; bottom: 3px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; border: 2px solid var(--panel); }
.rail .rs.ok { background: #22c55e; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.rail-foot form { width: 100%; }
.rail-out { color: var(--muted); }
.rail-out .i { margin: 6px 0; }
.rail-me .avatar { width: 38px; height: 38px; }
.rail-me.on .avatar { box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 5px var(--brand); }
.rail-help { color: #128c4b !important; }
.rail-help .ri { background: #e7f8ee; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 15; min-height: 64px; }
.top h1 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.top .crumb { font-size: .76rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.crumb-logo { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.top .grow { flex: 1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #fdba74, #e2531b); color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.content { padding: 26px 28px 40px; width: 100%; max-width: 1240px; }
.menu-btn { display: none; background: var(--panel-2); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 10px; color: var(--text); cursor: pointer; }
.bottom-nav { display: none; }
/* Full-height pages (chats) */
body.bare .content { max-width: none; padding: 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
@media (min-width: 961px) {
  body.bare .main { height: 100vh; overflow: hidden; }
  body.bare .top { display: none; }
  body.bare .content > .flash { margin: 12px 16px 0; }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: 40; left: 0; top: 0; width: 268px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); padding: 16px 12px; }
  .rail-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; place-items: initial; }
  .rail-brand .brand-mark { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
  .rail-name { display: block; font-size: 1.1rem; color: var(--text); font-weight: 800; }
  .rail-nav a, .rail-out, .rail-me { flex-direction: row; gap: 10px; font-size: .9rem; text-align: left; padding: 3px 4px; }
  .rail .rl { display: none; } .rail .rf { display: block; }
  .rail .ri { width: 42px; height: 38px; border-radius: 12px; }
  .rail-nav a.on { background: var(--brand-soft); }
  .rail-nav a.on .ri::before { display: none; }
  .rail-foot { align-items: stretch; }
  .rail-me .avatar { width: 34px; height: 34px; margin: 0 4px; }
  .rail-out .i { margin: 6px 11px; }
  body.nav-open .rail { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(20,12,8,.45); z-index: 30; }
  .menu-btn { display: grid; place-items: center; }
  .content { padding: 16px 14px 96px; }
  .top { padding: 10px 14px; min-height: 0; }
  .top h1 { font-size: 1.05rem; }
  .top .hide-m { display: none; }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(31,23,18,.06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 4px 0; border-radius: 10px; position: relative; }
  .bottom-nav a span { display: grid; place-items: center; width: 46px; height: 28px; border-radius: 999px; }
  .bottom-nav a.on { color: var(--text); }
  .bottom-nav a.on span { color: var(--brand); background: var(--brand-soft); }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav .badge { position: absolute; top: 0; right: 18%; padding: 0 6px; font-size: .62rem; }
}

/* ---------- Building blocks ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.grid > .card + .card, .plans > .card + .card { margin-top: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { margin: 0; }
.card-h .sub { color: var(--muted); font-size: .82rem; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-wide { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-wide { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3 { grid-template-columns: 1fr; } .grid { gap: 12px; } .card { padding: 16px; } }

/* Stat tiles: icon + number + label; colour cycles automatically */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.stat::before { content: attr(data-ico); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; margin-bottom: 10px; background: var(--tone-soft, var(--brand-soft)); }
.stat:not([data-ico])::before { display: none; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tone-soft, var(--brand-soft)); opacity: .55; }
.stat b { display: block; font-size: 1.65rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; position: relative; z-index: 1; }
.stat span { color: var(--muted); font-size: .84rem; font-weight: 500; position: relative; z-index: 1; }
.stat span a { color: inherit; }
.stat:nth-child(5n+1) { --tone-soft: var(--brand-soft); }
.stat:nth-child(5n+2) { --tone-soft: var(--info-soft); }
.stat:nth-child(5n+3) { --tone-soft: var(--ok-soft); }
.stat:nth-child(5n+4) { --tone-soft: var(--violet-soft); }
.stat:nth-child(5n+5) { --tone-soft: var(--teal-soft); }
@media (max-width: 600px) { .stat { padding: 14px; } .stat b { font-size: 1.3rem; } .stat::before { width: 36px; height: 36px; font-size: 16px; margin-bottom: 6px; } }

/* Welcome banner */
.hello { border-radius: 20px; padding: 22px 24px; color: #fff; background: radial-gradient(600px 200px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, #2a1810, #7c2d12 55%, #e2531b); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; box-shadow: var(--shadow-lg); }
.hello h2 { font-size: 1.35rem; margin: 0 0 4px; }
.hello p { margin: 0; opacity: .85; }
.hello .grow { flex: 1; min-width: 220px; }
.hello .btn { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.hello .btn.primary { background: #fff; color: var(--brand-ink); border-color: #fff; }

/* Bar chart (pure CSS): <div class="bars"><div class="bar" style="--h:40%"><i></i><small>Mon</small></div>…</div> */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 10px 4px 0; border-bottom: 1px dashed var(--line-2); }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; }
.bar i { width: 100%; max-width: 38px; height: var(--h); min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); transition: filter .15s; }
.bar.alt i { background: linear-gradient(180deg, #60a5fa, var(--info)); }
.bar:hover i { filter: brightness(1.1); }
.bar small { position: absolute; bottom: -22px; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.bar[data-v]:hover::before { content: attr(data-v); position: absolute; bottom: calc(var(--h) + 8px); background: var(--text); color: #fff; font-size: .72rem; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.chart-wrap { padding-bottom: 26px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 9px 16px; border-radius: 11px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(226,83,27,.28); }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(226,83,27,.38); }
.btn.wa { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.sm { padding: 6px 12px; font-size: .84rem; border-radius: 9px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; font-weight: 600; }

/* Forms */
label { display: block; font-weight: 600; font-size: .86rem; margin: 0 0 6px; color: var(--text-2); }
.field { margin-bottom: 15px; }
.hint { font-size: .79rem; color: var(--muted); margin-top: 5px; font-weight: 400; }
input:not([type]), input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input[type=file] { font: inherit; font-size: .86rem; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 9px; padding: 7px 12px; margin-right: 10px; cursor: pointer; color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
input[type=color] { width: 56px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); padding: 3px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.prefix { display: flex; } .prefix span { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--muted); }
.prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.suffix { display: flex; } .suffix span { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); white-space: nowrap; }
.suffix input { border-radius: var(--r-sm) 0 0 var(--r-sm); }

/* Tables */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; }
.card.table-wrap > .card-h { padding: 18px 20px 0; }
.card.table-wrap > table th:first-child, .card.table-wrap > table td:first-child { padding-left: 20px; }
.card.table-wrap > table th:last-child, .card.table-wrap > table td:last-child { padding-right: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--panel-2); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fcfaf8; }
tr:last-child td { border-bottom: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; } .badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.ok { background: #22c55e; } .dot.warn { background: #f59e0b; } .dot.danger { background: #ef4444; }

.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; border: 1px solid transparent; }
.flash.success { background: var(--ok-soft); color: var(--ok); border-color: #bfe8cd; } .flash.success::before { content: "✓"; }
.flash.error { background: var(--danger-soft); color: var(--danger); border-color: #f6caca; } .flash.error::before { content: "!"; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-size: .75rem; flex: none; }
.notice { padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); color: var(--text); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; box-shadow: var(--shadow); }
.notice .grow { flex: 1; min-width: 200px; }

.plan-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--ok-soft); color: var(--ok); }
.plan-pill:hover { text-decoration: none; }
.plan-pill.warn { background: var(--warn-soft); color: var(--warn); } .plan-pill.danger { background: var(--danger-soft); color: var(--danger); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big { font-size: 40px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); margin: 0 auto 10px; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; font-size: 22px; flex: none; }
.row-flex { display: flex; align-items: center; gap: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: .84rem; font-weight: 600; background: var(--panel); }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.chip:hover { text-decoration: none; border-color: var(--text-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.copy-box { display: flex; gap: 8px; align-items: center; background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 8px 8px 8px 12px; flex-wrap: wrap; }
.copy-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; background: none; border: 0; padding: 0; min-width: 160px; }
.img-preview { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); }
.img-preview.wide { width: 100%; max-width: 420px; height: 150px; display: block; margin-bottom: 8px; }
.variant-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 600px) { .variant-row { grid-template-columns: 1fr 1fr; } }
details summary { cursor: pointer; font-weight: 600; }

/* Design pickers (website styles) */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pick { position: relative; cursor: pointer; margin: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .pv { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 10px; background: var(--panel); transition: border-color .15s, box-shadow .15s; height: 100%; }
.pick:hover .pv { border-color: var(--line-2); }
.pick input:checked + .pv { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.pick input:checked + .pv::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.pick b { display: block; font-size: .86rem; margin-top: 8px; color: var(--text); }
.pick small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.35; font-weight: 400; }
.mini { display: block; height: 78px; border-radius: 9px; background: #f3ece4; position: relative; overflow: hidden; }
.mini i { position: absolute; display: block; border-radius: 3px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gal-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); margin: 0; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item .check { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.92); padding: 3px 8px; border-radius: 8px; font-size: .74rem; margin: 0; }

/* Steps (guides) */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; font-size: .88rem; }
.steps li > div > b { display: block; margin-bottom: 2px; }
.steps li p { margin: 0; color: var(--text-2); font-size: .88rem; }
.how { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.phone { width: 190px; border-radius: 30px; background: #111; padding: 10px; box-shadow: var(--shadow-lg); margin: 0 auto; }
.phone .scr { border-radius: 22px; background: #fff; overflow: hidden; font-size: .7rem; color: #111; }
.phone .bar-g { background: #075e54; color: #fff; padding: 10px 12px; font-weight: 700; font-size: .78rem; }
.phone .it { padding: 9px 12px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.phone .it.hl { background: #e7f8ee; color: #075e54; font-weight: 700; }
.phone .btn-g { margin: 10px 12px 14px; background: #25d366; color: #fff; text-align: center; border-radius: 999px; padding: 7px; font-weight: 700; }
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 760px) { .mode-cards { grid-template-columns: 1fr; } }
.mode-card { border: 2px solid var(--line); border-radius: 16px; padding: 16px; background: var(--panel); color: var(--text); display: block; position: relative; box-shadow: var(--shadow); }
.mode-card:hover { text-decoration: none; border-color: var(--line-2); }
.mode-card.on { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.mode-card .ic { font-size: 26px; }
.mode-card b { display: block; margin: 6px 0 2px; }
.mode-card small { color: var(--muted); }
.mode-card .tag { position: absolute; top: 12px; right: 12px; }
.conn { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.conn .big-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--ok-soft); flex: none; }
.conn.off .big-ic { background: var(--warn-soft); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; position: relative; box-shadow: var(--shadow); }
.plan.best { border: 2px solid var(--brand); box-shadow: 0 12px 30px rgba(226,83,27,.15); }
.plan .tag { position: absolute; top: -11px; left: 16px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.plan .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.plan .per { color: var(--muted); font-size: .84rem; }
.plan form { margin-top: auto; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 200px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; background: var(--panel-2) radial-gradient(circle at 1px 1px, #e9e2da 1px, transparent 0) 0 0/18px 18px; border-radius: var(--r) var(--r) 0 0; border: 1px solid var(--line); border-bottom: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 75%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--panel); box-shadow: var(--shadow); white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #fff1e8, #ffe4d1); border-radius: 14px 14px 4px 14px; }
.msg small { display: block; color: var(--muted); font-size: .7rem; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); background: var(--panel); }
.chat-form textarea { min-height: 44px; height: 44px; flex: 1; }
.support-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } .chat { height: calc(100vh - 260px); } }
.thread-list a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); }
.thread-list a.on, .thread-list a:hover { background: var(--panel-2); text-decoration: none; }
.qr-box { width: 264px; height: 264px; display: grid; place-items: center; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Auth & landing ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-art { background: radial-gradient(700px 400px at 20% 10%, rgba(251,146,60,.45), transparent 60%), linear-gradient(150deg, #1d1411, #4a2412 60%, #c2410c); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: "🎂"; position: absolute; right: -40px; bottom: -50px; font-size: 300px; opacity: .1; transform: rotate(-12deg); }
.auth-art h2 { font-size: 2.2rem; line-height: 1.15; max-width: 420px; margin: 0 0 12px; }
.auth-art p { opacity: .8; max-width: 400px; }
.auth-art ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.auth-art li { display: flex; gap: 10px; align-items: center; }
.auth-art li span { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.auth-art .brand { padding: 0; }
.auth-side { display: grid; place-items: center; padding: 32px 18px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-side { background: radial-gradient(900px 500px at 0% -10%, #ffe4cc 0, transparent 60%), var(--bg); min-height: 100vh; } }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg); }
.auth-card .brand { justify-content: center; padding-bottom: 8px; color: var(--text); }
.auth-card h1 { text-align: center; font-size: 1.4rem; font-weight: 800; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.auth-card .btn.primary { padding: 12px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.slug-status { font-size: .82rem; margin-top: 4px; }
.slug-status.ok { color: var(--ok); } .slug-status.bad { color: var(--danger); }

.land-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1180px; margin: 0 auto; }
.land-nav .brand { color: var(--text); padding: 0; }
.hero { max-width: 1180px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.03em; font-weight: 800; }
.hero p.lead { font-size: 1.1rem; color: var(--text-2); }
.hero-art { background: radial-gradient(400px 300px at 30% 20%, #fff7ed, transparent 60%), linear-gradient(160deg, #fed7aa, #fb923c 55%, #e2531b); border-radius: 32px; aspect-ratio: 1/1; display: grid; place-items: center; font-size: 120px; box-shadow: var(--shadow-lg); }
.section { max-width: 1180px; margin: 0 auto; padding: 32px 24px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.feature .ico { font-size: 26px; width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 8px; }
.foot { text-align: center; color: var(--muted); padding: 32px 16px; font-size: .9rem; }
.save-bar { position: sticky; bottom: 12px; z-index: 5; }
@media (max-width: 960px) { .save-bar { bottom: 76px; } }
/* Order tracker */
.tracker { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; position: relative; overflow-x: auto; padding: 4px 0; }
.tstep { text-align: center; position: relative; padding: 0 4px; min-width: 92px; }
.tstep::before { content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.tstep:first-child::before { display: none; }
.tstep.done::before { background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.tdot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: var(--panel-2); border: 2px solid var(--line); font-size: 18px; filter: grayscale(1); opacity: .6; }
.tstep.done .tdot { background: var(--brand-soft); border-color: var(--brand); filter: none; opacity: 1; }
.tstep.cur .tdot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 16%, transparent); }
.tstep b { display: block; font-size: .8rem; } .tstep small { color: var(--muted); font-size: .7rem; }
@media (max-width: 700px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chip { flex: none; }
  table.resp thead { display: none; }
  table.resp tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.resp td { border: 0; padding: 0 !important; text-align: left; }
  table.resp td.right { text-align: right; }
}
/* Website builder live preview */
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 22px; align-items: start; }
.design-opts .picker { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.design-prev { position: sticky; top: 84px; }
.prev-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.prev-frame { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); margin: 0 auto; }
.prev-frame iframe { border: 0; transform-origin: 0 0; display: block; }
.prev-frame.desk { width: 100%; height: 560px; }
.prev-frame.desk iframe { width: 1280px; height: 1556px; transform: scale(.359); }
.prev-frame.mob { width: 250px; height: 520px; border: 8px solid #1f1712; border-radius: 30px; }
.prev-frame.mob iframe { width: 390px; height: 806px; transform: scale(.6); }
@media (max-width: 1250px) { .design-grid { grid-template-columns: 1fr; } .design-prev { position: static; max-width: 460px; } }
@media (max-width: 500px) { .prev-frame.desk { height: 330px; } .prev-frame.desk iframe { transform: scale(.25); width: 1280px; height: 1320px; } }

/* Store open / paused switch */
.store-switch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 16px; }
.store-switch .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); flex: none; }
.store-switch.off { background: var(--danger-soft); border-color: transparent; }
.store-switch.off .dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(200,30,30,.15); }
.store-switch .grow { flex: 1; min-width: 200px; }
.store-switch input[name=closed_note] { flex: 1 1 280px; max-width: 420px; margin: 0; padding: 7px 12px; font-size: .86rem; }

/* Reviews */
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars i { color: var(--line-2); font-style: normal; }
.review-card { margin-bottom: 12px; }
.review-card.pending { border-left: 4px solid var(--warn); }
.review-card.hidden { opacity: .7; }
.review-body { margin: 12px 0; color: var(--text-2); }
.av-c { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand-ink); flex: none; }

/* Offers */
.aud { display: grid; gap: 8px; margin-bottom: 14px; }
.aud-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; margin: 0; font-weight: 400; }
.aud-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.aud-opt input { width: auto; margin: 0; accent-color: var(--brand); }
.aud-opt span { flex: 1; }
.aud-opt small { display: block; color: var(--muted); }
.aud-opt em { font-style: normal; font-weight: 800; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.wa-bubble { background: #dcf8c6; border-radius: 12px 12px 12px 3px; padding: 10px 12px; font-size: .9rem; line-height: 1.5; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; background-image: none; word-break: break-word; }
.wa-bubble::after { content: "✓✓"; display: block; text-align: right; color: #34b7f1; font-size: .7rem; margin-top: 4px; }
.prog-bar { width: 160px; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .4s; }

/* Banner slides editor */
.slides-ed { display: grid; gap: 12px; }
.slide-ed { display: flex; gap: 14px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); position: relative; flex-wrap: wrap; }
.slide-ed > img { width: 200px; aspect-ratio: 9/4; object-fit: cover; border-radius: 10px; flex: none; }
.slide-ed .no { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.6); color: #fff; font-weight: 800; font-size: .75rem; border-radius: 999px; padding: 1px 8px; }
.slide-ed .grow { flex: 1; min-width: 220px; display: grid; gap: 8px; }
@media (max-width: 560px) { .slide-ed > img { width: 100%; } }

/* WhatsApp: link card */
.wa-link { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 30px; box-shadow: var(--shadow); margin-bottom: 14px; }
.wa-logo { width: 52px; height: 52px; border-radius: 16px; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(37,211,102,.35); margin-bottom: 14px; }
.wa-logo svg { width: 30px; height: 30px; fill: #fff; }
.wa-link h2 { font-size: 1.45rem; margin: 0 0 4px; }
.wa-steps { list-style: none; padding: 0; margin: 20px 0 16px; display: grid; gap: 12px; }
.wa-steps li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.wa-steps li > b:first-child { width: 28px; height: 28px; border-radius: 50%; background: #e7f8ee; color: #128c4b; display: grid; place-items: center; font-size: .82rem; flex: none; }
.wa-qr { width: 300px; }
.qr-frame { width: 300px; height: 300px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(31,23,18,.1); display: grid; place-items: center; padding: 18px; position: relative; }
.qr-frame::before { content: ""; position: absolute; inset: 8px; border: 2px dashed #d1f2dd; border-radius: 16px; pointer-events: none; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0 14px; }
.qr-state small { color: var(--muted); }
.qr-state .big { font-size: 40px; line-height: 1; }
.qr-state .big.ok { width: 64px; height: 64px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 32px; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #d1f2dd; border-top-color: #25d366; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.wa-alt { margin-bottom: 18px; }
.wa-alt > summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: .9rem; list-style: none; display: inline-flex; gap: 6px; }
.wa-alt > summary::before { content: "▸"; transition: transform .2s; }
.wa-alt[open] > summary::before { transform: rotate(90deg); }
.wa-alt h3 { margin: 0 0 12px; font-size: 1.02rem; }
@media (max-width: 860px) { .wa-link { grid-template-columns: 1fr; padding: 20px; } .wa-qr, .qr-frame { width: 100%; max-width: 320px; margin: 0 auto; } .qr-frame { height: auto; aspect-ratio: 1; } }

/* Support WhatsApp button (owner panel) */
.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; border-radius: 999px; padding: 10px 16px 10px 12px; font-weight: 700; font-size: .88rem; box-shadow: 0 10px 26px rgba(37,211,102,.4); transition: transform .15s; }
.help-fab:hover { text-decoration: none; transform: translateY(-2px); }
.help-fab svg { width: 24px; height: 24px; fill: #fff; }
@media (max-width: 900px) { .help-fab { bottom: 78px; right: 14px; padding: 12px; } .help-fab span { display: none; } }


/* Club: grow card */
.club-grow { display: grid; grid-template-columns: 1fr 220px; gap: 26px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.club-grow h2 { margin: 0 0 4px; }
.cg-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.cg-way { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); display: grid; gap: 3px; transition: border-color .15s, transform .15s; }
.cg-way:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.cg-way span { font-size: 22px; }
.cg-way small { color: var(--muted); font-size: .8rem; }
.cg-qr { display: grid; justify-items: center; gap: 10px; }
.cg-qr #clubQr { width: 190px; height: 190px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.cg-qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .club-grow { grid-template-columns: 1fr; } .cg-ways { grid-template-columns: 1fr; } .cg-qr { order: -1; } }

/* Subscription */
.center { text-align: center; }
.sub-hero { display: flex; align-items: center; gap: 24px; border-radius: 22px; padding: 26px 28px; color: #fff; margin-bottom: 26px; box-shadow: var(--shadow-lg);
  background: radial-gradient(500px 240px at 90% 0, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #14532d, #16a34a); }
.sub-hero.warn { background: radial-gradient(500px 240px at 90% 0, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, #9a3412, var(--brand-2)); }
.sub-hero.bad { background: radial-gradient(500px 240px at 90% 0, rgba(255,255,255,.15), transparent 60%), linear-gradient(135deg, #3b0d0d, #b91c1c); }
.sub-hero .grow { flex: 1; }
.sub-hero h2 { font-size: 1.9rem; margin: 8px 0 4px; letter-spacing: -.02em; }
.sub-hero p { margin: 0; opacity: .92; max-width: 560px; }
.sub-hero .pill { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; }
.sub-ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; position: relative; background: rgba(255,255,255,.1); }
.sub-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.25) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.sub-ring b, .sub-ring small { position: relative; }
.sub-ring b { font-size: 2rem; line-height: 1; }
.sub-ring small { opacity: .85; font-size: .78rem; }
.sub-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sub-plan { position: relative; background: var(--panel); border: 1.5px solid var(--line); border-radius: 20px; padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.sub-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sub-plan.best { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-soft), #fff 45%); box-shadow: 0 18px 40px rgba(226,83,27,.2); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: .74rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 14px rgba(226,83,27,.3); }
.ribbon.soft { background: var(--text); box-shadow: none; }
.sp-h b { font-size: 1.1rem; display: block; }
.sp-h small { color: var(--muted); font-size: .8rem; }
.sp-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; line-height: 1.1; }
.sp-price .cur { font-size: 1.2rem; vertical-align: top; margin-right: 2px; }
.sp-price .per { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.sp-total { color: var(--text-2); font-size: .85rem; }
.sp-total s { color: var(--muted); }
.sp-save { align-self: flex-start; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .8rem; border-radius: 8px; padding: 4px 9px; margin: 6px 0 12px; }
.sp-save.none { background: var(--panel-2); color: var(--muted); font-weight: 600; }
.sub-plan form { margin-top: auto; }
.sub-incl { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; background: var(--panel); border: 1px dashed var(--line-2); border-radius: 16px; padding: 14px 18px; margin: 22px 0 12px; font-size: .88rem; color: var(--text-2); }
.sub-incl b { color: var(--text); width: 100%; text-align: center; }
@media (max-width: 1100px) { .sub-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } }
@media (max-width: 560px) { .sub-plans { grid-template-columns: 1fr; } .sub-hero { flex-direction: column-reverse; align-items: flex-start; padding: 22px; } .sub-ring { width: 88px; height: 88px; } }


/* ---------- Wishes ---------- */
.btn.icon-only { padding: 7px 9px; }
.seg a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: .86rem; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.seg a small { background: var(--line); color: var(--text-2); border-radius: 999px; padding: 0 7px; font-size: .7rem; }
.wk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.wk-stat { border-radius: 16px; padding: 14px 16px; color: var(--text); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.wk-stat:hover { text-decoration: none; border-color: var(--line-2); }
.wk-stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.wk-stat b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.wk-stat::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--tone); opacity: .6; }
.wk-stat.t1 { --tone: var(--brand-soft); } .wk-stat.t2 { --tone: var(--violet-soft); } .wk-stat.t3 { --tone: var(--info-soft); } .wk-stat.t4 { --tone: var(--ok-soft); }
.wk-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.wk-filters { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; justify-content: flex-end; }
.wk-filters select { width: auto; padding: 8px 30px 8px 12px; }
.wk-filters .find { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 10px; margin: 0; color: var(--muted); flex: 1; max-width: 280px; min-width: 160px; }
.wk-filters .find input { border: 0; padding: 8px 0; box-shadow: none; background: none; }
.wk-list { padding: 6px 18px 10px; }
.wk-day { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; position: sticky; top: 64px; background: var(--panel); z-index: 1; }
.wk-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.wk-day + .wk-row { border-top: 0; }
.wk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--brand-soft); flex: none; }
.wk-ic.anniversary { background: #fdeef6; }
.wk-age { font-size: .72rem; font-weight: 700; color: var(--violet); background: var(--violet-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.wk-row form { margin: 0; }
.wk-msgs summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.wk-msgs summary::-webkit-details-marker { display: none; }
.wk-msgs[open] summary .btn { display: none; }
@media (max-width: 760px) {
  .wk-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wk-stat b { font-size: 1.35rem; }
  .wk-bar .seg { width: 100%; } .seg a { flex: 1; justify-content: center; padding: 7px 8px; }
  .wk-filters { justify-content: stretch; }
  .wk-filters .find { max-width: none; flex-basis: 100%; }
  .wk-filters select { flex: 1; }
  .wk-list { padding: 4px 12px 8px; }
  .wk-day { top: 56px; }
  .wk-row { flex-wrap: wrap; }
  .wk-row .grow { min-width: calc(100% - 120px); }
}

/* ---------- WhatsApp: connect ---------- */
.cx-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cx-head .wa-logo { margin: 0; flex: none; }
.cx-head h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.01em; }
.cx-head p { margin: 2px 0 0; }
.cx-head .grow { flex: 1; min-width: 240px; }
.cx-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.cx-opt { position: relative; text-align: left; background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; cursor: pointer; font: inherit; color: var(--text); display: grid; gap: 4px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cx-opt:hover { border-color: var(--line-2); transform: translateY(-1px); }
.cx-opt.on { border-color: #25d366; box-shadow: 0 0 0 4px #25d36622, var(--shadow); }
.cx-opt b { font-size: 1rem; }
.cx-opt small { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.cx-opt em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .7rem; font-weight: 800; color: #128c4b; background: #e7f8ee; padding: 2px 9px; border-radius: 999px; }
.cx-opt em.pro { color: #1d4ed8; background: #e8efff; }
.cx-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 6px; }
.cx-ic.g { background: #e7f8ee; color: #128c4b; } .cx-ic.b { background: #e8efff; color: #1d4ed8; } .cx-ic.v { background: var(--violet-soft); color: var(--violet); }
.cx-pane h3 { margin: 0 0 6px; font-size: 1.15rem; }
.cx-api { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.cx-api-l { padding: 26px; background: linear-gradient(160deg, #f1f6ff, #fff 60%); border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.cx-api-r { padding: 26px; }
.cx-sub { display: block; margin-bottom: 12px; }
.cx-ticks { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 9px; }
.cx-ticks li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; }
.cx-ticks .i { color: #fff; background: #1d9bf0; border-radius: 50%; padding: 2px; margin-top: 2px; }
.cx-ok { display: flex; align-items: center; gap: 8px; background: #e7f8ee; color: #0f6b3a; border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.btn.fb { background: #1877f2; border-color: #1877f2; color: #fff; padding: 12px 18px; font-size: .95rem; justify-self: start; box-shadow: 0 8px 18px rgba(24,119,242,.3); }
.btn.fb:hover { background: #166fe5; }
.cx-more { margin: 4px 0 14px; }
.cx-more summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--text-2); margin-bottom: 8px; }
.cx-compare { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto; }
.cx-compare table { min-width: 560px; }
.cx-compare td:first-child { font-weight: 600; color: var(--text-2); }
.cx-compare th:nth-child(3), .cx-compare td:nth-child(3) { background: #f5f8ff; }
.wa-link { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow); }
.wa-logo { width: 52px; height: 52px; border-radius: 16px; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(37,211,102,.35); }
.wa-logo svg { width: 30px; height: 30px; }
@media (max-width: 900px) { .cx-opts { grid-template-columns: 1fr; } .cx-opt { grid-template-columns: auto 1fr; column-gap: 12px; } .cx-ic { grid-row: span 2; margin: 0; } .cx-api { grid-template-columns: 1fr; } .cx-api-l { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; } .cx-api-r { padding: 20px; } }
@media (max-width: 860px) { .wa-link { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- WhatsApp: chats (WhatsApp Web style) ---------- */
.wx { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(320px, 420px) 1fr; background: var(--panel); }
.wx-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #e9edef; background: #fff; }
.wx-lh { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px 20px; }
.wx-lh .menu-btn { flex: none; }
.wx-lh h2 { margin: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.wx-acts { display: flex; gap: 4px; align-items: center; }
.wx-ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; color: #54656f; cursor: pointer; list-style: none; font-size: 1.2rem; }
.wx-ib:hover { background: #f0f2f5; color: #111b21; text-decoration: none; }
.wx-ib::-webkit-details-marker { display: none; }
.wx-menu { position: relative; }
.wx-menu .menu { position: absolute; right: 0; top: 44px; z-index: 30; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(11,20,26,.18); min-width: 220px; padding: 6px; }
.wx-menu .menu a, .wx-menu .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: #111b21; background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; }
.wx-menu .menu a:hover, .wx-menu .menu button:hover { background: #f5f6f6; text-decoration: none; }
.wx-menu .menu button { color: var(--danger); }
.wx-conn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 16px 10px 20px; padding: 6px 14px; border: 1px solid #e3e7e9; border-radius: 999px; font-weight: 600; font-size: .86rem; color: #111b21; max-width: calc(100% - 36px); }
.wx-conn:hover { text-decoration: none; background: #f7f8fa; }
.wx-conn .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-conn .muted { font-weight: 500; white-space: nowrap; }
.wx-conn .vt { color: #fff; background: #1d9bf0; border-radius: 50%; display: grid; place-items: center; padding: 2px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px #d9f7e5; flex: none; }
.wx-find { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 0 14px; background: #f0f2f5; border-radius: 12px; color: #54656f; }
.wx-find input { border: 0; background: none; padding: 11px 0; box-shadow: none !important; font-size: .95rem; }
.wx-chips { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.wx-chips::-webkit-scrollbar { display: none; }
.wx-chips button { flex: none; border: 0; background: #f0f2f5; color: #54656f; font: inherit; font-weight: 600; font-size: .86rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.wx-chips button:hover { background: #e9edef; }
.wx-chips button.on { background: #d9fdd3; color: #008069; }
.wx-items { overflow-y: auto; flex: 1; border-top: 1px solid #f0f2f5; }
.wx-item { display: flex; gap: 14px; align-items: center; width: 100%; padding: 0 16px 0 14px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: #111b21; }
.wx-item .mid { flex: 1; min-width: 0; display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid #f0f2f5; }
.wx-item:hover { background: #f5f6f6; }
.wx-item.on { background: #f0f2f5; }
.wx-item .cl-t, .wx-item .cl-b { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wx-item .cl-t b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 600; }
.wx-item .cl-t small { color: #667781; font-size: .75rem; flex: none; }
.wx-item .cl-t small.new { color: #1fa855; font-weight: 700; }
.wx-item .pv { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #667781; font-size: .88rem; }
.wx-item .cl-b em { font-style: normal; font-size: .78rem; opacity: .75; }
.wx-item .cl-b i { font-style: normal; background: #25d366; color: #fff; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; }
.wav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; background: hsl(var(--h, 20) 42% 55%); flex: none; }
.tk { font-size: .72rem; color: #8696a0; letter-spacing: -2px; flex: none; }
.tk.ok { color: #53bdeb; }
.tk.bad { color: #fff; background: var(--danger); border-radius: 50%; width: 15px; height: 15px; display: inline-grid; place-items: center; letter-spacing: 0; font-weight: 800; font-size: .64rem; }
.wx-none { color: #667781; font-size: .9rem; text-align: center; padding: 30px 20px; }
.wx-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23e2dccf' stroke-width='1.4'%3E%3Ccircle cx='18' cy='20' r='7'/%3E%3Cpath d='M70 12l7 12H63z'/%3E%3Cpath d='M100 52h12M106 46v12'/%3E%3Crect x='14' y='70' width='13' height='13' rx='3' transform='rotate(45 20 76)'/%3E%3Ccircle cx='66' cy='88' r='4'/%3E%3Cpath d='M44 46c4-6 10-6 14 0'/%3E%3Cpath d='M96 98l6 6 6-6'/%3E%3C/svg%3E"); }
.wx-empty { margin: auto; text-align: center; max-width: 520px; padding: 30px; display: grid; justify-items: center; gap: 6px; }
.wx-hero { width: 190px; height: 190px; border-radius: 50%; background: #dff3ea; color: #25a565; display: grid; place-items: center; margin-bottom: 18px; }
.wx-hero svg { width: 82px; height: 82px; }
.wx-empty h3 { font-size: 2rem; font-weight: 400; color: #41525d; margin: 0; letter-spacing: -.01em; }
.wx-empty p { color: #667781; font-size: .95rem; line-height: 1.6; margin: 6px 0 12px; }
.wx-empty small { display: flex; align-items: center; gap: 6px; color: #8696a0; margin-top: 18px; font-size: .82rem; }
.wx-pane::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #25d366; opacity: .85; pointer-events: none; }
.wx-pane:has(.wx-head:not([hidden]))::after { display: none; }
.wx-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #f0f2f5; border-bottom: 1px solid #e1ddd6; }
.wx-head .wav { width: 42px; height: 42px; }
.wx-head .grow { min-width: 0; flex: 1; }
.wx-head b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-head small { display: block; color: #667781; font-size: .8rem; }
.wx-head .back { display: none; }
.wx-msgs { flex: 1; overflow-y: auto; padding: 18px 7%; display: flex; flex-direction: column; gap: 4px; }
.day { text-align: center; margin: 10px 0 6px; }
.day span { background: #fff; color: #54656f; font-size: .74rem; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bub { max-width: min(76%, 560px); padding: 6px 10px 6px; border-radius: 10px; font-size: .92rem; line-height: 1.45; position: relative; box-shadow: 0 1px .5px rgba(11,20,26,.13); word-wrap: break-word; color: #111b21; }
.bub.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bub.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.bub a { color: #027eb5; }
.bub .tag { display: inline-block; font-size: .68rem; font-weight: 700; color: #128c4b; background: rgba(37,211,102,.14); border-radius: 6px; padding: 1px 7px; margin-bottom: 3px; }
.bub .meta { display: block; text-align: right; font-size: .68rem; color: #667781; margin-top: 2px; }
.bub .err { display: block; font-size: .72rem; color: var(--danger); }
.wx-quick { display: flex; gap: 8px; padding: 8px 16px 0; overflow-x: auto; scrollbar-width: none; background: #f0f2f5; }
.wx-quick::-webkit-scrollbar { display: none; }
.wx-quick button { flex: none; background: #fff; border: 1px solid #e3e7e9; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; color: #3b4a54; cursor: pointer; }
.wx-quick button:hover { border-color: #25d366; color: #008069; }
.wx-compose { display: flex; align-items: flex-end; gap: 8px; padding: 8px 16px 10px; background: #f0f2f5; }
.wx-compose textarea { flex: 1; resize: none; border: 0; border-radius: 22px; padding: 11px 16px; font: inherit; font-size: .95rem; background: #fff; height: 44px; min-height: 44px; max-height: 140px; margin: 0; box-shadow: none; line-height: 1.4; }
.wx-compose textarea:focus { box-shadow: 0 0 0 2px #25d36633; }
.wx-compose .send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #00a884; display: grid; place-items: center; cursor: pointer; flex: none; }
.wx-compose .send svg { width: 20px; height: 20px; fill: #fff; }
.wx-dlg { border: 0; border-radius: 18px; padding: 22px; width: min(420px, 92vw); box-shadow: 0 24px 60px rgba(11,20,26,.3); }
.wx-dlg::backdrop { background: rgba(11,20,26,.45); }
.wx-dlg h3 { margin: 0 0 14px; }
.btn.wa { background: #00a884; border-color: #00a884; color: #fff; }
.btn.wa:hover { background: #019a79; }
@media (max-width: 960px) {
  body.bare .content { padding-bottom: 0; }
  .wx { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 64px - env(safe-area-inset-bottom)); }
  .wx-list { min-width: 0; }
  body.bare .top { display: none; }
  .wx-lh { gap: 10px; justify-content: flex-start; }
  .wx-lh .wx-acts { margin-left: auto; }
  .wx-pane { display: none; }
  .wx.show-thread .wx-list { display: none; }
  .wx.show-thread .wx-pane { display: flex; }
  body.in-thread .bottom-nav, body.in-thread .top { display: none; }
  body.in-thread .wx { height: 100dvh; }
  .wx-head .back { display: grid; }
  .wx-msgs { padding: 12px 10px; }
  .wx-lh { padding: 12px 10px 6px 16px; }
  .wx-lh h2 { font-size: 1.3rem; }
}
.shell { background: linear-gradient(90deg, var(--panel) 91px, var(--line) 91px, var(--line) 92px, transparent 92px); }
@media (max-width: 960px) { .shell { background: none; } }
.wk-row .grow { flex: 1; min-width: 0; }
.cx-opt { align-content: start; }

/* ---------- Products manager ---------- */
.pm-stats { display: flex; gap: 10px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.pm-stat { flex: 1 0 auto; min-width: 130px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pm-stat:hover { text-decoration: none; border-color: var(--line-2); }
.pm-stat b { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pm-stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.pm-stat.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pm-stat.warn b { color: var(--warn); }
.pm { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.pm-cats { padding: 14px; position: sticky; top: 80px; }
.pm-cats-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-left: 6px; }
.pm-cats nav { display: grid; gap: 2px; }
.pm-cats nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.pm-cats nav a:hover { background: var(--panel-2); text-decoration: none; }
.pm-cats nav a.on { background: var(--brand-soft); color: var(--brand-ink); }
.pm-cats nav a span { font-size: .74rem; color: var(--muted); background: var(--panel-2); border-radius: 99px; padding: 0 8px; }
.pm-cat-ed { display: flex; gap: 4px; padding: 2px 0 8px; }
.pm-cat-ed form { display: flex; gap: 4px; margin: 0; }
.pm-cat-ed form:first-child { flex: 1; }
.pm-cat-ed input { padding: 6px 8px; font-size: .85rem; }
.pm-addcat { display: flex; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pm-addcat input { padding: 7px 10px; font-size: .86rem; }
.pm-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pm-find { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; color: var(--muted); margin: 0; }
.pm-find input { border: 0; padding: 9px 0; box-shadow: none !important; background: none; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.pm-view button { display: grid; place-items: center; padding: 6px 9px; }
.pm-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--text); color: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; position: sticky; top: 72px; z-index: 5; box-shadow: var(--shadow-lg); }
.pm-bulk .check { margin: 0 8px 0 0; color: #fff; font-weight: 700; }
.pm-bulk .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.pm-bulk .btn:hover { background: rgba(255,255,255,.2); }
.pm-bulk .btn.danger { color: #fecaca; }
.pm-bulk select { width: auto; padding: 6px 28px 6px 10px; font-size: .84rem; background-color: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.pm-bulk select option { color: var(--text); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pm-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.pm-card:hover { border-color: var(--line-2); }
.pm-card.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pm-card.off .pm-img img { filter: grayscale(.85); opacity: .6; }
.pm-sel { position: absolute; top: 10px; left: 10px; z-index: 2; margin: 0; background: rgba(255,255,255,.92); border-radius: 8px; padding: 4px; line-height: 0; opacity: 0; transition: opacity .15s; }
.pm-card:hover .pm-sel, .pm-card.sel .pm-sel, body:has(.pm-bulk:not([hidden])) .pm-sel { opacity: 1; }
.pm-sel input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.pm-img { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); border-radius: 18px 18px 0 0; overflow: hidden; }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-img em { position: absolute; left: 10px; bottom: 10px; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 99px; padding: 2px 9px; }
.pm-body { padding: 12px 14px 4px; display: grid; gap: 2px; flex: 1; }
.pm-name { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 7px; line-height: 1.3; }
.pm-name:hover { color: var(--brand); text-decoration: none; }
.ft { width: 12px; height: 12px; border: 1.5px solid var(--ok); border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.ft::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.ft.r { border-color: #b91c1c; } .ft.r::after { background: #b91c1c; }
.pm-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.pm-acts { display: flex; align-items: center; gap: 6px; padding: 10px 12px 12px; }
.pm-acts form { margin: 0; }
.pm-acts .btn.sm:not(.icon-only) { margin-left: auto; }
.sw { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: 600 .78rem var(--font); color: var(--muted); }
.sw i { width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.sw.on { color: var(--ok); } .sw.on i { background: #22c55e; } .sw.on i::after { left: 16px; }
.star { background: none; border: 0; cursor: pointer; color: var(--line-2); padding: 4px; display: grid; }
.star:hover { color: #f59e0b; }
.star.on { color: #f59e0b; } .star.on .i { fill: #f59e0b; }
.pm-more .menu { right: 0; top: 36px; }
.wx-menu .menu button.plain { color: var(--text); }
.pm-grid.as-list { grid-template-columns: 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: visible; box-shadow: var(--shadow); }
.pm-grid.as-list .pm-card { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding-left: 40px; }
.pm-grid.as-list .pm-card:last-child { border-bottom: 0; }
.pm-grid.as-list .pm-sel { opacity: 1; top: 50%; transform: translateY(-50%); left: 10px; background: none; }
.pm-grid.as-list .pm-img { width: 64px; height: 64px; aspect-ratio: auto; border-radius: 12px; flex: none; margin: 10px 0; }
.pm-grid.as-list .pm-img em { display: none; }
.pm-grid.as-list .pm-body { padding: 8px 14px; min-width: 0; }
.pm-grid.as-list .pm-acts { padding: 8px 12px; }
@media (max-width: 960px) {
  .pm { grid-template-columns: 1fr; }
  .pm-cats { position: static; padding: 10px; }
  .pm-cats nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .pm-cats nav a { flex: none; border: 1px solid var(--line); gap: 8px; }
  .pm-cat { flex: none; }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pm-sel { opacity: 1; }
  .pm-acts { flex-wrap: wrap; padding: 8px 10px 10px; }
  .pm-acts .btn.sm:not(.icon-only) { margin-left: 0; }
  .sw span { display: none; }
  .pm-body { padding: 10px 10px 2px; }
  .pm-bar .btn.primary { padding: 9px 12px; }
  .pm-grid.as-list .pm-card { flex-wrap: wrap; }
  .pm-bulk { top: 60px; }
}
.pe-photo { display: block; position: relative; width: 220px; max-width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; margin: 0; }
.pe-photo img { width: 100%; height: 100%; object-fit: cover; }
.pe-photo span { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(20,12,8,.72); color: #fff; border-radius: 10px; padding: 7px; font-size: .84rem; backdrop-filter: blur(4px); }
.chip.pe-q { cursor: pointer; font: inherit; font-size: .8rem; padding: 4px 11px; }
.pm > * { min-width: 0; }
.pm-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pm-card .sw span { display: none; }
@media (max-width: 960px) { .pm { grid-template-columns: minmax(0, 1fr); } .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-acts .btn.sm:not(.icon-only) { padding: 6px 10px; } }
@media (max-width: 400px) { .pm-acts .star { display: none; } }
@media (max-width: 960px) { .pm-bar { flex-wrap: wrap; } .pm-find { flex: 1 0 100%; } .pm-bar .btn.primary { margin-left: auto; } }
