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

:root {
  --bg:       #050a18;
  --surface:  #0d1730;
  --border:   #1e3a5f;
  --accent:   #00d4ff;
  --accent2:  #7b2fff;
  --text:     #e0eaff;
  --muted:    #6b82a8;
  --positive: #00e676;
  --negative: #ff5252;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(5, 10, 24, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-link  { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

#wallet-area { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

.network-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 0.5rem;
}
.network-badge.eth { background: rgba(0,212,255,0.12); border: 1px solid var(--accent);  color: var(--accent); }
.network-badge.bsc { background: rgba(240,185,11,0.12); border: 1px solid #f0b90b;        color: #f0b90b; }
.network-badge.sol { background: rgba(153,69,255,0.15); border: 1px solid #9945ff;        color: #9945ff; }

/* ── Chain switcher (navbar) ───────────────────────── */
.chain-switcher { display:flex; gap:0.3rem; align-items:center; margin-right:0.5rem; }
.chain-btn {
  display:flex; align-items:center; gap:0.3rem;
  padding:0.25rem 0.6rem; border-radius:20px;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.05);
  color:var(--muted); font-size:0.78rem; font-weight:600;
  cursor:pointer; transition:all 0.2s;
}
.chain-btn:hover  { border-color:var(--accent); color:var(--text); }
.chain-btn.active { border-color:var(--accent); background:rgba(0,212,255,0.12); color:var(--accent); }
.chain-icon { width:14px; height:14px; border-radius:50%; }

#connectBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
#connectBtn:hover { opacity: 0.85; }

.wallet-badge, .wallet-address {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: monospace;
}

.connect-chain-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: 50px;
  font-size: 0.82rem;
  margin-right: 0.4rem;
  cursor: pointer;
}

/* ── Hero (compact — the project grid must be reachable without excess
   scrolling, that's the whole point of this page) ─────────────────── */
.hero {
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #0a1a4a 0%, var(--bg) 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-top: 1.4rem;
}

.trust-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); font-size: 0.78rem; font-weight: 600;
  text-decoration: none; transition: border-color 0.2s;
}
.trust-badge img { width: 16px; height: 16px; border-radius: 3px; }
a.trust-badge:hover { border-color: var(--accent); color: var(--accent); }
.trust-badge.static { cursor: default; }

.hero-scroll-cta {
  display: inline-block; margin-top: 1.6rem;
  color: var(--accent); text-decoration: none;
  font-size: 0.85rem; font-weight: 700;
}
.hero-scroll-cta:hover { text-decoration: underline; }

/* ── Compliance stamps — fixed to the side of the page, desktop only.
   Circular double-ring "ink stamp" look, slightly rotated. ─────────── */
