/* ----------------------------------------------------
   OURO VERDE PRODUÇÃO AGRÍCOLA - DESIGN SYSTEM & STYLES
   ---------------------------------------------------- */

:root {
  /* Color Palette */
  --bg-dark: #06180E;
  --bg-surface: #0B2215;
  --bg-card: #0F2D1C;
  --bg-card-hover: #143A25;
  
  --green-primary: #0F381E;
  --green-emerald: #10B981;
  --green-emerald-glow: rgba(16, 185, 129, 0.2);

  --gold-light: #FDE047;
  --gold-main: #EAB308;
  --gold-dark: #CA8A04;
  --gold-glow: rgba(234, 179, 8, 0.25);
  --gold-gradient: linear-gradient(135deg, #FDE047 0%, #EAB308 50%, #CA8A04 100%);

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #CBD5E1;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(234, 179, 8, 0.3);
  --glass-bg: rgba(15, 45, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 24px rgba(234, 179, 8, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

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

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0d361e 0%, var(--bg-dark) 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hidden-admin {
  display: none !important;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold { color: var(--gold-main); }
.text-emerald { color: var(--green-emerald); }
.text-red { color: #EF4444; }
.text-muted { color: var(--text-muted); }
.text-lead { font-size: 1.15rem; color: #E2E8F0; margin-bottom: 1rem; }
.font-bold { font-weight: 700; }

/* Layout Utilities */
.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.bg-surface {
  background-color: var(--bg-surface);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3-1 { grid-template-columns: 2.2fr 1fr; }

.items-center { align-items: center; }
.text-center { text-align: center; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Icon sizes */
.icon-xs { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.icon-sm { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.icon-md { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Section Header Styles */
.section-header {
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-tag.center {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* TOP TICKER BAR */
.ticker-bar {
  background-color: #030F0A;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  position: relative;
  z-index: 101;
}

.ticker-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  white-space: nowrap;
  color: #FFF;
}

.ticker-track-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-track {
  display: inline-flex;
  gap: 2rem;
  animation: tickerScroll 35s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-symbol { color: #FFF; font-weight: 600; }
.ticker-price { color: var(--gold-main); font-weight: 700; }
.ticker-change.up { color: #10B981; }
.ticker-change.down { color: #EF4444; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SITE HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 24, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.3rem 0;
}

.logo-img {
  height: 74px;
  width: auto;
  background: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: var(--transition);
}

.brand-logo:hover .logo-img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.nav-link:hover {
  color: var(--gold-main);
}

.nav-btn-cta {
  background: var(--gold-gradient);
  color: #06180E !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  height: auto;
}

.nav-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-admin-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  color: var(--gold-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-modal:hover {
  background: rgba(234, 179, 8, 0.15);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 200;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-logo {
  height: 52px;
}

.drawer-close {
  background: none;
  border: none;
  color: #FFF;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.65) contrast(1.1);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 24, 14, 0.85) 0%, rgba(6, 24, 14, 0.65) 50%, var(--bg-dark) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 960px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-emerald);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-emerald);
  box-shadow: 0 0 10px var(--green-emerald);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #E2E8F0;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #06180E;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  color: #FFF;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* HERO STATS GRID */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--gold-main);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-main);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* FAZENDAS TABLE CARD */
.fazendas-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.fazendas-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.total-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--green-emerald);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fazendas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: auto;
}

.fazendas-table th {
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold-main);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 1.1rem 1.2rem;
  border-bottom: 2px solid var(--border-gold);
  text-align: left;
}

.fazendas-table td {
  padding: 1.2rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  color: #FFF;
  vertical-align: middle;
}

.fazendas-table tbody tr:hover {
  background: rgba(234, 179, 8, 0.08);
}

.farm-cell-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFF;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.farm-cell-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.4;
}

.farm-area {
  text-align: right;
  font-weight: 800;
  color: var(--gold-main);
  font-size: 1.15rem;
  white-space: nowrap;
}

.farm-perc {
  font-weight: 700;
  color: var(--green-emerald);
  text-align: center;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* COTAÇÕES AGRO GRID */
.cotacoes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cotacao-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.cotacao-card:hover {
  border-color: var(--gold-main);
  box-shadow: var(--shadow-gold);
}

.cotacao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.cotacao-name {
  font-size: 1rem;
  font-weight: 700;
  color: #FFF;
}

.cotacao-var {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.cotacao-var.up { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.cotacao-var.down { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.cotacao-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 0.3rem;
}

.cotacao-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   PREVISÃO DO TEMPO AGRÍCOLA (STYLING)
   ---------------------------------------------------- */
.weather-tabs-nav {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.weather-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.weather-tab-btn:hover, .weather-tab-btn.active {
  background: rgba(234, 179, 8, 0.15);
  border-color: var(--gold-main);
  color: var(--gold-main);
}

.weather-dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.weather-current-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-light);
  gap: 2rem;
}

.farm-tags-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.farm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-emerald);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.weather-current-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
}

.w-cur-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w-cur-icon {
  width: 52px;
  height: 52px;
}

.w-cur-temp {
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1;
  display: block;
}

.w-cur-cond {
  font-size: 0.88rem;
  color: var(--gold-main);
  font-weight: 700;
}

.w-cur-stats {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-left: 1px solid var(--border-light);
  padding-left: 1.5rem;
}

.weather-10day-section {
  margin-top: 1.8rem;
}

.w-10day-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-10day-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.weather-day-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.8rem;
  text-align: center;
  transition: var(--transition);
}

.weather-day-card:hover {
  border-color: var(--gold-main);
  transform: translateY(-3px);
}

.weather-day-card.active-today {
  border-color: var(--green-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.w-day-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.w-day-icon {
  margin: 0.4rem 0;
}

.w-day-temps {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.w-max { color: #FFF; }
.w-min { color: var(--text-muted); }

.w-day-rain {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.w-day-prob {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   IMEA / CEPEA FULL MARKET DASHBOARD STYLES
   ---------------------------------------------------- */
.modal-container.modal-xl {
  max-width: 1180px;
  width: 95%;
  background: #081B11;
  border: 1px solid var(--border-gold);
}

.modal-title-group h3 {
  font-size: 1.4rem;
  color: #FFF;
  margin-bottom: 0.2rem;
}

.modal-title-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.imea-grid-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.imea-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.imea-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #064E3B;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.imea-card-header h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.imea-card-unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: #A7F3D0;
}

.imea-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  margin-bottom: 0.8rem;
}

.imea-table th {
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold-main);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.imea-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
}

.imea-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tr { text-align: right !important; }

.imea-card-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.4rem;
  margin-top: auto;
}

/* MODALS BASE */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gold-main);
  color: #06180E;
}

/* SOBRE NÓS MEDIA & CULTURAS */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.media-card-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.media-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(6, 24, 14, 0.92);
  backdrop-filter: blur(16px);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* NOSSAS CULTURAS */
.culture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
}

.culture-card:hover {
  border-color: var(--gold-main);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.culture-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--green-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.culture-badge.gold {
  background: rgba(234, 179, 8, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-main);
}

.culture-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.culture-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.2);
  color: var(--green-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.culture-icon.gold {
  background: rgba(234, 179, 8, 0.2);
  color: var(--gold-main);
}

.culture-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.culture-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}

.culture-specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* INFRASTRUCTURE BANNER */
.infra-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, #16402A 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.infra-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.infra-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.infra-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.infra-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.infra-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* MAP & UNIDADES */
.unit-details-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.panel-heading {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.panel-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.units-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  max-height: 270px;
  overflow-y: auto;
}

.unit-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: left;
}

.unit-item-btn:hover, .unit-item-btn.active {
  background: rgba(234, 179, 8, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-main);
}

.unit-active-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.unit-active-title {
  font-size: 1.1rem;
  color: var(--gold-main);
  margin-bottom: 0.4rem;
}

.unit-active-stat {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ESG ACCORDION & METRICS */
.esg-card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.esg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-emerald);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.esg-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.metric-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-emerald);
  display: block;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.esg-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.accordion-header h4 {
  flex: 1;
  font-size: 1.05rem;
}

.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.5rem 1.2rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: none;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* NOTÍCIAS GRID */
.news-sources-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--gold-main);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* CONTATO */
.contato-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.c-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.c-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--gold-main);
  color: #06180E;
  transform: translateY(-2px);
}

.contato-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

/* FOOTER */
.site-footer {
  background: #030F0A;
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 56px;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-links-col h4 {
  font-size: 1.05rem;
  color: var(--gold-main);
  margin-bottom: 1.2rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links-col a:hover {
  color: #FFF;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-link {
  color: var(--gold-main);
  font-weight: 600;
}

/* TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: rgba(6, 24, 14, 0.95);
  border: 1px solid var(--border-gold);
  color: #FFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE BREAKPOINTS & MOBILE FIXES */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cotacoes-grid { grid-template-columns: repeat(2, 1fr); }
  .imea-grid-dashboard { grid-template-columns: repeat(2, 1fr); }
  .weather-10day-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3-1 { grid-template-columns: 1fr; }
  .noticias-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .infra-banner { grid-template-columns: 1fr; }
  .weather-current-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .header-content { height: 76px; }
  .logo-img { height: 56px; }
  .main-nav, .btn-admin-modal { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-section { min-height: auto; padding: 3.5rem 0 4.5rem 0; }
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cotacoes-grid { grid-template-columns: 1fr; }
  .imea-grid-dashboard { grid-template-columns: 1fr; }
  .weather-10day-grid { grid-template-columns: repeat(2, 1fr); }
  .noticias-grid { grid-template-columns: 1fr; }
  .esg-metrics-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .weather-dashboard-card { padding: 1.5rem; }
  .weather-current-box { flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
  .w-cur-stats { border-left: none; padding-left: 0; border-top: 1px solid var(--border-light); padding-top: 0.8rem; width: 100%; }
  .modal-container { padding: 1.4rem; width: 94%; }
}

@media (max-width: 480px) {
  .logo-img { height: 48px; }
  .hero-title { font-size: 1.8rem; }
  .weather-10day-grid { grid-template-columns: 1fr; }
  .stat-val { font-size: 1.8rem; }
  .cotacao-price { font-size: 1.8rem; }
  .fazendas-table th, .fazendas-table td { padding: 0.8rem 0.6rem; font-size: 0.85rem; }
}

/* ============================================================
   v6.0 PATCHES — Acessibilidade, Novos Módulos, Responsividade
   ============================================================ */

/* --- SKIP LINK (acessibilidade) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold-main);
  color: var(--bg-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* --- FOCUS-VISIBLE (teclado) — contrastante --- */
*:focus-visible {
  outline: 3px solid var(--gold-main);
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-main);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.15);
}

/* --- PREFERS-REDUCED-MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track {
    animation: none !important;
  }
  .counter-animate {
    transition: none !important;
  }
}

/* --- LGPD CONSENT (formulário) --- */
.lgpd-consent {
  margin: 1.5rem 0;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--gold-main);
  cursor: pointer;
}
.checkbox-label a {
  color: var(--gold-main);
  text-decoration: underline;
}

/* --- FORM RESULT (feedback) --- */
.form-result {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}
.form-result.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-result.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- SKELETON LOADERS --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-line {
  height: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
}
.skeleton-card {
  height: 120px;
  border-radius: var(--radius-md);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- WEATHER TABS --- */
.weather-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.weather-tab-btn:hover {
  background: rgba(234, 179, 8, 0.08);
  color: var(--gold-main);
}
.weather-tab-btn.active {
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold-main);
  border-color: var(--border-gold);
}
#weatherTabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* --- NEWS TABS / FILTERS --- */
.news-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.news-tab-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition);
}
.news-tab-btn.active {
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold-main);
  border-color: var(--border-gold);
}
.news-filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.news-filter-btn {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
}
.news-filter-btn.active,
.news-filter-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}
.news-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.news-card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(234, 179, 8, 0.12);
  color: var(--gold-main);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.news-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 0.5rem;
}
.news-card-title:hover {
  color: var(--gold-main);
}
.news-card-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.news-card-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.news-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.news-footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* --- CALENDÁRIO AGRÍCOLA --- */
.calendario-section {
  background: var(--bg-surface);
}
.calendario-timeline {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin-top: 1.5rem;
}
.calendario-month {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
}
.calendario-bar {
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg-dark);
  opacity: 0.85;
}
.calendario-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.calendario-marker::before {
  content: '▼';
  color: var(--gold-main);
  font-size: 0.75rem;
  animation: pulse-marker 2s infinite;
}
@keyframes pulse-marker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.calendario-phase-text {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--gold-main);
  font-weight: 600;
}
.calendario-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.calendario-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.calendario-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* --- JORNADA DO GRÃO --- */
.jornada-section {
  margin-top: 3rem;
}
.jornada-timeline {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.jornada-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.jornada-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.jornada-step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 179, 8, 0.12);
  border: 2px solid var(--border-gold);
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  color: var(--gold-main);
}
.jornada-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.jornada-step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.jornada-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-main);
  font-size: 1.2rem;
  z-index: 1;
}

