/*
 * BWS 2.0 homepage v2
 * Description: Mockup-aligned lower homepage layout below the existing hero/header.
 */

body.home-v2-active .businesses-section,
body.home-v2-active .map-news-row,
body.home-v2-active .community-row,
body.home-v2-active .reviews-section,
body.home-v2-active .fin-edu-row,
body.home-v2-active #content-timeline-root {
  display: none !important;
}

.home-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  color: #f3e7d0;
}

.home-v2-panel {
  border: 1px solid rgba(208, 144, 39, .34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 12, 4, .94), rgba(3, 5, 4, .92)),
    rgba(0, 0, 0, .62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 216, 130, .05);
}

.home-v2-kicker {
  color: #d99d33;
  font: 800 12px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-v2-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.home-v2-head h2,
.home-v2-head h3 {
  margin: 0;
  color: #fff5dd;
  font: 800 20px var(--font-display);
  letter-spacing: .03em;
}

.home-v2-live {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 4px;
  color: #72ee7b;
  background: rgba(21, 116, 34, .18);
  font: 800 10px var(--font-ui);
  text-transform: uppercase;
}

.ticker-panel {
  padding: 18px 20px;
  margin-top: 18px;
}

.ticker-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  border-bottom: 1px solid rgba(208, 144, 39, .2);
  padding-bottom: 13px;
}

.ticker-total {
  display: grid;
  gap: 2px;
  text-align: right;
}

.ticker-total strong {
  color: #56da5e;
  font: 800 26px var(--font-ui);
}

.ticker-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
  overflow: hidden;
}

.ticker-item {
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid rgba(208, 144, 39, .22);
}

.ticker-item b {
  display: block;
  color: #fff0cd;
  font: 800 14px var(--font-display);
}

.ticker-item span,
.ticker-total span {
  color: #a98e61;
  font-size: 12px;
}

.ticker-item small {
  color: #5ce069;
  font-weight: 800;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.index-card {
  padding: 20px;
  min-height: 350px;
}

.index-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 7px 0 14px;
}

.index-price strong {
  color: #fff9e8;
  font: 700 32px var(--font-ui);
}

.index-price span {
  color: #59df5f;
  font: 800 14px var(--font-ui);
}

.index-chart {
  position: relative;
  height: 190px;
  margin: 8px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 80px 100%,
    radial-gradient(circle at 80% 70%, rgba(75, 221, 72, .16), transparent 45%);
  overflow: hidden;
}

.index-card.obsidian .index-chart {
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 80px 100%,
    radial-gradient(circle at 80% 70%, rgba(218, 148, 23, .18), transparent 45%);
}

.index-chart svg {
  width: 100%;
  height: 100%;
}

.index-card p {
  margin: 12px 0 0;
  color: #b9a784;
  font-size: 13px;
}

.home-v2-index-link {
  display: inline-block;
  margin-top: 10px;
  color: #d4a843;
  font: 600 12px/1 var(--font-ui, 'Inter', sans-serif);
  text-decoration: none;
  letter-spacing: .04em;
}
.home-v2-index-link:hover { color: #f0c96a; text-decoration: underline; }

.index-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #a98e61;
  font: 800 12px var(--font-ui);
}

.index-tabs .active { color: #f0aa2c; border-bottom: 2px solid #f0aa2c; }

.exchange-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(110px, .35fr));
  gap: 12px;
  padding: 14px 16px;
  color: #cbb68d;
}

