* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1F4D3A;
  background: #F5F4EF;
  --forest: #1F4D3A;
  --offwhite: #F5F4EF;
  --muted: #3a5948;
  --light: #FFFFFF;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(180deg, #F5F4EF 0%, #E8E6DF 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.hidden {
  display: none !important;
}

button {
  font: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--forest);
  color: var(--offwhite);
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 14px);
  gap: 6px;
  width: 54px;
  height: 18px;
  margin-right: 10px;
}

.brand-mark span {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  border-radius: 4px;
}

.brand-logo-mark {
  flex-shrink: 0;
  display: block;
  margin-right: 4px;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-note {
  font-size: 0.9rem;
  color: #d7e2d7;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.topbar-link {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--offwhite);
  color: var(--forest);
  font-weight: 700;
}

.summary-badge {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 244, 239, 0.95);
  color: var(--forest);
  font-weight: 600;
}

header.hero {
  padding: 30px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr minmax(320px, 420px);
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, #1F4D3A 0%, #173F31 100%);
  color: var(--offwhite);
}

.landing-hero {
  min-height: 70vh;
  align-items: center;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-button.secondary {
  background: transparent;
  color: var(--offwhite);
  border: 1px solid rgba(245, 244, 239, 0.4);
}

.feature-grid {
  display: grid;
  gap: 18px;
  padding: 40px 24px 60px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 16px 30px rgba(31, 77, 58, 0.06);
  padding: 28px;
}

.feature-card h3 {
  margin-top: 0;
  color: var(--forest);
}

.feature-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.login-card {
  padding: 32px;
  border-radius: 28px;
  background: #F5F4EF;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 26px 64px rgba(31, 77, 58, 0.08);
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--forest);
  font-weight: 600;
}

.login-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: #FFF;
}


.action-panel {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

footer {
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 760px) {
  .details-top {
    grid-template-columns: 1fr;
  }

  .option-cards {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .map-board {
    grid-template-columns: 1fr;
  }

  .fields-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .fields-list {
    grid-template-columns: 1fr;
  }

  .detail-hero h1 {
    font-size: 2rem;
  }

  .overview-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.05;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero h1 {
  max-width: 800px;
}

.hero-cta {
  display: grid;
  justify-items: start;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--offwhite);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(31, 77, 58, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(31, 77, 58, 0.14);
  background: #ffffff;
}

.field-summary-card {
  width: min(420px, 100%);
  padding: 26px;
  border-radius: 28px;
  background: rgba(245, 244, 239, 0.96);
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 24px 80px rgba(31, 77, 58, 0.16);
}

.placeholder-card {
  color: rgba(31, 77, 58, 0.55);
  background: rgba(245, 244, 239, 0.78);
}

.placeholder-card h2 {
  color: rgba(31, 77, 58, 0.75);
}

.field-summary-card h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.summary-meta,
.summary-highlight,
.summary-note {
  margin: 0;
}

.summary-highlight {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
}

.summary-note {
  margin-top: 10px;
  color: var(--muted);
}

main {
  padding: 0 24px 60px;
}

.section {
  margin-top: 36px;
}

.section-header {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0;
  font-size: 2rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.88), transparent 25%),
    linear-gradient(180deg, #F5F4EF 0%, #E8E6DF 100%);
}

.login-layout {
  width: min(980px, 96vw);
  padding: 24px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.auth-panel {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 75px rgba(31, 77, 58, 0.08);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 77, 58, 0.08);
}

.auth-info {
  padding: 40px;
  background: linear-gradient(180deg, rgba(31, 77, 58, 0.95), rgba(23, 63, 49, 0.95));
  color: var(--offwhite);
}

.auth-info .eyebrow,
.auth-info h1,
.auth-info p,
.auth-features div {
  color: var(--offwhite);
}

.auth-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
}

.auth-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
}

.auth-features {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  font-size: 0.96rem;
}

.auth-form-card {
  padding: 36px;
}

.auth-card-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--forest);
}

.auth-card-header p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--forest);
}

.auth-field span {
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  box-shadow: inset 0 1px 2px rgba(31, 77, 58, 0.05);
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(31, 77, 58, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.08);
}

.auth-submit {
  width: 100%;
  padding: 16px 22px;
  border-radius: 18px;
  border: none;
  background: var(--forest);
  color: var(--offwhite);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(31, 77, 58, 0.18);
}

.login-note {
  margin-top: 24px;
  color: var(--muted);
}

.login-note a {
  color: var(--forest);
  font-weight: 700;
}

@media (max-width: 860px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    width: min(580px, 94vw);
  }
}

.field-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(31, 77, 58, 0.12);
  background: #F5F4EF;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-card:hover,
.field-card.active {
  transform: translateY(-2px);
  border-color: rgba(31, 77, 58, 0.7);
  box-shadow: 0 16px 30px rgba(31, 77, 58, 0.16);
}

.field-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.field-card p {
  margin: 0;
  color: var(--muted);
}

.details-top {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr 0.8fr;
}

.info-panel,
.support-panel,
.action-panel {
  border-radius: 24px;
  background: #F5F4EF;
  border: 1px solid rgba(31, 77, 58, 0.12);
  padding: 24px;
}

.info-panel h3,
.support-panel h3,
.action-panel h3 {
  margin-top: 0;
}

.info-panel dl,
.support-panel ul {
  margin: 0;
}

.info-panel dl div,
.support-panel li {
  margin-bottom: 14px;
}

.info-panel dt {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.info-panel dd {
  margin: 6px 0 0;
  color: var(--forest);
  font-size: 1rem;
}

.support-panel ul {
  padding-left: 18px;
}

.support-panel li {
  color: var(--muted);
}

.option-cards {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.option-card {
  padding: 24px;
  border-radius: 24px;
  background: #F5F4EF;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 10px 30px rgba(31, 77, 58, 0.08);
}

.option-card.recommended {
  border-color: var(--forest);
  box-shadow: 0 14px 40px rgba(31, 77, 58, 0.16);
}

.option-card h3 {
  margin-top: 0;
}

.option-card dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.option-card dd {
  margin: 5px 0 16px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.price-row {
  display: grid;
  gap: 8px;
}

.footer {
  margin-top: 60px;
  padding: 20px 0;
}

footer {
  padding: 20px 24px 40px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  .details-top,
  .hero {
    display: block;
  }
}

.field-page,
.dashboard-page,
.auth-page,
.landing-page {
  max-width: 1180px;
  margin: 0 auto;
}

.field-hero,
.dashboard-hero {
  padding: 40px 24px;
  display: grid;
  gap: 24px;
}

.field-layout,
.overview-grid,
.details-grid,
.feature-grid {
  display: grid;
  gap: 24px;
}

.field-layout {
  grid-template-columns: 1.2fr 0.8fr;
  padding: 0 24px 60px;
}

.fields-section {
  padding: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.fields-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.fields-header h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--forest);
}

.add-field-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--offwhite);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-field-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.18);
}

.fields-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.field-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(31, 77, 58, 0.12);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
  color: var(--forest);
  box-shadow: 0 4px 12px rgba(31, 77, 58, 0.04);
}

.field-list-item:hover {
  background: #f8fbf7;
  border-color: rgba(31, 77, 58, 0.24);
  box-shadow: 0 8px 20px rgba(31, 77, 58, 0.08);
  transform: translateY(-2px);
}

.field-list-item-content h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
}

.field-list-item-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.field-list-stage {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(31, 77, 58, 0.1);
  color: var(--forest);
  font-weight: 600;
  white-space: nowrap;
}

.field-detail-page {
  max-width: 1180px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  opacity: 0.7;
}


.detail-content {
  padding: 24px;
  display: grid;
  gap: 24px;
}

.form-panel,
.field-panel,
.summary-card,
.metrics-card,
.detail-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 22px 54px rgba(31, 77, 58, 0.08);
  padding: 28px;
}

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

.form-field {
  display: grid;
  gap: 10px;
  color: var(--forest);
}

.form-field span {
  font-weight: 700;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: #f7f9f5;
}

.field-status-card {
  border-radius: 28px;
  background: #f8fbf7;
  border: 1px solid rgba(31, 77, 58, 0.1);
  padding: 32px;
  box-shadow: 0 24px 70px rgba(31, 77, 58, 0.08);
  max-width: 420px;
}

