/* ============================================================
   Silbertreff – Design System
   Classic, trustworthy theme for 55+ audience
   Light, accessible, professional
   ============================================================ */

/* ---- Variables ------------------------------------------- */
:root {
  --bg-base:        #f2f4f8;
  --bg-surface:     #ffffff;
  --bg-card:        #eef1f6;
  --bg-input:       #ffffff;
  --border:         #d2dbe9;
  --border-focus:   #325b95;

  --accent:         #325b95;
  --accent-hover:   #203a63;
  --accent-light:   rgba(50, 91, 149, 0.14);
  --accent-warm:    #b78b54;

  --text-primary:   #14213d;
  --text-secondary: #53627f;
  --text-muted:     #7b879d;

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-full:    9999px;

  --shadow-sm:  0 2px 6px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.15);

  --transition: 0.2s ease;
  --font:       'Montserrat', sans-serif;
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 5% 0%, rgba(183, 139, 84, 0.16), transparent 42%),
    radial-gradient(circle at 100% 10%, rgba(50, 91, 149, 0.12), transparent 40%),
    var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Layout ---------------------------------------------- */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page {
  display: none;
  flex: 1;
  padding: 0 0 80px;
}
.page.active { display: flex; flex-direction: column; }

/* ---- Navigation ------------------------------------------ */
.nav-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 8px;
  box-shadow: var(--shadow-sm);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
  min-width: 56px;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active, .nav-item:hover { color: var(--accent); }

/* ---- Top Header ------------------------------------------ */
.top-header {
  padding: 24px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.top-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.logo-text { color: var(--accent); }

/* ---- Auth Pages ------------------------------------------ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg-base);
}
.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}
.auth-logo h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-hover);
  letter-spacing: -0.5px;
}
.auth-logo p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 6px;
  font-weight: 500;
}

.auth-legal-links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-legal-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-legal-links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---- Form Elements --------------------------------------- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 13px 15px;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; }

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  border: none;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(180deg, #2f568f, #1f3e6c);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { filter: brightness(1.03); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-accent {
  background: linear-gradient(180deg, #bf945f, #a1763f);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-size: 15px;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ---- Alert / Error --------------------------------------- */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  margin-bottom: 18px;
  border-left: 4px solid;
}
.alert-error   { background: #fef2f2; border-color: #dc2626; color: #991b1b; }
.alert-success { background: #f0fdf4; border-color: #16a34a; color: #15803d; }

/* ---- Swipe Card ------------------------------------------ */
.swipe-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 20px;
  gap: 24px;
}

#swipe-card-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.swipe-card {
  position: relative;
  width: min(100%, 360px);
  min-width: 300px;
  min-height: 460px;
  max-width: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  user-select: none;
  border: 1px solid var(--border);
}
.swipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swipe-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 64px;
}
.swipe-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
}
.swipe-card-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.swipe-card-meta {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
}
.swipe-card-bio {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-detail-modal.hidden { display: none; }
.profile-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.profile-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.profile-detail-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 440px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-lg);
}
.profile-detail-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
}
.profile-detail-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 10px;
}
.profile-detail-photo-wrap.placeholder::before {
  content: '👤';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 52px;
}
.profile-detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-detail-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.profile-detail-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.profile-detail-bio {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.5;
}
.profile-detail-icebreaker {
  width: 100%;
}

