/* ==============================================================================
   Gratitude Diary — Mobile & AI First Sacred Sanctuary Stylesheet
   ============================================================================== */

:root {
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --bg-app: #080b13;
  --bg-card: rgba(17, 24, 39, 0.86);
  --bg-elevated: #0f172a;
  --bg-input: rgba(10, 15, 28, 0.9);
  --border-subtle: rgba(245, 196, 81, 0.16);
  --border-soft: rgba(148, 163, 184, 0.18);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;

  --gold: #f5b942;
  --gold-bright: #fde68a;
  --gold-dim: rgba(245, 185, 66, 0.14);
  --teal: #2dd4bf;
  --indigo: #818cf8;
  --danger: #f87171;

  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.42);
  --radius-lg: 20px;
  --radius-md: 14px;
}

[data-theme="light"] {
  --bg-app: #f7f3eb;
  --bg-card: rgba(255, 253, 249, 0.94);
  --bg-elevated: #fffdf8;
  --bg-input: #f3ede1;
  --border-subtle: rgba(180, 120, 20, 0.22);
  --border-soft: rgba(100, 116, 139, 0.22);

  --text-main: #1c1917;
  --text-muted: #6b6257;
  --text-soft: #44403c;

  --gold: #b45309;
  --gold-bright: #d97706;
  --gold-dim: rgba(217, 119, 6, 0.12);
  --shadow-card: 0 8px 26px rgba(45, 32, 10, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  font-family: var(--font-ui);
  background-color: var(--bg-app);
  background-image:
    radial-gradient(circle at 18% 10%, rgba(245, 185, 66, 0.09), transparent 44%),
    radial-gradient(circle at 85% 82%, rgba(99, 102, 241, 0.09), transparent 48%);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* LANGUAGE SWITCHER */
.lang-switch {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--gold);
  color: #0b0f17;
}

/* AUTH GATE */
.auth-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px 24px;
}

.auth-topbar {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  padding: 30px 24px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  margin: auto 0;
}

.auth-emblem {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: var(--gold-bright);
  box-shadow: 0 0 28px rgba(245, 185, 66, 0.22);
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-main);
  line-height: 1.1;
}

.auth-subtitle {
  margin: 10px auto 20px;
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 420px;
}

.vault-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 18px;
}

.vault-shield {
  font-size: 1.35rem;
  line-height: 1.2;
}

.vault-guarantee strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

.vault-guarantee p {
  font-size: 0.79rem;
  color: var(--text-soft);
  line-height: 1.42;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 22px;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 9px 12px;
}

.google-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.auth-error {
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
}

/* HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  max-width: 185px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

/* MAIN LAYOUT */
.main-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 14px calc(104px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.view-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.hero-status-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  text-align: center;
}

.stat-chip.accent {
  border-color: var(--border-subtle);
  background: linear-gradient(145deg, var(--bg-card), var(--gold-dim));
}

.chip-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stat-chip strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-header-row h2, .card-header-row h3 {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.18;
}