.compliance-stamps {
  position: fixed;
  right: 8.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Real org logos (verified 2026-08-20 direct from icvcm.org / icroa.org --
   not an invented graphic) on a plain white card so both read cleanly
   against the dark theme, regardless of each logo's own colors/background. */
.stamp {
  width: 172px;
  height: 172px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stamp:hover { transform: scale(1.04); box-shadow: 0 6px 22px rgba(0,0,0,0.45); }
.stamp img { width: 100%; height: 100%; object-fit: contain; }

/* Secondary (demoted) stamp -- smaller than the primary ICVCM/CCP stamp,
   per the 2026-08-20 review: ICROA kept but no longer the lead trust
   signal now that ICVCM CCP-Eligible (verified real, icvcm.org, Aug 2026)
   is displayable. */
.stamp.stamp-secondary {
  width: 130px;
  height: 130px;
  padding: 0.85rem;
  opacity: 0.9;
}

/* Wordmark logos (wide, not square) get their own proportions -- BioCarbon
   Standard's "blanco" (white) variant is designed for dark backgrounds, so
   it sits on the theme surface directly rather than a white card. */
.stamp.stamp-wordmark {
  width: 208px;
  height: 78px;
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem 1.3rem;
}

/* Fixed side placement only makes sense with room to spare -- below that,
   these move into the normal badge row so they don't cover content. */
@media (max-width: 1100px) {
  .compliance-stamps { display: none; }
  .trust-badges::after {
    content: "BioCarbon Standard   ✓ ICVCM CCP-Eligible   🌱 ICROA";
    display: inline-flex; align-items: center;
    padding: 0.4rem 0.85rem; border-radius: 20px;
    background: rgba(0,230,118,0.08); border: 1px solid var(--positive);
    color: var(--positive); font-size: 0.78rem; font-weight: 700;
  }
}

.tagline {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 500px;
  margin-inline: auto;
}

.sub {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Hero product cards ──────────────────────────────────────── */
.product-cards-hero {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.product-hero-card {
  background: rgba(13,23,48,0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  width: 220px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.product-hero-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-hero-card.green:hover { border-color: var(--positive); }

.phc-icon  { font-size: 2.2rem; margin-bottom: 0.5rem; }
.phc-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.phc-desc  { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin-bottom: 1rem; }
.phc-cta   { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.product-hero-card.green .phc-cta { color: var(--positive); }

.hero-link-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Environmental Bridge ────────────────────────────────────── */
.env-bridge {
  margin: 3rem 0;
  background: linear-gradient(135deg, rgba(0,230,118,0.06), rgba(0,212,255,0.06));
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: 20px;
  padding: 2rem;
}

.env-bridge-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.env-bridge-left { flex: 1; min-width: 200px; }
.env-bridge-left h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.env-bridge-left p  { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.env-bridge-left strong { color: var(--text); }

.env-bridge-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ebs { text-align: center; }
.ebs-val   { display: block; font-size: 1.5rem; font-weight: 700; color: var(--positive); }
.ebs-label { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 0.2rem; }
.ebs-divider { width: 1px; height: 40px; background: rgba(0,230,118,0.2); }

.hero-btns { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

.cta-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.cta-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cta-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Stars animation */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur) infinite ease-in-out;
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--bright); }
}

/* ── Dashboard ──────────────────────────────────────── */
.dashboard {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

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

.dashboard-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.live-badge {
  background: rgba(0, 230, 118, 0.15);
  color: var(--positive);
  border: 1px solid var(--positive);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Stats Grid ─────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--accent); }

.stat-label { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.3rem; }
.stat-change { font-size: 0.85rem; color: var(--muted); }
.positive { color: var(--positive); }
.negative { color: var(--negative); }

/* ── Action Panel ───────────────────────────────────── */
.action-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }

.tab {
  flex: 1;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
}

.tab-content label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.tab-content input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}
.tab-content input:focus { border-color: var(--accent); }

.est-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.75rem 0;
}
.est-row span:last-child { color: var(--text); font-weight: 600; }

.action-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.action-btn:hover { opacity: 0.85; }
.withdraw-btn {
  background: linear-gradient(135deg, var(--accent2), #ff5252);
}

/* ── Holdings Table ─────────────────────────────────── */
.holdings-section, .tx-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.holdings-section h3, .tx-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.holdings-table th {
  color: var(--muted);
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.holdings-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.4);
}
.holdings-table tr:last-child td { border-bottom: none; }
.holdings-table tr:hover td { background: rgba(0, 212, 255, 0.04); }

/* ── Transactions ───────────────────────────────────── */
.tx-list { display: flex; flex-direction: column; gap: 0.5rem; }

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}
.tx-type { font-weight: 600; }
.tx-meta { color: var(--muted); font-size: 0.8rem; }
.empty-msg { color: var(--muted); font-size: 0.9rem; }

/* ── Currency Selector ──────────────────────────────────────── */
.currency-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.currency-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.currency-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
}

/* ── Est Box ─────────────────────────────────────────────────── */
.est-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.est-highlight { color: var(--accent); font-weight: 700; }

/* ── Dest row ─────────────────────────────────────────────── */
.dest-row {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.resolved-addr {
  font-family: monospace;
  color: var(--accent);
  margin-left: 0.4rem;
  font-size: 0.8rem;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1.2rem 0 1rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Fiat Buttons ────────────────────────────────────────────── */
.fiat-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fiat-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.fiat-btn:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,0.05);
}

/* ── Fiat Instructions ───────────────────────────────────────── */
.fiat-instructions {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(30,58,95,0.4);
  color: var(--muted);
}
.bank-row:last-of-type { border-bottom: none; }
.bank-row strong { color: var(--text); }

.ref-row strong {
  color: var(--accent);
  font-family: monospace;
  letter-spacing: 1px;
}

