/* =====================================================================
   Adwuma — design tokens & components
   ===================================================================== */
:root {
  --brand: #0b6e4f;
  --brand-600: #095c42;
  --brand-50: #e8f5ef;
  --brand-100: #cdeadb;
  --gold: #f5b700;
  --gold-50: #fff7db;
  --ink: #0f1d18;
  --ink-2: #3c4a45;
  --muted: #6b7a74;
  --line: #e3e9e6;
  --bg: #f5f7f6;
  --card: #ffffff;
  --red: #d64545;  --red-50: #fdecec;
  --amber: #b7791f; --amber-50: #fef5e3;
  --blue: #2563eb; --blue-50: #eaf1fe;
  --violet: #7c3aed; --violet-50: #f2ecfe;
  --green: #15803d; --green-50: #e7f6ec;
  --grey: #64748b; --grey-50: #f1f4f6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,20,.05), 0 4px 16px rgba(16,24,20,.06);
  --shadow-lg: 0 12px 40px rgba(16,24,20,.16);
  --sidebar: 248px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; vertical-align: -3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #0c241c; color: #dfeee8; display: flex; flex-direction: column; z-index: 40; transition: transform .2s; }
.sidebar .brand { color: #fff; padding: 20px 20px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--gold); display: grid; place-items: center; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.role-pill { margin: 4px 20px 12px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 4px 10px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b9d3c8; font-weight: 500; text-decoration: none; margin-bottom: 2px; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: rgba(245,183,0,.14); color: #fff; }
.sidebar nav a.active .icon { color: var(--gold); }
.sidebar nav .count { margin-left: auto; background: var(--gold); color: #1d1600; font-size: .7rem; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot .me { display: flex; gap: 10px; align-items: center; color: #fff; flex: 1; min-width: 0; text-decoration: none; }
.sidebar-foot .me span { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; min-width: 0; }
.sidebar-foot .me small { color: #8fb3a4; font-weight: 400; }
.sidebar-foot .logout { color: #8fb3a4; padding: 8px; }
.sidebar-scrim { display: none; }

.has-shell { padding-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(245,247,246,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); min-height: 60px; }
.topbar-title { font-size: 1.15rem; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 24px 28px 48px; max-width: 1280px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.icon-btn .dot, .tabbar .dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.only-mobile { display: none; }
.tabbar { display: none; }

/* ---------- Public ---------- */
.pubnav { display: flex; align-items: center; justify-content: space-between; padding: 14px max(16px, calc((100% - 1180px)/2)); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.pubnav nav { display: flex; align-items: center; gap: 18px; }
.pubnav nav a { color: var(--ink-2); font-weight: 600; }
.pubnav nav a.btn-primary { color: #fff; }
.public-main { min-height: 70vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.pubfoot { background: #0c241c; color: #cfe3da; padding: 48px 16px 24px; margin-top: 64px; }
.pubfoot .brand { color: #fff; }
.pubfoot-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.pubfoot h4 { color: #fff; }
.pubfoot a, .pubfoot span { display: block; color: #a9c7ba; margin-bottom: 6px; }
.pubfoot .muted { color: #8fb3a4; }
.copyright { text-align: center; color: #6e9585; font-size: .8rem; margin-top: 32px; }

.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(245,183,0,.25), transparent 60%), linear-gradient(160deg, #0b6e4f 0%, #0c3f2f 70%); color: #fff; padding: 64px 16px 88px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; max-width: 760px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.12rem; color: #cfe8dd; max-width: 620px; }
.hero-box { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); max-width: 760px; margin-top: 28px; }
.hero-box textarea { border: 0; resize: none; font-size: 1.05rem; padding: 6px 4px; min-height: 76px; box-shadow: none !important; }
.hero-box .row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.hero-box select { max-width: 280px; }
.hero-box .row-actions .btn-ghost { white-space: normal; text-align: left; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: #cfe8dd; font-size: .9rem; }
.trust-row span { display: inline-flex; gap: 8px; align-items: center; }
.trust-row .icon { color: var(--gold); }
.section { padding: 56px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.6rem; margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; font-weight: 600; transition: .15s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.cat-tile .icon { width: 26px; height: 26px; color: var(--brand); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-step { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.how-step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-50); color: #7a5b00; display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.cta-band { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-card { border-radius: 18px; padding: 28px; color: #fff; background: linear-gradient(135deg, #0c3f2f, #0b6e4f); }
.cta-card.gold { background: linear-gradient(135deg, #3d2c00, #8a6500); }
.cta-card p { color: rgba(255,255,255,.8); }

/* ---------- Cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flat { box-shadow: none; }
.card.tight { padding: 14px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.split > *, .split-wide > *, .grid > *, .pos > * { min-width: 0; }
.scroll-x { overflow-x: auto; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.sticky { position: sticky; top: 76px; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.stat.gold .stat-icon { background: var(--gold-50); color: #8a6500; }
.stat.red .stat-icon { background: var(--red-50); color: var(--red); }
.stat.blue .stat-icon { background: var(--blue-50); color: var(--blue); }
.stat.violet .stat-icon { background: var(--violet-50); color: var(--violet); }
.stat-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.stat > div:last-child { min-width: 0; }
.stat small { display: block; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: .12s; }
.btn:hover { border-color: var(--ink-2); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1d1600; }
.btn-gold:hover { background: #e2a900; border-color: #e2a900; }
.btn-danger { background: #fff; border-color: #f2c4c4; color: var(--red); }
.btn-danger:hover { background: var(--red-50); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--grey-50); border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.field small { color: var(--muted); display: block; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cfd8d4; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,110,79,.15); }
textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.input-group { display: flex; }
.input-group > :first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > :last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.prefix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--grey-50); border: 1px solid #cfd8d4; border-radius: 10px 0 0 10px; color: var(--muted); font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; background: #fff; height: 100%; }
.choice span small { font-weight: 400; color: var(--muted); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(11,110,79,.1); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cbd5d1; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.dropzone { border: 2px dashed #cfd8d4; border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; display: block; font-weight: 500; }
.dropzone:hover { border-color: var(--brand); color: var(--brand); }
.dropzone input { display: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img, .thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fafcfb; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Badges, avatars, stars ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-violet { background: var(--violet-50); color: var(--violet); }
.badge-grey { background: var(--grey-50); color: var(--grey); }
.badge-gold { background: var(--gold-50); color: #7a5b00; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--grey-50); font-size: .82rem; font-weight: 600; color: var(--ink-2); border: 1px solid transparent; }
.chip .icon { width: 14px; height: 14px; }
.chip.green { background: var(--brand-50); color: var(--brand); }
button.chip { cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; }
button.chip:hover { border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--brand-100); color: var(--brand); font-weight: 800; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star { width: 15px; height: 15px; display: inline-block; background: #d8dfdc; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star.full { background: var(--gold); }
.star.half { background: linear-gradient(90deg, var(--gold) 50%, #d8dfdc 50%); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { width: 34px; height: 34px; margin: 0; cursor: pointer; background: #d8dfdc; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: .1s; }
.star-input.sm label { width: 22px; height: 22px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { background: var(--gold); }
.verified { color: var(--blue); display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; }
.verified .icon { width: 16px; height: 16px; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li, .list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
a.list-item { color: inherit; text-decoration: none; }
a.list-item:hover { background: #fafcfb; }
.list-item .meta { color: var(--muted); font-size: .85rem; }
.job-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: inherit; transition: .12s; margin-bottom: 12px; text-decoration: none !important; }
.job-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.job-card .title { font-weight: 700; font-size: 1.02rem; }
.job-card .meta { color: var(--muted); font-size: .85rem; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.job-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-card .meta .icon { width: 14px; height: 14px; }
.job-card.invited { border-color: var(--gold); background: linear-gradient(0deg, #fff, #fffbea); }
.urgent { color: var(--red); font-weight: 700; }

/* ---------- Pro match cards ---------- */
.match { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; align-items: start; }
.match.top { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,110,79,.08); }
.match .rank { position: relative; }
.match .rank b { position: absolute; bottom: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1d1600; font-size: .72rem; display: grid; place-items: center; border: 2px solid #fff; }
.match h4 { margin: 0; font-size: 1rem; }
.match .reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.match .reasons span { font-size: .76rem; background: var(--grey-50); color: var(--ink-2); padding: 3px 8px; border-radius: 6px; }
.match .price { text-align: right; font-weight: 700; }
.score-bar { height: 6px; width: 90px; background: var(--grey-50); border-radius: 99px; overflow: hidden; margin-left: auto; margin-top: 6px; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--brand)); }

/* ---------- Quote cards ---------- */
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: #fff; }
.quote.best { border-color: var(--gold); }
.quote .amount { font-size: 1.5rem; font-weight: 800; }
.breakdown { width: 100%; font-size: .9rem; }
.breakdown td { padding: 5px 0; }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.breakdown tr.total td { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; font-size: 1rem; }

/* ---------- Steps & timeline ---------- */
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 18px; gap: 4px; counter-reset: s; overflow-x: auto; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); position: relative; min-width: 62px; }
.steps li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li span { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; z-index: 1; font-size: .8rem; }
.steps li.done span { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done::before, .steps li.current::before { background: var(--brand); }
.steps li.current span { border-color: var(--gold); background: var(--gold-50); color: #7a5b00; box-shadow: 0 0 0 4px rgba(245,183,0,.2); }
.steps li.current { color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 26px; font-size: .88rem; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: .76rem; }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--brand-50); color: #0b4a37; margin-bottom: 16px; align-items: flex-start; }
.callout .icon { margin-top: 2px; }
.callout.gold { background: var(--gold-50); color: #5c4400; }
.callout.red { background: var(--red-50); color: #8a2222; }
.callout.blue { background: var(--blue-50); color: #1e40af; }
.callout.grey { background: var(--grey-50); color: var(--ink-2); }
.code-display { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2.2rem; font-weight: 800; letter-spacing: .3em; color: var(--brand); background: #fff; border: 2px dashed var(--brand); padding: 8px 18px; border-radius: 12px; display: inline-block; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--amber); }

/* ---------- Empty, toasts, modal ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; color: #b4c4bd; margin: 0 auto 8px; display: block; }
.empty h3 { color: var(--ink); }
.toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(400px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; animation: toastIn .25s ease; }
.toast-success { background: #0b5a41; }
.toast-error { background: #a32b2b; }
.toast-info { background: #1e3a8a; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } }
.modal { position: fixed; inset: 0; background: rgba(8,20,15,.55); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; position: relative; padding: 24px; box-shadow: var(--shadow-lg); }
.modal-card.wide { width: min(860px, 100%); }
.modal-x { position: absolute; top: 12px; right: 12px; border: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tabs .active { color: var(--brand); border-bottom-color: var(--brand); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 160px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }

/* ---------- Suggestions (understanding) ---------- */
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 8px; }
.suggest button { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 12px; cursor: pointer; font: inherit; font-weight: 600; font-size: .86rem; color: var(--ink); }
.suggest button.active, .suggest button:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.suggest button small { color: var(--muted); font-weight: 500; }
.map { height: 280px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 60px - 48px); min-height: 480px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list a { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.chat-list a.active, .chat-list a:hover { background: var(--brand-50); }
.chat-list .who { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.chat-list .who time { font-weight: 400; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.chat-list .preview { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list .sub { font-size: .75rem; color: var(--brand); font-weight: 600; }
.chat-list .unread { background: var(--brand); color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; background: #f7faf8; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-right-radius: 4px; }
.msg:not(.mine) { border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: .7rem; opacity: .65; margin-top: 3px; }
.msg.system { align-self: center; background: var(--gold-50); border-color: #f3e2a6; color: #5c4400; font-size: .82rem; text-align: center; border-radius: 10px; }
.msg img { border-radius: 10px; max-width: 240px; margin-bottom: 4px; }
.msg .masked { font-size: .72rem; opacity: .8; display: block; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 16px; }
.chat-form .btn { border-radius: 50%; width: 44px; height: 44px; padding: 0; }
.typing-online { font-size: .78rem; color: var(--green); font-weight: 600; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.scan-bar { display: flex; gap: 8px; }
.scan-bar input { font-size: 1.05rem; padding: 13px 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 4px; transition: .1s; }
.product-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.product-tile b { font-size: .9rem; line-height: 1.3; }
.product-tile .price { color: var(--brand); font-weight: 800; }
.product-tile .stock { font-size: .75rem; color: var(--muted); }
.product-tile.low .stock { color: var(--red); font-weight: 700; }
.cart { position: sticky; top: 76px; }
.cart-lines { max-height: 42vh; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.qty-ctrl button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink-2); }
.qty-ctrl input { width: 52px; border: 0; text-align: center; padding: 4px; }
.cart-total { font-size: 1.6rem; font-weight: 800; }
#scanner-view { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 12px; overflow: hidden; }

/* ---------- Charts (CSS bars) ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bars .bar i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--brand), #0f8a63); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bars .bar i:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .72rem; padding: 3px 6px; border-radius: 6px; white-space: nowrap; font-style: normal; margin-bottom: 4px; }
.bars .bar span { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 1fr 120px; gap: 8px; align-items: center; font-size: .86rem; margin-bottom: 8px; }
.hbar .track { grid-column: 1 / -1; height: 8px; background: var(--grey-50); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--brand); }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; font-size: 1.6rem; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .reply { margin-top: 10px; padding: 10px 12px; background: var(--grey-50); border-radius: 10px; font-size: .88rem; }
.subratings { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: 4px 0 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 120; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 10px; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(900px 400px at 100% 0, rgba(245,183,0,.12), transparent 60%), var(--bg); }
.auth-card { width: min(480px, 100%); }
.auth-card.wide { width: min(640px, 100%); }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.demo-box { font-size: .82rem; }

/* ---------- Receipt ---------- */
.receipt { max-width: 340px; margin: 0 auto; background: #fff; padding: 20px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; border: 1px solid var(--line); }
.receipt h3 { text-align: center; font-family: var(--font); }
.receipt table { width: 100%; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt .r { text-align: right; }
.receipt hr { border-top: 1px dashed #999; margin: 8px 0; }

@media print {
  .sidebar, .topbar, .tabbar, .no-print, .toasts { display: none !important; }
  .has-shell { padding: 0; }
  .content { padding: 0; }
  body { background: #fff; }
  .receipt { border: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .split, .split-wide, .pos { grid-template-columns: minmax(0, 1fr) !important; }
  .cart { position: static; }
  .sticky { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .has-shell { padding-left: 0; padding-bottom: 72px; }
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
  .only-mobile { display: inline-grid; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px 16px 32px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 4px 0; position: relative; text-decoration: none; }
  .tabbar a.active { color: var(--brand); }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar .dot { top: 2px; right: calc(50% - 16px); }
  .grid-2, .grid-3, .cta-band { grid-template-columns: 1fr; }
  .pubfoot-inner { grid-template-columns: 1fr 1fr; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 60px - 72px - 32px); }
  .chat.has-active .chat-list { display: none; }
  .chat:not(.has-active) .chat-pane { display: none; }
  .msg { max-width: 86%; }
  .hide-sm { display: none; }
  .match { grid-template-columns: auto 1fr; }
  .match .price { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .score-bar { margin-left: 0; }
  .kv { grid-template-columns: 1fr; }
  .kv dd { margin-bottom: 6px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .stat strong { font-size: 1.1rem; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .role-tabs { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 56px; }
  .filters input, .filters select { min-width: 0; flex: 1; }
}
