:root {
  --oled: #000000;
  --obsidian: #050505;
  --carbon: rgba(25, 25, 25, 0.4);
  --carbon-hover: rgba(35, 35, 35, 0.5);
  --glass-bg: rgba(25, 25, 25, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px) saturate(180%);
  --crimson: #ff2a54;
  --crimson-dim: rgba(255, 42, 84, 0.15);
  --crimson-glow: rgba(255, 42, 84, 0.45);
  --gold: #eac07c;
  --gold-neon: #ffb800;
  --gold-dim: rgba(234, 192, 124, 0.12);
  --gold-glow: rgba(255, 184, 0, 0.35);
  --text: #f0f0f5;
  --text-muted: #9a9aaa;
  --border: rgba(255, 255, 255, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 72px;
  --header-h: 56px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans Hebrew', 'Heebo', system-ui, sans-serif;
  background: var(--oled);
  color: var(--text-muted);
  min-height: 100dvh;
  overflow-x: hidden;
  font-size: 16px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ── Shell ── */
.app-shell {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* — Live credit readout (Firestore sync) — */
.credit-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 18px 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(234, 192, 124, 0.06);
  border: 1px solid rgba(234, 192, 124, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.credit-display--hidden { display: none; }
.credit-display--vip {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.08);
}
.credit-display__label { color: var(--text-muted); }
#creditCount {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 1.5ch;
}
.credit-display--vip #creditCount { color: #ffd700; }

.vip-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1206;
  background: linear-gradient(135deg, #ffd700, #c9a04a);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}
.vip-tag--admin {
  background: linear-gradient(135deg, #fff8d2, #ffd700 55%, #c9a04a);
}

.brand-mini {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1;
}

.brand-mini span {
  color: var(--gold);
}

.vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 5px 10px;
  border-radius: 20px;
}

.view {
  display: none;
  padding: 16px 18px 24px;
  animation: viewIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.view.active {
  display: block;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-eyebrow {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 8vw, 36px);
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── Cards ── */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--glass-inset), 0 16px 48px rgba(0, 0, 0, 0.55);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(255, 42, 84, 0.25);
}

.card-pad {
  padding: 16px;
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn .nav-icon {
  font-size: 20px;
  line-height: 1;
}

.nav-btn.active {
  color: var(--crimson);
  background: var(--crimson-dim);
}

.nav-btn.vip-tab.active {
  color: var(--gold);
  background: var(--gold-dim);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--crimson), #cc1a3f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 28px rgba(255, 42, 84, 0.5), 0 4px 18px rgba(0, 0, 0, 0.45);
  filter: brightness(1.08);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--carbon);
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 16px var(--gold-glow);
}

.btn-secondary:hover:not(:disabled) {
  box-shadow: 0 0 24px var(--gold-glow);
  filter: brightness(1.06);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #cc9200);
  color: #0b0b0f;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--crimson);
  color: var(--text);
}

/* ── Relationship stage (3 cols) ── */
.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

/* ── Channel grid (app + whatsapp only) ── */
.ch-grid,
.ch-grid--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.ch-btn {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ch-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.ch-btn .nm {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.ch-btn .ds {
  font-size: 9px;
  color: var(--text-muted);
}

.ch-btn.active {
  border-color: var(--crimson);
  background: var(--crimson-dim);
  box-shadow: 0 0 20px var(--crimson-dim);
}

.ch-btn.active .nm {
  color: var(--crimson);
}

/* ── Inputs ── */
.input-wrap {
  position: relative;
  background: #08080c;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.input-wrap:focus-within {
  border-color: rgba(255, 42, 84, 0.5);
}

.text-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 14px 16px;
  direction: rtl;
  resize: none;
  min-height: 52px;
  max-height: 140px;
  line-height: 1.5;
}

.text-input::placeholder {
  color: var(--text-muted);
}

/* ── Persona cards (analyze) ── */
.persona-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 4 Answers — scenario presets (not chat) */
#view-analyze {
  padding: 16px 14px 24px;
}

/* Alpha sim — difficulty picker */
.sim-difficulty-screen {
  padding: 8px 4px 24px;
  min-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sim-difficulty-screen .section-title {
  text-align: center;
  margin-bottom: 4px;
}

.sim-difficulty-screen .section-desc {
  text-align: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.sim-difficulty-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.sim-diff-card {
  position: relative;
  text-align: right;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 24, 0.85);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  overflow: hidden;
}

.sim-diff-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.sim-diff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.sim-diff-card .sim-diff-label {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}

.sim-diff-card .sim-diff-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.sim-diff-card .sim-diff-persona {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.sim-diff--easy {
  border-color: rgba(76, 175, 80, 0.45);
  box-shadow: inset 0 0 40px rgba(76, 175, 80, 0.08);
}

.sim-diff--easy::before {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.35), rgba(234, 192, 124, 0.2));
}

.sim-diff--medium {
  border-color: rgba(255, 152, 0, 0.45);
  box-shadow: inset 0 0 40px rgba(255, 152, 0, 0.06);
}

.sim-diff--medium::before {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.35), rgba(234, 192, 124, 0.22));
}

