/* ============================================================
   VINE MELON - GROWN TO BLESS: INVESTOR PROPOSAL STYLESHEET
   Flawless Mobile Responsive & Agricultural Luxury System (v1.3.2)
   ============================================================ */

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --bg-warm: #FBF9F4;
  --bg-sand: #F3EFE6;
  --bg-card: #FFFFFF;
  
  --primary-forest: #172D19;
  --primary-dark: #0F1E11;
  --primary-sage: #2F4D32;
  --primary-sage-light: #EEF3EE;
  --primary-olive: #60795F;

  --accent-gold: #D48028;
  --accent-gold-hover: #BD6F1E;
  --accent-gold-light: #FDF4E9;
  --accent-gold-border: #F3CCA1;

  --text-dark: #1A211B;
  --text-muted: #5E6E60;
  --text-light: #FBF9F4;

  --border-light: #E7E3D8;
  --border-dark: #2A462C;

  --shadow-sm: 0 2px 8px rgba(23, 45, 25, 0.05);
  --shadow-md: 0 6px 20px rgba(23, 45, 25, 0.08);
  --shadow-lg: 0 12px 36px rgba(23, 45, 25, 0.12);
  --shadow-gold: 0 6px 20px rgba(212, 128, 40, 0.28);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-sans);
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Base Container */
.investor-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.section-wrapper {
  padding: 64px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.section-wrapper.bg-sand {
  background-color: var(--bg-sand);
}

.section-wrapper.bg-forest {
  background-color: var(--primary-forest);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px auto;
  padding: 0 4px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.section-wrapper.bg-forest .badge-tag {
  background: rgba(212, 128, 40, 0.15);
  border-color: rgba(212, 128, 40, 0.4);
  color: #F8C384;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--primary-forest);
  margin-bottom: 12px;
  word-break: break-word;
}

.section-wrapper.bg-forest .section-title {
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-wrapper.bg-forest .section-subtitle {
  color: #CBD8CC;
}

/* Buttons */
.btn-gold {
  background: var(--accent-gold);
  color: #FFFFFF !important;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-outline-forest {
  background: transparent;
  color: var(--primary-forest);
  border: 1.5px solid var(--primary-forest);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline-forest:hover {
  background: var(--primary-forest);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ============================================================
   STICKY NAVBAR & RESPONSIVE DRAWER
   ============================================================ */
.investor-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 244, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.investor-nav .investor-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-sage);
  background: #FFFFFF;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1.1;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: 0.54rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Compact Segmented Language Toggle (ID | EN | CHN) */
.lang-pill-toggle {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--primary-forest);
  border-radius: 20px;
  padding: 2px 6px;
  gap: 4px;
  height: 30px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.lang-pill-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 12px;
  transition: all 0.15s ease;
  outline: none;
}

.lang-pill-btn:hover {
  color: var(--primary-forest);
}

.lang-pill-btn.active {
  background: var(--primary-forest);
  color: #FFFFFF !important;
  font-weight: 800;
}

.lang-divider {
  font-size: 0.68rem;
  color: var(--border-light);
  user-select: none;
}

/* User Status Pill in Nav */
.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1.5px solid var(--primary-forest);
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-forest);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* Proposal Table of Contents & Quick Jump Directory in Body */
.proposal-toc-section {
  padding: 36px 0 20px 0;
  background: #F7F5EE;
  border-bottom: 1px solid var(--border-light);
}

.proposal-toc-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.proposal-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
}

.proposal-toc-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.proposal-toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.toc-jump-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #FAF9F5;
  border: 1px solid #EAE6DB;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-jump-item:hover {
  background: #FFFFFF;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 128, 40, 0.15);
}

.toc-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-forest);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.toc-jump-item:hover .toc-num-badge {
  background: var(--accent-gold);
}

.toc-jump-info {
  display: flex;
  flex-direction: column;
}

.toc-jump-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1.25;
}

.toc-jump-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
}

.lang-dropdown-menu.show {
  display: flex;
}

.lang-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lang-option-item:hover {
  background: #FBF9F4;
  color: var(--accent-gold-hover);
}

.lang-option-item.active {
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
  font-weight: 800;
}

.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-sage-light);
  border: 1px solid var(--primary-sage);
  color: var(--primary-forest);
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Hamburger Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-forest);
  cursor: pointer;
  flex-shrink: 0;
}

