/* ===== RARE FIND — DESIGN SYSTEM (LIGHT/WARM EDITION) ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Backgrounds */
  --white: #ffffff;
  --off-white: #faf8f5;
  --warm-50: #fdf9f3;
  --warm-100: #f5ede0;
  --warm-200: #ecdcc8;
  --surface: #ffffff;
  --surface-2: #f7f3ee;

  /* Text */
  --ink: #1a1209;
  --ink-soft: #3d3020;
  --muted: #7a6a55;
  --muted-light: #a8967e;

  /* Accents */
  --gold: #b8860b;
  --gold-light: #d4a017;
  --gold-bright: #f0c040;
  --gold-bg: rgba(184,134,11,0.08);
  --amber: #c67c1a;
  --rust: #b5451b;
  --jade: #2d7a4f;
  --jade-light: #3da066;
  --jade-bg: rgba(45,122,79,0.08);
  --earth: #6b4c2a;
  --river: #2563a8;
  --river-light: #3b82c4;
  --sky: #e8f4fd;

  /* Borders */
  --border: rgba(26,18,9,0.1);
  --border-gold: rgba(184,134,11,0.25);
  --border-strong: rgba(26,18,9,0.18);

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Gradients */
  --gradient-warm: linear-gradient(135deg, #fdf9f3 0%, #f5ede0 100%);
  --gradient-earth: linear-gradient(135deg, #3d2b1a 0%, #6b4c2a 50%, #2d7a4f 100%);
  --gradient-river: linear-gradient(180deg, #1a3a5c 0%, #2563a8 40%, #3da066 100%);
  --gradient-hero: linear-gradient(160deg, #0d2137 0%, #1a3a5c 30%, #2d5a3a 70%, #1a2e1a 100%);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26,18,9,0.08);
  --shadow-md: 0 4px 16px rgba(26,18,9,0.1);
  --shadow-lg: 0 8px 32px rgba(26,18,9,0.12);
  --shadow-gold: 0 4px 20px rgba(184,134,11,0.2);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 50px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--white); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255,255,255,0.0);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
}
.nav.dark {
  background: transparent;
}
.nav.dark .nav-links a { color: rgba(255,255,255,0.85); }
.nav.dark .nav-logo { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.nav.dark.scrolled .nav-links a { color: var(--ink-soft); }
.nav.dark.scrolled .nav-logo { background: var(--gradient-earth); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  background: var(--gradient-earth);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--ink); font-size: 1.4rem; }
.nav.dark .nav-burger { color: #fff; }
.nav.dark.scrolled .nav-burger { color: var(--ink); }

.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(255,255,255,0.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.nav-overlay.open { display: flex; }
.nav-overlay a { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); }
.nav-overlay a:hover { color: var(--gold); }
.nav-overlay-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--ink); font-size: 1.8rem; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-jade { background: var(--jade); color: #fff; }
.btn-jade:hover { background: var(--jade-light); transform: translateY(-1px); }
.btn-river { background: var(--river); color: #fff; }
.btn-river:hover { background: var(--river-light); transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.78rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-gold); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.section-label::before, .section-label::after { content: ''; height: 1px; width: 32px; background: var(--gold); opacity: 0.4; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 700; line-height: 1.2; color: var(--ink); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 540px; margin-top: 0.75rem; }
.section-warm { background: var(--warm-50); }
.section-earth { background: var(--warm-100); }

/* ===== HERO (DARK MAP STYLE) ===== */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: var(--gradient-hero);
  padding-top: 68px;
}
.hero-map-bg {
  position: absolute; inset: 0; opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 460' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M115 108 Q155 88 200 98 Q240 108 258 140 Q268 170 250 205 Q230 240 195 248 Q158 255 132 232 Q105 205 108 168 Q110 130 115 108Z' fill='%23ffffff'/%3E%3Cpath d='M195 270 Q220 255 248 263 Q270 275 272 308 Q274 345 256 372 Q238 392 215 390 Q192 388 180 362 Q165 330 170 295 Q176 272 195 270Z' fill='%23ffffff'/%3E%3Cpath d='M408 98 Q440 82 465 92 Q485 102 488 122 Q488 142 470 155 Q450 165 428 158 Q408 148 405 128 Q402 108 408 98Z' fill='%23ffffff'/%3E%3Cpath d='M428 185 Q455 168 484 178 Q510 192 515 228 Q518 268 500 298 Q480 325 455 328 Q428 326 413 298 Q395 265 400 228 Q405 198 428 185Z' fill='%23ffffff'/%3E%3Cpath d='M492 88 Q565 65 645 80 Q708 95 728 125 Q740 155 720 185 Q695 215 645 220 Q585 225 535 205 Q492 185 480 155 Q468 120 492 88Z' fill='%23ffffff'/%3E%3Cpath d='M680 275 Q695 255 720 252 Q748 250 768 262 Q788 275 792 298 Q795 322 780 340 Q762 358 738 360 Q710 360 695 343 Q675 322 673 300 Q671 285 680 275Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}
.hero-map-dots { position: absolute; inset: 0; pointer-events: none; }
.hero-dot {
  position: absolute; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 12px var(--gold-bright);
  animation: heroPulse 2.5s ease-in-out infinite;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto; padding: 4rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 0.35rem 1rem; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; letter-spacing: 0.06em; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,4rem); font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 1.25rem; }
.hero-title span { color: var(--gold-bright); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat-val { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold-bright); }
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); }

