*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --primary: #00d6c9;
  --primary-dark: #00b3a6;
  --primary-deep: #0f6b66;
  --primary-a2: #2886e2;
  --glow: rgba(0, 214, 201, 0.40);
  /* Surfaces */
  --bg: #f0eee9;          /* warm canvas */
  --surface: #f6f8fa;     /* cool dashboard */
  --card: #ffffff;
  --dark: #0c1014;        /* near-black for primary buttons + dark screens */
  /* Text */
  --text: #181c1f;
  --text-mid: #3a4248;
  --text-light: #6b7680;
  /* Borders */
  --border: #eef0f3;
  --border-strong: #e5e7eb;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hero: 0 16px 36px -16px var(--glow);
  --shadow-elev: 0 8px 24px -6px var(--glow);
}

body {
  font-family: 'Figtree', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 2rem; line-height: 1.1; }
h2 { font-size: 1.4rem; }
p { color: var(--text-light); line-height: 1.5; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  padding: 14px 20px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { height: 28px; display: block; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  padding: 0;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

/* Card (intro/error/etc on warm bg) */
.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  margin: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card.center {
  align-items: center;
  text-align: center;
  min-height: 200px;
  justify-content: center;
}

.text-light { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; }
.error-msg { color: #c0392b; font-size: 0.95rem; }

/* Pill / badge */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-a2) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
}
.badge.success { background: #00b37a; }

/* Buttons */
.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:active, .btn-secondary:active { transform: scale(0.97); }

.btn {
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow-elev);
}
.btn:hover { background: #1f2933; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--card); text-decoration: none; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn, .btn-row .btn-secondary { flex: 1; }

.btn-text,
.btn-text-danger {
  background: none;
  border: none;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  padding: 8px;
  align-self: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}
.btn-text { text-decoration-color: var(--border-strong); }
.btn-text:hover { color: var(--primary-dark); text-decoration-color: var(--primary-dark); }
.btn-text-danger { text-decoration-color: rgba(192, 57, 43, 0.4); }
.btn-text-danger:hover { color: #c0392b; }

.text-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  margin-top: 4px;
}

.feedback-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-a2) 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px -8px var(--glow);
  transition: transform 0.12s, box-shadow 0.2s;
  align-self: center;
  margin-top: 6px;
}
.feedback-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px var(--glow);
}
.feedback-cta:active { transform: scale(0.97); }

/* ─── Dashboard ───────────────────────────────────────────────── */

.dashboard { padding: 18px 20px 130px; }

.hero {
  position: relative;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  color: #fff;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60px circle at 85% 20%, rgba(255,255,255,0.2), transparent 70%),
    radial-gradient(40px circle at 95% 80%, rgba(255,255,255,0.15), transparent 70%),
    radial-gradient(50px circle at 15% 85%, rgba(255,255,255,0.12), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  position: relative;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
  margin-bottom: 10px;
}
.hero-stat {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.hero-num {
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero-unit {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.hero-sub {
  position: relative;
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 16px;
}
.hero-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.hero-bar-fill { height: 100%; background: #fff; border-radius: 999px; transition: width 0.4s ease; }
.hero-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Reminder opt-in / opt-out controls */
.reminder-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 1.4;
  cursor: pointer;
}
.reminder-opt input {
  margin-top: 2px;
  accent-color: var(--primary-dark);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-text-mute {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 8px;
  margin-top: 6px;
  text-decoration: underline;
  text-decoration-color: rgba(107, 118, 128, 0.4);
  text-underline-offset: 3px;
}
.btn-text-mute:hover { color: var(--text); }

/* Vet review banner on the dashboard */
.vet-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 179, 166, 0.10);
  border: 1px solid rgba(0, 179, 166, 0.25);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.vet-banner svg { flex-shrink: 0; }

/* Tip text on the dark confirm screen */
.dark-tip {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 0 8px;
}

/* Compare CTA card */
.compare-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  margin-bottom: 22px;
  font-family: inherit;
  text-align: left;
  color: var(--text);
}
.compare-cta-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}
.compare-cta-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-cta-thumb .after-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}
.compare-cta-thumb .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background: #fff;
}
.compare-cta-text { flex: 1; }
.compare-cta-text strong { display: block; font-weight: 500; font-size: 0.95rem; color: var(--text); }
.compare-cta-text span { font-size: 0.78rem; color: var(--text-light); }
.compare-cta svg { color: #9ca3af; }

/* Timeline header */
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.timeline-head .label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.share-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.photo-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}
.photo-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.photo-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, #f0f3f7 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  z-index: 0;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.photo-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2;
}
.photo-label.accent {
  background: var(--primary);
  color: var(--dark);
}
.photo-date {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.62rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.photo-watermark {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.42rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0.08em;
  z-index: 2;
}
.photo-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.photo-item:hover .photo-delete,
.photo-item:focus-within .photo-delete { opacity: 1; }
@media (hover: none) { .photo-delete { opacity: 0.85; } }

/* Sticky footer add button */
.dashboard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px 28px;
  background: linear-gradient(to top, var(--surface) 70%, transparent);
  z-index: 50;
  pointer-events: none;
}
.dashboard-footer .btn { pointer-events: auto; max-width: 460px; margin: 0 auto; }