/* Mobile Slide-down Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  max-width: 100vw;
  background: #FFFFFF;
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 16px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  box-sizing: border-box;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-forest);
  padding: 8px 10px;
  border-radius: 6px;
}

.mobile-nav-drawer a:hover {
  background: var(--bg-warm);
  color: var(--accent-gold);
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.hero-section {
  padding: 36px 0 54px 0;
  background: linear-gradient(180deg, #FBF9F4 0%, #F5EFE4 100%);
  position: relative;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1.05;
  margin-bottom: 6px;
}

.hero-subheadline {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Hero Statistic Cards */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.hero-image-card {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
}

.hero-image-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image-badge {
  background: var(--primary-forest);
  color: #FFFFFF;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ============================================================
   2. OVERVIEW & GALLERY DUO
   ============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-sage-light);
  color: var(--primary-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 6px;
}

.feature-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Gallery Duo Grid */
.gallery-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.gallery-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
}

.responsive-gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   3. GROWTH SECTION
   ============================================================ */
.growth-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}

.progress-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-track-bg {
  width: 100%;
  height: 22px;
  background: var(--bg-sand);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.progress-bar-fill {
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, #2F4D32 0%, #D48028 100%);
  border-radius: 20px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.growth-pills-flex {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 6px;
}

/* ============================================================
   4. CO-OWNERSHIP & 5. PROFIT SHARING
   ============================================================ */
.co-ownership-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.investment-master-card {
  background: var(--bg-card);
  border: 2px solid var(--primary-forest);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.master-card-header {
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.investment-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.spec-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
}

.spec-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.spec-val {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-forest);
}

.capital-split-card {
  background: var(--primary-sage-light);
  border: 1px solid var(--primary-sage);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Prominent Investor Capital Highlight Box */
.investor-modal-highlight-box {
  background: linear-gradient(135deg, #EEF7EF 0%, #E2EFE4 100%);
  border: 2.5px solid #2F4D32;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(47, 77, 50, 0.10);
}

.partner-modal-sub-card {
  background: #FFF9F0;
  border: 1.5px solid #F3D9A2;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Profit Sharing Breakdown */
.profit-sharing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.share-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  gap: 8px;
}

.share-tier-row.investor {
  background: #EEF4EE;
  border: 1px solid #2F4D32;
}

.share-tier-row.operator {
  background: #F8F5EE;
  border: 1px solid #D48028;
}

.share-tier-row.partner {
  background: #F4F1EA;
  border: 1px solid #A39682;
}

.share-pct-badge {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   6. FINANCIAL PROJECTIONS & REAL-TIME SIMULATOR CONTROLS
   ============================================================ */
.sim-controls-card {
  background: #FFFFFF;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
  width: 100%;
}

.sim-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 12px;
}

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

.sim-control-group {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.sim-control-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-forest);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sim-control-value {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-gold-hover);
}

.sim-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #E2DDD2;
  outline: none;
  cursor: pointer;
  margin: 10px 0 6px 0;
}

.sim-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: grab;
  transition: transform 0.15s ease, background 0.15s ease;
}

.sim-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  cursor: grabbing;
  background: var(--accent-gold-hover);
}

.sim-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: grab;
}

.sim-range-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-reset-sim {
  background: #5C3D2E !important;
  color: #FFFFFF !important;
  border: 1px solid #462E23 !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(92, 61, 46, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reset-sim:hover {
  background: #462E23 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(92, 61, 46, 0.45);
}

.harvest-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.metric-pill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-pill-card.highlight {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
}

.metric-pill-val {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 2px;
}

.metric-pill-card.highlight .metric-pill-val {
  color: var(--accent-gold-hover);
}

.metric-pill-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Responsive Table Wrapper */
.table-scroll-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  width: 100%;
}

.table-scroll-hint {
  display: none;
  background: #FAF5E8;
  color: var(--accent-gold-hover);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-bottom: 1px solid var(--accent-gold-border);
  text-align: center;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.projection-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.projection-table th {
  background: var(--primary-forest);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.projection-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.projection-table tr.total-row {
  background: #FDF4E9;
  font-weight: 800;
  color: var(--primary-forest);
}

.projection-table tr.total-row td {
  border-top: 2px solid var(--accent-gold);
  font-size: 0.9rem;
}

/* Phase Switcher & Comparison Grid */
.phase-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  width: 100%;
}

.phase-tab-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phase-tab-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-hover);
}

.phase-tab-btn.active {
  background: var(--primary-forest);
  border-color: var(--primary-forest);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.phase-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
  width: 100%;
}

.phase-summary-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.phase-summary-card.highlight {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF8F0 100%);
}

