/* ============================================
AGROSENSE — DESIGN SYSTEM (Retheme: warm olive/cream)
Palette:
--forest: #4B6B23  (olive green — primary)
--forest-dark: #3B5519 (hover state)
--sage: #8FAE55    (light olive — accents, active states)
--amber: #D9A356   (warm tan — warnings)
--mist: #F5F1E8    (warm cream page background)
--charcoal:#2B3A1F (deep olive-black — dark accents, footer)
--card: #FFFFFF
============================================ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
:root {
  --forest: #4B6B23;
  --forest-dark: #3B5519;
  --sage: #8FAE55;
  --amber: #D9A356;
  --mist: #F5F1E8;
  --charcoal: #2B3A1F;
  --card: #FFFFFF;
  --text: #2b2a24;
  --text-muted: #8a8578;
  --border: #e6e1d3;
  --shadow: 0 2px 16px rgba(43,42,36,0.07);
  --shadow-lg: 0 8px 40px rgba(43,42,36,0.13);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ============================================
HOME PAGE
============================================ */
.page-home { background: var(--mist); }

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(245,241,232,0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem;
  color: var(--charcoal);
}
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text); padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background .18s;
}
.site-nav a:hover { background: var(--border); }
.btn-nav {
  background: var(--forest) !important;
  color: #fff !important;
}
.btn-nav:hover { background: var(--forest-dark) !important; }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  padding: 120px 48px 60px;
  gap: 60px;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-photo-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-photo-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(43,58,31,0.92) 0%, rgba(43,58,31,0.75) 38%, rgba(245,241,232,0.2) 75%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage);
  background: rgba(143,174,85,0.15);
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem; font-weight: 400;
  color: rgba(255,255,255,0.8); line-height: 1.7;
  max-width: 480px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  background: var(--forest); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700;
  transition: background .18s, transform .12s;
  display: inline-block;
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-1px); }
.btn-ghost {
  color: #fff; font-size: 0.9rem; font-weight: 600;
  padding: 14px 4px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transition: border-color .18s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--sage); }
.hero-stats {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.4rem; font-weight: 800; color: var(--sage); }
.stat span { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.25); }

/* FLOATING CARDS (hero visual) */
.hero-visual {
  position: relative; z-index: 1;
  height: 460px;
}
.floating-card {
  position: absolute;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
  min-width: 200px;
  animation: floatY 4s ease-in-out infinite;
}
.fc1 { top: 10px; left: 30px; animation-delay: 0s; }
.fc2 { top: 140px; right: 0; animation-delay: 1.3s; }
.fc3 { top: 270px; left: 10px; animation-delay: 2.6s; }
.fc4 { top: 260px; right: 30px; animation-delay: 0.8s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-icon { font-size: 1.8rem; }
.fc-data { display: flex; flex-direction: column; }
.fc-val { font-size: 1.4rem; font-weight: 800; color: var(--charcoal); }
.fc-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.pulse-ring {
  position: absolute; top: 12px; right: 12px;
  width: 10px; height: 10px;
  background: var(--sage);
  border-radius: 50%;
}
.pulse-ring::after {
  content: '';
  position: absolute; inset: -4px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* HIGHLIGHT BAND */
.highlight-band {
  background: var(--forest);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 48px;
  gap: 20px;
}
.highlight-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.highlight-item strong {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: #fff;
}
.highlight-item span { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* FEATURES */
.features {
  padding: 100px 48px;
  background: var(--card);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 56px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px; max-width: 1180px; margin: 0 auto;
}
.feature-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.feature-card.has-photo { padding-top: 0; overflow: hidden; }
.feature-photo {
  height: 140px; margin: 0 -28px 20px -28px; overflow: hidden;
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 10px;
}
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.feature-more {
  font-size: 0.8rem; font-weight: 700; color: var(--forest-dark);
}

/* Feature detail modal — larger variant of the shared modal */
.feature-modal-box { max-width: 460px; text-align: left; position: relative; }
.modal-close-x {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mist); border: none; color: var(--text-muted);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close-x:hover { background: var(--border); color: var(--charcoal); }
.feature-modal-photo { margin: -32px -32px 20px -32px; height: 160px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.feature-modal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-modal-icon { font-size: 2.2rem; margin-bottom: 10px; }
.feature-modal-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0 4px; }
.feature-modal-list li {
  font-size: 0.85rem; color: var(--text); padding-left: 20px; position: relative; line-height: 1.5;
}
.feature-modal-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--forest); font-weight: 700;
}

/* SITE FOOTER */
.site-footer {
  padding: 32px 48px;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: space-between;
}
.site-footer .logo { color: #fff; }
.site-footer .logo svg path:first-child { fill: var(--sage); }
.site-footer .logo svg path:last-child { fill: #fff; }
.site-footer p { color: rgba(255,255,255,0.55); font-size: 0.8rem; }

/* ============================================
AUTH PAGES
============================================ */
.page-auth { background: var(--mist); }
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-panel {
  padding: 48px 64px;
  display: flex; flex-direction: column;
  background: var(--card);
}
.auth-panel .logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; color: var(--charcoal);
  margin-bottom: 64px;
}
.auth-form-wrap { max-width: 360px; }
.auth-title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--charcoal); margin-bottom: 8px;
}
.auth-sub { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 36px; }
.auth-msg {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.85rem; margin-bottom: 20px;
}
.auth-msg.error { background: #fbe4e1; color: #93321f; }
.auth-msg.success { background: #e4efd6; color: #3b5519; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--text); margin-bottom: 7px; letter-spacing: 0.02em;
}
.form-group input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-body);
  color: var(--text);
  background: var(--mist);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(143,174,85,0.25);
  background: #fff;
}
.password-strength {
  height: 3px; background: var(--border);
  border-radius: 4px; margin-top: 8px; overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0;
  background: var(--sage);
  transition: width .3s, background .3s;
}
.btn-submit {
  width: 100%; padding: 14px 20px;
  background: var(--forest); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s, transform .12s;
  margin-bottom: 20px;
}
.btn-submit:hover { background: var(--forest-dark); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.auth-link { font-size: 0.84rem; color: var(--text-muted); text-align: center; }
.auth-link a { color: var(--forest); font-weight: 700; }

/* AUTH DECO */
.auth-deco {
  background: var(--charcoal);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  position: relative; overflow: hidden;
}
.deco-content {
  position: relative; z-index: 1;
}
.deco-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: #fff; line-height: 1.4; margin-bottom: 12px;
}
.deco-content p { color: var(--sage); font-size: 0.85rem; }
.deco-circles { position: absolute; inset: 0; }
.dc {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(143,174,85,0.18);
}
.dc1 { width: 400px; height: 400px; top: -80px; right: -100px; }
.dc2 { width: 280px; height: 280px; top: 60px; right: -40px; }
.dc3 { width: 160px; height: 160px; top: 140px; right: 40px;
  background: rgba(143,174,85,0.08); }

