/* CrystalRelics.com — Mystical & Ancient Relic Luxury Design System */

:root {
  --bg-obsidian: #0B0914;
  --bg-deep: #110D1F;
  --bg-card: #1A122B;
  --bg-card-hover: #221738;
  --bg-elevated: #251A3D;
  --gold-primary: #D4AF37;
  --gold-light: #F3D77D;
  --gold-dark: #9A7B1C;
  --gold-border: rgba(212, 175, 55, 0.34);
  --gold-border-strong: rgba(212, 175, 55, 0.72);
  --amethyst-glow: rgba(139, 92, 246, 0.25);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --prime-blue: #38BDF8;
  --success-green: #34D399;
  --warning-amber: #FBBF24;
  --danger-rose: #FB7185;
  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(126, 63, 242, 0.14), transparent 38%),
    radial-gradient(circle at 82% 22%, rgba(212, 175, 55, 0.09), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.10), transparent 45%),
    var(--bg-obsidian);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Top FTC Affiliate Disclosure Gold Bar (Mockup #2) */
.ftc-banner {
  background: linear-gradient(90deg, #8A6B1C 0%, #D4AF37 35%, #F0D57B 50%, #D4AF37 65%, #8A6B1C 100%);
  color: #0B0914;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 0.42rem 1rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.ftc-banner strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ftc-banner button.tag-config-trigger {
  background: rgba(11, 9, 20, 0.88);
  color: var(--gold-light);
  border: 1px solid rgba(11, 9, 20, 0.5);
  border-radius: 999px;
  padding: 0.12rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.6rem;
  cursor: pointer;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 9, 20, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  line-height: 1.15;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: nowrap;
}

.main-nav a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-primary);
  background: rgba(26, 18, 43, 0.92);
  color: var(--gold-light);
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: var(--gold-primary);
  color: #0B0914;
}

.search-bar-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26, 18, 43, 0.9);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  min-width: 185px;
  justify-content: space-between;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar-trigger:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.search-bar-trigger .search-icon-box {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #0B0914;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.75rem;
}

.quiz-btn {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quiz-btn:hover {
  background: var(--gold-primary);
  color: #0B0914;
}

/* Container & Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.75rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0.6rem auto 0;
  font-size: 1rem;
}

/* Homepage Split Hero (Mockup #1) */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-bottom: 1px solid var(--gold-border);
  background:
    radial-gradient(circle at 75% 50%, rgba(155, 81, 224, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(26, 18, 43, 0.65), rgba(11, 9, 20, 0.95));
}

.hero-left {
  padding: 4rem 3rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--gold-border);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.85rem;
  max-width: 540px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #F3D77D 0%, #D4AF37 55%, #AA841E 100%);
  color: #0B0914;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid #F7E39C;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.42);
  color: #0B0914;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(26, 18, 43, 0.75);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-primary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
}

.hero-right {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #08060F;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 510px;
}

/* Ornate Intention Cards Row (Mockup #1) */
.intention-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}

.intention-card {
  position: relative;
  background: radial-gradient(circle at 50% 38%, rgba(139, 92, 246, 0.22), rgba(26, 18, 43, 0.95) 72%);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.intention-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.intention-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(212, 175, 55, 0.22);
}

.intention-circle {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.2), 0 0 16px rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(45, 28, 79, 0.8), #0B0914);
  overflow: hidden;
}

.intention-circle img,
.intention-circle svg {
  width: 82%;
  height: 82%;
  object-fit: cover;
  border-radius: 50%;
}

.intention-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.15rem;
}

