#ai-results {
  display: none;
  padding: 80px 40px;
  background: #080808;
  border-top: 1px solid rgba(212,175,55,0.3);
}
.ai-label {
  color: #D4AF37;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  margin-bottom: 16px;
}
.ai-introduction {
  color: #E5E5E5;
  font-size: 1.2rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.8;
}
.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.ai-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  transition: all 0.4s ease;
}
.ai-card:hover {
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 0 40px rgba(212,175,55,0.08);
  transform: translateY(-4px);
}
.ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.match-score { color: #D4AF37; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.privacy-badge { font-size: 10px; padding: 3px 10px; border: 1px solid rgba(212,175,55,0.4); color: #D4AF37; letter-spacing: 0.1em; text-transform: uppercase; }
.ai-asset-name { color: #fff; font-size: 1.4rem; margin: 0 0 8px; font-family: serif; }
.ai-location { color: #888; font-size: 0.85rem; margin-bottom: 16px; }
.ai-tagline { color: #BBB; font-style: italic; font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.ai-investment-case { color: #999; font-size: 0.85rem; line-height: 1.6; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); margin-bottom: 20px; }
.ai-card-footer { display: flex; justify-content: space-between; align-items: center; }
.ai-price { color: #D4AF37; font-size: 1rem; font-weight: 700; }
.ai-enquire-btn { background: transparent; border: 1px solid #D4AF37; color: #D4AF37; padding: 8px 20px; font-size: 0.8rem; letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s; }
.ai-enquire-btn:hover { background: #D4AF37; color: #000; }
.ai-advisor-note { text-align: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(212,175,55,0.15); }
.ai-advisor-note p { color: #888; font-style: italic; }
.advisor-icon { color: #D4AF37; font-size: 1.2rem; display: block; margin-bottom: 16px; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  #ai-results { padding: 60px 20px; }
  .ai-cards-grid { grid-template-columns: 1fr; }
}

/* ═══ WEALTH DNA PROFILER ═══ */
.wealth-dna-section {
  background: #050505;
  padding: 100px 40px;
  text-align: center;
  border-top: 1px solid rgba(212,175,55,0.2);
}
.dna-label { color: #D4AF37; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 20px; }
.wealth-dna-section h2 { color: #fff; font-size: 2.5rem; font-family: serif; margin-bottom: 12px; }
.wealth-dna-section p { color: #888; margin-bottom: 40px; }
.dna-start-btn { background: transparent; border: 1px solid #D4AF37; color: #D4AF37; padding: 16px 48px; font-size: 0.9rem; letter-spacing: 0.2em; cursor: pointer; transition: all 0.3s; }
.dna-start-btn:hover { background: #D4AF37; color: #000; }
#dna-quiz-container { max-width: 700px; margin: 0 auto; }
.dna-progress { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 40px; }
.dna-progress-bar { height: 1px; background: #D4AF37; transition: width 0.4s ease; }
.dna-question-counter { color: #555; font-size: 11px; letter-spacing: 0.2em; margin-bottom: 20px; }
.dna-question { color: #fff; font-size: 1.6rem; font-family: serif; margin-bottom: 40px; line-height: 1.4; }
.dna-options { display: flex; flex-direction: column; gap: 12px; }
.dna-option { background: rgba(255,255,255,0.02); border: 1px solid rgba(212,175,55,0.15); color: #ccc; padding: 20px 24px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; font-size: 0.95rem; }
.dna-option:hover { border-color: #D4AF37; color: #fff; background: rgba(212,175,55,0.05); }
.dna-option:hover .dna-option-arrow { color: #D4AF37; transform: translateX(4px); }
.dna-option-arrow { transition: transform 0.3s; color: #555; }
.dna-result { padding: 60px 20px; }
.dna-result-icon { font-size: 4rem; display: block; margin-bottom: 20px; }
.dna-result-label { color: #D4AF37; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 16px; }
.dna-result-title { font-size: 2.5rem; font-family: serif; margin-bottom: 20px; }
.dna-result-description { color: #999; font-size: 1.05rem; line-height: 1.8; max-width: 500px; margin: 0 auto 40px; font-style: italic; }
.dna-discover-btn { background: linear-gradient(135deg, #D4AF37, #F5C842); color: #000; border: none; padding: 16px 48px; font-size: 0.9rem; letter-spacing: 0.15em; cursor: pointer; margin-right: 16px; }
.dna-restart-btn { background: transparent; border: 1px solid #555; color: #888; padding: 16px 32px; font-size: 0.85rem; cursor: pointer; }
.dna-restart-btn:hover { border-color: #888; color: #ccc; }
@media (max-width: 768px) {
  .wealth-dna-section { padding: 60px 20px; }
  .dna-question { font-size: 1.3rem; }
  .dna-discover-btn, .dna-restart-btn { display: block; width: 100%; margin: 8px 0; }
}

/* ── PAGE ENTRANCE ANIMATIONS ─────────────────── */
.discovery-engine-section,
.wealth-dna-section,
.private-access-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.discovery-engine-section.visible,
.wealth-dna-section.visible,
.private-access-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MANDATE CARDS ────────────────────────────── */
.mandate-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.mandate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mandate-card:hover::before { opacity: 1; }
.mandate-card:hover {
  border-color: rgba(212,175,55,0.5) !important;
  box-shadow: 0 0 40px rgba(212,175,55,0.12), 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(-6px);
}
.mandate-card.selected {
  border-color: #D4AF37 !important;
  box-shadow: 0 0 50px rgba(212,175,55,0.2);
  background: rgba(212,175,55,0.04) !important;
}
.mandate-card.selected::after {
  content: '\2713';
  position: absolute;
  top: 14px;
  right: 14px;
  color: #D4AF37;
  font-size: 13px;
  font-weight: bold;
}

/* ── CITY CARDS ───────────────────────────────── */
.city-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.city-card img {
  transition: transform 0.6s ease;
}
.city-card:hover img { transform: scale(1.08); }
.city-card:hover {
  border-color: rgba(212,175,55,0.6) !important;
  box-shadow: 0 0 30px rgba(212,175,55,0.15);
  transform: translateY(-4px);
}
.city-card.selected {
  border-color: #D4AF37 !important;
  box-shadow: 0 0 40px rgba(212,175,55,0.2);
}
.city-card.selected::after {
  content: '\2713';
  position: absolute;
  top: 10px;
  right: 10px;
  color: #D4AF37;
  background: rgba(0,0,0,0.7);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ── FILTER PILLS ─────────────────────────────── */
.filter-pill {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.filter-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.filter-pill:hover::after { opacity: 1; }
.filter-pill:hover {
  border-color: rgba(212,175,55,0.6) !important;
  color: #fff !important;
  transform: translateY(-2px);
}
.filter-pill.selected {
  background: #D4AF37 !important;
  color: #000 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

/* ── CTA BUTTONS ──────────────────────────────── */
.discovery-cta,
.discovery-cta-final,
#begin-discovery-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.discovery-cta::before,
.discovery-cta-final::before,
#begin-discovery-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.discovery-cta:hover::before,
.discovery-cta-final:hover::before,
#begin-discovery-btn:hover::before { left: 100%; }
.discovery-cta:hover,
.discovery-cta-final:hover,
#begin-discovery-btn:hover {
  box-shadow: 0 8px 30px rgba(212,175,55,0.35);
  transform: translateY(-2px);
}

/* ── DNA QUIZ OPTIONS ─────────────────────────── */
.dna-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dna-option:hover {
  transform: translateX(8px);
  border-color: #D4AF37 !important;
  color: #fff !important;
  background: rgba(212,175,55,0.04) !important;
}
.dna-option:hover .dna-option-arrow {
  color: #D4AF37;
  transform: translateX(6px);
}

/* ── AI RESULT CARDS ──────────────────────────── */
.ai-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.ai-card:hover::before { opacity: 1; }

/* ── STEP TRANSITIONS ─────────────────────────── */
#discoveryStep2,
#discoveryStep3,
#ai-results {
  animation: stepReveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes stepReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── GOLD PARTICLE BACKGROUND ─────────────────── */
.discovery-engine-section {
  position: relative;
}
.discovery-engine-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(212,175,55,0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── GLOBE CONTAINER ──────────────────────────── */
#globe-container {
  cursor: grab;
  transition: opacity 0.5s ease;
}
#globe-container:active { cursor: grabbing; }
#globe-container canvas {
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(212,175,55,0.08), 0 0 200px rgba(0,0,0,0.5);
}

/* ── LOCATION SELECTED PANEL ──────────────────── */
#location-selected-panel {
  animation: fadeInUp 0.5s ease forwards;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.04);
  padding: 24px 40px;
  text-align: center;
  margin-top: 30px;
}

/* ── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }

/* ══════════════════════════════════════════════
   MOBILE OPTIMIZATION — max-width: 768px
══════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── DISCOVERY ENGINE ───────────────────── */
  .discovery-engine-section {
    padding: 60px 20px;
  }
  .discovery-engine-section h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  /* ── MANDATE CARDS ──────────────────────── */
  .mandate-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mandate-card {
    padding: 20px 16px;
  }
  .mandate-card:last-child {
    grid-column: 1 / -1;
  }

  /* ── BEGIN DISCOVERY BUTTON ─────────────── */
  #begin-discovery-btn,
  .discovery-cta {
    width: 100%;
    padding: 18px 24px;
    font-size: 0.9rem;
  }

  /* ── STEP HEADERS ───────────────────────── */
  .step-header {
    padding: 40px 20px 30px;
    text-align: center;
  }
  .step-header h3 {
    font-size: 1.8rem;
  }
  .step-number {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* ── GLOBE ──────────────────────────────── */
  #globe-container {
    height: 320px !important;
  }
  #globe-container canvas {
    box-shadow: 0 0 40px rgba(212,175,55,0.06);
  }

  /* ── LOCATION SELECTED PANEL ────────────── */
  #location-selected-panel {
    padding: 20px;
    margin: 20px 16px 0;
  }
  #location-selected-panel h4 {
    font-size: 1.6rem;
  }
  #location-selected-panel button {
    width: 100%;
    padding: 16px;
  }

  /* ── CITY CARDS FALLBACK ────────────────── */
  .globe-locations-list {
    padding: 20px 16px;
  }
  .location-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .location-pill {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  /* ── STEP 3 FILTERS ─────────────────────── */
  #discoveryStep3 {
    padding: 40px 20px;
  }
  .filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .filter-group h4 {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  .filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-pill {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-height: 44px;
  }
  .discovery-cta-final {
    width: 100%;
    padding: 18px 24px;
    font-size: 0.9rem;
    margin-top: 32px;
  }

  /* ── AI RESULTS ─────────────────────────── */
  #ai-results {
    padding: 60px 20px;
  }
  .ai-introduction {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  .ai-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ai-card {
    padding: 24px 20px;
  }
  .ai-asset-name {
    font-size: 1.2rem;
  }
  .ai-card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .ai-enquire-btn {
    width: 100%;
    padding: 14px;
    text-align: center;
    min-height: 44px;
  }
  .ai-advisor-note {
    margin-top: 40px;
    padding: 30px 0 0;
  }

  /* ── WEALTH DNA QUIZ ────────────────────── */
  .wealth-dna-section {
    padding: 60px 20px;
  }
  .wealth-dna-section h2 {
    font-size: 1.8rem;
  }
  #dna-quiz-container {
    padding: 0 4px;
  }
  .dna-question {
    font-size: 1.2rem;
    margin-bottom: 28px;
  }
  .dna-option {
    padding: 16px 20px;
    min-height: 56px;
  }
  .dna-option-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .dna-result-title {
    font-size: 1.8rem;
  }
  .dna-discover-btn,
  .dna-restart-btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 16px;
    min-height: 52px;
  }
  .dna-start-btn {
    width: 100%;
    padding: 18px;
    min-height: 52px;
  }

  /* ── PRIVATE ACCESS SECTION ─────────────── */
  .private-access-section {
    padding: 60px 20px;
  }
  .private-access-section h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .access-list {
    text-align: left;
    padding: 0 8px;
  }
  .access-list li {
    font-size: 0.9rem;
    padding: 6px 0;
  }
  .request-access-btn {
    width: 100%;
    padding: 18px 24px;
    min-height: 52px;
  }

}

/* ── TABLET ─────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

  .mandate-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mandate-card:nth-child(4),
  .mandate-card:nth-child(5) {
    grid-column: span 1;
  }

  .ai-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  #globe-container {
    height: 400px !important;
  }

  .filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

}

/* ── SMALL PHONES ───────────────────────────── */
@media (max-width: 390px) {

  .mandate-cards-grid {
    grid-template-columns: 1fr;
  }
  .mandate-card:last-child {
    grid-column: auto;
  }
  .discovery-engine-section h2 {
    font-size: 1.6rem;
  }
  .dna-question {
    font-size: 1.1rem;
  }
  #globe-container {
    height: 280px !important;
  }

}

/* ── GLOBE FALLBACK ─────────────────────────── */
.globe-locations-list { display: none; }
.globe-fallback-active .globe-locations-list { display: block; }

/* ── DISCOVERY ENTRY WRAPPER ───────────────── */
#discovery-entry {
  display: flex;
  flex-direction: column;
}
.entry-point {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.entry-point.dimmed {
  opacity: 0.15;
  pointer-events: none;
  transform: scale(0.98);
}
.entry-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  background: #0A0A0A;
}
.entry-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}
.entry-divider-text {
  color: rgba(212,175,55,0.5);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── START OVER ────────────────────────────── */
.start-over {
  text-align: center;
  margin-top: 40px;
}
.start-over-btn {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.3);
  color: rgba(212,175,55,0.6);
  padding: 12px 32px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
}
.start-over-btn:hover {
  border-color: #D4AF37;
  color: #D4AF37;
}

@media (max-width: 768px) {
  .entry-divider { padding: 16px 20px; }
}

/* ── ENTRY SPACING FIX ─────────────────────── */
#entry-quiz { padding-bottom: 40px; }
#entry-discovery { padding-top: 40px; }
.entry-divider { padding: 0 40px; margin: 0; }
.wealth-dna-section { padding-bottom: 40px !important; }
.discovery-engine-section { padding-top: 40px !important; }

/* ── MANDATE CARD COLOR FIX ────────────────── */
.mandate-card {
  background: #111111 !important;
  border: 1px solid rgba(212,175,55,0.2) !important;
}
.mandate-card:hover {
  background: rgba(212,175,55,0.04) !important;
  border-color: rgba(212,175,55,0.5) !important;
}
.mandate-card.selected {
  background: rgba(212,175,55,0.05) !important;
  border-color: #D4AF37 !important;
}

/* ── WHITE BAND FIX ────────────────────────── */
#discovery-entry,
#entry-quiz,
#entry-discovery,
.entry-point {
  background: #0A0A0A !important;
}
.entry-divider {
  background: #0A0A0A !important;
  border: none !important;
  padding: 16px 40px;
  margin: 0;
}
.entry-divider-line {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.25), transparent) !important;
  border: none !important;
  height: 1px;
  flex: 1;
}


/* ═══ DISCOVERY CTA BANNER (estates page) ═══ */
.discovery-cta-banner {
  background: #0A0A0A;
  border: 1px solid rgba(212,175,55,0.2);
  padding: 64px 40px;
  text-align: center;
  max-width: 860px;
  margin: 60px auto;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.discovery-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,.06) 0%, transparent 65%);
  pointer-events: none;
}
.discovery-cta-banner .banner-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-weight: 700;
  color: #D4AF37;
  margin-bottom: 20px;
}
.discovery-cta-banner h3 {
  font-family: 'Georgia', 'Garamond', serif;
  font-size: clamp(24px, 3.5vw, 44px);
  color: #fff;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.15;
}
.discovery-cta-banner p {
  color: rgba(212,175,55,.6);
  font-size: 14px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 36px;
}
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #D4AF37, #F5C842);
  color: #050709;
  padding: 16px 52px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212,175,55,.25);
}
.banner-btn:hover {
  box-shadow: 0 8px 32px rgba(212,175,55,0.4);
  transform: translateY(-2px);
  color: #050709;
}
@media (max-width: 640px) {
  .discovery-cta-banner { padding: 44px 24px; margin: 40px 16px; }
  .banner-btn { padding: 14px 36px; }
}