/* ============================================
DASHBOARD
============================================ */
.page-dashboard { background: var(--mist); }
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* SIDEBAR — light theme, like SmartAgri */
.sidebar {
  background: var(--card);
  display: flex; flex-direction: column;
  padding: 28px 20px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.sb-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; color: var(--charcoal);
  margin-bottom: 40px; padding: 0 8px;
}
.sb-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.87rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.sb-link:hover, .sb-link.active {
  background: rgba(143,174,85,0.16);
  color: var(--forest-dark);
}
.sb-link.active { color: var(--forest-dark); }
.sb-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px; margin-top: 20px;
}
.sb-user {
  display: flex; align-items: center; gap: 12px;
  padding: 0 6px; margin-bottom: 16px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage); color: #fff;
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.83rem; font-weight: 700; color: var(--charcoal); }
.user-role { font-size: 0.72rem; color: var(--text-muted); }
.sb-logout {
  width: 100%; padding: 10px 14px;
  background: var(--mist);
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.82rem; font-family: var(--font-body); font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s;
}
.sb-logout:hover { background: var(--border); color: var(--charcoal); }

/* MAIN */
.dash-main { padding: 36px 40px; overflow-y: auto; }
.topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 36px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800; color: var(--charcoal);
}
.page-date { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.alert-badge {
  position: relative; cursor: pointer;
  color: var(--text-muted); padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border);
  transition: background .15s;
}
.alert-badge:hover { background: var(--border); }
.badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; background: #d1554a;
  border-radius: 50%; border: 1.5px solid var(--card);
}
.refresh-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(143,174,85,0.18);
  color: var(--forest-dark); font-size: 0.78rem; font-weight: 700;
  padding: 7px 14px; border-radius: 100px;
  cursor: pointer; transition: background .15s;
}
.refresh-chip:hover { background: rgba(143,174,85,0.3); }

/* SENSOR GRID */
.sensor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 28px;
}
.sensor-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.sensor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sc-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.sc-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform:
  uppercase; letter-spacing: 0.05em; }