.field-status-card .status-label {
  margin: 0 0 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.field-status-card h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.field-status-card .status-copy {
  color: var(--muted);
  margin-bottom: 20px;
}

.field-status-card .status-link {
  display: inline-flex;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 700;
}

.overview-grid {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 24px;
}

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

.metric-card {
  border-radius: 22px;
  background: #f4faf0;
  padding: 20px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 1.6rem;
  color: var(--forest);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.snapshot-grid > div {
  border-bottom: 1px solid rgba(31,77,58,.07);
  padding: 10px 0;
}

.snapshot-grid > div:nth-last-child(-n+2) {
  border-bottom: none;
}

.detail-card dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.detail-card dd {
  margin: 4px 0 0;
  color: var(--forest);
  font-size: 1rem;
}

.field-panel .field-list-header,
.field-panel .draw-tip {
  margin-bottom: 24px;
}

.field-panel .draw-tip {
  font-size: 0.95rem;
  color: var(--muted);
}

.field-panel .draw-tip strong {
  display: block;
  margin-bottom: 8px;
}

.auth-panel.auth-info-card {
  padding: 40px;
  background: linear-gradient(180deg, rgba(31, 77, 58, 0.95), rgba(23, 63, 49, 0.95));
  color: var(--offwhite);
}

.auth-panel.auth-info-card .auth-copy,
.auth-panel.auth-info-card .auth-features,
.auth-panel.auth-info-card .eyebrow,
.auth-panel.auth-info-card h1,
.auth-panel.auth-info-card p {
  color: rgba(255, 255, 255, 0.92);
}

.auth-features {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.auth-features li {
  list-style: none;
}

.page-footer {
  padding: 40px 24px 80px;
  text-align: center;
  color: var(--muted);
}

.topbar.simple-bar {
  background: var(--forest);
  color: #ffffff;
  border-bottom: none;
}

.topbar.simple-bar .topbar-link {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 960px) {
  .field-layout,
  .overview-grid,
  .metric-grid,
  .details-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* ── Map page ────────────────────────────────────────────────────────────── */

.map-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.map-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-rows: 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #ffffff;
  border-right: 1px solid rgba(31, 77, 58, 0.1);
}

.sidebar-section {
  padding: 24px;
  flex: 1;
}

.sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-top h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--forest);
}

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

.empty-fields-msg {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.create-form-panel {
  border-top: 1px solid rgba(31, 77, 58, 0.1);
  padding: 20px 24px 28px;
  background: #f8fbf7;
}

.form-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.form-panel-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--forest);
}

.cancel-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.cancel-btn:hover {
  background: rgba(31, 77, 58, 0.08);
}

.sidebar-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.sidebar-form-grid .full-width {
  grid-column: 1 / -1;
}

.sidebar-submit {
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: var(--forest);
  color: var(--offwhite);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.2);
}

.map-container {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

#field-map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

.map-tip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31, 77, 58, 0.9);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* Custom field marker dot */
.field-marker-dot {
  width: 18px;
  height: 18px;
  background: var(--forest);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(31, 77, 58, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.field-marker:hover .field-marker-dot {
  transform: scale(1.25);
  box-shadow: 0 4px 14px rgba(31, 77, 58, 0.55);
}

/* Field marker hover tooltip */
.field-marker-tooltip {
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 6px 10px;
  box-shadow: 0 4px 12px rgba(31, 77, 58, 0.3);
  pointer-events: none;
}
.field-marker-tooltip::before {
  border-top-color: var(--forest) !important;
}

/* Leaflet popup polish */
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--forest);
  box-shadow: 0 12px 32px rgba(31, 77, 58, 0.16);
}

.details-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

/* ── Summary row ─────────────────────────────────────────────────────────── */

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 77, 58, 0.08);
  font-size: 0.95rem;
  color: var(--muted);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row strong {
  color: var(--forest);
  font-size: 1rem;
}

/* ── Farm stats bar ──────────────────────────────────────────────────────── */

.farm-stats-bar {
  display: flex;
  gap: 10px;
  margin: 0 24px 20px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(31, 77, 58, 0.1);
  box-shadow: 0 2px 8px rgba(31, 77, 58, 0.04);
  gap: 5px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.stat-value.stat-risk {
  color: #dc2626;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  opacity: .65;
}

/* ── Forecast strip ──────────────────────────────────────────────────────── */

.forecast-strip {
  display: flex;
  gap: 0;
  margin: 16px 24px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(31, 77, 58, 0.12);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(31, 77, 58, 0.06);
}

.forecast-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  gap: 4px;
  border-right: 1px solid rgba(31, 77, 58, 0.08);
  text-align: center;
}

.forecast-day:last-child {
  border-right: none;
}

.forecast-dow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.forecast-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin: 2px 0;
}

.forecast-high {
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest);
}

.forecast-low {
  font-size: 0.85rem;
  color: var(--muted);
}

.forecast-rain {
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 600;
}

.forecast-wind {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Yield history ───────────────────────────────────────────────────────── */

.yield-section {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 22px 54px rgba(31, 77, 58, 0.08);
}

.yield-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.yield-header h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.1rem;
}

.yield-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8fbf7;
  border-radius: 16px;
  border: 1px solid rgba(31, 77, 58, 0.1);
}

.yield-form-field {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest);
}

.yield-form-field input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--forest);
}

.yield-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 24px;
}

.yield-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.yield-table {
  display: grid;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 77, 58, 0.1);
}

.yield-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 80px 1fr;
  padding: 10px 16px;
  background: rgba(31, 77, 58, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.yield-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 80px 1fr;
  padding: 14px 16px;
  border-top: 1px solid rgba(31, 77, 58, 0.07);
  font-size: 0.95rem;
}
.yield-row-mismatch { background: rgba(220,38,38,.04); }
.sprayed-yes { color: #16a34a; font-weight: 600; }
.sprayed-no  { color: var(--muted); }

.yield-revenue {
  color: #1F4D3A;
  font-weight: 600;
}

.yield-sparkline-wrap {
  padding: 16px 16px 8px;
  border-bottom: 1px solid rgba(31, 77, 58, 0.08);
  margin-bottom: 4px;
}

.yield-sparkline-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.yield-sparkline {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.yield-year {
  font-weight: 700;
  color: var(--forest);
}

.yield-bushels {
  color: var(--forest);
}

.yield-trend {
  color: var(--muted);
  font-size: 0.88rem;
}

.trend-up { color: #16a34a; font-weight: 700; }
.trend-down { color: #dc2626; font-weight: 700; }

/* ── Weather card ────────────────────────────────────────────────────────── */

.weather-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.weather-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.weather-big-icon {
  font-size: 3.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.weather-big-temp {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.weather-condition-text {
  font-size: 1rem;
  color: var(--forest);
  font-weight: 600;
  margin-top: 4px;
}

.weather-feels {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.weather-updated {
  font-size: 0.7rem;
  color: rgba(58, 89, 72, 0.45);
  margin-top: 3px;
}

.weather-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weather-stat-box {
  background: #f4faf0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(31, 77, 58, 0.08);
}

.weather-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.weather-stat-box strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--forest);
}

/* ── Pricing section ─────────────────────────────────────────────────────── */

.compare-section {
  padding: 0 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.compare-grid {
  display: flex;
  align-items: center;
  gap: 24px;
}

.compare-card {
  flex: 1;
  border-radius: 20px;
  padding: 28px 32px;
  border: 1px solid rgba(31,77,58,.14);
}

.compare-other {
  background: #f8f8f8;
  opacity: 0.8;
}

.compare-verrdus {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
  box-shadow: 0 16px 48px rgba(31,77,58,.22);
}

.compare-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  color: var(--muted);
}

.compare-verrdus .compare-label {
  color: rgba(255,255,255,.6);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-list li {
  font-size: 0.95rem;
  padding-left: 18px;
  position: relative;
  color: #444;
}

.compare-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--muted);
}

.compare-verrdus .compare-list li {
  color: rgba(255,255,255,.85);
}

.compare-verrdus .compare-list li::before {
  color: #4ADE80;
  content: '✓';
}

.compare-outcome {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.compare-verrdus .compare-outcome {
  color: rgba(255,255,255,.9);
}

.compare-outcome strong {
  color: var(--forest);
}

.compare-verrdus .compare-outcome strong {
  color: #4ADE80;
}

.compare-vs {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--muted);
  flex-shrink: 0;
  letter-spacing: .05em;
}

@media (max-width: 640px) {
  .compare-grid { flex-direction: column; }
  .compare-vs { align-self: center; }
}

.pricing-section {
  padding: 60px 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--forest);
}

.pricing-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 36px 32px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(31, 77, 58, 0.14);
  box-shadow: 0 16px 40px rgba(31, 77, 58, 0.07);
}

.pricing-card-pro {
  border-color: var(--forest);
  box-shadow: 0 24px 60px rgba(31, 77, 58, 0.16);
}

.pricing-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--forest);
}

