:root {
  --green-950: #062016;
  --green-800: #0f5132;
  --green-600: #168a50;
  --green-100: #e7f7ee;
  --mint-50: #f3fbf7;
  --cream-50: #fffaf0;
  --surface-soft: rgba(247, 252, 249, 0.86);
  --shadow-lg: 0 32px 90px rgba(11, 47, 31, 0.14);
  --green-dark: #0a3b2a;
  --green-main: #167a4b;
  --green-fresh: #32a873;
  --mint: #dff6ea;
  --mint-soft: #f0fbf5;
  --cream: #fff8e9;
  --blue-mint: #dff7f6;
  --text-dark: #101b15;
  --text-muted: #65736b;
  --text-soft: #829089;
  --danger: #a43d35;
  --coral-soft: #fff0ec;
  --warning: #7a5714;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-muted: rgba(248, 252, 249, 0.82);
  --line: rgba(19, 54, 37, 0.1);
  --line-strong: rgba(19, 54, 37, 0.18);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-xl: 44px;
  --shadow-soft: 0 12px 34px rgba(11, 47, 31, 0.08);
  --shadow-card: 0 22px 60px rgba(11, 47, 31, 0.13);
  --shadow-glow: 0 18px 52px rgba(22, 122, 75, 0.22);
  --transition: 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  --green-soft: #e8f8ef;
  --text-main: var(--text-dark);
  --border-soft: var(--line);
  --radius-apple-sm: 12px;
  --radius-apple-md: 18px;
  --radius-apple-lg: 26px;
  --radius-apple-xl: 34px;
  --transition-fast: 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);

  --background: #f7faf4;
  --background-soft: var(--mint-soft);
  --surface-solid: #ffffff;
  --surface-subtle: rgba(246, 251, 248, 0.9);
  --ink: var(--text-dark);
  --muted: var(--text-muted);
  --muted-strong: #45534b;
  --green-900: var(--green-dark);
  --green-700: var(--green-main);
  --green-600: var(--green-fresh);
  --mint-strong: #c8efd8;
  --blue: #25837e;
  --blue-soft: var(--blue-mint);
  --amber: #f0b84f;
  --amber-soft: var(--cream);
  --coral: #dc705f;
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-card);
  --shadow-sm: 0 12px 30px rgba(11, 47, 31, 0.08);
  --shadow-md: 0 22px 60px rgba(11, 47, 31, 0.12);
  --radius: var(--radius-md);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-dark);
  font-family: "Avenir Next", "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 251, 245, 0.94) 28%, rgba(255, 248, 233, 0.72) 58%, rgba(227, 248, 241, 0.82) 100%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.95), rgba(224, 246, 234, 0.72), rgba(255, 255, 255, 0.98));
  background-size: 220% 220%;
  animation: backgroundDrift 28s ease-in-out infinite;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(300deg, rgba(214, 245, 227, 0.36), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.74) 78%);
  pointer-events: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 30px 0 58px;
}

::selection {
  background: var(--mint);
  color: var(--green-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-color: rgba(17, 54, 36, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(13, 54, 35, 0.08);
}

.navbar {
  width: min(1220px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-weight: 850;
}

.brand {
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.brand-copy,
.brand-text,
.brand-tagline {
  display: block;
}

.brand-copy {
  line-height: 1.05;
}

.brand-text {
  color: var(--green-950);
  font-size: 1.05rem;
  font-weight: 920;
  letter-spacing: 0;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark,
.brand-icon,
.footer-brand span {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(22, 122, 75, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #e9f8ef);
  box-shadow: 0 12px 30px rgba(22, 122, 75, 0.14);
  font-size: 0;
}

.brand-mark::before,
.brand-icon::before,
.footer-brand span::before {
  content: "";
  width: 18px;
  height: 24px;
  border-radius: 16px 16px 16px 4px;
  background: linear-gradient(145deg, var(--green-600), var(--green-950));
  transform: rotate(-28deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.brand-mark::after,
.brand-icon::after,
.footer-brand span::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(-28deg) translate(1px, 2px);
}

.icon,
.nav-icon,
.home-card-icon,
.home-feature-icon,
.about-icon,
.result-icon,
.upload-icon,
.menu-icon,
.article-icon,
.smart-step-icon,
.stat-icon,
.food-thumb,
.dashboard-brand-mark,
.profile-avatar span,
.notification-button span,
.dashboard-search span {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.icon,
.nav-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(232, 248, 239, 0.9);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.icon::before,
.nav-icon::before,
.home-card-icon::before,
.home-feature-icon::before,
.about-icon::before,
.result-icon::before,
.upload-icon::before,
.menu-icon::before,
.article-icon::before,
.smart-step-icon::before,
.stat-icon::before,
.food-thumb::before,
.dashboard-brand-mark::before,
.profile-avatar span::before,
.notification-button span::before,
.dashboard-search span::before {
  content: "";
  width: 42%;
  height: 42%;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--green-800);
}

.icon::after,
.nav-icon::after,
.home-card-icon::after,
.home-feature-icon::after,
.about-icon::after,
.result-icon::after,
.upload-icon::after,
.menu-icon::after,
.article-icon::after,
.smart-step-icon::after,
.stat-icon::after,
.food-thumb::after,
.dashboard-brand-mark::after,
.profile-avatar span::after,
.notification-button span::after,
.dashboard-search span::after {
  content: "";
  position: absolute;
  width: 34%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  color: var(--green-800);
  transform: translateY(9px);
}

.dashboard-brand-mark::before {
  width: 18px;
  height: 24px;
  border: 0;
  border-radius: 16px 16px 16px 4px;
  background: linear-gradient(145deg, var(--green-600), var(--green-950));
  transform: rotate(-28deg);
}

.dashboard-brand-mark::after {
  width: 12px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(-28deg) translate(1px, 2px);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(16, 27, 21, 0.72);
  font-size: 0.9rem;
  font-weight: 760;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--green-dark);
  background: rgba(224, 246, 234, 0.86);
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.16), 0 8px 22px rgba(22, 122, 75, 0.12);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--green-dark);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
  position: relative;
}

.section-soft {
  width: min(1180px, calc(100% - 40px));
  padding-inline: 0;
}

.section-tone-hero,
.section-tone-mint,
.section-tone-sky,
.section-tone-peach,
.section-tone-warm,
.section-tone-gold,
.section-tone-ice,
.section-tone-leaf,
.section-tone-about {
  background: transparent;
}

.hero {
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
  align-items: center;
  gap: 70px;
  padding-top: 44px;
}

.hero-content {
  max-width: 760px;
}

.hero-content .eyebrow {
  animation: pageRise 0.7s ease both;
}

.hero-content h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  animation: pageRise 0.82s ease 0.08s both;
}

.tagline {
  max-width: 720px;
  margin: 26px 0 16px;
  color: var(--text-dark);
  font-size: 2.18rem;
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.12;
  animation: pageRise 0.82s ease 0.18s both;
}

.hero-text {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 1.06rem;
  animation: pageRise 0.82s ease 0.28s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  animation: pageRise 0.82s ease 0.38s both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-main);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 3.2rem;
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.05;
}

.section-heading p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.primary-button,
.secondary-button,
.secondary-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 880;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, var(--green-600), var(--green-950));
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(22, 122, 75, 0.2);
}

.btn-secondary {
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-950);
}

.status-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.74rem;
  font-weight: 880;
}

.section-header,
.page-hero {
  display: grid;
  gap: 10px;
}

.primary-button {
  padding: 13px 24px;
  border: 1px solid rgba(10, 59, 42, 0.08);
  background: linear-gradient(180deg, var(--green-main), var(--green-dark));
  color: var(--white);
  box-shadow: 0 16px 38px rgba(22, 122, 75, 0.28);
}

.hero-actions .primary-button::after,
.secondary-link::after {
  content: "->";
  font-weight: 900;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(180deg, #1c8e59, var(--green-dark));
  box-shadow: var(--shadow-glow);
  outline: none;
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.secondary-link:active,
.filter-button:active,
.nav-links a:active,
.menu-toggle:active,
.feature-card-link:active,
.menu-card:active,
.article-card:active,
.quick-tip-card:active,
.about-card:active,
.sdg-card:active,
.upload-box:active,
.food-option span:active,
.checkbox-item:active,
.challenge-item:active {
  transform: translateY(1px) scale(0.985);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.secondary-button,
.secondary-link {
  border: 1px solid rgba(22, 122, 75, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-dark);
  box-shadow: 0 10px 28px rgba(11, 47, 31, 0.06);
}

.secondary-button {
  padding: 12px 20px;
}

.secondary-link {
  padding: 12px 18px;
}

.secondary-button:hover,
.secondary-button:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: rgba(22, 122, 75, 0.3);
  color: var(--green-main);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(11, 47, 31, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.full-button {
  width: 100%;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 36%, rgba(223, 246, 234, 0.2));
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.pressable {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.press-ripple {
  position: absolute;
  left: var(--press-x);
  top: var(--press-y);
  z-index: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(223, 246, 234, 0.38) 42%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: pressRipple 0.68s ease-out forwards;
}

.primary-button .press-ripple,
.filter-button.active .press-ripple {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(190, 245, 213, 0.38) 42%, transparent 72%);
}

.press-pop {
  animation: pressPop 0.26s ease both;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 30px 90px rgba(10, 59, 42, 0.18);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  animation: dashboardEnter 0.95s ease 0.24s both, floatSoft 7s ease-in-out 1.2s infinite;
}

.hero-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 6px 2px;
}

.hero-panel-header strong {
  color: var(--green-dark);
  font-size: 1.16rem;
}

.panel-kicker {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 122, 75, 0.1);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(228, 248, 236, 0.92));
}

.hero-score-card strong {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}

.score-ring {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  font-weight: 900;
  background:
    conic-gradient(var(--green-main) 0 86%, rgba(22, 122, 75, 0.1) 86% 100%),
    #ffffff;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.88);
}

.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 54, 37, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-stat:hover {
  border-color: rgba(22, 122, 75, 0.18);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.hero-stat > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 18px;
  background: var(--mint-soft);
  font-size: 1.2rem;
}

.hero-stat strong,
.hero-stat small {
  display: block;
}

.hero-stat strong {
  color: var(--green-dark);
  font-size: 1.12rem;
  line-height: 1.1;
}

.hero-stat small {
  color: var(--text-muted);
}

.habit-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(22, 122, 75, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
}

.habit-card-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.habit-card strong {
  color: var(--green-dark);
}

.progress-track {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(19, 54, 37, 0.04);
  border-radius: 999px;
  background: rgba(15, 63, 43, 0.08);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6bd58d, var(--green-main), #9edecf);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-progress {
  width: 68%;
  animation: progressIntro 1.2s ease 0.9s both;
}

.nutrition-layout,
.challenge-layout,
.tool-layout,
.p3k-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 26px;
  align-items: start;
}

.nutrition-form,
.tool-form,
.scanner-card,
.food-result-card,
.p3k-result-card,
.result-card,
.points-card,
.challenge-list,
.article-detail {
  padding: 28px;
}

.nutrition-form,
.tool-form {
  display: grid;
  align-content: start;
}

.nutrition-form label,
.tool-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 820;
}

.nutrition-form input[type="text"],
.nutrition-form input[type="number"],
.tool-form input,
.tool-form select,
.tool-form textarea {
  width: 100%;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(19, 54, 37, 0.12);
  border-radius: 20px;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.nutrition-form input::placeholder,
.tool-form input::placeholder,
.tool-form textarea::placeholder {
  color: #9aa69f;
}

.nutrition-form input:focus,
.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus {
  border-color: rgba(22, 122, 75, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(22, 122, 75, 0.12);
  transform: translateY(-1px);
}

.tool-form select {
  cursor: pointer;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-group {
  display: grid;
  gap: 10px;
  margin: 4px 0 20px;
}

.checkbox-item,
.challenge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.checkbox-item:hover,
.challenge-item:hover {
  border-color: rgba(22, 122, 75, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(11, 47, 31, 0.07);
  transform: translateY(-2px);
}

.checkbox-item input,
.challenge-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--green-main);
  flex: 0 0 auto;
}

.result-card,
.points-card,
.food-result-card {
  text-align: center;
}

.result-icon,
.upload-icon,
.menu-icon,
.article-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, var(--mint-soft));
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.1);
  font-size: 0;
}

.result-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
}

.result-icon::before,
.upload-icon::before,
.menu-icon::before,
.article-icon::before {
  content: "";
}

.result-icon::before {
  content: "";
}

#bmi .result-icon::before {
  content: "";
}

#scan-makanan .result-icon::before {
  content: "";
}

#p3k-sehat .p3k-result-card .result-icon::before {
  content: "";
}

#tantangan .result-icon::before {
  content: "";
}

.result-label {
  margin: 0;
  color: var(--text-soft);
  font-weight: 820;
}

.score-number {
  display: block;
  margin: 8px 0 18px;
  color: var(--green-dark);
  font-size: 4.6rem;
  font-weight: 920;
  line-height: 1;
}

.category {
  margin: 16px 0 0;
  color: var(--green-dark);
  font-weight: 850;
}

.advice-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(19, 54, 37, 0.08);
  border-radius: 26px;
  background: rgba(246, 251, 248, 0.82);
  text-align: left;
}

.advice-box h3 {
  margin: 0 0 10px;
  color: var(--text-dark);
}

.advice-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.home-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card-link,
.menu-card,
.article-card,
.about-card,
.sdg-card,
.quick-tip-card {
  min-height: 100%;
  padding: 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.feature-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card-link:hover,
.feature-card-link:focus-visible,
.menu-card:hover,
.article-card:hover,
.article-card:focus-visible,
.about-card:hover,
.sdg-card:hover,
.quick-tip-card:hover {
  border-color: rgba(22, 122, 75, 0.2);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  outline: none;
  transform: translateY(-6px);
}

.home-feature-icon,
.about-icon,
.quick-tip-card span {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, var(--mint-soft));
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.1);
  color: var(--green-dark);
  font-size: 1.35rem;
}

.feature-card-link h3,
.benefits-card h3,
.sdg-card h3,
.quick-tip-card h3,
.about-card h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.25;
}

.feature-card-link p,
.sdg-card p,
.quick-tip-card p,
.about-card p {
  margin: 0;
  color: var(--text-muted);
}

.impact-layout,
.about-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.benefits-card,
.sdg-card,
.home-cta {
  padding: 26px;
}

.check-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.check-list li {
  margin-bottom: 8px;
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sdg-card span,
.article-tag,
.article-detail-tag,
.price,
.meal-tag,
.menu-badges span,
.status-badge,
.challenge-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 850;
}

.sdg-card span,
.article-tag,
.article-detail-tag {
  margin-bottom: 12px;
  padding: 7px 11px;
  background: var(--blue-mint);
  color: #1f756f;
  font-size: 0.8rem;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(225, 248, 235, 0.8));
}

.home-cta h2 {
  max-width: 650px;
  margin: 0;
  color: var(--green-dark);
  font-size: 2.15rem;
  line-height: 1.14;
}

.home-smart-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 34px;
  padding-top: 54px;
  padding-bottom: 54px;
  border-top: 1px solid rgba(22, 122, 75, 0.1);
  border-bottom: 1px solid rgba(22, 122, 75, 0.1);
}

.smart-promo-copy h2 {
  max-width: 660px;
  margin: 0;
  color: var(--green-dark);
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.05;
}

.smart-promo-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px 0 24px;
  color: var(--text-muted);
}

.smart-promo-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(224, 246, 234, 0.58)),
    linear-gradient(180deg, rgba(220, 247, 243, 0.56), rgba(255, 248, 233, 0.32));
  box-shadow: 0 30px 80px rgba(10, 59, 42, 0.12);
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  animation: floatSoft 8s ease-in-out infinite;
}

.mini-ar-frame,
.mini-nutrition-stack span {
  border: 1px solid rgba(22, 122, 75, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(11, 47, 31, 0.08);
}

.mini-ar-frame {
  display: grid;
  gap: 8px;
  max-width: 310px;
  padding: 22px;
  border-radius: 32px;
}

.mini-ar-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #32a873;
  box-shadow: 0 0 0 8px rgba(50, 168, 115, 0.12);
}

.mini-ar-frame strong {
  color: var(--green-dark);
  font-size: 1.45rem;
}

.mini-ar-frame small {
  color: var(--text-muted);
}

.mini-nutrition-stack {
  display: grid;
  gap: 10px;
  justify-self: end;
  width: min(260px, 100%);
}

.mini-nutrition-stack span {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 850;
}

.smart-hero {
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
  align-items: center;
  gap: 64px;
  padding-top: 42px;
}

.smart-hero::before {
  content: "";
  position: absolute;
  inset: 18px -24px auto;
  height: 68%;
  z-index: -1;
  border-radius: 46px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.76), rgba(224, 246, 234, 0.48) 42%, rgba(223, 247, 246, 0.52)),
    linear-gradient(180deg, rgba(255, 248, 233, 0.36), rgba(255, 255, 255, 0.18));
}

.smart-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--green-dark);
  font-size: 5.9rem;
  font-weight: 930;
  letter-spacing: 0;
  line-height: 0.92;
  animation: pageRise 0.82s ease 0.08s both;
}

.smart-hero-subtitle {
  max-width: 720px;
  margin: 26px 0 14px;
  color: var(--text-dark);
  font-size: 2.02rem;
  font-weight: 860;
  line-height: 1.14;
  animation: pageRise 0.82s ease 0.18s both;
}

.smart-hero-note {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--text-muted);
  animation: pageRise 0.82s ease 0.28s both;
}

.smart-hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.smart-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.smart-tech-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(22, 122, 75, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 870;
  box-shadow: 0 10px 24px rgba(11, 47, 31, 0.06);
}

.floating-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 78px rgba(10, 59, 42, 0.16);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  animation: smartFloat 7s ease-in-out infinite;
}

.delay-one {
  animation-delay: 0.9s;
}

.delay-two {
  animation-delay: 1.8s;
}

.smart-device-stage {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 590px;
  overflow: hidden;
  padding: 34px;
  border-radius: 42px;
}

.smart-device-stage::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(22, 122, 75, 0.08);
  border-radius: 34px;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(22, 122, 75, 0.04) 34px 35px),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(37, 131, 126, 0.035) 34px 35px);
  pointer-events: none;
}

.smart-device-label {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  max-width: 160px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 54, 37, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(11, 47, 31, 0.08);
}

.smart-device-label::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 1px;
  background: rgba(22, 122, 75, 0.34);
}

.smart-device-label strong {
  color: var(--green-dark);
  font-size: 0.76rem;
  line-height: 1.15;
}