.sim-diff--hard {
  border-color: rgba(183, 28, 28, 0.55);
  box-shadow: inset 0 0 40px rgba(255, 42, 84, 0.08);
}

.sim-diff--hard::before {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.5), rgba(234, 192, 124, 0.15));
}

.sim-diff-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.sim-diff-badge.sim-diff--easy {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.sim-diff-badge.sim-diff--medium {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.35);
}

.sim-diff-badge.sim-diff--hard {
  background: rgba(183, 28, 28, 0.25);
  color: #ef9a9a;
  border: 1px solid rgba(183, 28, 28, 0.45);
}

.chat-sim-header .sim-diff-badge {
  margin-top: 0;
  margin-right: 0;
}

.chat-sim {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 120px);
  height: 100%;
}

.chat-thread-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-sim-settings {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-sim-settings summary {
  cursor: pointer;
  color: var(--gold);
}

.stage-grid--compact {
  margin: 8px 0;
}

.scenario-stage-wrap {
  margin-bottom: 16px;
}

.scenario-stage-wrap.hidden {
  display: none;
}

/* Relationship stage chips (4 Answers) */
.rel-stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rel-stage-chip {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.rel-stage-chip.vip-only:not(.active) {
  border-color: rgba(234, 192, 124, 0.25);
}

.rel-stage-chip:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.2);
}

.rel-stage-chip.active {
  border-color: var(--crimson);
  background: var(--crimson-dim);
  box-shadow: 0 0 16px var(--crimson-dim);
  color: var(--text);
}

.err-banner.vip-toast {
  border-color: var(--gold);
  background: rgba(234, 192, 124, 0.12);
  color: var(--gold);
}

.chat-new-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  padding: 8px;
}

.chat-analysis-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.chat-analysis-panel {
  position: relative;
  text-align: right;
}

.chat-analysis-score-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.chat-analysis-text {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
  text-align: right;
}

.chat-analysis-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  text-align: right;
}

.chat-analysis-col h4 {
  font-size: 11px;
  margin: 0 0 6px;
  color: var(--text-muted);
}

