/* ============================================================
  AMFE – Entrepreneur Portal | style.css
  Pixel-perfect match to UI mockups
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --green-dark:  #1e4d3a;
  --green-mid:   #2d6b50;
  --green-light: #b7e4c7;
  --green-pale:  #e8f0ec;
  --green-badge: #d8f3e3;
  --sidebar-w:   220px;
  --body-bg:     #f4f6f5;
  --card-bg:     #ffffff;
  --border:      #e5e7eb;
  --text:        #1a1a2e;
  --muted:       #6c757d;
  --blue-pale:   #dce8ff;
  --blue:        #2b5fb3;
  --primary:     var(--green-dark);
  --primary-light: var(--green-mid);
  --primary-bg:  var(--green-pale);
  --text-dark:   var(--text);
  --text-muted:  var(--muted);
  --text-light:  #9ca3af;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; font-family: 'DM Sans', sans-serif; background: var(--body-bg); color: var(--text); font-size: 14px; }

/* ---------- Layout ---------- */
#wrapper { display: flex; min-height: 100vh; }

/* ============================================================
   SIDEBAR — copied from Admin styles for consistent typography
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand { padding: 20px 18px 12px; border-bottom: 1px solid var(--border); }
.sidebar-brand .brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--green-dark);
  line-height: 1;
  letter-spacing: -0.5px;
}
.sidebar-brand .brand-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.sidebar-brand .brand-user { font-size: 0.78rem; font-weight: 600; color: #333; margin-top: 3px; }

.sidebar-nav {
  flex: 1; padding: 10px 0; list-style: none; overflow-y: auto;
}

.sidebar-nav .nav-item .nav-link,
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 0;
  color: var(--text); font-size: 13.5px; font-weight: 400;
  text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.sidebar-nav .nav-item .nav-link i,
.sidebar-nav a i { font-size: 16px; width: 20px; text-align: center; color: var(--muted); flex-shrink: 0; }
.sidebar-nav .nav-item .nav-link:hover,
.sidebar-nav a:hover { background: var(--green-pale); color: var(--green-dark); }
.sidebar-nav .nav-item .nav-link:hover i,
.sidebar-nav a:hover i { color: var(--green-dark); }
.sidebar-nav .nav-item .nav-link.active,
.sidebar-nav a.active { background: var(--green-dark); color: #fff; font-weight: 500; }
.sidebar-nav .nav-item .nav-link.active i,
.sidebar-nav a.active i { color: #fff; }

.sidebar-nav .sidebar-nav-disabled {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 0;
  color: #9ca3af; font-size: 13.5px; font-weight: 400;
  white-space: nowrap; cursor: not-allowed; user-select: none;
}
.sidebar-nav .sidebar-nav-disabled > i:first-child {
  width: 20px; flex-shrink: 0; color: #aeb4bb; font-size: 16px; text-align: center;
}
.sidebar-nav .sidebar-nav-lock {
  margin-left: auto; color: #aeb4bb; font-size: 11px;
}

.sidebar-footer { padding: 12px 18px; border-top: 1px solid var(--border); }
.sidebar-footer .nav-link,
.sidebar-footer .logout-link { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 6px 0 6px 19px; background: none; border: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.sidebar-footer .nav-link:hover,
.sidebar-footer .logout-link:hover { color: var(--green-dark); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main-content { flex: 1; display: flex; flex-direction: column; min-height: 100vh; margin-left: var(--sidebar-w); }
main { flex: 1; padding: 28px 26px; }

.page-title { font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 2px; }
.page-sub   { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
/* ── One heading-to-content gap for every entrepreneur tab ────────────────
   Each page reached its own gap by a different route, so the four tabs
   disagreed: Settings and Activity Log had only the title's own 2px,
   Dashboard's greeting had 26px, and Profile's header had an 18px inline
   style. All four now measure 20px — the same gap the farmer pages use
   (.role-farmer .page-title-spaced, farmer.css) and Admin's own
   .page-title margin-bottom.

   Scoped under .role-entrepreneur (not bare) because admin.css loads
   after this file and carries its own unscoped .page-title rules — the
   descendant selector keeps these above anything downstream. */