.pricing-features li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(31, 77, 58, 0.08);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pricing-cta:hover {
  background: rgba(31, 77, 58, 0.15);
  transform: translateY(-1px);
}

.pricing-cta-pro {
  background: var(--forest);
  color: #ffffff;
}

.pricing-cta-pro:hover {
  background: #173f31;
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.22);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* ── Risk badges ─────────────────────────────────────────────────────────── */

.field-risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.risk-low  { background: #22c55e; }
.risk-medium { background: #f59e0b; }
.risk-high { background: #ef4444; }

/* ── Delete button ───────────────────────────────────────────────────────── */

.field-delete-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.field-list-item:hover .field-delete-btn {
  opacity: 1;
}

.field-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Update field-list-item grid to fit new columns */
.field-list-item {
  grid-template-columns: auto 1fr auto auto;
}

/* ── Spray window banner ─────────────────────────────────────────────────── */

.spray-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 24px 0;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.spray-good {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.spray-caution {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
}

.spray-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Bar chart ───────────────────────────────────────────────────────────── */

.chart-section {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 22px 54px rgba(31, 77, 58, 0.08);
}

.chart-section h3 {
  margin: 0 0 28px;
  color: var(--forest);
  font-size: 1.1rem;
}

.bar-chart {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  height: 200px;
  padding-bottom: 4px;
}

.bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
  white-space: nowrap;
}

.bar-track {
  width: 100%;
  display: flex;
  align-items: flex-end;
  height: 160px;
}

.bar {
  width: 100%;
  background: rgba(31, 77, 58, 0.25);
  border-radius: 8px 8px 0 0;
  min-height: 6px;
  transition: height 0.4s ease;
}

.bar.bar-recommended {
  background: var(--forest);
}

.bar.bar-negative {
  background: #ef4444;
}

.bar-label {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.bar-label.bar-label-recommended {
  color: var(--forest);
}

.chart-note {
  margin: 20px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Edit modal ──────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 22, 0.6);
  backdrop-filter: blur(4px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade-in 0.2s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(15, 30, 22, 0.25);
  animation: modal-slide-in 0.25s ease;
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--forest);
}

.modal-close {
  border: none;
  background: rgba(31, 77, 58, 0.08);
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: rgba(31, 77, 58, 0.16);
  color: var(--forest);
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.modal-form-grid .full-col { grid-column: 1 / -1; }

.modal-field {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest);
}

.modal-field input,
.modal-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: #f8fbf7;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--forest);
}

.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: rgba(31, 77, 58, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.07);
}

.modal-stage-note {
  margin: -8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-save-btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--forest);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.2);
}

.modal-cancel-btn {
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(31, 77, 58, 0.2);
  background: transparent;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.edit-field-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  margin-top: 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 77, 58, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.edit-field-btn:hover {
  background: #ffffff;
  border-color: rgba(31, 77, 58, 0.4);
}

@media (max-width: 640px) {
  .modal-card { padding: 24px; }
  .modal-form-grid { grid-template-columns: 1fr; }
}

/* ── Toast notifications ─────────────────────────────────────────────────── */

#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--forest);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(31, 77, 58, 0.25);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.2s forwards;
  max-width: 320px;
  min-width: 180px;
}

.toast-error { background: #dc2626; }
.toast-warn  { background: #d97706; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ── Skeleton loading ────────────────────────────────────────────────────── */

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.skeleton {
  background: rgba(31, 77, 58, 0.1);
  border-radius: 8px;
  animation: skeleton-pulse 1.5s ease infinite;
  display: inline-block;
}

/* ── Scouting notes ──────────────────────────────────────────────────────── */

.scouting-section {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 22px 54px rgba(31, 77, 58, 0.08);
}

.scouting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.scouting-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--forest);
}

.scouting-form {
  background: #f8fbf7;
  border-radius: 20px;
  border: 1px solid rgba(31, 77, 58, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  display: grid;
  gap: 14px;
}

.scout-textarea {
  width: 100%;
  min-height: 90px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--forest);
  resize: vertical;
  line-height: 1.6;
  box-sizing: border-box;
}

.scout-textarea:focus {
  outline: none;
  border-color: rgba(31, 77, 58, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.06);
}

.scout-textarea::placeholder { color: rgba(58, 89, 72, 0.38); }

.scout-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scout-file-input { display: none; }

.scout-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(31, 77, 58, 0.08);
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.scout-photo-btn:hover { background: rgba(31, 77, 58, 0.14); }

.scout-photo-name {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.scout-photo-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(31, 77, 58, 0.1);
}

.scouting-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scout-empty {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  padding: 8px 0;
}

.scout-note-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(31, 77, 58, 0.07);
}

.scout-note-card:last-child { border-bottom: none; padding-bottom: 0; }

.scout-note-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(31, 77, 58, 0.1);
}

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

.scout-note-date {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  font-weight: 600;
}

.scout-note-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--forest);
  line-height: 1.6;
}

.scout-note-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 4px 7px;
  border-radius: 8px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  font-family: inherit;
}

.scout-note-card:hover .scout-note-delete { opacity: 1; }
.scout-note-delete:hover { opacity: 1; background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* ── Spray log ──────────────────────────────────────────────────────────── */

.spray-log-section {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(31, 77, 58, 0.12);
  box-shadow: 0 22px 54px rgba(31, 77, 58, 0.08);
}

.spray-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.spray-log-header h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.1rem;
}

.spray-log-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spray-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 77, 58, 0.2);
  background: transparent;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.spray-print-btn:hover {
  background: rgba(31, 77, 58, 0.06);
  border-color: rgba(31, 77, 58, 0.4);
}

.spray-log-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8fbf7;
  border-radius: 16px;
  border: 1px solid rgba(31, 77, 58, 0.1);
}

.spray-log-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.spray-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--forest);
}

.spray-log-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.spray-log-table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 77, 58, 0.1);
}

.spray-log-head {
  display: grid;
  grid-template-columns: 110px 1fr 80px 80px 36px;
  padding: 10px 16px;
  background: rgba(31, 77, 58, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  gap: 8px;
}

.spray-log-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px 80px 36px;
  padding: 14px 16px;
  border-top: 1px solid rgba(31, 77, 58, 0.07);
  font-size: 0.9rem;
  gap: 8px;
  align-items: center;
}

.spray-date    { font-weight: 700; color: var(--forest); }
.spray-product { color: var(--forest); }
.spray-rate, .spray-cost { color: var(--muted); font-size: 0.88rem; }