.intention-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Amazon Affiliate Product Grid & Cards (Mockups #1, #2, #3) */
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: linear-gradient(180deg, rgba(26, 18, 43, 0.96) 0%, rgba(15, 11, 28, 0.99) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(212, 175, 55, 0.18);
}

.product-thumb {
  position: relative;
  height: 195px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 50%, rgba(126, 63, 242, 0.22), #07050D 78%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  margin-bottom: 0.85rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.star-rating {
  color: #FBBF24;
  font-weight: 700;
}

.prime-badge {
  color: var(--prime-blue);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.product-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
  line-height: 1.38;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.editor-badge {
  font-size: 0.72rem;
  color: var(--gold-light);
  border: 1px solid var(--gold-border-strong);
  background: rgba(212, 175, 55, 0.1);
  padding: 0.16rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
}

.price-tag {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.product-card .btn-gold {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
}

/* Crystal Encyclopedia & Cards */
.crystal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.35rem;
}

.crystal-card {
  background: linear-gradient(180deg, rgba(26, 18, 43, 0.92), rgba(13, 10, 24, 0.98));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.crystal-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

.crystal-card-visual {
  height: 185px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080610;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.crystal-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.crystal-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.crystal-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.crystal-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
}

.crystal-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.crystal-card .crystal-sub {
  font-size: 0.82rem;
  color: var(--gold-primary);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.crystal-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

/* Gemstone Detail Page Layout (Mockup #3 — The Amethyst Grimoire) */
.gemstone-page-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2.25rem;
  padding: 2.5rem 0 4rem;
}

.gemstone-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--gold-border);
}

.gemstone-hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border-strong);
  background: radial-gradient(circle at 50% 50%, var(--crystal-glow, rgba(155, 81, 224, 0.35)), #080610 75%);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.gemstone-hero-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.gemstone-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  color: var(--gold-light);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

/* Quick Relic Specs Table (Mockup #3) */
.relic-specs-box {
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-sm);
  background: rgba(20, 14, 34, 0.92);
  overflow: hidden;
  margin-bottom: 1.15rem;
}

.relic-specs-header {
  text-align: center;
  padding: 0.55rem 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-border);
  background: rgba(212, 175, 55, 0.08);
}

.relic-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

.relic-spec-cell {
  padding: 0.7rem 0.6rem;
  text-align: center;
  border-right: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.relic-spec-cell:last-child {
  border-right: none;
}

.relic-spec-label {
  font-size: 0.74rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 0.25rem;
}

.relic-spec-value {
  font-size: 0.85rem;
  color: #FFFFFF;
  font-weight: 500;
}

.gemstone-two-col {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: start;
}

.lore-block {
  margin-bottom: 1.75rem;
}

.lore-block h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lore-block p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.safety-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.safety-badge {
  font-size: 0.76rem;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
}

.safety-badge.safe {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6EE7B7;
}

.safety-badge.warn {
  background: rgba(251, 113, 133, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #FDA4AF;
}

/* Companion Right Sidebar (Mockups #2 & #3) */
.companion-sidebar {
  background: rgba(18, 13, 31, 0.92);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  position: sticky;
  top: 86px;
  height: fit-content;
}

.sidebar-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 1rem;
}

.pair-card {
  display: block;
  background: rgba(26, 18, 43, 0.9);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
  margin-bottom: 0.9rem;
  transition: all 0.2s ease;
}

.pair-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.pair-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.pair-card span {
  font-weight: 600;
  font-size: 0.92rem;
  color: #FFFFFF;
}

/* Affiliate Roundup Comparison Layout (Mockup #2) */
.roundup-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin: 1.25rem 0 2.25rem;
}

.top3-card {
  background: linear-gradient(180deg, rgba(28, 20, 47, 0.96), rgba(16, 11, 29, 0.98));
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top3-rank-pill {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-primary));
  color: #0B0914;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.top3-card-top {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.top3-card-top img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}

.top3-specs {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.top3-specs div {
  margin-bottom: 0.25rem;
}

.top3-specs span {
  color: var(--text-muted);
}

/* Detailed Editor's Choice Review Box (Mockup #2) */
.review-breakdown-card {
  background: linear-gradient(180deg, rgba(26, 18, 43, 0.96), rgba(14, 10, 25, 0.99));
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  margin-bottom: 1.75rem;
}

.review-header-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.rank-square {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #0B0914;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

.review-body-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.review-body-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
}

.authenticity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--gold-border-strong);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0.9rem 0 1.15rem;
}