.smart-device-label span {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.label-camera {
  left: 22px;
  top: 62px;
}

.label-camera::after {
  left: 100%;
  top: 50%;
}

.label-audio {
  left: 22px;
  top: 168px;
}

.label-audio::after {
  left: 100%;
  top: 50%;
}

.label-display {
  right: 22px;
  top: 88px;
}

.label-display::after {
  right: 100%;
  top: 50%;
}

.label-edge {
  left: 42px;
  bottom: 74px;
}

.label-edge::after {
  left: 100%;
  top: 50%;
}

.ar-glasses-card {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  justify-self: center;
  margin: 0 auto;
  padding: 24px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 58px rgba(10, 59, 42, 0.14);
}

.ar-status-row,
.analysis-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ar-status-row span,
.scan-pill {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(223, 246, 234, 0.86);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.ar-status-row strong {
  color: #1f756f;
  font-size: 0.88rem;
}

.glasses-shape {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-items: center;
  gap: 0;
  margin: 34px 0 24px;
}

.lens {
  height: 86px;
  border: 2px solid rgba(10, 59, 42, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(210, 244, 229, 0.58)),
    linear-gradient(180deg, rgba(223, 247, 246, 0.5), transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 12px 28px rgba(10, 59, 42, 0.1);
}

.lens-left {
  border-radius: 36px 18px 28px 38px;
}

.lens-right {
  border-radius: 18px 36px 38px 28px;
}

.bridge {
  height: 16px;
  border-top: 3px solid rgba(10, 59, 42, 0.58);
}

.ar-glasses-card p {
  margin: 0;
  color: var(--text-muted);
}

.nutrition-analysis-card {
  position: relative;
  z-index: 4;
  width: min(350px, 86%);
  justify-self: start;
  margin: -24px 0 0 auto;
  padding: 20px;
  border-radius: 30px;
  background: rgba(15, 35, 29, 0.9);
  box-shadow: 0 24px 58px rgba(10, 59, 42, 0.16);
}

.nutrition-analysis-card h3 {
  margin: 14px 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.analysis-line {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.analysis-line strong {
  color: #ffffff;
}

.analysis-line.warning strong {
  color: #ffd27a;
}

.smart-mini-advice {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 760;
}

.smart-food-plate {
  position: relative;
  z-index: 1;
  width: min(250px, 62%);
  aspect-ratio: 1;
  margin: -16px auto 0;
  border: 12px solid #ffffff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 44%, #fff9df 0 19%, transparent 20%),
    radial-gradient(circle at 65% 39%, #c56a2e 0 16%, transparent 17%),
    radial-gradient(circle at 58% 64%, #b95428 0 14%, transparent 15%),
    radial-gradient(circle at 36% 72%, #71b96a 0 9%, transparent 10%),
    radial-gradient(circle at 28% 63%, #8fd090 0 8%, transparent 9%),
    #f5f3e7;
  box-shadow: 0 24px 54px rgba(10, 59, 42, 0.12);
}

.smart-food-plate span {
  position: absolute;
  border-radius: 999px;
}

.plate-rice {
  width: 34%;
  height: 30%;
  left: 20%;
  top: 28%;
  background: #fff7df;
}

.plate-chicken {
  width: 34%;
  height: 22%;
  right: 18%;
  top: 31%;
  background: #b85f2d;
  transform: rotate(-12deg);
}

.plate-vegetable {
  width: 28%;
  height: 16%;
  left: 22%;
  bottom: 22%;
  background: #78c878;
}

.plate-sauce {
  width: 18%;
  height: 18%;
  right: 22%;
  bottom: 20%;
  background: #d49b44;
}

.ai-assistant-bubble {
  width: min(330px, 84%);
  justify-self: end;
  margin-top: -54px;
  padding: 18px;
  border-radius: 30px 30px 10px 30px;
}

.ai-assistant-bubble span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--green-main), var(--green-dark));
  color: #ffffff;
  font-weight: 900;
}

.ai-assistant-bubble p {
  margin: 0;
  color: var(--text-muted);
}

.glow-button {
  box-shadow: 0 16px 40px rgba(22, 122, 75, 0.3), 0 0 0 8px rgba(50, 168, 115, 0.08);
}

.glow-button:hover,
.glow-button:focus-visible {
  box-shadow: 0 20px 54px rgba(22, 122, 75, 0.32), 0 0 0 10px rgba(50, 168, 115, 0.12);
}

.smart-system-section,
.smart-preview-section,
.smart-comparison-section {
  padding-top: 32px;
}

.smart-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.smart-system-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(22, 122, 75, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 252, 245, 0.84)),
    linear-gradient(180deg, rgba(223, 247, 246, 0.34), transparent);
  box-shadow: 0 18px 44px rgba(11, 47, 31, 0.08);
}

.smart-system-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.62), transparent 42%);
  pointer-events: none;
}

.smart-system-panel > * {
  position: relative;
  z-index: 1;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-title-row h3,
.smart-system-panel h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.45rem;
  line-height: 1.16;
}

.panel-title-row > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(223, 247, 246, 0.84);
  color: #1f756f;
  font-size: 0.78rem;
  font-weight: 900;
}

.smart-architecture-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.architecture-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(19, 54, 37, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(11, 47, 31, 0.06);
}

.architecture-node:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -12px;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-main);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.architecture-node strong,
.smart-strategy-card h3 {
  color: var(--green-dark);
  line-height: 1.2;
}

.architecture-node small,
.smart-strategy-card p {
  color: var(--text-muted);
  line-height: 1.45;
}

.node-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--mint-soft));
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.1);
}

.node-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--green-main);
  mask: var(--node-mask) center / contain no-repeat;
  -webkit-mask: var(--node-mask) center / contain no-repeat;
}

.node-camera { --node-mask: var(--icon-scan); }
.node-ai { --node-mask: var(--icon-health); }
.node-data { --node-mask: var(--icon-dashboard); }
.node-platform { --node-mask: var(--icon-glasses); }
.node-output { --node-mask: var(--icon-care); }
.node-chart { --node-mask: var(--icon-chart); }
.node-book { --node-mask: var(--icon-book); }

.smart-workflow-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.smart-workflow-list li {
  counter-increment: workflow;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(19, 54, 37, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.smart-workflow-list li::before {
  content: counter(workflow, decimal-leading-zero);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 15px;
  background: var(--green-main);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  grid-row: span 2;
}

.smart-workflow-list strong {
  color: var(--green-dark);
  line-height: 1.2;
}

.smart-workflow-list span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.smart-interface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.smart-ar-preview {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 22px;
  border-radius: 30px;
  color: #ffffff;
  box-shadow: 0 24px 56px rgba(11, 47, 31, 0.16);
}

.smart-ar-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, 0.08) 32px 33px);
}

.smart-ar-preview > * {
  position: relative;
  z-index: 1;
}

