/* Demjleg.mn — design tokens + components. Mobile first. */
:root {
  --brand: #00a75b;
  --brand-600: #00924f;
  --brand-700: #007a42;
  --brand-800: #005c32;
  --brand-50: #eaf7f0;
  --brand-100: #cfeedd;
  --ink: #0f2318;
  --ink-2: #2e4238;
  --muted: #5d6d65;
  --line: #dde6e1;
  --line-2: #edf2ef;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --amber: #a15c07;
  --amber-bg: #fff4dc;
  --red: #c42b2b;
  --red-bg: #fdecec;
  --blue: #1d5fd0;
  --blue-bg: #e8f0fe;
  --violet: #6b3fd0;
  --violet-bg: #f1ebfe;
  --rose: #cc2458;
  --rose-bg: #fde8ef;
  --fb: #1877f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 35, 24, 0.05), 0 8px 24px rgba(15, 35, 24, 0.06);
  --shadow-lg: 0 2px 4px rgba(15, 35, 24, 0.06), 0 18px 48px rgba(15, 35, 24, 0.12);
  --font-head: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pre { white-space: pre-line; }
.is-hidden, [hidden] { display: none !important; }
code { font-size: 0.85em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- icons & brand ---------- */
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.icon-verified { color: var(--brand); margin-left: 4px; width: 1.05em; height: 1.05em; }
.logo-mark { width: 36px; height: 36px; color: var(--brand); flex: none; }
.inline-mark { width: 1.15em; height: 1.15em; color: var(--brand); vertical-align: -0.2em; display: inline-block; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font: 600 1.15rem/1 var(--font-head); letter-spacing: 0.14em; }
.brand-invert { color: #fff; }
.brand-invert .logo-mark { color: #fff; }
.brand-invert .logo-mark path { fill: var(--brand-800); }

/* ---------- buttons ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font: 600 0.95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-700); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-danger { background: #fff; color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, #fff); }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
.btn-fb { background: var(--fb); color: #fff; }
.btn-fb:hover { background: #0f63d4; color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-700); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike.danger, .danger { color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.sandbox-bar { background: var(--amber-bg); color: #74430a; text-align: center; font-size: 0.85rem; font-weight: 600; padding: 6px 12px; }
.live-bar { background: var(--red-bg); color: #8e1f1f; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.main-nav { display: none; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.header-search { display: none; align-items: center; gap: 8px; margin-left: auto; padding: 0 14px; height: 40px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--muted); }
.header-search input { border: 0; background: transparent; outline: none; font: inherit; width: 150px; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search + .header-actions { margin-left: 0; }
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } }
@media (min-width: 1000px) {
  .main-nav { display: flex; }
  .mobile-menu { display: none; }
}
@media (min-width: 1240px) { .header-search { display: flex; } }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 999px; }
.menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary { border: 1px solid var(--line); }
.mobile-menu > summary .icon { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; z-index: 50; }
.menu-panel a, .menu-panel .linklike { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; text-align: left; width: 100%; }
.menu-panel a:hover, .menu-panel .linklike:hover { background: var(--bg-soft); }
.menu-panel .btn { margin-top: 6px; color: #fff; text-align: center; }
.menu-head { padding: 8px 12px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--line-2); display: grid; }
.menu-head span { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-100); color: var(--brand-800); font: 700 0.9rem/1 var(--font-head); object-fit: cover; flex: none; overflow: hidden; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.8rem; }
.avatar-md { width: 46px; height: 46px; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-xl { width: 104px; height: 104px; font-size: 2rem; }

/* ---------- alerts, badges, chips ---------- */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin: 16px 0; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.alert-error { background: var(--red-bg); border-color: #f6c9c9; color: #8e1f1f; }
.alert-warn { background: var(--amber-bg); border-color: #f5dfa8; color: #74430a; }
.alert-info { background: var(--blue-bg); border-color: #c9dafb; color: #17468f; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.badge-reward { background: var(--brand-50); color: var(--brand-800); }
.badge-preorder { background: var(--blue-bg); color: var(--blue); }
.badge-social { background: var(--violet-bg); color: var(--violet); }
.badge-donation { background: var(--rose-bg); color: var(--rose); }
.badge-pick { background: var(--ink); color: #fff; }
.badge-ok { background: var(--brand-50); color: var(--brand-800); }
.badge-owner { background: var(--brand); color: #fff; }
.badge-st-live, .badge-st-successful { background: var(--brand-50); color: var(--brand-800); }
.badge-st-pending_review { background: var(--blue-bg); color: var(--blue); }
.badge-st-changes_requested, .badge-st-suspended { background: var(--amber-bg); color: var(--amber); }
.badge-st-rejected, .badge-st-failed { background: var(--red-bg); color: var(--red); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand-800); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-success { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.chip-warn { background: var(--amber-bg); border-color: #f5dfa8; color: var(--amber); }
.chip-info { background: var(--blue-bg); border-color: #c9dafb; color: var(--blue); }
.chip-error { background: var(--red-bg); border-color: #f6c9c9; color: var(--red); }
.chips .chip { padding: 6px 14px; }
.chip-success, .chip-warn, .chip-info, .chip-error { padding: 3px 10px; font-size: 0.8rem; cursor: default; }
.pstatus { font-weight: 700; }
.pstatus-paid, .pstatus-refunded { color: var(--brand-700); }
.pstatus-pending { color: var(--blue); }
.pstatus-expired { color: var(--muted); }
.pstatus-refund_due { color: var(--amber); }
.eyebrow { font: 700 0.8rem/1.3 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 10px; }
.eyebrow a { text-decoration: none; text-transform: none; letter-spacing: 0; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); }

/* ---------- forms ---------- */
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; align-content: start; }
.stack .field { margin-bottom: 0; }
.field > label, .field > legend, .field-label { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); padding: 0; }
.req { color: var(--red); margin-left: 3px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; min-height: 46px; transition: border-color 0.15s, box-shadow 0.15s; }
textarea { min-height: 0; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--brand); flex: none; margin: 2px 0 0; }
input[type='file'] { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.help { font-size: 0.85rem; color: var(--muted); margin: 0; }
.field-error { font-size: 0.85rem; color: var(--red); margin: 0; font-weight: 600; }
.fine { font-size: 0.85rem; color: var(--muted); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 8px 0; }
.check span { display: grid; }
.check small { color: var(--muted); }
.check.has-error span { color: var(--red); }
.check-inline { align-self: end; padding-bottom: 12px; }
.row-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) {
  .row-grid { grid-template-columns: 1fr 1fr; }
  .row-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-cards { display: grid; gap: 10px; margin-bottom: 14px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.radio-card:hover { border-color: var(--brand-100); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.radio-card span { display: grid; gap: 2px; }
.radio-card small { color: var(--muted); }
.rec { font-style: normal; font-size: 0.72rem; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.seg { display: inline-flex; padding: 4px; background: var(--bg-soft); border-radius: 999px; gap: 4px; }
.seg label { display: flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.seg label:has(input:checked) { background: #fff; box-shadow: var(--shadow); }
.seg input { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; align-items: center; }
.filters select, .filters input { width: auto; min-height: 42px; padding: 8px 12px; flex: 1 1 160px; }
.search-field { flex: 2 1 240px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: #fff; color: var(--muted); }
.search-field input { border: 0; padding: 8px 0; min-height: 40px; box-shadow: none !important; }
.inline { display: inline; }

/* ---------- panels & lists ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h3 { display: flex; align-items: center; gap: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-title { margin: 36px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23007a42' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts { display: grid; gap: 8px; margin: 0 0 12px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts .total dd { color: var(--brand-700); font-size: 1.1rem; }
.empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.empty.soft { padding: 32px 20px; }
.empty-mark { width: 56px; height: 56px; color: var(--brand-100); margin: 0 auto 12px; }
.empty h3 { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table .stack { gap: 6px; min-width: 150px; }
.table input { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.list { display: grid; gap: 12px; }
.list-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; align-items: start; }
.thumb { width: 88px; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: var(--bg-soft); }
.list-main h3 { margin: 4px 0 6px; font-size: 1.02rem; }
.list-main h3 a { color: var(--ink); text-decoration: none; }
.list-meta { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.list-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 720px) {
  .list-item { grid-template-columns: 120px 1fr auto; align-items: center; }
  .thumb { width: 120px; }
  .list-actions { grid-column: auto; justify-content: flex-end; }
}
.note { background: var(--amber-bg); border-radius: 8px; padding: 8px 12px; color: #74430a; font-size: 0.9rem; }

/* ---------- progress ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); min-width: 4px; }
.progress-lg { height: 12px; }
.progress-lg > span { background-image: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, 0.22) 10px 12px); }

/* ---------- campaign cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 16/9; background: var(--brand-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.pick-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(15, 35, 24, 0.86); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 5px 10px 5px 6px; border-radius: 999px; }
.pick-mark { width: 18px; height: 18px; color: var(--brand); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.card-loc { display: inline-flex; align-items: center; gap: 3px; }
.card-title { font-size: 1.08rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card-summary { color: var(--muted); font-size: 0.92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-owner { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; margin: 0; display: flex; align-items: center; }
.card-foot { margin-top: auto; padding-top: 6px; display: grid; gap: 8px; }
.card-stats { display: flex; justify-content: space-between; align-items: baseline; }
.card-stats strong { font-family: var(--font-head); font-size: 1.05rem; }
.pct { font-weight: 700; color: var(--brand-700); }
.card-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.card-sub span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- hero & home ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-50), transparent 60%), linear-gradient(180deg, #fff, var(--bg-soft)); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.hero-inner { display: grid; gap: 32px; padding: 48px 16px 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 0.95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--brand); }
.hero-art { display: none; }
.leaf-stack { position: absolute; right: 0; top: 0; }
.hero-mark { width: 340px; height: 340px; color: var(--brand); filter: drop-shadow(0 30px 50px rgba(0, 120, 60, 0.25)); }
.hero-mark path { animation: leaf-grow 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: 30% 70%; }
@keyframes leaf-grow { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
.hero-card { position: absolute; left: 0; bottom: 0; width: 320px; }
.hero-card .card { box-shadow: var(--shadow-lg); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; padding: 72px 24px 80px; }
  .hero-art { display: block; position: relative; height: 470px; }
}
@media (prefers-reduced-motion: reduce) { .hero-mark path { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }
.stats-band { background: var(--ink); color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 16px; }
.stats div { display: grid; }
.stats strong { font: 800 clamp(1.4rem, 1rem + 1.6vw, 2.1rem)/1.1 var(--font-head); color: #6fe0a6; }
.stats span { color: #b9cdc2; font-size: 0.9rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.type-tiles { display: grid; gap: 14px; }
@media (min-width: 640px) { .type-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .type-tiles { grid-template-columns: repeat(4, 1fr); } }
.type-tile { --c: var(--brand); --cb: var(--brand-50); display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--cb); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color 0.15s, transform 0.15s; }
.type-tile:hover { border-color: var(--c); transform: translateY(-2px); color: var(--ink); }
.type-tile h3 { margin: 6px 0 0; }
.type-tile p { color: var(--ink-2); font-size: 0.93rem; margin: 0; }
.type-count { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--c); font-size: 0.9rem; }
.type-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--c, var(--brand)); display: block; flex: none; background-image: repeating-linear-gradient(180deg, transparent 0 5px, rgba(255, 255, 255, 0.35) 5px 8px); }
.type-tile-preorder, .type-card-preorder, .type-row-preorder { --c: var(--blue); --cb: var(--blue-bg); }
.type-tile-social, .type-card-social, .type-row-social { --c: var(--violet); --cb: var(--violet-bg); }
.type-tile-donation, .type-card-donation, .type-row-donation { --c: var(--rose); --cb: var(--rose-bg); }
.how-band { background: var(--bg-soft); margin-top: 48px; padding: 56px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.how-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-steps li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-2); }
.how-steps li > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 1.1rem/1 var(--font-head); margin-bottom: 12px; }
.how-steps p { color: var(--muted); margin: 0; }
.trust-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { padding: 8px 4px; }
.trust-item .icon { width: 32px; height: 32px; color: var(--brand); margin-bottom: 10px; }
.trust-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.cta-band { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 36px 28px; border-radius: 24px; color: #fff; margin-bottom: 56px; background: var(--brand-700) repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 30px); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #d6f3e4; }

/* ---------- page hero / prose ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-50), #fff); padding: 48px 0 28px; }
.page-body { padding-bottom: 64px; }
.prose { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.6em; }
.prose h3, .prose h4 { margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--brand); color: var(--ink); font-style: italic; }
.prose figure { margin: 1.4em 0; }
.prose figure img { border-radius: 12px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.5em; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 52px; display: grid; gap: 2px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-800); font: 800 1rem/1 var(--font-head); }
.steps span { color: var(--muted); }
.type-list { display: grid; gap: 12px; margin-bottom: 1.5em; }
.type-row { display: flex; gap: 14px; align-items: flex-start; }
.type-row p { margin: 0; }
.trust-list { display: grid; gap: 22px; }
.trust-list .icon { width: 30px; height: 30px; color: var(--brand); }
.trust-list h3 { margin: 6px 0; }
.trust-list p { margin: 0; }
.fee-table td strong { color: var(--brand-700); font-size: 1.1rem; }
.about-mark { display: flex; justify-content: center; margin: 0 0 20px; }
.about-mark .about-mark, svg.about-mark { width: 120px; height: 120px; color: var(--brand); }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); margin: 0 0 14px; }

/* ---------- start ---------- */
.type-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; }
.type-card:hover { border-color: var(--c, var(--brand)); }
.type-card h3 { margin: 4px 0 0; }
.type-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.type-card .ticks { font-size: 0.9rem; margin: 4px 0; }
.type-card .btn { margin-top: auto; }
.type-fee { color: var(--ink-2) !important; }
.steps-band { margin-top: 32px; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.steps-band .steps { margin: 0; }
@media (min-width: 900px) { .steps-band .steps { grid-template-columns: repeat(5, 1fr); } .steps-band .steps li { padding: 48px 8px 0 0; } }

/* ---------- auth ---------- */
.auth { display: grid; min-height: calc(100vh - var(--header-h)); }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; padding: 40px 20px 56px; }
.auth-mark { width: 48px; height: 48px; color: var(--brand); margin-bottom: 16px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); }
.auth-aside { display: none; }
@media (min-width: 960px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-card { align-self: center; }
  .auth-aside { display: flex; flex-direction: column; justify-content: center; padding: 64px; color: #fff; background: var(--brand-700) repeating-linear-gradient(180deg, transparent 0 26px, rgba(255, 255, 255, 0.05) 26px 36px); }
  .auth-aside h2 { color: #fff; font-size: 2rem; }
  .auth-aside .eyebrow { color: #a9ecc8; }
  .auth-aside .ticks li::before { background-color: rgba(255, 255, 255, 0.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* ---------- explore ---------- */
.explore { padding-top: 28px; padding-bottom: 64px; }
.explore-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.explore-head h1 { margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0; color: var(--muted); }

/* ---------- campaign page ---------- */
.preview-bar { background: var(--amber-bg); color: #74430a; text-align: center; padding: 10px 16px; font-weight: 600; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; align-items: center; }
.campaign-head { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs span { display: inline-flex; align-items: center; gap: 4px; }
.campaign-head .lead { max-width: 760px; }
.campaign-top { display: grid; gap: 24px; margin-top: 8px; }
.campaign-media { border-radius: var(--radius); overflow: hidden; background: var(--brand-50); aspect-ratio: 16/9; }
.campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.video, .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.campaign-panel { display: grid; gap: 14px; align-content: start; }
.raised { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.raised strong { font: 800 clamp(1.7rem, 1.3rem + 1.5vw, 2.2rem)/1.1 var(--font-head); color: var(--brand-700); }
.raised span { color: var(--muted); }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.panel-stats div { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.panel-stats strong { font: 800 1.25rem/1.2 var(--font-head); }
.panel-stats span { font-size: 0.8rem; color: var(--muted); }
.model-note { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); color: var(--brand-800); font-size: 0.88rem; line-height: 1.45; }
.model-note .icon { width: 20px; height: 20px; margin-top: 1px; }
.backer-note { display: flex; gap: 8px; align-items: center; color: var(--rose); font-weight: 600; margin: 0; }
.outcome { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; }
.outcome div { display: grid; }
.outcome .icon { width: 24px; height: 24px; }
.outcome-success { background: var(--brand-50); color: var(--brand-800); }
.outcome-failed { background: var(--amber-bg); color: #74430a; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-mini { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 12px 0 0; border-top: 1px solid var(--line-2); }
.owner-mini span { display: grid; }
.owner-mini small { color: var(--muted); }
.owner-mini strong { display: inline-flex; align-items: center; }
@media (min-width: 960px) {
  .campaign-top { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 36px; }
  .campaign-panel { position: sticky; top: calc(var(--header-h) + 16px); }
}
.section-nav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 36px; }
.section-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-nav a { padding: 14px 12px; white-space: nowrap; color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.section-nav a:hover { color: var(--brand-700); border-color: var(--brand); }
.section-nav a span { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.campaign-body { display: grid; gap: 36px; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 960px) { .campaign-body { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); } }
.block { margin-top: 44px; }
.beneficiary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--rose-bg); color: var(--rose); border-radius: 12px; font-size: 0.95rem; }
.budget { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.budget-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); }
.stretch { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stretch li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; flex-wrap: wrap; }
.stretch li.reached { border-style: solid; border-color: var(--brand-100); background: var(--brand-50); }
.stretch-amt { font: 800 1rem/1 var(--font-head); color: var(--brand-700); min-width: 110px; }
.report-sum { display: flex; gap: 8px; align-items: center; color: var(--brand-800); font-weight: 600; }
.update { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.update img { border-radius: 12px; margin: 10px 0; }
.update-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }
.locked { padding: 14px; background: var(--bg-soft); border-radius: 12px; color: var(--muted); }
.comment-form { display: grid; gap: 10px; justify-items: start; margin-bottom: 18px; }
.comments { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.comment p { margin: 8px 0 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-head small { color: var(--muted); }
.reply { margin: 12px 0 0 20px; padding: 12px 14px; background: var(--brand-50); border-radius: 12px; }
.reply-box summary { cursor: pointer; color: var(--brand-700); font-size: 0.9rem; margin-top: 8px; }
.reply-box form { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.side-block { margin-bottom: 32px; }
.side-block h2 { font-size: 1.2rem; }
.side-sub { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 8px; }
.reward { display: block; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 0.15s; }
.reward:hover { border-color: var(--brand); color: var(--ink); }
.reward-free h3 { margin: 0 0 4px; }
.reward-free p { margin: 0; }
.reward-price { font: 800 1.3rem/1.2 var(--font-head); color: var(--brand-700); margin: 0 0 4px; }
.reward h3 { margin: 0 0 8px; }
.reward-desc { color: var(--ink-2); font-size: 0.93rem; }
.reward-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 14px; font-size: 0.85rem; }
.reward-facts div { display: grid; }
.reward-facts dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.reward-facts dd { margin: 0; font-weight: 600; }
.reward.sold-out { opacity: 0.6; }
.words { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.words li { padding: 14px 16px; background: var(--bg-soft); border-radius: 14px; }
.words p { margin: 0 0 4px; font-style: italic; color: var(--ink-2); }
.words small { color: var(--muted); }
.supporters { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.supporters li { display: flex; gap: 10px; align-items: center; }
.supporters li > span:last-child { display: grid; }
.supporters small { color: var(--muted); }
.owner-card .owner-mini { border: 0; padding: 0 0 10px; }
details.mini { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 10px; }
details.mini summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
details.mini[open] { padding-bottom: 14px; }
textarea.code { font: 12px/1.4 ui-monospace, Menlo, monospace; background: var(--bg-soft); }
.guarantee { display: flex; gap: 10px; font-size: 0.86rem; color: var(--muted); margin: 16px 0 0; }
.guarantee .icon { width: 22px; height: 22px; color: var(--brand); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 35, 24, 0.08); }
.sticky-cta div { display: grid; }
.sticky-cta strong { font-family: var(--font-head); color: var(--brand-700); }
.sticky-cta span { font-size: 0.8rem; color: var(--muted); }
.has-sticky-cta .site-footer { padding-bottom: 88px; }
@media (min-width: 960px) { .sticky-cta { display: none; } .has-sticky-cta .site-footer { padding-bottom: 0; } }

/* ---------- checkout & pay ---------- */
.checkout { padding-top: 20px; padding-bottom: 64px; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.checkout-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: start; } .checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.checkout-main h2 { margin-top: 28px; font-size: 1.2rem; }
.pick { display: grid; gap: 10px; margin-bottom: 18px; }
.pick legend { font-weight: 700; margin-bottom: 10px; }
.pick-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.pick-card span { display: grid; gap: 4px; }
.pick-card small { color: var(--muted); }
.pick-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.pick-card.disabled { opacity: 0.55; cursor: not-allowed; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick .chip { padding: 6px 12px; }
.quick .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.amount-field input { font: 700 1.3rem/1.2 var(--font-head); }
.summary-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); }
.summary-card img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.summary-title { font-weight: 700; margin: 12px 0; }
.summary-card dl { display: grid; gap: 8px; margin: 0 0 16px; }
.summary-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; font-weight: 600; text-align: right; }
.summary-card .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.15rem; }
.summary-card .total dd { color: var(--brand-700); font-family: var(--font-head); font-weight: 800; }
.mini-trust { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.mini-trust li { display: flex; gap: 8px; align-items: center; }
.mini-trust .icon { color: var(--brand); }
.pay { padding-top: 20px; padding-bottom: 64px; }
.pay-head { text-align: center; margin-bottom: 20px; }
.pay-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); color: var(--brand-700); margin-bottom: 4px; }
.pay-grid { display: grid; gap: 20px; }
.qr-box { text-align: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qr-box img { margin: 0 auto 12px; width: 260px; max-width: 100%; image-rendering: pixelated; }
.qr-fake { width: 220px; height: 220px; margin: 0 auto 12px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); border: 2px dashed var(--line); }
.qr-fake .icon { width: 64px; height: 64px; }
.bank-apps-title { font-weight: 700; margin-bottom: 10px; }
.bank-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.bank-app { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 0.78rem; text-align: center; line-height: 1.25; }
.bank-app img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.bank-app:hover { border-color: var(--brand); }
@media (max-width: 759px) { .bank-apps { order: -1; } }
@media (min-width: 760px) { .pay-grid { grid-template-columns: 1fr 1fr; align-items: start; } .pay-grid:not(:has(.bank-apps)) { grid-template-columns: minmax(0, 420px); justify-content: center; } }
.waiting { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); margin: 20px 0; text-align: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--brand-100); border-top-color: var(--brand); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bank-box { border: 1.5px solid var(--brand-100); background: var(--brand-50); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.bank-box h2 { display: flex; gap: 8px; align-items: center; font-size: 1.15rem; }
.copy-list { display: grid; gap: 10px; margin: 0 0 12px; }
.copy-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fff; border-radius: 10px; align-items: center; }
.copy-list dt { color: var(--muted); }
.copy-list dd { margin: 0; display: flex; gap: 10px; align-items: center; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.copy-list .hl { outline: 2px solid var(--brand); }
.thanks { padding-top: 40px; padding-bottom: 64px; text-align: center; }
.thanks-mark { display: flex; justify-content: center; margin-bottom: 16px; }
.thanks-leaf { width: 96px; height: 96px; color: var(--brand); animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.receipt { display: grid; gap: 8px; max-width: 420px; margin: 24px auto; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: left; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; }
.receipt span { color: var(--muted); }
.share-ask { margin: 32px auto; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); }
.share-ask .share { justify-content: center; }

/* ---------- editor ---------- */
.editor-body .site-footer { padding-bottom: 96px; }
.editor-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.editor-nav-inner { display: grid; gap: 14px; }
.editor-status { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.editor-nav nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.editor-nav nav a { padding: 8px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); text-decoration: none; white-space: nowrap; font-size: 0.9rem; font-weight: 600; }
.verify-nudge { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--amber-bg); color: #74430a; text-decoration: none; font-size: 0.88rem; }
@media (min-width: 1000px) {
  .editor-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .editor-nav-inner { position: sticky; top: calc(var(--header-h) + 20px); }
  .editor-nav nav { flex-direction: column; overflow: visible; }
  .editor-nav nav a { background: transparent; border-radius: 10px; }
  .editor-nav nav a:hover { background: var(--bg-soft); }
}
.editor-section { padding: 24px 0 8px; border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 16px); }
.editor-section h2 small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.static { margin: 0; font-weight: 600; }
.cover-upload { display: grid; gap: 10px; justify-items: start; }
.cover-preview { width: 100%; max-width: 560px; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.upload-status { margin: 0; font-size: 0.88rem; color: var(--muted); min-height: 1.2em; }
.upload-status.error { color: var(--red); }
.md-editor { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.md-editor:focus-within { border-color: var(--brand); }
.md-toolbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line-2); background: var(--bg-soft); align-items: center; flex-wrap: wrap; }
.md-toolbar button, .md-img { min-width: 38px; height: 36px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font: 600 0.95rem/1 var(--font-body); color: var(--ink-2); display: inline-grid; place-items: center; padding: 0 8px; }
.md-toolbar button:hover, .md-img:hover { background: #fff; }
.md-toolbar .spacer { flex: 1; }
.md-tab.on { background: #fff; color: var(--brand-700); }
.md-input { border: 0; border-radius: 0; min-height: 320px; box-shadow: none !important; }
.md-preview { padding: 16px 18px; min-height: 320px; }
.md-editor > .help { padding: 8px 14px; border-top: 1px solid var(--line-2); }
.rows { display: grid; gap: 12px; margin-bottom: 12px; }
.row-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: relative; background: #fff; }
.row-remove { margin-top: 4px; }
.row-inline { display: grid; grid-template-columns: 1fr; gap: 0 12px; align-items: end; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.row-inline .field { margin-bottom: 8px; }
@media (min-width: 640px) { .row-inline { grid-template-columns: 1.4fr 1fr auto; padding: 0; border: 0; } .row-inline .btn { margin-bottom: 8px; } }
.budget-total { font-size: 0.95rem; color: var(--ink-2); }
.budget-static { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.budget-static li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.fee-calc { font-size: 0.9rem; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; color: var(--ink-2); }
.editor-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 35, 24, 0.07); }
.editor-bar-inner { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.editor-bar-inner .muted { margin-right: auto; font-size: 0.9rem; }
@media (max-width: 520px) { .editor-bar-inner .btn { flex: 1; padding-left: 10px; padding-right: 10px; } }
.delete-draft { padding-bottom: 120px; }

/* ---------- account, profile, dashboard ---------- */
.account, .profile, .dashboard { padding-top: 28px; padding-bottom: 64px; }
.account-head, .profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.account-head h1, .profile-head h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.account-head p { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.verify-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.verify-card p { margin: 4px 0 0; }
.verify-card strong { display: flex; gap: 6px; align-items: center; }
.doc-upload, .avatar-upload, .upload-inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.doc-state { margin: 0; display: flex; gap: 6px; align-items: center; font-weight: 600; }
details.org { border: 1px dashed var(--line); border-radius: 12px; padding: 0 14px; }
details.org summary { cursor: pointer; padding: 12px 0; color: var(--brand-700); font-weight: 600; }
details.org[open] { padding-bottom: 14px; }
.profile-stats { display: flex; gap: 18px; color: var(--muted); }
.profile-stats strong { color: var(--ink); }
.dash-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.dash-head h1 { margin: 6px 0 0; }
.dash-head p { margin: 0; display: flex; gap: 6px; }
.dash-actions { display: flex; gap: 8px; }
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 24px; }
@media (min-width: 900px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } .admin .stat-tiles { grid-template-columns: repeat(5, 1fr); } }
.stat { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.stat span { font-size: 0.82rem; color: var(--muted); }
.stat strong { font: 800 1.3rem/1.2 var(--font-head); }
.stat small { color: var(--muted); }
.dash-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; } }
[data-update-form] .report-only { display: none; }
[data-update-form]:has(input[value='report']:checked) .report-only { display: block; }
[data-update-form]:has(input[value='report']:checked) .update-only { display: none; }
.dash-updates { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.dash-updates li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-updates small { color: var(--muted); }
.reward-line { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- admin ---------- */
.admin { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 64px; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.admin-nav a { padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: 0.9rem; }
.admin-nav a[aria-current='page'] { background: var(--ink); color: #fff; }
@media (min-width: 1000px) {
  .admin { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .admin-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .admin-nav a { background: transparent; border-radius: 10px; }
}
.admin-main { min-width: 0; }
.admin-main h2 { margin-top: 28px; font-size: 1.2rem; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.queue-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.queue { display: grid; padding: 14px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.queue strong { font: 800 1.5rem/1.1 var(--font-head); color: var(--ink); }
.queue.has { border-color: var(--brand); background: var(--brand-50); color: var(--brand-800); }
.log { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; display: grid; gap: 6px; }
.log span { color: var(--muted); }
.doc-thumb { width: 220px; border-radius: 10px; border: 1px solid var(--line); margin-top: 10px; }
.doc-full { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.admin-cover { border-radius: 12px; max-width: 480px; margin-top: 10px; }
.admin-main details summary { cursor: pointer; }
.admin-main pre { white-space: pre-wrap; font-size: 0.85rem; background: var(--bg-soft); padding: 10px; border-radius: 8px; }

/* ---------- embed ---------- */
.embed-body { background: transparent; }
.embed { display: block; max-width: 340px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; font-family: var(--font-body); }
.embed img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.embed-body-inner { padding: 14px 16px 16px; display: grid; gap: 8px; }
.embed-body-inner p { margin: 0; }
.embed h1 { font-size: 1.1rem; margin: 0; }
.embed-stats { display: flex; justify-content: space-between; align-items: baseline; }
.embed-stats strong { color: var(--brand-700); font-family: var(--font-head); }
.embed-stats span { color: var(--muted); font-size: 0.85rem; }
.embed-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }

/* ---------- error page ---------- */
.error-page { text-align: center; padding: 72px 16px 96px; }
.error-mark { width: 84px; height: 84px; color: var(--brand-100); margin: 0 auto 18px; }
.error-page .actions { justify-content: center; margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c7d6ce; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer-grid a { display: block; color: #c7d6ce; text-decoration: none; padding: 4px 0; font-size: 0.93rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin: 14px 0 0; font-size: 0.93rem; max-width: 340px; }
.footer-brand .brand { padding: 0; }
.pay-note { display: flex; gap: 8px; align-items: center; color: #8fe0b6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: #8da397; }
