:root {
  --bg: #f5f4f1; --card: #fff; --ink: #1d1d1f; --muted: #6b6b70; --line: #e6e3de;
  --accent: #e8590c; --accent-soft: #fff1e8; --up: #1f8a4c; --danger: #c62828; --warn: #b26a00;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

.top { background: #1d1d1f; color: #fff; margin-bottom: 20px; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: #cfcfd4; padding: 6px 10px; border-radius: 6px; }
nav a:hover, nav a.on { background: #333; color: #fff; text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 800px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; color: var(--ink); background: #fff; }
label.check input { width: auto; margin: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(.95); text-decoration: none; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
button.link.danger { color: var(--danger); }

.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters label { margin: 0; min-width: 150px; }
.filters .grow, .add-form .grow { flex: 1; min-width: 220px; }
.add-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.add-form label { margin: 0; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf9f7; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl.compact td { padding: 7px 12px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl td.title { max-width: 420px; }
.tbl td.up { color: var(--up); font-weight: 600; }
.tbl tr.dim { opacity: .55; }
.empty-row { text-align: center; color: var(--muted); padding: 30px !important; }
.actions form { display: inline; margin-left: 10px; }
.ext { font-size: 12px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; background: #f0eeea; }
.thumb.empty { width: 48px; height: 48px; }

.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.pill.on { background: #e5f4ea; color: var(--up); }
.pill.off { background: #eee; color: var(--muted); }
.pill.warn { background: #fff4e0; color: var(--warn); }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.flash.ok { background: #e5f4ea; color: #14532d; }
.flash.err { background: #fdecea; color: #7f1d1d; }
.flash.info { background: var(--accent-soft); color: #7c2d12; }

.page-head { margin-bottom: 16px; }
.product-head { display: flex; gap: 16px; align-items: center; }
.product-head .thumb { width: 96px; height: 96px; }
.row { display: flex; gap: 10px; }
.inline-reset { margin: -8px 0 16px; }
.foot { color: var(--muted); font-size: 12px; padding: 24px 16px 40px; }

.center-page { display: grid; place-items: center; min-height: 100vh; }
.login { width: 340px; }
.login h1 { display: flex; gap: 10px; align-items: center; font-size: 18px; margin-bottom: 16px; }

.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.btn.small-btn { padding: 5px 12px; font-size: 12px; }
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.top-list li:last-child { border: 0; }
.top-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list .thumb { width: 36px; height: 36px; }

/* ---- multi-user / plans ---- */
nav a.sa { background: #3a2a1f; color: #ffd8bf; }
nav a.sa.on, nav a.sa:hover { background: var(--accent); color: #fff; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; text-align: center; }
.userbar { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: -10px auto 12px; font-size: 13px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs.sub { border: 0; }
.tabs.sub a { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; background: #fff; }
.tabs.sub a.on { background: var(--accent-soft); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.plan .price { font-size: 24px; font-weight: 700; margin: 4px 0 6px; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.feat { list-style: none; padding: 0; margin: 8px 0 0; }
.feat li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.feat li:last-child { border: 0; }
.yes { color: var(--up); font-weight: 700; } .no { color: #bbb; }
.steps { padding-left: 18px; margin: 0 0 12px; }
.bank { background: #faf9f7; border: 1px solid var(--line); border-radius: 8px; padding: 12px; white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; margin: 0; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.list-card { display: flex; gap: 12px; color: var(--ink); margin: 0; }
.list-card:hover { text-decoration: none; border-color: var(--accent); }
.list-card .thumb { width: 64px; height: 64px; flex-shrink: 0; }
.list-card p { margin: 3px 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.savebar .row-wrap, .row-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.savebar .row-wrap input { flex: 1; min-width: 200px; margin: 0; }
.danger-btn { background: var(--danger); }
.danger-text { color: var(--danger); }
.pay-actions { display: flex; gap: 6px; align-items: center; }
.pay-actions input { width: 140px; margin: 0; padding: 5px 8px; }
.upgrade { border-color: var(--accent); background: var(--accent-soft); }
.row { flex-wrap: wrap; align-items: center; }

/* ---- ads ---- */
.ad-slot { position: relative; margin: 0 0 16px; }
.ad-label { position: absolute; top: 6px; right: 8px; z-index: 1; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; background: rgba(0,0,0,.45); color: #fff; padding: 1px 6px; border-radius: 4px; }
.ad-banner { display: flex; align-items: center; gap: 16px; background: linear-gradient(90deg, #fff1e8, #fff); border: 1px solid #f3d3bf; border-radius: var(--radius); padding: 14px 18px; color: var(--ink); overflow: hidden; }
a.ad-banner:hover { text-decoration: none; border-color: var(--accent); }
.ad-banner.has-img { padding: 0; background: #fff; }
.ad-banner img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; }
.ad-banner.has-img .ad-text { padding: 12px 0; }
.ad-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ad-text b { font-size: 15px; }
.ad-text span { color: var(--muted); }
.ad-btn { background: var(--accent); color: #fff; border-radius: 7px; padding: 8px 14px; font-weight: 600; white-space: nowrap; margin-right: 14px; }
.ad-preview img { max-width: 100%; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; }
.ad-thumb { display: block; max-width: 220px; max-height: 50px; border-radius: 4px; margin-bottom: 4px; border: 1px solid var(--line); }
@media (max-width: 700px) { .ad-banner { flex-wrap: wrap; } .ad-btn { margin: 0 0 12px 14px; } }

/* ---- hot products ---- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; color: var(--ink); font-size: 13px; }
.chip span { color: var(--muted); font-size: 11px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on span { color: #ffe3d2; }
.chip:hover { text-decoration: none; border-color: var(--accent); }
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hot-card { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.hot-card.featured { border-color: var(--accent); }
.hot-flag { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; z-index: 1; }
.hot-img { display: block; aspect-ratio: 1 / 1; background: #f0eeea; }
.hot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.hot-title { color: var(--ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-price { font-weight: 600; color: var(--accent); }
.hot-stats { display: flex; gap: 12px; font-size: 13px; }
.hot-stats .up { color: var(--up); }
.hot-note { margin: 2px 0; color: #444; }
.hot-strip .hot-strip-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.hot-mini { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 13px; }
.hot-mini:hover { text-decoration: none; color: var(--accent); }
.hot-mini > span { display: flex; flex-direction: column; min-width: 0; }
.hot-mini .thumb { width: 44px; height: 44px; flex-shrink: 0; }
.scroll-box { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }

/* =====================================================================
   Super Admin console (separate shell)
   ===================================================================== */
.sa-body { --bg: #f3f4f7; --line: #e5e7ec; --muted: #6b7280; --ink: #111827; --side: #0f1420; --side-ink: #a7afc0; background: var(--bg); }
.sa-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sa-side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sa-brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.sa-brand:hover { text-decoration: none; }
.sa-brand .logo { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; flex-shrink: 0; }
.sa-brand b { display: block; font-size: 14px; line-height: 1.2; }
.sa-brand small { display: block; font-size: 11px; color: var(--side-ink); letter-spacing: .03em; }
.sa-nav { display: block; padding: 10px 10px 16px; flex: 1; }
.sa-nav a + .sa-group { margin-top: 4px; }
.sa-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #5d6578; padding: 16px 10px 6px; font-weight: 600; }
.sa-nav a, .sa-side-foot a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--side-ink); font-size: 13.5px; position: relative; }
.sa-nav a:hover, .sa-side-foot a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.sa-nav a.on { background: rgba(232,89,12,.16); color: #fff; }
.sa-nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sa-nav a.on svg { color: var(--accent); }
.sa-nav a span { flex: 1; }
.sa-badge { font-style: normal; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 10px; padding: 0 6px; }
.sa-side-foot { border-top: 1px solid rgba(255,255,255,.06); padding: 10px; }

.sa-main { min-width: 0; display: flex; flex-direction: column; }
.sa-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.sa-top h1 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
.sa-top p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.sa-me { display: flex; align-items: center; gap: 10px; }
.sa-me b { display: block; font-size: 13px; }
.sa-me small { display: block; font-size: 11px; color: var(--muted); }
.sa-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #e8590c, #f59f00); color: #fff; font-weight: 700; flex-shrink: 0; }
.sa-avatar.sm { width: 28px; height: 28px; font-size: 12px; float: left; margin: 2px 10px 0 0; }
.sa-content { padding: 26px 32px 10px; flex: 1; }
.sa-foot { padding: 16px 32px 26px; color: var(--muted); font-size: 12px; }

.sa-body .card { border-color: var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.sa-body .tbl th { background: #f9fafb; color: #6b7280; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.sa-body .tbl tr:hover td { background: #fafbfc; }
.sa-body .btn { border-radius: 8px; }
.sa-body .filters label, .sa-body label { color: #4b5563; }
.sa-body input, .sa-body select, .sa-body textarea { border-color: #d9dce3; border-radius: 8px; }
.sa-body .flash { border-radius: 10px; }

.sa-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.sa-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
a.sa-kpi:hover { text-decoration: none; border-color: #cfd3dc; box-shadow: 0 4px 14px rgba(16,24,40,.07); }
.sa-kpi b { font-size: 26px; letter-spacing: -.02em; margin-top: 8px; }
.sa-kpi > span:not(.ic) { color: var(--muted); font-size: 13px; }
.sa-kpi small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.sa-kpi.alert { border-color: #f5c2c0; background: #fff8f7; }
.sa-kpis.small .sa-kpi { padding: 14px 18px; }
.sa-kpis.small .sa-kpi b { font-size: 20px; margin-top: 0; }
.ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.ic.blue { background: #e8f0fe; color: #2f6fdd; } .ic.green { background: #e5f6ec; color: #1f8a4c; }
.ic.orange { background: #fff1e8; color: #e8590c; } .ic.red { background: #fdecec; color: #d9363e; }

.sa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.sa-grid.two { grid-template-columns: repeat(2, 1fr); }
.sa-grid > .card { margin: 0; }
.sa-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.sa-card-head h2 { margin: 0; }
.sa-card-head.pad { padding: 16px 16px 0; }
.sa-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 6px; }
.sa-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.sa-bar span { width: 100%; max-width: 34px; background: linear-gradient(180deg, #f08a4b, #e8590c); border-radius: 5px 5px 2px 2px; }
.sa-bar em { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; }
.sa-meter { margin-bottom: 14px; }
.sa-track { height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.sa-track span { display: block; height: 100%; background: linear-gradient(90deg, #e8590c, #f59f00); border-radius: 99px; }

@media (max-width: 1100px) { .sa-kpis { grid-template-columns: repeat(2, 1fr); } .sa-grid { grid-template-columns: 1fr; } .sa-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .sa-shell { grid-template-columns: 1fr; }
  .sa-side { position: static; height: auto; }
  .sa-nav { display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
  .sa-group { display: none; }
  .sa-nav a { white-space: nowrap; }
  .sa-nav a.on::before { display: none; }
  .sa-side-foot { display: flex; overflow-x: auto; }
  .sa-top { position: static; padding: 16px; flex-wrap: wrap; }
  .sa-content { padding: 16px; }
  .sa-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.fetch-card { border-color: #f3c9ad !important; background: linear-gradient(180deg, #fff8f3, #fff); }
.fetch-card textarea { font-size: 12.5px; }

/* ---- checkout & payment methods ---- */
.btn.block { display: block; width: 100%; text-align: center; margin-top: 12px; }
.btn.disabled, .btn:disabled { opacity: .55; pointer-events: none; }
.checkout-steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.checkout-steps span { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.checkout-steps span.on { background: var(--accent-soft); border-color: #f3c9ad; color: #7c2d12; font-weight: 600; }
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.checkout-side { position: sticky; top: 16px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout-side { position: static; } }
.pm-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 10px; }
.pm-choice { display: block; margin: 0; color: var(--ink); cursor: pointer; }
.pm-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pm-box { border: 2px solid var(--line); border-radius: 12px; padding: 14px; height: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pm-choice:hover .pm-box { border-color: #f0b892; }
.pm-choice input:checked + .pm-box { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pm-head > div { flex: 1; min-width: 0; }
.pm-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f4f2ee; font-size: 20px; flex-shrink: 0; }
.pm-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.pm-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfcac2; flex-shrink: 0; }
.pm-choice input:checked + .pm-box .pm-radio { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.pm-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.pm-dl dt { color: var(--muted); }
.pm-dl dd { margin: 0; overflow-wrap: anywhere; }
.pm-dl.wide { max-width: 460px; margin: 16px auto; text-align: left; }
.pm-instr { background: #faf9f7; border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 11px; padding: 1px 7px; cursor: pointer; color: var(--accent); margin-left: 4px; }
.copy:hover { border-color: var(--accent); }
.summary h2 { margin-bottom: 14px; }
.sum-plan { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; font-size: 15px; }
.sum-total b { font-size: 22px; color: var(--accent); }
.checkout-done { max-width: 640px; margin: 10px auto 24px; text-align: center; padding: 32px 24px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 30px; background: #fff4e0; color: #b26a00; }
.done-ico.approved { background: #e5f4ea; color: var(--up); } .done-ico.rejected { background: #fdecea; color: var(--danger); }
.timeline { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 20px 0; flex-wrap: wrap; }
.timeline li { position: relative; padding: 26px 14px 0; font-size: 12px; color: var(--muted); min-width: 140px; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #ddd; }
.timeline li.ok { color: var(--ink); font-weight: 600; } .timeline li.ok::before { background: var(--up); }
.how-pay .steps-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps-inline li { counter-increment: s; background: #faf9f7; border-radius: 10px; padding: 12px 12px 12px 44px; position: relative; display: flex; flex-direction: column; font-size: 13px; }
.steps-inline li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.steps-inline span { color: var(--muted); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.pm-card { margin: 0; }
.proof-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.receipt-page { background: #eceae6; padding: 24px 12px; }
.receipt { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 36px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.rc-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; flex-wrap: wrap; }
.rc-head h1 { font-size: 20px; margin: 8px 0 2px; } .rc-head h2 { font-size: 16px; letter-spacing: .08em; margin: 0; }
.rc-head p { margin: 2px 0; } .rc-head .r { text-align: right; }
.rc-stamp { display: inline-block; margin-top: 8px; border: 2px solid #b26a00; color: #b26a00; padding: 2px 12px; border-radius: 6px; font-weight: 800; letter-spacing: .1em; transform: rotate(-4deg); }
.rc-stamp.approved { border-color: var(--up); color: var(--up); } .rc-stamp.rejected { border-color: var(--danger); color: var(--danger); }
.rc-to { display: flex; flex-direction: column; margin: 18px 0; }
.rc-items { margin: 10px 0 6px; } .rc-items tfoot td { border-top: 2px solid var(--ink); }
.rc-foot { text-align: center; margin-top: 24px; }
.no-print { justify-content: center; margin-top: 18px; }
@media print { .receipt-page { background: #fff; padding: 0; } .receipt { box-shadow: none; } .no-print { display: none; } }

.login-foot { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 12px; margin: 0; }

/* ---- complaints & suspensions ---- */
.thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.msg { max-width: 78%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.msg.mine { align-self: flex-end; background: var(--accent-soft); border-color: #f3d3bf; }
.msg.theirs { align-self: flex-start; }
.msg-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 6px; font-size: 13px; }
.msg-body { line-height: 1.55; overflow-wrap: anywhere; }
.msg-att img { margin-top: 10px; max-width: 260px; max-height: 200px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.tbl tr.unread td { background: #fffaf5; }
.tbl tr.unread .title a { font-weight: 700; }
.pill.big { font-size: 13px; padding: 4px 12px; }
.prio { font-size: 12px; font-weight: 600; } .prio.high { color: var(--danger); } .prio.low { color: var(--muted); }
.cmp-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .cmp-layout { grid-template-columns: 1fr; } .msg { max-width: 100%; } }
.sa-badge.grey { background: #5d6578; }
.flash.small { font-size: 12.5px; padding: 8px 10px; }

/* ---- install extension page ---- */
.ext-link { margin-left: 8px; background: var(--accent); color: #fff; padding: 3px 12px; border-radius: 99px; font-weight: 600; font-size: 12.5px; }
.ext-link:hover { text-decoration: none; filter: brightness(.95); }
.ext-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #fff, #fff4ec); }
.ext-hero-l { display: flex; gap: 18px; align-items: flex-start; }
.ext-hero h1 { font-size: 22px; margin: 2px 0 6px; }
.logo.big { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; flex-shrink: 0; }
.big-btn { font-size: 15px; padding: 12px 22px; margin: 6px 10px 6px 0; }
.ext-keys { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.ext-keys input { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.ext-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.guide-img img { display: block; width: 100%; max-width: 1200px; margin: 8px auto 0; border-radius: 10px; border: 1px solid var(--line); }
.guide-thumb { width: 100%; max-height: 220px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 10px; }
@media (max-width: 860px) { .ext-hero { grid-template-columns: 1fr; } .ext-hero-l { flex-direction: column; } }

/* ---- favorites ---- */
.star { background: none; border: 0; cursor: pointer; font-size: 19px; line-height: 1; color: #c9c3ba; padding: 2px 4px; border-radius: 6px; }
.star:hover { color: #f59f00; background: #fff6e0; }
.star.on { color: #f59f00; }
h1 .star { font-size: 24px; vertical-align: 2px; }
.hot-star { position: absolute; top: 6px; right: 6px; z-index: 1; background: rgba(255,255,255,.92); border-radius: 8px; }
.fav-hot { background: #faf9f7; border-radius: 10px; padding: 8px; }
.fav-hot .star { margin-left: auto; }
.savebar .savelist { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.review-card { border-color: #f5d48f !important; }

/* =====================================================================
   User dashboard — eco theme with side menu (v2.0)
   ===================================================================== */
.u-body {
  --bg: #f2f6ee; --card: #ffffff; --ink: #1c2b22; --muted: #66756b; --line: #dfe7da;
  --accent: #2e7d4f; --accent-soft: #e6f3ea; --up: #2e7d4f; --danger: #c0392b; --warn: #a86a00;
  --leaf: #8bc34a; --forest: #14402c; --forest-2: #0d2e1f; --side-ink: #b7d1bf;
  --radius: 14px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg) radial-gradient(1200px 500px at 100% -10%, #e3efd9 0%, transparent 60%) no-repeat fixed;
}
.u-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

/* sidebar */
.u-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; color: var(--side-ink);
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-2) 100%); z-index: 30; }
.u-side::after { content: ""; position: absolute; right: -40px; bottom: 90px; width: 200px; height: 200px; pointer-events: none; opacity: .06;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17 8C8 10 5.9 16.2 3.8 21.3l1.9.7.9-2.3A4.8 4.8 0 0 0 8 20C19 20 22 3 22 3c-1 2-8 2.3-13 3.3S2 11.5 2 13.5s1.8 3.8 1.8 3.8C7 8 17 8 17 8z'/%3E%3C/svg%3E"); }
.u-brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; color: #fff; }
.u-brand:hover { text-decoration: none; }
.u-brand b { display: block; font-size: 14.5px; line-height: 1.2; letter-spacing: -.01em; }
.u-brand small { display: block; font-size: 11px; color: var(--side-ink); letter-spacing: .04em; }
.u-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; color: var(--forest);
  background: linear-gradient(135deg, #c5e8a0, var(--leaf)); box-shadow: 0 4px 14px rgba(139,195,74,.35); }
.u-logo svg { width: 20px; height: 20px; }
.u-nav { display: block; padding: 4px 12px 16px; flex: 1; position: relative; z-index: 1; }
.u-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #6f9a7f; padding: 16px 10px 6px; font-weight: 700; }
.u-nav a, .u-foot-link { display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin: 1px 0; border-radius: 10px; color: var(--side-ink);
  font-size: 13.5px; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.u-nav a span { flex: 1; }
.u-nav a svg, .u-foot-link svg { opacity: .85; flex-shrink: 0; }
.u-nav a:hover, .u-foot-link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.u-nav a.on { background: rgba(139,195,74,.16); color: #fff; font-weight: 600; }
.u-nav a.on svg { color: var(--leaf); opacity: 1; }
.u-nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--leaf); }
.u-badge { font-style: normal; background: #f0b429; color: #3b2a00; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 10px; padding: 0 6px; }
.u-side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); position: relative; z-index: 1; }
.u-plan { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px; margin-bottom: 6px; color: #fff; }
.u-plan > div { flex: 1; min-width: 0; }
.u-plan b { display: block; font-size: 13px; }
.u-plan small { display: block; font-size: 11px; line-height: 1.35; color: var(--side-ink); }
.u-plan-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(139,195,74,.18); color: var(--leaf); flex-shrink: 0; }
.u-plan.paid .u-plan-ic { background: rgba(240,180,41,.18); color: #f0b429; }
.u-plan-btn { background: var(--leaf); color: var(--forest); font-weight: 700; font-size: 11.5px; padding: 5px 10px; border-radius: 8px; }
.u-plan-btn:hover { text-decoration: none; filter: brightness(1.06); }

/* main column */
.u-main { min-width: 0; display: flex; flex-direction: column; }
.u-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 32px;
  background: rgba(242,246,238,.82); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.u-title { flex: 1; min-width: 0; }
.u-crumb { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-crumb i { font-style: normal; margin: 0 4px; opacity: .6; }
.u-crumb span { color: var(--ink); }
.u-top h1 { font-size: 22px; margin: 1px 0 0; letter-spacing: -.02em; }
.u-me { display: flex; align-items: center; gap: 10px; }
.u-me-name b { display: block; font-size: 13px; line-height: 1.2; }
.u-me-name small { display: block; font-size: 11px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0;
  background: linear-gradient(135deg, #3c9a62, #8bc34a); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.u-menu { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; place-items: center; color: var(--forest); cursor: pointer; }
.u-content { padding: 24px 32px 10px; flex: 1; }
.u-foot { display: flex; align-items: center; gap: 6px; padding: 18px 32px 28px; color: var(--muted); font-size: 12px; }
.u-foot svg { width: 14px; height: 14px; color: var(--leaf); }
.u-scrim { display: none; }

/* components re-skinned for the eco theme */
.u-body h1 { letter-spacing: -.02em; }
.u-body .card, .u-body .stat { border-color: var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20,64,44,.04), 0 6px 20px -12px rgba(20,64,44,.12); }
.u-body .stats { gap: 14px; }
.u-body .stat { position: relative; overflow: hidden; padding: 16px 18px; }
.u-body .stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--leaf), var(--accent)); }
.u-body .stat b { font-size: 24px; letter-spacing: -.02em; color: var(--forest); }
.u-body .btn { border-radius: 10px; background: linear-gradient(180deg, #379160, var(--accent)); box-shadow: 0 2px 6px -2px rgba(46,125,79,.5); }
.u-body .btn.ghost { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.u-body .btn.danger-btn { background: var(--danger); }
.u-body input, .u-body select, .u-body textarea { border-color: #d3ddcd; border-radius: 10px; background: #fcfdfb; }
.u-body input:focus, .u-body select:focus, .u-body textarea:focus { outline: 3px solid rgba(46,125,79,.15); border-color: var(--accent); background: #fff; }
.u-body .tbl th { background: #f5f9f2; color: #5a6c60; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.u-body .tbl tr:hover td { background: #f8fbf6; }
.u-body .tbl tr.unread td { background: #f3faef; }
.u-body .flash { border-radius: 12px; border: 1px solid transparent; }
.u-body .flash.ok { background: #e6f3ea; border-color: #c9e4d2; color: #14532d; }
.u-body .flash.info { background: #eef6e6; border-color: #d4e8c2; color: #2d4a1b; }
.u-body .flash.err { border-color: #f4cfca; }
.u-body .pill.on { background: #e1f1e6; color: var(--accent); }
.u-body .chip { border-radius: 99px; }
.u-body .chip.on span { color: #d8eedd; }
.u-body .tabs a.on { color: var(--accent); border-color: var(--accent); }
.u-body .thumb { border-radius: 10px; background: #edf3e8; }
.u-body .ad-banner { background: linear-gradient(90deg, #eaf5e3, #fff); border-color: #d4e8c2; }
.u-body .ad-banner.has-img { background: #fff; }
.u-body .hot-flag { background: linear-gradient(90deg, #e8590c, #f59f00); }
.u-body .hot-price { color: var(--accent); }
.u-body .hot-strip { background: linear-gradient(135deg, #ffffff 40%, #eef6e6); }
.u-body .upgrade { background: linear-gradient(135deg, #eef7e8, #fff); border-color: #bfdcb0; }
.u-body .plan.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.u-body .checkout-steps span.on { background: var(--accent-soft); border-color: #bfdcb0; color: var(--forest); }
.u-body .pm-choice:hover .pm-box { border-color: #a9cf96; }
.u-body .pm-ico, .u-body .pm-instr, .u-body .bank, .u-body .steps-inline li, .u-body .fav-hot { background: #f4f8f0; }
.u-body .msg.mine { background: var(--accent-soft); border-color: #c9e4d2; }
.u-body .ext-hero { background: linear-gradient(135deg, #fff 30%, #e8f4df); }
.u-body .ext-hero .logo.big, .u-body .logo { background: linear-gradient(135deg, #3c9a62, #8bc34a); }
.u-body .star:hover { background: #fdf6e3; }
.u-body .review-card { border-color: #d4e8c2 !important; }
.u-body ::selection { background: #cde8b8; }

/* login / sign-up pages */
.u-body.center-page { background: radial-gradient(900px 500px at 10% 0%, #dcefcf 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #d4eadb 0%, transparent 60%), var(--bg); }
.u-body .login { width: 380px; max-width: calc(100vw - 32px); padding: 28px; border-radius: 18px; box-shadow: 0 20px 50px -24px rgba(20,64,44,.35); }
.u-body .login h1 { font-size: 19px; }
.u-body .login .btn { width: 100%; padding: 11px; margin-top: 4px; }

/* mobile: sidebar becomes a slide-in drawer */
@media (max-width: 900px) {
  .u-shell { grid-template-columns: 1fr; }
  .u-side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 10px 0 40px rgba(0,0,0,.25); }
  .u-open .u-side { transform: none; }
  .u-open .u-scrim { display: block; position: fixed; inset: 0; background: rgba(10,30,20,.45); z-index: 25; }
  .u-menu { display: grid; }
  .u-top { padding: 12px 16px; }
  .u-top h1 { font-size: 18px; }
  .u-me-name, .u-me .pill { display: none; }
  .u-content { padding: 16px; }
  .u-foot { padding: 14px 16px 24px; }
}

/* ---- v2.1: row actions, bulk bar, Hot Selling Database ---- */
.acts { white-space: nowrap; }
.acts .act-btn + .act-btn { margin-left: 6px; }
.acts.big { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.act-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; vertical-align: middle; }
.act-btn .ic { font-size: 14px; line-height: 1; }
.act-btn:hover { border-color: var(--accent); color: var(--accent); }
.act-btn.star { color: var(--ink); }
.act-btn.star .ic { color: #b5ad9f; }
.act-btn.star:hover { background: #fffaf0; border-color: #f0b429; color: #8a5a00; }
.act-btn.star:hover .ic, .act-btn.star.on .ic { color: #f59f00; }
.act-btn.star.on { background: #fff6dd; border-color: #f3cf74; color: #7a5200; }
.act-btn.hot-btn .ic { filter: grayscale(1) opacity(.6); }
.act-btn.hot-btn:hover { background: #fff3ec; border-color: #f4a06a; color: #b4430b; }
.act-btn.hot-btn:hover .ic, .act-btn.hot-btn.on .ic { filter: none; }
.act-btn.hot-btn.on { background: linear-gradient(90deg, #fff0e5, #ffe3d1); border-color: #f4a06a; color: #a33c06; }
.act-btn em { font-style: normal; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.07); border-radius: 99px; padding: 0 6px; line-height: 17px; }
.act-btn.hot-btn.on em { background: #e8590c; color: #fff; }
.act-btn:disabled { opacity: .6; }
.tbl tr.picked td { background: #f0f8ea !important; }
.btn.hot-ghost { background: #fff1e6; color: #b4430b; box-shadow: none; }
.btn.hot-solid { background: linear-gradient(180deg, #f07b2f, #e8590c) !important; box-shadow: 0 2px 8px -2px rgba(232,89,12,.55) !important; }

.bulkbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px;
  background: #14402c; color: #fff; padding: 10px 12px 10px 18px; border-radius: 16px; box-shadow: 0 14px 40px -10px rgba(13,46,31,.55); max-width: calc(100vw - 24px); flex-wrap: wrap; }
.bulkbar[hidden] { display: none; }
.bulkbar b { color: #c5e8a0; font-size: 16px; }
.bulkbar .btn { padding: 8px 14px; }
.bulkbar .link { color: #b7d1bf; margin: 0 4px; }
@media (min-width: 901px) { .u-body .bulkbar { left: calc(50% + 126px); } }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; background: #14402c; color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 13.5px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .2s; max-width: 360px; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: #8f2a1f; }

.hot-search { padding: 14px; }
.hs-main { display: flex; align-items: center; gap: 10px; background: #f6faf2; border: 2px solid #cfe2c3; border-radius: 14px; padding: 4px 4px 4px 14px; }
.hs-main:focus-within { border-color: var(--accent); background: #fff; }
.hs-main input { border: 0; background: transparent; margin: 0; padding: 10px 4px; font-size: 15px; outline: 0 !important; flex: 1; }
.hs-main .btn { padding: 11px 22px; }
.hs-ic { font-size: 17px; }
.hs-more { margin-top: 12px; }
.hs-more label { min-width: 140px; flex: 1; }
.hs-bar { align-items: center; margin: 4px 0 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg a { padding: 6px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.seg a.on { background: var(--accent-soft); color: var(--accent); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.hot-flag.votes { background: linear-gradient(90deg, #e8590c, #f59f00); }
.hot-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0 6px; }
a.stat-link { color: var(--ink); }
a.stat-link:hover { text-decoration: none; border-color: var(--accent); }
.hot-card .hot-body { flex: 1; }
.pill.test { background: #e8eefc; color: #2f5bd3; letter-spacing: .05em; margin-top: 3px; }