/* ─── Camera ─────────────────────────────────────────────────── */
.camera-wrap {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}
#camera-video {
  flex: 1;
  width: 100%;
  object-fit: cover;
}
.camera-bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.camera-bracket.tl { top: 90px; left: 24px; border-top: 2px solid rgba(255,255,255,0.85); border-left: 2px solid rgba(255,255,255,0.85); }
.camera-bracket.tr { top: 90px; right: 24px; border-top: 2px solid rgba(255,255,255,0.85); border-right: 2px solid rgba(255,255,255,0.85); }
.camera-bracket.bl { bottom: 220px; left: 24px; border-bottom: 2px solid rgba(255,255,255,0.85); border-left: 2px solid rgba(255,255,255,0.85); }
.camera-bracket.br { bottom: 220px; right: 24px; border-bottom: 2px solid rgba(255,255,255,0.85); border-right: 2px solid rgba(255,255,255,0.85); }

.camera-hint {
  position: absolute;
  top: 90px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.3;
  max-width: 200px;
  z-index: 5;
}
.camera-hint strong { display: block; font-weight: 600; margin-bottom: 2px; }
.camera-hint span { opacity: 0.8; font-size: 0.72rem; }

.camera-ghost {
  position: absolute;
  top: 90px;
  right: 16px;
  width: 80px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 5;
}
.camera-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-ghost::after {
  content: 'BEFORE';
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 0.5rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.camera-ghost-veil {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.camera-top {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 6;
}
.cam-btn {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.camera-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px max(36px, env(safe-area-inset-bottom, 36px));
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  z-index: 6;
}
.camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.camera-cancel {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-capture {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.btn-capture:active { transform: scale(0.92); }
.capture-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

/* ─── Confirm screen (dark) ──────────────────────────────────── */
.dark-screen {
  position: fixed;
  inset: 0;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.dark-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top, 16px)) 20px 8px;
}
.dark-topbar h2 { font-size: 0.95rem; font-weight: 500; color: #fff; }
.dark-content {
  flex: 1;
  padding: 12px 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.confirm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.confirm-photo .day-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 600;
}
.confirm-photo .day-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--dark);
}
.dark-actions {
  padding: 20px 20px max(40px, env(safe-area-inset-bottom, 40px));
}
.dark-actions .btn-row { margin-bottom: 14px; }
.dark-actions .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.dark-actions .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.dark-disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.5;
}

/* ─── Compare slider ─────────────────────────────────────────── */
.compare-screen { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.compare-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--glow);
  user-select: none;
}
.compare-wrap > .compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-before { clip-path: inset(0 var(--compare-clip, 50%) 0 0); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  pointer-events: none;
  left: var(--compare-x, 50%);
  transform: translateX(-1px);
  z-index: 2;
}
.compare-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14' fill='none' stroke='%230c1014' stroke-width='2' stroke-linecap='round'><path d='M5 4L1 7l4 3M13 4l4 3-4 3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.compare-pill-before, .compare-pill-after {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2;
}
.compare-pill-before { left: 14px; background: rgba(0,0,0,0.6); color: #fff; }
.compare-pill-after { right: 14px; background: var(--primary); color: var(--dark); }
.compare-slider {
  width: 100%;
  accent-color: var(--primary);
}

/* ─── How-to / email lookup ─────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.steps li {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 64px;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  width: 2px;
  height: calc(100% - 24px);
  background: var(--border-strong);
  z-index: 0;
}
.step-icon {
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 16px;
}
.step-icon img { width: 40px; height: 40px; display: block; }
.step-text { font-size: 0.95rem; color: var(--text); line-height: 1.4; }
.step-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.step-text span { color: var(--text-light); font-size: 0.85rem; }

/* Email inputs */
.email-save-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.email-row { display: flex; gap: 8px; }
.email-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}
.email-input:focus { border-color: var(--primary); }
.email-btn {
  width: auto;
  height: 44px;
  padding: 0 18px;
  flex-shrink: 0;
  font-size: 0.85rem;
  border-radius: 12px;
}
.email-confirm {
  color: var(--primary-dark);
  font-size: 0.88rem;
  text-align: center;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.45;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(12, 16, 20, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 200;
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Footer */
.site-footer {
  color: var(--text-light);
  text-align: center;
  padding: 24px 16px 88px;
  font-size: 0.82rem;
  background: var(--surface);
}
.site-footer a { color: var(--primary-dark); }

@media (min-width: 480px) {
  .card { padding: 28px 28px; }
  h1 { font-size: 2.2rem; }
}