.bank-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Redeem note ─────────────────────────────────────────────── */
.redeem-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ── Portfolio section ───────────────────────────────────────── */
.portfolio-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.portfolio-section h3 {
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.portfolio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.portfolio-label { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.4rem; }
.portfolio-value { font-size: 1.2rem; font-weight: 700; }

/* ── Manager pill ────────────────────────────────────────────── */
.manager-pill {
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

/* ── Network selector ───────────────────────────────────────── */
.network-selector { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.net-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 0.88rem;
  transition: all 0.2s;
}
.net-btn.active { background: var(--surface); border-color: var(--accent); color: var(--text); }
.net-dot { width: 8px; height: 8px; border-radius: 50%; }
.net-dot.eth { background: var(--accent); }
.net-dot.bsc { background: #f0b90b; }
.net-dot.sol { background: #9945ff; }

/* ── GINV Bonus Banner ───────────────────────────────────────── */
.ginv-bonus-banner {
  background: linear-gradient(135deg, rgba(123,47,255,0.2), rgba(0,212,255,0.1));
  border: 1px solid var(--accent2);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: #c4a1ff;
  margin-bottom: 0.75rem;
}
.ginv-bonus-row { color: var(--positive); }

/* ── Layout container ──────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Carbon Section ──────────────────────────────────────────── */
.carbon-section {
  margin-top: 1.5rem;
  padding-top: 2rem;
}

.section-title { font-size: 1.8rem; font-weight: 700; }

.carbon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.carbon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s;
}
/* Price/availability/button always line up at the same height across cards
   as one group, regardless of how long each project's description/SDG list is. */
.carbon-card-footer { margin-top: auto; }
.carbon-card:hover { border-color: var(--positive); transform: translateY(-2px); }
.carbon-card.featured { border-color: rgba(0,230,118,0.4); }

.carbon-badge-featured {
  position: absolute;
  top: -0.6rem; right: 1rem;
  background: var(--positive);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
}

.carbon-card-image {
  width: calc(100% + 3rem); margin: -1.5rem -1.5rem 1rem;
  height: 140px; object-fit: cover;
  border-radius: 20px 20px 0 0;
}
.carbon-icon     { font-size: 2rem; margin-bottom: 0.5rem; }
.carbon-type     { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.carbon-location { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.3rem; }
.carbon-cert     { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; }
.carbon-price    { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--muted); }
.carbon-price span { color: var(--muted); font-size: 0.8rem; font-weight: 400; }

.carbon-btn {
  width: 100%;
  padding: 0.65rem;
  background: linear-gradient(135deg, #00a855, #00e676);
  border: none; border-radius: 10px;
  color: #000; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: opacity 0.2s;
  display: block; text-align: center; text-decoration: none;
}
.carbon-btn:hover { opacity: 0.85; }
.carbon-btn-disabled {
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.2));
  color: var(--muted);
}
.carbon-btn-disabled:hover { opacity: 1; border-color: var(--positive); color: var(--positive); }

/* Above-the-fold project facts (2026-08-20 review) -- Available/Vintage/
   Price/Auditor visible on every card without clicking. */
.carbon-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.carbon-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.carbon-meta-item span:first-child { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.carbon-meta-item span:last-child { font-size: 0.85rem; font-weight: 700; }

.carbon-card-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  font-size: 0.75rem; margin-bottom: 0.8rem;
}
.carbon-card-links a { color: var(--accent); text-decoration: none; }
.carbon-card-links a:hover { text-decoration: underline; }

.carbon-btn-row { display: flex; gap: 0.5rem; }
.carbon-btn-row .carbon-btn { flex: 1; }
.carbon-btn-secondary {
  background: transparent !important;
  border: 1px solid var(--positive);
  color: var(--positive) !important;
}
.carbon-btn-secondary:hover { background: rgba(0,230,118,0.1) !important; }

/* Institutional/bulk-buyer callout, shown once above the project grid. */
.corporate-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(0,168,85,0.1), rgba(0,230,118,0.05));
  border: 1px solid var(--positive);
  border-radius: 16px;
  padding: 1.3rem 1.6rem;
  margin: 1.5rem 0;
}
.corporate-banner strong { font-size: 1.05rem; }
.corporate-banner p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; }
.corporate-banner button { flex-shrink: 0; padding: 0.75rem 1.4rem; white-space: nowrap; }
@media (max-width: 560px) { .corporate-banner { flex-direction: column; align-items: stretch; text-align: center; } }