/* --- FICHAS DAS CULTURAS --- */
.cultura-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.cultura-card:hover {
  border-color: var(--border-gold);
}
.cultura-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  user-select: none;
}
.cultura-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-sm);
  color: var(--green-emerald);
}
.cultura-card-title {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
}
.cultura-card-toggle {
  color: var(--text-muted);
  transition: transform 0.3s;
}
.cultura-card.open .cultura-card-toggle {
  transform: rotate(180deg);
}
.cultura-card-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
}
.cultura-card.open .cultura-card-body {
  display: block;
}
.cultura-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.cultura-detail-item {
  background: var(--bg-surface);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}
.cultura-detail-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.cultura-detail-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-main);
}
.cultura-note {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  border-left: 3px solid var(--green-emerald);
  padding-left: 1rem;
}

/* --- COMPOSIÇÃO CHART --- */
.composition-chart-container {
  margin-top: 2rem;
}
.composition-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.composition-label {
  width: 180px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  flex-shrink: 0;
}
.composition-bar-bg {
  flex: 1;
  height: 24px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.composition-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
  transition: width 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg-dark);
}

/* --- FARM TABLE ROW ACTIVE --- */
.farm-row {
  cursor: pointer;
  transition: var(--transition);
}
.farm-row:hover {
  background: var(--bg-card-hover);
}
.farm-row.active {
  background: rgba(234, 179, 8, 0.08);
  border-left: 3px solid var(--gold-main);
}

/* --- LEAFLET MAP CONTAINER --- */
#fazendaMapContainer {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* --- ALVOS DE TOQUE >= 24x24 --- */
button, a, input[type="checkbox"], .accordion-header, .tab-btn, .farm-row {
  min-height: 24px;
  min-width: 24px;
}

/* --- WEATHER CREDIT --- */
.weather-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.5rem;
}
.weather-credit a { color: var(--gold-main); }

/* --- RESPONSIVE PATCHES v6.0 --- */
@media (max-width: 768px) {
  #fazendaMapContainer {
    height: 300px;
  }
  .calendario-timeline {
    grid-template-columns: repeat(6, 1fr);
  }
  .jornada-timeline {
    flex-direction: column;
  }
  .jornada-step {
    min-width: auto;
    padding: 1rem;
  }
  .jornada-arrow {
    display: none;
  }
  .composition-label {
    width: 120px;
    font-size: 0.75rem;
  }
  .news-tabs {
    gap: 0.35rem;
  }
  .news-tab-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .calendario-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
  .composition-label {
    width: 90px;
    font-size: 0.7rem;
  }
  .composition-bar-fill {
    font-size: 0.6rem;
  }
}
