/* ReadyFive App Styles */
/* Matches landing page design: dark theme, Space Grotesk + DM Sans */

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

:root {
  --bg-dark: #0c0f0a;
  --bg-card: #141a11;
  --bg-hover: #1a2114;
  --bg-input: #1a1f15;
  --accent: #b8d44a;
  --accent-dim: #8fa83a;
  --accent-glow: rgba(184, 212, 74, 0.08);
  --text-primary: #e8ebe3;
  --text-secondary: #8a8f82;
  --text-muted: #5a5f52;
  --border: #1e2619;
  --border-light: #2a3120;
  --water: #4a9aba;
  --fire: #d4744a;
  --food: #7ab84a;
  --shelter: #b8a04a;
  --medical: #ba4a6a;
  --extras: #9b7abf;
  --critical: #e85d4a;
  --important: #d4a44a;
  --recommended: #4a9aba;
  --sidebar-w: 260px;
  --header-h: 64px;
  --mobile-nav-h: 72px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sidebar-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-logo-text span {
  color: var(--accent);
}

.sidebar-section {
  padding: 1.25rem 0.75rem 0.5rem;
}

.sidebar-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: rgba(184, 212, 74, 0.12);
}

.nav-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav-item-text {
  flex: 1;
}

.nav-item-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(184, 212, 74, 0.1);
  color: var(--accent-dim);
  font-weight: 500;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.sidebar-footer a {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-footer a:hover { color: var(--text-secondary); }

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.page-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 50;
}

.page-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-title-icon {
  font-size: 1.3rem;
}

.page-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 600px;
}

.page-content {
  padding: 2rem 2.5rem 4rem;
}

/* ===== READINESS SCORE ===== */
.readiness-hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.readiness-ring {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.readiness-ring svg {
  transform: rotate(-90deg);
}

.readiness-ring-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.readiness-ring-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.readiness-ring-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.readiness-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== NEEDS GRID (Dashboard) ===== */
.needs-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.need-overview-card {
  background: var(--bg-card);
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.need-overview-card:hover {
  background: var(--bg-hover);
}

.need-overview-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.need-overview-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.need-overview-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.need-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.need-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.need-overview-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  flex: 1;
  min-width: 160px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== CHECKLIST ===== */
.checklist-progress {
  margin-bottom: 2rem;
}

.checklist-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.checklist-progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checklist-progress-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.checklist-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.checklist-category {
  margin-bottom: 2rem;
}

.checklist-category-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 38, 25, 0.5);
  transition: background 0.15s;
  border-radius: 6px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  cursor: pointer;
}

.checklist-item:hover {
  background: var(--bg-hover);
}

.checklist-item.checked .ci-name {
  color: var(--text-muted);
  text-decoration: line-through;
}

.checklist-item.checked .ci-qty {
  opacity: 0.4;
}

.ci-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
  cursor: pointer;
}

.ci-checkbox:hover {
  border-color: var(--accent-dim);
}

.checklist-item.checked .ci-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.ci-checkbox svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}

.checklist-item.checked .ci-checkbox svg {
  opacity: 1;
}

.ci-body {
  flex: 1;
  min-width: 0;
}

.ci-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ci-name {
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.15s;
}

.ci-qty {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.1rem 0.45rem;
  background: rgba(184, 212, 74, 0.06);
  border-radius: 4px;
  white-space: nowrap;
}

.ci-priority {
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.ci-priority.critical {
  background: rgba(232, 93, 74, 0.12);
  color: var(--critical);
}

.ci-priority.important {
  background: rgba(212, 164, 74, 0.12);
  color: var(--important);
}

.ci-priority.recommended {
  background: rgba(74, 154, 186, 0.12);
  color: var(--recommended);
}

.ci-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.ci-desc.open {
  max-height: 200px;
  margin-top: 0.4rem;
}

.ci-bags {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.3rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ci-bags.open {
  max-height: 40px;
}

.ci-bag-tag {
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(184, 212, 74, 0.08);
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== AMAZON BUY BUTTON (inline) ===== */
.ci-buy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 5px;
  background: rgba(255, 153, 0, 0.12);
  color: #ff9900;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
  min-height: 24px;
}

.ci-buy:hover {
  background: rgba(255, 153, 0, 0.22);
  color: #ffad33;
}

.ci-buy svg {
  flex-shrink: 0;
}

.checklist-item.checked .ci-buy {
  opacity: 0.35;
}

/* ===== BAG BUY CTA (prominent) ===== */
.bag-buy-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.15), rgba(255, 153, 0, 0.08));
  border: 1px solid rgba(255, 153, 0, 0.25);
  color: #ff9900;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.2s;
}

.bag-buy-cta:hover {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.25), rgba(255, 153, 0, 0.15));
  border-color: rgba(255, 153, 0, 0.4);
  color: #ffad33;
  transform: translateY(-1px);
}

.bag-buy-cta svg {
  flex-shrink: 0;
}

.ci-expand {
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.2s;
}

.ci-expand.open {
  transform: rotate(180deg);
}

/* ===== BAG BUILDER ===== */
.bag-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.bag-weight-display {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 140px;
}

