/* Subo — styles.css
   Ported from mockup. BINI palette on dark. Inter font. */

:root {
  --pink: #FF2D78;
  --blue: #00BFFF;
  --purple: #8B5CF6;
  --green: #AAFF00;
  --coral: #FF6B35;
  --bg: #1A1A2E;
  --bg-card: #252542;
  --bg-card-hover: #2E2E50;
  --text: #F0F0F0;
  --text-dim: #8888AA;
  --text-muted: #555577;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Screen management */
.screen { display: none; min-height: 100vh; padding-bottom: 80px; }
.screen.active { display: block; }
.screen-no-nav { padding-bottom: 0; }

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 24px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 8px 8px;
  border-radius: 16px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active .nav-icon { color: var(--pink); }
.nav-item .nav-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item.active .nav-label { color: var(--pink); }
.nav-camera .nav-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.nav-icon { font-size: 24px; color: var(--text-dim); transition: color 0.2s; }

/* Image-based nav icons */
.nav-icon-img { width: 32px; height: 32px; display: none; }
.nav-icon-inactive { display: block; }
.nav-icon-active { display: none; }
.nav-item.active .nav-icon-inactive { display: none; }
.nav-item.active .nav-icon-active { display: block; }

/* Camera button (center) — icon has gradient circle baked in */
.nav-camera {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  /* Match nav-item padding so label aligns with siblings */
  padding: 8px 8px;
  /* Reset any inherited glow/shadow */
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}
.nav-camera:active { transform: scale(0.92); }
.nav-camera .nav-icon { line-height: 0; }
.nav-camera .nav-icon img { width: 36px; height: 36px; display: block; }
.nav-camera .nav-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* SVG nav icons */
.nav-svg { width: 24px; height: 24px; display: block; }
.nav-svg .icon-main { fill: #8888AA; stroke: #8888AA; transition: fill 0.2s, stroke 0.2s; }
.nav-svg .icon-stroke { fill: none; stroke: #8888AA; transition: stroke 0.2s; }
.nav-item.active .nav-svg .icon-main { fill: #FF2D78; stroke: #FF2D78; }
.nav-item.active .nav-svg .icon-stroke { stroke: #FF2D78; }

/* ========== HEADER ========== */
.header {
  padding: 52px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 28px;
  display: block;
}
.logo-text {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========== FEED CARDS ========== */
.feed-card {
  margin: 12px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s;
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.feed-card-name { font-size: 14px; font-weight: 800; }
.feed-card-meta { font-size: 11px; color: var(--text-dim); font-weight: 600; }

.feed-card-img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #111;
  cursor: pointer;
}

/* Photo carousel (multi-photo meals) */
.photo-carousel { position: relative; }
.photo-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.photo-carousel-track::-webkit-scrollbar { display: none; }
.photo-carousel-track img {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  max-height: 500px;
  object-fit: contain;
  background: #111;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--pink); }
.photo-count-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.feed-card-caption { padding: 10px 16px; cursor: pointer; }
.caption-text { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--text); }

/* Reacted avatars */
.feed-card-reacted {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 8px;
}

.reacted-avatars { display: flex; }

.mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
}
.mini-avatar:first-child { margin-left: 0; }

.reacted-text { font-size: 12px; color: var(--text-dim); font-weight: 600; }

.feed-card-reactions { padding: 0 16px 6px; display: flex; gap: 12px; align-items: center; }

/* Spoon reaction button (STARTUP-193) */
.spoon-btn {
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spoon-btn:active { transform: scale(0.92); }
.spoon-btn.spooned { background: rgba(255, 45, 120, 0.15); }
.spoon-count { font-size: 13px; font-weight: 800; color: var(--text); }

/* Comments */
.feed-card-comments { padding: 0 16px 14px; }
.comment { margin-bottom: 6px; }
.comment-author { font-size: 13px; font-weight: 800; color: var(--text); margin-right: 6px; }
.comment-text { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.comment-input-row { padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); }
.comment-placeholder { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ========== STREAK BANNER ========== */
.streak-banner {
  margin: 12px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(255, 45, 120, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-fire { font-size: 28px; }
.streak-count { font-size: 24px; font-weight: 900; color: var(--coral); }
.streak-label { font-size: 12px; color: var(--text-dim); font-weight: 700; }

/* ========== CAMERA ========== */
.camera-screen {
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.camera-viewfinder {
  width: 100%;
  aspect-ratio: 3/4;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.camera-viewfinder img { width: 100%; height: 100%; object-fit: cover; }

.camera-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  text-align: center;
}

.camera-hint { font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 700; margin-bottom: 20px; }

.shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid white;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.shutter-btn::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: white;
  transition: transform 0.1s;
}
.shutter-btn:active::after { transform: scale(0.9); }

.camera-close {
  position: absolute;
  top: 52px;
  left: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

/* ========== AI RESULT ========== */
.result-screen { background: var(--bg); min-height: 100vh; }
.result-photo { width: 100%; max-height: 500px; object-fit: contain; background: #111; }
.result-content { padding: 20px; }

.result-dish-name {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-cuisine { font-size: 13px; color: var(--text-dim); font-weight: 700; margin-bottom: 16px; }

.result-ai-insight {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border-left: 3px solid var(--purple);
}
.result-ai-insight p { font-size: 15px; font-weight: 700; line-height: 1.5; }

.result-meta { display: flex; gap: 16px; margin-bottom: 20px; }
.result-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.result-meta-icon { font-size: 16px; }

.result-actions { display: flex; gap: 10px; }

.result-btn {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.result-btn:active { transform: scale(0.97); }
.result-btn-primary { background: linear-gradient(135deg, var(--pink), var(--purple)); color: white; }
.result-btn-secondary { background: var(--bg-card); color: var(--text); }

.result-unlock {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(170, 255, 0, 0.1), rgba(0, 191, 255, 0.1));
  border: 1px solid rgba(170, 255, 0, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.unlock-icon { font-size: 24px; }
.unlock-text { font-size: 13px; font-weight: 700; color: var(--green); }
.unlock-sub { font-size: 11px; color: var(--text-dim); font-weight: 600; }

/* ========== PROFILE ========== */
.profile-header { padding: 52px 20px 20px; text-align: center; }
.profile-name { font-size: 22px; font-weight: 900; margin-bottom: 2px; }
.profile-handle { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 16px; }

.profile-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 22px; font-weight: 900; }
.profile-stat-label { font-size: 10px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Identity card */
.identity-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.identity-title { font-size: 12px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.identity-percent {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.identity-region { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.identity-sub { font-size: 12px; color: var(--text-dim); font-weight: 600; }

.identity-share-btn {
  margin-top: 12px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ========== DISH EXPLORER ========== */
.dish-explorer {
  margin: 0 16px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
}
.dish-explorer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dish-explorer-title { font-size: 14px; font-weight: 800; }
.dish-explorer-count { font-size: 14px; font-weight: 900; color: var(--green); }

.dish-progress { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
.dish-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 4px; transition: width 0.5s ease; }

.dish-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dish-item { border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 2px 6px; gap: 2px; }
.dish-item .dish-emoji { font-size: 20px; }
.dish-item .dish-label { font-size: 9px; font-weight: 700; color: var(--text-dim); text-align: center; line-height: 1.2; }
.dish-item.unlocked { background: rgba(170, 255, 0, 0.1); border: 1px solid rgba(170, 255, 0, 0.2); }
.dish-item.locked { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.dish-item.locked .dish-label { color: var(--text-muted); }

/* Quests */
.quests-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.quest-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.quest-item:last-child { border-bottom: none; }
.quest-name { font-size: 14px; font-weight: 700; }
.quest-desc { font-size: 11px; color: var(--text-dim); font-weight: 500; }
.quest-progress { font-size: 14px; font-weight: 800; color: var(--green); }
.quest-item.locked .quest-name { color: var(--text-muted); }
.quest-item.locked .quest-desc { color: var(--text-muted); }
.quest-item.locked .quest-progress { color: var(--text-muted); }

/* Cuisine breakdown */
.cuisine-section { margin: 0 16px 16px; background: var(--bg-card); border-radius: 12px; padding: 16px; }
.cuisine-title { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.cuisine-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cuisine-label { font-size: 12px; font-weight: 700; width: 80px; flex-shrink: 0; }
.cuisine-bar { flex: 1; height: 20px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; }
.cuisine-bar-fill { height: 100%; border-radius: 10px; transition: width 0.5s ease; }
.cuisine-pct { font-size: 12px; font-weight: 800; width: 36px; text-align: right; flex-shrink: 0; }

/* ========== DIARY ========== */
.diary-day { padding: 0 16px; margin-bottom: 20px; }
.diary-date { font-size: 13px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 0 8px; }

.diary-entry { display: flex; gap: 12px; padding: 10px 0; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.04); }
.diary-entry.clickable { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 12px; padding: 10px 8px; margin: 0 -8px; transition: background 0.15s; }
.diary-entry.clickable:active { background: rgba(255,255,255,0.04); }

.diary-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.diary-info { flex: 1; }
.diary-dish { font-size: 14px; font-weight: 800; }
.diary-detail { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.diary-time { font-size: 11px; color: var(--text-muted); font-weight: 700; }

/* ========== SHARE ========== */
.share-screen {
  background: var(--bg);
  min-height: 100vh;
  padding: 52px 20px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.share-card {
  width: 300px;
  background: linear-gradient(145deg, #2A1B3D, #1A1A2E, #162447);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.share-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,45,120,0.1), transparent, rgba(139,92,246,0.1), transparent);
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { transform: rotate(360deg); } }

.share-card-content { position: relative; z-index: 1; }
.share-card .logo { font-size: 18px; margin-bottom: 20px; }
.share-card-stat {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}
.share-card-label { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.share-card-sub { font-size: 12px; color: var(--text-dim); font-weight: 600; margin-bottom: 20px; }
.share-card-dishes { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.share-card-dish-tag { background: rgba(255,255,255,0.08); padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--text-dim); }
.share-card-tagline { font-size: 11px; color: var(--text-muted); font-weight: 700; font-style: italic; }

.share-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; }

.share-btn {
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.share-btn-ig { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); color: white; }
.share-btn-fb { background: #1877F2; color: white; }
.share-btn-invite { background: var(--bg-card); color: var(--green); }

.share-close {
  position: absolute;
  top: 52px;
  right: 20px;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

/* On this day memory */
.memory-card {
  margin: 12px 16px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.memory-card:active { background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(139, 92, 246, 0.15)); }
.memory-label { padding: 12px 16px 0; font-size: 11px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.memory-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-top: 10px; }
.memory-text { padding: 14px 16px; font-size: 14px; font-weight: 700; }
.memory-date { padding: 0 16px 14px; font-size: 11px; color: var(--text-dim); font-weight: 600; }

/* ========== SHARE HUB ========== */
.share-hub-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.share-hub-item:active { background: var(--bg-card-hover); }
.share-hub-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.share-hub-icon { width: 56px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.share-hub-title { font-size: 14px; font-weight: 700; }
.share-hub-sub { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.share-hub-arrow { color: var(--text-muted); margin-left: auto; font-size: 18px; }

/* Meal share card */
.meal-share-card {
  width: 300px;
  background: linear-gradient(145deg, #2A1B3D, #1A1A2E, #162447);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
}
.meal-share-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,45,120,0.1), transparent, rgba(139,92,246,0.1), transparent);
  animation: shimmer 8s linear infinite;
}
.meal-share-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; position: relative; z-index: 1; }
.meal-share-info { padding: 16px 20px 20px; text-align: center; position: relative; z-index: 1; }
.meal-share-dish {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.meal-share-cuisine { font-size: 12px; color: var(--text-dim); font-weight: 700; margin-bottom: 8px; }
.meal-share-meta { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.meal-share-logo { font-size: 11px; font-weight: 900; color: var(--text-muted); margin-top: 8px; font-style: italic; }

/* ========== MAP ========== */
.map-container {
  margin: 0 16px 16px;
  background: #0D1B2A;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 350px;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-continent { position: absolute; border-radius: 30%; background: #2a5a6a; opacity: 0.5; }
.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 50px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 50px);
}
.map-equator { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(0, 191, 255, 0.08); }
.map-meridian { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0, 191, 255, 0.08); }
.map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 2;
}
.map-dot:hover { transform: scale(1.4); }
.map-dot-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  color: rgba(220, 220, 240, 0.85);
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6);
}

.map-location-list { margin: 0 16px 16px; background: var(--bg-card); border-radius: 12px; padding: 16px; }
.map-location-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.map-location-row:last-child { border-bottom: none; }
.map-loc-name { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.map-loc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-loc-count { font-size: 13px; font-weight: 800; color: var(--text-dim); }

/* ========== SPLASH / AUTH ========== */
.splash-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: linear-gradient(180deg, #1A1A2E 0%, #16213E 50%, #1A1A2E 100%);
}
.splash-logo {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  margin-bottom: 8px;
}
.splash-tagline { font-size: 16px; color: var(--text-dim); font-weight: 700; letter-spacing: 2px; text-transform: lowercase; margin-bottom: 48px; }
.splash-emoji { font-size: 80px; margin-bottom: 48px; animation: pulse 2s ease-in-out infinite; }

.splash-btn {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
  box-shadow: 0 4px 20px rgba(255, 45, 120, 0.4);
  margin-bottom: 20px;
}
.splash-btn:active { transform: scale(0.97); }

.splash-login-link { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.splash-login-link span { color: var(--blue); font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.auth-screen { min-height: 100vh; padding: 0 32px; display: flex; flex-direction: column; background: var(--bg); }
.auth-back { padding: 52px 0 24px; font-size: 28px; color: var(--text-dim); cursor: pointer; -webkit-tap-highlight-color: transparent; align-self: flex-start; }
.auth-title { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-dim); font-weight: 600; margin-bottom: 32px; }

.auth-input {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.auth-input:focus { border-color: var(--purple); }
.auth-input::placeholder { color: var(--text-muted); font-weight: 600; }

.auth-btn {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
  margin-top: 8px;
}
.auth-btn:active { transform: scale(0.97); }
.auth-skip { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Language preference */
.lang-pref { margin: 20px 0; }
.lang-label { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.lang-options { display: flex; gap: 8px; }
.lang-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-dim);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn.active { border-color: var(--purple); color: var(--purple); background: rgba(139,92,246,0.1); }

/* ========== MEAL DETAIL ========== */
.detail-screen { background: var(--bg); min-height: 100vh; }
.detail-photo { width: 100%; max-height: 500px; object-fit: contain; background: #111; }
.detail-content { padding: 20px; }
.detail-back {
  position: absolute;
  top: 52px;
  left: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.detail-reactions { padding: 0; display: flex; gap: 12px; margin-bottom: 12px; }
.detail-reacted-section { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-comments-section { margin-bottom: 16px; }
.detail-comment { margin-bottom: 8px; }
.detail-comment-input { padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ========== SHARE PREVIEWS ========== */
.preview-screen {
  min-height: 100vh;
  background: var(--bg);
  padding: 52px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-title { font-size: 13px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.preview-done-btn {
  margin-top: 24px;
  padding: 14px 40px;
  border-radius: 10px;
  border: none;
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* IG story frame */
.ig-story-frame {
  width: 280px;
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.ig-story-top { padding: 16px 14px 8px; display: flex; align-items: center; gap: 8px; z-index: 1; }
.ig-story-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: white; }
.ig-story-username { font-size: 12px; font-weight: 800; color: white; }
.ig-story-time { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; }
.ig-story-card-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ig-story-card-area .share-card { width: 240px; transform: scale(0.85); }
.ig-story-bottom { padding: 12px 14px 20px; text-align: center; z-index: 1; }
.ig-story-swipe { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ig-story-swipe-arrow { font-size: 16px; animation: pulse 1.5s ease-in-out infinite; }

/* FB post frame */
.fb-post-frame { width: 340px; background: #242526; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.fb-post-header { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.fb-post-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: white; }
.fb-post-name { font-size: 14px; font-weight: 800; color: #E4E6EB; }
.fb-post-time { font-size: 11px; color: #B0B3B8; font-weight: 600; }
.fb-post-caption { padding: 0 16px 12px; font-size: 14px; font-weight: 600; color: #E4E6EB; line-height: 1.4; }
.fb-post-image { width: 100%; background: linear-gradient(145deg, #2A1B3D, #1A1A2E, #162447); padding: 20px; display: flex; justify-content: center; }
.fb-post-image .share-card { width: 260px; box-shadow: none; transform: scale(0.9); }
.fb-post-reactions { padding: 10px 16px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.fb-post-reactions span { font-size: 12px; color: #B0B3B8; font-weight: 600; }
.fb-post-actions { display: flex; justify-content: space-around; padding: 8px 16px; }
.fb-post-action { font-size: 13px; font-weight: 700; color: #B0B3B8; padding: 8px 16px; border-radius: 8px; cursor: pointer; }

/* Invite */
.invite-card { margin: 16px; background: var(--bg-card); border-radius: 12px; padding: 24px 20px; text-align: center; }
.invite-title { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.invite-sub { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 20px; line-height: 1.5; }
.invite-preview { background: var(--bg); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.invite-preview-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.invite-preview-text { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.invite-preview-sub { font-size: 12px; color: var(--text-dim); font-weight: 600; }

/* ========== UTILITY ========== */
.section-header { padding: 20px 20px 8px; font-size: 18px; font-weight: 900; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.text-center { text-align: center; }

.pixel { font-family: 'Courier New', monospace; font-weight: 900; letter-spacing: 1px; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeIn 0.3s ease-out; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ========== MICRO-INTERACTIONS ========== */

/* Spoon button bounce on toggle */
.spoon-btn.spooned {
  animation: reactionPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes reactionPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Streak count glow pulse */
.streak-count {
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* Dish unlock confetti burst */
@keyframes confettiBurst {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.dish-item.unlocked { animation: confettiBurst 0.4s ease-out; }

/* Identity percent counter glow */
.identity-percent {
  text-shadow: 0 0 40px rgba(255, 45, 120, 0.3), 0 0 80px rgba(139, 92, 246, 0.2);
}

/* Share card shimmer (already defined, enhance) */
.share-card:hover::before { animation-duration: 4s; }

/* Feed card photo hover zoom */
.feed-card-img { transition: transform 0.3s ease; }
.feed-card:hover .feed-card-img { transform: scale(1.02); }

/* Progress bar animated fill on view */
.dish-progress-fill { transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.cuisine-bar-fill { transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s; }

/* Nav camera button pulse on idle */
.nav-camera {
  animation: cameraPulse 3s ease-in-out infinite;
}
@keyframes cameraPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 45, 120, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(255, 45, 120, 0.6), 0 0 60px rgba(139, 92, 246, 0.2); }
}

/* Loading spinner for camera/AI processing */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

/* Map dot pulse */
.map-dot {
  animation: mapDotPulse 2s ease-in-out infinite;
}
.map-dot:nth-child(odd) { animation-delay: 0.5s; }
@keyframes mapDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Smooth screen transitions */
.screen { animation: fadeIn 0.2s ease-out; }

/* Toast notification */
.subo-toast {
  animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.2s forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Context pills (hunger, portion) */
.context-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.context-pill.active {
  background: rgba(255, 45, 120, 0.15);
  border-color: var(--pink);
  color: var(--pink);
}

/* Audience toggle */
.audience-toggle {
  display: flex;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.audience-segment {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.audience-segment.active {
  background: var(--purple);
  color: white;
}

/* Editable ingredient chips */
.ingredient-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.chip-remove {
  cursor: pointer;
  opacity: 0.4;
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}
.chip-remove:hover { opacity: 1; color: var(--coral); }
.chip-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

/* Calendar grid */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day-header { text-align: center; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; padding: 4px 0; }
.calendar-day {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}
.calendar-day:hover { background: var(--bg-card-hover); }
.calendar-day.today { border: 1px solid var(--pink); }
.calendar-day.has-meals { background: var(--bg-card-hover); }
.calendar-day.empty { opacity: 0.3; cursor: default; }
.calendar-day.outside { visibility: hidden; }
.calendar-day .day-num { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.calendar-day.today .day-num { color: var(--pink); }
.calendar-day.selected { background: rgba(139, 92, 246, 0.2); border: 1px solid var(--purple); }
.calendar-day .day-dots { display: flex; gap: 3px; margin-top: 1px; }
.calendar-day .meal-dot { width: 6px; height: 6px; border-radius: 50%; }
.diary-toggle-btn.active { background: var(--purple) !important; color: white !important; }

/* Language option cards (onboarding) */
.lang-option.active {
  border-color: var(--pink) !important;
  background: rgba(255, 45, 120, 0.08) !important;
}
.lang-option.active > div:first-child {
  color: var(--pink);
}

/* Rating slider (1-10 Strava-style) */
.rating-segment {
  flex: 1;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  transition: all 0.15s;
  cursor: pointer;
}
.rating-segment.active { opacity: 1; }
.rating-segment.inactive { opacity: 0.3; }

/* Spice meter */
.spice-bar { height: 8px; border-radius: 4px; transition: width 0.3s; }

/* Shared meal prompt */
.shared-meal-prompt {
  margin: 8px 16px 0;
  padding: 10px 14px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shared-meal-prompt-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.shared-meal-prompt-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.shared-meal-prompt-actions button {
  background: rgba(255,255,255,0.06);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.shared-meal-prompt-actions button.confirm {
  background: rgba(139,92,246,0.15);
  color: var(--purple);
}

/* ========== INFINITE SCROLL (STARTUP-191) ========== */
.feed-sentinel, .diary-sentinel {
  display: flex;
  justify-content: center;
  padding: 24px 0 80px;
}
.feed-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.feed-caught-up {
  text-align: center;
  padding: 16px 20px;
  margin: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ========== TIME RANGE SELECTOR (STARTUP-82) ========== */
.time-range-btn.active { background: var(--purple) !important; color: white !important; }