.exchange-note strong { color: #fff1d0; }
.exchange-note b { color: #f2b33e; }

/* ── Index subscriber gate overlay ──────────────────────────────────────── */
.index-locked [data-index-card] { position: relative; }
.index-gate {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 4, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.index-gate-inner {
  text-align: center;
  padding: 24px 20px;
  max-width: 220px;
}
.index-gate-icon { font-size: 28px; display: block; margin-bottom: 10px; color: #d4a843; }
.index-gate-label { display: block; font: 700 15px var(--font-ui); color: #f0e3c8; margin-bottom: 6px; }
.index-gate-inner p { font-size: 12px; color: #9e8d6e; margin: 0 0 14px; line-height: 1.4; }
.index-gate-btn {
  background: linear-gradient(135deg, #b37e1a, #d4a027);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font: 600 12px var(--font-ui);
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .2s;
}
.index-gate-btn:hover { background: linear-gradient(135deg, #c88e1e, #e8b22e); }

/* ── Subscription pitch modal ────────────────────────────────────────────── */
.sub-pitch-modal { max-width: 620px; padding: 32px 36px; }
.sub-pitch-step { display: flex; flex-direction: column; gap: 18px; }
.sub-pitch-intro { color: var(--text-muted, #b0a080); font-size: 14px; margin: 0; line-height: 1.5; }
.sub-pitch-currencies { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sub-pitch-currency {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 18px;
}
.onyx-card { border-color: rgba(88, 224, 94, .22); }
.obsidian-card { border-color: rgba(241, 165, 31, .22); }
.currency-gem { font-size: 22px; display: block; margin-bottom: 6px; }
.onyx-card .currency-gem { color: #58e05e; }
.obsidian-card .currency-gem { color: #f1a51f; }
.sub-pitch-currency h3 {
  font-size: 15px;
  font-weight: 700;
  color: #f0e3c8;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.currency-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .05em;
}
.currency-tag.utility { background: rgba(88, 224, 94, .15); color: #5ce069; }
.currency-tag.asset   { background: rgba(241, 165, 31, .15); color: #f1a51f; }
.sub-pitch-currency p { font-size: 12px; color: #9e8d6e; margin: 0 0 10px; line-height: 1.5; }
.sub-pitch-currency ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sub-pitch-currency li { font-size: 11px; color: #c5b48a; padding-left: 14px; position: relative; }
.sub-pitch-currency li::before { content: '›'; position: absolute; left: 0; color: #d4a843; }
.sub-pitch-model { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.sub-pitch-model > strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9e8d6e;
  margin-bottom: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sub-pitch-bars { display: flex; flex-direction: column; gap: 8px; }
.sub-pitch-bars > div { display: flex; align-items: center; gap: 10px; }
.bar-label { font-size: 11px; color: #c5b48a; width: 90px; flex-shrink: 0; }
.bar-track { flex: 1; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #b37e1a, #d4a027); border-radius: 3px; }
.bar-fill.brics { background: linear-gradient(90deg, #3a8fcc, #5ab6f0); }
.bar-fill.util  { background: linear-gradient(90deg, #58e05e, #84f78a); }
.sub-pitch-bars b { font-size: 11px; color: #f0c96a; width: 32px; text-align: right; flex-shrink: 0; }
.sub-pitch-perks { display: flex; flex-direction: column; gap: 14px; }
.sub-pitch-perks article { display: flex; gap: 14px; align-items: flex-start; }
.perk-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.sub-pitch-perks strong { display: block; font-size: 14px; color: #f0e3c8; margin-bottom: 4px; }
.sub-pitch-perks p { font-size: 12px; color: #9e8d6e; margin: 0; line-height: 1.4; }
.sub-pitch-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sub-pitch-dots { display: flex; gap: 7px; justify-content: center; margin-top: 4px; }
.sub-pitch-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.sub-pitch-dots .dot.active { background: #d4a027; }
@media (max-width: 520px) {
  .sub-pitch-currencies { grid-template-columns: 1fr; }
  .sub-pitch-modal { padding: 24px 20px; }
}

.market-v2,
.map-v2,
.story-v2,
.cta-v2 {
  margin-top: 24px;
  padding: 20px;
}

.market-v2-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.market-v2-card {
  min-width: 0;
  border: 1px solid rgba(208, 144, 39, .28);
  border-radius: 8px;
  background: rgba(10, 7, 3, .72);
  overflow: hidden;
}

.market-v2-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-bottom: 1px solid rgba(208, 144, 39, .18);
}

.market-v2-card div { padding: 11px; }
.market-v2-card h3 {
  min-height: 42px;
  margin: 0 0 4px;
  color: #fff7e2;
  font: 800 16px var(--font-ui);
  line-height: 1.12;
}
.market-v2-card small { color: #b49c70; }
.market-v2-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.market-v2-card b { color: #fff5db; }
.market-v2-card a,
.market-v2-card button,
.map-open-btn,
.cta-v2 a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(208, 144, 39, .55);
  border-radius: 5px;
  color: #f3bc57;
  background: rgba(208, 144, 39, .08);
  font: 800 12px var(--font-ui);
  cursor: pointer;
}

/* full-width map panel replacing the old split activity+map grid */
.map-v2-full {
  margin-top: 24px;
  padding: 20px;
}

.map-v2-full .home-v2-map {
  height: 280px;
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.activity-list {
  display: grid;
  gap: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(208, 144, 39, .13);
}

.activity-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-row strong { display: block; color: #fff1cf; }
.activity-row small { color: #a98e61; }

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(208, 144, 39, .34);
  border-radius: 999px;
  color: #d7c49a;
  background: rgba(0, 0, 0, .24);
  font: 800 12px var(--font-ui);
}

.map-toggle input { accent-color: #d09027; }

.home-v2-map {
  height: 430px;
  border: 1px solid rgba(208, 144, 39, .24);
  border-radius: 8px;
  overflow: hidden;
  background: #060606;
}

.agent-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .34fr);
  gap: 14px;
  margin-top: 14px;
}

.agent-card {
  padding: 14px;
  border: 1px solid rgba(208, 144, 39, .24);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
}

.agent-card h3 { margin: 0 0 6px; color: #fff0d1; }
.agent-card p { margin: 0; color: #bda77d; font-size: 13px; }

/* 3-equal-column Community Activity | Upcoming Events | BWS 2.0 News */
.story-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(208, 144, 39, .27);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(26, 16, 4, .78), rgba(4, 5, 3, .78));
  display: flex;
  flex-direction: column;
}

.story-card-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(208, 144, 39, .18);
}

.story-view-all {
  margin-top: auto;
  padding-top: 12px;
  display: inline-block;
  text-decoration: none;
}

.story-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.story-list article {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(208, 144, 39, .12);
}

.date-chip {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid rgba(208, 144, 39, .28);
  border-radius: 6px;
  color: #f1b64e;
  font: 800 11px var(--font-display);
}

.cta-v2 {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(140px, .35fr));
  gap: 20px;
  align-items: center;
}

.cta-v2 h2 {
  margin: 0 0 8px;
  font: 800 24px var(--font-display);
}

.cta-v2 p { margin: 0; color: #bca782; }

.cta-v2-icon {
  display: grid;
  gap: 6px;
  text-align: center;
  color: #cbb68d;
}

.cta-v2-icon b { color: #f5c769; }

.home-v2-footer-logo {
  width: 132px;
  height: auto;
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .index-grid,
  .story-v2-grid,
  .cta-v2,
  .exchange-note {
    grid-template-columns: 1fr;
  }
  .market-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticker-strip {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .home-v2 { padding: 18px 12px 26px; }
  .market-v2-grid { grid-template-columns: 1fr; }
  .ticker-top { grid-template-columns: 1fr; }
  .ticker-total { text-align: left; }
  .home-v2-map { height: 330px; }
}
