/* DocHelp — app styles. Brand colors come from Admin → Settings (--brand, --accent). */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f2efe8;
  --surface-3: #ebe7dd;
  --text: #1d1b26;
  --muted: #6c6979;
  --border: #e5e0d4;
  --ok: #15803d; --ok-bg: #e8f6ec;
  --bad: #b91c1c; --bad-bg: #fdecec;
  --warn: #a16207; --warn-bg: #fdf5df;
  --info: #1d4ed8; --info-bg: #e9effd;
  --ai: #a21caf; --ai-bg: #faeafc;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 25, 10, .05), 0 8px 24px -12px rgba(30, 25, 10, .14);
  --shadow-lg: 0 20px 50px -20px rgba(30, 25, 10, .28);
  --font: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #101217;
  --surface: #171a21;
  --surface-2: #1e222b;
  --surface-3: #262b36;
  --text: #ecebf3;
  --muted: #9b99a9;
  --border: #2a2f3b;
  --ok: #4ade80; --ok-bg: #12301f;
  --bad: #f87171; --bad-bg: #3a1717;
  --warn: #fbbf24; --warn-bg: #352a0c;
  --info: #93b4ff; --info-bg: #17223d;
  --ai: #e879f9; --ai-bg: #331438;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --brand-soft: color-mix(in srgb, var(--brand) 22%, transparent);
  --brand-ink: color-mix(in srgb, var(--brand) 55%, #fff);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.h3 { font-size: 1.35rem; } .h4 { font-size: 1.12rem; } .h5 { font-size: 1rem; } .h6 { font-size: .9rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, canvas { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.container.narrow, .narrow { max-width: 820px; }
.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 46px; padding-bottom: 46px; }
.section.alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 26px; }
.section-head.left { text-align: left; margin-left: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; } .xsmall { font-size: .76rem; }
.center { text-align: center; }
.pad { padding: 20px; } .pad-sm { padding: 12px; } .pad-xl { padding: 70px 0; }
.mt { margin-top: 18px; } .mt-sm { margin-top: 10px; } .mt-lg { margin-top: 40px; }
.hidden, [hidden] { display: none !important; }
.row { display: flex; align-items: center; } .row.gap { gap: 10px; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; } .row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.break { word-break: break-word; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; display: inline-block; vertical-align: bottom; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inline { display: inline; }
.w-xs { width: 80px !important; } .w-sm { width: 150px !important; }

/* Icons */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ico.xs { width: .9em; height: .9em; } .ico.sm { width: 1em; height: 1em; } .ico.xl { width: 46px; height: 46px; opacity: .8; }

/* Buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 1px solid transparent; background: var(--b); color: #fff; font: 600 .95rem/1 var(--font); padding: .78em 1.15em; border-radius: 11px; cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--b) 70%, transparent); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--b) 80%, transparent); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: #fff; color: #1d1b26; }
.btn.danger { --b: var(--bad); }
.btn.ghost.danger { color: var(--bad); }
.btn.ok { --b: #16a34a; }
.btn.lg { font-size: 1.04rem; padding: .95em 1.4em; border-radius: 13px; }
.btn.sm { font-size: .86rem; padding: .58em .9em; border-radius: 9px; }
.btn.xs { font-size: .78rem; padding: .42em .65em; border-radius: 8px; box-shadow: none; }
.btn.block { display: flex; width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.has-badge .badge { position: absolute; top: -5px; right: -5px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* Chips & tags */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 .88rem var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: .18em .6em; border-radius: 999px; background: var(--surface-2); color: var(--muted); line-height: 1.5; vertical-align: middle; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.info { background: var(--info-bg); color: var(--info); }
.tag.ai { background: var(--ai-bg); color: var(--ai); }
.tag.premium { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #5b3a00; }
.nbadge { background: var(--accent); color: #fff; font-size: .7rem; border-radius: 999px; padding: 0 .5em; margin-left: auto; line-height: 1.6; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.empty-state { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state h1, .empty-state h2 { margin: 6px 0 0; }
.big-404 { font: 800 5rem/1 var(--font-head); color: var(--brand); opacity: .25; }

/* Alerts & flashes */
.alert { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; margin: 0 0 14px; font-size: .94rem; background: var(--surface-2); border: 1px solid var(--border); }
.alert.error { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.alert.success { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.alert.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.alert a { color: inherit; text-decoration: underline; }
.alert.block-link { text-decoration: none; }
.flash-stack { margin-top: 14px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: slideDown .3s ease; }
.flash.success { border-left: 4px solid var(--ok); } .flash.error { border-left: 4px solid var(--bad); } .flash.info { border-left: 4px solid var(--info); }
.flash .ico { color: var(--muted); }
.flash span { flex: 1; }
.flash-x { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: slideUp .25s ease; }
.toast.error { background: var(--bad); color: #fff; } .toast.success { background: #15803d; color: #fff; }
.impersonate-bar, .notice-bar { background: #1d1b26; color: #fff; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 8px 14px; font-size: .9rem; }
.notice-bar { background: var(--warn-bg); color: var(--warn); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font: 800 1.15rem var(--font-head); text-decoration: none !important; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 6px 14px -6px var(--brand); }
.logo-mark .ico { width: 19px; height: 19px; }
.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.mainnav a { color: var(--muted); font-weight: 600; padding: .45em .8em; border-radius: 9px; text-decoration: none; }
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a.active { color: var(--text); background: var(--surface-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle { font-weight: 700; padding: .38em .7em; }
[data-theme="light"] .when-dark, [data-theme="dark"] .when-light { display: none; }
.usermenu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; color: var(--text); font: inherit; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 700; font-size: .9rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.4rem; flex: none; }
.credit-pill { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; animation: slideDown .15s ease; }
.dropdown-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.dropdown-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--text); background: none; border: 0; font: 500 .94rem var(--font); cursor: pointer; text-decoration: none; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); }
.show-sm, .show-md { display: none !important; }

/* Hero */
.hero { padding: 54px 0 30px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 680px; height: 680px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: .35em .85em; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.hl { background: linear-gradient(100deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .94rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ico { color: var(--ok); }
.hero-art { position: relative; height: 340px; }
.paper { position: absolute; width: 190px; height: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.paper span { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); }
.paper span.short { width: 60%; }
.paper b { font: 800 .8rem var(--font-head); color: #fff; background: #e11d48; align-self: flex-start; padding: .3em .6em; border-radius: 6px; letter-spacing: .05em; }
.paper b.w { background: #2563eb; }
.paper.p1 { left: 8%; top: 40px; transform: rotate(-8deg); animation: float 7s ease-in-out infinite; }
.paper.p2 { left: 34%; top: 0; transform: rotate(3deg); z-index: 2; animation: float 6s ease-in-out infinite .6s; }
.paper.p3 { left: 54%; top: 80px; transform: rotate(10deg); animation: float 8s ease-in-out infinite 1.2s; }
.flow-badge { position: absolute; bottom: 6px; left: 18%; z-index: 3; background: var(--text); color: var(--bg); font-weight: 700; font-size: .9rem; padding: .6em 1em; border-radius: 999px; box-shadow: var(--shadow-lg); display: inline-flex; gap: 6px; align-items: center; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .paper { animation: none !important; } * { scroll-behavior: auto !important; } }

/* Tools grid */
.tool-filter { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.search-box { position: relative; max-width: 460px; }
.search-box .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 40px !important; border-radius: 12px !important; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-grid.compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tool-card { --tc: var(--brand); display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .2s, border-color .2s; position: relative; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--tc) 40%, var(--border)); }
.tool-card .tool-body { display: flex; flex-direction: column; gap: 3px; }
.tool-card strong { font-family: var(--font-head); font-size: 1.02rem; }
.tool-card.mini { flex-direction: row; align-items: center; padding: 11px 12px; gap: 10px; }
.tool-card.mini strong { font-size: .9rem; }
.tool-card.mini .xsmall { margin-left: auto; }
.tool-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--tc, var(--brand)); background: color-mix(in srgb, var(--tc, var(--brand)) 13%, transparent); flex: none; }
.tool-card.mini .tool-ico { width: 34px; height: 34px; border-radius: 10px; }
.tool-ico.big { width: 64px; height: 64px; border-radius: 18px; margin: 10px auto 14px; }
.tool-ico.big .ico { width: 30px; height: 30px; }
.tool-ico.xs { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; vertical-align: middle; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.feature p { margin: 0; font-size: .95rem; }
.f-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps h3 { font-size: 1.05rem; margin: 4px 0; }
.step-n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font: 800 1rem var(--font-head); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 34px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); box-shadow: var(--shadow-lg); }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .9; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 36px 0 20px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: .9rem; margin-bottom: 10px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); padding: 3px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], input[type=date], input[type=url], select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .66em .8em; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=color] { width: 70px; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
input[type=range] { accent-color: var(--brand); width: 100%; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; }
label.check, .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.pw-meter { display: block; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
.switch { appearance: none; -webkit-appearance: none; width: 42px !important; height: 24px !important; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; flex: none; border: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }
.switch-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-weight: 500; }
.inline-label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-size: .86rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search] { flex: 1 1 200px; width: auto; }
.filters select, .filters input[type=date] { width: auto; flex: 0 0 auto; }
.packs { border: 1px dashed var(--border) !important; border-radius: 12px; padding: 12px !important; }
.packs legend { font-weight: 600; font-size: .92rem; padding: 0 6px; }
select.xs { padding: .3em .4em; font-size: .78rem; width: auto; border-radius: 8px; }

/* Auth */
.auth-wrap { display: grid; place-items: center; padding: 40px 16px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px; }
.auth-card h1 { font-size: 1.6rem; }

/* Dashboard & stats */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.stat-value { font: 800 1.7rem/1.1 var(--font-head); letter-spacing: -.02em; }
.stat-value small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.meter { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin: 4px 0; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 3px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.two-col > .card { margin-bottom: 0; }
.two-col + .card, .two-col + .two-col { margin-top: 18px; }
.tx-list, .simple-list, .notif-list, .q-list, .hbar-list { list-style: none; margin: 0; padding: 0; }
.tx-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.tx-list li:last-child { border: 0; }
.tx-list span { display: flex; flex-direction: column; font-size: .92rem; }
.tx-list .pos { color: var(--ok); } .tx-list .neg { color: var(--bad); }
.simple-list li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.simple-list li:last-child { border: 0; }

/* Notifications & support */
.notif-list li { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.notif-list li:last-child { border: 0; }
.notif-list li > div { flex: 1; }
.notif-list p { margin: 2px 0; }
.n-dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; margin-top: 8px; flex: none; }
.notif-list li.unread .n-dot { background: var(--accent); }
.notif-list li.success .n-dot { box-shadow: 0 0 0 3px var(--ok-bg); }
.thread { padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.bubble.me { align-self: flex-end; background: var(--brand-soft); }
.b-who { font-size: .75rem; font-weight: 700; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.b-body { white-space: pre-wrap; word-break: break-word; }
.composer { flex-direction: row; align-items: flex-end; }
.composer textarea { flex: 1; }
.inbox { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.inbox-list { max-height: 72vh; overflow-y: auto; }
.inbox-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.inbox-list a span { width: 100%; }
.inbox-list a.active { background: var(--brand-soft); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.price-card { padding: 26px; position: relative; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { border: 2px solid var(--brand); }
.price { font: 800 2.4rem/1 var(--font-head); letter-spacing: -.03em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.ribbon { position: absolute; top: -12px; right: 18px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: .25em .8em; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks .ico { color: var(--ok); margin-top: 3px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 220px)); gap: 14px; justify-content: center; }
.pack { padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none !important; transition: transform .15s; margin: 0; }
.pack:hover { transform: translateY(-2px); border-color: var(--brand); }
.pack strong { font: 800 2rem var(--font-head); }
.pack-price { font-weight: 700; color: var(--brand-ink); margin-top: 6px; }
details { border-top: 1px solid var(--border); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; }
.method-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.method { flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 11px; padding: 9px 14px; cursor: pointer; font-weight: 600; }
.method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.method.bkash span { color: #e2136e; } .method.nagad span { color: #f26522; } .method.rocket span { color: #8c3494; }
.pay-box { background: var(--surface-2); border-radius: 12px; padding: 14px; }
.pay-box p { margin: 4px 0; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 11px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.table .row-muted td { opacity: .55; }
.table .group-row td { background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.table th.center, .table td.center { text-align: center; }
.w-check { width: 34px; }
.perm-table th { white-space: normal; min-width: 80px; font-size: .7rem; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 8px; text-decoration: none; }
.pager a.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.review-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.review-form input { padding: .4em .5em; font-size: .85rem; }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; top: 72px; z-index: 5; }
.bulk-bar select { width: auto; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; gap: 22px; padding-top: 18px; padding-bottom: 30px; align-items: start; }
.admin-side { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); max-height: calc(100vh - 100px); overflow-y: auto; }
.admin-side-head { font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 10px; display: flex; gap: 6px; align-items: center; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 500; font-size: .94rem; text-decoration: none; }
.admin-side nav a:hover { background: var(--surface-2); }
.admin-side nav a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.admin-side nav a .ico { color: var(--muted); }
.admin-side nav a.active .ico { color: var(--brand-ink); }
.admin-side .muted-link { color: var(--muted); margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 12px; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; font-size: 1.6rem; flex: 1; }
.todo-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.todo { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin: 0; color: var(--text); text-decoration: none !important; border-left: 4px solid var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 18px; }
.bar { flex: 1; background: var(--bc); border-radius: 5px 5px 2px 2px; position: relative; min-height: 2px; opacity: .85; transition: opacity .15s; }
.bar:hover { opacity: 1; }
.bar i { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: .65rem; font-style: normal; color: var(--muted); }
.bars-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.hbar-list li { display: grid; grid-template-columns: minmax(80px, 140px) 1fr 40px; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.hbar-list.sm li { grid-template-columns: minmax(60px, 100px) 1fr 32px; font-size: .82rem; }
.hbar { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.hbar-list b { text-align: right; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.mini-stats .card { margin: 0; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; font-size: .92rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot.on { background: #22c55e; } .dot.off { background: var(--muted); } .dot.warn { background: #f59e0b; }
.user-head { display: flex; gap: 16px; align-items: center; }
.user-head p { margin: 0 0 4px; }
.q-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.asst-test-out { margin-top: 14px; }
.settings-form { max-width: 760px; }
dialog.modal { border: 0; border-radius: 18px; padding: 24px; width: min(520px, calc(100% - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(10, 10, 20, .45); backdrop-filter: blur(3px); }

/* Prose */
.prose p { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.prose h2 { margin-top: 1.4em; }

/* Tool page */
.tool-hero { padding: 26px 0 10px; text-align: center; }
.tool-hero .lead { margin: 0 auto 10px; }
.crumb { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .88rem; }
.tool-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tool-wrap { margin-top: 14px; }
.tool-app { overflow: hidden; }
.howto { padding-left: 1.2em; }
.howto li { margin-bottom: 6px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--surface-3); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.dropzone { margin: 18px; border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: 18px; padding: 44px 20px; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.dropzone:hover, .dropzone.over { background: var(--brand-soft); border-color: var(--brand); }
.dropzone.over { transform: scale(1.01); }
.dz-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 10px 24px -10px var(--brand); }
.dz-icon .ico { width: 28px; height: 28px; }
.dropzone h3 { margin: 0 0 4px; font-size: 1.2rem; }
.dropzone.compact { padding: 14px; margin: 12px 18px; }
.dropzone.compact .dz-icon, .dropzone.compact p { display: none; }
.dropzone.compact h3 { font-size: .95rem; margin: 0; }
.file-list { list-style: none; padding: 0 18px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; border: 1px solid transparent; }
.file-item.dragging { opacity: .5; border-color: var(--brand); }
.file-thumb { width: 44px; height: 56px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none; font: 800 .62rem var(--font-head); color: var(--muted); }
.file-thumb img, .file-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .94rem; }
.file-actions { display: flex; gap: 4px; }
.file-actions button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.file-actions button:hover { background: var(--surface-3); }
.drag-handle { cursor: grab; color: var(--muted); touch-action: none; }
.tool-options { padding: 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border); margin-top: 16px; }
.tool-options .grid-2, .tool-options .grid-3 { gap: 12px; }
.opt-group { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-group label { flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 11px; padding: 9px 13px; cursor: pointer; font-weight: 500; background: var(--surface); }
.opt-group label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.opt-group input { margin: 0; }
.opt-note { font-size: .86rem; color: var(--muted); margin: -4px 0 0; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-switch label { border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 500; flex-direction: row; align-items: flex-start; gap: 10px; }
.mode-switch label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mode-switch strong { display: block; }
.tool-actions { padding: 0 18px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tool-actions .btn.lg { flex: 1; min-width: 200px; }
.progress { padding: 26px 18px; text-align: center; }
.progress-bar { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; max-width: 460px; margin: 12px auto; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .25s; border-radius: 5px; }
.progress-bar.indeterminate span { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.result { padding: 26px 18px; text-align: center; }
.result-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; animation: pop .35s ease; }
.result-icon .ico { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.result-files { list-style: none; padding: 0; margin: 14px auto; max-width: 520px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.result-files li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 11px; }
.result-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-note { font-size: .92rem; color: var(--muted); }
.continue { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.continue h4 { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.continue .chips { justify-content: center; }
.text-result { text-align: left; background: var(--surface-2); border-radius: 12px; padding: 16px; max-height: 420px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; font-size: .95rem; margin: 12px 0; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; padding: 18px; }
.page-card { position: relative; background: var(--surface-2); border: 2px solid transparent; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: center; user-select: none; cursor: grab; touch-action: none; }
.page-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.page-card.dragging { opacity: .4; }
.page-card.drop-before { box-shadow: -4px 0 0 var(--brand); }
.page-card canvas { width: 100%; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: transform .2s; }
.page-card .pc-n { font-size: .78rem; font-weight: 700; color: var(--muted); }
.page-card .pc-tools { display: flex; gap: 4px; }
.page-card .pc-tools button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); padding: 0; }
.page-card .pc-check { position: absolute; top: 6px; left: 6px; }
.editor { display: flex; flex-direction: column; }
.editor-bar { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 64px; background: var(--surface); z-index: 6; align-items: center; }
.editor-bar .sep { width: 1px; height: 26px; background: var(--border); margin: 0 4px; }
.editor-bar button.tb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 9px; padding: 7px 11px; font: 600 .86rem var(--font); cursor: pointer; }
.editor-bar button.tb.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.editor-bar input[type=color] { width: 38px; height: 34px; }
.editor-bar select, .editor-bar input[type=number] { width: auto; padding: .4em .5em; font-size: .86rem; }
.editor-pages { padding: 18px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: 75vh; overflow: auto; }
.ed-page { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.ed-page canvas.bg { display: block; width: 100%; height: auto; }
.ed-layer { position: absolute; inset: 0; }
.ed-page.mode-text .ed-layer, .ed-page.mode-whiteout .ed-layer, .ed-page.mode-rect .ed-layer, .ed-page.mode-image .ed-layer, .ed-page.mode-sign .ed-layer { cursor: crosshair; }
.ed-obj { position: absolute; border: 1px dashed transparent; touch-action: none; }
.ed-obj.sel { border-color: var(--brand); }
.ed-obj .ed-text { outline: none; white-space: pre; min-width: 10px; line-height: 1.2; cursor: text; }
.ed-obj img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ed-obj .ed-del, .ed-obj .ed-res { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; border: 2px solid #fff; display: none; place-items: center; font-size: 12px; cursor: pointer; padding: 0; line-height: 1; }
.ed-obj .ed-del { top: -12px; right: -12px; background: var(--bad); }
.ed-obj .ed-res { bottom: -12px; right: -12px; cursor: nwse-resize; }
.ed-obj.sel .ed-del, .ed-obj.sel .ed-res { display: grid; }
.ed-move { position: absolute; top: -12px; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); display: none; place-items: center; cursor: move; font-size: 11px; border: 2px solid #fff; }
.ed-obj.sel .ed-move { display: grid; }
.sig-pad { border: 1px dashed var(--border); border-radius: 12px; background: #fff; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }

/* Assistant widget */
.asst-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 12px 30px -10px var(--brand); display: grid; place-items: center; transition: transform .2s; }
.asst-fab:hover { transform: scale(1.06); }
.asst-fab .ico { width: 26px; height: 26px; }
.asst-panel { position: fixed; right: 18px; bottom: 88px; z-index: 61; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: slideUp .2s ease; }
.asst-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); color: #fff; }
.asst-head .avatar { background: rgba(255, 255, 255, .2); }
.asst-head div { flex: 1; line-height: 1.25; }
.asst-head small { opacity: .85; }
.asst-head button { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.asst-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.asst-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--border); align-self: flex-start; word-break: break-word; }
.asst-msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: transparent; }
.asst-msg a { color: inherit; text-decoration: underline; }
.asst-msg .asst-link { display: inline-flex; margin-top: 8px; }
.asst-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.asst-sugs button { font: 500 .8rem var(--font); background: var(--surface); border: 1px solid var(--border); color: var(--brand-ink); padding: .35em .75em; border-radius: 999px; cursor: pointer; text-align: left; }
.asst-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: blink 1.2s infinite; }
.asst-typing span:nth-child(2) { animation-delay: .2s; } .asst-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.asst-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.asst-form input { flex: 1; border-radius: 999px; }
.asst-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }

/* Checkout & billing */
.checkout { display: flex; flex-direction: column; gap: 12px; }
.step-h { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .95rem; }
.step-h span { width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: .8rem; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.plan-opt { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; cursor: pointer; font-weight: 500; }
.plan-opt span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.plan-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.method { --mc: var(--brand); }
.method span { color: var(--mc) !important; font-weight: 700; }
.method:has(input:checked) { border-color: var(--mc); background: color-mix(in srgb, var(--mc) 10%, transparent); }
.pay-big { font-size: 1.05rem; }
.pay-number strong { font: 800 1.35rem var(--font-head); letter-spacing: .02em; }
.pay-info { white-space: pre-wrap; }
.method-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 22px; }
.method-chip { --mc: #666; font-weight: 700; font-size: .85rem; color: var(--mc); border: 1px solid color-mix(in srgb, var(--mc) 40%, var(--border)); background: var(--surface); padding: .3em .8em; border-radius: 999px; }
.price-grid.plans-3 { grid-template-columns: repeat(3, minmax(0, 340px)); }
.price-grid.plans-4 { grid-template-columns: repeat(4, minmax(0, 290px)); }
.receipt .right, .table .right, .table td.right, .table th.right { text-align: right; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.contact-card { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin: 0; color: var(--text); text-decoration: none !important; }
.contact-card span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact-card small { overflow: hidden; text-overflow: ellipsis; }
.cc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.contact-card.whatsapp .cc-ico { background: #dcfce7; color: #15803d; }
.footer-contact { display: flex; gap: 14px; flex-wrap: wrap; }
.wa-fab { position: fixed; left: 18px; bottom: 18px; z-index: 59; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.07); }
@media print { .no-print, .wa-fab { display: none !important; } .receipt { box-shadow: none; border: 0; } }

.maint-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); animation: spin 8s linear infinite; }

/* Responsive */
@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; max-height: none; z-index: 80; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .25s; }
  .admin-side.open { transform: none; }
  .show-md { display: inline-grid !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .inbox { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col > .card + .card { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .price-grid, .price-grid.plans-3, .price-grid.plans-4 { grid-template-columns: minmax(0, 420px); }
  .mainnav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; margin: 0; box-shadow: var(--shadow-lg); display: none; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: .7em .8em; }
  .show-sm { display: inline-grid !important; }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .container { padding: 0 14px; }
  .section { padding-top: 34px; padding-bottom: 34px; }
  .topbar-inner { gap: 8px; }
  .logo-text { font-size: 1.02rem; }
  .hide-xs { display: none !important; }
  .feature-grid, .steps, .grid-2, .grid-3, .stat-grid.three { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 1.35rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { flex-direction: row; align-items: flex-start; padding: 14px; }
  .tool-card .tool-tags { display: none; }
  .tool-grid.compact { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 24px; }
  .dropzone { margin: 12px; padding: 32px 14px; }
  .auth-card { padding: 22px; }
  .mode-switch { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .asst-panel { right: 12px; bottom: 82px; }
  .asst-fab { right: 12px; bottom: 12px; }
  .wa-fab { left: 12px; bottom: 12px; width: 50px; height: 50px; }
  .composer { flex-direction: column; align-items: stretch; }
  .hbar-list li { grid-template-columns: 90px 1fr 34px; }
  .editor-bar { top: 56px; }
  .flow-badge { display: none; }
}
@media print { .topbar, .site-footer, .asst-fab, .asst-panel { display: none !important; } }

/* Real user check (super admin) */
.insight { margin-top: 18px; }
.risk { display: inline-flex; gap: 6px; align-items: baseline; padding: .35em .9em; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.risk b { font-size: 1.15rem; }
.risk-ok { background: var(--ok-bg); color: var(--ok); } .risk-warn { background: var(--warn-bg); color: var(--warn); } .risk-bad { background: var(--bad-bg); color: var(--bad); }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.insight-grid > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.insight-grid small { color: var(--muted); overflow-wrap: anywhere; }
.h6 { font-size: .95rem; margin: 0 0 8px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); max-height: 520px; overflow: auto; }
.timeline li { position: relative; padding: 6px 0 6px 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .88rem; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.timeline li.bad::before { background: var(--bad); } .timeline li.ok::before { background: var(--ok); } .timeline li.warn::before { background: var(--warn); } .timeline li.muted::before { background: var(--border); }
.timeline .tl-time { color: var(--muted); font-size: .78rem; min-width: 120px; }
.timeline .tl-what { font-weight: 600; } .timeline li.muted .tl-what { font-weight: 400; color: var(--muted); }
.timeline .tl-detail { font-size: .8rem; flex-basis: 100%; padding-left: 130px; }
@media (max-width: 640px) { .timeline .tl-detail { padding-left: 0; } }

/* Tool prices & passes */
.price-strip { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; margin-bottom: 14px; }
.ps-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ps-cost { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.ps-pass summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; }
.ps-pass summary::-webkit-details-marker { display: none; }
.ps-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.ps-opt { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface); }
.ps-opt:hover, .ps-opt.best { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent); }
.ps-opt b { font-size: 1.1rem; }
.plan-group-h { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 600; font-size: .9rem; color: var(--muted); }
.pass-opt { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.cost-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface); font-size: .9rem; }
.cost-item span:nth-child(2) { flex: 1; }
.cost-item b { font-size: .8rem; color: var(--muted); font-weight: 600; text-align: right; }

.seo-table input, .seo-table textarea { width: 100%; margin-bottom: 4px; }
.seo-table td { vertical-align: top; min-width: 160px; }
.faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }

/* Remove watermark */
.wm-wrap { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 18px; padding: 18px; }
.wm-side { display: flex; flex-direction: column; gap: 10px; }
.wm-list { display: flex; flex-direction: column; gap: 6px; }
.wm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wm-pair figure { margin: 0; } .wm-pair figcaption { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.wm-canvas { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; min-height: 120px; display: grid; place-items: center; background: var(--surface-2); }
.wm-canvas canvas { width: 100%; height: auto; display: block; }
.wm-img { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wm-stage { position: relative; align-self: center; max-width: 100%; touch-action: none; }
.wm-stage canvas { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.wm-stage [data-ov] { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.wm-tools .seg { display: inline-flex; gap: 4px; }
@media (max-width: 760px) { .wm-wrap { grid-template-columns: 1fr; } }