.chat-analysis-col ul {
  margin: 0;
  padding: 0 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.chat-typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1s infinite;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.persona-card {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.persona-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Alpha — expert tip card */
.persona-card.alpha,
.alpha-card {
  position: relative;
  border-color: rgba(234, 192, 124, 0.45);
  background:
    linear-gradient(165deg, rgba(234, 192, 124, 0.1) 0%, rgba(12, 12, 14, 0.92) 55%, rgba(8, 8, 10, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(234, 192, 124, 0.2),
    0 8px 28px rgba(234, 192, 124, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.persona-card.alpha::before,
.alpha-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.06);
}

.persona-card.beta { border-color: rgba(120, 140, 200, 0.3); }
.persona-card.witty { border-color: rgba(255, 184, 0, 0.35); }
.persona-card.friendly { border-color: rgba(80, 200, 140, 0.3); }

.persona-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.persona-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.persona-sub {
  margin-inline-start: auto;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.persona-card.alpha .persona-tag,
.alpha-card .persona-tag {
  color: var(--gold);
  background: rgba(234, 192, 124, 0.18);
  border: 1px solid rgba(234, 192, 124, 0.45);
}

.alpha-card__badge,
.persona-card.alpha .alpha-card__badge {
  margin-inline-start: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 232, 200, 0.95);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(234, 192, 124, 0.14);
  border: 1px solid rgba(234, 192, 124, 0.35);
}

.persona-card.beta .persona-tag {
  color: #8899dd;
  background: rgba(74, 111, 165, 0.12);
}

.persona-card.witty .persona-tag {
  color: var(--gold);
  background: var(--gold-dim);
}

.persona-card.friendly .persona-tag {
  color: #50d090;
  background: rgba(46, 139, 87, 0.1);
}

.persona-body {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}

.persona-foot {
  display: flex;
  justify-content: flex-end;
  padding: 4px 14px 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.copy-btn--labeled {
  width: auto;
  min-width: 38px;
  padding: 0 12px;
}

.copy-btn__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.copy-btn__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: rgba(234, 192, 124, 0.45);
  color: #ffe9b8;
  background: rgba(234, 192, 124, 0.1);
  box-shadow: 0 0 14px rgba(234, 192, 124, 0.2);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn.copied {
  border-color: rgba(80, 220, 140, 0.55);
  color: #7dffb0;
  background: rgba(80, 220, 140, 0.12);
  box-shadow: 0 0 16px rgba(80, 220, 140, 0.25);
}

.copy-btn--failed {
  border-color: rgba(255, 107, 107, 0.5);
  color: #ff8a9a;
}

/* ── Truth or Dare (bottle spin + 3D tactile) ── */
#view-truth {
  --tod-container: #1e1e1e;
  --tod-text: #e0e0e0;
  --tod-header: #eac07c;
  --tod-red: #d32f2f;
  --tod-red-shadow: #990000;
  --tod-blue: #1976d2;
  --tod-blue-shadow: #0d47a1;
  --tod-green: #4caf50;
  --tod-green-shadow: #2e7d32;
  --tod-gold-shadow: #a67c00;
  --tod-gray-shadow: #2a2a2a;
  --tod-press: 6px;
  --tod-input-bg: #252525;
  --tod-input-border: #444;
  padding: 0 16px 12px;
  font-family: 'Heebo', 'Noto Sans Hebrew', sans-serif;
  perspective: 1200px;
}

/* Aliases for mockup class names */
#view-truth .container,
.tod-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 28px 22px 32px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset), 0 20px 56px rgba(0, 0, 0, 0.65);
  text-align: center;
  color: var(--tod-text);
  overflow: visible;
  transform: translateZ(0);
}

.tod-brand {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 5px;
  letter-spacing: 2px;
  text-shadow:
    0 0 24px rgba(234, 192, 124, 0.45),
    0 0 48px rgba(255, 184, 0, 0.15);
}

.tod-subtitle {
  color: #888;
  margin: 0 0 22px;
  font-size: 0.9rem;
}

.tod-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

#player-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--tod-input-border);
  background: var(--tod-input-bg);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  min-width: 0;
}

#player-input:focus {
  outline: none;
  border-color: var(--tod-header);
}

/* כפתורים — שכבה אחת + זוהר ב-hover (בלי "כפתור כפול") */
.tod-add-btn,
.tod-start-btn,
.tod-action-btn,
.tod-next-turn-btn,
.tod-truth-btn,
.tod-dare-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.22s ease, filter 0.2s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.tod-add-btn {
  background: var(--tod-green);
  color: #fff;
  padding: 10px 20px;
}

.tod-add-btn:hover {
  box-shadow: 0 0 22px rgba(76, 175, 80, 0.45), 0 4px 14px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.tod-add-btn:active {
  transform: scale(0.98);
}

.tod-players-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 32px;
}

.tod-player-tag {
  background: #333;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.tod-tag-remove {
  cursor: pointer;
  color: #ff4444;
  font-weight: 700;
  line-height: 1;
}

.tod-setup-hint {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 12px;
}

.tod-setup-hint.err {
  color: var(--tod-red);
}