.phase-summary-card.highlight::before {
  content: 'BEST ROI 🚀';
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-gold);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 12px;
}

.phase-roi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-forest);
}

.phase-summary-card.highlight .phase-roi-badge {
  color: var(--accent-gold-hover);
}

/* Interactive SVG BEP Chart */
.bep-chart-container {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  box-shadow: var(--shadow-md);
  width: 100%;
  overflow: hidden;
}

.bep-badge-callout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  color: #1B5E20;
  border: 1.5px solid #2E7D32;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ============================================================
   7. TIMELINE FLOW
   ============================================================ */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.timeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.step-number-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-forest);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 4px;
}

.step-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ============================================================
   8. TRANSPARENCY & DASHBOARD MOCKUP
   ============================================================ */
.dashboard-mockup-frame {
  background: linear-gradient(180deg, #121F14 0%, #0B140D 100%);
  border: 2px solid #2F4D32;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  width: 100%;
  box-sizing: border-box;
}

.mockup-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #223725;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background: #E74C3C; box-shadow: 0 0 6px rgba(231, 76, 60, 0.5); }
.mockup-dot.yellow { background: #F1C40F; box-shadow: 0 0 6px rgba(241, 196, 15, 0.5); }
.mockup-dot.green { background: #2ECC71; box-shadow: 0 0 6px rgba(46, 204, 113, 0.5); }

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-widget {
  background: rgba(25, 41, 28, 0.7);
  border: 1px solid #2E4B33;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mockup-widget:hover {
  border-color: #4CAF50;
  transform: translateY(-2px);
}

.mockup-widget-title {
  font-size: 0.72rem;
  color: #9EBAA1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.mockup-widget-val {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #85E89D;
  line-height: 1.2;
  margin-bottom: 2px;
}

/* ============================================================
   9. MAINTENANCE & 10. RISK DISCLOSURE
   ============================================================ */
.disclosure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.disclosure-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.disclosure-card.maintenance {
  border-left: 5px solid var(--accent-gold);
}

.disclosure-card.risk {
  border-left: 5px solid #8E44AD;
}

/* ============================================================
   11. SOCIAL IMPACT & COMMUNITY
   ============================================================ */
.impact-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}

.impact-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.impact-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
  width: 100%;
}

.farmers-impact-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}

.impact-quote-box {
  background: #FFFFFF;
  border-left: 5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0 0 0;
  box-shadow: var(--shadow-sm);
}

.impact-quote-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  color: var(--primary-forest);
  line-height: 1.4;
}

/* ============================================================
   12. CTA FORM SECTION
   ============================================================ */
.cta-form-container {
  background: #FFFFFF;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

.inquiry-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 128, 40, 0.15);
}

/* ============================================================
   13. FOOTER & FLOATING WHATSAPP
   ============================================================ */
.investor-footer {
  background: #0D190E;
  color: #A0B0A2;
  padding: 44px 0 20px 0;
  border-top: 1px solid #1C2D1E;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-list a {
  color: #C0CFC2;
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-links-list a:hover {
  color: var(--accent-gold);
}

.disclaimer-box {
  background: #142215;
  border: 1px solid #233724;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.72rem;
  color: #7D8F7F;
  line-height: 1.55;
  margin-bottom: 18px;
}

.floating-wa-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #25D366;
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
}

/* ============================================================
   EXCLUSIVE ACCESS GATE MODAL
   ============================================================ */