/* Settings + Activity Log: a bare .page-title with no .page-sub or
   .page-heading after it, so the title's own margin is the whole gap. */
.role-entrepreneur .page-title-spaced { margin-bottom: 20px; }

/* Profile: the gap lives on the flex header that wraps the title and its
   action buttons. The title's own 2px is zeroed first — .profile-header is
   display:flex, so that margin does not collapse away and would otherwise
   ride on top of the 20px. The inline style that used to set 18px here is
   gone from Entrepreneur/Profile.jsx; Farmer/Profile keeps its own. */
.role-entrepreneur .profile-header { margin-bottom: 20px; }
.role-entrepreneur .profile-header .page-title { margin-bottom: 0; }

/* The same deliberate spacing on phones and tablets. There, .page-title is pulled out of
   flow into the fixed top bar (role-shell.css), so the rules above have
   nothing left to push against — the gap has to come from the content side.
   The shell already leaves a flat 10px under the bar at every breakpoint
   (#main-content padding-top 70px against a 60px bar, and 58px against a
   48px bar in short landscape), so 10px inside <main> lands on 20px in both.
   Written as id + role class with !important because it has to out-specify
   role-shell.css's own `main { padding: 0 !important }`. */
@media (max-width: 991px) {
  .role-entrepreneur #main-content > main { padding-top: 10px !important; }
}

/* The current member shell keeps the page title in normal content flow on
   phones. Preserve the same 20px title-to-content rhythm as every other
   Entrepreneur sidebar destination. */
@media (max-width: 767px) {
  .role-entrepreneur .profile-header { margin-bottom: 20px !important; }
}

/* "Welcome, Maria!" — the actual visible greeting on dashboard.html.
   Looks identical to how .page-title used to look on desktop, but stays
   in normal document flow on every screen size (unlike .page-title,
   which becomes the fixed mobile top bar and now just says "Dashboard"
   to match the sidebar). */
.page-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2px;
}
/* Dashboard: the subtitle that used to follow this greeting carried the
   gap down to the stat grid; without it, 2px leaves the cards crowding
   the greeting. 20px to match the other three tabs (see the block above).
   :not() keeps 2px wherever a .page-sub does still follow. */
.page-heading:not(:has(+ .page-sub)) { margin-bottom: 20px; }

/* On dashboard.html specifically, .page-title is only needed as the
   mobile fixed-bar label ("Dashboard") — on desktop there's no fixed
   bar, so showing it too would duplicate the heading already provided
   by .page-heading ("Welcome, Maria!"). profile.html is unaffected:
   its .page-title ("My Profile") still shows on desktop as before. */
body[data-page="dashboard"] .page-title {
  display: none;
}

@media (max-width: 991px) {
  /* .page-title and .mobile-menu-btn are fully handled by role-shell.css
     (fixed top bar + hamburger). Only .page-sub needs a small nudge here
     so it doesn't sit too close under the fixed bar. */
  .page-sub { margin-top: 4px; margin-bottom: 18px; }

  /* On dashboard.html mobile, .page-title becomes the fixed top bar
     again ("Dashboard"), and .page-heading ("Welcome, Maria!") sits
     right above .page-sub in normal flow underneath it — matching the
     desktop layout, just shifted below the fixed bar. */
  body[data-page="dashboard"] .page-title {
    display: block;
  }
  /* margin-top stays 0: <main> now carries the gap under the fixed bar for
     every tab, and a nudge here would put Dashboard 4px below the rest. */
  .page-heading {
    font-size: 22px;
    margin-top: 0;
  }

  /* On profile.html, .page-title is pulled out of flow (fixed bar).
     The header wrapper should right-align the remaining action buttons. */
  .profile-hdr {
    justify-content: flex-end;
  }
  .profile-actions {
    margin-top: 0;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.section-label {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.section-label i { color: var(--green-dark); }

/* admin.css's unscoped .section-label (12px, uppercase, muted gray) loads
   after this file and shares this rule's exact specificity, so it silently
   wins every property above on every entrepreneur page — including two
   properties (text-transform, letter-spacing) this rule never set at all,
   which no amount of matching values here could block. Re-declaring under
   .role-entrepreneur outranks it regardless of load order. Mirrors
   farmer.css's identical fix for the same collision. */
.role-entrepreneur .section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: normal;
}

/* ============================================================
   DASHBOARD
   ============================================================ */

/* Profile Status card */
.status-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.status-complete {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-badge); color: var(--green-dark);
  font-size: 0.8rem; font-weight: 700;
  border-radius: 20px; padding: 4px 13px; margin: 8px 0 14px;
}

/* Dashboard columns — stacks below 900px. Previously an inline 1fr 1fr with no
   breakpoint, so the cards never stacked on a phone. */
.ent-dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .ent-dash-cols { grid-template-columns: 1fr; } }

