/* ============================================================
   LivestockVest by KOAF — Main Stylesheet
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --green:        #0B6B3A;
  --green-deep:   #063B25;
  --green-fresh:  #18A558;
  --green-light:  #E8F5EF;
  --gold:         #F5B942;
  --gold-soft:    #FFF4D6;
  --cream:        #F8F5EA;
  --dark:         #102016;
  --dark-2:       #1A2E22;
  --muted:        #6B776C;
  --muted-light:  #9EAB9F;
  --border:       #E2EAE4;
  --white:        #FFFFFF;
  --danger:       #D64545;
  --success:      #16A34A;
  --info:         #2563EB;
  --warning:      #D97706;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(11,107,58,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-md:    0 8px 32px rgba(11,107,58,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:    0 20px 60px rgba(11,107,58,.18), 0 8px 24px rgba(0,0,0,.10);

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --transition:   all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h:     72px;
  --sidebar-w:    260px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-fresh); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: #e5a730;
  border-color: #e5a730;
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover { background: #b03737; border-color: #b03737; color: var(--white); }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Announcement bar ────────────────────────────────────── */
.announcement-bar {
  background: var(--green-deep);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.875rem;
  text-align: center;
  position: relative;
}
.announcement-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ann-close { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.1rem; margin-left: 12px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--green-fresh));
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-brand { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--green-deep); line-height: 1; }
.logo-sub   { font-size: 0.62rem; color: var(--muted); font-weight: 500; letter-spacing: 0.03em; }

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--green-light);
  color: var(--green);
}

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

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 60%, #0f8a48 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,185,66,.15);
  border: 1px solid rgba(245,185,66,.3);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); color: var(--white); }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}
.trust-badge i { color: var(--gold); font-size: 0.75rem; }

.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 340px;
  color: var(--white);
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-display);
}
.hero-stat-label { font-size: 0.75rem; opacity: .7; }

