/* The Clearest Whisper
   theme-public : light cream marketing pages
   theme-app    : dark client area
   theme-admin  : dark CRM */

:root {
  --gold: #c8a75e;
  --gold-hi: #d8ba76;
  --gold-deep: #9d8450;
  --gold-ink: #1f1a10;
  --bar: #2b2d31;
  --bar-line: #3b3e44;
  --ok: #5fbf8a;
  --warn: #e0a84f;
  --danger: #e06767;
  --info: #6aa8e0;
  --radius: 6px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --cond: "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------- palettes */
.theme-public {
  --bg: #ebe7de; --surface: #ffffff; --surface-2: #f4f1ea; --panel: #e6e1d5; --line: #d9d3c5;
  --text: #2a2b2e; --muted: #64666b; --accent: #9a7b3c; --accent-soft: rgba(200, 167, 94, .16);
  color-scheme: light;
}
.theme-app, .theme-admin {
  --bg: #262626; --surface: #333333; --surface-2: #2b2b2b; --panel: #3a3a3a; --line: #474747;
  --text: #ececea; --muted: #a9a9a6; --accent: var(--gold); --accent-soft: rgba(200, 167, 94, .14);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-family: var(--cond); font-weight: 500; font-stretch: condensed; letter-spacing: .01em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
[hidden] { display: none !important; }
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.2em; }

.wrap-pub { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-app { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wide { width: 100%; padding: 0 24px; }
.app-main { padding-top: 28px; padding-bottom: 48px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.break { word-break: break-all; }
.upper { text-transform: uppercase; letter-spacing: .06em; }
.d-block { display: block; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); margin-bottom: .6em; font-family: var(--cond); }
.label { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); margin: 0 0 6px; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--bar); border-bottom: 1px solid var(--bar-line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 16px; }
.brand { font-family: var(--serif); text-transform: uppercase; letter-spacing: .05em; font-size: 1.45rem; color: var(--gold); text-decoration: none; white-space: nowrap; line-height: 1; }
.brand span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 26px; align-self: stretch; }
.nav a { color: #e9e7e2; text-decoration: none; font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-size: .98rem; white-space: nowrap; display: flex; align-items: center; align-self: stretch; border-bottom: 2px solid transparent; padding-top: 2px; }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav a.active { border-bottom-color: var(--gold); }
.nav .nav-btn { align-self: center; border: 1px solid var(--gold); color: var(--gold); padding: 7px 16px; border-radius: 3px; }
.nav .nav-btn:hover { background: var(--gold); color: var(--gold-ink); }

@media (max-width: 860px) {
  .topbar-in { flex-wrap: wrap; justify-content: center; padding-top: 10px; gap: 4px 16px; }
  .brand { font-size: 1.2rem; }
  .nav { gap: 16px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .nav a { font-size: .86rem; padding: 10px 0 8px; }
  .nav .nav-btn { padding: 5px 10px; }
}
@media (max-width: 420px) {
  .nav { gap: 11px; }
  .nav .nav-btn { padding: 4px 8px; }
  .nav a { font-size: .78rem; letter-spacing: .03em; }
  .chat-who { font-size: .62rem; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 4px;
  border: 1px solid transparent; font: inherit; font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-weight: 500;
  cursor: pointer; text-decoration: none; line-height: 1.2; min-height: 46px; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-hi); color: var(--gold-ink); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--gold); }
.theme-public .btn-ghost { color: var(--accent); border-color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(224, 103, 103, .6); }
.btn-danger:hover { background: rgba(224, 103, 103, .1); }
.btn-block { width: 100%; }
.btn-small { padding: 6px 14px; min-height: 34px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.08rem; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.link-danger { background: none; border: 0; color: var(--danger); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------------------------------------------------------------- forms */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], textarea, select {
  width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 13px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.theme-app textarea, .theme-admin textarea, .theme-app input, .theme-admin input, .theme-admin select { background: #1f1f1f; }
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin: -8px 0 16px; }
.counter.over { color: var(--danger); }
.price-tag strong { color: var(--accent); font-size: 1rem; }
.packages { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.packages legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
@media (min-width: 640px) { .packages { grid-template-columns: 1fr 1fr; } }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--surface-2); }
.option:has(input:checked) { border-color: var(--gold); background: var(--accent-soft); }
.option input { margin-top: 4px; accent-color: var(--gold); }
.option small { display: block; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 4px 0 18px; }
.check input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.pay-buttons { display: grid; gap: 8px; }
.coin { width: 1.45em; height: 1.45em; flex: none; display: inline-block; vertical-align: -.32em; }
.btn .coin { margin-right: 4px; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .25)); }
.coin-lg { width: 1.25em; height: 1.25em; margin-right: 10px; vertical-align: -.2em; }
.amount .coin { width: 1.2em; height: 1.2em; }
.coin-badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.coin-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 8px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--text); font-size: 1.05rem; }
.coin-row .coin { width: 1.8em; height: 1.8em; }
.pay-note p { margin: 0; }
.footer-side { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.accepts { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #e9e7e2; font-size: .82rem; }
.accepts-label { color: #8d8b86; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.crypto-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .crypto-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- flash & notices */
.flashes { padding-top: 18px; }
.flash { border-radius: 4px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-ok { border-color: rgba(95, 191, 138, .5); background: rgba(95, 191, 138, .1); }
.flash-error { border-color: rgba(224, 103, 103, .55); background: rgba(224, 103, 103, .1); }
.flash-info { border-color: rgba(106, 168, 224, .55); background: rgba(106, 168, 224, .1); }
.notice { background: var(--accent-soft); border-left: 3px solid var(--gold); border-radius: 4px; padding: 12px 14px; font-size: .92rem; margin: 18px 0; }
.notice p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.theme-app .card, .theme-admin .card { border-color: #3c3c3c; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card-title { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.card-title em { font-style: normal; text-transform: none; letter-spacing: 0; }

/* ================================================================ PUBLIC */
.pub-main { min-height: 60vh; }
.theme-public .pub-main > .card, .theme-public .pub-main > article, .theme-public .pub-main > section.card { max-width: 820px; margin: 32px auto; }
.theme-public .pub-main > .card.narrow { max-width: 560px; }

/* Hero */
.hero { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr; background: var(--surface-2); }
@media (min-width: 900px) { .hero { grid-template-columns: 47% 53%; margin-top: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); } }
.hero-photo { position: relative; min-height: 300px; background: #1d1d1d; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .7)); }
.hero-photo p { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #fff; font-size: 1.15rem; z-index: 1; padding: 0 16px; }
.hero-copy { display: grid; grid-template-rows: auto auto; }
.hero-text { padding: 40px 34px 34px; background: #f4f2ec; }
.hero-text h1 { text-transform: uppercase; font-size: clamp(1.6rem, 3.3vw, 2.35rem); line-height: 1.15; color: #26272a; }
.hero-text .lead { font-size: 1.08rem; color: #3b3d41; max-width: 480px; }
.promises { background: var(--panel); padding: 26px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.promise .ring { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: #fff; border: 2px solid var(--gold); color: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.promise .ring .icon { width: 34px; height: 34px; }
.promise strong { display: block; font-family: var(--cond); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.promise span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 480px) { .promises { gap: 8px; padding: 22px 10px; } .promise .ring { width: 62px; height: 62px; } .promise span { font-size: .78rem; } }

/* Sections */
.section { background: var(--surface); max-width: 1120px; margin: 0 auto; padding: 46px 24px; }
.section.alt { background: var(--surface-2); }
.section > h2 { text-align: center; text-transform: uppercase; font-size: 1.7rem; margin-bottom: 26px; }
.section-intro { text-align: center; max-width: 640px; margin: -12px auto 26px; color: var(--muted); }
.steps { display: grid; gap: 26px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 14px; }
.section, #ask { scroll-margin-top: 64px; }
.step h3 { text-transform: uppercase; font-size: 1.25rem; margin-bottom: 4px; }
.step p { color: #45474b; margin: 0; }
.approach { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .approach { grid-template-columns: repeat(3, 1fr); } }
.approach div { border-top: 2px solid var(--gold); padding-top: 14px; }
.approach h3 { text-transform: uppercase; }
.approach p { color: #45474b; margin: 0; }
.prices { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 600px) { .prices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price-card { border: 1px solid var(--line); background: #fff; padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.price-card h3 { text-transform: uppercase; margin: 0; }
.price-card .amount-big { font-family: var(--cond); font-size: 2.3rem; color: var(--accent); line-height: 1.1; }
.price-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.pay-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 22px 0 0; }
/* "Tell me your situation" box */
.ask-card { max-width: 1040px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 14px 40px rgba(40, 30, 10, .12); }
.ask-head { position: relative; padding: 30px 32px 24px; background: linear-gradient(120deg, #2b2d31 0%, #3a3328 60%, #6e5a33 100%); color: #f1ede4; }
.ask-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), #e8cf92, var(--gold)); }
.ask-head .eyebrow { color: var(--gold-hi); margin-bottom: .4em; }
.ask-head h2 { text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 6px; color: #fff; }
.ask-sub { margin: 0 0 16px; color: #d8d2c4; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; padding: 6px 12px; border: 1px solid rgba(216, 186, 118, .45); border-radius: 999px; background: rgba(255, 255, 255, .06); }
.trust .icon { color: var(--gold-hi); width: 1.05em; height: 1.05em; }
.ask-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ask-body { grid-template-columns: minmax(0, 1fr) 300px; } }
.ask-body > * { min-width: 0; }
@media (max-width: 560px) { #ask.section { padding-left: 10px; padding-right: 10px; } }
.ask-form { padding: 28px 32px 24px; }
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-family: var(--cond); font-size: .85rem; font-weight: 600; vertical-align: 1px; }
.step-field > span:first-child, .step-field legend, .step-label { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.step-field > span:first-child small { display: block; margin: 2px 0 0 32px; font-weight: 400; }
.step-label { margin: 6px 0 10px; }
.ask-form input[type=text], .ask-form input[type=email], .ask-form textarea { background: #faf8f3; border-color: #ddd5c4; border-radius: 6px; }
.ask-form textarea { min-height: 190px; }
.input-icon { position: relative; display: block; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.input-icon input { padding-left: 42px; }
.length-meter { margin: -6px 0 6px; }
.length-meter progress { width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 3px; background: #ece6d8; overflow: hidden; display: block; }
.length-meter progress::-webkit-progress-bar { background: #ece6d8; border-radius: 3px; }
.length-meter progress::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), #b8954b); border-radius: 3px; }
.length-meter progress::-moz-progress-bar { background: var(--gold); border-radius: 3px; }
.tier-marks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 6px; margin-top: 6px; font-size: .76rem; color: var(--muted); }
.tier-marks span { padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.tier-marks span.active { color: var(--accent); border-color: rgba(200, 167, 94, .6); background: var(--accent-soft); font-weight: 600; }
.price-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 14px; border-radius: 999px; background: #2b2d31; color: #e9e7e2; font-size: .85rem; }
.price-pill strong { color: var(--gold-hi); font-size: 1.15rem; font-family: var(--cond); }
.ask-form .option { align-items: center; background: #faf8f3; border-color: #ddd5c4; border-radius: 6px; padding: 14px 16px; }
.option-price { margin-left: auto; font-family: var(--cond); font-size: 1.2rem; color: var(--accent); white-space: nowrap; }
.pay-step { margin-top: 4px; }
.ask-side { background: var(--surface); color: var(--text); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.ask-side h3 { margin: 0; text-transform: uppercase; color: var(--gold); font-size: 1.05rem; letter-spacing: .06em; }
.next-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
.next-steps li::before { content: counter(step); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--cond); }
.next-steps strong { font-weight: 500; color: #fff; }
.next-steps span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.side-coins { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; padding-top: 14px; border-top: 1px solid var(--line); }
.side-quote { margin: 6px 0 0; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.side-quote .avatar { width: 52px; height: 52px; }
.side-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.45; color: #e7dfcd; }
.side-note { margin: auto 0 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 899px) { .ask-side { padding: 22px; } .next-steps { gap: 12px; } }
@media (max-width: 560px) { .ask-head { padding: 24px 20px 20px; } .ask-form { padding: 22px 18px 20px; } .tier-marks { font-size: .68rem; } .tier-marks span { padding: 2px 5px; } }
.tiers { margin-bottom: 16px; font-size: .92rem; }
.tiers summary { cursor: pointer; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table td, .table th { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; font-size: .85rem; color: var(--muted); }
.tiers .table td:last-child { text-align: right; color: var(--accent); white-space: nowrap; }

/* Prose pages */
.prose { background: #fff; padding: 34px; border: 1px solid var(--line); }
.prose h1 { text-transform: uppercase; }
.prose h2 { margin-top: 1.6em; text-transform: uppercase; font-size: 1.25rem; color: var(--accent); }
.prose p, .prose li { color: #3a3c40; }
.inline-signup { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-signup input { flex: 1 1 220px; }

/* Footer */
.footer { background: var(--bar); color: #b9b7b1; padding: 22px 0 30px; margin-top: 0; font-size: .85rem; }
.theme-public .footer { margin-top: 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0 14px; border-bottom: 1px solid var(--bar-line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: #e9e7e2; text-decoration: none; font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-size: .88rem; }
.footer-links a:hover, .social:hover { color: var(--gold); }
.social { color: var(--gold); }
.social .icon { width: 22px; height: 22px; }
.disclaimer { max-width: 760px; margin: 14px 0 6px; }
.copy { margin: 0; color: #8d8b86; }

/* ================================================================ APP (client area) */
.app-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .app-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.thread-card { padding: 0; overflow: hidden; }
.thread-band { background: linear-gradient(90deg, #a08550, #b79c63); color: #fff; padding: 16px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.thread-band .label { color: rgba(255, 255, 255, .85); margin: 0 0 2px; }
.thread-band h1 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(1.2rem, 2.6vw, 1.75rem); letter-spacing: 0; text-transform: none; }
.thread-band .badge { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .35); color: #fff; }
.chat { padding: 22px; display: grid; gap: 22px; }

.chat-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.chat-row.from-whisper { grid-template-columns: minmax(0, 1fr) 64px; }
.chat-row.from-whisper .chat-who { order: 2; }
.chat-who { display: grid; justify-items: center; gap: 4px; font-family: var(--cond); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-deep); }
.avatar-client { display: grid; place-items: center; background: #444; color: #cfcfcf; }
.avatar-client .icon { width: 28px; height: 28px; }
.bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; position: relative; }
.from-client .bubble { border-top-left-radius: 0; }
.from-whisper .bubble { border-top-right-radius: 0; background: rgba(200, 167, 94, .09); border-color: rgba(200, 167, 94, .4); }
.kind-info_request .bubble { border-style: dashed; }
.kind-decline .bubble { border-color: rgba(224, 103, 103, .5); background: rgba(224, 103, 103, .07); }
.unpaid .bubble { opacity: .65; }
.bubble time { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; }
.msg-body { overflow-wrap: anywhere; }
.msg-body p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.theme-public .chat-row, .theme-public .bubble { color: var(--text); }
@media (max-width: 560px) {
  .chat { padding: 16px 12px; }
  .chat-row, .chat-row.from-whisper { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .chat-row.from-whisper .chat-who { order: 0; }
  .avatar { width: 42px; height: 42px; }
}

.compose-card .card-title { margin-bottom: 10px; }
.compose-card textarea { min-height: 130px; }
.compose-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.compose-bar .row-gap { margin-left: auto; }
.credit-pill { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.preview { border: 1px dashed var(--gold-deep); border-radius: 6px; padding: 14px 16px; margin: 0 0 16px; background: rgba(200, 167, 94, .06); }
.preview .msg-body { white-space: pre-wrap; }
.info-note { background: var(--surface-2); border-left: 3px solid var(--gold); padding: 12px 14px; margin-bottom: 14px; }
.waiting { text-align: center; color: var(--muted); }

.side-card { padding: 20px; }
.side-stat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-stat:first-child { padding-top: 0; }
.side-stat:last-of-type { border-bottom: 0; }
.side-stat .label { margin-bottom: 2px; }
.side-stat strong { font-weight: 500; font-size: 1.12rem; }
.meter { width: 100%; height: 8px; margin: 8px 0 4px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: #4a4a4a; overflow: hidden; }
.meter::-webkit-progress-bar { background: #4a4a4a; border-radius: 4px; }
.meter::-webkit-progress-value { background: var(--gold); border-radius: 4px; }
.meter::-moz-progress-bar { background: var(--gold); border-radius: 4px; }
.tip-card h3 { font-family: var(--cond); text-transform: uppercase; font-size: 1rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tip-card .icon { color: var(--gold); }
.tip-card p { margin: 0; }

.thread-list { list-style: none; padding: 0; margin: 0; }
.thread-list a { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.thread-list a:hover .thread-title { color: var(--gold); }
.thread-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .85rem; }
.empty-state { text-align: center; padding: 48px 20px; }

/* Crypto payment */
.crypto-pay { display: grid; gap: 18px; align-items: center; margin: 18px 0; }
@media (min-width: 560px) { .crypto-pay { grid-template-columns: 200px 1fr; } }
.qr { background: #fff; border-radius: 6px; padding: 6px; max-width: 220px; margin: 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }
.amount { font-size: 1.5rem; font-weight: 700; color: var(--gold); margin-bottom: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.address code { word-break: break-all; background: #1f1f1f; padding: 8px 10px; border-radius: 4px; flex: 1 1 220px; }
.countdown { font-size: .88rem; color: var(--muted); }
.countdown.expired { color: var(--danger); }
.txid-form { margin-top: 18px; }

/* Badges */
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.badge-unanswered { color: var(--warn); border-color: rgba(224, 168, 79, .5); }
.badge-awaiting_client_info { color: var(--info); border-color: rgba(106, 168, 224, .5); }
.badge-answered { color: var(--ok); border-color: rgba(95, 191, 138, .5); }
.badge-o-paid { color: var(--ok); }
.badge-o-refunded { color: var(--danger); }

.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin: 0 0 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; }
.danger-zone summary { cursor: pointer; color: var(--danger); }
.danger-zone form { margin-top: 12px; }

/* ================================================================ ADMIN */
.theme-admin { font-size: 15px; }
.admin-main { padding: 22px 24px 40px; }
.theme-admin .flashes { padding-top: 0; }
.login { margin-top: 10vh; }
.queue-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .queue-grid { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.25fr) 270px; } }
@media (min-width: 760px) and (max-width: 1099px) { .queue-grid { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr); } .stats-col { grid-column: 1 / -1; } }
.queue-col, .thread-col, .stats-col { min-width: 0; }
@media (max-width: 759px) { .queue-grid.has-sel .thread-col { order: -1; } }
.back-to-queue { display: none; margin-bottom: 12px; }
@media (max-width: 759px) { .has-sel .back-to-queue { display: inline-block; } }
.panel { background: var(--surface); border: 1px solid #3c3c3c; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); margin-bottom: 18px; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head .card-title { margin: 0; }
.panel-body { padding: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chips a { font-size: .78rem; padding: 4px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.chips a.active { background: var(--accent-soft); color: var(--gold); border-color: var(--gold-deep); }
.chips form { flex: 1 1 100%; margin-top: 4px; }
.chips input { padding: 8px 10px; font-size: .9rem; }
.queue { list-style: none; margin: 0; padding: 0; max-height: 72vh; overflow-y: auto; }
.queue li { border-bottom: 1px solid var(--line); }
.queue li:last-child { border-bottom: 0; }
.queue a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 16px; color: var(--text); text-decoration: none; }
.queue a:hover { background: #3a3a3a; }
.queue li.active a { background: linear-gradient(90deg, #a08550, #b0955d); color: #fff; }
.queue li.active .q-meta, .queue li.active time { color: rgba(255, 255, 255, .85); }
.q-email { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-subj { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-side { grid-column: 2; grid-row: 1 / span 3; display: grid; justify-items: end; align-content: center; gap: 6px; }
.q-side time { color: var(--muted); font-size: .85rem; }
.q-view { border: 1px solid var(--gold); color: var(--gold); padding: 5px 14px; border-radius: 3px; font-family: var(--cond); text-transform: uppercase; font-size: .85rem; }
.queue li.active .q-view { border-color: #2a2418; color: #2a2418; }
.q-meta { grid-column: 1; font-size: .8rem; color: var(--muted); }
.client-head { display: grid; gap: 2px 18px; grid-template-columns: 1fr auto; margin-bottom: 4px; }
.client-head .q-email { font-size: 1.2rem; }
.client-head .muted { font-size: .92rem; }
.thread-col .chat { padding: 18px 0 0; border-top: 1px solid var(--line); margin-top: 12px; }
.actions .btn { width: 100%; }
.actions textarea { margin-bottom: 12px; }
.actions details { margin-top: 12px; }
.actions summary { list-style: none; cursor: pointer; }
.actions summary::-webkit-details-marker { display: none; }
.actions details[open] summary.btn { background: var(--accent-soft); }
.actions details form { margin-top: 12px; }
.actions select { width: auto; }
.decline-row { text-align: center; margin-top: 14px; }
.decline-row form { text-align: left; }
.refund-choice { border: 0; padding: 0; margin: 0 0 12px; }
.refund-choice .check { margin: 4px 0; }
.stat-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 1.02rem; }
.stat-line strong { font-weight: 500; }
.stat-sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.balance { font-size: 1.05rem; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1px solid #3c3c3c; border-radius: var(--radius); padding: 18px; }
a.stat-card { text-decoration: none; color: inherit; }
a.stat-card:hover { border-color: var(--gold-deep); }
.stat-card .label { margin-bottom: 4px; }
.stat-card .big { font-family: var(--cond); font-size: 2rem; line-height: 1.1; color: var(--text); }
.stat-card .big.gold { color: var(--gold); }
.two-col { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1fr 1fr; } }
.log { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.log li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; }
.log li:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.theme-admin .table td { vertical-align: top; }
.orders { list-style: none; margin: 0; padding: 0; }
.orders li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inline-form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.inline-form input { padding: 6px 8px; font-size: .82rem; flex: 1 1 140px; }
.w-num { max-width: 90px; }
.tools summary { cursor: pointer; font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tools[open] summary { margin-bottom: 14px; }
.tools .tool { padding: 14px 0; border-top: 1px solid var(--line); }
/* Example conversation (a mini dark dashboard inside the light home page) */
.example-panel { max-width: 820px; margin: 0 auto; background: var(--surface); color: var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); text-align: left; }
.example-panel .thread-band h3 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(1.1rem, 2.4vw, 1.45rem); letter-spacing: 0; color: #fff; }
.example-panel .msg-body p { margin: 0 0 .8em; }
.example-panel .msg-body p:last-child { margin-bottom: 0; }
#example .pay-note { margin-top: 20px; }

/* Reviews */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stars { color: #8a8780; letter-spacing: 1px; white-space: nowrap; }
.stars .on { color: var(--gold); }
.star-input { border: 0; padding: 0; margin: 0 0 14px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; cursor: pointer; color: #5a5a5a; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.review-done p { margin: 0; }
.review-card, .review-done { scroll-margin-top: 90px; }
.review-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-row:last-of-type { border-bottom: 0; }
.review-quote { margin: 10px 0 12px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--surface-2); }
.review-quote footer { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 980px; margin: 0 auto; }
.review-card-pub { background: #fff; border: 1px solid var(--line); padding: 20px; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 0 1 300px; }
.review-card-pub .stars { font-size: 1.15rem; }
.review-card-pub p { margin: 0; color: #3a3c40; font-style: italic; }
.review-card-pub footer { margin-top: auto; color: var(--muted); font-size: .9rem; }
.reviews-summary { text-align: center; color: var(--muted); margin: -14px 0 24px; }
.settings-table td:first-child { color: var(--muted); width: 45%; }
.empty { display: grid; place-items: center; min-height: 40vh; color: var(--muted); text-align: center; }

/* Wallet, top-up and payouts */
.gold { color: var(--gold); }
.wallet-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .wallet-grid { grid-template-columns: 1fr 1fr; } }
.wallet-card .card-title { margin-bottom: 14px; }
.wallet-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.wallet-totals .label { margin-bottom: 2px; }
.big-money { font-family: var(--cond); font-size: 2.3rem; line-height: 1.1; margin: 0 0 4px; }
.flash-num { animation: flashnum 1.2s ease; }
@keyframes flashnum { 0% { color: #fff; text-shadow: 0 0 12px var(--gold); } 100% { text-shadow: none; } }
.refer-card { border-color: rgba(200, 167, 94, .5); background: linear-gradient(160deg, #3a3426, var(--surface) 55%); }
.ref-link { display: flex; gap: 8px; margin: 14px 0; }
.ref-link input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; text-align: center; }
.ref-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 6px; }
.ref-stats strong { display: block; font-family: var(--cond); font-size: 1.5rem; color: var(--gold); }
.ref-stats span { font-size: .78rem; color: var(--muted); }
.table td.pos { color: var(--ok); text-align: right; white-space: nowrap; }
.table td.neg { color: var(--muted); text-align: right; white-space: nowrap; }
.withdraw-form .btn { margin-bottom: 8px; }
.topup-card h1 { margin-bottom: 14px; }
.topup-sum { max-width: 360px; font-size: 1rem; }
.amount-choices { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.amount-choices .option { align-items: center; }
.option-custom input[type=number] { margin-left: auto; max-width: 140px; padding: 8px 10px; }
.balance-note { background: var(--accent-soft); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 4px; font-size: .9rem; margin: 0 0 10px; }
.payout-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.payout-row:last-of-type { border-bottom: 0; }
.payout-amount { font-family: var(--cond); font-size: 1.5rem; color: var(--gold); margin-right: 10px; }
@media (max-width: 560px) { .wallet-totals { grid-template-columns: 1fr; } .big-money { font-size: 2rem; } }

.addr-form .field > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr-form input[name=btc], .addr-form input[name=tron] { font-family: ui-monospace, Consolas, monospace; }
.addr-auth { display: grid; gap: 0 16px; grid-template-columns: 1fr; max-width: 640px; }
@media (min-width: 700px) { .addr-auth { grid-template-columns: 1fr 1fr; } }

.reviews-empty { max-width: 640px; margin: 0 auto; text-align: center; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: 30px 26px; }
.reviews-empty-stars { font-size: 1.8rem; letter-spacing: 4px; color: var(--gold); opacity: .55; margin-bottom: 8px; }
.reviews-empty h3 { text-transform: uppercase; margin-bottom: 8px; }
.reviews-empty p { color: var(--muted); margin-bottom: 18px; }

/* ---------------------------------------------------------------- free trial */
.trial-ribbon { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
  text-decoration: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.trial-ribbon:hover { color: #fff; filter: brightness(1.08); }
.trial-ribbon svg { width: 16px; height: 16px; flex: none; }
.trial-banner { max-width: 980px; margin: 0 auto 18px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px 24px; background: var(--accent-soft); border: 1px solid var(--gold); border-left-width: 4px; }
.trial-banner > div { flex: 1 1 320px; min-width: 0; }
.trial-banner h3 { margin: 0 0 4px; text-transform: uppercase; }
.trial-banner p { margin: 0; }
.trial-banner .eyebrow { margin-bottom: .3em; }
.trial-send { margin: 0 0 6px; }
.trial-send .small { margin: 8px 0 0; text-align: center; color: var(--muted); }
.trial-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted); font-size: .85rem; }
.trial-or::before, .trial-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.trial-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px;
  padding: 10px 12px; background: var(--accent-soft); border-left: 3px solid var(--gold); border-radius: 4px; font-size: .92rem; }
.trial-note > span { flex: 1 1 240px; min-width: 0; }
.trial-wait { border-left: 4px solid var(--gold); }
.trial-wait .card-title svg { width: 20px; height: 20px; vertical-align: -3px; }
[data-trial-box][hidden] { display: none !important; }

/* ---------------------------------------------------------------- card payments */
.crypto-grid .btn-card:nth-child(odd):last-child { grid-column: 1 / -1; }
.btn-card svg, .coin-badge svg { width: 18px; height: 18px; flex: none; vertical-align: -4px; margin-right: 6px; }
