@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Italiana&display=swap");

/* AD-folder inspired desk — MLS chrome: forest + champagne (vistaview-ads theme) */
/* BLACK-DASH FIX 20260919T223300Z: NEVER park #root (was opacity:0 / left:-9999px).
   React dashboard must stay visible. Gold tip overlays without hiding #root. */
html.vv-role-dash-on #root,
html.vv-role-dash-on #root > * {
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
  left: auto !important;
  visibility: visible !important;
}
html.vv-role-dash-on #vv-role-dash-root {
  opacity: 1 !important; pointer-events: auto !important;
  height: auto !important; max-height: none !important;
  position: relative !important; left: auto !important;
  z-index: 80 !important; visibility: visible !important;
}

#vv-role-dash-root {
  --vv-bg: #0A1A17;
  --vv-bg-elevated: #0F2621;
  --vv-bg-card: #122C26;
  --vv-gold: #D4AF37;
  --vv-gold-soft: #C9A84C;
  --vv-gold-dim: #8A7324;
  --vv-cream: #F3E6C4;
  --vv-text: #E5E7EB;
  --vv-muted: #9CA3AF;
  --vv-line: rgba(212,175,55,0.28);
  --vv-glow: 0 0 40px rgba(212,175,55,0.18);
  --vv-radius: 16px;
  --vv-font-display: 'Italiana', 'Times New Roman', serif;
  --vv-font-ui: Inter, system-ui, sans-serif;

  position: relative; z-index: 80;
  max-width: 1180px; margin: 0 auto;
  padding: 16px 18px 96px;
  font-family: var(--vv-font-ui);
  color: var(--vv-text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,175,55,0.12), transparent 55%),
    linear-gradient(180deg, #081512 0%, var(--vv-bg) 40%, #071411 100%);
  border-radius: 20px;
  min-height: 70vh;
}

.vrd-shell { color: var(--vv-text); }

/* Role tabs — AD OWNER/LAND/TAX style */
.vrd-switch {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin: 4px 0 18px; padding: 0 2px 10px;
  border-bottom: 1px solid var(--vv-line);
}
.vrd-switch button {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--vv-muted); border-radius: 0; padding: 10px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.vrd-switch button:hover { color: var(--vv-cream); }
.vrd-switch button.on {
  color: var(--vv-gold);
  border-bottom-color: var(--vv-gold);
  background: transparent; font-weight: 700;
}

/* Hero — cinematic map sheet header */
.vrd-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--vv-line); border-radius: 18px;
  padding: 28px 24px 24px; margin-bottom: 18px;
  background:
    radial-gradient(circle at 88% 20%, rgba(212,175,55,0.16), transparent 42%),
    linear-gradient(145deg, #0C1F1A 0%, #16382E 48%, #0A1814 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), var(--vv-glow);
}
.vrd-hero::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--vv-gold), transparent);
}
.vrd-eye {
  margin: 0 0 10px; letter-spacing: .2em; text-transform: uppercase;
  font-size: 11px; color: var(--vv-gold); font-weight: 600;
}
.vrd-hero h1 {
  margin: 0; font-family: var(--vv-font-display); font-weight: 400;
  font-size: clamp(30px, 5vw, 48px); letter-spacing: .01em;
  background: linear-gradient(110deg, var(--vv-gold-dim) 0%, var(--vv-cream) 45%, var(--vv-gold) 55%, var(--vv-gold-dim) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: vrd-shimmer 7s linear infinite;
}
@keyframes vrd-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}
.vrd-sub { margin: 12px 0 0; color: rgba(243,239,226,.72); font-size: 14px; line-height: 1.5; max-width: 52rem; }

/* License / gold metal card strip (AD Join Pro card) */
.vrd-gold-card {
  margin: 16px 0 4px; padding: 16px 18px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #E8D48A 0%, #D4AF37 28%, #B8922A 55%, #F0E1A0 78%, #C9A227 100%);
  color: #0A1A17;
  box-shadow: 0 12px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
}
.vrd-gold-card .vrd-shield {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1.5px solid rgba(10,26,23,.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--vv-font-display); font-size: 22px; color: #0A1A17;
  background: rgba(255,255,255,.18);
}
.vrd-gold-card strong { display: block; font-size: 15px; letter-spacing: .02em; }
.vrd-gold-card span { font-size: 12px; opacity: .75; }
.vrd-gold-card .vrd-serial {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7;
}

/* KPI tiles — AD icon-grid / Broker Hub metrics */
.vrd-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.vrd-facts > div {
  aspect-ratio: auto; min-height: 88px;
  border: 1px solid var(--vv-line); border-radius: 18px;
  padding: 14px 14px 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,0.10), transparent 62%),
    var(--vv-bg-card);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.vrd-facts > div:hover {
  transform: translateY(-4px);
  border-color: var(--vv-gold);
  box-shadow: var(--vv-glow);
}
.vrd-facts span {
  display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(212,175,55,.9); margin-bottom: 8px; font-weight: 600;
}
.vrd-facts strong {
  font-size: 22px; color: #fff; font-weight: 700; letter-spacing: -.01em;
}

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

/* Panels — thin gold frames */
.vrd-panel {
  border: 1px solid var(--vv-line); border-radius: var(--vv-radius);
  margin-bottom: 14px; overflow: hidden;
  background: rgba(10,24,20,.96);
  box-shadow: 0 16px 48px rgba(0,0,0,.32);
}
.vrd-panel__h {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(212,175,55,.2);
  background: linear-gradient(90deg, rgba(212,175,55,.14), transparent 70%);
}
.vrd-panel__h h2 {
  margin: 0; font-family: var(--vv-font-display); font-size: 22px; font-weight: 400;
  color: var(--vv-cream);
}
.vrd-panel__b { padding: 14px 16px 16px; }

.vrd-kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px;
}
.vrd-kv span { color: var(--vv-muted); }
.vrd-kv strong { color: #fff; text-align: right; word-break: break-word; }

.vrd-list { list-style: none; margin: 0; padding: 0; }
.vrd-list li { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.vrd-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.vrd-right { text-align: right; }
.vrd-muted { color: var(--vv-muted); font-size: 12px; margin-top: 3px; }
.vrd-empty { margin: 0; color: rgba(243,239,226,.62); font-size: 14px; }
.vrd-note { font-size: 12px; color: rgba(243,239,226,.5); margin: 0 0 12px; }

/* Gold CTAs — AD "Open portfolio" */
.vrd-links { display: flex; flex-wrap: wrap; gap: 10px; }
.vrd-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--vv-gold);
  background: linear-gradient(180deg, #C9A227, #8F7318);
  color: #0A1A17 !important; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  box-shadow: var(--vv-glow);
  transition: transform .2s ease, filter .2s ease;
}
.vrd-links a:hover { transform: translateY(-2px); filter: brightness(1.08); color: #0A1A17 !important; }

/* Ghost / secondary link style for less primary actions */
.vrd-links a.ghost {
  background: transparent; color: var(--vv-cream) !important;
  box-shadow: none;
}
.vrd-links a.ghost:hover { background: rgba(212,175,55,.1); color: var(--vv-gold) !important; }

@media (max-width: 960px) {
  .vrd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vrd-grid { grid-template-columns: 1fr; }
  .vrd-gold-card { grid-template-columns: auto 1fr; }
  .vrd-gold-card .vrd-serial { grid-column: 1 / -1; }
}