.smart-ar-preview.safe {
  background:
    radial-gradient(circle at 30% 28%, #dff8bd 0 17%, transparent 18%),
    radial-gradient(circle at 67% 36%, #d58a39 0 18%, transparent 19%),
    linear-gradient(145deg, #174f38, #0a261c);
}

.smart-ar-preview.warning {
  background:
    radial-gradient(circle at 64% 35%, #d6743e 0 18%, transparent 19%),
    radial-gradient(circle at 30% 64%, #f2cc77 0 16%, transparent 17%),
    linear-gradient(145deg, #71311d, #201815);
}

.smart-ar-preview.advice {
  background:
    radial-gradient(circle at 26% 32%, #89d0ff 0 18%, transparent 19%),
    radial-gradient(circle at 72% 65%, #9ee8ba 0 16%, transparent 17%),
    linear-gradient(145deg, #113e32, #071f17);
}

.smart-ar-preview span,
.smart-ar-preview strong {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 880;
}

.smart-ar-preview h3 {
  margin: 22px 0 12px;
  color: #ffffff;
  font-size: 1.62rem;
  line-height: 1.1;
}

.smart-ar-preview p {
  color: rgba(255, 255, 255, 0.82);
}

.smart-ar-preview dl {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.smart-ar-preview dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.smart-ar-preview dt,
.smart-ar-preview dd {
  margin: 0;
}

.smart-comparison-table {
  overflow: hidden;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(11, 47, 31, 0.08);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid rgba(19, 54, 37, 0.08);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span {
  padding: 16px 18px;
  color: var(--text-muted);
}

.comparison-row span + span {
  border-left: 1px solid rgba(19, 54, 37, 0.08);
}

.comparison-row span:first-child {
  color: var(--green-dark);
  font-weight: 900;
}

.comparison-row span:last-child {
  color: #155f40;
  font-weight: 760;
  background: rgba(240, 251, 245, 0.72);
}

.comparison-head span {
  background: var(--green-dark);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 920;
  text-transform: uppercase;
}

.comparison-head span:last-child {
  background: var(--green-main);
  color: #ffffff;
}

.smart-strategy-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.smart-strategy-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(19, 54, 37, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(11, 47, 31, 0.07);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.smart-strategy-card:hover {
  border-color: rgba(22, 122, 75, 0.2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.smart-strategy-card h3 {
  margin: 0;
  font-size: 1rem;
}

.smart-strategy-card p {
  margin: 0;
  font-size: 0.9rem;
}

.smart-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.smart-impact-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(19, 54, 37, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(11, 47, 31, 0.07);
}

.smart-impact-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 920;
}

.smart-impact-card p {
  margin: 0;
  color: var(--text-muted);
}

.smart-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.smart-step-card,
.smart-feature-card,
.future-card,
.smart-metric-card,
.smart-last-meal-card {
  padding: 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.smart-step-card:hover,
.smart-feature-card:hover,
.future-card:hover,
.smart-metric-card:hover,
.smart-last-meal-card:hover {
  border-color: rgba(22, 122, 75, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.smart-step-icon,
.smart-feature-card > span:not(.price),
.future-card span {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, var(--mint-soft));
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.1);
  color: var(--green-dark);
  font-size: 1.24rem;
  font-weight: 900;
}

.smart-step-card small {
  display: block;
  color: var(--green-main);
  font-weight: 900;
}

.smart-step-card h3,
.smart-feature-card h3,
.future-card p,
.smart-last-meal-card h3 {
  margin: 0;
  color: var(--green-dark);
  line-height: 1.24;
}

.smart-step-card h3 {
  margin-top: 8px;
  font-size: 1.02rem;
}

.smart-step-card p,
.smart-feature-card p,
.smart-last-meal-card p,
.future-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.smart-feature-grid,
.student-benefit-grid,
.future-grid,
.smart-dashboard-grid {
  display: grid;
  gap: 16px;
}

.smart-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smart-feature-card {
  min-height: 100%;
}

.smart-feature-card h3 {
  font-size: 1.08rem;
}

.chat-bubble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chat-thread {
  display: grid;
  gap: 10px;
  align-content: start;
}

.chat-question,
.chat-answer {
  max-width: 92%;
  margin: 0;
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(11, 47, 31, 0.08);
}

.chat-question {
  justify-self: start;
  border-radius: 24px 24px 24px 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-weight: 850;
}

.chat-answer {
  justify-self: end;
  border-radius: 24px 24px 8px 24px;
  background: linear-gradient(135deg, rgba(22, 122, 75, 0.94), rgba(10, 59, 42, 0.96));
  color: #ffffff;
}

.typing-bubble::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  animation: typingPulse 1.2s ease-in-out infinite;
}

.smart-disclaimer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.smart-disclaimer {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(240, 184, 79, 0.28);
  border-radius: 26px;
  background: rgba(255, 248, 233, 0.82);
  color: var(--warning);
  box-shadow: 0 12px 30px rgba(122, 87, 20, 0.07);
}

.smart-demo-layout,
.smart-personal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 24px;
  align-items: start;
}

.smart-scanner-panel,
.smart-result-panel,
.smart-personal-form,
.smart-personal-summary {
  padding: 28px;
}

.smart-scanner-panel {
  display: grid;
  gap: 18px;
}

.smart-scanner-panel input[type="file"] {
  display: none;
}

.smart-upload-box {
  display: grid;
  min-height: 178px;
  place-items: center;
  gap: 10px;
  padding: 26px;
  border: 1.5px dashed rgba(22, 122, 75, 0.34);
  border-radius: 30px;
  background: rgba(240, 251, 245, 0.72);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.smart-upload-box:hover,
.smart-upload-box:focus-within {
  border-color: var(--green-main);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.smart-upload-box strong {
  color: var(--text-dark);
}

.smart-upload-box small {
  color: var(--text-muted);
}

.smart-preview-box {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(246, 251, 248, 0.92), rgba(224, 246, 234, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(223, 247, 246, 0.54));
  text-align: center;
}

.smart-preview-box img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.scan-frame {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-muted);
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #32a873, #9edecf, transparent);
  box-shadow: 0 0 18px rgba(50, 168, 115, 0.5);
  animation: scanSweep 2.4s ease-in-out infinite;
}

.smart-result-panel {
  min-height: 100%;
}

.smart-result-panel h3 {
  margin: 6px 0 10px;
  color: var(--green-dark);
  font-size: 1.6rem;
}

.smart-result-panel p {
  color: var(--text-muted);
}

.smart-result-grid {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.smart-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 22px;
  background: rgba(246, 251, 248, 0.9);
  color: var(--text-muted);
}

.smart-result-item strong {
  color: var(--green-dark);
  text-align: right;
}

.smart-advice-box {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 24px;
  background: var(--mint-soft);
  color: var(--green-dark);
  font-weight: 780;
}

.smart-warning-box {
  margin: 12px 0 0;
  padding: 15px;
  border-radius: 22px;
  background: var(--cream);
  color: var(--warning);
  font-weight: 760;
}

.smart-personal-form {
  display: grid;
  align-content: start;
}

.smart-personal-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 820;
}

.smart-personal-form input,
.smart-personal-form select,
.smart-personal-form textarea {
  width: 100%;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(19, 54, 37, 0.12);
  border-radius: 20px;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.smart-personal-form input:focus,
.smart-personal-form select:focus,
.smart-personal-form textarea:focus {
  border-color: rgba(22, 122, 75, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(22, 122, 75, 0.12);
  transform: translateY(-1px);
}

.form-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.smart-personal-summary {
  position: sticky;
  top: 104px;
}

.smart-personal-summary h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.8rem;
  line-height: 1.15;
}

.smart-personal-summary p:not(.eyebrow) {
  color: var(--text-muted);
}

.profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-chip-list span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(223, 246, 234, 0.82);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.smart-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smart-last-meal-card {
  grid-column: span 2;
}

.smart-metric-card {
  display: grid;
  gap: 12px;
}

.smart-metric-card span,
.smart-last-meal-card span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.smart-metric-card strong {
  color: var(--green-dark);
  font-size: 2.3rem;
  font-weight: 920;
  line-height: 1;
}

.smart-progress-fill {
  animation: progressIntro 1.2s ease both;
}

.smart-sdgs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.future-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 8px;
}

.future-card {
  min-height: 180px;
}

.future-card span {
  font-size: 0.92rem;
}

.future-card p {
  color: var(--green-dark);
  font-weight: 850;
}

body[data-require-auth="true"]:not(.auth-ready) main {
  opacity: 0;
  pointer-events: none;
}

.auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.auth-nav-link,
.logout-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.auth-nav-link {
  border: 1px solid rgba(22, 122, 75, 0.14);
  background: linear-gradient(180deg, var(--green-main), var(--green-dark));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 122, 75, 0.2);
}

.auth-nav-link:hover,
.auth-nav-link:focus-visible {
  background: linear-gradient(180deg, #1c8e59, var(--green-dark));
  box-shadow: var(--shadow-glow);
  outline: none;
  transform: translateY(-2px);
}

.logout-button {
  border: 1px solid rgba(22, 122, 75, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-dark);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 47, 31, 0.06);
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: rgba(22, 122, 75, 0.28);
  background: #ffffff;
  color: var(--green-main);
  outline: none;
  transform: translateY(-2px);
}

.logout-button:disabled,
.auth-card button:disabled,
.dashboard-profile-form button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.primary-button.is-loading,
.secondary-button.is-loading,
.logout-button.is-loading,
.auth-card button.is-loading,
.dashboard-profile-form button.is-loading {
  cursor: wait;
}

.nav-user {
  max-width: 160px;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid rgba(22, 122, 75, 0.12);
  border-radius: 999px;
  background: rgba(223, 246, 234, 0.76);
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-page main {
  min-height: calc(100svh - 210px);
}

.auth-layout {
  min-height: calc(100svh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 52px;
}

.auth-layout::before {
  content: "";
  position: absolute;
  inset: 24px -18px auto;
  z-index: -1;
  height: 72%;
  border-radius: 46px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(224, 246, 234, 0.56), rgba(223, 247, 246, 0.44)),
    linear-gradient(180deg, rgba(255, 248, 233, 0.3), rgba(255, 255, 255, 0.12));
}

.auth-copy h1,
.dashboard-hero h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: 4.4rem;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 0.98;
  animation: pageRise 0.8s ease both;
}

.auth-copy p:not(.eyebrow),
.dashboard-hero p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.auth-card {
  display: grid;
  padding: 30px;
  border-radius: 38px;
  animation: dashboardEnter 0.88s ease 0.1s both;
}

.auth-card label,
.dashboard-profile-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 820;
}

.auth-card input,
.dashboard-profile-form input,
.dashboard-profile-form select,
.dashboard-profile-form textarea {
  width: 100%;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(19, 54, 37, 0.12);
  border-radius: 20px;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.auth-card input:focus,
.dashboard-profile-form input:focus,
.dashboard-profile-form select:focus,
.dashboard-profile-form textarea:focus {
  border-color: rgba(22, 122, 75, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(22, 122, 75, 0.12);
  transform: translateY(-1px);
}

.auth-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.auth-checkbox input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin: 2px 0 0;
  accent-color: var(--green-main);
  flex: 0 0 auto;
}

.auth-checkbox span {
  color: var(--text-muted);
  font-weight: 760;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.auth-links.single-link {
  justify-content: center;
}

.auth-links a {
  color: var(--green-main);
  font-weight: 850;
}

.auth-links a:hover,
.auth-links a:focus-visible {
  color: var(--green-dark);
  outline: none;
}

.form-message {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 22px;
  color: var(--green-dark);
  background: rgba(223, 246, 234, 0.86);
  font-weight: 780;
}

.form-message[hidden] {
  display: none;
}

.form-message.error {
  border: 1px solid rgba(164, 61, 53, 0.18);
  background: var(--coral-soft);
  color: var(--danger);
}

.form-message.success {
  border: 1px solid rgba(22, 122, 75, 0.18);
  background: var(--mint);
  color: var(--green-dark);
}

.form-message.info {
  border: 1px solid rgba(37, 131, 126, 0.18);
  background: var(--blue-mint);
  color: #1f756f;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  align-items: center;
  gap: 28px;
  padding-top: 48px;
}

.account-summary-card {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.account-summary-card strong {
  color: var(--green-dark);
  font-size: 1.24rem;
  overflow-wrap: anywhere;
}

.account-summary-card p {
  margin: 0;
  color: var(--text-muted);
}

.dashboard-section {
  padding-top: 38px;
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-info-card,
.dashboard-action-card {
  padding: 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.dashboard-info-card:hover,
.dashboard-action-card:hover,
.dashboard-action-card:focus-visible {
  border-color: rgba(22, 122, 75, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  outline: none;
  transform: translateY(-6px);
}

.dashboard-info-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--blue-mint);
  color: #1f756f;
  font-size: 0.8rem;
  font-weight: 850;
}

.dashboard-info-card h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.16rem;
  line-height: 1.28;
}

.dashboard-info-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.dashboard-profile-form {
  display: grid;
  padding: 28px;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-action-card {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  gap: 18px;
  color: var(--green-dark);
}

.dashboard-action-card span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, var(--mint-soft));
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.1);
  font-size: 1.28rem;
}

.dashboard-action-card strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(22, 122, 75, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  font-weight: 850;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--green-main);
  background: var(--green-main);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(22, 122, 75, 0.2);
  outline: none;
  transform: translateY(-2px);
}

.menu-card,
.article-card {
  display: flex;
  flex-direction: column;
}

.menu-icon,
.article-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
}

.menu-icon::before {
  content: "";
}

.article-icon::before {
  content: "";
}

.menu-card h3,
.article-card h3 {
  margin: 0 0 10px;
  color: var(--text-dark);
  font-size: 1.12rem;
  line-height: 1.28;
}

.menu-card p,
.article-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.price {
  margin-bottom: 12px;
  padding: 7px 11px;
  background: var(--cream);
  color: var(--warning);
  font-size: 0.86rem;
}

.menu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 14px;
}

.menu-badges span {
  padding: 6px 9px;
  background: rgba(223, 246, 234, 0.72);
  color: var(--green-dark);
  font-size: 0.76rem;
}

.meal-tag {
  margin-top: auto;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-size: 0.86rem;
  text-transform: capitalize;
}

.article-card {
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.article-card.active {
  border-color: rgba(22, 122, 75, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 248, 238, 0.76));
  box-shadow: 0 18px 42px rgba(22, 122, 75, 0.12);
}

.article-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--green-main);
  font-size: 0.92rem;
  font-weight: 850;
}

.article-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.article-detail {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.article-detail h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.6rem;
}

.article-detail h4 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1rem;
}

.article-detail p,
.detail-placeholder {
  margin: 0;
  color: var(--text-muted);
}

.detail-list,
.guide-list,
.medicine-list,
.avoid-list,
.urgent-list,
.danger-list,
.summary-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.detail-list li,
.guide-list li,
.medicine-list li,
.avoid-list li,
.urgent-list li,
.danger-list li,
.summary-list li {
  margin-bottom: 8px;
}

.article-extra {
  display: grid;
  gap: 12px;
}

.article-detail .secondary-button {
  width: fit-content;
}

.quick-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.medical-disclaimer {
  margin: -4px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(240, 184, 79, 0.34);
  border-radius: 26px;
  background: rgba(255, 248, 233, 0.82);
  color: var(--warning);
  box-shadow: 0 12px 30px rgba(122, 87, 20, 0.08);
}

.medical-disclaimer strong {
  color: #60430e;
}

.danger-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.danger-fieldset legend {
  padding: 0 8px;
  color: var(--text-dark);
  font-weight: 850;
}

.danger-fieldset .checkbox-item {
  margin: 0;
}

.p3k-result-card {
  min-height: 100%;
}

.p3k-result-card h3,
.food-result-card h3 {
  margin: 8px 0 10px;
  color: var(--text-dark);
  font-size: 1.5rem;
  line-height: 1.25;
}

.p3k-result-card h4 {
  margin: 20px 0 8px;
  color: var(--green-dark);
  font-size: 1.02rem;
}

.p3k-result-card p,
.food-result-card p,
#idealWeightText,
#bmiAdvice {
  color: var(--text-muted);
}

.status-badge {
  margin: 10px 0 18px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.badge-safe {
  background: var(--mint);
  color: var(--green-dark);
}

.badge-warning {
  background: var(--cream);
  color: var(--warning);
}

.badge-danger {
  background: var(--coral-soft);
  color: var(--danger);
}

.medicine-list {
  color: var(--green-dark);
}

.avoid-list,
.urgent-list {
  color: var(--warning);
}

.warning-panel,
.danger-panel,
.safe-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 24px;
  font-weight: 760;
}

.warning-panel {
  border: 1px solid rgba(240, 184, 79, 0.34);
  background: var(--cream);
  color: var(--warning);
}

.danger-panel {
  border: 1px solid rgba(164, 61, 53, 0.18);
  background: var(--coral-soft);
  color: var(--danger);
}

.safe-panel {
  border: 1px solid rgba(22, 122, 75, 0.16);
  background: var(--mint);
  color: var(--green-dark);
}

.challenge-list {
  display: grid;
  gap: 12px;
}

.challenge-item {
  justify-content: flex-start;
  color: var(--green-dark);
  font-weight: 850;
}

.challenge-copy {
  flex: 1 1 auto;
}

.challenge-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  background: rgba(223, 246, 234, 0.82);
  color: var(--green-dark);
  font-size: 0.76rem;
}

.challenge-item.done {
  border-color: rgba(22, 122, 75, 0.32);
  background: linear-gradient(180deg, rgba(223, 246, 234, 0.92), rgba(255, 255, 255, 0.78));
}

.challenge-fill {
  background: linear-gradient(90deg, #f0b84f, var(--green-main), #62cfa6);
}

.bmi-fill {
  background: linear-gradient(90deg, #59b6d3, var(--green-main), #f0b84f, #dc705f);
}

.scanner-card {
  display: grid;
  gap: 18px;
}

.scanner-card input[type="file"] {
  display: none;
}

.upload-box {
  display: grid;
  min-height: 196px;
  place-items: center;
  gap: 10px;
  padding: 28px;
  border: 1.5px dashed rgba(22, 122, 75, 0.34);
  border-radius: 30px;
  background: rgba(240, 251, 245, 0.7);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.upload-box:hover,
.upload-box:focus-within {
  border-color: var(--green-main);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.upload-icon {
  width: 58px;
  height: 58px;
}

.upload-icon::before {
  content: "";
}

.upload-box strong {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.upload-box small,
.preview-box p,
.scanner-note {
  color: var(--text-muted);
}

.preview-box {
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 28px;
  background: rgba(246, 251, 248, 0.82);
  text-align: center;
}

.preview-box img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.food-picker {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
}

.food-picker legend {
  padding: 0 8px;
  color: var(--text-dark);
  font-weight: 850;
}

.food-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.food-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.food-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.food-option span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(19, 54, 37, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted-strong);
  text-align: center;
  font-weight: 830;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.food-option input:checked + span {
  border-color: rgba(22, 122, 75, 0.28);
  background: linear-gradient(180deg, var(--green-main), var(--green-dark));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(22, 122, 75, 0.2);
}

.food-option input:focus-visible + span,
.food-option:hover span {
  border-color: rgba(22, 122, 75, 0.26);
  transform: translateY(-2px);
}

.scanner-note {
  margin: -4px 0 0;
}

.food-facts {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.food-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 22px;
  background: rgba(246, 251, 248, 0.86);
  color: var(--text-muted);
  text-align: left;
}

.food-fact strong {
  color: var(--green-dark);
}

.food-message {
  margin: 0;
  padding: 15px;
  border-radius: 22px;
  background: var(--cream);
  color: var(--warning);
  font-weight: 820;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 28px;
  align-items: center;
}

.about-story {
  max-width: 650px;
}

.about-story h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 3.15rem;
  line-height: 1.07;
}

.about-story p {
  margin: 16px 0 0;
  color: var(--text-muted);
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.loading-box {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 18px;
}

.hidden {
  display: none;
}

.loader {
  width: 54px;
  height: 54px;
  border: 5px solid var(--mint);
  border-top-color: var(--green-main);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.result-updated {
  animation: resultPop 0.52s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.78s ease var(--reveal-delay, 0ms), transform 0.78s ease var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 38px 16px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #0b1f16, #103522);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  flex: 0 0 auto;
  color: #ffffff;
}

.footer-brand span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-credit {
  flex: 0 0 auto;
  text-align: right;
}

.footer-credit strong {
  color: #ffffff;
}

@keyframes backgroundDrift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboardEnter {
  from {
    opacity: 0;
    transform: translateX(36px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes smartFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}

@keyframes scanSweep {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  12%,
  86% {
    opacity: 1;
  }
  100% {
    transform: translateY(300px);
    opacity: 0;
  }
}

@keyframes typingPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.7);
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@keyframes progressIntro {
  from {
    width: 0;
  }
}

@keyframes resultPop {
  0% {
    transform: scale(0.985);
  }
  55% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pressPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.982);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pressRipple {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0);
  }
  70% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1240px) {
  .navbar {
    width: min(100% - 32px, 1180px);
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    max-height: 0;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: max-height var(--transition), padding var(--transition), opacity var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  }

  .nav-links.open {
    max-height: 720px;
    padding: 12px;
    border-color: var(--line);
    box-shadow: var(--shadow-card);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    min-height: 46px;
    justify-content: center;
  }

  .auth-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .auth-nav.logged-in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-user,
  .auth-nav-link,
  .logout-button {
    width: 100%;
    max-width: none;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 62px 0;
  }

  .hero,
  .smart-hero,
  .home-smart-promo,
  .auth-layout,
  .dashboard-hero,
  .nutrition-layout,
  .challenge-layout,
  .tool-layout,
  .p3k-layout,
  .about-layout,
  .impact-layout,
  .smart-demo-layout,
  .smart-personal-layout {
    grid-template-columns: 1fr;
  }

  .smart-hero {
    min-height: auto;
    gap: 34px;
    padding-top: 28px;
  }

  .smart-hero-copy h1 {
    font-size: 4.85rem;
  }

  .smart-hero-subtitle {
    font-size: 1.72rem;
  }

  .smart-hero-visual {
    min-height: 520px;
  }

  .smart-promo-copy h2 {
    font-size: 2.3rem;
  }

  .auth-copy h1,
  .dashboard-hero h1 {
    font-size: 3.55rem;
  }

  .smart-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .smart-system-grid {
    grid-template-columns: 1fr;
  }

  .smart-architecture-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-strategy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smart-interface-grid,
  .smart-impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smart-feature-grid,
  .student-benefit-grid,
  .smart-dashboard-grid,
  .dashboard-card-grid,
  .dashboard-action-grid,
  .future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .smart-personal-summary {
    position: relative;
    top: auto;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding-top: 28px;
  }

  .hero-content h1 {
    font-size: 5.8rem;
  }

  .home-feature-grid,
  .quick-tips-grid,
  .chat-bubble-grid,
  .smart-sdgs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-focus-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-credit {
    text-align: left;
  }
}

@media (max-width: 760px) {
  main {
    gap: 18px;
    padding: 18px 0 38px;
  }

  .navbar {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .auth-nav {
    grid-template-columns: 1fr;
  }

  .auth-nav.logged-in {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 48px 0;
  }

  .hero-content h1 {
    font-size: 4.35rem;
  }

  .tagline {
    font-size: 1.55rem;
  }

  .section-heading h2,
  .about-story h2 {
    font-size: 2.15rem;
  }

  .auth-copy h1,
  .dashboard-hero h1 {
    font-size: 2.65rem;
  }

  .auth-layout::before {
    inset: 8px -12px auto;
    height: 48%;
  }

  .smart-hero::before {
    inset: 8px -12px auto;
    height: 48%;
  }

  .smart-hero-copy h1 {
    font-size: 3.45rem;
  }

  .smart-hero-subtitle {
    font-size: 1.42rem;
  }

  .smart-hero-visual {
    min-height: auto;
  }

  .ar-glasses-card,
  .nutrition-analysis-card,
  .ai-assistant-bubble {
    width: 100%;
    justify-self: stretch;
    margin: 0;
  }

  .smart-promo-copy h2 {
    font-size: 1.9rem;
  }

  .home-cta h2 {
    font-size: 1.55rem;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .secondary-link {
    width: 100%;
  }

  .hero-panel,
  .nutrition-form,
  .tool-form,
  .scanner-card,
  .smart-scanner-panel,
  .smart-result-panel,
  .smart-personal-form,
  .smart-personal-summary,
  .auth-card,
  .dashboard-profile-form,
  .account-summary-card,
  .food-result-card,
  .p3k-result-card,
  .result-card,
  .points-card,
  .challenge-list,
  .article-detail,
  .feature-card-link,
  .menu-card,
  .article-card,
  .home-cta {
    padding: 20px;
  }

  .hero-dashboard-grid,
  .home-feature-grid,
  .smart-feature-grid,
  .student-benefit-grid,
  .smart-steps-grid,
  .smart-system-grid,
  .smart-architecture-flow,
  .smart-interface-grid,
  .smart-strategy-grid,
  .smart-impact-grid,
  .smart-dashboard-grid,
  .dashboard-card-grid,
  .dashboard-action-grid,
  .future-grid,
  .menu-grid,
  .article-grid,
  .quick-tips-grid,
  .about-card-grid,
  .sdg-grid,
  .chat-bubble-grid,
  .smart-sdgs-grid,
  .smart-disclaimer-grid,
  .form-two-columns {
    grid-template-columns: 1fr;
  }

  .smart-device-stage {
    min-height: auto;
    padding: 20px;
  }

  .smart-device-stage::before {
    inset: 12px;
    border-radius: 24px;
  }

  .smart-device-label {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    max-width: none;
    margin-bottom: 10px;
  }

  .smart-device-label::after {
    display: none;
  }

  .smart-tech-stack {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-title-row {
    display: grid;
  }

  .architecture-node {
    min-height: auto;
  }

  .architecture-node:not(:last-child)::after {
    right: auto;
    top: auto;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row span + span {
    border-top: 1px solid rgba(19, 54, 37, 0.08);
    border-left: 0;
  }

  .smart-last-meal-card {
    grid-column: span 1;
  }

  .smart-promo-visual {
    min-height: 240px;
    padding: 22px;
  }

  .auth-links {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .hero-score-card,
  .habit-card-text,
  .home-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-ring {
    width: 86px;
    height: 86px;
  }

  .food-picker-grid {
    grid-template-columns: 1fr 1fr;
  }

  .danger-fieldset {
    grid-template-columns: 1fr;
  }

  .food-fact,
  .challenge-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .challenge-item input {
    align-self: flex-start;
  }

  .preview-box img {
    height: 220px;
  }

  .smart-preview-box img {
    height: 240px;
  }

  .scan-frame {
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 16px, 1180px);
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .smart-hero-copy h1 {
    font-size: 2.7rem;
  }

  .auth-copy h1,
  .dashboard-hero h1 {
    font-size: 2.24rem;
  }

  .smart-hero-subtitle {
    font-size: 1.22rem;
  }

  .glasses-shape {
    grid-template-columns: 1fr 22px 1fr;
  }

  .lens {
    height: 66px;
  }

  .smart-metric-card strong {
    font-size: 1.8rem;
  }

  .score-number {
    font-size: 3.5rem;
  }

  .hero-panel {
    border-radius: 32px;
  }

  .food-picker-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Dashboard app layout */
.dashboard-page {
  min-height: 100svh;
  background: #f7faf8;
  color: #13231b;
  font-family: Inter, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  animation: none;
}

.dashboard-page::before {
  display: none;
}

.dashboard-page .giziku-dashboard-shell {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 28px 16px 20px;
  border-right: 1px solid rgba(15, 81, 50, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 10px 0 38px rgba(18, 65, 42, 0.05);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.dashboard-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.22);
}

.dashboard-brand strong {
  display: block;
  color: #081f15;
  font-size: 1.55rem;
  font-weight: 920;
  line-height: 1;
}

.dashboard-brand small,
.dashboard-profile-mini small {
  color: #6b7c72;
  font-size: 0.72rem;
  font-weight: 760;
}

.dashboard-profile-mini {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 22px;
  background: linear-gradient(160deg, #dcfce7, #ffffff);
  font-size: 2rem;
}

.profile-avatar-image,
.profile-avatar-preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar.has-image span,
.profile-avatar-preview.has-image span {
  display: none;
}

.dashboard-profile-mini strong {
  display: block;
  overflow: hidden;
  color: #0f2c20;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-menu {
  display: grid;
  gap: 4px;
}

.dashboard-menu-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #3e4d45;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.dashboard-menu-item span {
  width: 24px;
  flex: 0 0 24px;
  color: #738178;
  text-align: center;
  font-weight: 900;
}

.dashboard-menu-item:hover,
.dashboard-menu-item:focus-visible,
.dashboard-menu-item.active {
  background: #ecfdf3;
  color: #13743d;
  outline: none;
  transform: translateX(2px);
}

.dashboard-menu-item.active span,
.dashboard-menu-item:hover span {
  color: #16a34a;
}

.sidebar-glasses-panel {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(22, 163, 74, 0.14);
  border-radius: 22px;
  background: linear-gradient(160deg, #ecfdf3, #f7fffb);
}

.sidebar-glasses-panel small {
  color: #4f6a5a;
  font-weight: 760;
}

.sidebar-glasses-panel strong {
  color: #064e3b;
  font-size: 1rem;
  line-height: 1.25;
}

.mini-glasses,
.feature-glasses {
  position: relative;
  min-height: 56px;
}

.mini-glasses::before,
.feature-glasses::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 30px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #101c18, #2e3f38, #0c1512);
}

.mini-glasses span,
.feature-glasses span {
  position: absolute;
  top: 10px;
  width: 44%;
  height: 34px;
  border: 4px solid #17231f;
  border-radius: 16px 16px 20px 20px;
  background: linear-gradient(145deg, rgba(83, 170, 127, 0.22), rgba(15, 23, 42, 0.12));
}

.mini-glasses span:first-child,
.feature-glasses span:first-child {
  left: 5%;
}

.mini-glasses span:last-child,
.feature-glasses span:last-child {
  right: 5%;
}

.connected-pill {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #14783f;
  font-size: 0.8rem;
  font-weight: 850;
}

.dashboard-main {
  min-width: 0;
  display: grid;
  gap: 20px;
  padding: 24px 28px 18px;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-topbar h1 {
  margin: 0;
  color: #081f15;
  font-size: 1.9rem;
  font-weight: 920;
  line-height: 1.1;
}

.dashboard-topbar p {
  margin: 8px 0 0;
  color: #55635b;
  font-size: 1rem;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-search {
  width: min(360px, 45vw);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(20, 70, 44, 0.04);
}

.dashboard-search span {
  color: #5c6b62;
  font-size: 1.2rem;
  font-weight: 900;
}

.dashboard-search input {
  width: 100%;
  border: 0;
  color: #17231f;
  background: transparent;
  outline: none;
  font: inherit;
}

.notification-button {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: #2b3b33;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(20, 70, 44, 0.04);
}

.notification-button strong {
  position: absolute;
  top: -7px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
}

.dashboard-actions time {
  color: #334139;
  font-size: 0.9rem;
  font-weight: 780;
}

.dash-card,
.feature-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(17, 54, 36, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 142px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

.stat-green .stat-icon,
.stat-green [data-progress-bar] {
  background: linear-gradient(145deg, #22c55e, #16a34a);
}

.stat-blue .stat-icon,
.stat-blue [data-progress-bar] {
  background: #3b97ed;
}

.stat-orange .stat-icon {
  background: #f59e0b;
}

.stat-purple .stat-icon,
.stat-purple [data-progress-bar] {
  background: #a855f7;
}

.stat-card p,
.card-heading h2,
.program-list p,
.meal-row span,
.calorie-target span,
.dashboard-footer {
  margin: 0;
}

.stat-card p {
  color: #51635a;
  font-size: 0.88rem;
  font-weight: 820;
}

.stat-card strong {
  display: block;
  margin: 4px 0;
  color: #071e14;
  font-size: 1.7rem;
  font-weight: 920;
  line-height: 1.1;
}

.stat-card small,
.stat-card > div > span {
  color: #66766e;
  font-size: 0.82rem;
}

.stat-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.stat-progress > span,
.adequacy-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

[data-progress-bar] {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dashboard-progress-ready [data-progress-bar] {
  width: var(--target);
}

.stat-progress em {
  color: #4b5d53;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.mini-line-chart {
  grid-column: 1 / -1;
  width: 100%;
  height: 42px;
}

.mini-line-chart polyline {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-purple b {
  color: #16a34a;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid-main {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.dashboard-grid-secondary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 1.1fr);
}

.nutrition-card,
.meal-scan-card,
.program-card,
.doctor-card,
.chatbot-card {
  padding: 20px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card-heading h2 {
  color: #0f2419;
  font-size: 1.08rem;
  font-weight: 900;
}

.card-heading a,
.card-heading span {
  color: #16a34a;
  font-size: 0.82rem;
  font-weight: 850;
}

.nutrition-card-body {
  display: grid;
  grid-template-columns: 190px minmax(180px, 0.8fr) minmax(240px, 1fr);
  gap: 22px;
  align-items: center;
}

.donut-wrap {
  display: grid;
  place-items: center;
}

.nutrition-donut {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 50%, transparent 51%),
    conic-gradient(#5bd168 0 60%, #4a9df0 60% 80%, #f7b532 80% 95%, #ef4444 95% 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.05);
}

.nutrition-donut strong {
  color: #071e14;
  font-size: 1.9rem;
  font-weight: 930;
  line-height: 1;
}

.nutrition-donut span,
.nutrition-donut small {
  color: #56675e;
  font-size: 0.82rem;
  font-weight: 820;
}

.nutrition-legend {
  display: grid;
  gap: 14px;
}

.nutrition-legend p {
  display: grid;
  grid-template-columns: 14px minmax(92px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #39483f;
  font-size: 0.92rem;
}

.nutrition-legend strong {
  color: #2d3c34;
  font-size: 0.88rem;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.legend-dot.carb {
  background: #5bd168;
}

.legend-dot.protein {
  background: #4a9df0;
}

.legend-dot.fat {
  background: #f7b532;
}

.legend-dot.sugar {
  background: #ef4444;
}

.nutrition-adequacy {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: #f7f8fb;
}

.nutrition-adequacy h3 {
  margin: 0 0 4px;
  color: #0f2419;
  font-size: 1rem;
  font-weight: 900;
}

.adequacy-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  color: #46564d;
  font-size: 0.86rem;
  font-weight: 760;
}

.adequacy-row div span {
  background: #22c55e;
}

.adequacy-row.warning div span {
  background: #f7b532;
}

.adequacy-row strong {
  color: #13231b;
  text-align: right;
}

.meal-list {
  display: grid;
  gap: 12px;
}

.meal-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 16px;
  background: #ffffff;
}

.food-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.7rem;
}

.food-ayam {
  background: #fff7e6;
}

.food-salad {
  background: #e9fce9;
}

.food-smoothie {
  background: #fff0f3;
}

.meal-row strong {
  display: block;
  color: #17231f;
  font-size: 0.92rem;
}

.meal-row b {
  color: #16a34a;
}

.meal-row time {
  color: #66766e;
  font-size: 0.82rem;
  font-weight: 760;
}

.program-body,
.doctor-body,
.chatbot-body {
  display: grid;
  gap: 16px;
}

.program-body {
  grid-template-columns: 0.85fr 1.15fr;
}

.calorie-target {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #effcf5;
}

.calorie-target strong {
  color: #071e14;
  font-size: 1.85rem;
  font-weight: 920;
}

.program-list {
  display: grid;
  gap: 10px;
}

.program-list p {
  display: grid;
  grid-template-columns: 28px minmax(72px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px;
  border-radius: 14px;
  background: #f8faf9;
  color: #53635a;
  font-size: 0.84rem;
}

.program-list span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.72rem;
}

.program-list strong {
  color: #17231f;
}

.doctor-body {
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
}

.doctor-illustration {
  min-height: 132px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, #f2fbf6, #ffffff);
  font-size: 4rem;
}

.doctor-body h3 {
  margin: 0 0 8px;
  color: #12231a;
  font-size: 1.12rem;
}

.doctor-body p {
  margin: 0 0 16px;
  color: #53635a;
  font-size: 0.91rem;
}

.doctor-body .primary-button,
.feature-tile .primary-button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.chatbot-body {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: center;
}

.chatbot-bubble {
  padding: 14px 16px;
  border: 1px solid rgba(15, 81, 50, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: #27362e;
  font-size: 0.91rem;
}

.chatbot-bubble-updated {
  animation: dashboardChatPulse 0.42s ease both;
}

.chatbot-actions {
  display: grid;
  gap: 8px;
}

.chatbot-actions button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  border-radius: 999px;
  background: #f0fdf4;
  color: #13743d;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 820;
  cursor: pointer;
}

.robot-illustration {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  font-size: 4.4rem;
}

.bottom-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-tile {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
  padding: 20px;
}

.feature-tile h2 {
  margin: 0;
  color: #0f2419;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.feature-tile h2 span {
  display: block;
}

.feature-tile p {
  margin: 10px 0 16px;
  color: #53635a;
  font-size: 0.88rem;
}

.feature-tile > span {
  display: grid;
  place-items: center;
  font-size: 4rem;
}

.tile-video {
  background: linear-gradient(145deg, #fff8ed, #ffffff);
}

.tile-reward {
  background: linear-gradient(145deg, #fffbe8, #ffffff);
}

.tile-faskes {
  background: linear-gradient(145deg, #edfff3, #ffffff);
}

.tile-glasses {
  background: linear-gradient(145deg, #eafff2, #ffffff);
}

.feature-glasses {
  min-height: 96px;
}

.dashboard-footer {
  padding: 4px 0 12px;
  color: #3d5247;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 760;
}

.dashboard-footer span {
  color: #16a34a;
}

@media (max-width: 1280px) {
  .stats-grid,
  .bottom-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid-main,
  .dashboard-grid-secondary {
    grid-template-columns: 1fr;
  }

  .nutrition-card-body {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .nutrition-adequacy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 940px) {
  .dashboard-page .giziku-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .dashboard-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dashboard-menu-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sidebar-glasses-panel {
    margin-top: 0;
  }

  .dashboard-topbar,
  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-search {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .dashboard-main {
    padding: 18px 14px 12px;
  }

  .stats-grid,
  .bottom-feature-grid,
  .nutrition-card-body,
  .program-body,
  .doctor-body,
  .chatbot-body {
    grid-template-columns: 1fr;
  }

  .robot-illustration {
    grid-row: auto;
    grid-column: auto;
    justify-content: start;
    font-size: 3.4rem;
  }

  .feature-tile {
    grid-template-columns: 1fr;
  }

  .feature-tile > span,
  .feature-glasses {
    justify-self: start;
  }

  .meal-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .meal-row time {
    grid-column: 2;
  }

  .dashboard-topbar h1 {
    font-size: 1.65rem;
  }
}

@keyframes dashboardChatPulse {
  0% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

/* Dashboard preview inside the public home page */
.home-dashboard-showcase {
  min-height: auto;
  padding: clamp(64px, 8vw, 96px) clamp(16px, 4vw, 44px);
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 42%, #effcf5 100%);
}

.dashboard-preview-heading {
  max-width: 960px;
  margin: 0 auto 28px;
}

.dashboard-preview-heading h2 {
  max-width: 760px;
  margin: 0;
  color: #064e3b;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 920;
  line-height: 0.98;
  letter-spacing: 0;
}

.dashboard-preview-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: #50635a;
  font-size: 1rem;
  line-height: 1.75;
}

.dashboard-preview-heading .hero-actions {
  margin-top: 24px;
}

.home-dashboard-showcase .giziku-dashboard-shell {
  max-width: 1560px;
  min-height: auto;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 30px;
  background: #f7faf8;
  box-shadow: 0 28px 70px rgba(17, 54, 36, 0.12);
}

.home-dashboard-showcase .dashboard-sidebar {
  position: relative;
  top: auto;
  height: auto;
  min-height: 100%;
}

.home-dashboard-showcase .dashboard-main {
  min-height: auto;
}

.home-dashboard-showcase .dashboard-footer {
  padding-bottom: 0;
}

@media (max-width: 940px) {
  .home-dashboard-showcase {
    padding: 56px 14px;
  }

  .home-dashboard-showcase .giziku-dashboard-shell {
    border-radius: 24px;
  }
}

@media (max-width: 700px) {
  .dashboard-preview-heading h2 {
    font-size: 2.15rem;
  }

  .dashboard-preview-heading p:not(.eyebrow) {
    font-size: 0.94rem;
  }
}

.dashboard-data-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(17, 54, 36, 0.06);
}

.dashboard-mode-card strong,
.dashboard-mode-card p {
  display: block;
  margin: 0;
}

.dashboard-mode-card strong {
  color: #0f2419;
  font-size: 1rem;
  font-weight: 900;
}

.dashboard-mode-card p {
  margin-top: 5px;
  color: #58685f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mode-badge {
  width: fit-content;
  display: inline-grid;
  place-items: center;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #14783f;
  font-size: 0.74rem;
  font-weight: 900;
}

.dashboard-guest-mode .mode-badge {
  background: #fff7e6;
  color: #9a5b00;
}

.dashboard-guest-mode .stat-card,
.dashboard-guest-mode .nutrition-card,
.dashboard-guest-mode .meal-scan-card,
.dashboard-guest-mode .program-card,
.dashboard-guest-mode .dashboard-update-card {
  position: relative;
}

.dashboard-guest-mode .stat-card::after,
.dashboard-guest-mode .nutrition-card::after,
.dashboard-guest-mode .meal-scan-card::after,
.dashboard-guest-mode .program-card::after {
  content: none;
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.96);
  color: #9a5b00;
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(120, 79, 0, 0.08);
}

.dashboard-guest-mode .dashboard-update-card summary {
  color: #7a5714;
}

.dashboard-guest-mode .dashboard-update-card summary::before {
  content: none;
  order: 2;
  margin-left: auto;
  margin-right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.96);
  color: #9a5b00;
  font-size: 0.68rem;
  font-weight: 900;
}

.dashboard-guest-mode .dashboard-update-card summary::after {
  margin-left: 0;
}

.dashboard-login-save {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dashboard-update-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-update-card {
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(17, 54, 36, 0.05);
}

.dashboard-update-card-wide {
  grid-column: span 2;
}

.dashboard-update-card summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  color: #0f3d28;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.dashboard-update-card summary::-webkit-details-marker {
  display: none;
}

.dashboard-update-card summary::after {
  content: "+";
  margin-left: auto;
  color: #16a34a;
  font-size: 1rem;
  font-weight: 900;
}

.dashboard-update-card[open] summary::after {
  content: "-";
}

.dashboard-update-card form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 13px 13px;
}

.dashboard-update-card label {
  display: grid;
  gap: 6px;
  color: #51635a;
  font-size: 0.78rem;
  font-weight: 820;
}

.dashboard-update-card input,
.dashboard-update-card select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 81, 50, 0.12);
  border-radius: 11px;
  background: #f8faf9;
  color: #10231a;
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

.dashboard-update-card input:focus,
.dashboard-update-card select:focus {
  border-color: rgba(22, 163, 74, 0.42);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.dashboard-update-card button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #137c48, #0d5d39);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(13, 93, 57, 0.18);
}

.dashboard-update-card button.guest-save-button {
  background: linear-gradient(145deg, #f59e0b, #b45309);
  box-shadow: 0 12px 24px rgba(180, 83, 9, 0.18);
}

.program-list .is-done,
.program-list .not-done {
  position: relative;
}

.program-list .is-done::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.program-list .not-done::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-update-card button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dashboard-checkbox {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px !important;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #f8faf9;
}

.dashboard-checkbox input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: #16a34a;
}

.dashboard-empty-state {
  padding: 18px;
  border: 1px dashed rgba(15, 81, 50, 0.18);
  border-radius: 16px;
  background: #f8faf9;
  color: #66766e;
  font-size: 0.9rem;
  font-weight: 780;
}

.meal-row small {
  display: block;
  margin-top: 3px;
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 820;
}

.menu-plan-button {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.program-list p.not-done span {
  background: #dfe7e2;
  color: #64756b;
}

@media (max-width: 1280px) {
  .dashboard-update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-mode-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-login-save {
    width: 100%;
    justify-content: center;
  }

  .dashboard-update-grid,
  .dashboard-update-card form {
    grid-template-columns: 1fr;
  }

  .dashboard-update-card-wide {
    grid-column: auto;
  }
}

/* Global app shell shared by feature pages */
.app-body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(203, 239, 216, 0.68), transparent 30%),
    radial-gradient(circle at 92% 16%, rgba(223, 247, 246, 0.72), transparent 28%),
    linear-gradient(145deg, #fbfdfa 0%, #f3faf6 42%, #fffaf0 100%);
  color: var(--text-main);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  animation: none;
}

.app-body::before,
.app-body .site-header,
.app-body .site-footer {
  display: none;
}

.app-shell {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
}

.app-sidebar {
  animation: appSidebarEnter 0.48s var(--transition-normal) both;
}

.app-brand,
.app-profile,
.app-menu .sidebar-link,
.app-glasses-card {
  animation: appSidebarItem 0.5s var(--transition-normal) both;
}

.app-menu .sidebar-link {
  animation-delay: var(--item-delay, 0ms);
}

.app-profile {
  animation-delay: 80ms;
}

.app-glasses-card {
  animation-delay: 260ms;
}

.app-profile {
  align-items: start;
}

.status-badge {
  width: fit-content;
  display: block;
  margin: 7px 0 4px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 999px;
  background: #ecfdf3;
  color: #14783f;
  font-size: 0.72rem;
  font-weight: 900;
}

.status-badge.guest {
  border-color: rgba(245, 158, 11, 0.2);
  background: #fff7e6;
  color: #9a5b00;
}

.status-badge.saved {
  border-color: rgba(22, 163, 74, 0.22);
  background: #ecfdf3;
  color: #14783f;
}

.sidebar-link {
  position: relative;
  isolation: isolate;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 4px;
  width: 4px;
  border-radius: 999px;
  background: #16a34a;
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sidebar-link.active::before,
.sidebar-link:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.app-glasses-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.app-glasses-card:hover {
  border-color: rgba(22, 163, 74, 0.2);
  box-shadow: 0 22px 46px rgba(17, 54, 36, 0.12);
  transform: translateY(-4px);
}

.app-glasses-card .mini-glasses {
  animation: appFloat 4.8s ease-in-out infinite;
}

.app-main {
  min-width: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -10px -8px 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(17, 54, 36, 0.08);
  backdrop-filter: blur(18px);
}

.app-topbar h1 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0;
}

.app-topbar p {
  max-width: 680px;
}

.app-mobile-menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(15, 81, 50, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 54, 36, 0.08);
  cursor: pointer;
}

.app-mobile-menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #0f3d28;
}

.app-content {
  min-width: 0;
  animation: appPageEnter 0.44s var(--transition-normal) both;
}

.app-guest-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 247, 230, 0.94), rgba(255, 255, 255, 0.9));
  box-shadow: 0 18px 44px rgba(17, 54, 36, 0.07);
}

.app-guest-banner strong,
.app-guest-banner p {
  margin: 0;
}

.app-guest-banner strong {
  color: #4d3200;
  font-size: 0.98rem;
  font-weight: 920;
}

.app-guest-banner p {
  margin-top: 3px;
  color: #765826;
  font-size: 0.88rem;
}

.app-guest-banner > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-guest-banner .primary-button,
.app-guest-banner .secondary-button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 13px;
  font-size: 0.82rem;
}

.save-login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 32, 22, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: modalFade 0.22s ease both;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(15, 81, 50, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-950);
  box-shadow: var(--shadow-md);
}

.save-login-dialog {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(15, 81, 50, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
}

.save-login-dialog h2 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.35rem;
  line-height: 1.2;
}

.save-login-dialog p {
  margin: 0;
  color: var(--text-muted);
}

.save-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.save-login-actions .primary-button,
.save-login-actions .secondary-button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 0.86rem;
}

.save-login-actions .ghost-button {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app-content > .section {
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.app-content > .section::before,
.app-content > .section::after {
  display: none;
}

.app-content > .section > .section-heading {
  display: none;
}

.app-content .tool-layout,
.app-content .nutrition-layout,
.app-content .smart-dashboard-grid {
  max-width: none;
}

.app-content .tool-layout,
.app-content .nutrition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.app-content .grid,
.app-content .menu-grid,
.app-content .article-grid {
  gap: 18px;
}

.app-content .card,
.app-card,
.app-content .feature-card,
.app-content .menu-card,
.app-content .article-card,
.app-content .quick-tip-card,
.app-content .about-card,
.app-content .sdg-card,
.app-content .challenge-item,
.app-content .smart-step-card,
.app-content .smart-feature-card,
.app-content .future-card,
.app-content .smart-metric-card {
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(17, 54, 36, 0.07);
  backdrop-filter: blur(14px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.app-content .card:hover,
.app-card:hover,
.app-content .feature-card:hover,
.app-content .menu-card:hover,
.app-content .article-card:hover,
.app-content .quick-tip-card:hover,
.app-content .about-card:hover,
.app-content .sdg-card:hover,
.app-content .challenge-item:hover,
.app-content .smart-step-card:hover,
.app-content .smart-feature-card:hover,
.app-content .future-card:hover,
.app-content .smart-metric-card:hover {
  border-color: rgba(22, 163, 74, 0.22);
  box-shadow: 0 26px 64px rgba(17, 54, 36, 0.12);
  transform: translateY(-6px);
}

.app-content .tool-form,
.app-content .nutrition-form {
  display: grid;
  gap: 14px;
}

.app-content input,
.app-content select,
.app-content textarea {
  border-color: rgba(15, 81, 50, 0.12);
  border-radius: 14px;
  background: rgba(248, 252, 249, 0.92);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.app-content input:focus,
.app-content select:focus,
.app-content textarea:focus {
  border-color: rgba(22, 163, 74, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.app-content .primary-button,
.app-content .secondary-button,
.app-content .secondary-link,
.app-content button,
.app-topbar button,
.sidebar-link {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.app-content .primary-button:hover,
.app-content .secondary-button:hover,
.app-content .secondary-link:hover,
.app-content button:hover,
.app-topbar button:hover {
  transform: translateY(-2px);
}

.app-content .primary-button:active,
.app-content .secondary-button:active,
.app-content .secondary-link:active,
.app-content button:active,
.app-topbar button:active,
.sidebar-link:active {
  transform: scale(0.97);
}

.app-content .preview-box,
.app-content .smart-preview-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(240, 251, 245, 0.92), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 70% 20%, rgba(74, 157, 240, 0.12), transparent 34%);
}

.app-content .preview-box::after,
.app-content .smart-preview-box::after {
  content: "";
  position: absolute;
  right: 10%;
  left: 10%;
  top: -20%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.78), transparent);
  box-shadow: 0 0 18px rgba(22, 163, 74, 0.5);
  animation: appScanLine 3.2s ease-in-out infinite;
}

.app-content .result-card,
.app-content .food-result-card {
  animation: appResultIn 0.46s var(--transition-normal) both;
}

.app-content .filter-buttons {
  margin-bottom: 18px;
}

.app-content .filter-button.active {
  box-shadow: 0 14px 32px rgba(22, 122, 75, 0.18);
}

.app-reveal {
  opacity: 0;
  transform: translateY(20px);
}

.app-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.48s var(--transition-normal) var(--reveal-delay, 0ms), transform 0.48s var(--transition-normal) var(--reveal-delay, 0ms);
}

.app-sidebar-backdrop {
  display: none;
}

@keyframes appPageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appSidebarEnter {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes appSidebarItem {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes appFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes appScanLine {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  18%, 72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(320px);
  }
}

@keyframes appResultIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 226px minmax(0, 1fr);
  }

  .app-main {
    padding: 22px;
  }

  .app-content .tool-layout,
  .app-content .nutrition-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(86vw, 320px);
    height: 100svh;
    animation: none;
    transform: translateX(-104%);
    transition: transform var(--transition-normal);
  }

  .app-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    border: 0;
    background: rgba(9, 31, 22, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(6px);
  }

  .app-sidebar-open .app-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .app-main {
    min-height: 100svh;
    padding: 14px;
  }

  .app-guest-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .app-guest-banner > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin: 0;
  }

  .app-mobile-menu-button {
    display: grid;
  }

  .app-topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-search {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .app-main {
    padding: 10px;
  }

  .app-topbar {
    border-radius: 20px;
    padding: 12px;
  }

  .app-topbar h1 {
    font-size: 1.55rem;
  }

  .app-topbar p,
  .app-topbar time,
  .app-notification {
    display: none;
  }

  .app-content .card,
  .app-card {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar,
  .app-brand,
  .app-profile,
  .app-menu .sidebar-link,
  .app-glasses-card,
  .app-content,
  .app-reveal,
  .app-reveal.visible,
  .app-content .preview-box::after,
  .app-content .smart-preview-box::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .app-reveal {
    opacity: 1;
  }
}

/* Modern public homepage */
.home-modern-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 6%, rgba(199, 239, 218, 0.7), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(223, 247, 246, 0.75), transparent 30%),
    linear-gradient(145deg, #fbfdfa 0%, #f3faf6 46%, #fffaf0 100%);
}

.home-modern-page .site-header {
  background: rgba(255, 255, 255, 0.58);
  border-bottom-color: rgba(15, 81, 50, 0.04);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
}

.home-modern-page .site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(15, 81, 50, 0.08);
  box-shadow: 0 18px 44px rgba(17, 54, 36, 0.08);
}

.home-modern-page .navbar {
  width: min(1320px, calc(100% - 32px));
}

.home-modern-page .nav-links a {
  font-size: 0.84rem;
}

.home-hero-modern {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.76fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  padding-top: 40px;
  padding-bottom: 70px;
}

.home-hero-copy {
  max-width: 790px;
}

.home-hero-copy .eyebrow,
.home-hero-copy h1,
.home-hero-subtitle,
.home-hero-text,
.home-hero-copy .hero-actions {
  animation: homeRise 0.68s var(--transition-normal) both;
}

.home-hero-copy h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(4.8rem, 10vw, 9rem);
  font-weight: 940;
  letter-spacing: 0;
  line-height: 0.86;
  animation-delay: 80ms;
}

.home-hero-subtitle {
  max-width: 790px;
  margin: 30px 0 16px;
  color: #11251a;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 920;
  line-height: 1.02;
  animation-delay: 160ms;
}

.home-hero-text {
  max-width: 680px;
  margin: 0 0 30px;
  color: #58685f;
  font-size: 1.08rem;
  line-height: 1.8;
  animation-delay: 240ms;
}

.home-hero-copy .hero-actions {
  animation-delay: 320ms;
}

.home-dashboard-preview-card,
.home-public-preview-card,
.home-hero-showcase,
.home-glass-card,
.home-feature-card,
.home-mode-card,
.home-stat-card,
.home-wide-card,
.home-ar-section,
.home-sdg-card {
  border: 1px solid rgba(15, 81, 50, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 58px rgba(17, 54, 36, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.home-dashboard-preview-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 34px;
  overflow: hidden;
  animation: homeFloatCard 6s ease-in-out infinite, homeRise 0.72s var(--transition-normal) 0.18s both;
}

.home-dashboard-preview-card::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  filter: blur(18px);
}

.home-public-preview-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 34px;
  overflow: hidden;
  animation: homeFloatCard 6s ease-in-out infinite, homeRise 0.72s var(--transition-normal) 0.18s both;
}

.home-public-preview-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -26% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(37, 131, 126, 0.14);
  filter: blur(18px);
}

.home-public-orbit {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(22, 122, 75, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 252, 245, 0.78));
  box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.08);
}

.home-public-orbit::before {
  content: "GiziKu";
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: linear-gradient(145deg, #ffffff, #e9fff3);
  color: var(--green-dark);
  font-size: 1.2rem;
  font-weight: 940;
  box-shadow: 0 22px 52px rgba(17, 54, 36, 0.13);
}

.home-public-orbit span {
  position: absolute;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #14783f;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(17, 54, 36, 0.08);
}

.home-public-orbit span:nth-child(1) {
  top: 28px;
  left: 28px;
}

.home-public-orbit span:nth-child(2) {
  right: 24px;
  top: 86px;
  color: #0e5f92;
}

.home-public-orbit span:nth-child(3) {
  left: 34px;
  bottom: 30px;
  color: #7a5714;
}

.home-public-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-public-insight {
  min-height: 94px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.home-public-insight small {
  color: #66766e;
  font-size: 0.74rem;
  font-weight: 850;
}

.home-public-insight strong {
  color: var(--green-dark);
  font-size: 0.96rem;
  line-height: 1.15;
}

.home-hero-showcase {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.18), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(37, 131, 126, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(236, 253, 243, 0.72));
  animation: homeRise 0.72s var(--transition-normal) 0.16s both;
}

.home-hero-showcase::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(22, 122, 75, 0.08);
  border-radius: 36px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(22, 122, 75, 0.04) 42px 43px);
  pointer-events: none;
}

.home-showcase-device {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid rgba(15, 81, 50, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 82px rgba(17, 54, 36, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: homeFloatCard 6s ease-in-out 0.4s infinite;
}

.home-showcase-topbar,
.home-showcase-score,
.home-showcase-progress,
.home-floating-card {
  border: 1px solid rgba(15, 81, 50, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.home-showcase-topbar,
.home-showcase-score,
.home-showcase-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 22px;
  padding: 14px;
}

.home-showcase-topbar span,
.home-showcase-score small,
.home-showcase-progress span,
.home-floating-card small {
  color: #607069;
  font-size: 0.76rem;
  font-weight: 850;
}

.home-showcase-topbar strong,
.home-showcase-score strong,
.home-showcase-progress strong,
.home-floating-card strong {
  color: var(--green-dark);
  font-weight: 930;
}

.home-showcase-score {
  min-height: 116px;
  align-items: end;
  background:
    radial-gradient(circle at 82% 20%, rgba(74, 157, 240, 0.16), transparent 36%),
    linear-gradient(145deg, #effcf5, #ffffff);
}

.home-showcase-score strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1;
}

.home-showcase-score > span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #16a34a, #0a3b2a);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(22, 122, 75, 0.22);
}

.home-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-showcase-tile {
  min-height: 146px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 22px;
  background: #f8faf9;
}

.home-showcase-tile span,
.home-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #effcf5;
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(22, 122, 75, 0.08);
}

.home-showcase-tile.scan span {
  background: #e6f7ff;
  color: #0e5f92;
}

.home-showcase-tile.menu span {
  background: #fff7df;
  color: #7a5714;
}

.home-showcase-tile.habit span {
  background: #f1ffe1;
  color: #3f6f08;
}

.home-showcase-tile strong {
  color: #10231a;
  font-size: 1rem;
  font-weight: 930;
}

.home-showcase-tile small {
  color: #66766e;
  font-weight: 760;
  line-height: 1.35;
}

.home-showcase-progress {
  display: grid;
  min-height: 86px;
}

.home-showcase-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.home-showcase-progress i {
  height: 12px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 63, 43, 0.08);
}

.home-showcase-progress i::before {
  content: "";
  --progress: 82%;
  width: 82%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #32a873, #167a4b, #9edecf);
  animation: homeProgress 1s ease both;
}

.home-floating-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 13px 15px;
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(17, 54, 36, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: homeFloatCard 5.4s ease-in-out infinite;
}

.home-floating-card-scan {
  top: 58px;
  right: 2px;
}

.home-floating-card-menu {
  left: 0;
  bottom: 86px;
  animation-delay: 0.5s;
}

.home-floating-card-balance {
  right: 36px;
  bottom: 42px;
  animation-delay: 0.9s;
}

.home-preview-top,
.home-score-row,
.home-habit-progress > div:first-child,
.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-live-pill,
.home-feature-badge,
.home-mode-card span,
.home-sdg-card span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #14783f;
  font-size: 0.74rem;
  font-weight: 900;
}

.home-score-row {
  min-height: 138px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(240, 251, 245, 0.92), rgba(255, 255, 255, 0.92));
}

.home-score-row strong {
  display: block;
  color: #071e14;
  font-size: 3.25rem;
  font-weight: 940;
  line-height: 1;
}

.home-score-row small,
.home-mini-stat small {
  color: #66766e;
  font-weight: 760;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-mini-stat {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.home-mini-stat:hover,
.home-public-preview-card:hover,
.home-hero-showcase:hover,
.home-issue-card:hover,
.home-solution-mini-card:hover,
.home-problem-card:hover,
.home-solution-card:hover,
.home-benefit-item:hover,
.home-final-cta:hover,
.home-glass-card:hover,
.home-feature-card:hover,
.home-mode-card:hover,
.home-stat-card:hover,
.home-wide-card:hover,
.home-sdg-card:hover {
  border-color: rgba(22, 163, 74, 0.22);
  box-shadow: 0 28px 68px rgba(17, 54, 36, 0.13);
  transform: translateY(-6px);
}

.home-mini-stat > span,
.home-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #effcf5;
  color: var(--green-dark);
  font-size: 1.22rem;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.08);
}

.home-mini-stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.16rem;
  line-height: 1.08;
}

.home-habit-progress {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.home-habit-progress strong {
  color: var(--green-dark);
}

.home-progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 63, 43, 0.08);
}

.home-progress-fill {
  display: block;
  width: var(--progress, 0);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6bd58d, #167a4b, #9edecf);
  animation: homeProgress 1s ease both;
}

.home-modern-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.home-section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.home-section-heading h2 {
  margin: 0;
  color: #081f15;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  font-weight: 930;
  letter-spacing: 0;
  line-height: 1;
}

.home-section-heading p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px 0 0;
  color: #58685f;
  font-size: 1rem;
}

.home-modern-grid,
.home-feature-modern-grid,
.home-preview-dashboard-grid,
.home-sdgs-grid,
.home-issue-grid,
.home-solution-grid {
  display: grid;
  gap: 16px;
}

.home-why-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-solution-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-glass-card,
.home-feature-card,
.home-mode-card,
.home-issue-card,
.home-solution-mini-card,
.home-sdg-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
}

.home-glass-card h3,
.home-feature-card h3,
.home-mode-card h3,
.home-issue-card h3,
.home-solution-mini-card h3,
.home-sdg-card h3,
.home-wide-card h3 {
  margin: 0;
  color: #10231a;
  font-size: 1.1rem;
  font-weight: 920;
  line-height: 1.15;
}

.home-glass-card p,
.home-feature-card p,
.home-mode-card p,
.home-issue-card p,
.home-solution-mini-card p,
.home-sdg-card p,
.home-stat-card p {
  margin: 0;
  color: #5d6c63;
  font-size: 0.94rem;
  line-height: 1.65;
}

.home-feature-modern-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-card,
.home-issue-card,
.home-solution-mini-card {
  min-height: 210px;
  color: inherit;
}

.home-issue-card,
.home-solution-mini-card {
  border: 1px solid rgba(15, 81, 50, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 58px rgba(17, 54, 36, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.home-issue-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 239, 0.84)),
    radial-gradient(circle at 18% 16%, rgba(240, 184, 79, 0.14), transparent 34%);
}

.home-solution-mini-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 253, 243, 0.84)),
    radial-gradient(circle at 82% 12%, rgba(34, 197, 94, 0.12), transparent 32%);
}

