/* Faith Creative — church website sales dashboard.
   Parchment pages, a wine-leather sidebar with gold tooling, Cormorant headings, Inter for everything you read fast. */
:root {
  --bg: #f4ecdd;
  --bg-2: #efe5d2;
  --paper: #fffaf1;
  --paper-2: #fbf4e6;
  --surface: #fffaf1;
  --surface-2: #f3e9d7;
  --border: #e5d6bb;
  --border-2: #d8c4a0;
  --text: #2a1d16;
  --muted: #6c5a4b;
  --faint: #9c8a78;
  --wine: #6e2233;
  --wine-2: #8c2f45;
  --wine-deep: #3f121d;
  --gold: #b8893a;
  --gold-2: #d9b56b;
  --gold-soft: #f1e1bb;
  --accent: var(--wine);
  --green: #2f6b4f;
  --green-soft: #e3efe6;
  --amber: #a8691a;
  --amber-soft: #f8e9cc;
  --red: #a23a35;
  --red-soft: #f6e0dc;
  --blue: #2c5877;
  --blue-soft: #e1ebf2;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(74, 44, 24, 0.06), 0 4px 14px rgba(74, 44, 24, 0.05);
  --shadow: 0 24px 60px rgba(63, 18, 29, 0.18);
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1100px 520px at 85% -12%, rgba(217, 181, 107, 0.22), transparent 62%),
    radial-gradient(800px 480px at -10% 110%, rgba(110, 34, 51, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Faint paper grain, drawn once. */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
#root { position: relative; z-index: 1; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
h1, h2, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  display: none; width: 256px; flex-shrink: 0; padding: 24px 14px 18px; position: sticky; top: 0; height: 100vh;
  flex-direction: column; gap: 3px; color: #f6ead4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(400px 300px at 0% 0%, rgba(217, 181, 107, 0.16), transparent 70%),
    linear-gradient(180deg, #57192a 0%, #3f121d 100%);
  box-shadow: inset -1px 0 0 rgba(217, 181, 107, 0.35), 8px 0 30px rgba(63, 18, 29, 0.12);
}
/* Gold tooling line, like a Bible cover. */
.sidebar::after { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(217, 181, 107, 0.22); border-radius: 14px; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 24px; position: relative; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: block; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(217, 181, 107, 0.4); }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: rgba(246, 234, 212, 0.72);
  text-decoration: none; font-weight: 550; transition: 0.15s; position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { background: rgba(217, 181, 107, 0.16); color: #fff; }
.nav-item.active::before { content: ''; position: absolute; left: -5px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold-2); }
.nav-item svg { width: 19px; height: 19px; }
.nav-item .count { margin-left: auto; background: var(--gold-2); color: var(--wine-deep); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar .spacer { flex: 1; }
.side-verse { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.4; color: rgba(246, 234, 212, 0.7); padding: 12px 12px 16px; border-top: 1px solid rgba(217, 181, 107, 0.2); margin-top: 8px; }
.side-verse b { display: block; font-style: normal; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-top: 6px; font-weight: 600; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); text-decoration: none; position: relative; }
.me-chip .faint { color: rgba(246, 234, 212, 0.55); }

main { flex: 1; min-width: 0; padding: 18px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); max-width: 1200px; margin: 0 auto; width: 100%; }

.topbar { display: flex; align-items: center; gap: 10px; margin: -2px 0 10px; }
.topbar .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.topbar .brand-name { color: var(--wine); font-size: 20px; }
@media (min-width: 900px) { .topbar { display: none; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 250, 241, 0.9); backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--border);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--faint); text-decoration: none; position: relative; }
.tab svg { width: 23px; height: 23px; }
.tab.active { color: var(--wine); }
.tab .dot-count { position: absolute; top: 9px; left: calc(50% + 6px); background: var(--wine); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 99px; line-height: 16px; }
.tab.fab .fab-btn { width: 52px; height: 52px; margin-top: -24px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-deep)); box-shadow: 0 10px 26px rgba(110, 34, 51, 0.4), 0 0 0 3px var(--paper); }
.tab.fab .fab-btn svg { color: var(--gold-soft); }