.tod-start-btn {
  display: none;
  background: linear-gradient(135deg, #f0d78c, var(--tod-header));
  color: #1a1200;
  padding: 15px 30px;
  width: 100%;
  font-size: 1.2rem;
}

.tod-start-btn.visible {
  display: block;
}

.tod-start-btn:hover {
  box-shadow: 0 0 26px rgba(234, 192, 124, 0.45), 0 4px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(1.06);
}

.tod-start-btn:active {
  transform: scale(0.98);
}

.tod-turn-header {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.4;
}

.tod-turn-name {
  color: var(--tod-header);
  font-size: 2.2rem;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
  animation: todTurnPop 0.45s ease-out;
}

@keyframes todTurnPop {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.tod-bottle-container {
  margin: 24px auto;
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.tod-bottle {
  transition: transform 3.5s cubic-bezier(0.1, 0.8, 0.1, 1);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.tod-spin-hint {
  color: #888;
  font-size: 0.9rem;
  margin: -8px 0 16px;
  animation: todHintPulse 1.5s infinite;
}

@keyframes todHintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.tod-deck-counts {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 12px;
}

.tod-action-buttons {
  display: none;
  gap: 15px;
  justify-content: center;
  margin-top: 8px;
}

.tod-action-buttons.visible {
  display: flex;
}

.tod-action-btn {
  flex: 1;
  padding: 15px;
  font-size: 1.15rem;
}

.tod-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.tod-truth-btn {
  background: var(--tod-blue);
  color: #fff;
}

.tod-truth-btn:hover:not(:disabled) {
  box-shadow: 0 0 28px rgba(25, 118, 210, 0.55), 0 4px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.tod-truth-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tod-dare-btn {
  background: var(--tod-red);
  color: #fff;
}

.tod-dare-btn:hover:not(:disabled) {
  box-shadow: 0 0 28px rgba(211, 47, 47, 0.55), 0 4px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.tod-dare-btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* Result card — 3D floating panel */
#view-truth .result-box,
.tod-result-box {
  margin-top: 22px;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  border-right: 4px solid var(--gold);
  display: none;
  font-size: 1.15rem;
  line-height: 1.55;
  text-align: right;
  transform: scale(0.8) translateY(16px) translateZ(0);
  opacity: 0;
  box-shadow: var(--glass-inset), 0 12px 32px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity, box-shadow;
}

#view-truth .result-box.visible,
.tod-result-box.visible {
  display: block;
  animation: todResultPop3d 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.tod-result-box.truth-result {
  border-right-color: var(--tod-blue);
}

.tod-result-box.dare-result {
  border-right-color: var(--tod-red);
}

@keyframes todResultPop3d {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px) translateZ(0);
    box-shadow:
      0 6px 14px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  55% {
    opacity: 1;
    transform: scale(1.04) translateY(-6px) translateZ(24px);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.75),
      0 12px 28px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(-10px) translateZ(16px);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.7),
      0 10px 24px rgba(0, 0, 0, 0.45),
      0 0 32px rgba(234, 192, 124, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -2px 8px rgba(0, 0, 0, 0.4);
  }
}

.tod-next-turn-btn {
  background: #4a4a4a;
  color: #fff;
  padding: 12px 20px;
  margin-top: 20px;
  width: 100%;
  display: none;
  font-size: 1rem;
}

.tod-next-turn-btn:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.4);
  filter: brightness(1.12);
}

.tod-next-turn-btn:active {
  transform: scale(0.98);
}

.tod-next-turn-btn.visible {
  display: block;
}

.tod-back-setup {
  margin-top: 12px;
  background: transparent;
  border: 1px solid #555;
  color: #888;
  padding: 8px 16px;
  width: 100%;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.tod-back-setup:hover {
  color: var(--tod-text);
  border-color: #888;
}

.tod-error {
  color: var(--tod-red);
  text-align: center;
  padding: 16px;
}

/* Legacy 3D bottle (unused) */
.tod-arena {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 12px;
}

.tod-scene {
  width: 200px;
  height: 220px;
  perspective: 900px;
  perspective-origin: 50% 40%;
  margin-bottom: 20px;
}

.tod-spinner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: none;
}

.tod-spinner.spinning {
  transition: none;
}

.bottle-group {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 140px;
  margin-left: -24px;
  margin-top: -70px;
  transform-style: preserve-3d;
}

.bottle-body {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.bottle-glass {
  position: absolute;
  width: 44px;
  height: 110px;
  left: 2px;
  top: 28px;
  background: linear-gradient(90deg, rgba(255,42,84,0.15), rgba(255,255,255,0.08), rgba(255,42,84,0.1));
  border: 2px solid rgba(255, 42, 84, 0.5);
  border-radius: 8px 8px 16px 16px;
  box-shadow: inset 0 -20px 30px rgba(0,0,0,0.4), 0 0 24px var(--crimson-dim);
}

.bottle-neck {
  position: absolute;
  width: 18px;
  height: 32px;
  left: 15px;
  top: 0;
  background: linear-gradient(90deg, #2a2a35, #3d3d4a, #2a2a35);
  border: 1px solid rgba(255, 42, 84, 0.4);
  border-radius: 4px 4px 0 0;
}

.bottle-cork {
  position: absolute;
  width: 14px;
  height: 10px;
  left: 17px;
  top: -8px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Truth / Dare labels on ring */
.tod-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  transform-style: preserve-3d;
  transform: rotateX(72deg);
}

.tod-label {
  position: absolute;
  width: 72px;
  height: 36px;
  left: 50%;
  top: 50%;
  margin: -18px 0 0 -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 8px;
  backface-visibility: hidden;
}

.tod-label.truth {
  background: var(--crimson-dim);
  border: 1px solid var(--crimson);
  color: var(--crimson);
  transform: rotateY(0deg) translateZ(90px);
}

.tod-label.dare {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  transform: rotateY(180deg) translateZ(90px);
}

.tod-floor {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 160px;
  height: 40px;
  margin-left: -80px;
  background: radial-gradient(ellipse, rgba(255, 42, 84, 0.2), transparent 70%);
  transform: rotateX(90deg) translateZ(-20px);
  opacity: 0.6;
}

.tod-result {
  width: 100%;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s, margin 0.35s;
}

.tod-result.reveal {
  max-height: 280px;
  opacity: 1;
  margin-top: 8px;
}

.tod-result-card {
  background: linear-gradient(145deg, var(--carbon), #12121a);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tod-result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 42, 84, 0.06));
  pointer-events: none;
}

.tod-result-card.dare-type::before {
  background: linear-gradient(135deg, transparent, rgba(255, 184, 0, 0.08));
}

.tod-result-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tod-result-card.truth-type .tod-result-type { color: var(--crimson); }
.tod-result-card.dare-type .tod-result-type { color: var(--gold); }

.tod-result-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.tod-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-chip {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--carbon);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-chip.active.truth-mode {
  border-color: var(--crimson);
  color: var(--crimson);
  background: var(--crimson-dim);
}

.mode-chip.active.dare-mode {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ── Alpha Sim glitch ── */
.sim-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 4px 0;
}

.sim-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.sim-bubble.her {
  align-self: flex-start;
  background: #1a1a24;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-right-radius: 4px;
  animation: simBubbleIn 0.35s ease-out;
}

@keyframes simBubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sim-typing {
  align-self: flex-start;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  font-style: italic;
  animation: todHintPulse 1.2s infinite;
}

.sim-bubble.coach {
  align-self: center;
  max-width: 95%;
  background: rgba(234, 192, 124, 0.1);
  border: 1px solid rgba(234, 192, 124, 0.35);
  color: var(--gold);
  font-size: 12px;
  line-height: 1.5;
}

.sim-bubble.you {
  align-self: flex-end;
  background: var(--crimson-dim);
  border: 1px solid rgba(255, 42, 84, 0.35);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.sim-arena {
  position: relative;
}

.sim-actions {
  margin: 12px 0 8px;
}

.sim-end-btn {
  width: 100%;
}

.sim-end-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sim-input-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.sim-chat-dimmed {
  opacity: 0.45;
}

.sim-report {
  margin-top: 12px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.sim-report.hidden {
  display: none;
}

.sim-report-inner {
  text-align: right;
}

.sim-score-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.sim-score-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: conic-gradient(
    var(--gold) calc(var(--score-pct, 50) * 1%),
    #2a2a32 0
  );
  border: 3px solid rgba(234, 192, 124, 0.4);
  flex-shrink: 0;
}

.sim-score-label {
  font-size: 12px;
  color: var(--text-muted);
}

.sim-grade-tag {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.sim-report-summary {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 14px;
}

.sim-report-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .sim-report-cols {
    grid-template-columns: 1fr;
  }
}

.sim-report-col h4 {
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--text-muted);
}

.sim-report-good h4 {
  color: #81c784;
}

.sim-report-fix h4 {
  color: #ef9a9a;
}

.sim-report-col ul {
  margin: 0;
  padding: 0 18px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}

.sim-report-err {
  color: var(--crimson);
  font-size: 13px;
  margin-bottom: 10px;
}

.sim-chat-wrap {
  position: relative;
  min-height: 200px;
}

.glitch-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(11, 11, 15, 0.92);
  border: 2px solid var(--crimson);
  border-radius: 12px;
  animation: glitchFlash 0.12s steps(2) 6;
}

.glitch-overlay.active {
  display: flex;
}

@keyframes glitchFlash {
  0%, 100% { transform: translate(0); filter: hue-rotate(0deg); }
  25% { transform: translate(-3px, 2px); filter: hue-rotate(90deg); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -3px); filter: hue-rotate(-90deg); }
}

.glitch-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--crimson);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--crimson-glow);
  margin-bottom: 8px;
}

.glitch-sub {
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.glitch-hint {
  font-size: 11px;
  color: var(--gold);
  font-style: italic;
}

.sim-input-row {
  display: flex;
  gap: 8px;
}

.sim-input-row .text-input {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
}

.sim-send {
  width: 48px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 10px;
}

/* ── VIP Guides accordion ── */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.guide-item.open {
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: 0 0 24px var(--gold-dim);
}

.guide-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}

.guide-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gold-dim);
  color: var(--gold);
}