/* Hero world map panel */
.hero-map-panel {
  position: relative; height: 380px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; overflow: hidden; backdrop-filter: blur(8px);
}
.hero-map-panel svg { width: 100%; height: 100%; }
.map-region { fill: rgba(255,255,255,0.12); stroke: rgba(255,255,255,0.25); stroke-width: 1; transition: fill 0.2s; cursor: pointer; }
.map-region:hover { fill: rgba(240,192,64,0.3); stroke: var(--gold-bright); }
.map-pin { position: absolute; transform: translate(-50%,-50%); cursor: pointer; }
.map-pin-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 3px rgba(240,192,64,0.3); animation: heroPulse 2s ease-in-out infinite; }
.map-pin-label { position: absolute; left: 14px; top: -6px; background: rgba(13,33,55,0.95); border: 1px solid rgba(240,192,64,0.3); border-radius: 6px; padding: 0.2rem 0.55rem; font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap; display: none; }
.map-pin:hover .map-pin-label { display: block; }

/* ===== REGION CARDS ===== */
.region-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.region-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; cursor: pointer;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.region-card::before { content: ''; position: absolute; inset: 0; background: var(--gold-bg); opacity: 0; transition: opacity 0.2s; }
.region-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.region-card:hover::before { opacity: 1; }
.region-card.active { border-color: var(--gold); background: var(--warm-50); }
.region-flag { display: none; } /* replaced by .region-dot */
.region-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.15rem; }
.region-country { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.5rem; }
.region-finds { font-size: 0.72rem; color: var(--jade); font-weight: 600; }
.region-members { font-size: 0.72rem; color: var(--muted-light); }

/* ===== SVG ICON SYSTEM ===== */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }
.icon-wrap { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--warm-100); border: 1px solid var(--border); color: var(--ink-soft); flex-shrink: 0; }
.icon-wrap-gold { background: rgba(184,134,11,0.08); border-color: rgba(184,134,11,0.18); color: var(--gold); }
.icon-wrap-jade { background: rgba(45,122,79,0.08); border-color: rgba(45,122,79,0.18); color: var(--jade); }
.icon-wrap-river { background: rgba(37,99,168,0.08); border-color: rgba(37,99,168,0.18); color: var(--river); }

/* Nav SVG controls */
.nav-logo-mark { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-logo-mark svg { color: var(--gold); flex-shrink: 0; }
.nav.dark .nav-logo-mark svg { color: var(--gold-bright); }
.nav.dark.scrolled .nav-logo-mark svg { color: var(--gold); }
.nav-burger-btn { display: none; background: none; border: none; cursor: pointer; color: inherit; padding: 0.25rem; line-height: 0; }
.nav.dark .nav-burger-btn { color: rgba(255,255,255,0.9); }
.nav.dark.scrolled .nav-burger-btn { color: var(--ink); }
.nav-overlay-close-btn { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--ink); cursor: pointer; padding: 0.25rem; line-height: 0; }

/* Region activity dot */
.region-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 0.75rem; flex-shrink: 0; }
.region-dot.hot { background: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.18); }
.region-dot.active { background: var(--jade); box-shadow: 0 0 0 3px rgba(45,122,79,0.18); }
.region-dot.quiet { background: var(--river-light); box-shadow: 0 0 0 3px rgba(37,99,168,0.15); }