.bag-weight-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.bag-weight-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.bag-weight-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bag-weight-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.bag-weight-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.bag-need-group {
  margin-bottom: 2rem;
}

.bag-need-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.bag-need-icon {
  font-size: 1rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 0.4rem 0.5rem;
  padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-nav-inner::-webkit-scrollbar {
  display: none;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  font-size: 0.58rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  min-width: 44px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--accent);
}

.mobile-nav-item.active {
  background: var(--accent-glow);
}

.mobile-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
  display: none;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 90;
}

.mobile-header-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.mobile-header-logo span {
  color: var(--accent);
}

.mobile-header-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .needs-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding-bottom: var(--mobile-nav-h);
  }

  .page-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .page-content {
    padding: 1.25rem 1.25rem 3rem;
  }

  .needs-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    gap: 0.75rem;
  }

  .stat-card {
    min-width: 120px;
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .readiness-ring {
    width: 140px;
    height: 140px;
  }

  .readiness-ring-number {
    font-size: 2.2rem;
  }

  .bag-header {
    flex-direction: column;
    align-items: stretch;
  }

  .bag-weight-display {
    width: 100%;
  }

  .ci-buy {
    padding: 5px 10px;
    min-height: 30px;
    font-size: 0.65rem;
  }

  .ci-buy span {
    display: none;
  }

  .ci-buy svg {
    width: 16px;
    height: 16px;
  }

  .bag-buy-cta {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .needs-overview {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 1rem;
  }

  .page-content {
    padding: 1rem 1rem 3rem;
  }

  .page-title {
    font-size: 1.25rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-content > * {
  animation: fadeIn 0.25s ease;
}

/* ===== SURVIVAL GUIDES ===== */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
  border-top: 2px solid var(--guide-color, var(--accent));
}

.guide-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-top-color: var(--guide-color, var(--accent));
}

.guide-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.guide-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-card-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.guide-card-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--guide-color, var(--accent));
  margin-top: 0.25rem;
}

/* Guide detail page */

.guide-back-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.guide-back-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.guide-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.guide-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.guide-section-header:hover {
  background: var(--bg-hover);
}

.guide-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-section-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.guide-section-chevron.open {
  transform: rotate(180deg);
}

.guide-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 0px solid var(--border);
}

.guide-section-body.open {
  max-height: 2000px;
  border-top: 1px solid var(--border);
}

.guide-tips {
  list-style: none;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-tip {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}

.guide-tip::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.guide-tip strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Guides responsive */

@media (max-width: 1100px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .guide-card {
    padding: 1.125rem;
  }

  .guide-card-icon {
    font-size: 1.6rem;
  }

  .guide-card-name {
    font-size: 0.9rem;
  }

  .guide-section-header {
    padding: 0.875rem 1rem;
  }

  .guide-tips {
    padding: 0.875rem 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== FOREVER FOODS ===== */

/* Tab bar */
.ff-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ff-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ff-tab:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.ff-tab.active {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* Foods grid */
.ff-foods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.ff-food-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.15s ease;
}

.ff-food-card:hover {
  border-color: var(--border-light);
}

.ff-food-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.ff-food-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ff-food-meta {
  flex: 1;
  min-width: 0;
}

.ff-food-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.ff-food-shelf {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.25rem;
}

.ff-shelf-great { background: rgba(184, 212, 74, 0.12); color: var(--accent); }
.ff-shelf-good  { background: rgba(212, 164, 74, 0.12); color: var(--important); }
.ff-shelf-ok    { background: rgba(74, 154, 186, 0.12); color: var(--recommended); }

.ff-buy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(184, 212, 74, 0.2);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-left: auto;
}

.ff-buy-btn:hover {
  background: rgba(184, 212, 74, 0.15);
  color: var(--accent);
}

.ff-food-storage {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.ff-food-row {
  margin-bottom: 0.4rem;
}

.ff-stat {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ff-label {
  color: var(--text-muted);
  font-weight: 500;
}

.ff-food-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* Recipes */
.ff-recipe-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.ff-recipe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ff-recipe-stat {
  font-size: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  color: var(--text-secondary);
}

.ff-recipe-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}

.ff-recipe-ingredients {
  padding-left: 1.1rem !important;
}

.ff-recipe-prep {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  list-style: none !important;
  padding-left: 0 !important;
}

/* Storage Calculator */
.ff-calculator {
  max-width: 600px;
}

.ff-calc-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.ff-calc-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.ff-calc-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.ff-calc-status {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.ff-calc-bar-wrap {
  background: var(--border);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.ff-calc-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.ff-calc-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ff-calc-breakdown-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.ff-calc-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.ff-calc-check {
  font-size: 0.85rem;
  width: 18px;
  flex-shrink: 0;
}

.ff-calc-row.checked .ff-calc-check { color: var(--accent); }
.ff-calc-row.unchecked .ff-calc-check { color: var(--text-muted); }

.ff-calc-item-label {
  flex: 1;
  font-size: 0.82rem;
}

.ff-calc-row.checked .ff-calc-item-label { color: var(--text-primary); }
.ff-calc-row.unchecked .ff-calc-item-label { color: var(--text-muted); }

.ff-calc-days {
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

.ff-calc-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .ff-foods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ff-foods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