.gate-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 30, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.gate-modal-card {
  background: #FFFFFF;
  border: 2.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-height: 92vh;
  overflow-y: auto;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ============================================================ */
@media (max-width: 1200px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (max-width: 1024px) {
  #navUserContainer {
    display: none !important;
  }
  .proposal-toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid, .co-ownership-grid, .disclosure-grid, .impact-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .overview-grid, .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .harvest-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mockup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section-wrapper {
    padding: 42px 0;
  }
  .section-title {
    font-size: 1.95rem;
  }
  .hero-headline {
    font-size: 2.35rem;
  }
  .hero-subheadline {
    font-size: 1.28rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .hero-buttons .btn-gold, .hero-buttons .btn-outline-forest {
    width: 100%;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .stat-number {
    font-size: 1.55rem;
  }
  .overview-grid, .timeline-grid, .gallery-duo-grid, .phase-comparison-grid, .sim-controls-grid {
    grid-template-columns: 1fr;
  }
  .growth-card {
    padding: 18px 12px;
  }
  .harvest-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proposal-toc-grid {
    grid-template-columns: 1fr;
  }
  .harvest-metrics-grid .metric-pill-card:nth-child(5) {
    grid-column: span 2;
  }
  .table-scroll-hint {
    display: block;
  }
  .mockup-grid {
    grid-template-columns: 1fr;
  }
  .inquiry-form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .cta-form-container {
    padding: 20px 14px;
  }
  .impact-quote-text {
    font-size: 1.15rem;
  }
  .capital-split-card {
    flex-direction: column;
    text-align: center;
  }
  .nav-actions .btn-gold {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.92rem;
  }
  .brand-tagline {
    font-size: 0.48rem;
  }
  .hero-headline {
    font-size: 2rem;
  }
  .investment-specs-grid, .impact-pillars-grid {
    grid-template-columns: 1fr;
  }
  .bep-chart-container {
    padding: 14px 8px;
  }
}

/* ============================================================
   LIVE GREENHOUSE DASHBOARD & IOT TELEMETRY STYLES (v1.6.0)
   ============================================================ */
.live-investor-dashboard-section {
  border-bottom: 2px solid var(--border-light);
}

.inv-dash-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.inv-dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #A2E0A8;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #172D19;
  box-shadow: var(--shadow-sm);
}

.sync-status-pill.loading {
  border-color: var(--accent-gold);
  color: #8C6A15;
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  background-color: #2ECC71;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.btn-refresh-telemetry {
  background: #2F4D32;
  color: #FFFFFF;
  border: 1px solid #1E3320;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(47, 77, 50, 0.2);
}

.btn-refresh-telemetry:hover:not(:disabled) {
  background: #172D19;
  transform: translateY(-1px);
}

.btn-refresh-telemetry:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Investor Profile Banner */
.inv-profile-banner {
  background: linear-gradient(135deg, #172D19 0%, #2F4D32 100%);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.inv-profile-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inv-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.inv-name-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.inv-meta-sub {
  font-size: 0.82rem;
  color: #C4D6C6;
  margin-top: 2px;
}

.inv-profile-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.inv-stat-mini {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-stat-mini .lbl {
  font-size: 0.7rem;
  color: #A2BFA4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inv-stat-mini .val {
  font-size: 0.88rem;
  font-weight: 800;
}

.inv-stat-mini .val.gold { color: var(--accent-gold); }
.inv-stat-mini .val.green { color: #2ECC71; }
.inv-stat-mini .val.muted { color: #E0E8E1; font-weight: 500; }

/* 4 Summary KPI Grid */
.inv-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.inv-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inv-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.inv-kpi-card.highlight-gold {
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF4E6 100%);
  border: 2px solid var(--accent-gold);
}

.inv-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.inv-kpi-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.inv-kpi-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-forest);
  line-height: 1.15;
}

.inv-kpi-value.gold {
  color: #8C6A15;
}

.inv-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.inv-kpi-sub.green {
  color: #27AE60;
  font-weight: 700;
}

/* Greenhouse Unit Selector Dropdown */
.gh-selector-tabs-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.gh-selector-header-box {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 580px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.gh-selector-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-forest);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.gh-dropdown-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.gh-unit-dropdown-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-warm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232F4D32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  border: 1.8px solid var(--primary-forest);
  border-radius: 12px;
  padding: 10px 42px 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-forest);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(47, 77, 50, 0.08);
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.gh-unit-dropdown-select:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 3px 10px rgba(212, 128, 40, 0.15);
}

.gh-unit-dropdown-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 128, 40, 0.2);
}

.gh-unit-dropdown-select option {
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #FFFFFF;
}

@media (max-width: 640px) {
  .gh-selector-header-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .gh-dropdown-wrapper {
    width: 100%;
  }
  .gh-unit-dropdown-select {
    font-size: 0.85rem;
    padding: 8px 36px 8px 12px;
  }
}

/* Active Unit Hero Card */
.gh-active-unit-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.gh-hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
}

.gh-hero-media {
  position: relative;
  min-height: 240px;
}

.gh-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-media-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gh-hero-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gh-unit-code-badge {
  display: inline-block;
  background: var(--bg-cream);
  color: var(--primary-forest);
  border: 1px solid var(--primary-sage);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  align-self: flex-start;
}

.gh-hero-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 4px;
}