@media (min-width: 900px) {
  .sidebar { display: flex; }
  .tabbar { display: none; }
  main { padding: 30px 36px 56px; }
}

/* ---------- headers ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 36px; line-height: 1.05; }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 640px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-weight: 700; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 0 12px; }
.section-title h2 { font-size: 24px; }
.grad-text { color: var(--wine); }
.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 6px 0; }
.ornament::before, .ornament::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.card.glow { border-color: rgba(184, 137, 58, 0.45); box-shadow: 0 0 0 4px rgba(217, 181, 107, 0.12), var(--shadow-sm); }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid.stats { grid-template-columns: repeat(4, 1fr); } }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid.two { grid-template-columns: 1.25fr 1fr; } }

.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat .value { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; margin-top: 2px; font-variant-numeric: lining-nums tabular-nums; color: var(--wine-deep); }
.stat .hint { color: var(--faint); font-size: 12px; }

/* Verse banner + hero card */
.verse {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 24px 22px; color: #f9efdc;
  background:
    radial-gradient(500px 260px at 92% 0%, rgba(241, 207, 126, 0.35), transparent 65%),
    radial-gradient(400px 260px at 0% 120%, rgba(0, 0, 0, 0.25), transparent 60%),
    linear-gradient(135deg, #6e2233, #431420 70%);
  box-shadow: var(--shadow);
}
.verse::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(241, 207, 126, 0.28); border-radius: 16px; pointer-events: none; }
.verse .eyebrow { color: var(--gold-2); }
.verse q { display: block; font-family: var(--serif); font-size: clamp(22px, 3.2vw, 30px); line-height: 1.25; font-weight: 500; margin-top: 10px; quotes: '“' '”'; max-width: 820px; }
.verse cite { display: block; margin-top: 12px; font-style: normal; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.verse .rays { position: absolute; right: -40px; top: -60px; width: 300px; height: 300px; opacity: 0.5; pointer-events: none; }
.verse .rays i { position: absolute; left: 50%; top: 50%; width: 2px; height: 150px; transform-origin: 50% 0; background: linear-gradient(rgba(241, 207, 126, 0.55), transparent); }
@media (prefers-reduced-motion: no-preference) { .verse .rays { animation: turn 60s linear infinite; } }
@keyframes turn { to { transform: rotate(360deg); } }

.hero-stat { position: relative; overflow: hidden; padding: 22px; }
.hero-stat .big { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; color: var(--wine); font-variant-numeric: lining-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--paper); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform 0.08s, background 0.15s, box-shadow 0.15s, opacity 0.15s; white-space: nowrap; min-height: 44px;
}
.btn:hover { background: var(--paper-2); border-color: var(--gold); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.primary { background: linear-gradient(170deg, var(--wine-2), var(--wine)); border-color: var(--wine-deep); color: #fff8ec; box-shadow: 0 8px 20px rgba(110, 34, 51, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.btn.primary:hover { background: linear-gradient(170deg, #9a3650, var(--wine-2)); }
.btn.gold { background: linear-gradient(170deg, #e4c47f, var(--gold)); border-color: #9c7330; color: #2b1a0c; box-shadow: 0 8px 20px rgba(184, 137, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.green { background: var(--green); border-color: transparent; color: #fff; }
.btn.green:hover { background: #285c44; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--paper); cursor: pointer; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: #fffdf8;
  outline: none; transition: border 0.15s, box-shadow 0.15s; min-height: 46px; font-size: 16px;
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 181, 107, 0.25); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
@media (max-width: 480px) { .row.stack { flex-direction: column; gap: 0; } }
input[type=range] { accent-color: var(--wine); width: 100%; }

.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--faint); }
.search .input { padding-left: 42px; }

/* ---------- chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex-shrink: 0; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--paper); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--wine); color: #fff8ec; border-color: var(--wine); }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--border); padding: 4px; border-radius: 14px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.seg button.active { background: var(--paper); color: var(--wine); box-shadow: var(--shadow-sm); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.none { background: var(--red-soft); color: var(--red); }
.pill.social { background: var(--amber-soft); color: var(--amber); }
.pill.s-new { background: var(--blue-soft); color: var(--blue); }
.pill.s-contacted { background: var(--surface-2); color: var(--muted); }
.pill.s-interested { background: var(--amber-soft); color: var(--amber); }
.pill.s-preview_ready { background: var(--gold-soft); color: #7a5518; }
.pill.s-preview_sent { background: #efe2f0; color: #6b3b73; }
.pill.s-link_sent { background: #f5dfe4; color: var(--wine); }
.pill.s-sold, .pill.ok { background: var(--green-soft); color: var(--green); }
.pill.s-not_interested, .pill.s-bad_number, .pill.s-do_not_contact, .pill.bad { background: var(--red-soft); color: var(--red); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.wine { background: var(--wine); color: #fff8ec; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; box-shadow: 0 0 0 2px var(--paper); }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }
.avatar.lg { width: 58px; height: 58px; font-size: 20px; }

/* ---------- score ring ---------- */
.ring { --p: 50; --c: var(--wine); width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.ring b { position: relative; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--c); font-variant-numeric: lining-nums; }
.ring.lg { width: 84px; height: 84px; }
.ring.lg::before { inset: 8px; }
.ring.lg b { font-size: 32px; }
.ring.hi { --c: var(--wine); } .ring.mid { --c: var(--amber); } .ring.lo { --c: var(--green); }
.ring.nosite { --c: var(--red); }

/* ---------- lead list ---------- */
.lead-list { display: grid; gap: 10px; }
@media (min-width: 960px) { .lead-list { grid-template-columns: 1fr 1fr; } }
.lead {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--border); cursor: pointer; transition: 0.15s; text-decoration: none; position: relative; box-shadow: var(--shadow-sm);
}
.lead:hover { border-color: var(--gold-2); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(74, 44, 24, 0.1); }
.lead.hot { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 181, 107, 0.25); }
.lead .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); flex-shrink: 0; color: var(--wine); }
.lead .ico svg { width: 22px; }
.lead .name { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.1; }
.lead .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.lead .why { color: var(--text); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.lead .right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.stars { color: var(--gold); font-weight: 700; font-size: 13px; }
.quick-call { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border: 0; text-decoration: none; flex-shrink: 0; }
.quick-call svg { width: 20px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; color: var(--gold); font-family: var(--serif); }

/* ---------- sheet (lead detail) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(42, 20, 14, 0.4); backdrop-filter: blur(3px); z-index: 60; opacity: 0; transition: opacity 0.2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; top: 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.open { transform: none; }
@media (min-width: 900px) {
  .sheet { left: auto; width: 700px; transform: translateX(100%); border-left: 1px solid var(--border-2); box-shadow: var(--shadow); }
}
.sheet-head {
  position: sticky; top: 0; z-index: 2; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  background: rgba(244, 236, 221, 0.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
}
.sheet-head .t { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.sheet-body { padding: 20px 18px calc(48px + var(--safe-b)); }
.lead-hero { position: relative; }
.lead-hero h2 { font-size: 34px; line-height: 1.05; }
.lead-hero .pastor { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--wine); margin-top: 4px; }
.phone-big { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--paper); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); }
.action svg { width: 22px; height: 22px; color: var(--wine); }
.action.call { background: var(--green); border-color: var(--green); color: #fff; }
.action.call svg { color: #fff; }

/* Pipeline stepper */
.steps { display: flex; gap: 0; margin: 16px 0 4px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: 1; min-width: 74px; text-align: center; font-size: 11px; font-weight: 650; color: var(--faint); position: relative; padding-top: 22px; }
.step::before { content: ''; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--border-2); z-index: 1; }
.step::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border-2); }
.step:first-child::after { display: none; }
.step.done { color: var(--wine); }
.step.done::before { background: var(--wine); border-color: var(--wine); }
.step.done::after { background: var(--wine); }
.step.now { color: var(--text); }
.step.now::before { background: var(--gold-2); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 181, 107, 0.3); }
.step.now::after { background: var(--wine); }