/* Announcements — capped to roughly the height of the two stacked cards
   beside it, so extra announcements scroll inside the card instead of
   making this column (and the whole page) taller than the Farmer
   dashboard's equivalent row. */
.ann-card { display: flex; flex-direction: column; max-height: 360px; }
.ann-list { flex: 1; min-height: 0; overflow-y: auto; }
/* Keep the last item's divider hidden even while scrolling. */
.ann-list > .ann-item:last-child { border-bottom: none; padding-bottom: 0; }

.ann-item { padding: 12px 0; border-bottom: 1px solid var(--body-bg); }
.ann-item:first-child { padding-top: 0; }
.ann-item:last-child  { border-bottom: none; padding-bottom: 0; }
.ann-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ann-body  { font-size: 0.79rem; color: var(--muted); margin-bottom: 6px; line-height: 1.5; }
.ann-meta  { display: flex; align-items: center; justify-content: space-between; }
.ann-date  { font-size: 0.72rem; color: #bbb; }

.tag { font-size: 0.69rem; font-weight: 700; border-radius: 20px; padding: 2px 10px; text-transform: capitalize; }
.tag-meeting { background: var(--blue-pale); color: var(--blue); }
.tag-update  { background: var(--green-badge); color: var(--green-dark); }
.tag-notice  { background: #fff8e1; color: #b45309; }

/* Shown in place of the list when nothing has been posted, and on the
   Notifications card when the member has none. */
.ann-empty { font-size: 0.8rem; color: var(--muted); line-height: 1.6; padding: 6px 0; }

/* Full-width variant used by the Announcements page and the admin list,
   where the body is not clipped to a dashboard card's height. */
.ann-item-full { padding: 14px 0; }
.ann-item-full .ann-body { margin-bottom: 4px; }

/* Profile completion meter. The percentage is computed from the member's own
   profile fields, so an empty profile really does read a low number — the
   badge above it turns amber in that case (.status-partial). */
.status-partial { background: #fff8e1; color: #b45309; }
.profile-meter {
  height: 8px; border-radius: 20px; background: var(--body-bg);
  overflow: hidden; margin-bottom: 8px;
}
.profile-meter-fill { height: 100%; background: var(--green-dark); border-radius: 20px; transition: width .3s ease; }
.profile-meter-note { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }

.view-all-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px; font-size: 0.8rem; font-weight: 700;
  color: var(--green-dark); text-decoration: none;
}
.view-all-link:hover { text-decoration: underline; }

/* Notifications */
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--body-bg);
  font-size: 0.83rem; color: #333;
}
.notif-item:first-child { padding-top: 0; }
.notif-item:last-child  { border-bottom: none; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dark); flex-shrink: 0; margin-top: 5px; }
.notif-dot.blue { background: var(--blue); }

