/* =============================================
   EatSight App Styles — Mobile-first
   Inherits design tokens from theme.css vars
   ============================================= */

/* --- APP SHELL --- */
.app-page {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* --- HEADER --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header-left { display: flex; align-items: center; gap: 10px; }
.app-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.4px;
  color: var(--fg);
}
.app-header-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.app-header-back:hover { background: rgba(0,0,0,0.05); }
.app-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}

/* --- APP BODY --- */
.app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 40px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* --- SCREENS --- */

/* Profile Setup */
.profile-hero {
  text-align: center;
  margin-bottom: 36px;
}
.profile-hero h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.profile-hero p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--bg-card);
  color: var(--fg);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6a63' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--fg);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--accent); }

/* Goal Selector */
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal-option {
  position: relative;
}
.goal-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.goal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.goal-card:hover { border-color: var(--accent); }
.goal-option input:checked + .goal-card {
  border-color: var(--accent);
  background: var(--accent-light);
}
.goal-icon { font-size: 24px; line-height: 1; }
.goal-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.goal-sub { font-size: 11px; color: var(--fg-muted); }

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* Scan Screen */
.scan-instructions {
  text-align: center;
  margin-bottom: 28px;
}
.scan-instructions h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.scan-instructions p { font-size: 15px; color: var(--fg-muted); }

/* Camera Viewport */
.camera-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a1a18;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}
.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.camera-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.5);
}
.camera-placeholder-icon { font-size: 48px; margin-bottom: 8px; display: block; }
.camera-placeholder p { font-size: 14px; }
.camera-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  pointer-events: none;
}
.camera-crosshair::before,
.camera-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
}
.camera-crosshair::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.camera-crosshair::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.camera-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(255,255,255,0.7);
  border-style: solid;
}
.camera-corner.tl { top: 16px; left: 16px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.camera-corner.tr { top: 16px; right: 16px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.camera-corner.bl { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.camera-corner.br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.camera-tap-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* Capture Button */
.capture-btn-wrap { display: flex; justify-content: center; }
.capture-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255,255,255,0.3);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s;
  box-shadow: 0 0 0 0 rgba(194,81,26,0.4);
}
.capture-btn::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.capture-btn:active { transform: scale(0.92); }

/* Results Screen */
.results-header {
  text-align: center;
  margin-bottom: 28px;
}
.results-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.results-header p { font-size: 14px; color: var(--fg-muted); }

/* Macro Card */
.macro-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
}
.calorie-big {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -4px;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}
.calorie-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.macro-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.macro-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.macro-name { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.macro-bar-track {
  width: 100%;
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
}
.macro-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.macro-bar-fill.protein { background: var(--teal); }
.macro-bar-fill.carbs { background: var(--amber); }
.macro-bar-fill.fat { background: var(--accent); }

/* Swap Card */
.swap-card {
  background: var(--green-light);
  border: 1.5px solid rgba(26, 122, 74, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.swap-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.swap-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(26, 122, 74, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
}
.swap-row { display: flex; align-items: center; gap: 14px; }
.swap-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(26, 122, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.swap-details { flex: 1; }
.swap-food { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.swap-cal-diff { font-size: 12px; color: var(--green); font-weight: 500; }
.swap-stats { display: flex; flex-direction: column; gap: 4px; }
.swap-stat { font-size: 12px; color: var(--fg-muted); display: flex; justify-content: space-between; }
.swap-stat strong { color: var(--fg); }

/* Loading State */
.analyzing-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(247, 246, 241, 0.95);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.analyzing-overlay.visible { display: flex; }
.analyzing-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing-text { font-size: 16px; font-weight: 600; color: var(--fg); }
.analyzing-sub { font-size: 14px; color: var(--fg-muted); }

/* Try Again */
.try-again-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--fg);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
  margin-top: 12px;
}
.try-again-btn:hover { border-color: var(--accent); }
.browse-swaps-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--green-light);
  border: 1.5px solid rgba(26,122,74,0.2);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--green-dark);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s;
  margin-top: 10px;
}
.browse-swaps-btn:hover { border-color: var(--green); }