.home-feature-badge {
  background: #f7f8fb;
  color: #167a4b;
}

.home-feature-icon {
  margin-bottom: 2px;
}

.home-mode-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 26px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 22px 58px rgba(17, 54, 36, 0.08);
}

.home-mode-layout .home-section-heading {
  margin-bottom: 0;
}

.home-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-mode-card.guest span {
  background: #fff7e6;
  color: #9a5b00;
}

.home-mode-card.saved span {
  background: #ecfdf3;
  color: #14783f;
}

.home-why-rich-section {
  padding-top: 42px;
}

.home-preview-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-stat-card,
.home-wide-card {
  padding: 20px;
  border-radius: 24px;
}

.home-stat-card {
  display: grid;
  gap: 12px;
  min-height: 150px;
}

.home-preview-dashboard-grid .home-stat-card,
.home-preview-dashboard-grid .home-wide-card {
  background: rgba(255, 255, 255, 0.86);
}

.home-stat-card > span {
  color: #51635a;
  font-size: 0.86rem;
  font-weight: 850;
}

.home-stat-card strong {
  color: #071e14;
  font-size: 1.75rem;
  font-weight: 930;
  line-height: 1.1;
}

.home-stat-card small {
  color: #66766e;
  font-size: 0.82rem;
}

.home-stat-card.green .home-progress-fill {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.home-stat-card.blue .home-progress-fill {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.home-stat-card.orange {
  background: rgba(255, 251, 235, 0.9);
}

.home-stat-card.purple {
  background: rgba(250, 245, 255, 0.9);
}

.home-wide-card {
  grid-column: span 2;
  display: grid;
  gap: 16px;
}

.home-card-head a {
  color: #16a34a;
  font-size: 0.84rem;
  font-weight: 900;
}

.home-meal-list,
.home-program-list {
  display: grid;
  gap: 10px;
}

.home-meal-list span,
.home-program-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: #f8faf9;
  color: #53635a;
  font-size: 0.9rem;
  font-weight: 780;
}

.home-meal-list b,
.home-program-list span {
  color: #16a34a;
}

.home-ar-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 30px;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 34px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(74, 157, 240, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 252, 245, 0.86));
}