.gh-hero-variety {
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.gh-metric-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gh-metric-box {
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gh-metric-box .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.gh-metric-box .val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}

.gh-metric-box .val.green { color: #27AE60; }
.gh-metric-box .val.gold { color: #8C6A15; }
.gh-metric-box .val.highlight { color: #8C1C13; font-weight: 900; }

/* Two Column Telemetry & HST */
.gh-telemetry-hst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gh-telemetry-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.gh-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 10px;
}

/* 5 Sensor Gauges Grid */
.sensor-gauges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sensor-card {
  background: var(--bg-cream);
  border: 1px solid rgba(47, 77, 50, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sensor-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.sensor-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sensor-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sensor-val {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-forest);
  line-height: 1.1;
}

.sensor-val .unit {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-muted);
}

.sensor-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 8px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 2px;
}

.sensor-status-badge.optimal {
  background: #E8F8F5;
  color: #117A65;
}

/* Crop Cycle Progress */
.cycle-progress-wrapper {
  background: #FFFDF8;
  border: 1px solid #E8DFD0;
  border-radius: var(--radius-md);
  padding: 16px;
}

.cycle-progress-bar-track {
  width: 100%;
  height: 10px;
  background: #E8E2D5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.cycle-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #27AE60 0%, #F39C12 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.cycle-milestones-flex {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.milestone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  opacity: 0.45;
}

.milestone-item.passed {
  opacity: 1;
}

.milestone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8C8C8C;
}

.milestone-item.passed .milestone-dot {
  background: #27AE60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.milestone-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* HST Activity Timeline */
.hst-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.hst-timeline-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 14px;
}

.hst-timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hst-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hst-badge-pill {
  background: #2F4D32;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
}

.hst-date-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hst-content-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hst-phase-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8C6A15;
  text-transform: uppercase;
}

.hst-title-h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-forest);
  margin: 0;
}

.hst-notes-p {
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.45;
  margin: 0;
}

.hst-photo-preview-box {
  margin-top: 6px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 140px;
  border: 1px solid var(--border-light);
}

.hst-photo-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* Harvest Records Table */
.gh-harvest-history-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.harvest-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.harvest-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.harvest-records-table th {
  background: var(--bg-cream);
  color: var(--primary-forest);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.harvest-records-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  white-space: nowrap;
}

.mono-code {
  font-family: monospace;
  background: #F4EFE6;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #554838;
}

/* Responsive Rules for Live Dashboard */
@media (max-width: 992px) {
  .inv-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gh-hero-grid {
    grid-template-columns: 1fr;
  }
  .gh-hero-media {
    height: 220px;
  }
  .gh-telemetry-hst-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .inv-kpi-grid {
    grid-template-columns: 1fr;
  }
  .inv-profile-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .inv-profile-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .sensor-gauges-grid {
    grid-template-columns: 1fr;
  }
  .gh-metric-boxes-grid {
    grid-template-columns: 1fr;
  }
  .hst-timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hst-date-col {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   14. DASHBOARD VIEW SWITCHER & CONSTRUCTION PROGRESS SECTION
   ============================================================ */
.dash-view-switcher-bar {
  display: flex;
  gap: 10px;
  margin: 18px 0 22px 0;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 8px;
  overflow-x: auto;
}

.dash-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dash-subtab-btn:hover {
  background: var(--bg-cream);
  border-color: var(--primary-forest);
  color: var(--primary-forest);
}

.dash-subtab-btn.active {
  background: var(--primary-forest);
  border-color: var(--primary-forest);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(23, 45, 25, 0.25);
}

.subtab-badge {
  background: var(--accent-gold);
  color: #172D19;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.dash-subtab-btn.active .subtab-badge {
  background: #FFFFFF;
  color: var(--primary-forest);
}

/* Construction Overview & Hero Card */
.gh-construction-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.construction-overview-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.construction-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.construction-progress-gauge {
  background: #FAF8F5;
  border: 1px solid #EAE3D5;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.construction-progress-bar-track {
  width: 100%;
  height: 14px;
  background: #E5DFC8;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 6px 0;
}

.construction-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D48028 0%, #27AE60 100%);
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Berita Acara & Ownership Card */
.berita-acara-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #F5EFE3 100%);
  border: 1.5px solid #D5CBB8;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.berita-acara-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.berita-acara-icon-box {
  width: 54px;
  height: 54px;
  background: var(--primary-forest);
  color: #FFFFFF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.berita-acara-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin: 0 0 4px 0;
}

.berita-acara-meta {
  font-size: 0.82rem;
  color: var(--text-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.berita-acara-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-doc-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-forest);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-doc-download:hover {
  background: var(--primary-forest-hover);
  transform: translateY(-1px);
}

/* Construction Milestone Timeline */
.milestones-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.milestone-item-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.milestone-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.milestone-item-card.status-done {
  border-color: #A3E4D7;
  background: #FCFDFD;
}

.milestone-item-card.status-done::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #27AE60;
}

.milestone-item-card.status-in_progress {
  border-color: #F9E79F;
  background: #FFFEFA;
}

.milestone-item-card.status-in_progress::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #D48028;
}

