@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #faf7f2;
  --bg-warm: #f3efe8;
  --green: #1a3c2a;
  --green-light: #2a5c3f;
  --green-pale: #e8f0eb;
  --orange: #d4922a;
  --orange-hover: #c07d1a;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --border: #e5e0d8;
  --card: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --trend-up: #22a858;
  --trend-down: #d94040;
  --trend-flat: #999;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { display: block; max-width: 100%; }

button { font: inherit; }

@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ═══ NAVIGATION ═══ */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

/* Everything but the brand lives in the collapse panel — a single element
   we can turn into a mobile dropdown without restructuring the links. */
.nav-collapse { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }

.nav a.nav-link {
  position: relative;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav a.nav-link:hover { color: var(--green); }
.nav a.nav-link.active {
  color: var(--green);
  font-weight: 700;
}
.nav a.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px; flex-shrink: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  color: var(--text); font-size: 19px; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--green); color: var(--green); }

.nav-lang-wrap { position: relative; flex-shrink: 0; }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--sans);
}
.nav-lang:hover { border-color: var(--green); color: var(--green); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 6px; z-index: 200; display: none;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: none;
  background: none; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer;
}
.lang-menu button:hover { background: var(--bg-warm); }
.lang-menu button.active { color: var(--green); font-weight: 600; }
.footer-lang { cursor: pointer; }
.footer-lang:hover { color: #fff; }

/* ─── Mobile: links/lang/download/auth collapse into a dropdown panel ───
   Breakpoint is wider than a typical "mobile" cutoff on purpose: at
   ~900-1100px the full link set + language switch + download + auth chip
   doesn't fit on one line and would otherwise wrap into an awkward second
   row, so tablet/small-laptop widths get the clean dropdown too. */
@media (max-width: 1130px) {
  .nav { padding: 12px 20px; position: relative; }
  .nav-toggle { display: flex; }
  .nav-collapse {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 32px rgba(0,0,0,0.1);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 20px 20px; max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .nav-collapse.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a.nav-link {
    padding: 13px 2px; border-bottom: 1px solid var(--bg-warm); white-space: normal;
  }
  .nav a.nav-link.active::after { left: -20px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; border-radius: 0; }
  .nav-actions {
    flex-direction: column; align-items: stretch; margin-left: 0; gap: 12px;
    padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--border);
  }
  .nav-lang-wrap { width: 100%; }
  .nav-lang { width: 100%; justify-content: center; }
  .lang-menu { position: static; box-shadow: none; margin-top: 8px; width: 100%; }
  .nav-actions > .btn { width: 100%; justify-content: center; }
  .nav-auth-area { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .nav-auth-area .account-chip, .nav-auth-area .btn { width: 100%; justify-content: center; }
  .nav-auth-area .account-chip-wrap { width: 100%; }
}
.btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { border-color: var(--green); color: var(--green); }
.btn-orange {
  border: none;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}
.btn-orange:hover { background: var(--orange-hover); color: #fff; }
.btn-lg { padding: 14px 32px; border-radius: 10px; font-size: 15px; }
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-weight: 500;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-green {
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
.btn-green:hover { background: var(--green-light); color: #fff; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, #1a4a30 40%, #2a5c3f 100%);
  min-height: 520px;
  display: flex;
  flex-wrap: wrap;
}
.hero-copy {
  flex: 1 1 420px;
  padding: 64px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 660px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 28px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 24px;
}
.hero-copy p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-live {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  max-width: fit-content;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; flex-shrink: 0; }
.hero-live span { font-size: 14px; color: rgba(255,255,255,0.9); }
.hero-image {
  flex: 1 1 320px;
  position: relative;
  min-height: 360px;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green) 0%, transparent 30%);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-copy h1 { font-size: 40px; }
}

/* ═══ TICKER ═══ */
.ticker-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 64px;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}
.ticker-item { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ticker-item .t-name { font-weight: 600; color: var(--text); }
.ticker-item .t-region { color: var(--text-muted); font-size: 13px; }
.ticker-item .t-price { font-weight: 700; font-size: 16px; }
.trend-flat-txt { color: var(--trend-flat); font-size: 18px; }

/* ═══ SECTIONS ═══ */
section.pad { padding: 80px 48px; }
@media (max-width: 720px) {
  section.pad, .hero-copy, .nav { padding-left: 20px; padding-right: 20px; }
}
.section-center { text-align: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  color: var(--text);
  margin: 0 0 12px;
}
.section-sub { font-size: 16px; color: var(--text-muted); margin: 0 0 56px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.how-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,60,42,0.1); }
.how-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-pale);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.how-icon i { font-size: 26px; color: var(--green); }
.how-card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.how-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ═══ MARKET BOARD ═══ */
.board-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.board-head h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; color: var(--text); margin: 0 0 8px; }
.board-head p { font-size: 15px; color: var(--text-muted); margin: 0; }
.board-link { font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 6px; transition: color 0.15s; }
.board-link:hover { color: var(--green); }