.guide-meta {
  flex: 1;
}

.guide-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.guide-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.guide-chev {
  color: var(--text-muted);
  transition: transform 0.3s;
}

.guide-item.open .guide-chev {
  transform: rotate(180deg);
  color: var(--gold);
}

.guide-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-item.open .guide-panel {
  max-height: 1200px;
}

.guide-content {
  padding: 0 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.guide-content h4 {
  color: var(--gold);
  font-size: 12px;
  margin: 14px 0 6px;
  letter-spacing: 0.05em;
}

.guide-content ul {
  padding-right: 18px;
  margin-bottom: 10px;
}

.guide-content li {
  margin-bottom: 6px;
}

/* ── Loading / errors ── */
/* Generate button — dating psych loading pulse */
.btn-primary.loading-pulse,
#scenarioSubmit.loading-pulse {
  animation: pulse-animation 1s infinite alternate;
  opacity: 0.88;
  pointer-events: none;
}

@keyframes pulse-animation {
  from {
    transform: scale(1);
    filter: brightness(100%);
  }
  to {
    transform: scale(0.98);
    filter: brightness(120%);
  }
}

/* Dating-psychology scan loader (4 Answers + Coach) */
.psych-scan-host {
  position: relative;
  min-height: 120px;
  margin: 16px 0;
  border-radius: 16px;
  overflow: hidden;
}

