
    /* ---------- COLOUR PALETTE ---------- */
    :root {
      --soil:   #2C1A0E;
      --bark:   #4A2E14;
      --moss:   #3A5E2B;
      --leaf:   #5C8A3C;
      --sprout: #8AB84A;
      --wheat:  #D4A843;
      --cream:  #F5EDD8;
      --fog:    #EAE3D2;
      --white:  #FDFAF4;
    }

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

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--soil);
      min-height: 100vh;
      overflow-y: auto;
    }

    /* ---------- ANIMATED BACKGROUND ---------- */
    .bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      background: linear-gradient(135deg, #1a0f06, #2C1A0E 40%, #3A5E2B);
      overflow: hidden;
    }

    .bg::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(90,140,60,0.22), transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 20%, rgba(212,168,67,0.12), transparent 60%);
    }

    /* Floating blob shapes in the background */
    .leaf-bg {
      position: absolute;
      opacity: 0.06;
      pointer-events: none;
      animation: drift ease-in-out infinite;
    }
    .leaf-bg:nth-child(1)  { width:320px; height:320px; top:-60px;    left:-80px;  border-radius:60% 40% 70% 30%/50% 60% 40% 70%; background:var(--sprout); animation-duration:18s; }
    .leaf-bg:nth-child(2)  { width:200px; height:200px; bottom:5%;    right:-40px; border-radius:40% 60% 30% 70%/60% 40% 70% 30%; background:var(--wheat);  animation-duration:14s; animation-direction:reverse; }
    .leaf-bg:nth-child(3)  { width:140px; height:140px; top:35%;      left:5%;     border-radius:50% 50% 60% 40%/40% 60% 50% 50%; background:var(--leaf);   animation-duration:20s; animation-delay:3s; }
    .leaf-bg:nth-child(4)  { width:260px; height:260px; bottom:-40px; left:30%;    border-radius:70% 30% 50% 50%/30% 70% 50% 50%; background:var(--moss);   animation-duration:16s; animation-delay:6s; }
    .leaf-bg:nth-child(5)  { width:180px; height:180px; top:10%;      right:8%;    border-radius:55% 45% 65% 35%/45% 55% 45% 55%; background:var(--leaf);   animation-duration:22s; animation-delay:2s; }
    .leaf-bg:nth-child(6)  { width:100px; height:100px; top:55%;      right:15%;   border-radius:40% 60% 55% 45%/60% 40% 60% 40%; background:var(--wheat);  animation-duration:12s; animation-delay:4s;  animation-direction:reverse; }
    .leaf-bg:nth-child(7)  { width:220px; height:220px; top:70%;      left:-50px;  border-radius:65% 35% 45% 55%/35% 65% 35% 65%; background:var(--sprout); animation-duration:24s; animation-delay:1s; }
    .leaf-bg:nth-child(8)  { width:80px;  height:80px;  top:20%;      left:40%;    border-radius:50% 50% 70% 30%/60% 40% 60% 40%; background:var(--cream);  animation-duration:10s; animation-delay:5s;  animation-direction:reverse; }
    .leaf-bg:nth-child(9)  { width:160px; height:160px; bottom:20%;   right:5%;    border-radius:45% 55% 60% 40%/55% 45% 55% 45%; background:var(--moss);   animation-duration:19s; animation-delay:7s; }
    .leaf-bg:nth-child(10) { width:120px; height:120px; top:5%;       left:55%;    border-radius:60% 40% 40% 60%/40% 60% 40% 60%; background:var(--leaf);   animation-duration:15s; animation-delay:9s;  animation-direction:reverse; }

    @keyframes drift {
      0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
      33%       { transform: translate(12px, -18px) rotate(4deg) scale(1.03); }
      66%       { transform: translate(-8px, 10px) rotate(-3deg) scale(0.97); }
    }

    /* ---------- PAGE & SCREENS ---------- */
    /* The outer wrapper that centres everything */
    .page {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 40px 24px;
    }

    /* Each screen is hidden by default; add .active to show it */
    .screen { display: none; width: 100%; }
    .screen.active { display: flex; justify-content: center; }

    /* ---------- ANIMATIONS ---------- */
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(36px) scale(0.96); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes spin {
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* ---------- AUTH CARD ---------- */
    .card {
      width: 100%;
      max-width: 480px;
      background: rgba(253, 250, 244, 0.97);
      border-radius: 28px;
      box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.12);
      animation: cardIn 0.7s cubic-bezier(.22,.9,.36,1) both;
    }

    .card-header {
      background: linear-gradient(135deg, var(--moss), var(--bark));
      padding: 36px 40px 28px;
      border-radius: 28px 28px 0 0;
      position: relative;
      overflow: hidden;
    }

    /* Decorative leaf watermark in top-right of card header */
    .card-header::after {
      content: '🌿';
      position: absolute;
      right: 28px;
      top: 20px;
      font-size: 64px;
      opacity: 0.18;
      transform: rotate(20deg);
    }

    /* ---------- BRAND / LOGO ---------- */
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
    }

    .brand-icon {
      width: 38px;
      height: 38px;
      background: var(--sprout);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    }

    .brand-name {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--cream);
      letter-spacing: 0.5px;
    }
    .brand-name span { color: var(--sprout); }

    /* ---------- SIGN IN / SIGN UP TABS ---------- */
    .tabs {
      display: flex;
      gap: 6px;
      background: rgba(0,0,0,0.2);
      border-radius: 14px;
      padding: 5px;
    }

    .tab {
      flex: 1;
      padding: 10px 0;
      border: none;
      cursor: pointer;
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 600;
      background: transparent;
      color: rgba(245, 237, 216, 0.6);
      transition: all 0.3s;
    }
    .tab.active {
      background: var(--white);
      color: var(--moss);
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    /* ---------- FORM PANELS ---------- */
    .panel {
      padding: 32px 40px 40px;
      display: none;
      animation: fadeUp 0.4s ease both;
    }
    .panel.active { display: block; }

    .panel-title {
      font-family: 'Playfair Display', serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--soil);
      margin-bottom: 5px;
    }

    .panel-sub {
      font-size: 13px;
      color: #7a6a58;
      margin-bottom: 22px;
      line-height: 1.5;
    }

    /* ---------- EMAIL / PHONE TOGGLE ---------- */
    .method-toggle {
      display: flex;
      gap: 6px;
      background: var(--fog);
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 18px;
    }

    .method-btn {
      flex: 1;
      padding: 8px 0;
      border: none;
      cursor: pointer;
      border-radius: 7px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 600;
      background: transparent;
      color: #7a6a58;
      transition: all 0.25s;
    }
    .method-btn.active {
      background: var(--white);
      color: var(--moss);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* ---------- FORM FIELDS ---------- */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .form-group { margin-bottom: 16px; }

    .form-group label {
      display: block;
      font-size: 11.5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--bark);
      margin-bottom: 6px;
    }

    .input-wrap { position: relative; }

    /* Small icon sitting inside the input on the left */
    .input-icon {
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 16px;
      color: #A89880;
      pointer-events: none;
      display: flex;
      align-items: center;
    }
    .input-icon svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .input-wrap input,
    .input-wrap select {
      width: 100%;
      padding: 12px 14px 12px 40px;
      border: 1.5px solid #DDD5C4;
      border-radius: 12px;
      background: var(--white);
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      color: var(--soil);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      
    }
    .input-wrap input::placeholder { color: #BFB8AB; }
    .input-wrap input:focus,
    .input-wrap select:focus {
      border-color: var(--leaf);
      box-shadow: 0 0 0 3px rgba(92, 138, 60, 0.14);
    }

    /* Password field needs extra right padding for the eye button */
    .has-toggle input { padding-right: 42px; }

    /* Eye icon button to show/hide password */
    .toggle-pw {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      color: #A89880;
      display: flex;
      align-items: center;
      transition: color 0.2s;
    }
    .toggle-pw:hover { color: var(--moss); }
    .toggle-pw svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ---------- REMEMBER ME & FORGOT PASSWORD ROW ---------- */
    .row-between {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .check-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #6b5e4f;
      cursor: pointer;
      user-select: none;
    }
    .check-label input[type=checkbox] { display: none; }

    .check-box {
      width: 17px;
      height: 17px;
      border: 1.5px solid #C8BEB0;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .check-box svg {
      width: 10px;
      height: 10px;
      stroke: white;
      fill: none;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .check-label input:checked + .check-box { background: var(--leaf); border-color: var(--leaf); }
    .check-label input:checked + .check-box svg { opacity: 1; }

    .forgot { font-size: 13px; color: var(--moss); font-weight: 500; text-decoration: none; }
    .forgot:hover { text-decoration: underline; }

    /* ---------- BUTTONS ---------- */
    /* Main green submit button */
    .btn-submit {
      width: 100%;
      padding: 15px;
      border: none;
      cursor: pointer;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--leaf), var(--moss));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.4px;
      box-shadow: 0 6px 22px rgba(58, 94, 43, 0.38);
      transition: all 0.25s;
      position: relative;
      overflow: hidden;
    }
    .btn-submit::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    }
    .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(58,94,43,0.48); }

    /* Loading spinner shown while waiting */
    .btn-submit.loading .btn-text { opacity: 0; }
    .btn-submit .spinner {
      display: none;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 20px;
      height: 20px;
      border: 2.5px solid rgba(255,255,255,0.4);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    .btn-submit.loading .spinner { display: block; }

    /* "or" divider line */
    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0;
      color: #BFB8AB;
      font-size: 12px;
    }
    .divider::before,
    .divider::after { content: ''; flex: 1; height: 1px; background: #E4DDD2; }

    /* Google sign-in button */
    .btn-social {
      width: 100%;
      padding: 12px;
      border: 1.5px solid #DDD5C4;
      border-radius: 11px;
      background: var(--white);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      font-weight: 500;
      color: var(--soil);
      transition: all 0.2s;
    }
    .btn-social:hover { border-color: var(--leaf); background: var(--fog); }
    .btn-social img { width: 18px; height: 18px; }

    /* ---------- PASSWORD STRENGTH METER ---------- */
    .strength-wrap { margin-top: 6px; display: none; }
    .strength-bar   { height: 4px; border-radius: 4px; background: #E4DDD2; overflow: hidden; }
    .strength-fill  { height: 100%; border-radius: 4px; width: 0; transition: width 0.4s, background 0.4s; }
    .strength-label { font-size: 11px; margin-top: 4px; color: #9e9080; font-weight: 500; }

    /* Terms of service small text */
    .terms { font-size: 12px; color: #9e9080; text-align: center; margin-top: 16px; line-height: 1.6; }
    .terms a { color: var(--moss); font-weight: 500; text-decoration: none; }

    /* Back arrow link at top of auth card */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: rgba(245, 237, 216, 0.7);
      background: none;
      border: none;
      cursor: pointer;
      margin-bottom: 16px;
      padding: 0;
      font-family: 'DM Sans', sans-serif;
      transition: color 0.2s;
    }
    .back-link:hover { color: var(--cream); }
    .back-link svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* ---------- ROLE SELECTION SCREEN ---------- */
    .role-screen {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 520px;
      animation: cardIn 0.7s cubic-bezier(.22,.9,.36,1) both;
    }

    .role-brand { text-align: center; margin-bottom: 40px; }
    .role-brand .brand-icon { margin: 0 auto 14px; width: 56px; height: 56px; font-size: 30px; }
    .role-brand .brand-name { font-size: 30px; }
    .role-brand p { color: rgba(245, 237, 216, 0.65); font-size: 14px; margin-top: 6px; }

    .role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }

    .role-card {
      background: rgba(253, 250, 244, 0.07);
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      border-radius: 20px;
      padding: 28px 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.25s;
      color: var(--cream);
    }
    .role-card:hover {
      background: rgba(253, 250, 244, 0.14);
      border-color: var(--sprout);
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    }
    .role-card .role-icon { font-size: 42px; margin-bottom: 12px; }
    .role-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 6px; }
    .role-card p  { font-size: 12.5px; color: rgba(245, 237, 216, 0.55); line-height: 1.5; }

    /* ---------- DASHBOARD ---------- */
    .dashboard {
      width: 100%;
      max-width: 960px;
      animation: cardIn 0.7s cubic-bezier(.22,.9,.36,1) both;
    }

    /* Top bar with logo, name, home and logout */
    .dash-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(135deg, var(--moss), var(--bark));
      border-radius: 20px;
      padding: 20px 28px;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 10px;
    }
    .dash-header .brand-name { font-size: 18px; }

    .dash-user {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--cream);
      font-size: 14px;
    }

    /* Circle showing first letter of user's name */
    .dash-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--sprout);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
      color: white;
    }

    .btn-home,
    .btn-logout {
      border-radius: 8px;
      padding: 6px 14px;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      transition: all 0.2s;
    }
    .btn-home {
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.2);
      color: var(--cream);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .btn-home:hover { background: rgba(255,255,255,0.22); }
    .btn-home svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .btn-logout {
      background: rgba(0,0,0,0.2);
      border: 1px solid rgba(255,255,255,0.15);
      color: rgba(245, 237, 216, 0.8);
    }
    .btn-logout:hover { background: rgba(0,0,0,0.35); color: var(--cream); }

    /* Dashboard tab navigation */
    .dash-nav {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      overflow-x: auto;
      padding-bottom: 4px;
    }

    .dash-tab {
      padding: 10px 20px;
      border: none;
      cursor: pointer;
      border-radius: 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 13.5px;
      font-weight: 600;
      background: rgba(253, 250, 244, 0.1);
      color: rgba(245, 237, 216, 0.65);
      transition: all 0.25s;
      white-space: nowrap;
    }
    .dash-tab.active { background: var(--white); color: var(--moss); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
    .dash-tab:hover:not(.active) { background: rgba(253,250,244,0.18); color: var(--cream); }

    /* Each section inside the dashboard */
    .dash-panel { display: none; animation: fadeUp 0.3s ease both; }
    .dash-panel.active { display: block; }

    /* ---------- STAT CARDS ROW ---------- */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }

    .stat-card {
      background: rgba(253, 250, 244, 0.97);
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
    .stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #9e9080; margin-bottom: 8px; }
    .stat-value { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--soil); }
    .stat-sub   { font-size: 12px; color: var(--leaf); margin-top: 4px; }

    /* White content box used throughout dashboards */
    .content-box {
      background: rgba(253, 250, 244, 0.97);
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      margin-bottom: 16px;
    }
    .content-box h3 {
      font-family: 'Playfair Display', serif;
      font-size: 18px;
      color: var(--soil);
      margin-bottom: 16px;
    }

    /* Toolbar row: title on left, button on right */
    .box-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    .box-toolbar h3 { margin-bottom: 0; }

    /* ---------- ADD CROP FORM ---------- */
    .add-crop-form {
      background: var(--fog);
      border-radius: 12px;
      padding: 18px;
      margin-bottom: 18px;
      display: none;
    }
    .add-crop-form.open { display: block; }

    .add-crop-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr auto;
      gap: 10px;
      align-items: end;
    }

    .mini-group label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--bark);
      margin-bottom: 5px;
      display: block;
    }
    .mini-group input {
      width: 100%;
      padding: 9px 12px;
      border: 1.5px solid #DDD5C4;
      border-radius: 9px;
      background: var(--white);
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      color: var(--soil);
      outline: none;
    }
    .mini-group input:focus { border-color: var(--leaf); box-shadow: 0 0 0 2px rgba(92,138,60,0.12); }

    .btn-add,
    .btn-open-form {
      padding: 9px 18px;
      border: none;
      border-radius: 9px;
      background: linear-gradient(135deg, var(--leaf), var(--moss));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .btn-add:hover,
    .btn-open-form:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(58,94,43,0.4); }

    /* ---------- TABLES ---------- */
    .dash-table { width: 100%; border-collapse: collapse; }
    .dash-table th {
      text-align: left;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      color: #9e9080;
      padding-bottom: 10px;
      border-bottom: 1px solid #E4DDD2;
    }
    .dash-table td {
      padding: 12px 6px 12px 0;
      font-size: 13.5px;
      color: var(--soil);
      border-bottom: 1px solid #F0EAE0;
      vertical-align: middle;
    }
    .dash-table tr:last-child td { border-bottom: none; }

    /* Centred italic message when a table has no data yet */
    .empty-row td { text-align: center; color: #BFB8AB; font-style: italic; padding: 28px 0; }

    /* Coloured status labels */
    .badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
    .badge.green  { background: #e8f5e2; color: var(--moss); }
    .badge.yellow { background: #fef9e7; color: #b7860b; }

    /* Small red "Remove" button inside a table row */
    .btn-tbl {
      padding: 4px 12px;
      border-radius: 7px;
      border: none;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      font-weight: 600;
      transition: all 0.2s;
      background: #fde8e8;
      color: #c0392b;
    }
    .btn-tbl:hover { background: #c0392b; color: white; }

    /* ---------- PROFILE ROWS ---------- */
    .profile-row {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 14px 0;
      border-bottom: 1px solid #F0EAE0;
    }
    .profile-row:last-child { border-bottom: none; }
    .p-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: #9e9080; width: 150px; flex-shrink: 0; }
    .p-value { font-size: 14px; color: var(--soil); }

    /* ---------- BROWSE CROPS GRID ---------- */
    .crop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

    .crop-card {
      background: var(--white);
      border: 1.5px solid #E4DDD2;
      border-radius: 14px;
      padding: 18px;
      transition: all 0.2s;
    }
    .crop-card:hover { border-color: var(--leaf); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
    .crop-name  { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--soil); margin-bottom: 3px; }
    .crop-farm  { font-size: 12px; color: #9e9080; margin-bottom: 4px; }
    .crop-stock { font-size: 12px; color: #b7860b; margin-bottom: 8px; }
    .crop-price { font-size: 20px; font-weight: 700; color: var(--leaf); }
    .crop-unit  { font-size: 12px; color: #9e9080; }

    .btn-order {
      width: 100%;
      margin-top: 12px;
      padding: 9px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--leaf), var(--moss));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-order:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(58,94,43,0.4); }

    .no-crops { text-align: center; color: #BFB8AB; font-style: italic; padding: 32px 0; font-size: 14px; }

    /* ---------- SAVED FARMERS GRID ---------- */
    .saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

    .saved-card {
      background: var(--white);
      border: 1.5px solid #E4DDD2;
      border-radius: 14px;
      padding: 20px;
      text-align: center;
      transition: all 0.2s;
    }
    .saved-card:hover { border-color: var(--leaf); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
    .saved-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--sprout);
      color: white;
      font-size: 18px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 10px;
    }
    .saved-card h4 { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--soil); margin-bottom: 3px; }
    .saved-card p  { font-size: 12px; color: #9e9080; margin-bottom: 6px; }

    /* ---------- TOAST NOTIFICATION ---------- */
    .toast {
      position: fixed;
      bottom: 32px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--soil);
      color: var(--cream);
      padding: 13px 24px;
      border-radius: 50px;
      font-size: 13.5px;
      font-weight: 500;
      box-shadow: 0 8px 30px rgba(0,0,0,0.4);
      opacity: 0;
      transition: all 0.4s;
      pointer-events: none;
      white-space: nowrap;
      z-index: 999;
    }
    .toast.show    { opacity: 1; transform: translateX(-50%) translateY(0); }
    .toast.success { background: var(--moss); }
    .toast.error   { background: #c0392b; }

    /* ---------- MOBILE ---------- */
    @media (max-width: 640px) {
      .card-header, .panel { padding-left: 22px; padding-right: 22px; }
      .form-row       { grid-template-columns: 1fr; }
      .stats-row      { grid-template-columns: 1fr; }
      .add-crop-row   { grid-template-columns: 1fr 1fr; }
      .role-cards     { grid-template-columns: 1fr; }
    }