/* Entrepreneur Access card */
.access-card {
  border: 1.5px solid var(--green-light);
  border-radius: 12px; padding: 18px 20px;
  background: var(--green-pale);
}
.access-title { font-size: 0.88rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.access-body  { font-size: 0.8rem; color: #3a3a3a; line-height: 1.65; }

/* Button */
.btn-green {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-dark); color: #fff;
  border: none; border-radius: 8px; padding: 9px 18px;
  font-size: 0.83rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background 0.14s;
}
.btn-green:hover { background: var(--green-mid); color: #fff; }

/* Profile action can be widened by the responsive shell; keep its icon and
   label centered as one unit inside the available button width. */
.role-entrepreneur .entrepreneur-profile-edit {
  min-height: 44px;
  padding: 9px 18px;
  justify-content: center;
  gap: 8px;
  font-size: 0.83rem;
  text-align: center;
  white-space: nowrap;
}
.role-entrepreneur .entrepreneur-profile-edit i {
  display: inline-block;
  flex: 0 0 auto;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.sidebar-info {
  border: 1.5px solid var(--green-light);
  border-radius: 12px; padding: 16px 18px;
  background: var(--green-pale);
  font-size: 0.79rem; color: #3a3a3a; line-height: 1.65;
}
.sidebar-info strong {
  display: block; font-size: 0.84rem; font-weight: 700;
  color: var(--green-dark); margin-bottom: 7px;
}

.field-label {
  display: block; font-size: 0.7rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px;
}
.field-val {
  background: var(--body-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 13px;
  font-size: 0.85rem; color: var(--text); min-height: 38px;
}
.field-note { font-size: 0.67rem; color: #bbb; margin-top: 3px; }

.biz-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--body-bg); font-size: 0.84rem;
}
.biz-row:last-child { border-bottom: none; }
.biz-row .lbl { color: var(--muted); }
.biz-row .val { font-weight: 600; }
.badge-active {
  background: var(--green-badge); color: var(--green-dark);
  font-size: 0.74rem; font-weight: 700; border-radius: 20px; padding: 3px 12px;
}


/* ---------- Editable profile fields ---------- */
.field-input {
  width: 100%;
  background: var(--card-bg);
  border: 1.5px solid var(--green-mid);
  border-radius: 8px;
  padding: 8.5px 12px;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  min-height: 38px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field-input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(45, 107, 80, 0.15);
}
.field-input-error {
  border-color: #d64545 !important;
  animation: fieldShake 0.4s ease;
}
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-cancel {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.83rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-outline-cancel:hover {
  border-color: #d64545;
  color: #d64545;
  background: rgba(214, 69, 69, 0.06);
}

/* Save confirmation toast */
.save-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1500;
  max-width: min(32rem, calc(100vw - 32px));
  text-align: center;
  line-height: 1.35;
}
.save-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.save-toast i { color: #b7e4c7; font-size: 1rem; }

@media (max-width: 576px) {
  .save-toast {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: clamp(.75rem, 3.6vw, .84rem);
    transform: translateY(20px);
  }
  .save-toast.show { transform: translateY(0); }
}

/* ============================================================
   DASHBOARD — stat grid + two-col (ported from farmer CSS)
   ============================================================ */
.card-title { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-value { font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.2; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.stat-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; color: var(--green-dark); }

/* Keep the entrepreneur KPI row aligned with the admin/farmer dashboard:
   equal tracks, matching card proportions, and one restrained accent per
   metric. Role scoping prevents the globally loaded dashboard styles from
   overriding these cards at narrower inspection widths. */
.role-entrepreneur .ent-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.role-entrepreneur .stat-card {
  min-width: 0;
  padding: 30px 20px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.role-entrepreneur .stat-card .card-title {
  margin-bottom: 2px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.role-entrepreneur .stat-card .card-value {
  overflow: hidden;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-entrepreneur .ent-stat--green { --ent-accent: #8fc4a8; --ent-accent-bg: #e3f1e9; --ent-accent-fg: #1e4d3a; }
.role-entrepreneur .ent-stat--gold  { --ent-accent: #d9c07a; --ent-accent-bg: #fbeecb; --ent-accent-fg: #8a6410; }
.role-entrepreneur .ent-stat--blue  { --ent-accent: #a5a1e0; --ent-accent-bg: #e7e9fa; --ent-accent-fg: #3d3f8f; }
.role-entrepreneur [class*="ent-stat--"] { border-color: var(--ent-accent); }
.role-entrepreneur [class*="ent-stat--"] .stat-icon {
  background: var(--ent-accent-bg);
  color: var(--ent-accent-fg);
}
@media (hover: hover) and (pointer: fine) {
  .role-entrepreneur .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.09);
  }
}
@media (prefers-reduced-motion: reduce) {
  .role-entrepreneur .stat-card { transition: none; }
  .role-entrepreneur .stat-card:hover { transform: none; }
}

.dash-welcome { font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 2px; }
@media (min-width: 992px) { .dash-page-title { display: none; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Profile page header */
.profile-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }

/* Profile toast (bottom-right) */
.profile-toast { position: fixed; bottom: 24px; right: 24px; background: var(--green-dark); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; z-index: 9999; }
.profile-toast.show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 991px) {
  .role-entrepreneur .ent-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .role-entrepreneur .stat-card { padding: 20px 16px; }
  .two-col   { grid-template-columns: 1fr; }
  .profile-header { justify-content: flex-end; }
  /* dashboard left column: revert to auto rows on mobile so they stack naturally */
  .dash-left-col { grid-template-rows: auto auto !important; }
}
@media (max-width: 576px) {
  .role-entrepreneur .ent-stat-grid { grid-template-columns: 1fr; }
  .role-entrepreneur .stat-card { padding: 16px; }
  .card-value { font-size: 17px; }
  .dash-welcome { font-size: 22px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--card-bg); border-top: 1px solid var(--border);
  padding: 14px 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
}
.footer-brand { font-weight: 800; font-size: 0.95rem; color: var(--green-dark); letter-spacing: 2px; }
.footer-text  { font-size: 0.75rem; color: var(--muted); }

/* Entrepreneur locked-feature dialog */
.action-confirm-modal--farmer-only {
  position: relative;
  width: min(100%, 420px);
  padding: clamp(24px, 5vw, 38px) clamp(20px, 5vw, 34px) clamp(20px, 4vw, 30px);
  border: 1px solid #d7e8df;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(12, 55, 39, .24);
}
.action-confirm-modal--farmer-only .action-confirm-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  color: #1f5b43;
  background: linear-gradient(145deg, #e8f6ee, #d7eddf);
  box-shadow: inset 0 0 0 1px rgba(31, 91, 67, .08);
  font-size: 1.5rem;
}
.action-confirm-modal--farmer-only .action-confirm-copy h2 {
  margin-bottom: 10px;
  color: #153e2f;
  font-size: 1.45rem;
  font-weight: 750;
}
.action-confirm-modal--farmer-only .action-confirm-copy p {
  color: #617069;
  font-size: .98rem;
  line-height: 1.65;
}
.action-confirm-modal--farmer-only .action-confirm-actions {
  justify-content: center;
  margin-top: 26px;
}
.action-confirm-modal--farmer-only .action-confirm-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(30, 77, 58, .2);
}

@media (max-width: 480px) {
  .action-confirm-modal--farmer-only {
    width: min(20rem, calc(100vw - 24px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 26px 18px 18px;
    border-radius: 18px;
  }
  .action-confirm-modal--farmer-only .action-confirm-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 15px;
    font-size: 1.25rem;
  }
  .action-confirm-modal--farmer-only .action-confirm-copy h2 {
    margin-bottom: 7px;
    font-size: clamp(1.08rem, 5.5vw, 1.3rem);
    line-height: 1.25;
  }
  .action-confirm-modal--farmer-only .action-confirm-copy p {
    font-size: clamp(.8rem, 3.8vw, .9rem);
    line-height: 1.45;
  }
  .action-confirm-modal--farmer-only .action-confirm-actions { margin-top: 18px; }
  .action-confirm-modal--farmer-only .action-confirm-submit {
    min-height: 42px;
    padding-block: 8px;
    font-size: .86rem;
  }
  .action-confirm-modal--farmer-only .action-confirm-close {
    top: 9px;
    right: 9px;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    font-size: .82rem;
  }
}

@media (max-width: 360px), (max-height: 520px) {
  .action-confirm-modal--farmer-only {
    width: min(18rem, calc(100vw - 16px));
    padding: 18px 14px 14px;
  }
  .action-confirm-modal--farmer-only .action-confirm-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 9px;
    border-radius: 12px;
    font-size: 1.05rem;
  }
  .action-confirm-modal--farmer-only .action-confirm-actions { margin-top: 12px; }
}