.sdg-tags { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.6rem 0; }
.sdg-chip {
  display: flex; align-items: center; gap: 0.7rem;
  border-radius: 8px; padding: 0.4rem 0.7rem;
  color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.sdg-chip-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 4px; background: rgba(255,255,255,0.15); object-fit: contain; }
.sdg-chip-text { font-size: 0.85rem; font-weight: 600; line-height: 1.25; }

.carbon-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}
.cstat { display: flex; flex-direction: column; gap: 0.3rem; }
.cstat-val   { font-size: 2rem; font-weight: 700; color: var(--positive); }
.cstat-label { color: var(--muted); font-size: 0.85rem; }

/* ── GINV Section ────────────────────────────────────────────── */
.ginv-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  padding-bottom: 2rem;
}

.ginv-chain-pill {
  background: rgba(240,185,11,0.12);
  border: 1px solid #f0b90b;
  color: #f0b90b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

.ginv-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.benefit-card:hover { border-color: #f0b90b; }
.benefit-icon  { font-size: 1.5rem; margin-bottom: 0.5rem; }
.benefit-title { font-weight: 700; margin-bottom: 0.35rem; font-size: 0.95rem; }
.benefit-desc  { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.ginv-info-box {
  background: var(--surface);
  border: 1px solid #f0b90b;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 480px;
}
.ginv-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}
.ginv-info-row:last-of-type { border-bottom: none; }
.ginv-info-row span:last-child { color: var(--text); }
.mono { font-family: monospace; font-size: 0.82rem; color: #f0b90b; }

/* ── ENS Badge ──────────────────────────────────────────── */
.ens-badge {
  background: linear-gradient(135deg, rgba(123,47,255,0.2), rgba(0,212,255,0.2));
  border: 1px solid var(--accent2);
  color: #c4a1ff;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 0.5rem;
  cursor: help;
}

/* ── Stocks Section ─────────────────────────────────────── */
.stocks-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.section-header h3 {
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ens-pill {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

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

.stock-search-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stock-search-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.stock-search-row input:focus { border-color: var(--accent); }

.stock-search-row select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.stock-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.stock-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.stock-icon { font-size: 1.4rem; }
.stock-info { flex: 1; }
.stock-ticker { font-weight: 700; font-size: 0.95rem; }
.stock-name   { color: var(--muted); font-size: 0.78rem; }
.stock-right  { text-align: right; }
.stock-price  { font-weight: 600; font-size: 0.9rem; }
.stock-daily  { font-size: 0.8rem; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  padding: 2rem 1rem; /* keeps the modal off the very top/bottom edge on short screens */
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  /* Long forms (checkout) must never push the header/close button off-screen
     -- cap the whole modal's height and let only the body scroll. */
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0; /* stays pinned in view -- the X is always reachable */
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}
.modal-close:hover { color: var(--text); }

.modal-body { padding: 1.5rem; overflow-y: auto; }

.modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.modal-body label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.modal-body input, .modal-body select, .modal-body textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
  margin-bottom: 0.75rem;
  font-family: inherit;
  resize: vertical;
}
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus { border-color: var(--accent); }

/* ── Badges ─────────────────────────────────────────────── */
.badge-stock   { background: rgba(0,212,255,0.15); color: var(--accent);  border: 1px solid var(--accent);  padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.75rem; }
.badge-crypto  { background: rgba(123,47,255,0.15); color: #c4a1ff;       border: 1px solid var(--accent2); padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.75rem; }
.badge-private { background: rgba(255,180,0,0.12);  color: #ffb400;       border: 1px solid #ffb400;        padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.75rem; }

/* ── Public Holdings Section ────────────────────────────────── */
.public-holdings-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.ph-inner { max-width: 1100px; margin: 0 auto; }

.ph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.ph-title {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ph-sub     { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }
.ph-refresh { color: var(--muted); font-size: 0.78rem; }
.ph-table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }

.ph-note {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 10px;
}

.ph-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.ph-link:hover { text-decoration: underline; }

/* ── Wallet Balance Strip ───────────────────────────────────── */
.balance-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.balance-strip-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  font-weight: 600;
}

.balance-items { display: flex; gap: 1.5rem; flex: 1; flex-wrap: wrap; }
.balance-item  { display: flex; flex-direction: column; gap: 0.15rem; min-width: 90px; }

.bal-sym {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.bal-val { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.balance-total-row { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.balance-total-val { font-weight: 700; color: var(--accent); }

/* ── Holdings extras ────────────────────────────────────────── */
.ticker {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  background: rgba(0,212,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.25);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.price-cell { font-weight: 600; color: var(--text); }
.muted-text { color: var(--muted); }

/* ── Footer ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Utilities ──────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Toast ──────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  max-width: 320px;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { border-color: var(--negative); }

/* ── Solana section ────────────────────────────────────────── */
.solana-section { padding: 2rem var(--page-pad) 1rem; max-width: var(--max-w); margin: 0 auto 1rem; }

.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.sol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.sol-card:hover { border-color: #9945ff; }
.sol-card.featured-sol { border-color: rgba(153,69,255,0.5); background: rgba(153,69,255,0.05); }

.sol-card-icon  { font-size: 1.6rem; }
.sol-card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.sol-card-desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.5; flex: 1; }
.sol-card-mint  { font-size: 0.7rem; color: var(--muted); word-break: break-all; }

.sol-card-btn {
  display: inline-block; margin-top: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 8px;
  background: rgba(153,69,255,0.15); border: 1px solid #9945ff;
  color: #9945ff; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s; text-align: center;
}
.sol-card-btn:hover { background: rgba(153,69,255,0.3); }

.sol-phantom-status {
  font-size: 0.78rem; color: #9945ff; font-weight: 600;
}

.sol-wallet-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 10px;
  background: rgba(153,69,255,0.07); border: 1px solid rgba(153,69,255,0.2);
  font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem;
}
.sol-wallet-note .mono { color: var(--text); font-size: 0.75rem; }

/* ── Admin corner link ─────────────────────────────────────────── */
.admin-corner-link {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9998;
  padding: 0.5rem 0.9rem; border-radius: 20px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.78rem; font-weight: 600;
  text-decoration: none; backdrop-filter: blur(4px);
  transition: border-color 0.2s, color 0.2s;
}
.admin-corner-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── Support chat widget ────────────────────────────────────────── */
.chat-bubble {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.chat-bubble:hover { opacity: 0.9; }

.chat-panel {
  position: fixed; bottom: 5.5rem; left: 1.5rem; z-index: 9998;
  width: 340px; max-width: calc(100vw - 3rem); height: 440px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.chat-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.9rem;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem;
}

.chat-msg {
  max-width: 85%; padding: 0.55rem 0.8rem; border-radius: 10px;
  font-size: 0.84rem; line-height: 1.4; white-space: pre-wrap;
}
.chat-msg.bot  { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #000; }

.chat-input-row {
  display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 0.5rem 0.7rem; font-size: 0.85rem;
}
.chat-input-row button {
  background: var(--accent); border: none; color: #000; border-radius: 8px;
  padding: 0.5rem 1rem; font-weight: 700; cursor: pointer; font-size: 0.82rem;
}

/* ── Responsive (phones) ──────────────────────────────────────────
   Everything above is written mobile-friendly where possible (auto-fill
   grid, flex-wrap, clamp() on the hero). This block handles the spots
   that need real changes below 640px, not just wrapping. */
@media (max-width: 640px) {
  .navbar { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .logo { font-size: 1.05rem; }
  #wallet-area { justify-content: flex-start; width: 100%; }
  .connect-chain-select { font-size: 0.75rem; padding: 0.4rem 0.55rem; }
  #connectBtn { padding: 0.45rem 1rem; font-size: 0.82rem; }
  .chain-switcher { gap: 0.25rem; }
  .chain-btn { padding: 0.2rem 0.5rem; font-size: 0.72rem; }

  .hero { padding: 2rem 1rem 1.75rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.88rem; }
  .trust-badge { font-size: 0.72rem; padding: 0.35rem 0.7rem; }

  .container { padding: 0 1rem; }
  .carbon-grid { grid-template-columns: 1fr; }
  .carbon-card { padding: 1.2rem; }
  .carbon-stats { gap: 1.2rem; padding: 1rem; text-align: center; justify-content: center; }

  .modal { max-width: 100%; margin: 0.5rem; }
  .modal-body { padding: 1.1rem; }
  .modal-body input, .modal-body select { font-size: 1rem; } /* prevents iOS auto-zoom on focus */

  .chat-panel { left: 0.75rem; right: 0.75rem; width: auto; bottom: 5rem; height: 60vh; }
  .chat-bubble { left: 1rem; bottom: 1rem; }

  .receipt-wrap { margin: 1.5rem auto; }
}