.listing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,60,42,0.12); }
.listing-photo { height: 180px; position: relative; background-size: cover; background-position: center; }
.listing-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.listing-tag.verified { left: 12px; background: #fff; color: var(--green); display: flex; align-items: center; gap: 4px; }
.listing-tag.sell { right: 12px; background: var(--green); color: #fff; }
.listing-body { padding: 16px; }
.listing-body h4 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.listing-meta { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.listing-meta:last-of-type { margin-bottom: 14px; }
.listing-price-wrap { background: var(--bg-warm); border-radius: 8px; padding: 12px; text-align: center; position: relative; }
.listing-price-blur { filter: blur(4px); font-size: 18px; font-weight: 700; color: var(--text); }
.listing-signin {
  position: absolute; inset: 0; border: none; border-radius: 8px;
  background: rgba(26,60,42,0.85); color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%;
}

/* ═══ TESTIMONIALS ═══ */
.testi-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 32px; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,60,42,0.1); }
.testi-quote { position: absolute; top: 20px; right: 24px; font-family: var(--serif); font-size: 48px; color: var(--border); }
.testi-card p.body { font-size: 15px; line-height: 1.7; color: var(--text); font-style: italic; margin: 0 0 24px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-warm);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--green);
  flex-shrink: 0;
}
.testi-person .name { font-weight: 600; font-size: 14px; }
.testi-person .role { font-size: 13px; color: var(--text-muted); }