.psych-scan-host--overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  border-radius: inherit;
}

.psych-scan-host.hidden {
  display: none !important;
}

.psych-scan-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
}

.psych-scan-radar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 18px;
  position: relative;
  border: 2px solid rgba(255, 42, 84, 0.25);
  box-shadow: 0 0 24px rgba(255, 42, 84, 0.15);
  animation: psychRadarSpin 2.4s linear infinite;
}

.psych-scan-radar::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 42, 84, 0.85) 48deg,
    transparent 96deg
  );
  animation: psychRadarPulse 1.2s ease-in-out infinite;
}

.psych-scan-radar::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #0a0a10;
  box-shadow: inset 0 0 16px rgba(255, 42, 84, 0.2);
}

.psych-scan-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  animation: psychTextPulse 1.2s ease-in-out infinite;
  max-width: 280px;
  line-height: 1.45;
}

@keyframes psychRadarSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes psychRadarPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes psychTextPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 14px rgba(234, 192, 124, 0.45);
  }
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-card {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 84, 0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sk-line {
  height: 10px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
}

.sk-line.s { width: 35%; }
.sk-line.m { width: 65%; }
.sk-line.l { width: 90%; }

/* Gold hint — validation / guidance (replaces plain-text warnings) */
.ui-hint-banner {
  display: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255, 236, 210, 0.95);
  padding: 11px 16px;
  margin: 8px auto 14px;
  max-width: 92%;
  border-radius: 12px;
  background: rgba(234, 192, 124, 0.08);
  border: 1px solid rgba(234, 192, 124, 0.32);
  box-shadow: 0 0 20px rgba(234, 192, 124, 0.12);
  animation: uiHintPulse 2.4s ease-in-out infinite;
}

.ui-hint-banner.show {
  display: block;
}

.ui-hint-banner--error {
  color: #ffb8c8;
  background: rgba(255, 42, 84, 0.1);
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: 0 0 18px rgba(255, 42, 84, 0.18);
  animation: uiHintPulseError 2.2s ease-in-out infinite;
}

@keyframes uiHintPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(234, 192, 124, 0.1);
    border-color: rgba(234, 192, 124, 0.28);
  }
  50% {
    box-shadow: 0 0 22px rgba(234, 192, 124, 0.22);
    border-color: rgba(234, 192, 124, 0.45);
  }
}

@keyframes uiHintPulseError {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 42, 84, 0.12);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 42, 84, 0.28);
  }
}