.home-ar-copy h2 {
  margin: 0;
  color: #081f15;
  font-size: clamp(2.35rem, 5vw, 5rem);
  font-weight: 940;
  line-height: 0.96;
}

.home-ar-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 24px;
  color: #58685f;
  font-size: 1.04rem;
  line-height: 1.75;
}

.home-ar-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.home-ar-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(17, 54, 36, 0.06);
}

.home-ar-steps span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ecfdf3;
  color: #14783f;
  font-size: 0.8rem;
  font-weight: 950;
}

.home-ar-steps strong {
  color: #10231a;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
}

.home-ar-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.home-ar-glasses {
  width: min(320px, 82%);
  height: 104px;
  position: relative;
  border-radius: 42px;
  animation: homeFloatCard 5.6s ease-in-out infinite;
}

.home-ar-glasses::before {
  content: "";
  position: absolute;
  inset: 42px 33% auto;
  height: 12px;
  border-radius: 999px;
  background: #0f2c20;
}

.home-ar-glasses span {
  position: absolute;
  top: 8px;
  width: 42%;
  height: 86px;
  border: 8px solid #0f2c20;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 42px rgba(17, 54, 36, 0.12);
}

.home-ar-glasses span:first-child {
  left: 0;
}

.home-ar-glasses span:last-child {
  right: 0;
}

.home-scan-card {
  position: absolute;
  right: 0;
  bottom: 20px;
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 16px;
  border: 1px solid rgba(74, 157, 240, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 44px rgba(17, 54, 36, 0.12);
}

.home-scan-card small {
  color: #3b82f6;
  font-weight: 900;
}

.home-scan-card strong {
  color: #10231a;
  font-size: 1.2rem;
}

.home-scan-card span {
  color: #58685f;
}

.home-sdgs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-sdg-card {
  min-height: 220px;
}

.home-slider-public-section {
  padding-top: 34px;
}

.home-problem-solution-grid,
.home-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-problem-card,
.home-solution-card,
.home-benefit-item,
.home-final-cta {
  border: 1px solid rgba(15, 81, 50, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 58px rgba(17, 54, 36, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.home-problem-card,
.home-solution-card {
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 28px;
  border-radius: 30px;
  overflow: hidden;
}

.home-problem-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 233, 0.88)),
    radial-gradient(circle at 20% 16%, rgba(240, 184, 79, 0.16), transparent 34%);
}

.home-solution-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 243, 0.88)),
    radial-gradient(circle at 78% 18%, rgba(22, 163, 74, 0.14), transparent 34%);
}

.home-problem-card span,
.home-solution-card span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #14783f;
  font-size: 0.76rem;
  font-weight: 920;
}

.home-problem-card h3,
.home-solution-card h3,
.home-final-cta h2 {
  margin: 0;
  color: #081f15;
  font-weight: 930;
  letter-spacing: 0;
  line-height: 1.02;
}

.home-problem-card h3,
.home-solution-card h3 {
  max-width: 620px;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

.home-problem-card p,
.home-solution-card p,
.home-benefit-item span,
.home-final-cta p:not(.eyebrow) {
  margin: 0;
  color: #5d6c63;
  line-height: 1.7;
}

.home-benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-benefit-item {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
}

.home-benefit-item strong {
  color: var(--green-dark);
  font-size: 1.18rem;
  font-weight: 920;
  line-height: 1.15;
}

.home-demo-grid .home-glass-card {
  min-height: 190px;
}

.home-final-cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 197, 94, 0.16), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(37, 131, 126, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 252, 245, 0.84));
}

.home-final-cta h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
}

