/* BelieversForLife brand: orange -> red gradient, Montserrat, charcoal text, warm borders */
:root {
  --grad: linear-gradient(118deg, #F7941E 0%, #F2683C 50%, #EF4136 100%);
  --orange: #F7941E;
  --coral: #F2683C;
  --red: #EF4136;
  --bg: #fbf8f4;
  --card: #ffffff;
  --line: #ece6dc;
  --text: #5c5c5c;
  --heading: #3f3f3f;
  --muted: #8f8a84;
  --soft: #fdf1e6;
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Montserrat, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { padding: calc(12px + env(safe-area-inset-top)) 16px calc(100px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); font-size: 15px; margin: 4px 0 14px; }
.brand svg { width: 26px; height: 18px; }
h1 { font-size: 26px; font-weight: 800; color: var(--heading); margin: 2px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 12px; margin: 0 0 12px; color: var(--coral); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
p { margin: 0 0 10px; }
b { color: var(--heading); }
a { color: var(--coral); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: 0 6px 24px rgba(92, 72, 50, .06); }

button, .btn { font: inherit; border: 0; border-radius: 999px; padding: 13px 18px; background: var(--soft); color: var(--heading); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button:disabled { opacity: .45; }
.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(239, 65, 54, .25); }
.danger { background: #fff; color: var(--red); border: 1px solid #f6c9c3; }
.ghost { background: #fff; border: 1px solid var(--line); color: var(--heading); }
.block { width: 100%; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.wrap { flex-wrap: wrap; }
input, textarea, select { width: 100%; font: inherit; color: var(--heading); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
input:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 148, 30, .18); }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--heading); margin: 0; font-size: 15px; }
.toggle input { width: auto; transform: scale(1.4); accent-color: var(--coral); }

/* Talk button */
.talk { width: 168px; height: 168px; border-radius: 50%; margin: 6px auto 14px; display: flex; flex-direction: column; font-size: 15px; background: var(--grad); color: #fff; box-shadow: 0 14px 36px rgba(239, 65, 54, .3); }
.talk .mic { font-size: 44px; line-height: 1.1; }
.talk.rec { background: #fff; color: var(--red); border: 3px solid var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,65,54,.35); } 50% { box-shadow: 0 0 0 18px rgba(239,65,54,0); } }
.center { text-align: center; }

.shot { display: flex; gap: 12px; align-items: center; }
.shot img { width: 64px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

/* Lists */
.item { display: block; color: inherit; text-decoration: none; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.list { padding: 0; overflow: hidden; }
.name { font-weight: 700; color: var(--heading); text-decoration: none; }
.chip { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: #f4efe8; color: var(--muted); margin-right: 6px; font-weight: 700; }
.chip.active { background: #fdeede; color: #d9730f; }
.chip.paused { background: #f1eee9; color: #7d766d; }
.chip.booked, .chip.signed_up { background: #e6f4ea; color: #2f8a4c; }
.chip.stopped, .chip.not_interested { background: #fde6e3; color: var(--red); }
.chip.hot { background: var(--grad); color: #fff; }

.bubble { padding: 10px 14px; border-radius: 18px; margin: 8px 0; max-width: 88%; white-space: pre-wrap; }
.bubble.out { background: var(--grad); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.out .meta { color: rgba(255,255,255,.85); }
.bubble.in { background: #f4efe8; color: var(--heading); border-bottom-left-radius: 6px; }
.bubble.draft { background: #fff; border: 1px dashed #e8c9a8; margin-left: auto; }
.bubble .meta { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.spinner { width: 34px; height: 34px; border: 3px solid #f4e4d3; border-top-color: var(--coral); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav a { flex: 1; text-align: center; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; padding: 8px 0 10px; position: relative; }
nav a .ico { display: block; font-size: 20px; line-height: 1.3; }
nav a.on { color: var(--coral); }
#badge { position: absolute; top: 4px; left: 54%; background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 6px; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--heading); color: #fff; padding: 12px 16px; border-radius: 14px; text-align: center; z-index: 9; font-weight: 600; }
.warn { color: #c46a0a; }
.err { color: var(--red); }
code { background: var(--soft); color: var(--heading); padding: 2px 6px; border-radius: 6px; word-break: break-all; font-size: 13px; }