.hero-mini-card {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.hero-mini-icon {
  width: 40px;
  height: 40px;
  background: rgba(245,185,66,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero-mini-text { font-size: 0.78rem; opacity: .8; }
.hero-mini-text strong { display: block; font-size: 0.9rem; opacity: 1; }

/* ── Section styles ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--green-deep); color: var(--white); }
.section-cream { background: var(--cream); }
.section-light { background: var(--green-light); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.section-dark .section-label { background: rgba(255,255,255,.1); color: var(--gold); }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title  { font-size: 1.05rem; font-weight: 700; }

/* KPI Card */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.kpi-icon.gold { background: var(--gold-soft); color: var(--gold); }
.kpi-icon.info { background: #EFF6FF; color: var(--info); }
.kpi-icon.danger { background: #FEF2F2; color: var(--danger); }
.kpi-value { font-size: 1.7rem; font-weight: 800; font-family: var(--font-display); color: var(--dark); }
.kpi-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.kpi-change { font-size: 0.78rem; font-weight: 600; }
.kpi-change.up   { color: var(--success); }
.kpi-change.down { color: var(--danger); }

/* Livestock Plan Card */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card-image { height: 200px; overflow: hidden; position: relative; }
.plan-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.plan-card:hover .plan-card-image img { transform: scale(1.05); }
.plan-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.plan-card-body { padding: 20px; }
.plan-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.plan-card-meta { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.plan-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.plan-meta-label { color: var(--muted); }
.plan-meta-value { font-weight: 600; color: var(--dark); }
.plan-return { color: var(--success); font-size: 1.15rem; font-weight: 800; }
.plan-card-footer { padding: 0 20px 20px; }

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.cat-card:hover { background: var(--green-light); border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card:hover .cat-icon { background: var(--green); color: var(--white); }
.cat-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
  transition: var(--transition);
}
.cat-name  { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.cat-count { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; position: relative; }
.step { text-align: center; }
.step-num {
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}
.step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 0.85rem; color: var(--muted); }

/* Stats bar */
.stats-bar {
  background: var(--green);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item-value {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-display);
}
.stat-item-label { font-size: 0.85rem; color: rgba(255,255,255,.8); }

/* FarmTok */
.farmtok-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.farmtok-card {
  aspect-ratio: 9/16;
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.farmtok-card video,
.farmtok-card img { width: 100%; height: 100%; object-fit: cover; }
.farmtok-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: var(--white);
}
.farmtok-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.farmtok-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: var(--transition);
}
.farmtok-card:hover .farmtok-play { opacity: 1; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }
.badge-muted   { background: #F1F5F9; color: #475569; }
.badge-gold    { background: var(--gold-soft); color: #92400E; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  background: var(--cream);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
tbody td { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--dark); vertical-align: middle; }
tbody tr:hover { background: var(--cream); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-label .required { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  transition: var(--transition);
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,107,58,.12); }
.form-control::placeholder { color: var(--muted-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B776C' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.form-text { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Flash messages ──────────────────────────────────────── */
.flash-container { padding: 0 24px; }
.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid;
}
.flash-success { background: #DCFCE7; color: #166534; border-left-color: var(--success); }
.flash-danger  { background: #FEE2E2; color: #991B1B; border-left-color: var(--danger); }
.flash-warning { background: #FEF3C7; color: #92400E; border-left-color: var(--warning); }
.flash-info    { background: #DBEAFE; color: #1E40AF; border-left-color: var(--info); }
.flash-close   { background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .6; }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.auth-visual h2 { font-size: 2rem; color: var(--white); margin-bottom: 16px; }
.auth-visual p  { color: rgba(255,255,255,.8); margin-bottom: 32px; }
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: var(--white);
  overflow-y: auto;
}
.auth-form-side .logo { margin-bottom: 32px; }
.auth-title { font-size: 1.8rem; margin-bottom: 8px; }
.auth-sub   { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--muted); }
.auth-benefits { display: flex; flex-direction: column; gap: 16px; }
.auth-benefit { display: flex; align-items: center; gap: 12px; }
.auth-benefit-icon { width: 36px; height: 36px; background: rgba(245,185,66,.2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.auth-benefit-text { font-size: 0.9rem; color: rgba(255,255,255,.85); }

/* Testimonial in auth */
.auth-testimonial {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 36px;
}
.auth-testimonial p { font-style: italic; color: rgba(255,255,255,.9); margin-bottom: 12px; }
.auth-testimonial strong { color: var(--gold); font-size: 0.85rem; }

/* ── Sidebar nav shared styles ───────────────────────────── */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.nav-group { margin-bottom: 8px; }
.nav-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  padding: 8px 10px 4px;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-nav a:hover { background: var(--green-light); color: var(--green); }
.sidebar-nav a.active { background: var(--green); color: var(--white); }
.sidebar-nav a i { width: 18px; font-size: 0.85rem; opacity: .75; }
.sidebar-nav a.active i { opacity: 1; }

.sidebar-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sidebar-close { display: none; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-avatar {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info strong { display: block; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info small  { font-size: 0.72rem; color: var(--muted); }
.sidebar-logout { color: var(--muted); transition: var(--transition); }
.sidebar-logout:hover { color: var(--danger); }

/* Topbar shared */
.admin-topbar, .dash-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-title { flex: 1; }
.topbar-title h1 { font-size: 1.15rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--cream);
  position: relative;
  text-decoration: none;
  transition: var(--transition);
}
.topbar-icon:hover { background: var(--green-light); color: var(--green); }
.topbar-icon.has-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.sidebar-toggle { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; padding: 6px; border-radius: var(--radius-sm); }
.sidebar-toggle:hover { background: var(--cream); color: var(--dark); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.topbar-user:hover { background: var(--cream); }
.topbar-avatar {
  width: 32px;
  height: 32px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.topbar-user span { font-size: 0.875rem; font-weight: 600; }
.topbar-user i.fa-chevron-down { font-size: 0.7rem; color: var(--muted); }
.topbar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}
.topbar-user:hover .topbar-dropdown,
.topbar-user.open .topbar-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.topbar-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}
.topbar-dropdown a:hover { background: var(--cream); }
.topbar-dropdown a.text-danger { color: var(--danger); }
.topbar-dropdown hr { margin: 6px 0; border: none; border-top: 1px solid var(--border); }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
}
.sidebar-overlay.active { display: block; }

/* ── Progress bars ───────────────────────────────────────── */
.progress-bar { background: var(--border); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: var(--green); transition: width 0.5s ease; }
.progress-fill.gold { background: var(--gold); }

/* ── KYC status colors (dashboard sidebar) ───────────────── */
.kyc-unsubmitted { color: var(--muted); }
.kyc-pending     { color: var(--warning); }
.kyc-approved    { color: var(--success); }
.kyc-rejected    { color: var(--danger); }
.kyc-status i { font-size: 0.5rem; vertical-align: middle; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.pagination a:hover { background: var(--green-light); color: var(--green); border-color: var(--green); }
.pagination .current { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
}
.faq-question:hover { background: var(--cream); }
.faq-question i { transition: var(--transition); color: var(--green); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease; font-size: 0.9rem; color: var(--muted); }
.faq-item.open .faq-answer { padding: 0 20px 18px; max-height: 300px; }

/* ── Site footer ─────────────────────────────────────────── */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.85); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 52px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-brand { color: var(--white); }
.footer-brand .logo-sub   { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--dark); }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 0.875rem; color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-col li a:hover { color: var(--gold); }
.contact-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: rgba(255,255,255,.65); }
.contact-list i { color: var(--gold); margin-top: 3px; width: 14px; flex-shrink: 0; }
.contact-list a { color: rgba(255,255,255,.65); }
.contact-list a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}
.footer-disclaimer { max-width: 480px; }
.footer-disclaimer a { color: var(--gold); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.breadcrumb a { color: var(--green); }
.breadcrumb span:not(.separator) { color: var(--muted); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(-12px); } to { opacity: 1; transform: none; } }
.modal-header { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.15rem; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.2rem; padding: 4px; }
.modal-body  { padding: 20px 24px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ── Misc helpers ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--muted); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.fw-bold     { font-weight: 700; }
.fw-600      { font-weight: 600; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.d-flex { display: flex; align-items: center; gap: 12px; }
.d-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 3rem; opacity: .3; margin-bottom: 16px; display: block; color: var(--green); }
.empty-state h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--dark); }
.empty-state p  { font-size: 0.875rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 999; }
  .main-nav.open { display: flex; }
  .header-actions .btn { display: none; }
  .header-actions .btn:last-child { display: inline-flex; }
  .mobile-menu-btn { display: flex; }

  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 40px 24px; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .farmtok-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { padding: 14px 24px; }
}
