:root {
  color-scheme: light;
  --bg: #edf2ea;
  --bg-alt: #f8f4eb;
  --surface: #ffffff;
  --surface-soft: #f6faf4;
  --line: rgba(39, 57, 42, 0.1);
  --text: #203027;
  --muted: #667868;
  --brand: #2f7a4f;
  --brand-deep: #194c2d;
  --brand-strong: #215d39;
  --brand-soft: rgba(47, 122, 79, 0.12);
  --accent: #efc984;
  --accent-soft: rgba(239, 201, 132, 0.18);
  --shadow: 0 4px 12px rgba(34, 54, 39, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1511;
  --bg-alt: #161d18;
  --surface: #1b231e;
  --surface-soft: #222b25;
  --line: rgba(231, 241, 234, 0.1);
  --text: #edf5ee;
  --muted: #acbeb0;
  --brand: #56b377;
  --brand-deep: #dcf6e4;
  --brand-strong: #86d59f;
  --brand-soft: rgba(86, 179, 119, 0.18);
  --accent: #d7a259;
  --accent-soft: rgba(215, 162, 89, 0.18);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, p, ul {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

img, select, input, button {
  max-width: 100%;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

/* === APP SHELL === */
.app-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 10px 100px;
  overflow: hidden;
}

/* === HEADER & COMPACT BRAND ROW === */
.app-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.app-header--pwa {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(var(--bg-rgb, 237, 242, 234), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 0 4px;
}

.app-bar {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  font-size: 22px;
  color: var(--brand);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-action-btn {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-strong);
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.header-action-btn--wide {
  border-radius: 999px !important;
  width: auto !important;
  padding: 0 14px;
  gap: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.header-action-btn--wide span:last-child {
  font-size: 0.78rem;
}

/* === COLLAPSIBLE SETTINGS PANEL === */
.settings-panel {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.settings-panel--collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-color: transparent;
  margin-bottom: 0;
}

.settings-panel--expanded {
  max-height: 250px;
  opacity: 1;
  padding: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

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

.language-switcher,
.mode-switcher,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.language-switcher__label,
.mode-switcher__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.language-switcher__buttons,
.mode-switcher__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.lang-button,
.mode-button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: all 0.2s ease;
}

.lang-button--active,
.mode-button--active {
  color: #fff !important;
  background: var(--brand) !important;
}

/* === HERO SECTION === */
.hero-section {
  padding: 12px 6px 16px;
}

.eyebrow,
.section-kicker,
.sticky-ad__label,
.action-card__label,
.static-ad-slot__badge {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

h1 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
}

.app-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* === TAB CONTROLLER & TRANSITIONS === */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content--active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* === BOTTOM NAVIGATION BAR === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(var(--surface-rgb, 255, 255, 255), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 680px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* RGB helpers for Backdrop Blurs */
:root {
  --surface-rgb: 255, 255, 255;
  --bg-rgb: 237, 242, 234;
}

html[data-theme="dark"] {
  --surface-rgb: 27, 35, 30;
  --bg-rgb: 15, 21, 17;
}

.bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  flex: 1;
  height: 100%;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 3px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 0;
}

.bottom-nav__link .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
  transition: all 0.2s ease;
}

.bottom-nav__link--active {
  color: var(--brand);
}

.bottom-nav__link--active .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 20;
  transform: translateY(-2px);
}

/* === STATIC AD BANNER SLOTS === */
.static-ad-slot {
  background: var(--surface-soft);
  border: 1px dashed var(--brand-strong);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.static-ad-slot__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brand-strong);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-bottom-left-radius: 10px;
  letter-spacing: 0.05em;
  margin: 0;
}

.static-ad-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.static-ad-banner:hover {
  opacity: 0.9;
}

.static-ad-banner .material-symbols-rounded {
  font-size: 26px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  padding: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.static-ad-banner div {
  min-width: 0;
}

.static-ad-banner strong {
  display: block;
  font-size: 0.88rem;
  color: var(--brand-deep);
  margin-bottom: 2px;
  font-weight: 700;
}

.static-ad-banner p {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

.static-ad-banner--alternative .material-symbols-rounded {
  color: var(--accent);
  background: var(--accent-soft);
}

.static-ad-banner--alternative strong {
  color: var(--text);
}

/* === STATUS PILLS / CHIPS === */
.status-pill,
.chip,
.summary-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.status-pill,
.chip {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.summary-card__badge,
.chip--muted {
  background: var(--accent-soft);
  color: var(--text);
}

.status-pill .material-symbols-rounded,
.summary-card__badge .material-symbols-rounded,
.section-nav__link .material-symbols-rounded,
.sticky-ad__label .material-symbols-rounded {
  font-size: 16px;
}

.status-pill--button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* === MAIN FLOW === */
.mobile-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === STEP CARDS === */
.step-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.step-card--highlight {
  background: var(--surface-soft);
}

.step-heading {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.step-number .material-symbols-rounded {
  font-size: 20px;
}

/* === QUICK START === */
.quick-start-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.input-shell__icon {
  color: var(--brand-strong);
  font-size: 18px;
  flex-shrink: 0;
}

select, input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 12px 0;
  font: inherit;
  color: var(--text);
  background: transparent;
  outline: none;
}

.mini-summary {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.mini-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* === SUMMARY CARD === */
.summary-card {
  background: var(--surface-soft);
}

.summary-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-panel__cover {
  width: 100%;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.summary-panel__image:hover {
  transform: scale(1.03);
}

.tab-cover {
  width: 100%;
  height: 130px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.tab-cover__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tab-cover__image:hover {
  transform: scale(1.02);
}

.summary-panel__hero {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.summary-panel__hero h3 {
  margin-bottom: 4px;
}

.summary-panel__meta,
.summary-panel__note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.summary-panel__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.summary-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.summary-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.action-card--primary {
  background: var(--surface-soft);
}

.action-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

/* === SECTION NAV === */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.section-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-nav__link:hover,
.section-nav__link:focus-visible {
  color: var(--brand-deep);
  background: var(--brand-soft);
  outline: none;
}

.section-nav__link--active {
  color: #fff;
  background: var(--brand);
}

.section-nav__link .material-symbols-rounded {
  font-size: 16px;
  flex-shrink: 0;
}

.section-nav__link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === SETUP / PREP GRID === */
.crop-overview {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  margin-bottom: 10px;
}

.crop-overview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.prep-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.card-icon .material-symbols-rounded {
  font-size: 18px;
}

.info-card h3 {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.simple-list {
  margin: 0;
  padding-left: 16px;
}

.simple-list li {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* === CONTEXT / AFFILIATE === */
.context-block {
  margin-top: 12px;
  overflow: hidden;
}

.context-block__header {
  margin-bottom: 8px;
}

.context-block__header h3 {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.context-block__header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.affiliate-carousel,
.care-carousel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.affiliate-carousel__topbar,
.care-carousel__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.affiliate-carousel__controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.carousel-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand-strong);
  cursor: pointer;
}

.carousel-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.affiliate-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.affiliate-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 122, 79, 0.2);
  cursor: pointer;
}

.affiliate-dot--active {
  width: 20px;
  background: var(--brand);
}

.affiliate-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.affiliate-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
}

.affiliate-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef5ef;
}

.affiliate-card__body {
  padding: 10px;
  overflow-wrap: anywhere;
}

.affiliate-card__body h3 {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.affiliate-card__body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* === HOWTO ACCORDION === */
.howto-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.howto-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.howto-card__header {
  width: 100%;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.howto-card__meta {
  min-width: 0;
}

.howto-card__meta .chip-row {
  margin-top: 0;
  margin-bottom: 6px;
}

.howto-card__meta h3 {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.howto-card__chevron {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.howto-card__content {
  display: none;
  margin-top: 10px;
}

.howto-card--open .howto-card__content {
  display: block;
}

.howto-card--open .howto-card__chevron {
  transform: rotate(180deg);
  color: var(--brand-strong);
}

/* === TIMELINE / CARE === */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.timeline-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.timeline-card h3 {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.timeline-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* === HARVEST === */
.harvest-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.harvest-card h3 {
  margin-bottom: 6px;
}

.harvest-card p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* === UTILITY BAR (Perlu Barang) === */
.utility-bar-wrap {
  position: fixed;
  bottom: 74px; /* Floats perfectly above bottom-nav */
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0 12px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 680px;
  transition: all 0.3s ease;
}

.sticky-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(var(--surface-rgb, 255, 255, 255), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: inherit;
  max-width: 100%;
  position: relative;
}

.sticky-ad__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.sticky-ad__image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sticky-ad__body {
  min-width: 0;
  flex: 1;
  padding-right: 18px; /* Room for the X button */
}

.sticky-ad__body strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-weight: 700;
  color: var(--text);
}

.sticky-ad__cta {
  display: none; /* Merged into badge style */
}

.sticky-ad__close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.sticky-ad__close:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.sticky-ad__close .material-symbols-rounded {
  font-size: 16px;
}

/* === DESKTOP === */
@media (min-width: 768px) {
  .app-shell {
    max-width: 940px;
    padding: 14px 14px 112px;
  }

  .app-header--pwa {
    position: sticky;
  }

  .top-controls--topmost,
  .top-controls--panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .app-bar {
    padding: 18px;
    border-radius: 28px;
  }

  .brand-mark {
    display: inline-flex;
    width: 56px;
    height: 56px;
    background: var(--brand-soft);
    color: var(--brand-strong);
  }

  .brand-mark .material-symbols-rounded {
    font-size: 28px;
  }

  .brand-lockup {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: start;
  }

  .app-bar__status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }

  .quick-start-grid {
    flex-direction: row;
  }

  .quick-start-grid .field {
    flex: 1;
  }

  .summary-panel__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

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


  .section-nav {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    border-radius: 999px;
  }

  .affiliate-carousel__topbar,
  .care-carousel__topbar {
    display: none;
  }

  .affiliate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .affiliate-card__image {
    aspect-ratio: 1 / 1;
  }

  .timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .utility-bar-wrap {
    display: flex;
    justify-content: center;
  }

  .sticky-ad {
    max-width: 900px;
  }
}

/* === PWA UPDATE TOAST === */
.pwa-update-toast {
  position: fixed;
  bottom: 84px; /* Floating over bottom nav */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  background: rgba(26, 74, 45, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  animation: pwaToastSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaToastSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.pwa-update-toast__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-update-toast__icon {
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
}

.pwa-update-toast__body {
  flex-grow: 1;
  color: #fff;
}

.pwa-update-toast__body strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.pwa-update-toast__body p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.3;
}

.pwa-update-toast__btn {
  background: #fff;
  color: #1a4a2d;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.pwa-update-toast__btn:hover {
  opacity: 0.9;
}

/* === MOBILE APP HEADER RESPONSIVE COLLAPSE === */
@media (max-width: 440px) {
  #install-app-label,
  #settings-btn-text,
  #contact-btn-text {
    display: none;
  }
  
  .header-actions {
    gap: 6px;
  }
  
  .header-action-btn--wide {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    gap: 0 !important;
  }
}

/* === PEST & DISEASE CONTROL TAB STYLES === */
.pest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

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

.pest-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.pest-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pest-card__icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(47, 122, 79, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pest-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.pest-card__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.pest-card__control {
  background: rgba(47, 122, 79, 0.04);
  border-left: 3px solid var(--primary);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0;
}

.pest-card__control strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.pest-card__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.pest-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.03);
}

.pest-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pest-image:hover {
  transform: scale(1.04);
}

.pest-image-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

/* === APP FOOTER STYLES === */
.app-footer {
  text-align: center;
  padding: 24px 16px 48px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.app-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.03em;
}

/* === MILESTONE GANTT CHART === */
.milestone-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-sizing: border-box;
}

.milestone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 16px;
}

@media (max-width: 480px) {
  .milestone-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: flex-start;
  }
}

.milestone-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.milestone-bar-container {
  position: relative;
  height: 28px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.milestone-bar {
  position: absolute;
  height: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 10px;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.milestone-bar--semai {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.milestone-bar--pindah {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.milestone-bar--vegetatif {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.milestone-bar--pembungaan {
  background: linear-gradient(135deg, #f472b6, #ec4899);
}

.milestone-bar--pembesaran {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.milestone-bar--tuai {
  background: linear-gradient(135deg, #059669, #047857);
}

.milestone-header {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

@media (max-width: 480px) {
  .milestone-header {
    display: none;
  }
}

.milestone-weeks-grid {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ============================================================
   EXTRA INFO — 7 Enrichment Elements
   ============================================================ */

.extra-info-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border-radius: 12px;
  border-left: 3px solid var(--brand);
}

.extra-info-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.extra-info-badge__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.extra-info-badge div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.extra-info-badge__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.extra-info-badge__value {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
}

.extra-info-card {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.extra-info-card__header {
  padding: 8px 14px;
  background: var(--brand-soft);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .extra-info-card__header {
  color: var(--brand);
}

.extra-info-card__body {
  padding: 10px 14px;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.extra-info-card .simple-list {
  padding: 0 14px 10px 28px;
  margin: 0;
}

.extra-info-card .simple-list li {
  font-size: 0.87rem;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--text);
}


.pest-extra-section {
  padding: 0 4px;
}

/* === WEEK SLIDER === */
.week-slider-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.week-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.week-slider-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-strong);
  white-space: nowrap;
  min-width: 70px;
}

.week-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--brand) 0%,
    var(--brand) calc(var(--pct, 0%) * 1%),
    var(--line) calc(var(--pct, 0%) * 1%),
    var(--line) 100%
  );
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}

.week-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 5px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.week-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.week-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 5px rgba(0,0,0,0.18);
  cursor: pointer;
}

/* === CARE TAB FERTILIZER PANEL === */
.care-fert-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.care-fert-panel:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.care-fert-panel__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.care-fert-panel__dose {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
}

.care-fert-panel__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

/* === UI/UX ENHANCEMENTS === */
.static-ad-banner img {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.static-ad-banner:hover img {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.week-slider::-webkit-slider-thumb {
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.15s ease !important;
}

.week-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.week-slider::-moz-range-thumb:hover {
  transform: scale(1.18);
}

.week-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--brand-soft), 0 1px 5px rgba(0, 0, 0, 0.18);
}

.week-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px var(--brand-soft), 0 1px 5px rgba(0, 0, 0, 0.18);
}

.active-fertilizer-step {
  background: var(--brand-soft) !important;
  border-left: 4px solid var(--brand) !important;
  border-radius: 8px;
  padding: 8px 12px !important;
  font-weight: 700;
  color: var(--brand-strong) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
  margin: 6px 0;
  list-style-type: none;
}

.simple-list li.active-fertilizer-step {
  padding-left: 12px;
}

/* === JADAM MASTER CARD STYLING === */
.jadam-master-card {
  background: linear-gradient(135deg, var(--surface-soft) 0%, var(--brand-soft) 100%);
  border: 1.5px solid var(--brand);
  border-radius: 18px;
  padding: 20px;
  margin-top: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.jadam-master-card__header {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--brand);
  padding-bottom: 8px;
}

.jadam-master-card__body {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
}

.jadam-master-card__section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jadam-recipe-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 6px 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.jadam-recipe-box strong {
  color: var(--brand-strong);
}

/* === CONTACT MODAL OVERLAY === */
.contact-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal-overlay.contact-modal--visible {
  visibility: visible;
  opacity: 1;
}

/* === CONTACT MODAL CONTENT BOX === */
.contact-modal-content {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-modal--visible .contact-modal-content {
  transform: scale(1);
}

/* === CONTACT MODAL HEADER === */
.contact-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
}

.contact-modal-header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-modal-header__icon {
  color: var(--brand-strong);
  font-size: 24px;
}

.contact-modal-header__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.contact-modal-close:hover {
  background: var(--brand-soft);
}

/* === CONTACT MODAL BODY === */
.contact-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.contact-modal-instructions {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 500;
}

/* === CONTACT EMAIL PILL BUTTON === */
.contact-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border: 2px solid var(--brand-strong);
  border-radius: 999px;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(47, 122, 79, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.contact-email-pill .material-symbols-rounded {
  font-size: 24px;
}

.contact-email-pill:hover {
  background: var(--brand-strong);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 122, 79, 0.25);
}

.contact-email-pill:active {
  transform: translateY(0);
}

/* === CONTACT MODAL DISCLAIMER === */
.contact-modal-disclaimer {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 10px;
  width: 100%;
}

.contact-modal-disclaimer__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.contact-modal-disclaimer__text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: justify;
}

/* === RESPONSIVE EMAIL PILL & MODAL BODY (MOBILE) === */
@media (max-width: 480px) {
  .contact-modal-overlay {
    padding: 12px;
  }

  .contact-modal-content {
    border-radius: 16px;
    max-width: 95%;
  }

  .contact-modal-header {
    padding: 16px 18px;
  }

  .contact-modal-body {
    padding: 16px 14px;
    gap: 16px;
  }

  .contact-email-pill {
    padding: 10px 18px;
    font-size: 0.95rem;
    gap: 8px;
    width: auto;
    max-width: 100%;
    justify-content: center;
  }

  .contact-email-pill .material-symbols-rounded {
    font-size: 20px;
  }

  .contact-modal-disclaimer__text {
    font-size: 0.75rem;
    text-align: center;
  }
}

/* === FLOATING TOAST SYSTEM === */
.toast-notification {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translate(-50%, 20px);
  width: 90%;
  max-width: 320px;
  background: var(--brand-strong);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(47, 122, 79, 0.25);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.toast-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-notification span.material-symbols-rounded {
  font-size: 20px;
  flex-shrink: 0;
}