.home-final-cta p:not(.eyebrow) {
  max-width: 660px;
}

.home-final-cta .hero-actions {
  justify-content: center;
}

.home-footer-modern {
  margin-top: 30px;
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeFloatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes homeProgress {
  from {
    width: 0;
  }
  to {
    width: var(--progress, 0);
  }
}

@media (max-width: 1180px) {
  .home-hero-modern,
  .home-mode-layout,
  .home-ar-section {
    grid-template-columns: 1fr;
  }

  .home-why-grid,
  .home-feature-modern-grid,
  .home-issue-grid,
  .home-solution-grid,
  .home-preview-dashboard-grid,
  .home-benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-showcase {
    min-height: 520px;
  }

  .home-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-modern-page .navbar {
    width: min(100% - 24px, 1320px);
  }

  .home-hero-modern {
    min-height: auto;
    padding-top: 42px;
  }

  .home-dashboard-preview-card,
  .home-hero-showcase,
  .home-mode-layout,
  .home-ar-section {
    border-radius: 28px;
    padding: 18px;
  }

  .home-preview-grid,
  .home-why-grid,
  .home-feature-modern-grid,
  .home-issue-grid,
  .home-solution-grid,
  .home-preview-dashboard-grid,
  .home-mode-cards,
  .home-sdgs-grid,
  .home-public-insight-grid,
  .home-problem-solution-grid,
  .home-benefit-strip,
  .home-demo-grid {
    grid-template-columns: 1fr;
  }

  .home-wide-card {
    grid-column: auto;
  }

  .home-score-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-ar-visual {
    min-height: 240px;
  }

  .home-public-orbit {
    min-height: 210px;
  }

  .home-hero-showcase {
    min-height: auto;
  }

  .home-floating-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    animation: none;
  }

  .home-hero-showcase {
    gap: 12px;
  }

  .home-showcase-device {
    width: 100%;
    animation: none;
  }

  .home-showcase-topbar,
  .home-showcase-score,
  .home-showcase-progress > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-showcase-score > span {
    width: auto;
    min-width: 68px;
    height: 44px;
    padding: 0 14px;
  }

  .home-ar-steps {
    grid-template-columns: 1fr;
  }

  .home-problem-card,
  .home-solution-card,
  .home-benefit-item {
    min-height: auto;
    padding: 20px;
    border-radius: 24px;
  }

  .home-scan-card {
    right: 12px;
  }
}

@media (max-width: 520px) {
  .home-hero-copy h1 {
    font-size: 4rem;
  }

  .home-hero-subtitle {
    font-size: 1.85rem;
  }

  .home-section-heading h2,
  .home-ar-copy h2 {
    font-size: 2rem;
  }

  .home-meal-list span,
  .home-program-list p,
  .home-preview-top,
  .home-habit-progress > div:first-child,
  .home-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-public-preview-card {
    padding: 18px;
    border-radius: 28px;
  }

  .home-showcase-grid {
    grid-template-columns: 1fr;
  }

  .home-public-orbit span {
    position: static;
    justify-self: center;
    margin-top: 8px;
  }

  .home-public-orbit {
    gap: 8px;
    padding: 18px;
  }
}

/* App-style public home dashboard */
.home-dashboard-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 239, 218, 0.72), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(223, 247, 246, 0.78), transparent 28%),
    linear-gradient(145deg, #fbfdfa 0%, #f3faf6 48%, #fffaf0 100%);
}

.home-dashboard-page .home-dashboard-shell {
  grid-template-columns: 250px minmax(0, 1fr);
}

.home-dashboard-page .dashboard-sidebar {
  animation: appSidebarEnter 0.48s var(--transition-normal) both;
}

.home-dashboard-page .dashboard-brand,
.home-dashboard-page .dashboard-profile-mini,
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item,
.home-dashboard-page .home-sidebar-glasses {
  animation: appSidebarItem 0.5s var(--transition-normal) both;
}

.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(1) { animation-delay: 20ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(2) { animation-delay: 55ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(3) { animation-delay: 90ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(4) { animation-delay: 125ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(5) { animation-delay: 160ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(6) { animation-delay: 195ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(7) { animation-delay: 230ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(8) { animation-delay: 265ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(9) { animation-delay: 300ms; }
.home-dashboard-page .home-dashboard-menu .dashboard-menu-item:nth-child(10) { animation-delay: 335ms; }

.home-dashboard-main {
  animation: appPageEnter 0.44s var(--transition-normal) both;
}

.home-dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -8px -8px 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(17, 54, 36, 0.08);
  backdrop-filter: blur(18px);
}

.home-dashboard-topbar .eyebrow {
  margin-bottom: 5px;
}

.home-dashboard-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.home-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-auth-actions .secondary-button,
.home-auth-actions .primary-button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 13px;
  font-size: 0.84rem;
}

.hero-slider-section {
  --slider-accent: #16a34a;
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(15, 81, 50, 0.1);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 42%, transparent 42%),
    linear-gradient(145deg, #f8fff9 0%, #ecfbf3 52%, #fff8ea 100%);
  box-shadow: 0 28px 76px rgba(17, 54, 36, 0.12);
  isolation: isolate;
  animation: homeCardIn 0.48s var(--transition-normal) 0.08s both;
}

.hero-slider-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(108deg, transparent 0 48%, rgba(255, 255, 255, 0.48) 48% 56%, transparent 56% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 72%);
  opacity: 0.75;
  pointer-events: none;
}

.hero-slider-viewport {
  position: relative;
  z-index: 1;
  min-height: inherit;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.hero-slider-section.is-dragging .hero-slider-viewport {
  cursor: grabbing;
}

.hero-slider-section.is-dragging {
  user-select: none;
}

.hero-slider-track {
  display: flex;
  min-height: inherit;
  transform: translate3d(0, 0, 0);
  transition: transform 0.74s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  --accent: #16a34a;
  --accent-strong: #0f6a3a;
  --accent-soft: #e9fff3;
  --accent-faint: rgba(22, 163, 74, 0.14);
  --slide-start: #f8fff9;
  --slide-end: #fff8ea;
  position: relative;
  min-width: 0;
  min-height: 430px;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 34px;
  padding: 42px 78px 74px;
  background:
    linear-gradient(145deg, var(--slide-start), rgba(255, 255, 255, 0.92) 48%, var(--slide-end)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), transparent);
  overflow: hidden;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 34%;
  width: 210px;
  height: 82%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.12));
  opacity: 0.72;
  transform: rotate(18deg);
  pointer-events: none;
}

.hero-slide-breakfast {
  --accent: #16a34a;
  --accent-strong: #0d6f3c;
  --accent-soft: #e8fff1;
  --accent-faint: rgba(245, 158, 11, 0.15);
  --slide-start: #f7fff8;
  --slide-end: #fff4df;
}

.hero-slide-water {
  --accent: #1687c9;
  --accent-strong: #0e5f92;
  --accent-soft: #e6f7ff;
  --accent-faint: rgba(14, 165, 233, 0.14);
  --slide-start: #f4fcff;
  --slide-end: #ecfff7;
}

.hero-slide-menu {
  --accent: #d89122;
  --accent-strong: #7a5714;
  --accent-soft: #fff7df;
  --accent-faint: rgba(240, 184, 79, 0.18);
  --slide-start: #fffdf4;
  --slide-end: #ecfff4;
}

.hero-slide-scan {
  --accent: #0f9f84;
  --accent-strong: #087160;
  --accent-soft: #e7fff9;
  --accent-faint: rgba(20, 184, 166, 0.16);
  --slide-start: #f4fffb;
  --slide-end: #eef7ff;
}

.hero-slide-challenge {
  --accent: #65a30d;
  --accent-strong: #3f6f08;
  --accent-soft: #f1ffe1;
  --accent-faint: rgba(132, 204, 22, 0.16);
  --slide-start: #fbfff4;
  --slide-end: #f0fff8;
}

.hero-slide-copy,
.hero-slide-visual {
  position: relative;
  z-index: 2;
}

.hero-slide-copy {
  max-width: 620px;
}

.hero-slider-section.is-ready .hero-slide-copy > *,
.hero-slider-section.is-ready .hero-slide-visual {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.54s var(--transition-normal), transform 0.54s var(--transition-normal);
}

.hero-slider-section.is-ready .hero-slide.is-active .hero-slide-copy > *,
.hero-slider-section.is-ready .hero-slide.is-active .hero-slide-visual {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider-section.is-ready .hero-slide.is-active .hero-slide-copy > :nth-child(2) {
  transition-delay: 70ms;
}

.hero-slider-section.is-ready .hero-slide.is-active .hero-slide-copy > :nth-child(3) {
  transition-delay: 120ms;
}

.hero-slider-section.is-ready .hero-slide.is-active .hero-slide-copy > :nth-child(4) {
  transition-delay: 170ms;
}

.hero-slider-section.is-ready .hero-slide.is-active .hero-slide-visual {
  transition-delay: 120ms;
}

.hero-slide-badge {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #ffffff);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 920;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(17, 54, 36, 0.06);
}

.hero-slide-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero-slide h2 {
  max-width: 700px;
  margin: 16px 0 14px;
  color: #071e14;
  font-size: 3.12rem;
  font-weight: 940;
  line-height: 1;
  letter-spacing: 0;
}

.hero-slide p {
  max-width: 560px;
  margin: 0;
  color: #53645b;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.7;
}

.hero-slide-cta {
  width: fit-content;
  margin-top: 24px;
  border-radius: 16px;
}

.hero-slide-cta::after {
  content: "->";
  font-weight: 900;
}

.hero-slide-visual {
  justify-self: end;
  width: min(360px, 100%);
  min-height: 282px;
  display: grid;
  place-items: center;
  animation: appFloat 5.8s ease-in-out infinite;
}

.hero-visual-panel {
  position: relative;
  width: min(330px, 100%);
  min-height: 250px;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 62px rgba(17, 54, 36, 0.13);
  backdrop-filter: blur(18px);
}

.hero-visual-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 44%);
  pointer-events: none;
}

.hero-visual-panel > * {
  position: relative;
  z-index: 1;
}

.hero-visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #53645b;
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-visual-topline strong {
  color: var(--accent-strong);
  font-size: 1.45rem;
  font-weight: 940;
}

.hero-plate {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}

.hero-plate span {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), var(--accent-soft)),
    linear-gradient(180deg, transparent, var(--accent-faint));
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 920;
  box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.06);
}

.hero-plate span:first-child {
  grid-row: span 2;
}

.hero-macro-list {
  display: grid;
  gap: 10px;
}

.hero-macro-list span {
  color: #53645b;
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-macro-list i {
  width: var(--bar);
  height: 8px;
  display: block;
  margin-bottom: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 42%, #ffffff));
}

.hero-water-panel {
  place-items: center;
  text-align: center;
}

.hero-water-mark {
  align-self: end;
  color: var(--accent-strong);
  font-size: 1.05rem;
  font-weight: 940;
}

.hero-water-glass {
  position: relative;
  width: 112px;
  height: 152px;
  overflow: hidden;
  border: 5px solid rgba(14, 95, 146, 0.22);
  border-top-width: 8px;
  border-radius: 22px 22px 34px 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 18px 36px rgba(14, 95, 146, 0.14);
}

.hero-water-glass span {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 78%;
  border-radius: 42% 42% 0 0;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.88), rgba(14, 165, 233, 0.86));
  animation: heroWater 5.4s ease-in-out infinite;
}

.hero-scan-panel {
  align-content: center;
}

.hero-scan-frame {
  position: relative;
  min-height: 156px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, rgba(15, 81, 50, 0.2));
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), var(--accent-soft)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(15, 81, 50, 0.05) 22px 23px);
}

.hero-scan-frame::before,
.hero-scan-frame::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-scan-frame::before {
  top: 22px;
  box-shadow: 0 110px 0 rgba(15, 159, 132, 0.54);
}

.hero-scan-frame::after {
  top: 50%;
  opacity: 0.72;
  animation: heroScanLine 3.2s ease-in-out infinite;
}

.hero-scan-frame span {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, #fff8e1, #d9f99d),
    linear-gradient(180deg, #ffffff, var(--accent-soft));
  box-shadow: 0 18px 38px rgba(17, 54, 36, 0.12);
}

.hero-scan-frame b {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 950;
}

.hero-scan-tags,
.hero-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-scan-tags span,
.hero-check-list span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 880;
  box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.06);
}

.hero-challenge-panel {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
}

.hero-challenge-ring {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 68%, rgba(15, 81, 50, 0.08) 68% 100%);
  box-shadow: 0 20px 38px rgba(101, 163, 13, 0.15);
}

.hero-challenge-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.hero-challenge-ring strong,
.hero-challenge-ring span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.hero-challenge-ring strong {
  color: var(--accent-strong);
  font-size: 1.72rem;
  font-weight: 940;
}

.hero-challenge-ring span {
  margin-top: -18px;
  color: #63746b;
  font-size: 0.72rem;
  font-weight: 850;
}

.hero-check-list {
  display: grid;
}

.hero-check-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-mini-badge {
  position: absolute;
  z-index: 3;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 920;
  box-shadow: 0 18px 34px rgba(17, 54, 36, 0.1);
  backdrop-filter: blur(14px);
}

.hero-mini-badge-top {
  top: 16px;
  right: 4px;
}

.hero-mini-badge-bottom {
  left: 4px;
  bottom: 18px;
}

.hero-slider-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 81, 50, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #0f3d28;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(17, 54, 36, 0.12);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.hero-slider-prev {
  left: 18px;
}

.hero-slider-next {
  right: 18px;
}

.hero-slider-button span {
  display: block;
  font-size: 1.2rem;
  font-weight: 940;
  line-height: 1;
}

.hero-slider-button:hover,
.hero-slider-button:focus-visible {
  border-color: color-mix(in srgb, var(--slider-accent) 36%, rgba(15, 81, 50, 0.1));
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(17, 54, 36, 0.16);
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.hero-slider-button:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-slider-footer {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(17, 54, 36, 0.1);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.hero-slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 61, 40, 0.22);
  cursor: pointer;
  transition: width var(--transition-fast), transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-slider-dot.is-active {
  width: 32px;
  background: var(--slider-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--slider-accent) 14%, transparent);
}

.hero-slider-dot:hover,
.hero-slider-dot:focus-visible {
  background: var(--slider-accent);
  outline: none;
  transform: scale(1.12);
}

.hero-slider-count {
  margin: 0;
  color: #53645b;
  font-size: 0.76rem;
  font-weight: 920;
  white-space: nowrap;
}

@keyframes heroWater {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

@keyframes heroScanLine {
  0%, 100% {
    transform: translateY(-50px);
  }
  50% {
    transform: translateY(50px);
  }
}

.home-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(17, 54, 36, 0.07);
}

.home-status-banner.guest {
  background: linear-gradient(145deg, rgba(255, 247, 230, 0.9), rgba(255, 255, 255, 0.9));
}

.home-status-banner.saved {
  background: linear-gradient(145deg, rgba(236, 253, 243, 0.9), rgba(255, 255, 255, 0.9));
}

.home-status-banner strong,
.home-status-banner p {
  margin: 0;
}

.home-status-banner strong {
  color: #10231a;
  font-size: 1rem;
  font-weight: 920;
}

.home-status-banner p {
  margin-top: 4px;
  color: #5d6c63;
  font-size: 0.92rem;
}

.home-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-status-actions .primary-button,
.home-status-actions .secondary-link {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.home-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-summary-card {
  min-height: 156px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  animation: homeCardIn 0.46s var(--transition-normal) both;
}

.home-summary-card.score {
  grid-template-columns: minmax(0, 1fr) 92px;
  background: linear-gradient(145deg, rgba(236, 253, 243, 0.94), rgba(255, 255, 255, 0.92));
}

.home-summary-card:nth-child(2) { animation-delay: 55ms; }
.home-summary-card:nth-child(3) { animation-delay: 110ms; }
.home-summary-card:nth-child(4) { animation-delay: 165ms; }

.home-summary-card > div > span,
.home-summary-card.score span:not(.score-ring) {
  color: #51635a;
  font-size: 0.86rem;
  font-weight: 850;
}

.home-summary-card strong {
  display: block;
  margin: 5px 0;
  color: #071e14;
  font-size: 1.72rem;
  font-weight: 930;
  line-height: 1.08;
}

.home-summary-card.score strong {
  font-size: 3rem;
}

.home-summary-card small {
  color: #66766e;
  font-size: 0.82rem;
  font-weight: 760;
}

.home-summary-card .stat-icon {
  background: linear-gradient(145deg, #22c55e, #16a34a);
}

.home-summary-card .stat-icon.water {
  background: #3b97ed;
}

.home-summary-card .stat-icon.challenge {
  background: #a855f7;
}

.home-main-grid {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.85fr);
}

.home-nutrition-card,
.home-scan-preview,
.home-program-card,
.home-learning-card,
.home-sdgs-mini-card {
  padding: 20px;
}

.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.home-action-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 16px;
  color: inherit;
}

.home-action-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #effcf5;
  color: #0f3d28;
  font-size: 1.15rem;
  font-weight: 900;
}

.home-action-card strong {
  color: #10231a;
  font-weight: 920;
  line-height: 1.1;
}

.home-action-card small {
  color: #66766e;
  font-size: 0.8rem;
  font-weight: 760;
}

.home-lower-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.2fr) minmax(280px, 0.85fr) minmax(280px, 0.85fr);
}

.home-ar-card {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(74, 157, 240, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 252, 245, 0.88));
}

.home-ar-card h2 {
  margin: 0;
  color: #081f15;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  font-weight: 930;
  line-height: 1;
}

.home-ar-card p:not(.eyebrow) {
  margin: 12px 0 18px;
  color: #5d6c63;
  line-height: 1.65;
}

.home-ar-device {
  display: grid;
  place-items: center;
  gap: 16px;
  animation: appFloat 5s ease-in-out infinite;
}

.home-ar-device small {
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #167a4b;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(17, 54, 36, 0.08);
}

.home-learning-list {
  display: grid;
  gap: 10px;
}

.home-learning-list a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 15px;
  background: #f8faf9;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.home-learning-list a:hover {
  background: #effcf5;
  transform: translateY(-2px);
}

.home-learning-list strong {
  color: #10231a;
  font-size: 0.92rem;
}

.home-learning-list span {
  color: #66766e;
  font-size: 0.82rem;
}

.home-sdgs-mini-card {
  display: grid;
  gap: 12px;
}

.home-sdgs-mini-card h2 {
  margin: 0;
  color: #10231a;
  font-size: 1.08rem;
}

.home-sdgs-mini-card div {
  padding: 12px;
  border-radius: 16px;
  background: #f8faf9;
}

.home-sdgs-mini-card span {
  color: #16a34a;
  font-size: 0.76rem;
  font-weight: 900;
}

.home-sdgs-mini-card strong {
  display: block;
  color: #10231a;
  font-size: 0.92rem;
}

