:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e7e5e4;
  --line-2: #d6d3d1;
  --hover: #f1f0ed;
  --accent: #b45309;
  --accent-soft: #fdf4e7;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --amber-soft: #fffbeb;
  --amber: #a16207;
  --bkash: #d12053;
  --nagad: #e4572e;
  --rocket: #7e3a8e;
  --bank: #1d4ed8;
  --r: 10px;
  --r-lg: 14px;
  --font: "Geist", "Hind Siliguri", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- nav ---------- */
.nav-wrap { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px; height: 60px; max-width: 1120px; margin: 0 auto;
}
.logo { font-weight: 650; font-size: 16px; text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; background: url("/assets/logo-mark.svg") center/contain no-repeat; flex-shrink: 0; }
.nav .links { display: flex; gap: 22px; }
.nav .links a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.nav .links a:hover { color: var(--ink); }
.nav .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.search {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r); padding: 0 12px; height: 36px; width: 220px; color: var(--muted);
}
.search input { border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; width: 100%; color: var(--ink); }
.search:focus-within { border-color: var(--line-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s;
  background: var(--ink); color: #fff;
}
.btn:hover { background: #000; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--hover); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.danger { background: var(--surface); color: var(--red); border-color: var(--line); }
.btn.danger:hover { background: var(--red-soft); }
.btn.success { background: var(--green); }
.btn.success:hover { background: #166534; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; letter-spacing: -0.01em; }
.card-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* ---------- forms ---------- */
.label { display: block; font-size: 13px; font-weight: 500; margin: 16px 0 6px; color: var(--ink-2); }
.label:first-child { margin-top: 0; }
.field {
  width: 100%; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r);
  padding: 0 12px; font: inherit; font-size: 14px; color: inherit; transition: border-color .12s, box-shadow .12s;
}
.field::placeholder { color: #a8a29e; }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
textarea.field { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.help.ok { color: var(--green); }
.help.bad { color: var(--red); }
.error { background: var(--red-soft); color: var(--red); border-radius: var(--r); padding: 10px 12px; font-size: 13.5px; margin-top: 14px; display: none; }
.error.show { display: block; }
.prefix { display: flex; align-items: center; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.prefix span { padding-left: 12px; color: var(--muted); white-space: nowrap; font-size: 14px; }
.prefix input { border: 0; height: 100%; padding-left: 1px; box-shadow: none !important; }
.prefix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
.checkbox { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }

/* ---------- misc ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
  font-size: 13.5px; opacity: 0; transition: .18s; pointer-events: none; z-index: 50; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.avatar {
  border-radius: 50%; background: #e7e5e4 center/cover no-repeat; display: grid; place-items: center;
  font-weight: 600; color: var(--ink-2); flex-shrink: 0; letter-spacing: 0;
}
.pm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pm::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--muted)); }
.pm.bkash { --c: var(--bkash); } .pm.nagad { --c: var(--nagad); } .pm.rocket { --c: var(--rocket); } .pm.bank { --c: var(--bank); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.badge.pending { background: var(--amber-soft); color: var(--amber); }
.badge.verified { background: var(--green-soft); color: var(--green); }
.badge.rejected { background: var(--red-soft); color: var(--red); }
.badge.neutral { background: var(--hover); color: var(--ink-2); }

/* creator accent colours (flat) */
.theme-coffee { --cover: #e8e1d6; }
.theme-rose   { --cover: #efdfe2; }
.theme-forest { --cover: #dbe5dc; }
.theme-ocean  { --cover: #dbe3ec; }
.theme-night  { --cover: #2a2a2e; }

.footer { border-top: 1px solid var(--line); }
.footer-in { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-in a { text-decoration: none; }
.footer-in a:hover { color: var(--ink); }
.hide { display: none !important; }

@media (max-width: 760px) {
  .nav { padding: 0 16px; gap: 16px; }
  .nav .links, .nav .search { display: none; }
  .card { padding: 18px; }
}