/* Swipe overlay */
.swipe-overlay {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: 0;
  transition: opacity .12s;
  pointer-events: none;
}
.swipe-overlay.like  { left: 20px;  border: 3px solid #4ade80; color: #4ade80; }
.swipe-overlay.skip  { right: 20px; border: 3px solid #ef4444; color: #ef4444; }

/* Swipe buttons */
.swipe-actions {
  display: flex;
  gap: 28px;
  align-items: center;
}
.swipe-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.swipe-btn:active { transform: scale(.92); }
.swipe-btn-skip  { color: #ef4444; }
.swipe-btn-like  { background: var(--accent); color: #fff; width: 68px; height: 68px; font-size: 28px; border: none; }
.swipe-btn-skip:hover  { box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.swipe-btn-like:hover  { box-shadow: 0 0 0 3px var(--accent-light); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}
.empty-state .icon { font-size: 48px; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); font-weight: 600; }
.empty-state p  { font-size: 15px; }

/* ---- Match notification ---------------------------------- */
.match-toast {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.match-toast.show { opacity: 1; pointer-events: all; }
.match-toast-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.match-toast-icon { font-size: 56px; margin-bottom: 14px; }
.match-toast h2   { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.match-toast p    { color: var(--text-secondary); font-size: 16px; margin-bottom: 28px; }

/* ---- Matches List ---------------------------------------- */
.matches-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.match-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.match-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.match-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
  overflow: hidden;
  border: 1px solid var(--border);
}
.match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-info { flex: 1; min-width: 0; }
.match-name { font-weight: 600; font-size: 16px; color: var(--text-primary); }
.match-sub  { font-size: 14px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-time { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }

/* ---- Chat / Messages ------------------------------------- */

#page-chat {
  height: calc(100vh - 70px);
  overflow: hidden;
}

#page-chat.active {
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.chat-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  padding: 4px;
}
.chat-back:hover { color: var(--text-primary); }
.chat-title { font-weight: 600; font-size: 17px; color: var(--text-primary); }

.chat-messages {
  flex: 1;
  min-height: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f4f6fb;
}
.chat-bubble {
  max-width: 72%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-bubble.outbound {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.inbound {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.chat-bubble-time {
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
  bottom: auto;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #8aa2d1;
  border-radius: var(--radius-full);
  color: #1a2640;
  padding: 11px 16px;
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input::placeholder { color: #5f6f8f; opacity: 1; }
.chat-input:focus { border-color: #3a65a7; box-shadow: 0 0 0 2px rgba(58, 101, 167, 0.16); }
.chat-image-btn {
  min-width: 62px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #8aa2d1;
  background: #fff;
  color: #234271;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}
.chat-image-btn:hover { background: #eef3ff; }
.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #3564a8;
  border: none;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-send-btn:hover { background: #2a4f86; }

.chat-coin-hint {
  padding: 8px 18px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

/* ---- Profile Page ---------------------------------------- */
.profile-page {
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.profile-avatar-wrap {
  position: relative;
  width: 84px; height: 84px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-muted);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
}
.profile-name { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.profile-sub  { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }

.profile-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
}
.profile-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-add {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  background: var(--bg-input);
}
.photo-thumb-add:hover { border-color: var(--accent); color: var(--accent); }
.photo-primary-badge {
  position: absolute;
  bottom: 4px; left: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-full);
}

/* ---- Coins Page ------------------------------------------ */
.coins-page {
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.consent {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(50, 91, 149, 0.30);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(243,248,255,0.92));
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.consent input {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 6px;
  border: 1px solid rgba(50, 91, 149, 0.55);
  background: #fff;
  display: grid;
  place-items: center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.consent input:checked {
  background: linear-gradient(180deg, #2f568f, #1f3e6c);
  border-color: #1f3e6c;
}
.consent input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px;
}
.consent input:focus-visible {
  outline: 2px solid rgba(50, 91, 149, 0.65);
  outline-offset: 2px;
}
.consent span {
  display: block;
  color: #243656;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}
.consent a {
  color: #1f3e6c;
  font-weight: 800;
  text-decoration: none;
}
.consent a:hover { text-decoration: underline; }
.msg {
  margin-top: 10px;
  min-height: 18px;
  color: #8b2f2f;
  font-weight: 700;
}
.coins-balance {
  background: linear-gradient(135deg, #213f72 0%, #3d6bb0 55%, #5f8fd3 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 28px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(18, 48, 95, 0.35);
}
.coins-balance-amount {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
}
.coins-balance-label {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-top: 6px;
  font-weight: 500;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.package-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(125, 159, 210, 0.34);
  border-radius: var(--radius-md);
  padding: 18px 16px 16px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 286px;
}
.package-card:hover { border-color: #8ab0e7; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.package-coins { font-size: 40px; line-height: 1; font-weight: 800; color: #3e6eb3; margin-top: 2px; }
.package-name  { font-size: 20px; color: #2f4262; margin: 10px 0 8px; font-weight: 800; }
.package-price { font-size: 30px; line-height: 1.05; font-weight: 800; color: #13213a; }
.package-sub   { font-size: 13px; color: #4f79b6; margin-top: 8px; font-weight: 700; min-height: 18px; }
.package-cta {
  margin-top: auto;
  width: 100%;
  border: 1px solid rgba(122, 162, 223, 0.5);
  background: linear-gradient(180deg, #274e89 0%, #1f3f70 100%);
  color: #f7fbff;
  border-radius: 10px;
  min-height: 42px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.package-cta:hover { filter: brightness(1.08); }
.coin-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(88, 129, 191, 0.35);
  color: #3f5d8e;
  font-size: 11px;
  line-height: 1.35;
  background: rgba(99, 137, 197, 0.12);
  font-weight: 600;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Spinner --------------------------------------------- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Utility --------------------------------------------- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ---- Responsive ------------------------------------------ */
@media (min-width: 480px) {
  .swipe-card {
    width: min(100%, 400px);
    max-width: 400px;
    min-width: 340px;
    min-height: 500px;
  }
}
@media (min-width: 768px) {
  .nav-bar { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .page { max-width: 480px; margin: 0 auto; }
}