.spray-delete {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 8px;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.spray-log-row:hover .spray-delete { opacity: 1; }
.spray-delete:hover { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* ── Sharper field cards ─────────────────────────────────────────────────── */

.sidebar-field-card {
  display: flex;
  align-items: stretch;
  border-radius: 16px;
  border: 1px solid rgba(31, 77, 58, 0.12);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 77, 58, 0.04);
}

.sidebar-field-card:hover {
  border-color: rgba(31, 77, 58, 0.3);
  box-shadow: 0 6px 20px rgba(31, 77, 58, 0.1);
  transform: translateY(-1px);
}

.sidebar-field-accent {
  width: 5px;
  flex-shrink: 0;
}

.sidebar-field-body {
  flex: 1;
  padding: 14px 12px 14px 14px;
  min-width: 0;
}

.sidebar-field-name {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-field-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.sidebar-field-tags {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.sidebar-field-tag {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-stage        { background: rgba(31, 77, 58, 0.1); color: var(--forest); }
.tag-risk-low     { background: #dcfce7; color: #166534; }
.tag-risk-medium  { background: #fef9c3; color: #854d0e; }
.tag-risk-high    { background: #fee2e2; color: #991b1b; }

.sidebar-field-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 4px;
  gap: 4px;
}

.sidebar-field-fly {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 8px;
  font-family: inherit;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  opacity: 0;
  flex-shrink: 0;
}

.sidebar-field-card:hover .sidebar-field-fly { opacity: 1; }
.sidebar-field-fly:hover { background: rgba(31, 77, 58, 0.1); color: var(--forest); }

.sidebar-field-delete {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 8px;
  font-family: inherit;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  opacity: 0;
  flex-shrink: 0;
}

.sidebar-field-card:hover .sidebar-field-delete { opacity: 1; }
.sidebar-field-delete:hover { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

.sidebar-field-chevron {
  color: rgba(31, 77, 58, 0.25);
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
  align-self: center;
}

.sidebar-field-card:hover .sidebar-field-chevron {
  color: var(--forest);
  transform: translateX(2px);
}

/* ── Field search ─────────────────────────────────────────────────────────── */

.field-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 77, 58, 0.16);
  background: #f8fbf7;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--forest);
  margin-bottom: 14px;
  box-sizing: border-box;
}

.field-search:focus {
  outline: none;
  border-color: rgba(31, 77, 58, 0.4);
  box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.07);
}

.field-search::placeholder { color: rgba(58, 89, 72, 0.4); }

/* ── Risk trend ──────────────────────────────────────────────────────────── */

.risk-trend-up   { color: #dc2626; font-size: 0.68rem; font-weight: 700; }
.risk-trend-down { color: #16a34a; font-size: 0.68rem; font-weight: 700; }

/* ── Mobile – field detail ────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .detail-hero { padding: 24px 16px; }
  .detail-hero h1 { font-size: 1.8rem; }
  .detail-content { padding: 16px; gap: 16px; }
  .overview-grid { grid-template-columns: 1fr; padding: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 14px 16px; }
  .topbar-link { padding: 8px 12px; font-size: 0.85rem; }
  .fields-section { padding: 16px; }
  .farm-stats-bar .stat-item { padding: 14px 8px; }
  .stat-value { font-size: 1.4rem; }
  .forecast-strip { margin: 12px 16px 0; }
  .spray-banner { margin: 0 16px; }
  .forecast-day { padding: 12px 6px; }
  .yield-form { grid-template-columns: 1fr 1fr; }
  .spray-log-form { grid-template-columns: 1fr; }
  .spray-log-table { overflow: hidden; }
  .spray-log-head,
  .spray-log-row { grid-template-columns: 100px minmax(0,1fr) 36px; }
  .spray-log-head > *:nth-child(3),
  .spray-log-head > *:nth-child(4),
  .spray-log-row > *:nth-child(3),
  .spray-log-row > *:nth-child(4) { display: none; }
}

.topbar-link.secondary {
  background: transparent;
  color: var(--offwhite);
  border: 1px solid rgba(245, 244, 239, 0.3);
}

/* ── Radar map ───────────────────────────────────────────────────────────── */

.radar-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 28px 20px;
}

.radar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.radar-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--forest);
  flex: 1;
}

.radar-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: radar-pulse 1.6s ease infinite;
  flex-shrink: 0;
}

@keyframes radar-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.3); }
}

.radar-map {
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 77, 58, 0.1);
}

.radar-credit {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
}

.leaflet-tooltip.radar-tooltip {
  background: var(--forest);
  border: none;
  border-radius: 8px;
  color: var(--offwhite);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  box-shadow: 0 4px 12px rgba(31, 77, 58, 0.2);
  white-space: nowrap;
}

.leaflet-tooltip.radar-tooltip::before {
  border-top-color: var(--forest);
}

/* ── Recommendation color coding ─────────────────────────────────────────── */

.rec-spray    { color: #16a34a !important; }
.rec-consider { color: #d97706 !important; }
.rec-no-spray { color: #dc2626 !important; }

.profit-positive { color: #16a34a !important; }
.profit-negative { color: #dc2626 !important; }

/* ── Option card recommended badge ──────────────────────────────────────── */

.option-card.recommended::before {
  content: 'Recommended';
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--offwhite);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Metric card improvements ────────────────────────────────────────────── */

.metric-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 77, 58, 0.1);
}

/* ── Summary card field status row improvements ───────────────────────────── */

.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-card .eyebrow {
  margin-bottom: 16px;
}

/* ── Detail card h3 cleanup ──────────────────────────────────────────────── */

.detail-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--forest);
}

/* ── Forecast strip polish ───────────────────────────────────────────────── */

.forecast-strip {
  background: linear-gradient(135deg, #f8fbf7 0%, #ffffff 100%);
}

.forecast-day:first-child {
  background: rgba(31, 77, 58, 0.04);
}

/* ── Spray banner rounded corners ────────────────────────────────────────── */

.spray-banner {
  border-radius: 18px;
  margin-top: 16px;
}

/* ── Better topbar brand mark color in hero-dark context ─────────────────── */

.metrics-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metrics-card h2 {
  margin: 8px 0 0;
  font-size: 1.8rem;
  font-weight: 900;
}

/* ── Dashboard hero ──────────────────────────────────────────────────────── */


/* ── Mobile – radar ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .radar-map { height: 240px; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 36px 16px; }
}

@media (max-width: 860px) {
  /* Map fills the full screen; sidebar slides in as an overlay */
  .map-body {
    height: 100dvh;
    overflow: hidden;
  }

  .map-layout {
    display: block;
    position: relative;
    height: 100%;
    overflow: hidden;
  }

  .map-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 340px);
    z-index: 1200;
    border-right: 1px solid rgba(31,77,58,.12);
    border-bottom: none;
    transform: translateX(-100%);
    transition: transform .25s ease;
    background: #F5F4EF;
    overflow-y: auto;
  }

  .map-sidebar.mob-open {
    transform: translateX(0);
  }

  .mob-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.38);
    z-index: 1100;
    cursor: pointer;
  }

  .map-container {
    position: absolute;
    inset: 0;
  }

  /* Hide Leaflet.draw toolbar — use tap-to-place instead */
  .leaflet-draw-toolbar,
  .leaflet-draw-section { display: none !important; }

  /* Show mobile-only controls */
  .mob-fields-btn,
  .mob-draw-fab { display: flex !important; }

  /* Push Leaflet zoom control below the ☰ Fields button */
  .leaflet-top.leaflet-left { margin-top: 58px; }

  /* Raise map tip above the FAB / draw bar */
  .map-tip { bottom: 92px; }
}

@media (min-width: 861px) {
  /* Hide all mobile-only elements on desktop */
  .mob-fields-btn,
  .mob-draw-fab,
  .mob-draw-bar,
  .mob-backdrop { display: none !important; }
}

/* ── Mobile: fields toggle button ────────────────────────────────────────── */
.mob-fields-btn {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 900;
  background: rgba(255,255,255,.96);
  color: var(--forest);
  border: 1px solid rgba(31,77,58,.18);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  cursor: pointer;
  font-family: inherit;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(6px);
}

/* ── Mobile: draw FAB ────────────────────────────────────────────────────── */
.mob-draw-fab {
  display: none;
  position: absolute;
  bottom: 28px;
  right: 16px;
  z-index: 900;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 15px 22px;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 4px 18px rgba(31,77,58,.45);
  cursor: pointer;
  font-family: inherit;
  align-items: center;
  gap: 8px;
  letter-spacing: .01em;
}

/* ── Mobile: active draw controls bar ───────────────────────────────────── */
.mob-draw-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid rgba(31,77,58,.1);
  backdrop-filter: blur(10px);
}

.mob-cancel-btn {
  background: none;
  border: 1px solid rgba(31,77,58,.2);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--forest);
  font-weight: 700;
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}

.mob-draw-hint {
  flex: 1;
  font-size: .75rem;
  color: var(--muted);
  opacity: .6;
  text-align: center;
  line-height: 1.3;
}

.mob-undo-btn {
  background: none;
  border: 1px solid rgba(31,77,58,.2);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--forest);
  font-weight: 700;
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}

.mob-done-btn {
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 800;
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}

.mob-done-btn:disabled {
  opacity: .38;
  cursor: default;
}

/* ── Radar + Satellite side-by-side grid ──────────────────────────────────── */

.radar-satellite-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.radar-satellite-grid > * {
  flex: 1;
  min-width: 0;
}

.radar-satellite-grid .radar-map,
.radar-satellite-grid .satellite-map {
  height: 300px;
}