/* ═══ SPLIT / PHONE SHOWCASE ═══ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1100px; margin: 0 auto; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }
.split-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-pale); display: grid; place-items: center; margin-bottom: 20px; }
.split-icon i { font-size: 24px; color: var(--green); }
.split h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; color: var(--text); margin: 0 0 16px; }
.split p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0 0 28px; }
.phone-feature-list { display: flex; flex-direction: column; gap: 14px; }
.phone-feature-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--text); list-style: none; }
.phone-feature-list .feature-icon {
  width: 32px; height: 32px; border-radius: 9px; background: var(--green-pale);
  display: grid; place-items: center; flex-shrink: 0;
}
.phone-feature-list .feature-icon i { font-size: 16px; color: var(--green); }

.phone-showcase-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 560px;
}
.phone-showcase-bg {
  position: absolute; inset: 24px; border-radius: 32px; overflow: hidden;
  background-size: cover; background-position: center;
}
.phone-showcase-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(26,60,42,0.88) 0%, rgba(26,60,42,0.55) 55%, rgba(212,146,42,0.35) 100%);
}
.phone-mock {
  position: relative; z-index: 2;
  width: 250px; height: 500px; border-radius: 34px; border: 6px solid #16281c;
  background: linear-gradient(165deg, #fff 0%, var(--bg-warm) 100%);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 12px;
  margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.phone-mock .phone-notch { width: 60px; height: 6px; border-radius: 4px; background: #16281c; margin: 0 auto 6px; }
.phone-mock .screen-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.phone-mock .screen-card .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px; }
.phone-mock .screen-card .value { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--text); }
.phone-mock .screen-ticker { display: flex; gap: 8px; overflow: hidden; }
.phone-mock .screen-ticker span {
  flex-shrink: 0; padding: 6px 10px; border-radius: 20px; background: var(--green-pale);
  color: var(--green); font-size: 11px; font-weight: 600;
}
.phone-mock .screen-listing {
  flex: 1; border-radius: 12px; background: linear-gradient(135deg, #e8e0d0, #d4cbb8);
  position: relative; overflow: hidden; min-height: 120px;
}
.phone-mock .screen-listing .tag {
  position: absolute; top: 10px; left: 10px; background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.phone-mock .screen-listing .info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px;
  background: rgba(255,255,255,0.92);
}
.phone-mock .screen-listing .info .name { font-weight: 600; font-size: 13px; }
.phone-mock .screen-listing .info .price { font-weight: 700; font-size: 15px; color: var(--green); }
.phone-mock .screen-chat {
  display: flex; align-items: center; gap: 8px; background: var(--green-pale);
  border-radius: 20px; padding: 10px 14px;
}
.phone-mock .screen-chat i { color: var(--green); font-size: 16px; }
.phone-mock .screen-chat span { font-size: 12px; font-weight: 500; color: var(--text); }

.float-chip {
  position: absolute; z-index: 3; background: #fff; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  animation: floatChip 4s ease-in-out infinite;
}
.float-chip i { font-size: 18px; color: var(--orange); }
.float-chip.chip-1 { top: 10%; left: 4%; animation-delay: 0s; }
.float-chip.chip-2 { bottom: 12%; right: 2%; animation-delay: 1.2s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 640px) {
  .phone-showcase-wrap { min-height: 480px; }
  .float-chip { display: none; }
}

/* ═══ CTA ═══ */
.cta-section { padding: 72px 48px; background: var(--bg); text-align: center; }
.cta-section h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; color: var(--text); margin: 0 0 12px; }
.cta-section p { font-size: 16px; color: var(--text-muted); margin: 0 0 32px; max-width: 520px; display: inline-block; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══ PAGE HEADERS ═══ */
.page-head { padding: 48px 48px 24px; background: var(--bg); }
.page-head-row { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.page-head h1 { font-family: var(--serif); font-weight: 700; font-size: 36px; margin: 0 0 8px; }
.page-head p.sub { font-size: 16px; color: var(--text-muted); margin: 0; max-width: 560px; }
.live-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 20px; background: #fff; flex-shrink: 0;
}
.live-pill span { font-size: 13px; font-weight: 500; }

/* ═══ FILTER BAR ═══ */
.filter-bar {
  display: flex; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; align-items: center; flex-wrap: wrap;
  margin: 0 48px 24px;
}
@media (max-width: 720px) { .filter-bar { margin: 0 20px 24px; } }
.filter-search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px;
  border-right: 1px solid var(--border); padding-right: 16px;
}
@media (max-width: 640px) { .filter-search { border-right: none; padding-right: 0; } }
.filter-search input {
  border: none; outline: none; font-family: var(--sans); font-size: 14px;
  color: var(--text); width: 100%; background: transparent;
}
.filter-search i { font-size: 18px; color: var(--text-muted); }
select, input[type="number"], input[type="text"] {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px;
  font-family: var(--sans); font-size: 13px; color: var(--text); background: #fff;
}
.filter-select { min-width: 150px; }

/* ═══ PRICE CARDS ═══ */
.price-grid { padding: 0 48px 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; padding: 0 20px 60px; } }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,60,42,0.1); }
.price-card-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 4px; }
.price-card-head h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 0; }
.price-card .region { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.price-card .amount { font-family: var(--serif); font-weight: 700; font-size: 32px; margin: 0 0 4px; }
.price-card .unit { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.price-card hr { border: none; height: 1px; background: var(--border); margin-bottom: 12px; }
.price-card .updated { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-light); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-muted); font-size: 15px; }