.sc-icon { font-size: 1.3rem; }
.sc-value {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--charcoal); margin-bottom: 14px;
}
.sc-value.green { color: var(--forest-dark); }
.sc-bar {
  height: 5px; background: var(--border);
  border-radius: 4px; overflow: hidden; margin-bottom: 12px;
}
.sc-bar-fill {
  height: 100%; background: var(--sage);
  border-radius: 4px; transition: width .8s ease;
}
.sc-bar-fill.amber { background: var(--amber); }
.sc-meta { display: flex; justify-content: space-between; align-items: center; }
.sc-status {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.sc-status.good { background: rgba(75,107,35,0.12); color: var(--forest-dark); }
.sc-status.warn { background: rgba(217,163,86,0.18); color: #8a5a1e; }
.sc-trend { font-size: 0.72rem; color: var(--text-muted); }

/* DASHBOARD BOTTOM */
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}
.chart-card, .activity-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.chart-header h2, .activity-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--charcoal);
}
.chart-tabs { display: flex; gap: 4px; }
.ct {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent; cursor: pointer;
  font-family: var(--font-body); color: var(--text-muted);
  transition: all .15s;
}
.ct.active, .ct:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.activity-card h2 { margin-bottom: 20px; }
.activity-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.al-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.al-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.al-dot.good { background: var(--forest); }
.al-dot.warn { background: var(--amber); }
.al-dot.info { background: #6a9bc3; }
.al-item strong { display: block; font-size: 0.83rem; font-weight: 700; color: var(--text);
  margin-bottom: 2px; }
.al-item span { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
TEAM PAGE — Add Member button, modal, roles
============================================ */
.btn-add-member {
  display: flex; align-items: center; gap: 8px;
  background: var(--forest); color: #fff;
  border: none; padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.btn-add-member:hover { background: var(--forest-dark); transform: translateY(-1px); }

.role-legend { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.role-legend li { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }

.role-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.03em;
}
.role-badge.role-owner   { background: rgba(217,163,86,0.2); color: #8a5a1e; }
.role-badge.role-manager { background: rgba(143,174,85,0.22); color: var(--forest-dark); }
.role-badge.role-viewer  { background: rgba(106,155,195,0.18); color: #3b6bb0; }

.team-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.team-table th {
  text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted); padding: 10px 12px;
  border-bottom: 1.5px solid var(--border);
}
.team-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.team-empty { text-align: center; color: var(--text-muted); padding: 28px 12px !important; }
.team-row-actions { text-align: right; }
.team-remove-btn {
  background: none; border: 1.5px solid var(--border); color: #93321f;
  font-size: 0.78rem; font-weight: 700; padding: 6px 12px;
  border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-body);
  transition: background .15s;
}
.team-remove-btn:hover { background: #fbe4e1; }

/* Modal */
.modal-overlay {
  display: flex; position: fixed; inset: 0; z-index: 200;
  background: rgba(43,58,31,0.55);
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--card); border-radius: var(--radius);
  padding: 32px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(8px);
  transition: transform .25s ease;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-box h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: var(--charcoal); margin-bottom: 6px;
}
.modal-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.modal-box select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-family: var(--font-body);
  color: var(--text); background: var(--mist); outline: none;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.btn-ghost-modal {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.87rem; font-weight: 700; padding: 12px 14px; cursor: pointer;
  font-family: var(--font-body);
}
.btn-ghost-modal:hover { color: var(--charcoal); }
.modal-actions .btn-submit { width: auto; margin-bottom: 0; padding: 12px 22px; }

/* ============================================
CROP PHOTO BANNER + LIVESTOCK CARD
============================================ */
.field-photo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  height: 220px;
}
.field-photo-banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.field-photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(43,58,31,0.85), rgba(43,58,31,0));
  display: flex; flex-direction: column; gap: 2px;
}
.field-photo-caption span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage);
}
.field-photo-caption strong {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: #fff;
}

.livestock-card { margin-top: 20px; }
.livestock-body {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
}
.livestock-photo {
  width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm);
}
.livestock-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.livestock-stat { display: flex; flex-direction: column; }
.livestock-stat strong {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--charcoal);
}
.livestock-stat span { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 700px) {
  .livestock-body { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .sensor-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom { grid-template-columns: 1fr; }
}
/* MOBILE NAV TOGGLE (hamburger) — hidden on desktop */
.mobile-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; position: fixed; top: 18px; left: 18px; z-index: 250;
  box-shadow: var(--shadow);
}
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 240;
  background: rgba(43,58,31,0.45);
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-visual { display: none; }
  .highlight-band { grid-template-columns: repeat(2, 1fr); padding: 28px 24px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-deco { display: none; }
  .auth-panel { padding: 36px 28px; }
  .dash-layout { grid-template-columns: 1fr; }
  .mobile-nav-toggle { display: flex; }
  .sidebar {
    display: flex;
    position: fixed; top: 0; left: 0; height: 100vh; width: 250px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 245;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .dash-main { padding: 72px 20px 24px; }
  .site-header { padding: 16px 20px; }
  .features { padding: 64px 24px; }
}
@media (max-width: 600px) {
  .sensor-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-card, .pulse-ring::after { animation: none; }
}