.milestone-item-card.status-pending {
  border-color: #E0DCD3;
  opacity: 0.75;
}

.milestone-item-card.status-pending::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #BDC3C7;
}

.milestone-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.milestone-badge-status.done {
  background: #E8F8F5;
  color: #117A65;
  border: 1px solid #A3E4D7;
}

.milestone-badge-status.in_progress {
  background: #FEF9E7;
  color: #B7950B;
  border: 1px solid #F9E79F;
}

.milestone-badge-status.pending {
  background: #F2F4F4;
  color: #7F8C8D;
  border: 1px solid #D5DBDB;
}

.milestone-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.milestone-title-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-forest);
  margin: 4px 0 6px 0;
  line-height: 1.3;
}

.milestone-notes-text {
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.45;
  margin: 0;
}

.milestone-date-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
}

.milestone-photos-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 4px;
}

.milestone-thumb-img {
  width: 64px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.milestone-thumb-img:hover {
  transform: scale(1.05);
  border-color: var(--primary-forest);
}

/* Lightbox Modal */
.vine-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 25, 16, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.vine-modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.vine-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border-light);
  background: var(--bg-cream);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-close-modal:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #E74C3C;
}

.vine-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--primary-forest);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-table-action:hover {
  background: var(--primary-forest);
  color: #FFFFFF;
  border-color: var(--primary-forest);
}

/* ============================================================
   DIRECT DASHBOARD MODE FOR ASSIGNED INVESTORS (v1.8.7)
   ============================================================ */
body.investor-dashboard-only .hero-section,
body.investor-dashboard-only .proposal-toc-section,
body.investor-dashboard-only #daftar-isi,
body.investor-dashboard-only .toc-section,
body.investor-dashboard-only #tentang,
body.investor-dashboard-only #ekosistem,
body.investor-dashboard-only #peluang,
body.investor-dashboard-only #skema,
body.investor-dashboard-only #bagihasil,
body.investor-dashboard-only #proyeksi,
body.investor-dashboard-only #alur,
body.investor-dashboard-only #transparansi,
body.investor-dashboard-only #risiko,
body.investor-dashboard-only #dampak,
body.investor-dashboard-only #form-kemitraan,
body.investor-dashboard-only .gallery-duo-grid,
body.investor-dashboard-only .nav-actions a[href="#form-kemitraan"],
body.investor-dashboard-only .investor-footer {
  display: none !important;
}

body.investor-dashboard-only:not(.is-owner-user) #btnRefreshInvestorDash {
  display: none !important;
}

body.investor-dashboard-only #dashboard-saya {
  padding-top: 24px !important;
  min-height: 85vh;
}

/* Toast Notifications for Investor Portal */
.toast-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #172D19;
  color: #EDE6D8;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notification.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   COMPACT 4-COLUMN HARVEST RECORDS TABLE (NO HORIZONTAL SCROLL)
   ============================================================ */
.harvest-table-responsive {
  width: 100%;
  overflow-x: hidden;
  margin-top: 14px;
}

.harvest-records-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.harvest-records-table thead th {
  background: #F7F5EE;
  color: var(--primary-forest);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: 0.5px;
}

.harvest-records-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}

.harvest-records-table tbody tr:last-child {
  border-bottom: none;
}

.harvest-records-table tbody tr:hover {
  background: #FAF9F5;
}

.harvest-records-table tbody td {
  padding: 12px 14px;
  vertical-align: top;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-forest);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: #F0F7F1;
  border-color: var(--primary-forest);
}

@media (max-width: 640px) {
  .harvest-records-table thead {
    display: none;
  }
  .harvest-records-table,
  .harvest-records-table tbody,
  .harvest-records-table tr,
  .harvest-records-table td {
    display: block;
    width: 100% !important;
  }
  .harvest-records-table tbody tr {
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    background: #FFFFFF;
  }
  .harvest-records-table tbody td {
    padding: 6px 4px;
    border-bottom: 1px dashed var(--border-light);
  }
  .harvest-records-table tbody td:last-child {
    border-bottom: none;
  }
}