/* GoGlowUp brand: Trust #0F2233 (navy), Glow #C79A67 (gold),
   Balance #6B7C93 (slate), Clean #F6F3EF (cream). */
:root {
  --color-primary: #0f2233;
  --color-on-primary: #f6f3ef;
  --color-secondary: #6b7c93;
  --color-accent: #b8863f;
  --color-on-accent: #ffffff;
  --color-background: #f6f3ef;
  --color-foreground: #0f2233;
  --color-card: #ffffff;
  --color-card-foreground: #0f2233;
  --color-muted: #ece5d8;
  --color-muted-foreground: #5b6b7d;
  --color-border: #e1d8c6;
  --color-destructive: #dc2626;
  --color-ring: #b8863f;
  --radius: 18px;
  --font-display: "Space Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  --bottom-nav-height: calc(60px + env(safe-area-inset-bottom));
}

/* Dark but not gloomy: rich navy (the brand's own "Trust" color) instead of
   near-black, gold accent for warmth/glow. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #c79a67;
    --color-on-primary: #0f2233;
    --color-secondary: #8fa1b8;
    --color-accent: #c79a67;
    --color-on-accent: #0f2233;
    --color-background: #0f2233;
    --color-foreground: #f6f3ef;
    --color-card: #17293c;
    --color-card-foreground: #f6f3ef;
    --color-muted: #1d3348;
    --color-muted-foreground: #a9b8c9;
    --color-border: #2c4863;
    --color-destructive: #f87171;
    --color-ring: #c79a67;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--color-background);
  color: var(--color-foreground);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 1.6em; height: 1.6em; }
.icon-fill { fill: currentColor; stroke: none; }
.icon-solo { display: block; margin: 0 auto 10px; width: 2.2rem; height: 2.2rem; color: var(--color-muted-foreground); }
h1 .icon, .headline .icon, .upload-title .icon { color: var(--color-accent); }
.btn .icon, h3 .icon, .best-fix-label .icon, .link-back .icon { margin-right: 4px; }

a, button, input, .consent-row, [tabindex] {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.topbar {
  text-align: center;
  padding: 32px 16px 12px;
}
.topbar h1 { margin: 0 0 4px; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: center; gap: 8px; }
.topbar p { margin: 0; color: var(--color-muted-foreground); }
.brand-mark { width: 1.7em; height: 1.7em; object-fit: contain; }

.headline {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-align: center;
}
.subcopy {
  color: var(--color-muted-foreground);
  text-align: center;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.headline-short {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}

.destination-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.destination-btn {
  min-height: 52px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 2px solid var(--color-border);
  background: var(--color-muted);
  color: var(--color-foreground);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.destination-btn:hover { border-color: var(--color-primary); box-shadow: 3px 3px 0 0 var(--color-border); }
.destination-btn.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.landing-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.landing-divider::before,
.landing-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--color-border);
}

.mode-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  min-height: 44px;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-muted);
  color: var(--color-foreground);
  font-family: var(--font-display);
  cursor: pointer;
}
.mode-card:hover { border-color: var(--color-primary); box-shadow: 3px 3px 0 0 var(--color-border); }
.mode-emoji { font-size: 1.8rem; flex-shrink: 0; }
.mode-title { display: block; font-weight: 700; font-size: 1.05rem; }
.mode-sub { display: block; color: var(--color-muted-foreground); font-size: 0.85rem; margin-top: 2px; }
.mode-card > span:last-child { display: flex; flex-direction: column; }

.link-back {
  background: none;
  border: none;
  color: var(--color-muted-foreground);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 8px;
  min-height: 44px;
}
.link-back:hover { color: var(--color-primary); }
.upload-title { font-size: 1.3rem; margin: 0 0 16px; }

.event-type-chosen {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--color-muted);
  color: var(--color-foreground);
  font-size: 0.9rem;
  font-weight: 600;
}

.floating-bar {
  position: sticky;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  margin: 20px -20px -20px;
  padding: 14px 20px;
  background: linear-gradient(to top, var(--color-card) 65%, transparent);
  border-radius: 0 0 var(--radius) var(--radius);
}
.floating-bar-inner { max-width: 560px; margin: 0 auto; }

.mode-fields { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}
.skin-swatch-row {
  display: flex;
  gap: 10px;
}
.skin-swatch {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 0 transparent;
}
.skin-swatch:hover { border-color: var(--color-primary); }
.skin-swatch.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-card), 0 0 0 5px var(--color-accent);
}

.preference-subheading { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.link-skip {
  display: block;
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin: 0 0 18px;
  min-height: 44px;
}
.link-skip:hover { text-decoration: underline; }
.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted-foreground);
}
.field-select {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-foreground);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.gender-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.gender-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.gender-btn.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.preference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.preference-card {
  border: 2px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-muted);
  text-align: left;
  font-family: var(--font-display);
  color: var(--color-foreground);
  padding: 0;
}
.preference-card:hover { border-color: var(--color-primary); }
.preference-card.selected { border-color: var(--color-accent); box-shadow: 3px 3px 0 0 var(--color-accent); }
.preference-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--color-muted), var(--color-border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}
.preference-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preference-name { display: block; padding: 8px 10px; font-weight: 700; font-size: 0.82rem; }

.intent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.intent-btn {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-muted);
  color: var(--color-foreground);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.intent-btn:hover { border-color: var(--color-primary); }
.intent-btn.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: tab-fade-in 180ms ease;
}
@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--color-card);
  color: var(--color-card-foreground);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 4px 4px 0 0 var(--color-border);
}

.dropzone {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-muted);
}
.dropzone canvas { max-width: 100%; max-height: 420px; cursor: crosshair; touch-action: none; }
#dropzone-empty { text-align: center; color: var(--color-muted-foreground); padding: 24px; }
#dropzone-empty p { margin: 4px 0; }
.hint { font-size: 0.85rem; color: var(--color-muted-foreground); }

.blur-toolbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(15, 34, 51, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.blur-toolbar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f6f3ef;
  font-size: 0.78rem;
  font-weight: 600;
}
.blur-toolbar-buttons { display: flex; gap: 6px; }
.blur-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(246, 243, 239, 0.35);
  background: rgba(246, 243, 239, 0.12);
  color: #f6f3ef;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  justify-content: center;
}
.blur-toolbar-btn:hover { background: rgba(246, 243, 239, 0.22); }
.blur-toolbar-btn-wide { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; }

.blur-controls { margin-top: 14px; }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 120px;
  min-height: 44px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 3px 3px 0 0 var(--color-foreground);
}
.btn-primary:hover { box-shadow: 4px 4px 0 0 var(--color-foreground); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn-secondary {
  background: transparent;
  color: var(--color-foreground);
  border: 2px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-block { width: 100%; margin-top: 12px; }

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--color-muted-foreground);
  cursor: pointer;
}
.consent-row input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.share-block { margin-top: 20px; }
#share-canvas { display: none; }

.lead-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--color-border);
}
.lead-hint { font-size: 0.85rem; color: var(--color-muted-foreground); margin: 0 0 10px; }
.lead-form { display: flex; gap: 8px; }
.lead-form input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-foreground);
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.lead-form .btn { flex: 0 0 auto; min-width: unset; padding: 10px 20px; }

.status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  text-align: center;
}
.status.error { color: var(--color-destructive); font-weight: 600; }

.page-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.page-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--color-border); }
.page-dot.active { background: var(--color-accent); width: 20px; }

#goto-page-2 { margin-top: 24px; }
#goto-page-2 .icon { margin-left: 4px; margin-right: 0; }

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  background: var(--color-muted);
}
.verdict-emoji { font-size: 1.3rem; }
.verdict-badge.verdict-green { border-color: var(--color-primary); color: var(--color-primary); }
.verdict-badge.verdict-yellow { border-color: #eab308; color: #ca8a04; }
@media (prefers-color-scheme: dark) {
  .verdict-badge.verdict-yellow { color: #fde047; }
}
.verdict-badge.verdict-red { border-color: var(--color-destructive); color: var(--color-destructive); }

.score-row { margin-top: 12px; }
.score { font-size: 2.6rem; font-weight: 700; color: var(--color-primary); }
.score-max { color: var(--color-muted-foreground); font-weight: 600; }

.friend-comment { color: var(--color-foreground); margin: 16px 0; font-size: 1.05rem; line-height: 1.5; }

.event-verdict-block {
  background: var(--color-muted);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.event-verdict-block p { margin: 0; }

.best-fix-block {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
}
.best-fix-label { margin: 0 0 4px; font-weight: 700; font-size: 0.85rem; opacity: 0.9; }
.best-fix-block p:last-child { margin: 0; font-weight: 600; }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.cols h3 { font-size: 0.95rem; margin-bottom: 8px; }
.cols ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.cols li { margin-bottom: 6px; }

.alternatives { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.alt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 14px;
}
.alt-text { min-width: 0; }
.alt-item { font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.alt-reason { color: var(--color-muted-foreground); font-size: 0.8rem; line-height: 1.3; margin-top: 2px; }
.alt-links { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.alt-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  color: var(--color-foreground);
}
.alt-links a:hover { border-color: var(--color-accent); color: var(--color-accent); }

#aesthetic-wrap {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--color-muted-foreground);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-muted);
}
#aesthetic-wrap summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  color: var(--color-foreground);
}
#aesthetic-wrap summary::-webkit-details-marker { display: none; }
#aesthetic-wrap .chevron { color: var(--color-muted-foreground); transition: transform 150ms ease; }
#aesthetic-wrap[open] .chevron { transform: rotate(180deg); }
#aesthetic-wrap #aesthetic-text { margin: 0; padding: 0 16px 14px; }

#retry-btn { margin-top: 20px; width: 100%; }

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 340px);
  height: auto;
  pointer-events: none;
}
.camera-hint {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  padding: 0 20px;
}
.camera-controls {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.camera-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.camera-shutter {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}
.camera-shutter:active { background: rgba(255, 255, 255, 0.5); }

/* ============ Bottom Nav ============ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  height: var(--bottom-nav-height);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--color-card);
  border-top: 2px solid var(--color-border);
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  border: none;
  background: none;
  color: var(--color-muted-foreground);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-btn .icon { width: 1.35em; height: 1.35em; }
.nav-btn.active { color: var(--color-accent); }
.nav-btn-ai { position: relative; }
.nav-ai-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: -22px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--color-accent), var(--color-primary));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  color: #fff;
}
.nav-ai-badge .icon { width: 1.15em; height: 1.15em; }
.nav-btn-ai span:last-child { margin-top: 1px; }

/* ============ Home tab ============ */
.install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  color: var(--color-card-foreground);
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: 4px 4px 0 0 var(--color-border);
}
.install-banner:hover { border-color: var(--color-accent); }
.install-banner-icon { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.install-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.install-banner-text strong { font-size: 0.95rem; }
.install-banner-text span:last-child { font-size: 0.78rem; color: var(--color-muted-foreground); font-weight: 400; }
.install-banner .icon { color: var(--color-accent); flex-shrink: 0; }

.home-greeting { margin: 0 0 4px; color: var(--color-accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.home-hero .headline-short { text-align: left; margin-bottom: 16px; }
.section-title { margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title-row .section-title { margin: 0; }
.link-more {
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  min-height: 44px;
}
.home-recent-summary { display: flex; align-items: center; gap: 12px; }
.home-recent-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--color-muted);
  color: var(--color-accent);
}
.home-recent-text { flex: 1; }
.home-recent-text strong { display: block; font-size: 0.95rem; }
.home-recent-text span { display: block; color: var(--color-muted-foreground); font-size: 0.8rem; margin-top: 2px; }

.discover-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.discover-strip::-webkit-scrollbar { display: none; }
.discover-strip-card {
  flex: 0 0 auto;
  width: 108px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-muted);
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--color-foreground);
  padding: 0;
  text-align: left;
}
.discover-strip-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.discover-strip-card span { display: block; padding: 6px 8px; font-size: 0.72rem; font-weight: 700; }