/* ═══ CALCULATOR ═══ */
.calc-wrap { padding: 64px 48px 80px; background: var(--bg); text-align: center; overflow: hidden; }
.calc-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-pale); display: grid;
  place-items: center; margin: 0 auto 24px; animation: calcIconGlow 3s ease-in-out infinite;
}
.calc-icon i { font-size: 32px; color: var(--green); }
@keyframes calcIconGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,60,42,0.12); }
  50% { box-shadow: 0 0 0 10px rgba(26,60,42,0); }
}
.calc-wrap h1 { font-family: var(--serif); font-weight: 700; font-size: 40px; margin: 0 0 12px; }
.calc-wrap > p { font-size: 16px; color: var(--text-muted); margin: 0 auto 48px; max-width: 520px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; text-align: left; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .calc-wrap { padding: 48px 20px 56px; }
  .calc-wrap h1 { font-size: 30px; }
  .calc-wrap > p { margin-bottom: 32px; }
}
.calc-form {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  transition: box-shadow 0.25s ease;
}
.calc-form:focus-within { box-shadow: 0 12px 28px rgba(26,60,42,0.1); }
.field-row { margin-bottom: 20px; }
.field-row label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field-row select, .field-row input,
.field-cols select, .field-cols input { width: 100%; min-width: 0; padding: 12px; }
.field-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px;
}
.field-cols.single-col { grid-template-columns: minmax(0, 1fr); }
.calc-form select, .calc-form input {
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
  font-family: var(--sans); font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-form select:focus, .calc-form input:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale);
}
.qty-stepper { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-stepper input {
  border: none; border-radius: 0; text-align: center; padding: 12px 4px;
  -moz-appearance: textfield;
}
.qty-stepper input:focus { box-shadow: none; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn {
  flex: 0 0 38px; border: none; background: var(--bg-warm); color: var(--text);
  font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.qty-btn:hover { background: var(--green-pale); color: var(--green); }
.qty-btn:active { background: var(--green); color: #fff; }
.calc-form .btn-block { width: 100%; padding: 16px; }
.calc-result {
  background: var(--green); border-radius: 16px; padding: 40px; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.4s ease;
}
.calc-result:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(26,60,42,0.22); }
.confidence-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 20px; background: rgba(255,255,255,0.15); width: fit-content; margin-bottom: 20px; font-size: 13px; font-weight: 500;
}
.calc-result .label { font-size: 15px; color: rgba(255,255,255,0.7); margin: 0 0 12px; }
.calc-result .value {
  font-family: var(--serif); font-weight: 700; font-size: 52px; margin: 0 0 8px;
  transition: opacity 0.15s ease;
}
.calc-result .value.updating { opacity: 0.4; }
.calc-trend { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin: 0 0 14px; min-height: 18px; }
.calc-trend svg { display: block; }
.calc-result .trend-flat-txt { color: rgba(255,255,255,0.55); }
.calc-result svg path[stroke="#22a858"] { stroke: #86e0ab; }
.calc-result svg path[stroke="#d94040"] { stroke: #ff9d9d; }
.calc-compare {
  border-top: 1px dashed rgba(255,255,255,0.2); border-bottom: 1px dashed rgba(255,255,255,0.2);
  padding: 14px 0; margin: 4px 0 16px;
}
.compare-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.compare-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.compare-value {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.75);
  text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.4);
}
.compare-note { font-size: 12px; color: #86e0ab; margin: 0; line-height: 1.5; }
.calc-result .basis { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }
.calc-empty {
  background: var(--bg-warm); border-radius: 16px; padding: 40px;
  display: flex; align-items: center; justify-content: center; min-height: 220px;
}
.calc-empty p { font-size: 15px; color: var(--text-muted); text-align: center; }

/* ═══ INFO SECTIONS (shared: For Farmers / For Buyers) ═══ */
.info-wrap { padding: 80px 48px; background: var(--bg); }
.info-inner { max-width: 1100px; margin: 0 auto; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 64px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,60,42,0.1); }
.info-card h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.info-card p { font-size: 14px; color: var(--text-muted); margin: 0; }
.info-cta { text-align: center; padding: 56px; background: var(--bg-warm); border-radius: 16px; }
.info-cta h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; margin: 0 0 12px; }
.info-cta p { font-size: 16px; color: var(--text-muted); margin: 0 0 28px; }

/* Category / commodity showcase strip (used on For Buyers) */
.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
@media (max-width: 900px) { .category-strip { grid-template-columns: repeat(2, 1fr); } }
.category-card {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 180px;
  display: flex; align-items: flex-end; background-size: cover; background-position: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,30,20,0.82) 0%, rgba(20,30,20,0.1) 65%); }