/* Audit panel */
.audit-top { display: flex; gap: 16px; align-items: center; }
.reasons { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.reasons li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.reasons li .pts { flex-shrink: 0; min-width: 34px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 8px; background: var(--red-soft); color: var(--red); margin-top: 1px; }
.reasons li .pts.low { background: var(--surface-2); color: var(--muted); }
.shots { display: grid; grid-template-columns: 2.6fr 1fr; gap: 10px; margin-top: 14px; align-items: start; }
.shots a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-2); background: #fff; box-shadow: var(--shadow-sm); }
.shots img { display: block; width: 100%; height: auto; }
.shots .cap { font-size: 11px; color: var(--faint); margin-top: 4px; text-align: center; }
.talk { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: #4d3510; font-size: 14px; }
.talk b { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; color: #7a5518; }

.preview-card { position: relative; overflow: hidden; }
.preview-frame { width: 100%; aspect-ratio: 9 / 14; border: 1px solid var(--border); border-radius: 14px; background: #fff; margin-top: 12px; max-height: 620px; }
.site-facts { display: grid; gap: 8px; margin-top: 12px; font-size: 13.5px; }
.site-facts div { padding: 10px 12px; background: var(--paper-2); border: 1px solid var(--border); border-radius: 12px; }
.site-facts b { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.review-banner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-2); margin-bottom: 12px; }
.building { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--gold-soft); border-top-color: var(--wine); animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.flame { width: 30px; height: 30px; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) { .flame path { transform-origin: 50% 90%; animation: flicker 1.6s ease-in-out infinite; } }
@keyframes flicker { 0%, 100% { transform: scaleY(1) rotate(-1deg); } 50% { transform: scaleY(1.08) rotate(1.5deg); } }
.shimmer { background: linear-gradient(90deg, var(--surface-2) 0%, var(--paper) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: 14px; height: 120px; margin-top: 12px; }
@keyframes sh { to { background-position: -200% 0; } }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); border-radius: 99px; transition: width 1s; }

.script-step { border-left: 3px solid var(--gold-2); padding: 2px 0 2px 16px; margin-bottom: 20px; }
.script-step .tactic { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; }
.script-step h4 { margin: 2px 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.script-step .say { font-size: 16px; line-height: 1.65; }
.script-step .tip { margin-top: 8px; font-size: 13px; color: var(--muted); background: var(--paper-2); border: 1px solid var(--border); padding: 9px 11px; border-radius: 10px; }
details.obj { border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px; margin-bottom: 8px; background: var(--paper); }
details.obj summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.obj summary::after { content: '+'; color: var(--gold); font-weight: 700; }
details.obj[open] summary::after { content: '−'; }
details.obj summary::-webkit-details-marker { display: none; }
details.obj p { margin: 10px 0 0; line-height: 1.65; }

.timeline { display: grid; gap: 10px; }
.tl { display: flex; gap: 10px; font-size: 13.5px; }
.tl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.tl .when { color: var(--faint); font-size: 12px; }

/* ---------- leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin: 8px 0 18px; }
.pod { text-align: center; padding: 16px 8px; border-radius: 20px; background: var(--paper); border: 1px solid var(--border); position: relative; box-shadow: var(--shadow-sm); }
.pod.first { background: linear-gradient(180deg, var(--gold-soft), var(--paper)); border-color: var(--gold-2); padding-top: 26px; }
.pod .medal { font-size: 26px; }
.pod .nm { font-weight: 700; margin-top: 6px; }
.pod .amt { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-top: 2px; color: var(--wine); }
.pod .avatar { margin: 0 auto; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--border); margin-bottom: 8px; }
.board-row .rank { width: 22px; font-weight: 700; color: var(--faint); }
.board-row .nums { margin-left: auto; text-align: right; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); border-radius: 99px; }

.feed-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.feed-item:last-child { border-bottom: 0; }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.queue-item:last-child { border-bottom: 0; }
.queue-item .nm { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.1; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--faint); font-weight: 650; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-wrap { overflow-x: auto; }

/* ---------- modal / toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; background: rgba(42, 20, 14, 0.45); backdrop-filter: blur(3px); animation: fade 0.15s; }
@media (min-width: 700px) { .modal-wrap { align-items: center; } }
.modal { width: 100%; max-width: 500px; background: var(--paper); border: 1px solid var(--border-2); border-radius: 24px 24px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); max-height: 92vh; overflow-y: auto; animation: up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: var(--shadow); }
@media (min-width: 700px) { .modal { border-radius: 24px; } }
.modal h3 { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-bottom: 12px; line-height: 1.1; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.outcome { padding: 14px 10px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--paper-2); font-weight: 600; cursor: pointer; text-align: center; }
.outcome.active { border-color: var(--wine); background: #f7e6e9; color: var(--wine); }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 14px; background: #2a1d16; color: #fbf3e4; box-shadow: var(--shadow); font-weight: 600; animation: up 0.2s; display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--red); }
.toast.win { background: linear-gradient(135deg, var(--wine), var(--wine-deep)); box-shadow: 0 0 0 1px var(--gold-2), var(--shadow); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .login { grid-template-columns: 1.1fr 1fr; } }
.login-art { display: none; position: relative; overflow: hidden; color: #f9efdc; padding: 56px; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(700px 500px at 70% 20%, rgba(241, 207, 126, 0.35), transparent 60%), linear-gradient(160deg, #6e2233, #2e0d15); }
@media (min-width: 900px) { .login-art { display: flex; } }
.login-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-art q { position: relative; font-family: var(--serif); font-size: 40px; line-height: 1.15; max-width: 520px; quotes: '“' '”'; }
.login-art cite { position: relative; display: block; margin-top: 14px; font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; color: var(--gold-2); }
.login-form { display: grid; place-items: center; padding: 24px; }
.login .card { width: 100%; max-width: 410px; padding: 34px 28px; }
.login h1 { font-size: 40px; margin: 18px 0 6px; line-height: 1.05; }

.kbd-hint { color: var(--faint); font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .mb { margin-bottom: 12px; }
.flex { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
canvas#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* New teammate: join + tutorial */
.join-terms { background: var(--gold-soft); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; line-height: 1.55; color: var(--text); margin-top: 4px; }
.join-check { display: flex; gap: 9px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.tutorial { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(900px 500px at 50% -10%, rgba(217,181,107,.35), transparent 65%), var(--wine-deep); }
.tutorial-card { width: 100%; max-width: 820px; padding: 28px; }
.tutorial-card h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); line-height: 1.08; margin: 18px 0 6px; }
.tutorial-card video { width: 100%; border-radius: var(--radius-sm); background: #1b0d12; margin-top: 14px; aspect-ratio: 16 / 9; display: block; }
.tut-progress { height: 5px; border-radius: 9px; background: var(--surface-2); margin: 10px 0 16px; overflow: hidden; }
.tut-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .3s; }
.tut-rules { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tut-rules li { background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13.5px; color: var(--muted); }
.tut-rules b { color: var(--text); }
.btn.pulse { animation: tutpulse 1.6s ease-in-out infinite; }
@keyframes tutpulse { 50% { box-shadow: 0 0 0 8px rgba(184,137,58,.25); } }
@media (max-width: 600px) { .tut-rules { grid-template-columns: 1fr; } .tutorial-card { padding: 20px 16px; } }

/* ---------- pipeline funnel (admin home) ---------- */
.funnel { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-items: end; }
.fstep { text-align: center; min-width: 0; }
.fbar { height: 64px; display: flex; align-items: flex-end; justify-content: center; }
.fbar i { display: block; width: 70%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gold-2), var(--wine)); min-height: 4px; }
.fv { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.1; margin-top: 6px; color: var(--wine); }
.fk { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .funnel { grid-template-columns: repeat(5, 1fr); row-gap: 14px; } .fbar { height: 44px; } }
/* ---------- outreach panel on a church ---------- */
.or-steps { display: grid; gap: 6px; }
.or-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.or-step .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-2); flex-shrink: 0; }
.or-step.done { color: var(--text); }
.or-step.done .dot { background: var(--green); border-color: var(--green); }