/* ============ Saved tab ============ */
.saved-list { display: flex; flex-direction: column; gap: 10px; }
.saved-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-muted);
  color: var(--color-foreground);
  font-family: var(--font-display);
  cursor: pointer;
}
.saved-card:hover { border-color: var(--color-primary); }
.saved-card-score {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--color-card);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.saved-card-body { flex: 1; min-width: 0; }
.saved-card-title { font-weight: 700; font-size: 0.92rem; }
.saved-card-sub { color: var(--color-muted-foreground); font-size: 0.78rem; margin-top: 2px; }

.empty-state { text-align: center; color: var(--color-muted-foreground); padding: 32px 16px; }
.empty-state .icon-solo { color: var(--color-muted-foreground); }
.empty-state p { margin: 4px 0 0; font-size: 0.88rem; }

/* ============ Profile tab ============ */
.profile-summary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.profile-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--color-muted);
  font-size: 0.88rem;
}
.profile-summary-row span:first-child { color: var(--color-muted-foreground); }
.profile-summary-row span:last-child { font-weight: 700; }

/* ============ Bottom Sheet ============ */
.bottom-sheet { position: fixed; inset: 0; z-index: 60; }
.bottom-sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 34, 51, 0.55); }
.bottom-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--color-card);
  color: var(--color-card-foreground);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up 220ms ease;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.bottom-sheet-handle { width: 36px; height: 4px; border-radius: 999px; background: var(--color-border); margin: 6px auto 14px; }

/* ============ Skeleton loading ============ */
.skeleton { position: relative; overflow: hidden; background: var(--color-muted); border-radius: 10px; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: skeleton-shimmer 1.3s infinite;
}
@keyframes skeleton-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
  .tab-panel { animation: none; }
  .bottom-sheet-panel { animation: none; }
}