/* Mineral color swatch for listings */
.listing-swatch { height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; position: relative; overflow: hidden; }
.listing-swatch-dot { width: 52px; height: 52px; border-radius: 50%; opacity: 0.9; }
.listing-swatch-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.feature-card { padding: 1.75rem; background: var(--white); }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--gold); }
.feature-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.feature-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ===== LISTINGS ===== */
.listings-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-top: 2.5rem; }
.listing-card { overflow: hidden; }
.listing-thumb { height: 140px; background: var(--warm-100); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
/* New swatch style replaces emoji thumb */
.listing-body { padding: 0.9rem 1rem; }
.listing-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem; color: var(--ink); }
.listing-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.55rem; }
.listing-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.listing-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: var(--radius-pill); background: var(--gold-bg); border: 1px solid var(--border-gold); color: var(--gold); margin-bottom: 0.5rem; }

/* ===== PILLS ===== */
.pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); }
.pill-gold { background: var(--gold-bg); border: 1px solid var(--border-gold); color: var(--gold); }
.pill-jade { background: var(--jade-bg); border: 1px solid rgba(45,122,79,0.25); color: var(--jade); }
.pill-river { background: rgba(37,99,168,0.08); border: 1px solid rgba(37,99,168,0.2); color: var(--river); }
.pill-muted { background: rgba(26,18,9,0.06); border: 1px solid var(--border); color: var(--muted); }

/* ===== TABS ===== */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { padding: 0.75rem 1.25rem; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-family: var(--font-body); font-size: 0.87rem; font-weight: 500; color: var(--muted); transition: all 0.2s; white-space: nowrap; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== INPUTS ===== */
.input { width: 100%; padding: 0.7rem 1rem; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-body); font-size: 0.88rem; transition: border-color 0.2s; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.1); }
.input::placeholder { color: var(--muted-light); }
select.input { cursor: pointer; }

/* ===== CAMERA / UPLOAD ===== */
.upload-zone { border: 2px dashed var(--border-gold); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--warm-50); }
.upload-zone:hover { border-color: var(--gold); background: var(--warm-100); }
.camera-preview { width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; position: relative; }
.camera-preview video { width: 100%; display: block; }
.camera-btn { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 4px solid rgba(255,255,255,0.5); cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.4); transition: transform 0.1s; }
.camera-btn:hover { transform: translateX(-50%) scale(1.05); }
.camera-btn::after { content: ''; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.confidence-bar { height: 8px; background: var(--warm-100); border-radius: 4px; overflow: hidden; margin: 0.5rem 0; }
.confidence-fill { height: 100%; background: linear-gradient(90deg, var(--jade), var(--gold)); border-radius: 4px; }

/* ===== WORLD MAP (FULL) ===== */
.world-map-container { position: relative; background: var(--gradient-river); border-radius: 20px; overflow: hidden; }
.map-dot { position: absolute; border-radius: 50%; cursor: pointer; transition: transform 0.2s; }
.map-dot:hover { transform: scale(1.6); }
.map-dot.hot { background: var(--gold-bright); box-shadow: 0 0 12px rgba(240,192,64,0.8); animation: heroPulse 2s ease-in-out infinite; }
.map-dot.medium { background: var(--jade-light); box-shadow: 0 0 8px rgba(61,160,102,0.6); animation: heroPulse 2.5s ease-in-out infinite; }
.map-dot.quiet { background: var(--river-light); box-shadow: 0 0 6px rgba(59,130,196,0.5); }

/* ===== COMMUNITY ID OPTIONS ===== */
.id-option { border: 2px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; cursor: pointer; transition: all 0.2s; display: flex; gap: 1rem; align-items: flex-start; }
.id-option:hover { border-color: var(--gold); background: var(--warm-50); }
.id-option.selected { border-color: var(--gold); background: var(--warm-50); }
.id-option-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--warm-100); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.id-option-title { font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.2rem; }
.id-option-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ===== PROVENANCE TIMELINE ===== */
.provenance-timeline { display: flex; flex-direction: column; }
.prov-item { display: flex; gap: 0.75rem; padding-bottom: 1rem; }
.prov-line { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.prov-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.prov-connector { width: 1px; flex: 1; background: var(--border-gold); }
.prov-label { font-size: 0.72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.prov-detail { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(26,18,9,0.5); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 2rem; box-shadow: var(--shadow-lg); }
.modal-close { float: right; background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }

/* ===== FOOTER ===== */
/* ── Ad placements ── */
.ad-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.6rem;
  vertical-align: middle;
}
.ad-supplier-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--warm-50);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ad-supplier-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
.ad-supplier-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.ad-supplier-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.ad-supplier-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  transition: background 0.15s, color 0.15s;
  align-self: flex-start;
}
.ad-supplier-cta:hover { background: var(--gold-dark); color: #fff; }
.ad-banner {
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #1a2820 0%, #0d1a14 100%);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.ad-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.ad-banner-body { flex: 1; }
.ad-banner-name { font-weight: 700; font-size: 0.95rem; color: #fff; margin-bottom: 0.2rem; }
.ad-banner-desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.45; }
.ad-banner-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ad-banner-cta:hover { background: rgba(201,168,76,0.15); }
.ad-gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.ad-gear-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  background: var(--white);
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.ad-gear-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.ad-gear-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--warm-50);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}
.ad-gear-name { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.ad-gear-sub { font-size: 0.72rem; color: var(--muted); }
.ad-forum-post {
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, rgba(255,255,255,0) 100%);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ad-forum-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.ad-forum-body { flex: 1; }
.ad-forum-name { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.ad-forum-text { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.5; }
.ad-forum-link { font-size: 0.75rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; margin-top: 0.4rem; display: inline-block; }
@media (max-width: 768px) {
  .ad-gear-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .ad-gear-grid { grid-template-columns: 1fr; }
}

.footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 4rem 1.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 3rem; max-width: 1140px; margin: 0 auto; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold-bright); margin-bottom: 0.65rem; }
.footer-brand-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.6; max-width: 260px; }
.footer-heading { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom { max-width: 1140px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s; }
.social-links a:hover { border-color: var(--gold-bright); transform: translateY(-2px); }

/* ===== CREDITS TABLE ===== */
.credits-table { width: 100%; border-collapse: collapse; }
.credits-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--border); }
.credits-table td { padding: 0.75rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.87rem; }
.credits-table tr:last-child td { border-bottom: none; }
.credit-val { font-weight: 700; color: var(--jade); }
.credit-val.spend { color: var(--rust); }