.category-card span { position: relative; z-index: 2; padding: 16px; color: #fff; font-weight: 600; font-size: 15px; }

/* ═══ FOOTER ═══ */
.site-footer { background: var(--green); padding: 64px 48px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.footer-brand span { font-family: var(--serif); font-weight: 700; font-size: 18px; color: #fff; }
.site-footer .desc { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 360px; margin: 0 0 20px; }
.footer-lang { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.5); font-size: 13px; }
.site-footer h4 { font-family: var(--serif); font-weight: 600; font-size: 16px; color: #fff; margin: 0 0 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ═══ NAV AUTH AREA ═══ */
.nav-auth-area { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-auth-area .nav-link { flex-shrink: 0; }
.account-chip-wrap { position: relative; flex-shrink: 0; }
.account-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer;
}
.account-chip:hover { border-color: var(--green); }
.account-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 160px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 6px; z-index: 200;
}
.account-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: none;
  background: none; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer;
}
.account-menu button:hover { background: var(--bg-warm); }

/* ═══ AUTH MODAL ═══ */
.auth-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(26,26,26,0.5); padding: 20px;
}
.auth-overlay.open { display: flex; }
.auth-modal {
  position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 32px;
}
.auth-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg-warm); color: var(--text-muted); font-size: 20px;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.auth-close:hover { background: var(--border); }
.auth-modal h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 0 0 6px; }
.auth-sub { font-size: 14px; color: var(--text-muted); margin: 0 0 24px; }
.auth-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.auth-role-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-warm);
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.auth-role-btn i { font-size: 26px; color: var(--green); }
.auth-role-btn:hover { border-color: var(--green); background: var(--green-pale); }
.auth-modal form .field-row, .auth-modal form .field-cols { margin-bottom: 16px; }
.auth-modal input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--sans); font-size: 14px;
}
.password-field { position: relative; }
.password-field input { padding-right: 40px; }
.password-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: none; background: none; color: var(--text-muted); font-size: 17px; cursor: pointer;
}
.password-toggle:hover { color: var(--text); }
.auth-remember-row { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; }
.auth-remember-row input { width: auto; }
.auth-remember-row label { font-size: 13px; color: var(--text-muted); cursor: pointer; }
.auth-error {
  font-size: 13px; color: var(--trend-down); background: #fdeaea; border-radius: 8px;
  padding: 10px 12px; margin: 0 0 16px;
}
.auth-devcode {
  font-size: 13px; color: var(--green); background: var(--green-pale); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 16px;
}
.auth-switch { font-size: 13px; color: var(--text-muted); text-align: center; margin: 16px 0 0; }
.auth-switch a { color: var(--green); font-weight: 500; }
.auth-view[hidden] { display: none; }

/* ═══ FADE-IN ON SCROLL ═══ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ═══ STATS BAR ═══ */
.stats-bar { padding: 56px 48px; background: var(--green); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
@media (max-width: 780px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.stat-item .num { font-family: var(--serif); font-weight: 700; font-size: 40px; color: #fff; margin: 0 0 6px; }
.stat-item .label { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ═══ MARKETPLACE PREVIEW (farmer / buyer split) ═══ */
.marketplace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 780px) { .marketplace-grid { grid-template-columns: 1fr; } }
.marketplace-card {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; background-size: cover; background-position: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.marketplace-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,0.22); }
.marketplace-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,30,20,0.88) 0%, rgba(20,30,20,0.35) 55%, rgba(20,30,20,0.05) 100%);
}
.marketplace-card-body { position: relative; z-index: 2; padding: 32px; color: #fff; }
.marketplace-card-body h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 0 0 8px; }
.marketplace-card-body p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0 0 18px; max-width: 380px; }

/* ═══ COMMUNITY IMPACT BANNER ═══ */
.community-banner {
  max-width: 1100px; margin: 0 auto; border-radius: 20px; overflow: hidden; position: relative;
  min-height: 300px; display: flex; align-items: center; background-size: cover; background-position: center;
}
.community-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,60,42,0.92) 0%, rgba(26,60,42,0.6) 60%, rgba(26,60,42,0.25) 100%);
}
.community-banner-body { position: relative; z-index: 2; padding: 48px; max-width: 520px; }
.community-banner-body h2 { font-family: var(--serif); font-weight: 700; font-size: 32px; color: #fff; margin: 0 0 14px; }
.community-banner-body p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.85); margin: 0; }

/* ═══ LOADING / ERROR STATES ═══ */
.state-box {
  padding: 60px 20px; text-align: center; color: var(--text-muted); font-size: 15px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.state-box .spinner {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border);
  border-top-color: var(--green); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-box .retry-btn {
  padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border); background: #fff;
  color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer;
}
.state-box .retry-btn:hover { border-color: var(--green); color: var(--green); }
.skeleton-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--border) 25%, var(--bg-warm) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-bottom: 10px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.tall { height: 32px; width: 70%; margin: 8px 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