.pros-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.85rem;
}

.cons-box {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 8px;
  padding: 0.85rem;
}

.pros-box h4,
.cons-box h4 {
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
  color: #FFFFFF;
}

.pros-box ul,
.cons-box ul {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.pros-box li,
.cons-box li {
  margin-bottom: 0.35rem;
}

.review-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Search & Quiz Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 10, 0.84);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 1.75rem;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.search-input-large {
  width: 100%;
  background: #0B0914;
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: rgba(11, 9, 20, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
}

.search-result-item:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

/* Mobile Sticky Affiliate Bar (Mockup #4) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(15, 11, 28, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-primary);
  padding: 0.75rem 1rem;
}

/* Footer */
.site-footer {
  background: #07050D;
  border-top: 1px solid var(--gold-border);
  padding: 3.5rem 0 2.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--gold-light);
}

/* Responsive Breakpoints */
@media (max-width: 1300px) {
  .header-inner {
    position: relative;
    padding: 0.75rem 1.15rem;
    gap: 0.75rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.mobile-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 9, 20, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gold-primary);
    padding: 1.1rem 1.25rem;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.88);
    z-index: 150;
  }

  .main-nav.mobile-open a {
    padding: 0.72rem 0.95rem;
    background: rgba(26, 18, 43, 0.92);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .main-nav.mobile-open a.active,
  .main-nav.mobile-open a:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-light);
  }

  .main-nav.mobile-open a::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-split,
  .gemstone-page-layout,
  .gemstone-hero,
  .gemstone-two-col,
  .roundup-layout,
  .review-body-grid {
    grid-template-columns: 1fr;
  }
  .intention-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid-4,
  .top3-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }
  .brand-logo {
    font-size: 0.98rem;
    gap: 0.5rem;
  }
  .brand-logo svg {
    width: 32px;
    height: 32px;
  }
  .search-bar-trigger {
    min-width: auto;
    padding: 0.42rem 0.6rem;
    gap: 0.4rem;
  }
  .search-placeholder-text {
    display: none;
  }
  .search-bar-trigger::before {
    content: "Search";
    font-size: 0.8rem;
    color: var(--text-secondary);
  }
  .quiz-btn {
    padding: 0.44rem 0.65rem;
    font-size: 0.78rem;
  }
  .quiz-btn-label {
    display: none;
  }
  .quiz-btn::after {
    content: "Quiz";
  }
  .main-nav.mobile-open {
    grid-template-columns: 1fr;
    padding: 0.9rem 1rem;
  }
  .tool-result-grid {
    grid-template-columns: 1fr !important;
  }
  .intention-grid,
  .product-grid-4,
  .product-grid-3,
  .top3-grid,
  .pros-cons-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .relic-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-sticky-bar {
    display: block;
  }
  body {
    padding-bottom: 78px;
  }
}


.encyclopedia-filter-bar { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto; }
.encyclopedia-filter-bar > * { min-width:0;max-width:100%; }
@media(max-width:900px){.encyclopedia-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.encyclopedia-filter-bar{grid-template-columns:minmax(0,1fr);}}

/* Disclosures belong with affiliate recommendations, not above the page hero. */
.affiliate-disclosure { color:var(--text-secondary);font-size:0.85rem;line-height:1.5;margin:0 0 1rem; }
.affiliate-disclosure a { color:var(--gold-light);text-decoration:underline;text-underline-offset:2px; }
.affiliate-disclosure-compact { font-size:0.75rem;margin-bottom:0.45rem; }
@media(max-width:680px){body.has-mobile-affiliate{padding-bottom:180px;}}
