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

:root {
  --bg-color-main: #05140b;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0d2616, #05140b 85%);
  --gold-primary: #c5a880;
  --gold-glow: #ebdcc5;
  --gold-dark: #8e734c;
  --ink-dark: #2a2012;
  --text-main: #ebdcc5;
  --text-muted: #96ac9f;
  --card-bg: rgba(12, 38, 22, 0.45);
  --card-border: rgba(197, 168, 128, 0.18);
  --font-serif-header: 'Cinzel', Georgia, serif;
  --font-serif-body: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

html {
  background-color: var(--bg-color-main);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color-main);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

body {
  min-height: 100vh;
  background-color: var(--bg-color-main);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-serif-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background botanical watermark glow */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(197, 168, 128, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(13, 38, 22, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.page {
  width: 100%;
  max-width: 480px;
  padding: 52px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  padding: 48px 24px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background: linear-gradient(to bottom, rgba(5, 20, 11, 0.7), #05140b), url('banner.webp') no-repeat center center;
  background-size: cover;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin-bottom: 20px;
  background: #04120a;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.15);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar:hover {
  transform: scale(1.06) rotate(2deg);
  border-color: var(--gold-glow);
  box-shadow: 0 12px 30px rgba(197, 168, 128, 0.3);
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

h1 {
  font-family: var(--font-serif-header);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #ebdcc5 75%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(197, 168, 128, 0.08);
  text-transform: uppercase;
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 10px;
  font-style: italic;
}

.meta {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--gold-primary);
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.meta b { color: #ffffff; font-weight: 700; }

.disclosure {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: #617b6d;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 380px;
  background: rgba(197, 168, 128, 0.02);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(197, 168, 128, 0.05);
}

/* ── APOTHECARY HERBARIUM WIDGET ── */
.apothecary-widget {
  width: 100%;
  background: rgba(8, 22, 13, 0.6);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px;
  margin-bottom: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}
.apothecary-widget::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.widget-title {
  font-family: var(--font-serif-header);
  font-size: 16.5px;
  font-weight: 700;
  text-align: center;
  color: var(--gold-primary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.widget-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.45;
}

.herbarium-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Aged Parchment Box Display */
.parchment-display {
  width: 100%;
  background-color: #f5eedc;
  background-image: radial-gradient(circle, #fbfaf5 40%, #ebdca7 100%);
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 
    inset 0 0 24px rgba(76, 61, 40, 0.15), 
    0 8px 24px rgba(0, 0, 0, 0.45);
  color: var(--ink-dark);
  position: relative;
}

.parchment-inner {
  border: 1px solid rgba(76, 61, 40, 0.18);
  padding: 18px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.botanical-sketch-wrapper {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0px 3px 6px rgba(42,32,18,0.25));
  transition: opacity 0.15s ease-in-out;
}

.botanical-sketch {
  width: 100%;
  height: 100%;
}

.plant-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plant-common-name {
  font-family: var(--font-serif-header);
  font-size: 19px;
  font-weight: 700;
  color: #1c140a;
  text-align: center;
  margin-bottom: 2px;
}
.plant-scientific-name {
  font-family: var(--font-serif-body);
  font-size: 13px;
  font-style: italic;
  color: #5c452b;
  display: block;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.toxin-profile {
  font-family: var(--font-sans);
  font-size: 12px;
  background: rgba(146, 28, 28, 0.05);
  border: 1px dashed rgba(146, 28, 28, 0.25);
  color: #1c140a;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
  max-width: 280px;
}
.toxin-profile strong {
  color: #921c1c;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.historical-usage {
  font-family: var(--font-serif-body);
  font-size: 13px;
  line-height: 1.55;
  color: #2c2114;
  text-align: center;
  min-height: 60px;
  transition: opacity 0.25s ease;
}

/* Cabinet Selection Shelf */
.cabinet-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 8px;
  background: #04120a;
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 10px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}
.specimen-bottle {
  background: #092011;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 6px;
  color: var(--text-main);
  padding: 10px 2px;
  cursor: pointer;
  font-family: var(--font-serif-header);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.specimen-bottle:hover {
  background: #10321c;
  border-color: var(--gold-primary);
  color: #ffffff;
}
.specimen-bottle.active {
  background: var(--gold-primary);
  color: #05140b;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
}

.recommendation-box {
  width: 100%;
  background: rgba(197, 168, 128, 0.04);
  border: 1px solid rgba(197, 168, 128, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  color: #05140b;
  background: var(--gold-primary);
  padding: 6px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(197, 168, 128, 0.25);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rec-btn:hover {
  background: var(--gold-glow);
  box-shadow: 0 4px 12px rgba(235, 220, 197, 0.4);
  transform: translateY(-1px);
}

/* ── SECTIONS ── */
.content-wrapper {
  width: 100%;
}

.section { width: 100%; margin-bottom: 30px; }

.section-label {
  font-family: var(--font-serif-header);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 16px;
  padding-left: 4px;
  opacity: 0.9;
  position: relative;
  display: inline-block;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.6;
}

/* ── ENHANCED CARDS FOR CRO ── */
.affiliate-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.affiliate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: transparent;
  transition: background 0.2s ease;
}

.affiliate-card:hover {
  background: rgba(197, 168, 128, 0.07);
  border-color: rgba(197, 168, 128, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 168, 128, 0.08);
}
.affiliate-card:hover::before {
  background: var(--gold-primary);
}
.affiliate-card:active {
  transform: translateY(0) scale(0.985);
}

/* Highlight Top Pick */
.card-top {
  background: rgba(197, 168, 128, 0.05);
  border-color: rgba(197, 168, 128, 0.3);
  box-shadow: 0 4px 20px rgba(197, 168, 128, 0.05);
}
.card-top::before {
  background: var(--gold-primary);
}
.card-top:hover {
  background: rgba(197, 168, 128, 0.1);
  border-color: rgba(197, 168, 128, 0.5);
  box-shadow: 0 8px 36px rgba(197, 168, 128, 0.15);
}
.card-top:hover::before {
  background: var(--gold-glow);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}
.affiliate-card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(197, 168, 128, 0.1);
  border-color: rgba(197, 168, 128, 0.25);
}

.card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title {
  font-family: var(--font-serif-header);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.affiliate-card:hover .card-title {
  color: var(--gold-primary);
}
.card-top:hover .card-title {
  color: var(--gold-glow);
}

.card-description {
  font-family: var(--font-serif-body);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.affiliate-card:hover .card-description {
  color: var(--text-main);
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(197, 168, 128, 0.1);
  color: var(--gold-primary);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.price-tag {
  background: rgba(146, 28, 28, 0.1);
  color: #e56b6b;
  border: 1px solid rgba(146, 28, 28, 0.2);
}

/* CTA element on the right */
.card-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.18);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-primary);
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.affiliate-card:hover .card-cta-btn {
  background: var(--gold-primary);
  color: #05140b;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.35);
}
.card-top .card-cta-btn {
  background: rgba(197, 168, 128, 0.15);
  border-color: rgba(197, 168, 128, 0.25);
}
.card-top:hover .card-cta-btn {
  background: var(--gold-primary);
  color: #05140b;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.4);
}

.card-cta-free {
  background: rgba(13, 38, 22, 0.2);
  border-color: rgba(197, 168, 128, 0.15);
  color: var(--text-muted);
}
.affiliate-card:hover .card-cta-free {
  background: var(--gold-primary);
  color: #05140b;
}

footer {
  margin-top: 40px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #4b6657;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
footer:hover {
  color: var(--gold-primary);
}

/* Responsive adjustments */
@media (max-width: 440px) {
  .affiliate-card {
    padding: 14px 12px;
    gap: 12px;
  }
  .card-cta-btn {
    padding: 6px 10px;
    font-size: 10.5px;
  }
  .card-icon {
    width: 42px; height: 42px;
    font-size: 20px;
  }
}

/* Horizontal scroll container for Reels channels */
.reels-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  width: 100%;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reels-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.reels-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.reels-scroll-container::-webkit-scrollbar-thumb {
  background: var(--gold-dark, rgba(197, 168, 128, 0.3));
  border-radius: 2px;
}

.reel-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  margin-bottom: 0 !important;
}

@media (max-width: 440px) {
  .reel-card {
    flex: 0 0 260px;
  }
}