.err-banner {
  display: none;
  background: var(--crimson-dim);
  border: 1px solid rgba(255, 42, 84, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: #ff6b85;
  margin-bottom: 12px;
}

.err-banner.show {
  display: block;
}

/* ── Situation cards (offline presets) ── */
.sit-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.sit-card {
  background: rgba(18, 18, 22, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.sit-card.open {
  border-color: rgba(255, 42, 84, 0.35);
  box-shadow: 0 0 16px rgba(255, 42, 84, 0.08);
}

.sit-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: right;
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
}

.sit-hdr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sit-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.sit-title {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.sit-chev {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.7;
}

.sit-card.open .sit-chev {
  transform: rotate(-90deg);
}

.sit-body {
  border-top: 1px solid var(--border);
  padding: 0 14px 14px;
  background: rgba(0, 0, 0, 0.25);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-chip {
  padding: 6px 12px;
  font-size: 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.tag-chip:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.hidden { display: none !important; }

.boot-error {
  position: fixed;
  top: 60px;
  left: 12px;
  right: 12px;
  z-index: 9999;
  max-width: 456px;
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(255, 42, 84, 0.15);
  border: 1px solid var(--crimson);
  border-radius: 10px;
  color: #ff6b85;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Dating coach modal — no body blur; overlay only */
body.coach-modal-open {
  overflow: hidden;
}

body.coach-modal-open .aurora-bg,
body.coach-modal-open .app-shell {
  filter: none;
}

.chat-analysis-layer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.chat-analysis-layer.active {
  opacity: 1;
  pointer-events: auto;
}

.chat-analysis-layer.hidden {
  display: none !important;
}

.chat-analysis-overlay {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-modal-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px 22px 24px;
  text-align: center;
  background: linear-gradient(165deg, rgba(28, 28, 36, 0.98) 0%, rgba(12, 12, 18, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: scale(0.94) translateY(8px);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.chat-analysis-layer.active .coach-modal-panel {
  transform: scale(1) translateY(0);
}

.coach-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 600;
}

.coach-score-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
}

.coach-score-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--gold-neon) 0deg,
    var(--gold) calc(var(--coach-pct, 0) * 3.6deg),
    rgba(255, 255, 255, 0.06) calc(var(--coach-pct, 0) * 3.6deg),
    rgba(255, 255, 255, 0.06) 360deg
  );
  transition: background 0.05s linear;
}

.coach-score-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #0a0a10;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6);
}

.coach-score-num {
  position: relative;
  z-index: 1;
  font-family: 'Bebas Neue', 'Heebo', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.coach-score-label {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.coach-analysis-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 18px;
  text-align: right;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.coach-tips-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
  text-align: right;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.coach-tips-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  text-align: right;
}

.coach-tips-list li {
  position: relative;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 10px 14px 10px 8px;
  margin-bottom: 8px;
  background: rgba(255, 42, 84, 0.06);
  border-radius: 10px;
  border-right: 3px solid var(--crimson);
}

.coach-tips-list li::before {
  content: '→';
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--gold);
  font-size: 11px;
  opacity: 0.8;
}

.coach-tips-list li {
  padding-right: 28px;
}

.coach-modal-panel .btn-primary {
  width: 100%;
  margin-top: 4px;
}

.chat-footer-bar {
  flex-shrink: 0;
  padding: 8px 12px 14px;
  background: rgba(12, 12, 16, 0.92);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-footer-bar .chat-composer {
  display: flex;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
}

.chat-end-bottom {
  width: 100%;
  font-size: 13px;
  padding: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   Auth · Credits · Paywall
   ─────────────────────────────────────────────────────────────────── */

/* — Logout — */
.logout-btn {
  position: static;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.logout-btn:hover {
  background: rgba(255, 42, 84, 0.12);
  border-color: rgba(255, 42, 84, 0.35);
  color: #ff8a9a;
}

/* — Header credit counter — */
.credit-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234, 192, 124, 0.08);
  border: 1px solid rgba(234, 192, 124, 0.3);
  color: var(--gold);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  user-select: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1;
}
.credit-counter:hover {
  background: rgba(234, 192, 124, 0.16);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.28);
  transform: translateY(-1px);
}
.credit-counter .cc-icon { font-size: 13px; }
.credit-counter .cc-text { font-variant-numeric: tabular-nums; }
.credit-counter--empty {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 42, 84, 0.08);
  animation: ccPulseEmpty 1.6s ease-in-out infinite;
}
.credit-counter--admin {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(234, 192, 124, 0.1));
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.credit-counter--anon {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.credit-counter--dev {
  color: rgba(180, 180, 200, 0.85);
  border-color: rgba(120, 200, 160, 0.3);
  background: rgba(80, 200, 120, 0.06);
  cursor: default;
  letter-spacing: 0.04em;
}
.credit-counter--dev:hover {
  background: rgba(80, 200, 120, 0.06);
  box-shadow: none;
  transform: none;
}

@keyframes ccPulseEmpty {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 42, 84, 0); }
  50% { box-shadow: 0 0 16px rgba(255, 42, 84, 0.55); }
}

/* — Firebase config warning banner — */
.auth-config-banner {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 42, 84, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 9998;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.auth-config-banner code {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* — Generic modal scrim shared by auth + paywall — */
.auth-modal,
.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-modal.active,
.paywall-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal.hidden,
.paywall-modal.hidden { display: none; }

.auth-modal__overlay,
.paywall-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* — Auth modal (sleek dark/gold) — */
.auth-modal__panel {
  position: relative;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.96), rgba(8, 8, 12, 0.98));
  border: 1px solid rgba(234, 192, 124, 0.22);
  border-radius: 22px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 0 40px rgba(234, 192, 124, 0.1);
  color: var(--text);
  text-align: center;
}
.auth-modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.auth-modal__brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 22px;
}
.auth-modal__brand span { color: var(--gold); }