/* Error State */
.error-card {
  background: #fff0ec;
  border: 1.5px solid rgba(194, 81, 26, 0.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.error-card p { font-size: 14px; color: var(--accent); margin-bottom: 16px; }

/* Hidden canvas (for capture) */
#captureCanvas { display: none; }

/* =============================================
   Log / Daily Journal
   ============================================= */

/* --- TOTALS CARD --- */
.log-totals-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

/* --- CALORIE RING --- */
.log-calorie-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.log-calorie-ring { transform: rotate(-90deg); }
.log-calorie-consumed {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--fg);
}
.log-calorie-goal {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 2px;
}
.log-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- MACRO BARS ROW --- */
.log-macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.log-macro-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.log-macro-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

/* --- DATE HEADER --- */
.log-date-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

/* --- ENTRY LIST --- */
.log-entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.log-entry-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.log-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.log-entry-name {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  margin-right: 8px;
}
.log-entry-time {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.log-entry-cal {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.log-entry-macros {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
}
.log-empty-state {
  text-align: center;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.log-empty-icon { font-size: 48px; opacity: 0.4; }
.log-empty-msg { font-size: 15px; color: var(--fg-muted); }
.log-nav-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.log-nav-link {
  flex: 1;
  display: block;
  padding: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s;
}
.log-nav-link:hover { border-color: var(--accent); }

/* =============================================
   Alternatives Browser
   ============================================= */

/* --- Page header --- */
.alt-header {
  text-align: center;
  margin-bottom: 24px;
}
.alt-page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 6px;
}
.alt-page-sub {
  font-size: 14px;
  color: var(--fg-muted);
}

/* --- Goal chips --- */
.goal-chips-wrap { margin-bottom: 20px; }
.goal-chips-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.goal-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.goal-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.goal-chip:hover { border-color: var(--accent); color: var(--fg); }
.goal-chip--active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: #9c3a10;
}
.goal-chip-icon { font-size: 13px; }

/* --- Search --- */
.alt-search-wrap {
  position: relative;
  margin-bottom: 8px;
}
.alt-search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--bg-card);
  color: var(--fg);
  transition: border-color 0.15s;
}
.alt-search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.alt-search-input::placeholder { color: var(--fg-subtle); }
.alt-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.5;
}
.alt-search-hint {
  font-size: 12px;
  color: var(--fg-subtle);
  margin-bottom: 20px;
}

/* --- Food cards --- */
.alt-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alt-sort-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: none;
  letter-spacing: 0;
}
.alt-food-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alt-food-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.alt-food-card:hover { border-color: var(--accent); transform: scale(0.99); }
.alt-food-card-body { flex: 1; }
.alt-food-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.alt-food-serving { font-size: 12px; color: var(--fg-muted); }
.alt-food-macros { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.alt-macro-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 100px;
}
.alt-macro-tag--protein { color: var(--teal-dark); }

/* --- Selected food panel --- */
.alt-selected-food { margin-bottom: 20px; }
.alt-selected-header { margin-bottom: 12px; }
.alt-back-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.alt-back-btn:hover { color: var(--fg); }
.alt-selected-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.alt-selected-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.alt-selected-serving { font-size: 13px; color: var(--fg-muted); margin-bottom: 18px; }
.alt-selected-macros {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.alt-macro-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.alt-macro-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.alt-macro-key { font-size: 10px; color: var(--fg-muted); font-weight: 500; }

/* --- Alternatives list --- */
.alt-alts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alt-alt-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.alt-alt-card--best {
  border-color: var(--green);
  background: var(--green-light);
}
.alt-best-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.alt-best-badge::before { content: '★'; }
.alt-alt-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.alt-alt-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.alt-alt-info { flex: 1; }
.alt-alt-name { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.alt-alt-serving { font-size: 12px; color: var(--fg-muted); }
.alt-alt-deltas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.alt-delta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 4px;
}
.alt-delta-val { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--fg-muted); }
.alt-delta-key { font-size: 10px; color: var(--fg-subtle); font-weight: 600; }
.alt-delta--good .alt-delta-val { color: var(--green); }
.alt-delta--bad .alt-delta-val { color: var(--accent-dark); }
.alt-why {
  font-size: 12px;
  color: var(--green-dark);
  background: rgba(26,122,74,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.alt-swap-btn {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.alt-swap-btn:hover { opacity: 0.88; }
.alt-swap-btn:active { transform: scale(0.98); }

/* --- Empty state --- */
.alt-empty {
  font-size: 14px;
  color: var(--fg-muted);
  text-align: center;
  padding: 20px;
}

/* =============================================
   Paywall / Upgrade Prompts
   ============================================= */

/* --- Upgrade prompt card --- */
.upgrade-prompt-card {
  background: var(--green-light);
  border: 1.5px solid rgba(26, 122, 74, 0.25);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.upgrade-prompt-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.upgrade-prompt-body {
  flex: 1;
}
.upgrade-prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 2px;
}
.upgrade-prompt-body-text {
  font-size: 13px;
  color: var(--green);
  line-height: 1.5;
}
.upgrade-prompt-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: var(--font-body);
  flex-shrink: 0;
}
.upgrade-prompt-btn:hover { opacity: 0.85; }

/* --- Locked swap card --- */
.locked-swap-card {
  position: relative;
  filter: blur(4px);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}
.locked-swap-card .lock-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(26, 122, 74, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
}
.locked-card-label {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 12px;
}

/* --- Pro badge --- */
.pro-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 8px;
  border-radius: 100px;
}

/* --- Scan counter --- */
.scan-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
}

/* --- Goal chip disabled state --- */
.goal-chip--disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  position: relative;
}
.goal-chip--disabled::after {
  content: '🔒';
  font-size: 10px;
  margin-left: 3px;
}

/* --- Log history prompt --- */
.log-history-prompt {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--fg-muted);
}
.log-history-prompt .upgrade-prompt-card {
  margin-top: 12px;
  margin-bottom: 0;
}