/* ===== ANIMATIONS ===== */
@keyframes heroPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes gemFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-12px); } }

.fade-up { opacity:0; transform:translateY(28px); transition:opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ===== DIVIDERS ===== */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.divider-warm { height: 1px; background: var(--warm-200); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header { background: var(--warm-50); border-bottom: 1px solid var(--border); padding: 5.5rem 1.5rem 2.5rem; }
.page-header-inner { max-width: 1140px; margin: 0 auto; }
.breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.page-title { font-family: var(--font-display); font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.page-sub { color: var(--muted); font-size: 1rem; max-width: 600px; line-height: 1.65; }
.page-main { max-width: 1400px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* ===== IDENTIFY PAGE LAYOUT ===== */
.identify-layout { display: grid; grid-template-columns: 480px 1fr; gap: 2rem; align-items: start; max-width: 1140px; margin: 0 auto; }
.identify-panel { display: flex; flex-direction: column; gap: 1rem; }

/* Step cards */
.id-step-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.id-step-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.id-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.id-step-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.15rem; }
.id-step-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.id-optional-badge { font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: var(--radius-pill); background: var(--jade-bg); color: var(--jade); border: 1px solid rgba(45,122,79,0.2); white-space: nowrap; }

/* Photo option buttons */
.photo-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.5rem; margin-bottom: 1rem; }
.photo-opt-btn { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.75rem 0.5rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--warm-50); cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.photo-opt-btn:hover { border-color: var(--gold); background: var(--warm-100); transform: translateY(-1px); }
.photo-opt-icon { font-size: 1.4rem; }
.photo-opt-label { font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); }

/* Camera viewfinder */
.camera-panel { border-radius: var(--radius); overflow: hidden; background: #000; }
.camera-preview-wrap { position: relative; }
.camera-preview { width: 100%; display: block; max-height: 280px; object-fit: cover; }
.camera-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.camera-frame { width: 180px; height: 180px; border: 2px solid rgba(255,255,255,0.6); border-radius: 12px; box-shadow: 0 0 0 2000px rgba(0,0,0,0.3); }
.camera-controls { display: flex; gap: 0.75rem; padding: 0.75rem; background: #111; justify-content: center; }
.camera-btn { padding: 0.55rem 1.25rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.camera-btn.primary { background: var(--gold); color: #fff; }
.camera-btn.primary:hover { background: var(--gold-light); }
.camera-btn.secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.camera-btn.secondary:hover { background: rgba(255,255,255,0.25); }

/* Photo preview */
.photo-preview-panel { border-radius: var(--radius); overflow: hidden; }
.photo-preview-img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.photo-preview-actions { display: flex; gap: 0.5rem; padding: 0.75rem; background: var(--warm-50); border-top: 1px solid var(--border); }

/* Upload zone */
.upload-zone { border: 2px dashed var(--border-gold); border-radius: var(--radius); padding: 2rem; text-align: center; background: var(--warm-50); transition: all 0.2s; }
.upload-zone.dragover { border-color: var(--gold); background: var(--warm-100); }
.upload-zone-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.upload-zone-text { font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.2rem; }
.upload-zone-sub { font-size: 0.78rem; color: var(--muted); }

/* Selects & textareas */
.id-select { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.88rem; color: var(--ink); background: var(--white); transition: border-color 0.2s; }
.id-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.1); }
.id-textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.88rem; color: var(--ink); resize: vertical; background: var(--white); transition: border-color 0.2s; }
.id-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.1); }

