/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #2e7d32;
  --primary-light: #4caf50;
  --primary-dark:  #1b5e20;
  --accent:        #f9a825;
  --accent-light:  #ffd54f;
  --white:         #ffffff;
  --bg:            #f1f8e9;
  --gray-light:    #f5f5f5;
  --gray:          #9e9e9e;
  --dark:          #212121;
  --text:          #333333;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 30px rgba(0,0,0,0.15);
  --radius:        12px;
  --radius-lg:     20px;
  --tr:            all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.3; }

.section-title   { font-size: 2rem; color: var(--primary-dark); margin-bottom: .5rem; }
.section-subtitle{ color: var(--gray); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--tr); border: none; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; box-shadow: 0 4px 15px rgba(46,125,50,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(46,125,50,.5); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--dark); box-shadow: 0 4px 15px rgba(249,168,37,.4);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(249,168,37,.5); }

.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-danger { background: #d32f2f; color: #fff; }
.btn-success{ background: var(--primary); color: #fff; }

.btn-sm  { padding: 8px 18px; font-size: .9rem; }
.btn-lg  { padding: 16px 36px; font-size: 1.1rem; }
.btn-full{ width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--primary-dark);
  padding: 0 2rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; height: 70px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 1.25rem; font-weight: 800;
}
.navbar-brand .logo{ font-size: 1.8rem; }
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a {
  color: rgba(255,255,255,.85); padding: 8px 14px;
  border-radius: 8px; font-size: .95rem; font-weight: 600; transition: var(--tr);
}
.navbar-links a:hover, .navbar-links a.active { color: #fff; background: rgba(255,255,255,.15); }

.navbar-auth { display: flex; gap: 10px; }
.navbar-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #388e3c 100%);
  color: #fff; padding: 100px 2rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,255,255,.07) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(249,168,37,.2);
  border: 1px solid var(--accent); color: var(--accent-light);
  padding: 6px 20px; border-radius: 50px; font-size: .9rem; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p  { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); padding: 18px 28px;
  border-radius: var(--radius); min-width: 140px;
}
.hero-stat .val  { font-size: 2rem; font-weight: 800; color: var(--accent-light); }
.hero-stat .lbl  { font-size: .82rem; opacity: .8; }

/* ===== CONTAINERS ===== */
.container { max-width: 1200px; margin: 0 auto; }
.section   { padding: 80px 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: var(--tr);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ===== STAT CARDS ===== */
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; transition: var(--tr);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card .ico {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-card .info .val { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .info .lbl { color: var(--gray); font-size: .88rem; }

.ico-green  { background: #e8f5e9; color: var(--primary); }
.ico-yellow { background: #fff8e1; color: #f57f17; }
.ico-blue   { background: #e3f2fd; color: #1565c0; }
.ico-orange { background: #fff3e0; color: #e65100; }
.ico-red    { background: #ffebee; color: #b71c1c; }
.ico-purple { background: #f3e5f5; color: #6a1b9a; }

/* ===== UNIT CARDS ===== */
.unit-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; box-shadow: var(--shadow); border: 2px solid transparent;
  transition: var(--tr); position: relative; overflow: hidden;
}
.unit-card.featured { border-color: var(--accent); transform: scale(1.04); }
.unit-card.featured::before {
  content: '⭐ الأكثر شيوعاً'; position: absolute; top: 0; right: 0;
  background: var(--accent); color: var(--dark); padding: 6px 16px;
  font-size: .8rem; font-weight: 700; border-radius: 0 var(--radius) 0 var(--radius);
}
.unit-card h3    { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: .4rem; }
.unit-card .price{ font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.unit-card .price span { font-size: 1rem; color: var(--gray); }
.unit-card .features { margin: 1.5rem 0; text-align: right; }
.unit-card .features li {
  padding: 8px 0; border-bottom: 1px solid #f5f5f5;
  display: flex; align-items: center; gap: 8px;
}
.unit-card .features li i { color: var(--primary); width: 18px; }

/* ===== FARM GALLERY SLIDER ===== */
.farm-gallery-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  min-height: 420px;
  background: #dfead8;
}
.farm-gallery-track {
  position: relative;
  min-height: 420px;
}
.farm-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s ease, transform .55s ease;
}
.farm-slide.active {
  opacity: 1;
  transform: scale(1);
}
.farm-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.farm-slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.65) 100%);
}
.farm-slide-caption {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.farm-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
  transition: var(--tr);
}
.farm-gallery-nav:hover {
  background: rgba(0,0,0,.65);
}
.farm-gallery-nav.right { right: 14px; }
.farm-gallery-nav.left  { left: 14px; }
.farm-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}
.farm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #b0bec5;
  cursor: pointer;
}
.farm-dot.active {
  background: var(--primary-dark);
  transform: scale(1.2);
}
.farm-gallery-loading,
.farm-gallery-empty {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--primary-dark);
  font-weight: 700;
}

/* ===== HOW IT WORKS ===== */
.steps { display: flex; gap: 2rem; align-items: flex-start; }
.step  { flex: 1; text-align: center; padding: 1.5rem; }
.step-num {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step h3   { color: var(--primary-dark); margin-bottom: .4rem; }

/* ===== FORMS ===== */
.form-group       { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0;
  border-radius: var(--radius); font-family: 'Cairo', sans-serif;
  font-size: 1rem; color: var(--text); transition: var(--tr);
  background: #fff; direction: rtl;
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
.form-control::placeholder { color: var(--gray); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== AUTH ===== */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 2rem;
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 450px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-logo   { text-align: center; font-size: 3.5rem; margin-bottom: 1.5rem; }
.auth-card h2{ color: var(--primary-dark); margin-bottom: .4rem; font-size: 1.8rem; }
.auth-card p { color: var(--gray); margin-bottom: 2rem; }
.auth-foot   { text-align: center; margin-top: 1.5rem; color: var(--gray); font-size: .95rem; }
.auth-foot a { color: var(--primary); font-weight: 700; }

/* ===== DASHBOARD ===== */
.dash-layout  { display: flex; min-height: calc(100vh - 70px); }
.sidebar {
  width: 260px; background: var(--primary-dark); color: #fff;
  padding: 1.5rem 1rem; position: sticky; top: 70px;
  height: calc(100vh - 70px); overflow-y: auto; flex-shrink: 0;
}
.sidebar-user { text-align: center; padding: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-user .av {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex;
  align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto .5rem;
}
.sidebar-user .name { font-weight: 700; }
.sidebar-user .role { font-size: .8rem; opacity: .65; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; color: rgba(255,255,255,.8);
  border-radius: var(--radius); margin-bottom: 4px; transition: var(--tr); font-size: .95rem;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.sidebar-nav a i { width: 20px; text-align: center; }
.nav-sect { font-size: .72rem; opacity: .45; padding: 1rem 16px .4rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.dash-content { flex: 1; padding: 2rem; background: var(--bg); overflow-x: hidden; }
.page-header   { margin-bottom: 2rem; }
.page-header h1{ font-size: 1.7rem; color: var(--primary-dark); }
.page-header p { color: var(--gray); margin-top: 4px; }

/* ===== TABLES ===== */
.tbl-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
table th { background: var(--primary-dark); color: #fff; padding: 13px 16px; text-align: right; font-size: .88rem; font-weight: 600; }
table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: .93rem; }
#livestock-tab table th:first-child,
#livestock-tab table td:first-child {
  min-width: 220px;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #f9f9f9; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 700; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff8e1; color: #f57f17; }
.badge-danger  { background: #ffebee; color: #c62828; }
.badge-info    { background: #e3f2fd; color: #1565c0; }

/* ===== CHART CARD ===== */
.chart-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.chart-card h3 { color: var(--primary-dark); margin-bottom: 1rem; font-size: 1.1rem; }

/* ===== TRUST / UPDATES ===== */
.updates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.upd-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); }
.upd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.upd-card .img-box { height: 180px; background: linear-gradient(135deg,#e8f5e9,#c8e6c9); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.upd-card-body { padding: 1.2rem; }
.upd-card-body h4 { color: var(--primary-dark); margin-bottom: .4rem; }
.upd-card-body p  { color: var(--gray); font-size: .9rem; line-height: 1.6; }
.upd-card-body .dt{ font-size: .78rem; color: var(--gray); margin-top: .5rem; }

.live-box {
  background: linear-gradient(135deg,#1a1a2e,#0d1117);
  border-radius: var(--radius-lg); padding: 3.5rem 2rem;
  text-align: center; color: #fff; margin-bottom: 3rem;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #d32f2f; color: #fff; padding: 6px 16px;
  border-radius: 50px; font-size: .88rem; font-weight: 700; margin-bottom: 1rem;
}
.live-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; }
.cinfo-card { background: var(--primary-dark); color: #fff; border-radius: var(--radius-lg); padding: 2rem; }
.cinfo-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.cinfo-item .ico2 {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.wa-btn {
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; margin-top: 1.5rem; transition: var(--tr);
}
.wa-btn:hover { background: #128c7e; transform: translateY(-2px); }

/* ===== CALCULATOR ===== */
.calc-box { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.calc-box h3 { color: var(--primary-dark); margin-bottom: 1.5rem; font-size: 1.3rem; }
.calc-result { background: linear-gradient(135deg,var(--primary),var(--primary-light)); color: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center; margin-top: 1.5rem; }
.calc-result .amount { font-size: 2.5rem; font-weight: 800; }
.calc-result .period { font-size: .88rem; opacity: .9; }

/* ===== FOOTER ===== */
footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 3rem 2rem 1rem; }

/* ── Announcement Ticker ─────────────────────────────────── */
.ticker-bar {
  background: linear-gradient(90deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 0;
  overflow: hidden;
  height: 42px;
  display: flex !important;
  align-items: center;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 2px solid rgba(255,255,255,.15);
}
.ticker-label {
  background: #f9a825;
  color: #1a1a1a;
  font-weight: 800;
  font-size: .86rem;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 8px;
  z-index: 2;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll var(--ticker-duration, 30s) linear infinite;
  will-change: transform;
}
.ticker-content:hover {
  animation-play-state: paused;
}
.ticker-item {
  font-size: .92rem;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker-item::after {
  content: '•';
  font-size: .65rem;
  opacity: .45;
  margin-right: 18px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(var(--ticker-distance, 0px) * -1)); }
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.foot-links a { display: block; color: rgba(255,255,255,.7); margin-bottom: 8px; transition: var(--tr); }
.foot-links a:hover { color: #fff; padding-right: 5px; }
.foot-bottom { text-align: center; padding-top: 1.5rem; font-size: .83rem; color: rgba(255,255,255,.45); max-width: 1200px; margin: 0 auto; }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1rem; font-size: .93rem; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert-info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; background: #f0f0f0; padding: 4px; border-radius: var(--radius); margin-bottom: 1.5rem; }
.tab-btn { flex: 1; padding: 9px; border: none; border-radius: 8px; background: transparent; font-family: 'Cairo',sans-serif; font-size: .93rem; font-weight: 600; cursor: pointer; color: var(--gray); transition: var(--tr); }
.tab-btn.active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== MODAL ===== */
.modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 2rem; max-width: 500px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray); }

/* ===== SCROLL TOP ===== */
#scrollTop {
  position: fixed; bottom: 2rem; left: 2rem; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.3); transition: var(--tr); z-index: 50;
}
#scrollTop.vis  { display: flex; }
#scrollTop:hover{ background: var(--primary-dark); transform: translateY(-3px); }

/* ===== SPINNER ===== */
.spinner { width: 40px; height: 40px; border: 4px solid #e0e0e0; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== UTILITIES ===== */
.text-center   { text-align: center; }
.text-green    { color: var(--primary); }
.text-yellow   { color: var(--accent); }
.text-gray     { color: var(--gray); }
.fw-bold       { font-weight: 700; }
.fs-sm         { font-size: .85rem; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.d-flex{display:flex}.align-center{align-items:center}.justify-between{justify-content:space-between}
.gap-1{gap:.5rem}.gap-2{gap:1rem}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 1rem; }
  .section { padding: 50px 1rem; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .navbar-links,.navbar-auth { display: none; }
  .navbar-links.open,.navbar-auth.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; right: 0; left: 0;
    background: var(--primary-dark); padding: 1rem; z-index: 99;
  }
  .navbar-toggle { display: block; }
  .sidebar { display: none; }
  .sidebar.open { display: block; position: fixed; z-index: 200; top: 70px; height: calc(100vh - 70px); }
  .contact-grid,.form-row { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .dash-content { padding: 1rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stats { gap: 1rem; }
  .farm-gallery-wrap,
  .farm-gallery-track,
  .farm-slide img,
  .farm-gallery-loading,
  .farm-gallery-empty {
    min-height: 280px;
    height: 280px;
  }
  .farm-gallery-nav {
    width: 40px;
    height: 40px;
  }
  .farm-slide-caption {
    font-size: .95rem;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .btn-lg { padding: 13px 24px; font-size: 1rem; }
}