.home-sdgs-mini-card p {
  margin: 4px 0 0;
  color: #66766e;
  font-size: 0.8rem;
  line-height: 1.45;
}

.home-dashboard-page .dash-card,
.home-dashboard-page .home-action-card,
.home-status-banner {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.home-dashboard-page .dash-card:hover,
.home-dashboard-page .home-action-card:hover,
.home-status-banner:hover {
  border-color: rgba(22, 163, 74, 0.22);
  box-shadow: 0 28px 68px rgba(17, 54, 36, 0.12);
  transform: translateY(-5px);
}

@keyframes homeCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 24px;
    min-height: 404px;
    padding: 36px 64px 72px;
  }

  .hero-slide h2 {
    font-size: 2.62rem;
  }

  .hero-slide-visual {
    width: min(320px, 100%);
  }

  .hero-visual-panel {
    min-height: 232px;
  }
}

@media (max-width: 940px) {
  .hero-slider-section {
    min-height: 0;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    min-height: 0;
    padding: 32px 54px 76px;
  }

  .hero-slide h2 {
    font-size: 2.18rem;
    line-height: 1.04;
  }

  .hero-slide p {
    font-size: 1rem;
  }

  .hero-slide-copy {
    max-width: none;
  }

  .hero-slide-visual {
    justify-self: stretch;
    width: 100%;
    min-height: 218px;
  }

  .hero-visual-panel {
    width: min(440px, 100%);
    min-height: 204px;
  }

  .hero-challenge-panel {
    grid-template-columns: 132px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .hero-slider-section {
    border-radius: 26px;
  }

  .hero-slide {
    padding: 24px 18px 76px;
  }

  .hero-slide h2 {
    margin-top: 14px;
    font-size: 1.86rem;
  }

  .hero-slide p {
    line-height: 1.58;
  }

  .hero-slide-cta {
    width: 100%;
    margin-top: 20px;
  }

  .hero-slide-visual {
    min-height: 184px;
  }

  .hero-visual-panel {
    min-height: 176px;
    padding: 16px;
    border-radius: 24px;
  }

  .hero-plate span {
    min-height: 56px;
    border-radius: 18px;
  }

  .hero-water-glass {
    width: 86px;
    height: 116px;
    border-radius: 18px 18px 28px 28px;
  }

  .hero-scan-frame {
    min-height: 122px;
  }

  .hero-scan-frame span {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .hero-challenge-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-challenge-ring {
    width: 112px;
    height: 112px;
  }

  .hero-check-list {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-check-list span {
    justify-content: center;
    text-align: center;
  }

  .hero-check-list span::before {
    display: none;
  }

  .hero-mini-badge {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .hero-mini-badge-top {
    top: 8px;
    right: 8px;
  }

  .hero-mini-badge-bottom {
    left: 8px;
    bottom: 8px;
  }

  .hero-slider-button {
    top: auto;
    bottom: 17px;
    width: 38px;
    height: 38px;
    transform: none;
  }

  .hero-slider-prev {
    left: 14px;
  }

  .hero-slider-next {
    right: 14px;
  }

  .hero-slider-button:hover,
  .hero-slider-button:focus-visible {
    transform: scale(1.04);
  }

  .hero-slider-button:active {
    transform: scale(0.96);
  }

  .hero-slider-footer {
    bottom: 17px;
  }

  .hero-slider-count {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-slide {
    padding-inline: 14px;
  }

  .hero-slide h2 {
    font-size: 1.66rem;
  }

  .hero-slide-badge {
    max-width: 100%;
    font-size: 0.72rem;
  }

  .hero-slider-dot.is-active {
    width: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-section,
  .hero-slider-track,
  .hero-slider-section.is-ready .hero-slide-copy > *,
  .hero-slider-section.is-ready .hero-slide-visual,
  .hero-water-glass span,
  .hero-scan-frame::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1380px) {
  .home-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .home-main-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard-page .nutrition-card-body {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 940px) {
  .home-dashboard-page .home-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .home-dashboard-topbar {
    margin: 0;
  }

  .home-top-actions,
  .home-status-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .home-auth-actions,
  .home-status-actions {
    width: 100%;
  }

  .home-auth-actions a,
  .home-status-actions a {
    justify-content: center;
    flex: 1;
  }
}

@media (max-width: 700px) {
  .home-summary-cards,
  .home-quick-actions,
  .home-lower-grid,
  .home-dashboard-page .nutrition-card-body,
  .home-ar-card {
    grid-template-columns: 1fr;
  }

  .home-summary-card,
  .home-summary-card.score {
    grid-template-columns: 1fr;
  }

  .home-dashboard-topbar h1 {
    font-size: 2rem;
  }

  .home-ar-device {
    justify-content: start;
  }
}

/* Refined GiziKu homepage */
body.home-modern-page {
  background:
    linear-gradient(180deg, #f7fcf9 0%, #ffffff 46%, #f3fbf6 100%),
    linear-gradient(135deg, rgba(224, 248, 234, 0.7), rgba(255, 255, 255, 0.9));
}

.home-modern-page main {
  gap: 0;
  padding: 0 0 58px;
}

.home-modern-page .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 81, 50, 0.08);
  box-shadow: 0 14px 38px rgba(17, 54, 36, 0.06);
}

.home-modern-page .site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(17, 54, 36, 0.09);
}

.home-modern-page .navbar,
.home-modern-page .section {
  width: min(1200px, calc(100% - 40px));
}

.home-modern-page .navbar {
  min-height: 72px;
}

.home-modern-page .brand {
  gap: 11px;
}

.home-modern-page .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff, #e8f8ef);
  box-shadow: 0 12px 28px rgba(16, 118, 73, 0.14);
}

.home-modern-page .brand-text {
  font-size: 1.06rem;
  line-height: 1;
}

.home-modern-page .brand-tagline {
  margin-top: 4px;
  color: #64736b;
  font-size: 0.67rem;
  letter-spacing: 0;
}

.home-modern-page .nav-links {
  gap: 5px;
}

.home-modern-page .nav-links a {
  min-height: 38px;
  padding: 8px 12px;
  color: rgba(16, 27, 21, 0.74);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.home-modern-page .nav-links .nav-cta {
  margin-left: 4px;
  border: 1px solid rgba(15, 81, 50, 0.1);
  background: #0f5132;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 81, 50, 0.18);
}

.home-modern-page .nav-links .nav-cta:hover,
.home-modern-page .nav-links .nav-cta:focus-visible {
  background: #0a3b2a;
  color: #ffffff;
}

.home-modern-page .section {
  padding: 66px 0;
}

.home-hero-modern {
  position: relative;
  min-height: auto;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
  padding-top: 74px;
  padding-bottom: 76px;
}

.home-hero-modern::before {
  content: "";
  position: absolute;
  inset: 24px -24px 20px;
  z-index: -1;
  border: 1px solid rgba(15, 81, 50, 0.06);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(228, 249, 237, 0.88) 0%, rgba(255, 255, 255, 0.94) 52%, rgba(240, 252, 246, 0.92) 100%);
  filter: saturate(1.04);
}

.home-hero-copy {
  max-width: 600px;
}

.home-hero-copy .eyebrow,
.home-hero-copy h1,
.home-hero-subtitle,
.home-hero-text,
.home-hero-copy .hero-actions,
.home-hero-showcase {
  animation: homeFadeUp 0.68s var(--transition-normal) both;
}

.home-hero-copy h1 {
  margin: 0;
  color: #082719;
  font-size: clamp(4.25rem, 8vw, 7.2rem);
  font-weight: 920;
  letter-spacing: 0;
  line-height: 0.92;
  animation-delay: 70ms;
}

.home-modern-page .eyebrow {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 81, 50, 0.1);
  border-radius: 999px;
  background: rgba(236, 253, 243, 0.86);
  color: #0f5132;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero-subtitle {
  max-width: 520px;
  margin: 18px 0 14px;
  color: #11251a;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.12;
  animation-delay: 140ms;
}

.home-hero-text {
  max-width: 590px;
  margin: 0 0 28px;
  color: #53635a;
  font-size: 1.03rem;
  line-height: 1.72;
  animation-delay: 210ms;
}

.home-modern-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.home-hero-copy .hero-actions {
  animation-delay: 280ms;
}

.home-modern-page .primary-button,
.home-modern-page .secondary-button,
.home-modern-page .secondary-link {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 880;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(11, 47, 31, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.home-modern-page .primary-button {
  border: 1px solid rgba(10, 59, 42, 0.08);
  background: #0f5132;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 81, 50, 0.2);
}

.home-modern-page .secondary-button,
.home-modern-page .secondary-link {
  border: 1px solid rgba(15, 81, 50, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #0f5132;
}

.home-modern-page .hero-actions .primary-button::after,
.home-modern-page .secondary-link::after {
  content: none;
}

.home-modern-page .primary-button:hover,
.home-modern-page .primary-button:focus-visible,
.home-modern-page .secondary-button:hover,
.home-modern-page .secondary-button:focus-visible,
.home-modern-page .secondary-link:hover,
.home-modern-page .secondary-link:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 81, 50, 0.14);
}

.home-modern-page .primary-button:active,
.home-modern-page .secondary-button:active,
.home-modern-page .secondary-link:active {
  transform: scale(0.97);
}

.home-hero-showcase {
  min-height: auto;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  animation-delay: 180ms;
}

.home-hero-showcase::before {
  display: none;
}

.home-browser-preview {
  width: 100%;
  max-width: 590px;
  margin-left: auto;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(15, 81, 50, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 26px 70px rgba(17, 54, 36, 0.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: homeGentleFloat 7s ease-in-out infinite;
}

.home-browser-bar {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 18px;
  background: rgba(248, 252, 249, 0.9);
}

.home-browser-dots {
  display: inline-flex;
  gap: 6px;
}

.home-browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d8cf;
}

.home-browser-dots span:first-child {
  background: #7cc99d;
}

.home-browser-bar strong {
  color: #0a3b2a;
  font-size: 0.92rem;
  font-weight: 900;
}

.home-browser-bar > span {
  color: #65736b;
  font-size: 0.78rem;
  font-weight: 820;
}

.home-hero-showcase .home-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-preview-card,
.home-feature-card,
.home-why-card,
.home-mode-card,
.home-sdg-card,
.home-compact-panel {
  border: 1px solid rgba(15, 81, 50, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(17, 54, 36, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-preview-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
}

.home-preview-card-wide {
  grid-column: 1 / -1;
  min-height: 96px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.home-preview-card strong,
.home-feature-card h3,
.home-why-card h3,
.home-mode-card h3,
.home-sdg-card h3 {
  margin: 0;
  color: #10231a;
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.2;
}

.home-preview-card small,
.home-feature-card p,
.home-why-card p,
.home-mode-card p,
.home-sdg-card p,
.home-compact-panel p {
  margin: 0;
  color: #627169;
  font-size: 0.92rem;
  line-height: 1.62;
}

.home-card-symbol {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(22, 122, 75, 0.1);
  border-radius: 15px;
  background: #ecfdf3;
  color: #0f5132;
  overflow: hidden;
}

.home-card-symbol::before,
.home-card-symbol::after {
  content: "";
  position: absolute;
  display: block;
}

.home-card-symbol::before {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.symbol-check::after {
  width: 12px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.symbol-scan::before {
  border-radius: 9px;
}

.symbol-scan::after {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.symbol-menu::before {
  width: 18px;
  height: 12px;
  border-radius: 4px;
}

.symbol-menu::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(8px);
}

.symbol-target::before {
  border-radius: 50%;
}

.symbol-target::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.symbol-ar::before {
  width: 22px;
  height: 12px;
  border-radius: 999px;
}

.symbol-ar::after {
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.symbol-chart::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.symbol-chart::after {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(3px, -3px);
}

.symbol-start::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.symbol-start::after {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: currentColor;
}

.symbol-learn::before {
  width: 18px;
  height: 14px;
  border-radius: 4px;
}

.symbol-learn::after {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(7px);
}

.symbol-lock::before {
  width: 18px;
  height: 14px;
  border-radius: 4px;
  transform: translateY(4px);
}

.symbol-lock::after {
  width: 12px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateY(-7px);
}

.home-preview-progress {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(240, 251, 245, 0.95), rgba(255, 255, 255, 0.9));
}

.home-preview-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-preview-progress span {
  color: #607069;
  font-size: 0.86rem;
  font-weight: 820;
}

.home-preview-progress strong {
  color: #0a3b2a;
  font-size: 1rem;
  font-weight: 920;
}

.home-preview-progress i {
  height: 10px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 81, 50, 0.08);
}

.home-preview-progress i span {
  width: 82%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ee8ba, #0f5132);
}

.home-preview-note {
  margin: 0;
  color: #697970;
  font-size: 0.82rem;
  font-weight: 760;
  text-align: center;
}

.home-section-heading {
  max-width: 710px;
  margin-bottom: 24px;
}

.home-section-heading h2,
.home-final-cta h2,
.home-compact-panel h2 {
  margin: 0;
  color: #081f15;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
}

.home-feature-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-feature-card,
.home-why-card,
.home-mode-card,
.home-sdg-card {
  display: grid;
  gap: 14px;
  min-height: 206px;
  padding: 22px;
  border-radius: 26px;
  color: inherit;
}

.home-feature-card:hover,
.home-feature-card:focus-visible,
.home-why-card:hover,
.home-mode-card:hover,
.home-sdg-card:hover,
.home-preview-card:hover,
.home-compact-panel:hover {
  border-color: rgba(15, 81, 50, 0.15);
  box-shadow: 0 24px 54px rgba(17, 54, 36, 0.11);
  transform: translateY(-4px);
  outline: none;
}

.home-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-mode-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(17, 54, 36, 0.08);
}

.home-mode-layout .home-section-heading {
  margin-bottom: 0;
}

.home-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-mode-card {
  min-height: 184px;
}

.home-mode-card > span,
.home-sdg-card > span {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #0f5132;
  font-size: 0.74rem;
  font-weight: 900;
}

.home-mode-card.guest > span {
  background: #f8fbef;
  color: #526b13;
}

.home-compact-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.home-compact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
}

.home-compact-panel > div {
  max-width: 720px;
}

.home-compact-panel p:not(.eyebrow) {
  margin: 14px 0 0;
}

.home-sdgs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-final-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 40px 24px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(236, 253, 243, 0.88), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 48px rgba(17, 54, 36, 0.08);
  text-align: center;
}

.home-final-cta .hero-actions {
  justify-content: center;
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeGentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1120px) {
  .home-hero-modern,
  .home-mode-layout {
    grid-template-columns: 1fr;
  }

  .home-hero-copy,
  .home-browser-preview {
    max-width: none;
  }

  .home-browser-preview {
    margin-left: 0;
  }

  .home-feature-modern-grid,
  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-modern-page .navbar,
  .home-modern-page .section {
    width: min(100% - 24px, 1200px);
  }

  .home-modern-page .navbar {
    min-height: 66px;
  }

  .home-modern-page .brand-tagline {
    display: none;
  }

  .home-hero-modern {
    gap: 30px;
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .home-hero-modern::before {
    inset: 12px -8px 12px;
    border-radius: 28px;
  }

  .home-hero-copy h1 {
    font-size: clamp(3.35rem, 18vw, 4.7rem);
  }

  .home-hero-subtitle {
    font-size: 1.55rem;
  }

  .home-hero-text {
    font-size: 0.98rem;
  }

  .home-modern-page .hero-actions {
    align-items: stretch;
  }

  .home-modern-page .hero-actions a {
    width: 100%;
  }

  .home-browser-bar {
    grid-template-columns: auto 1fr;
  }

  .home-browser-bar > span {
    display: none;
  }

  .home-hero-showcase .home-preview-grid,
  .home-feature-modern-grid,
  .home-why-grid,
  .home-mode-cards,
  .home-sdgs-grid {
    grid-template-columns: 1fr;
  }

  .home-preview-card-wide {
    grid-column: auto;
  }

  .home-mode-layout,
  .home-compact-panel,
  .home-final-cta {
    border-radius: 24px;
    padding: 22px;
  }

  .home-compact-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-copy .eyebrow,
  .home-hero-copy h1,
  .home-hero-subtitle,
  .home-hero-text,
  .home-hero-copy .hero-actions,
  .home-hero-showcase,
  .home-browser-preview {
    animation: none !important;
  }

  .home-feature-card,
  .home-why-card,
  .home-mode-card,
  .home-sdg-card,
  .home-preview-card,
  .home-compact-panel,
  .home-modern-page .primary-button,
  .home-modern-page .secondary-button,
  .home-modern-page .secondary-link {
    transition: none !important;
  }
}

/* Refined dashboard and guest demo state */
.dashboard-page {
  background:
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 42%, #f3fbf6 100%),
    radial-gradient(circle at 82% 8%, rgba(204, 245, 220, 0.42), transparent 32%);
}

.dashboard-page .giziku-dashboard-shell {
  grid-template-columns: 274px minmax(0, 1fr);
  background: transparent;
}

.dashboard-sidebar {
  gap: 18px;
  padding: 22px 16px 18px;
  border-right-color: rgba(15, 81, 50, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 12px 0 42px rgba(17, 54, 36, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dashboard-brand {
  min-height: 48px;
  padding: 0 8px 6px;
}

.dashboard-brand .brand-text,
.dashboard-brand strong {
  font-size: 1.18rem;
}

.dashboard-brand .brand-tagline,
.dashboard-brand small {
  font-size: 0.68rem;
}

.dashboard-profile-mini {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 22px;
  background: rgba(247, 252, 249, 0.88);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 18px;
}

.dashboard-profile-mini .status-badge {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  margin: 5px 0 3px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #0f5132;
  font-size: 0.68rem;
  font-weight: 900;
}

.dashboard-profile-mini .status-badge.guest {
  background: #f8fbef;
  color: #526b13;
}

.dashboard-profile-mini small {
  display: block;
}

.dashboard-menu {
  gap: 5px;
}

.dashboard-menu-item {
  min-height: 40px;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 13px;
  color: #435249;
  font-size: 0.88rem;
  font-weight: 800;
}

.dashboard-menu-item.active,
.dashboard-menu-item:hover,
.dashboard-menu-item:focus-visible {
  background: linear-gradient(180deg, #ecfdf3, #f7fffb);
  color: #0f5132;
  box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.08);
  transform: translateX(2px);
}

.sidebar-glasses-panel {
  padding: 16px;
  border-radius: 20px;
  box-shadow: none;
}

.dashboard-main {
  gap: 16px;
  padding: 22px 26px 18px;
}

.dashboard-topbar {
  align-items: center;
  min-height: 68px;
  padding: 2px 0 8px;
}

.dashboard-topbar h1 {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  font-size: 1.72rem;
  letter-spacing: 0;
}

.dashboard-topbar p {
  margin-top: 5px;
  color: #5a6961;
  font-size: 0.94rem;
}

.dashboard-topbar-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 999px;
  background: #ecfdf3;
  color: #0f5132;
  font-size: 0.72rem;
  font-weight: 900;
  vertical-align: 3px;
}

.dashboard-guest-mode .dashboard-topbar-badge {
  background: #f8fbef;
  color: #526b13;
}

.dashboard-search {
  width: min(330px, 38vw);
  min-height: 42px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(17, 54, 36, 0.045);
}

.notification-button {
  display: none;
}

.dashboard-actions time {
  padding: 9px 12px;
  border: 1px solid rgba(15, 81, 50, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
}

.dashboard-mode-card {
  min-height: 58px;
  padding: 12px 14px;
  border-color: rgba(15, 81, 50, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(17, 54, 36, 0.055);
}

.dashboard-mode-card strong {
  font-size: 0.94rem;
}

.dashboard-mode-card p {
  margin-top: 2px;
  font-size: 0.84rem;
}

.mode-badge {
  margin: 0 0 6px;
  padding: 5px 9px;
  background: #f8fbef;
  color: #526b13;
  font-size: 0.68rem;
}

.dashboard-login-save {
  min-height: 36px;
  border-radius: 999px;
}

.stats-grid {
  gap: 14px;
}

.dash-card,
.feature-tile,
.dashboard-update-card {
  border-color: rgba(15, 81, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(17, 54, 36, 0.065);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.dash-card:hover,
.dashboard-update-card:hover {
  border-color: rgba(15, 81, 50, 0.15);
  box-shadow: 0 22px 54px rgba(17, 54, 36, 0.095);
  transform: translateY(-3px);
}

.stat-card {
  min-height: 132px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.stat-icon {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 16px;
  color: #ffffff;
  font-size: 0;
}

.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.stat-icon::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.stat-icon-calorie::before {
  width: 15px;
  height: 22px;
  border-radius: 14px 14px 14px 4px;
  transform: rotate(34deg);
}

.stat-icon-calorie::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(5px, -9px);
}

.stat-icon-steps::before {
  width: 10px;
  height: 16px;
  border-radius: 999px;
  transform: translate(-6px, 4px) rotate(-16deg);
}

.stat-icon-steps::after {
  width: 10px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translate(7px, -4px) rotate(16deg);
}

.stat-icon-weight::before {
  width: 20px;
  height: 18px;
  border-radius: 8px;
}

.stat-icon-weight::after {
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-5px);
}

.stat-icon-sleep::before {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px -4px 0 0 rgba(168, 85, 247, 1);
  transform: translate(-2px, 2px);
}

.stat-card p {
  font-size: 0.82rem;
}

.stat-card strong {
  margin: 2px 0;
  font-size: 1.48rem;
}

.stat-card small,
.stat-card > div > span {
  font-size: 0.78rem;
}

.stat-progress {
  gap: 10px;
}

.stat-progress > span,
.adequacy-row div {
  height: 7px;
}

.nutrition-card,
.meal-scan-card,
.program-card,
.doctor-card,
.chatbot-card {
  padding: 18px;
}

.card-heading {
  margin-bottom: 14px;
}

.card-heading h2 {
  font-size: 1rem;
}

.dashboard-guest-mode .stat-card::after,
.dashboard-guest-mode .nutrition-card::after,
.dashboard-guest-mode .meal-scan-card::after,
.dashboard-guest-mode .program-card::after,
.dashboard-guest-mode .dashboard-update-card summary::before {
  display: none;
}

.dashboard-guest-mode .meal-scan-card .card-heading::after {
  content: "Demo";
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fbef;
  color: #526b13;
  font-size: 0.68rem;
  font-weight: 900;
}

.nutrition-card-body {
  grid-template-columns: 150px minmax(180px, 0.78fr) minmax(220px, 1fr);
  gap: 18px;
}

.nutrition-donut {
  width: 138px;
  height: 138px;
}

.nutrition-donut strong {
  font-size: 1.55rem;
}

.nutrition-legend {
  gap: 10px;
}

.nutrition-legend p {
  grid-template-columns: 12px minmax(86px, 1fr) auto;
  gap: 8px;
  font-size: 0.84rem;
}

.nutrition-adequacy {
  gap: 11px;
  padding: 16px;
  border-radius: 18px;
  background: #f7faf8;
}

.meal-row {
  min-height: 66px;
  padding: 9px;
  border-radius: 16px;
}

.meal-row small {
  color: #697970;
}

.program-body {
  grid-template-columns: 0.86fr 1.14fr;
  gap: 14px;
}

.program-list p {
  min-height: 44px;
  padding: 10px;
  border-radius: 14px;
}

.doctor-card .card-heading span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #0f5132;
}

.doctor-illustration,
.robot-illustration {
  position: relative;
  font-size: 0;
}

.doctor-illustration::before,
.robot-illustration::before {
  content: "";
  width: 42px;
  height: 42px;
  display: block;
  border: 2px solid #0f5132;
  border-radius: 16px;
}

.doctor-illustration::after,
.robot-illustration::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f5132;
  transform: translateY(12px);
}

.chatbot-actions button {
  min-height: 34px;
  border-color: rgba(15, 81, 50, 0.12);
  background: #f7faf8;
  color: #0f5132;
}

.dashboard-update-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-update-card {
  border-radius: 18px;
}

.dashboard-update-card-wide {
  grid-column: span 2;
}

.dashboard-update-card summary {
  min-height: 42px;
  padding: 10px 12px;
  color: #0f3d28;
  font-size: 0.82rem;
}

.dashboard-guest-mode .dashboard-update-card summary {
  color: #0f3d28;
}

.dashboard-update-card form {
  gap: 9px;
  padding: 0 12px 12px;
}

.dashboard-update-card button {
  border-radius: 999px;
  background: #0f5132;
}

.dashboard-update-card button.guest-save-button {
  background: #0f5132;
}

.save-login-modal {
  background: rgba(6, 32, 22, 0.24);
}

.save-login-dialog {
  width: min(440px, 100%);
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(11, 47, 31, 0.18);
}

.save-login-dialog h2 {
  font-size: 1.22rem;
}

.save-login-actions .primary-button,
.save-login-actions .secondary-button,
.save-login-actions .ghost-button {
  border-radius: 999px;
}

@media (max-width: 1320px) {
  .stats-grid,
  .dashboard-update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid-secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .dashboard-page .giziku-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    height: auto;
  }

  .dashboard-topbar,
  .dashboard-actions {
    align-items: stretch;
  }

  .dashboard-search {
    width: 100%;
  }

  .dashboard-update-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .dashboard-main {
    padding: 16px 12px 12px;
  }

  .stats-grid,
  .dashboard-update-grid,
  .nutrition-card-body,
  .program-body,
  .doctor-body,
  .chatbot-body,
  .bottom-feature-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar h1 {
    font-size: 1.5rem;
  }

  .dashboard-topbar-badge {
    margin-top: 8px;
  }
}

/* App polish: calmer spacing and semantic sidebar icons */
.app-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 246, 224, 0.82), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(218, 247, 244, 0.72), transparent 30%),
    linear-gradient(145deg, #fbfdfa 0%, #f5fbf7 48%, #fffdf6 100%);
}

.app-body .app-shell {
  grid-template-columns: 276px minmax(0, 1fr);
}

.app-body .app-sidebar {
  padding: 24px 18px 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 14px 0 44px rgba(15, 63, 43, 0.055);
}

.app-body .dashboard-menu {
  gap: 6px;
}

.app-body .dashboard-menu-item {
  min-height: 44px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #415248;
  font-size: 0.9rem;
  font-weight: 820;
}

.app-body .dashboard-menu-item.active,
.app-body .dashboard-menu-item:hover,
.app-body .dashboard-menu-item:focus-visible {
  background: linear-gradient(180deg, rgba(236, 253, 243, 0.98), rgba(248, 255, 251, 0.96));
  color: #0f5132;
  box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.09), 0 10px 24px rgba(15, 81, 50, 0.055);
}

.app-body .dashboard-menu-item::before {
  left: 0;
  width: 3px;
  background: #18a058;
}

.app-body .nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: #56806a;
}

.app-body .dashboard-menu-item.active .nav-icon,
.app-body .dashboard-menu-item:hover .nav-icon,
.app-body .dashboard-menu-item:focus-visible .nav-icon {
  color: #13743d;
}

.app-body .nav-icon::before {
  width: 21px;
  height: 21px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--icon-mask, var(--icon-dashboard)) center / contain no-repeat;
  mask: var(--icon-mask, var(--icon-dashboard)) center / contain no-repeat;
}

.app-body .nav-icon::after {
  display: none;
}

.app-body .nav-icon-dashboard {
  --icon-mask: var(--icon-dashboard);
}

.app-body .nav-icon-health {
  --icon-mask: var(--icon-health);
}

.app-body .nav-icon-chart {
  --icon-mask: var(--icon-chart);
}

.app-body .nav-icon-scan {
  --icon-mask: var(--icon-scan);
}

.app-body .nav-icon-menu {
  --icon-mask: var(--icon-food);
}

.app-body .nav-icon-learn {
  --icon-mask: var(--icon-book);
}

.app-body .nav-icon-target {
  --icon-mask: var(--icon-target);
}

.app-body .nav-icon-ar {
  --icon-mask: var(--icon-glasses);
}

.app-body .nav-icon-care {
  --icon-mask: var(--icon-care);
}

.app-body .nav-icon-settings {
  --icon-mask: var(--icon-settings);
}

.app-body .nav-icon-info {
  --icon-mask: var(--icon-info);
}

.app-body .nav-icon-login {
  --icon-mask: var(--icon-login);
}

.app-body .nav-icon-search {
  --icon-mask: var(--icon-search);
}

:root {
  --icon-dashboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v7h-7v-7Z'/%3E%3C/svg%3E");
  --icon-health: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3h4v7h7v4h-7v7h-4v-7H3v-4h7V3Z'/%3E%3C/svg%3E");
  --icon-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 13h3v8H5v-8Zm6-10h3v18h-3V3Zm6 6h3v12h-3V9Z'/%3E%3C/svg%3E");
  --icon-scan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM4 14h2v4h4v2H4v-6Zm14 0h2v6h-6v-2h4v-4ZM8 8h8v8H8V8Z'/%3E%3C/svg%3E");
  --icon-food: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8ZM4 3h2v18H4V3Zm16 0v18h-2v-7h-2V7c0-2.2 1.6-4 4-4Z'/%3E%3C/svg%3E");
  --icon-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v17H7a3 3 0 0 0-3 3V4.5ZM7 5v10h10V5H7Zm0 12h13v3H7a1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E");
  --icon-target: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 3a7 7 0 1 1 0 14 7 7 0 0 1 0-14Zm0 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E");
  --icon-glasses: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 8h5.5A4.5 4.5 0 0 1 13 12.5v1A4.5 4.5 0 0 1 8.5 18h-1A4.5 4.5 0 0 1 3 13.5V8Zm13.5 0H22v5.5a4.5 4.5 0 0 1-4.5 4.5h-1a4.5 4.5 0 0 1 0-9ZM8 11H6v2.5A1.5 1.5 0 0 0 7.5 15h1a1.5 1.5 0 0 0 0-3H8v-1Zm8 0v1h-.5a1.5 1.5 0 0 0 0 3h1A1.5 1.5 0 0 0 18 13.5V11h-2Zm-6 1h4v2h-4v-2Z'/%3E%3C/svg%3E");
  --icon-care: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1.5 5v3.5H17v3h-3.5V17h-3v-3.5H7v-3h3.5V7h3Z'/%3E%3C/svg%3E");
  --icon-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h8v2H4V6Zm11-2h5v6h-5V4ZM4 16h5v2H4v-2Zm8-2h8v6h-8v-6ZM9 5h2v4H9V5Zm0 10h2v4H9v-4Z'/%3E%3C/svg%3E");
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 8h2.4v8h-2.4v-8ZM12 6a1.4 1.4 0 1 1 0 2.8A1.4 1.4 0 0 1 12 6Z'/%3E%3C/svg%3E");
  --icon-login: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h9v3h-6v10h6v3H4V4Zm11 3 5 5-5 5v-3H10v-4h5V7Z'/%3E%3C/svg%3E");
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.5 3a7.5 7.5 0 0 1 5.92 12.1l4.24 4.24-2.12 2.12-4.24-4.24A7.5 7.5 0 1 1 10.5 3Zm0 3a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E");
}

.app-body .app-main {
  gap: 24px;
  padding: 30px clamp(24px, 3vw, 42px) 28px;
}

.app-body .app-topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(15, 81, 50, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 52px rgba(17, 54, 36, 0.075);
}

.app-body .app-topbar h1 {
  margin: 0;
  color: #092116;
  font-size: clamp(1.65rem, 2.15vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.app-body .app-topbar p {
  max-width: 660px;
  margin: 7px 0 0;
  color: #5a6a61;
  font-size: 0.95rem;
}

.app-body .app-topbar-actions {
  align-items: center;
  gap: 12px;
}

.app-body .dashboard-search {
  min-height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.app-body .dashboard-search .nav-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: #4e715e;
}

.app-body .dashboard-search .nav-icon::before {
  width: 18px;
  height: 18px;
}

.app-body .app-content {
  padding-top: 2px;
}

.app-body .app-content .tool-layout,
.app-body .app-content .nutrition-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 22px;
}

.app-body .app-content .card,
.app-body .app-card {
  border-radius: 28px;
  border-color: rgba(15, 81, 50, 0.085);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 58px rgba(17, 54, 36, 0.075);
}

.app-body .app-content .tool-form,
.app-body .app-content .nutrition-form {
  gap: 0;
  padding: clamp(22px, 2.4vw, 32px);
}

.app-body .app-content .tool-form label,
.app-body .app-content .nutrition-form label {
  margin: 2px 0 9px;
  color: #13231b;
  font-size: 0.92rem;
  font-weight: 860;
}

.app-body .app-content .tool-form input,
.app-body .app-content .tool-form select,
.app-body .app-content .tool-form textarea,
.app-body .app-content .nutrition-form input[type="text"],
.app-body .app-content .nutrition-form input[type="number"] {
  min-height: 56px;
  margin-bottom: 18px;
  padding: 14px 17px;
  border-radius: 18px;
  background: rgba(250, 253, 251, 0.94);
}

.app-body .app-content .checkbox-group {
  gap: 11px;
  margin: 2px 0 22px;
}

.app-body .app-content .checkbox-item {
  min-height: 48px;
  border-radius: 18px;
  background: rgba(250, 253, 251, 0.9);
}

.app-body .app-content .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-body .app-content .button-row .primary-button,
.app-body .app-content .button-row .secondary-button {
  min-height: 50px;
  flex: 1 1 220px;
  border-radius: 999px;
}

.app-body .app-content .result-card {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 100%;
  padding: clamp(24px, 2.4vw, 34px);
}

.app-body .app-content .result-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  overflow: visible;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fffb, #e8f8ef);
  color: #0f5132;
  box-shadow: inset 0 0 0 1px rgba(15, 81, 50, 0.1), 0 14px 28px rgba(15, 81, 50, 0.08);
}

.app-body .app-content .result-icon::before {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--icon-chart) center / contain no-repeat;
  mask: var(--icon-chart) center / contain no-repeat;
}

.app-body .app-content .result-icon::after {
  display: none;
}

.app-body .app-content .score-number {
  margin: 8px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.app-body .app-content .advice-box {
  width: 100%;
  margin-top: 24px;
  border-radius: 24px;
  background: rgba(247, 252, 249, 0.9);
}

@media (max-width: 1180px) {
  .app-body .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .app-body .app-main {
    padding: 24px;
  }

  .app-body .app-content .tool-layout,
  .app-body .app-content .nutrition-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .app-body .app-shell {
    display: block;
  }

  .app-body .app-main {
    padding: 16px;
  }

  .app-body .app-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
    gap: 13px;
    padding: 14px;
    border-radius: 24px;
  }

  .app-body .app-topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .app-body .app-main {
    padding: 12px;
  }

  .app-body .app-topbar {
    border-radius: 22px;
  }

  .app-body .app-topbar h1 {
    font-size: 1.42rem;
  }

  .app-body .app-content .tool-form,
  .app-body .app-content .nutrition-form,
  .app-body .app-content .result-card {
    padding: 20px;
  }
}

/* Dashboard settings and visibility fixes */
[hidden],
.dashboard-mode-card[hidden],
.dashboard-login-save[hidden] {
  display: none !important;
}

.dashboard-settings-panel {
  scroll-margin-top: 120px;
  padding: 20px;
}

.settings-page-section {
  display: grid;
  gap: 18px;
}

.settings-page-section .form-message {
  margin: 0;
}

.dashboard-settings-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.dashboard-settings-heading h2 {
  margin: 4px 0 4px;
  color: #081f15;
  font-size: 1.15rem;
  font-weight: 920;
  letter-spacing: 0;
}

.dashboard-settings-heading p {
  max-width: 640px;
  margin: 0;
  color: #64746b;
  font-size: 0.9rem;
}

.dashboard-profile-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-photo-control {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(15, 81, 50, 0.09);
  border-radius: 22px;
  background: rgba(247, 252, 249, 0.86);
}

.profile-avatar-preview {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 26px;
  background: linear-gradient(160deg, #dcfce7, #ffffff);
  box-shadow: 0 14px 30px rgba(17, 54, 36, 0.08);
}

.profile-avatar-preview span {
  width: 28px;
  height: 28px;
  border: 2px solid #0f5132;
  border-radius: 999px;
}

.profile-photo-control strong,
.profile-photo-control p {
  display: block;
  margin: 0;
}

.profile-photo-control strong {
  color: #0f2c20;
  font-size: 0.98rem;
  font-weight: 920;
}

.profile-photo-control p {
  margin-top: 4px;
  color: #64746b;
  font-size: 0.86rem;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.profile-photo-button {
  position: relative;
  overflow: hidden;
}

.profile-photo-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dashboard-profile-settings-form label {
  display: grid;
  gap: 7px;
  color: #20342a;
  font-size: 0.84rem;
  font-weight: 850;
}

.dashboard-profile-settings-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 81, 50, 0.12);
  border-radius: 16px;
  background: rgba(247, 252, 249, 0.94);
  color: #102017;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-profile-settings-form input:focus {
  border-color: rgba(22, 163, 74, 0.44);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.dashboard-profile-settings-wide,
.dashboard-profile-settings-form button {
  grid-column: 1 / -1;
}

.dashboard-profile-settings-form button {
  justify-self: start;
  min-width: 190px;
  margin-top: 4px;
}

.settings-about-panel {
  padding: 20px;
}

.settings-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-about-grid > div {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(15, 81, 50, 0.09);
  border-radius: 18px;
  background: rgba(247, 252, 249, 0.84);
}

.settings-about-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #0f2c20;
  font-size: 0.92rem;
  font-weight: 900;
}

.settings-about-grid p {
  margin: 0;
  color: #617268;
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .dashboard-profile-settings-form {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-settings-form button {
    width: 100%;
  }

  .profile-photo-control {
    grid-template-columns: 1fr;
  }

  .settings-about-grid {
    grid-template-columns: 1fr;
  }
}