@media (max-width: 860px) {
  .radar-satellite-grid {
    flex-direction: column;
  }
}

/* ── Satellite & NDVI ─────────────────────────────────────────────────────── */

.satellite-card { padding: 0; overflow: hidden; }

.satellite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.satellite-header h3 { margin: 0; }

.satellite-layer-toggle {
  display: flex;
  gap: 4px;
  background: rgba(31,77,58,.07);
  padding: 4px;
  border-radius: 8px;
}

.layer-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.layer-btn:hover        { background: rgba(31,77,58,.1); color: var(--forest); }
.layer-btn-active       { background: var(--forest) !important; color: #fff !important; }

.satellite-map {
  height: 340px;
  width: 100%;
}

.ndvi-date-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(31,77,58,.04);
  border-top: 1px solid rgba(31,77,58,.08);
  flex-wrap: wrap;
}

.ndvi-date-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.ndvi-date-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ndvi-date-btn {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(31,77,58,.2);
  background: white;
  font-size: .78rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  transition: all .15s;
}

.ndvi-date-btn:hover {
  background: rgba(31,77,58,.08);
}

.ndvi-date-active {
  background: var(--forest) !important;
  color: white !important;
  border-color: var(--forest) !important;
}

.ndvi-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(31,77,58,.04);
  border-top: 1px solid rgba(31,77,58,.1);
  font-size: .75rem;
  color: var(--muted);
}

.ndvi-gradient {
  flex: 1;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(to right, #d73027, #fc8d59, #fee08b, #91cf60, #1a9850);
}

.ndvi-legend-label { white-space: nowrap; font-weight: 600; }

.satellite-credit {
  font-size: .7rem;
  color: var(--muted);
  opacity: .7;
  padding: 8px 20px;
  margin: 0;
  border-top: 1px solid rgba(31,77,58,.07);
}

/* ── AI Disease Analysis ──────────────────────────────────────────────────── */

.disease-analysis-section {
  background: #fff;
  border: 1px solid rgba(31,77,58,.12);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.disease-analysis-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.disease-analysis-header h3 { margin: 0; }

.disease-beta-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(31,77,58,.1);
  color: var(--forest);
  padding: 2px 7px;
  border-radius: 20px;
}

.disease-analysis-hint {
  color: var(--muted);
  font-size: .875rem;
  margin: 0 0 18px;
}

.disease-upload-area {
  border: 2px dashed rgba(31,77,58,.25);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}

.disease-upload-area:hover { border-color: var(--forest); }

.disease-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.disease-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
}

.disease-upload-icon { font-size: 2rem; }
.disease-upload-sub  { font-size: .75rem; opacity: .7; }

.disease-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.disease-upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.disease-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--muted);
  font-size: .9rem;
}

.disease-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(31,77,58,.2);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}

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

.disease-error {
  padding: 14px 16px;
  background: rgba(239,68,68,.07);
  color: #b91c1c;
  border-radius: 8px;
  font-size: .9rem;
  margin-top: 14px;
}

.disease-result-card {
  margin-top: 16px;
  border: 1px solid rgba(31,77,58,.15);
  border-radius: 10px;
  overflow: hidden;
}

.disease-result-card.disease-urgent {
  border-color: #ef4444;
}

.disease-history {
  margin-top: 20px;
  border-top: 1px solid rgba(31, 77, 58, 0.1);
  padding-top: 16px;
}

.disease-history-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.disease-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(31, 77, 58, 0.07);
}

.disease-history-row:last-child { border-bottom: none; }

.disease-history-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.disease-history-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disease-history-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.disease-urgent-banner {
  background: #ef4444;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 8px 16px;
  letter-spacing: .03em;
}

.disease-result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
}

.disease-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
}

.disease-confidence {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 3px;
}