/* Method radio options */
.id-method-group { display: flex; flex-direction: column; gap: 0.6rem; }
.id-method-opt { display: block; cursor: pointer; }
.id-method-opt input { display: none; }
.id-method-body { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); transition: all 0.2s; background: var(--white); }
.id-method-opt:hover .id-method-body { border-color: var(--gold); background: var(--warm-50); }
.id-method-opt input:checked + .id-method-body { border-color: var(--gold); background: var(--warm-50); box-shadow: 0 0 0 3px rgba(184,134,11,0.08); }
.id-method-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.id-method-title { font-weight: 700; font-size: 0.88rem; color: var(--ink); margin-bottom: 0.15rem; }
.id-method-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.btn-full { width: 100%; justify-content: center; }

/* Results panel */
.results-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-height: 400px; position: sticky; top: 88px; overflow: hidden; }
.results-empty { padding: 3rem 2rem; text-align: center; }
.results-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 2rem; text-align: center; gap: 1rem; }
.loading-spinner { width: 48px; height: 48px; border: 3px solid var(--warm-200); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
.tip-row { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }

/* AI Result */
.ai-result { padding: 1.5rem; }
.result-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.result-gem-icon { font-size: 2.5rem; flex-shrink: 0; }
.result-header-text { flex: 1; }
.result-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.result-sub { font-size: 0.82rem; color: var(--muted); }
.result-confidence-wrap { text-align: right; min-width: 90px; }
.result-confidence-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.2rem; }
.result-confidence-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--jade); }
.result-confidence-bar { height: 6px; background: var(--warm-200); border-radius: 3px; overflow: hidden; margin-top: 0.3rem; }
.result-confidence-fill { height: 100%; background: linear-gradient(90deg,var(--jade),var(--gold)); border-radius: 3px; }
.result-value-bar { display: flex; justify-content: space-between; align-items: center; background: var(--warm-50); border: 1px solid var(--border-gold); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.result-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.result-tabs::-webkit-scrollbar { display: none; }
.result-tab-btn { padding: 0.6rem 1rem; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-size: 0.82rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: all 0.2s; }
.result-tab-btn:hover { color: var(--ink); }
.result-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 700; }
.result-tab-content { margin-bottom: 1.25rem; }
.result-row { display: flex; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.result-row:last-child { border-bottom: none; }
.result-key { color: var(--muted); min-width: 140px; flex-shrink: 0; font-size: 0.8rem; }
.result-val { color: var(--ink); font-weight: 500; flex: 1; }
.result-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1rem; }

/* Community thread */
.community-thread-section { background: var(--warm-50); border-radius: var(--radius-sm); padding: 1.25rem; margin-top: 1.25rem; border: 1px solid var(--border); }
.community-thread-header { margin-bottom: 1rem; }
.community-thread-title { font-weight: 700; color: var(--ink); font-size: 0.92rem; margin-bottom: 0.2rem; }
.community-thread-sub { font-size: 0.78rem; color: var(--muted); }
.community-post { display: flex; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.community-post:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.post-body { flex: 1; }
.post-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.3rem; }
.post-author { font-weight: 700; color: var(--ink-soft); }
.post-text { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 0.4rem; }
.post-actions { display: flex; gap: 0.5rem; }
.post-like, .post-reply { background: none; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.2rem 0.65rem; font-size: 0.72rem; cursor: pointer; color: var(--muted); transition: all 0.15s; }
.post-like:hover { border-color: var(--gold); color: var(--gold); }
.post-reply:hover { border-color: var(--river); color: var(--river); }
.add-reply-box { margin-top: 0.75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .listings-grid { grid-template-columns: repeat(2,1fr); }
  .region-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-map-panel { height: 240px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: repeat(2,1fr); }
  .region-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 3rem 1rem; }
  .hero-map-panel { display: none; }
}
@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
}