.muted-small {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.date-input, .search-input, .select-input {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
}

.category-pills, .mentor-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.cat-pill, .mode-pill {
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.79rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cat-pill.active, .mode-pill.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.gratitude-textarea, .mentor-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  padding: 13px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.gratitude-textarea:focus, .mentor-textarea:focus {
  border-color: var(--gold);
}

.composer-footer {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #f5b942, #d97706);
  color: #0b0f17;
  box-shadow: 0 4px 16px rgba(245, 185, 66, 0.25);
}

.composer-footer .btn-primary {
  flex: 1 1 220px;
}

.pin-form .btn-primary {
  width: 100%;
  min-height: 48px;
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

.btn-gold-outline {
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
  color: var(--gold-bright);
  padding: 8px 13px;
  font-size: 0.82rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

/* SUGGESTIONS */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.suggestion-chip {
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  color: var(--text-main);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.suggestion-chip:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.sug-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.sug-body {
  display: block;
  font-size: 0.81rem;
  color: var(--text-soft);
  line-height: 1.42;
}

.sug-angle {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
}

/* AI EVALUATION CARD */
.evaluation-card {
  border-color: var(--border-subtle);
  background: linear-gradient(165deg, var(--bg-card), var(--gold-dim));
}

.eval-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.eval-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0f17;
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 8px;
}

.eval-badge.low {
  background: #f87171;
  color: #fff;
}

.eval-badge.high {
  background: #2dd4bf;
  color: #062520;
}

.eval-level-txt {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.eval-model-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.eval-verdict {
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.eval-body {
  font-size: 0.91rem;
  color: var(--text-soft);
}

.eval-challenge {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 0 10px 10px 0;
  font-size: 0.87rem;
  font-weight: 600;
}

.eval-questions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.eval-q-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--gold-bright);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.12s ease;
}

.eval-q-item:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.eval-q-num {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.eval-q-text {
  flex: 1;
}

.eval-practice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.25);
  font-size: 0.84rem;
  color: var(--text-soft);
}

.eval-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* DIARY TIMELINE */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-row .search-input {
  flex: 1 1 200px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.entry-date-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.entry-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mini-pill {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}

.entry-text {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: pre-wrap;
}

.entry-ai-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-input);
  border-left: 2px solid var(--gold);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.entry-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.txt-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.txt-btn:hover { color: var(--gold-bright); }
.txt-btn.danger:hover { color: var(--danger); }

/* MENTOR CHAT */
.mentor-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.chat-bubble.model {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
}

.chat-bubble-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mentor-input-bar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 10px;
}

.mentor-input-bar .mentor-textarea {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 8px;
}

.mentor-input-bar .btn-primary {
  flex: 0 0 auto;
}

/* INSIGHTS & VAULT */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-tile {
  text-align: center;
}

.big-num {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.vault-meta-list {
  margin-top: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* ARAMAIC FOOTER */
.aramaic-footer {
  text-align: center;
  padding: 14px 12px 6px;
  font-size: 0.95rem;
  opacity: 0.76;
  color: var(--text-muted);
}

.aramaic-blessing {
  cursor: default;
  letter-spacing: 0.2px;
}

/* BOTTOM NAVIGATION DOCK */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nav-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.nav-btn span:first-child {
  font-size: 1.18rem;
}

.nav-btn.active {
  color: var(--gold-bright);
}

/* MODAL & TOAST */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast-bar {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  color: var(--text-main);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

/* PIN & RECOVERY CARDS */
.pin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pin-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.45em;
  text-align: center;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.pin-input:focus, .rec-input:focus {
  border-color: var(--gold);
}

.rec-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  padding: 12px;
  outline: none;
}

.pin-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.recovery-key-box {
  background: var(--bg-input);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  user-select: all;
}

.auth-card-wide {
  max-width: 500px;
}

.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.choice-option-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-ui);
}

.choice-option-card:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.choice-option-card:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.choice-option-card.recommended {
  border-color: rgba(242, 189, 86, 0.55);
  background: linear-gradient(155deg, rgba(242, 189, 86, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 8px 24px -10px rgba(242, 189, 86, 0.25);
}

.choice-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #e0911e);
  color: #141210;
}

.choice-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.choice-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.choice-desc.choice-warn-txt {
  color: #f6c478;
}

:root[data-theme="light"] .choice-desc.choice-warn-txt {
  color: #9a5204;
}

.choice-cta {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.choice-cta.muted-cta {
  color: var(--text-muted);
}

.pin-warning-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.81rem;
  line-height: 1.45;
  color: #fbd38d;
  text-align: left;
  margin-bottom: 14px;
}

:root[data-theme="light"] .pin-warning-box {
  background: rgba(217, 119, 6, 0.09);
  color: #92400e;
}

.vault-mode-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trust-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.trust-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-main);
}

.auth-legal-links, .footer-legal-mini {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-legal-links a, .footer-legal-mini a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-legal-links a:hover, .footer-legal-mini a:hover {
  color: var(--gold-bright);
}

@media (max-width: 480px) {
  .hide-xs { display: none; }
  .user-pill { max-width: 105px; }
  .auth-card { padding: 24px 16px 22px; }
}

@media (min-width: 960px) {
  .bottom-nav {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    height: 60px;
    padding-bottom: 0;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
  }
}