.auth-modal__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-tab.active {
  background: rgba(234, 192, 124, 0.15);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.auth-field__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.auth-field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  direction: ltr;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234, 192, 124, 0.15);
}

.auth-error {
  background: rgba(255, 42, 84, 0.1);
  border: 1px solid rgba(255, 42, 84, 0.35);
  color: #ff6b6b;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}
.auth-error.hidden { display: none; }

.auth-submit {
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(234, 192, 124, 0.5);
  background: linear-gradient(180deg, rgba(234, 192, 124, 0.22), rgba(234, 192, 124, 0.08));
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.auth-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(234, 192, 124, 0.35), rgba(234, 192, 124, 0.15));
  box-shadow: 0 8px 22px rgba(255, 184, 0, 0.25);
  transform: translateY(-1px);
}
.auth-submit:disabled { opacity: 0.6; cursor: progress; }

.auth-helper {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.auth-link {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 2px;
}

/* — Paywall (luxury glassmorphism) — */
.paywall-modal__overlay {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.paywall-modal__panel {
  position: relative;
  width: min(440px, 92vw);
  padding: 36px 28px 26px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at top, rgba(255, 215, 0, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(15, 12, 6, 0.96), rgba(5, 4, 2, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 60px rgba(255, 215, 0, 0.22);
  color: var(--text);
  text-align: center;
}
.paywall-modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 215, 0, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.paywall-modal__close:hover {
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
}
.paywall-crown {
  font-size: 44px;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.6));
  margin-bottom: 8px;
  animation: paywallCrownFloat 4s ease-in-out infinite;
}
@keyframes paywallCrownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.paywall-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff8d2, #ffd700 60%, #c9a04a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.25);
}
.paywall-title-accent {
  display: inline-block;
  margin-inline-start: 6px;
  color: #ffd700;
  -webkit-text-fill-color: #ffd700;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
}
.paywall-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 240, 200, 0.8);
  margin-bottom: 20px;
}

.paywall-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 245, 220, 0.85);
}
.paywall-perks li {
  position: relative;
  padding-inline-end: 22px;
}
.paywall-perks li::before {
  content: '✦';
  color: #ffd700;
  position: absolute;
  inset-inline-end: 0;
  top: 1px;
  font-size: 12px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.55);
}

.paywall-cta {
  position: relative;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.6);
  background: linear-gradient(180deg, #ffd700, #c9a04a);
  color: #1a1206;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(255, 184, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: paywallCtaPulse 2.2s ease-in-out infinite;
  transition: transform 0.15s;
}
.paywall-cta:hover { transform: translateY(-2px); }
.paywall-cta__text { position: relative; z-index: 2; }
.paywall-cta__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5), transparent 60%);
  animation: paywallCtaSweep 3s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes paywallCtaPulse {
  0%, 100% { box-shadow: 0 18px 40px rgba(255, 184, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
  50% { box-shadow: 0 20px 56px rgba(255, 184, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}
@keyframes paywallCtaSweep {
  0% { transform: translateX(-30%) rotate(0deg); }
  100% { transform: translateX(30%) rotate(360deg); }
}

.paywall-foot {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 240, 200, 0.5);
  letter-spacing: 0.04em;
}

/* prevent background scroll while modals open */
body.auth-modal-open,
body.paywall-open { overflow: hidden; }

/* — Full-screen auth guard (login route) — */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.auth-gate.hidden { display: none; }
.auth-gate__panel {
  width: min(420px, 92vw);
  margin: 0;
}
.auth-gate__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: -12px 0 20px;
  line-height: 1.5;
}

body.auth-pending .app-shell,
body.auth-pending #auth-gate { visibility: hidden; pointer-events: none; }
body.auth-pending::after {
  content: 'טוען…';
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}
body[data-auth="signed-out"] { overflow: hidden; }
body[data-auth="signed-in"] #auth-gate { display: none !important; }
body[data-auth="signed-in"] .app-shell { display: block !important; }
body[data-auth="signed-out"] .app-shell { display: none !important; }
body[data-auth="dev"] #auth-gate { display: none !important; }
body[data-auth="dev"] .app-shell { display: block !important; }