.disease-severity-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.severity-none     { background: #dcfce7; color: #166534; }
.severity-low      { background: #fef9c3; color: #854d0e; }
.severity-moderate { background: #ffedd5; color: #9a3412; }
.severity-high     { background: #fee2e2; color: #991b1b; }

.disease-description {
  font-size: .875rem;
  color: #444;
  padding: 0 16px 14px;
  margin: 0;
  border-bottom: 1px solid rgba(31,77,58,.1);
}

.disease-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.disease-detail-item {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.disease-detail-item:first-child {
  border-right: 1px solid rgba(31,77,58,.1);
}

.disease-detail-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.disease-detail-value {
  font-size: .875rem;
  color: var(--forest);
  font-weight: 500;
}

/* ── Landing page v2 ─────────────────────────────────────────────────────── */

.landing-body { background: #fff; margin: 0; }

.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-panel.auth-info-card {
    display: none;
  }
  .auth-form-card {
    padding: 28px 20px;
  }
  .login-layout {
    padding: 16px;
  }
  .auth-panel {
    border-radius: 20px;
  }
  .auth-field input {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 14px 16px;
  }
  .auth-submit {
    padding: 16px;
    font-size: 1rem;
  }
}

.topbar-landing {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: none;
}

/* Hero */
.lp-hero {
  position: relative;
  background: url('hero.jpg') center center / cover no-repeat;
  padding: 60px 24px 80px;
  color: #fff;
}
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,35,20,0.78) 0%, rgba(15,35,20,0.55) 60%, rgba(15,35,20,0.35) 100%);
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lp-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}
.lp-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 480px;
}
.lp-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.lp-btn-primary {
  background: #4ADE80;
  color: #0f2e1e;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,222,128,.35); }
.lp-btn-ghost {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 4px;
  text-decoration: none;
  transition: color .15s;
}
.lp-btn-ghost:hover { color: #fff; }

/* Mock app card */
.lp-mock-wrap { display: flex; justify-content: center; }
.lp-mock-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.lp-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.lp-mock-field-name {
  font-weight: 700;
  font-size: 1rem;
  color: #111;
}
.lp-mock-chip {
  background: rgba(31,77,58,.1);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}
.lp-mock-risk-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.lp-mock-risk-num {
  font-size: 3rem;
  font-weight: 800;
  color: #e85d04;
  line-height: 1;
}
.lp-mock-risk-right { flex: 1; }
.lp-mock-risk-label {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lp-mock-risk-bar {
  background: #eee;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}
.lp-mock-risk-fill {
  background: linear-gradient(90deg, #f59e0b, #e85d04);
  height: 100%;
  border-radius: 99px;
}
.lp-mock-rec {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.lp-rec-spray {
  background: #dcfce7;
  color: #15803d;
}
.lp-mock-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.lp-mock-stat {
  flex: 1;
  background: #f8faf9;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-mock-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
}
.lp-mock-unit {
  font-size: 0.7rem;
  color: #888;
}
.lp-mock-ai-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #555;
}
.lp-mock-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
}

/* Pillars */
.lp-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-bottom: 1px solid #eee;
}
.lp-pillar {
  padding: 36px 28px;
  border-right: 1px solid #eee;
}
.lp-pillar:last-child { border-right: none; }
.lp-pillar-icon { font-size: 1.8rem; margin-bottom: 12px; }
.lp-pillar-title { font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 8px; }
.lp-pillar-desc { font-size: 0.88rem; color: #666; line-height: 1.6; margin: 0; }

/* Compare */
.lp-compare {
  background: #f7f8f6;
  padding: 60px 24px;
}
.lp-compare-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.lp-compare-col {
  flex: 1;
  padding: 32px 28px;
}
.lp-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.lp-compare-col ul li {
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: #555;
}
.lp-compare-col ul li::before { content: '· '; color: #aaa; }
.lp-compare-other { background: #fff; }
.lp-compare-verrdus { background: var(--forest); color: #fff; }
.lp-compare-verrdus ul li { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.1); }
.lp-compare-verrdus ul li::before { content: '✓ '; color: #4ADE80; }
.lp-compare-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #aaa;
  margin: 0 0 16px;
}
.lp-compare-verrdus .lp-compare-label { color: rgba(255,255,255,.5); }
.lp-compare-verdict { font-size: 0.95rem; margin: 0; color: #555; }
.lp-compare-verrdus .lp-compare-verdict { color: rgba(255,255,255,.9); }
.lp-compare-verdict strong { color: var(--forest); }
.lp-compare-verrdus .lp-compare-verdict strong { color: #4ADE80; }
.lp-compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  color: #aaa;
  letter-spacing: .05em;
}

/* How it works */
.lp-steps {
  padding: 72px 24px 80px;
  background: #fff;
}

.lp-steps-inner {
  max-width: 900px;
  margin: 0 auto;
}

.lp-steps-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 10px;
}

.lp-steps-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 48px;
}

.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.lp-step { position: relative; }

.lp-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lp-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.lp-step-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .lp-mock-card { max-width: 100%; }
  .lp-pillars { grid-template-columns: 1fr 1fr; }
  .lp-pillar { border-right: none; border-bottom: 1px solid #eee; }
  .lp-pillar:nth-child(odd) { border-right: 1px solid #eee; }
  .lp-compare-inner { flex-direction: column; border-radius: 16px; }
  .lp-compare-vs { padding: 12px; }
  .lp-headline { font-size: 2.2rem; }
  .lp-steps-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .lp-pillars { grid-template-columns: 1fr; }
  .lp-pillar { border-right: none !important; }
  .lp-hero { padding: 40px 20px 56px; }
}

/* ── Decision panel ──────────────────────────────────────────────────────── */

.decision-panel {
  display: grid;
  grid-template-columns: 210px 1fr 200px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(31,77,58,.12);
  box-shadow: 0 8px 36px rgba(31,77,58,.09);
  overflow: hidden;
  margin: 0 24px 20px;
}

/* Gauge column */
.dp-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 20px;
  background: #f6fbf6;
  border-right: 1px solid rgba(31,77,58,.08);
  gap: 8px;
}

.dp-gauge-container {
  position: relative;
  width: 160px;
  height: 90px;
}

.dp-gauge-svg {
  display: block;
  width: 160px;
  height: 90px;
}

.dp-gauge-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.dp-risk-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.dp-risk-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 2px;
}

.dp-risk-caption {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

/* Recommendation column */
.dp-rec-wrap {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.dp-rec-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dp-rec-badge {
  display: inline-flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 14px;
  width: fit-content;
  background: #f0f0f0;
  color: #555;
  transition: background .25s, color .25s;
}

.dp-badge-spray      { background: #dcfce7; color: #166534; }
.dp-badge-consider   { background: #fef9c3; color: #854d0e; }
.dp-badge-no-spray   { background: #fee2e2; color: #991b1b; }

.dp-rec-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 400px;
}

/* ROI column */
.dp-roi-wrap {
  padding: 28px 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-left: 1px solid rgba(31,77,58,.08);
}

/* Risk breakdown panel */
.risk-breakdown-panel {
  background: #fff;
  border: 1px solid rgba(31,77,58,.1);
  border-radius: 14px;
  padding: 18px 24px 20px;
  margin: 0 0 12px;
}
.risk-breakdown-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.risk-breakdown-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--forest);
}
.risk-breakdown-source {
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
  flex-shrink: 0;
}
.risk-breakdown-factors { display: flex; flex-direction: column; gap: 8px; }
.risk-factor-row {
  display: grid;
  grid-template-columns: 1fr auto 80px auto;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
}
.risk-factor-name { color: #444; }
.risk-factor-val  { color: var(--muted); font-size: .78rem; text-align: right; }
.risk-factor-bar-wrap { background: #e8ede9; border-radius: 4px; height: 6px; overflow: hidden; }
.risk-factor-bar  { background: var(--forest); height: 100%; border-radius: 4px; transition: width .4s; }
.risk-factor-pts  { font-weight: 700; color: var(--forest); font-size: .8rem; text-align: right; min-width: 28px; }
.roi-range-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(31,77,58,.08);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .8rem;
}
.roi-range-label { color: var(--muted); flex: 1; min-width: 180px; }
.roi-range-vals  { color: var(--forest); }
.roi-range-vals strong { color: var(--forest); }

.dp-roi-main-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.dp-roi-main-val {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.dp-roi-secondary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-roi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  gap: 12px;
}

.dp-roi-row strong {
  color: var(--forest);
  font-weight: 700;
}

/* Decision panel responsive */
@media (max-width: 900px) {
  .decision-panel {
    grid-template-columns: 1fr 1fr;
    margin: 0 16px 16px;
  }
  .dp-gauge-wrap {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid rgba(31,77,58,.08);
    padding: 20px 24px;
    gap: 20px;
  }
  .dp-gauge-container { width: 140px; height: 79px; flex-shrink: 0; }
  .dp-gauge-svg { width: 140px; height: 79px; }
  .dp-risk-num { font-size: 2.2rem; }
}

@media (max-width: 560px) {
  .decision-panel  { grid-template-columns: 1fr; }
  .dp-rec-wrap     { padding: 20px 20px 16px; border-bottom: 1px solid rgba(31,77,58,.08); }
  .dp-roi-wrap     { padding: 16px 20px 24px; border-left: none; border-top: 1px solid rgba(31,77,58,.06); }
  /* badge fills the width and centers — mirrors the gauge's centred layout */
  .dp-rec-badge    { font-size: 1.4rem; padding: 10px 18px; width: 100%; justify-content: center; box-sizing: border-box; }
  .dp-roi-main-val { font-size: 1.8rem; }
  .dp-roi-main-label { margin-bottom: 2px; }
  /* detail cards explicitly single-column on phones */
  .details-grid    { grid-template-columns: 1fr; }
}

/* ── Setup checklist ─────────────────────────────────────────────────────── */

.setup-checklist {
  background: #fff;
  border: 1px solid rgba(31, 77, 58, 0.12);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(31, 77, 58, 0.06);
}

.setup-checklist-title {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.setup-step:last-child { margin-bottom: 0; }

.setup-step-done {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.setup-step-active {
  background: var(--forest);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--forest);
}

.setup-step-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 77, 58, 0.2);
}

.setup-step-locked {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  opacity: 0.6;
}

.setup-step-check {
  width: 28px;
  height: 28px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.setup-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.setup-step-done .setup-step-num,
.setup-step-active .setup-step-num {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.setup-step-locked .setup-step-num {
  background: #e5e5e5;
  color: #999;
}

.setup-step strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.setup-step p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
  opacity: 0.8;
}

.setup-step-done strong { color: #166534; }
.setup-step-done p { color: #4ade80; opacity: 1; color: #15803d; }
.setup-step-active strong,
.setup-step-active p { color: rgba(255,255,255,.9); }
.setup-step-locked strong,
.setup-step-locked p { color: #555; }

.setup-step-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: rgba(255,255,255,.7);
  align-self: center;
  flex-shrink: 0;
}

/* ── Email verification banner ───────────────────────────────────────────── */

.verify-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fffbeb;
  border-bottom: 1px solid #fcd34d;
  font-size: 0.88rem;
  color: #78350f;
}

.verify-banner-icon { font-size: 1.1rem; flex-shrink: 0; }

.verify-banner-btn {
  margin-left: auto;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: transparent;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}

.verify-banner-btn:hover { background: rgba(245, 158, 11, 0.1); }
.verify-banner-btn:disabled { opacity: 0.55; cursor: default; }

.verify-banner-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #92400e;
  opacity: 0.5;
  font-size: 0.9rem;
  padding: 4px;
  font-family: inherit;
  flex-shrink: 0;
}

.verify-banner-close:hover { opacity: 1; }

/* ── Detail hero ─────────────────────────────────────────────────────────── */

.detail-hero {
  padding: 28px 24px 16px;
  background: linear-gradient(180deg, rgba(245,244,239,.6) 0%, rgba(255,255,255,.4) 100%);
}

.detail-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-hero h1 {
  margin: 8px 0 4px;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.1;
}

.detail-hero-meta {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Option cards polish ─────────────────────────────────────────────────── */

.option-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
}

.option-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: #f9fdf9;
  border: 1px solid rgba(31,77,58,.1);
  box-shadow: none;
  transition: box-shadow .2s, transform .2s;
}

.option-card:hover {
  box-shadow: 0 6px 20px rgba(31,77,58,.1);
  transform: translateY(-2px);
}

.option-card.recommended {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 12px 32px rgba(31,77,58,.22);
}

.option-card.recommended::before {
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.option-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
}

.option-card.recommended h3 { color: #fff; }

.option-card dl { margin: 0; }

.option-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 10px;
}

.option-card.recommended dt { color: rgba(255,255,255,.6); }

.option-card dd {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--forest);
  font-weight: 600;
}

.option-card.recommended dd { color: rgba(255,255,255,.9); }

/* ── Auth success card ───────────────────────────────────────────────────── */

.auth-success {
  text-align: center;
  padding: 8px 0;
}

.auth-success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.auth-success strong {
  display: block;
  font-size: 1.2rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.auth-success p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Solo auth card (forgot/reset/verify pages) ──────────────────────────── */

.auth-page-centered {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
}

.auth-card-solo {
  max-width: 460px;
  width: 100%;
}

.auth-page .auth-panel { background: #fff; }

/* ── Mobile polish ───────────────────────────────────────────────────────── */

/* TOPBAR — VERRDUS + buttons must fit on one row at 375px */
@media (max-width: 560px) {
  .brand-note     { display: none; }
  .btn-label      { display: none; }
  .brand-text     { font-size: 1rem; letter-spacing: 0.12em; }
  .topbar         { padding: 12px 14px; }
  .topbar-actions { gap: 6px; }
  .topbar-link    { padding: 6px 10px; font-size: 0.8rem; }
}

/* RISK BREAKDOWN */
@media (max-width: 560px) {
  .risk-breakdown-panel  { margin: 0 16px 12px; }
  .risk-breakdown-source { display: none; }       /* "Purdue Ext. ..." is too long for mobile */
  .risk-factor-row       { grid-template-columns: 1fr 56px auto; gap: 8px; }
  .risk-factor-val       { display: none; }
  .roi-range-label       { min-width: auto; }
}

/* CARDS — cut padding on phones, catch every section */
@media (max-width: 560px) {
  /* clip anything that slips through */
  .detail-content           { overflow-x: clip; }
  /* every card / section inside detail-content */
  .detail-card              { padding: 16px; border-radius: 16px; }
  .radar-card               { padding: 16px 16px 12px; }
  .yield-section            { padding: 16px; border-radius: 16px; }
  .spray-log-section        { padding: 16px; border-radius: 16px; }
  .scouting-section         { padding: 16px; border-radius: 16px; }
  .disease-analysis-section { padding: 16px; margin-top: 0; border-radius: 12px; }
  .disease-upload-area      { padding: 16px 12px; }
  .scout-photo-row          { flex-wrap: wrap; gap: 8px; }
  .setup-checklist          { padding: 16px; }
  .setup-step               { padding: 12px 14px; gap: 12px; }
  /* print is useless on phones */
  .spray-print-btn          { display: none; }
  /* add-field-button is too padded for section headers on mobile */
  .yield-header .add-field-button,
  .spray-log-header .add-field-button,
  .scouting-header .add-field-button { padding: 8px 14px; font-size: 0.82rem; }
}

/* YIELD TABLE — drop Revenue/ac so 4 cols fit, use minmax(0,1fr) so cols shrink below content */
@media (max-width: 560px) {
  .yield-table           { overflow: hidden; }
  .yield-table-head,
  .yield-row             { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 56px minmax(0,1fr); padding-left: 10px; padding-right: 10px; }
  .yield-table-head > span:nth-child(3),
  .yield-row > .yield-revenue { display: none; }
  /* tighten text so values fit narrow columns */
  .yield-bushels         { font-size: 0.78rem; }
  .yield-year            { font-size: 0.78rem; }
  .yield-trend           { font-size: 0.78rem; }
  .yield-sprayed         { font-size: 0.72rem; }
}

/* FORECAST — hide wind, tighten days */
@media (max-width: 480px) {
  .forecast-wind { display: none; }
  .forecast-day  { padding: 10px 4px; }
  .forecast-high { font-size: 0.88rem; }
}

/* GAUGE — shrink on narrow phones */
@media (max-width: 480px) {
  .dp-gauge-container { width: 110px; height: 62px; }
  .dp-gauge-svg       { width: 110px; height: 62px; }
  .dp-risk-num        { font-size: 1.8rem; }
  .dp-gauge-wrap      { gap: 14px; padding: 16px 14px; }
}

/* FARM STATS BAR — 3-column grid so values have room */
@media (max-width: 560px) {
  .farm-stats-bar { gap: 7px; }
  .stat-item      { padding: 13px 8px; border-radius: 13px; }
  .stat-value     { font-size: 1.25rem; }
  .stat-label     { font-size: 0.6rem; }
}

/* DASHBOARD */
@media (max-width: 560px) {
  .dashboard-hero { padding: 24px 16px; }
  .farm-stats-bar { margin: 0 16px 16px; }
  .weather-strip  { margin: 0 16px 12px; }
  .dash-toolbar   { margin: 0 16px 12px; }
}

/* PAGE-LEVEL OVERFLOW CONTAINMENT */
@media (max-width: 640px) {
  .field-detail-page,
  .dashboard-page { overflow-x: hidden; }
  /* allow grid/flex children to shrink below content size */
  .detail-content > *,
  .details-grid > * { min-width: 0; }
}

/* LANDING PAGE — cut the big section padding on phones */
@media (max-width: 640px) {
  .lp-hero         { padding: 36px 20px 48px; }
  .lp-steps        { padding: 40px 20px 48px; }
  .lp-steps-title  { margin-bottom: 28px; }
  .lp-compare      { padding: 36px 20px; }
  .lp-compare-col  { padding: 24px 20px; }
  .lp-pillar       { padding: 24px 20px; }
  .pricing-section { padding: 36px 20px 48px; }
  .pricing-card    { padding: 24px 20px; border-radius: 20px; }
  .page-footer     { padding: 28px 20px 40px; }
}

/* ── Field Risk Grid (multi-field dashboard) ─────────────────────────────── */

.field-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.field-risk-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(31,77,58,.1);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(31,77,58,.06);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--forest);
}

.field-risk-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--frc-color, #22c55e);
}

.field-risk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(31,77,58,.13);
  border-color: rgba(31,77,58,.25);
}

.frc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.frc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.25;
}

.frc-trend-up   { color: #ef4444; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.frc-trend-down { color: #22c55e; font-weight: 800; font-size: .8rem; flex-shrink: 0; }

.frc-meta {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  opacity: .7;
}

.frc-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0;
}

.frc-score-block {
  display: flex;
  flex-direction: column;
}

.frc-score {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.frc-score-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
  opacity: .6;
}

.frc-rec {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 8px 14px;
  border-radius: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rec-spray    { background: #fee2e2; color: #991b1b; }
.rec-consider { background: #fef9c3; color: #854d0e; }
.rec-skip     { background: #dcfce7; color: #166534; }

.frc-rec-empty {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  opacity: .45;
  font-style: italic;
}

.frc-bar-track {
  height: 5px;
  background: rgba(31,77,58,.08);
  border-radius: 3px;
  overflow: hidden;
}

.frc-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}

.frc-checked {
  font-size: .72rem;
  color: var(--muted);
  opacity: .55;
}

.frc-open {
  font-size: .78rem;
  color: var(--forest);
  font-weight: 600;
  opacity: .4;
  transition: opacity .15s;
}

.field-risk-card:hover .frc-open { opacity: 1; }

.frc-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}

.field-risk-card:hover .frc-delete { opacity: .4; }
.frc-delete:hover { opacity: 1 !important; color: #dc2626; background: rgba(239,68,68,.08); }

/* Add-field card */
.field-risk-card-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(31,77,58,.18);
  background: rgba(31,77,58,.02);
  box-shadow: none;
  min-height: 200px;
  gap: 8px;
  cursor: pointer;
}

.field-risk-card-add::before { display: none; }

.field-risk-card-add:hover {
  transform: none;
  border-color: rgba(31,77,58,.4);
  background: rgba(31,77,58,.04);
  box-shadow: none;
}

.frc-add-icon {
  font-size: 2.4rem;
  color: rgba(31,77,58,.22);
  font-weight: 300;
  line-height: 1;
}

.frc-add-label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
  opacity: .5;
}

@media (max-width: 640px) {
  .field-risk-grid { padding: 0 16px 36px; gap: 12px; }
}

@media (max-width: 400px) {
  .field-risk-grid { grid-template-columns: 1fr; }
  .frc-score { font-size: 2.4rem; }
}

/* ── Weather strip ───────────────────────────────────────────────────────── */

.weather-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 24px 16px;
  padding: 11px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(31,77,58,.1);
  box-shadow: 0 2px 8px rgba(31,77,58,.04);
  flex-wrap: wrap;
}

.ws-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ws-temp {
  font-size: .92rem;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -.01em;
}

.ws-dot {
  color: rgba(31,77,58,.25);
  font-size: .75rem;
}

.ws-stat {
  font-size: .78rem;
  color: var(--muted);
  opacity: .8;
}

.ws-loc {
  font-size: .7rem;
  color: var(--muted);
  opacity: .4;
  margin-left: 4px;
}

.ws-verdict {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.wsv-good     { background: #dcfce7; color: #166534; }
.wsv-marginal { background: #fef9c3; color: #854d0e; }
.wsv-no       { background: #fee2e2; color: #991b1b; }

@media (max-width: 560px) {
  .weather-strip { margin: 0 16px 14px; padding: 10px 14px; }
  .ws-stat { font-size: .73rem; }
}

/* ── Card footer with refresh button ─────────────────────────────────────── */

.frc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.frc-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.frc-refresh {
  border: none;
  background: none;
  color: var(--forest);
  font-size: .88rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
  opacity: .3;
  transition: opacity .15s, transform .15s;
  line-height: 1;
  flex-shrink: 0;
}

.frc-refresh:hover { opacity: .75; background: rgba(31,77,58,.06); }

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

.frc-refresh.checking {
  animation: frc-spin .65s linear infinite;
  opacity: .7;
  pointer-events: none;
}

/* Card loading overlay */
.field-risk-card.frc-checking {
  opacity: .6;
  pointer-events: none;
}

.field-risk-card.frc-checking .frc-refresh {
  pointer-events: auto;
}

/* ── Factor breakdown chips ──────────────────────────────────────────────── */

.frc-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.frc-factor {
  font-size: .65rem;
  color: var(--muted);
  background: rgba(31,77,58,.06);
  border: 1px solid rgba(31,77,58,.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  opacity: .8;
  white-space: nowrap;
}

/* ── Dash toolbar (refresh-all + hint) ───────────────────────────────────── */

.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 24px 14px;
}

.dash-toolbar-hint {
  font-size: .78rem;
  color: var(--muted);
  opacity: .55;
}

.dash-refresh-all {
  border: 1px solid rgba(31,77,58,.2);
  background: #fff;
  color: var(--forest);
  font-size: .78rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  white-space: nowrap;
}

.dash-refresh-all:hover {
  background: rgba(31,77,58,.04);
  border-color: rgba(31,77,58,.4);
}

.dash-refresh-all:disabled {
  opacity: .5;
  cursor: default;
}

/* ── Field-detail credibility anchor ─────────────────────────────── */
.dp-data-source {
  font-size: .6rem;
  color: var(--muted);
  opacity: .38;
  text-align: center;
  margin: 3px 0 0;
  letter-spacing: .03em;
  line-height: 1.4;
}

/* ── Landing page — proof row below CTAs ─────────────────────────── */
.lp-proof-row {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.lp-proof-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-proof-stat strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.lp-proof-stat span {
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}

/* ── Landing page — mock card factor chips ───────────────────────── */
.lp-mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.lp-mock-chip-factor {
  font-size: .65rem;
  padding: 3px 8px;
  background: rgba(31,77,58,.07);
  color: var(--forest);
  border-radius: 99px;
  font-weight: 600;
}

/* ── Landing page — research trust bar ───────────────────────────── */
.lp-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 13px 24px;
  background: rgba(31,77,58,.05);
  border-top: 1px solid rgba(31,77,58,.07);
  border-bottom: 1px solid rgba(31,77,58,.07);
}

.lp-trust-label {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  opacity: .5;
}

.lp-trust-item {
  font-size: .72rem;
  color: var(--muted);
  opacity: .65;
}

.lp-trust-dot {
  color: var(--muted);
  opacity: .2;
  font-size: .9rem;
}

/* ── Landing page — farmer testimonial ───────────────────────────── */
.lp-testimonial {
  padding: 52px 24px;
  background: #fff;
  text-align: center;
  border-top: 1px solid rgba(31,77,58,.06);
  border-bottom: 1px solid rgba(31,77,58,.06);
}

.lp-quote {
  max-width: 680px;
  margin: 0 auto;
}

.lp-quote p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--forest);
  font-style: italic;
  margin: 0 0 20px;
  opacity: .88;
}

.lp-quote cite {
  font-size: .78rem;
  font-style: normal;
  color: var(--muted);
  opacity: .55;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .lp-proof-row { gap: 18px; }
  .lp-proof-stat strong { font-size: 1.15rem; }
  .lp-quote p { font-size: .95rem; }
  .lp-trust-bar { gap: 6px 10px; padding: 12px 16px; }
  .lp-trust-dot { display: none; }
}

/* Prevent iOS auto-zoom on input focus — must be exactly 16px */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ── Account page ─────────────────────────────────────────────────────────── */
.acct-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.acct-upgrade-banner {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: .9rem;
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid #bbf7d0;
  margin-bottom: 28px;
  border-radius: 12px;
}

.acct-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acct-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(31,77,58,.1);
  box-shadow: 0 2px 8px rgba(31,77,58,.04);
  padding: 28px 28px 24px;
}

.acct-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest);
  margin: 0 0 20px;
  letter-spacing: -.01em;
}

.acct-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.acct-plan-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.acct-plan-sub {
  font-size: .8rem;
  color: var(--muted);
  opacity: .6;
  margin-top: 4px;
}

.acct-plan-badge {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(31,77,58,.08);
  color: var(--forest);
}

.acct-plan-badge.badge-pro {
  background: #1F4D3A;
  color: #4ADE80;
}

.acct-pro-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.acct-perk {
  font-size: .82rem;
  color: var(--muted);
  opacity: .75;
}

.acct-upgrade-btn {
  width: 100%;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  margin-bottom: 10px;
}

.acct-upgrade-btn:hover { background: #163d2d; }
.acct-upgrade-btn:disabled { opacity: .6; cursor: default; }

.acct-upgrade-note {
  font-size: .75rem;
  color: var(--muted);
  opacity: .5;
  text-align: center;
  margin: 0;
}

.acct-pro-active {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: #166534;
  font-weight: 700;
  background: #dcfce7;
  padding: 14px 18px;
  border-radius: 12px;
}

.acct-pro-check {
  font-size: 1.1rem;
}

.acct-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.acct-info-label {
  font-size: .85rem;
  color: var(--muted);
  opacity: .6;
}

.acct-info-val {
  font-size: .9rem;
  font-weight: 600;
  color: var(--forest);
}

.acct-pw-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acct-pw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.acct-pw-field input {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31,77,58,.16);
  background: #f8fbf7;
  font-family: inherit;
  font-size: .9rem;
  color: var(--forest);
}

.acct-pw-field input:focus {
  outline: none;
  border-color: rgba(31,77,58,.4);
}

.acct-pw-btn {
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: background .15s;
}

.acct-pw-btn:hover { background: #163d2d; }
.acct-pw-btn:disabled { opacity: .6; cursor: default; }

.acct-pw-success {
  background: #dcfce7;
  color: #166534;
  font-size: .85rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.acct-pw-error {
  background: #fee2e2;
  color: #991b1b;
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.acct-card-logout {
  background: none;
  border: none;
  box-shadow: none;
  padding: 8px 0;
  text-align: center;
}

.acct-logout-btn {
  background: none;
  border: 1px solid rgba(31,77,58,.2);
  color: var(--muted);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  opacity: .65;
  transition: opacity .15s;
}

.acct-logout-btn:hover { opacity: 1; }

/* ── Upgrade modal (satellite page) ──────────────────────────────────────── */
.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.upgrade-modal.hidden { display: none; }

.upgrade-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  cursor: pointer;
}

.upgrade-modal-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.upgrade-modal-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.upgrade-modal-card h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--forest);
  margin: 0 0 10px;
}

.upgrade-modal-card p {
  font-size: .9rem;
  color: var(--muted);
  opacity: .75;
  line-height: 1.6;
  margin: 0 0 24px;
}

.upgrade-modal-btn {
  display: block;
  background: var(--forest);
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background .15s;
}

.upgrade-modal-btn:hover { background: #163d2d; }

.upgrade-modal-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  opacity: .5;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .acct-card { padding: 22px 18px 20px; }
  .acct-pro-perks { grid-template-columns: 1fr; }
}
