/* ===========================
   DESIGN SYSTEM — 毛孩新手村
   =========================== */

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1820 0%, #0f0e13 100%);
  transition: opacity .6s ease, visibility .6s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Orbital ring */
.loader-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 32px;
  animation: loaderPulse 2s ease-in-out infinite;
}
.loader-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #f4a623;
  border-right-color: #e8923a;
  animation: loaderSpin 1.2s linear infinite;
}
.loader-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #d97706;
  border-left-color: #f4a623;
  animation: loaderSpin 1.8s linear infinite reverse;
  opacity: .6;
}

/* Paw prints orbiting */
.loader-paw {
  position: absolute;
  font-size: 1.3rem;
  animation: pawOrbit 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(244,166,35,.5));
}
.loader-paw.p1 { top: -10px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.loader-paw.p2 { top: 50%; right: -10px; transform: translateY(-50%); animation-delay: .6s; }
.loader-paw.p3 { bottom: -10px; left: 50%; transform: translateX(-50%); animation-delay: 1.2s; }
.loader-paw.p4 { top: 50%; left: -10px; transform: translateY(-50%); animation-delay: 1.8s; }

/* Gradient text */
.loader-text {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f4a623, #fbbf24, #f4a623, #e8923a, #f4a623);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loaderShimmer 2s ease-in-out infinite;
  margin-bottom: 8px;
}
.loader-sub {
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  letter-spacing: .5px;
  animation: loaderFadeInOut 2s ease-in-out infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes pawOrbit {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes loaderShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes loaderFadeInOut {
  0%, 100% { opacity: .3; }
  50% { opacity: .7; }
}

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Warm palette */
  --clr-bg:        #0f0e13;
  --clr-bg-raised: #1a1820;
  --clr-bg-card:   #222028;
  --clr-surface:   #2c2a33;
  --clr-border:    rgba(255, 255, 255, .06);

  --clr-text:      #eee9e0;
  --clr-text-dim:  #9b95a0;
  --clr-text-mute: #6a6470;

  --clr-accent:    #f4a623;
  --clr-accent2:   #e67e22;
  --clr-accent-glow: rgba(244, 166, 35, .25);

  --clr-dog:       #f39c12;
  --clr-cat:       #a78bfa;
  --clr-exotic:    #34d399;
  --clr-health:    #f87171;
  --clr-food:      #fbbf24;

  --grad-hero:     linear-gradient(160deg, #1a1520 0%, #0f0e13 40%, #1a1018 100%);
  --grad-accent:   linear-gradient(135deg, #f4a623, #e67e22);
  --grad-glass:    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));

  /* Typography */
  --ff-heading: 'Outfit', 'Noto Sans TC', sans-serif;
  --ff-body:    'Noto Sans TC', 'Outfit', sans-serif;

  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;

  /* Spacing */
  --sp-xs:  .25rem;
  --sp-sm:  .5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* Radius */
  --rad-sm:   6px;
  --rad-md:  12px;
  --rad-lg:  20px;
  --rad-xl:  28px;
  --rad-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px  8px  rgba(0,0,0,.25);
  --shadow-md:  0 4px  20px rgba(0,0,0,.35);
  --shadow-lg:  0 8px  40px rgba(0,0,0,.45);
  --shadow-glow: 0 0 30px var(--clr-accent-glow);

  /* Transition */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 200ms;
  --dur-med:  350ms;
  --dur-slow: 600ms;
}

/* ---------- LIGHT MODE ---------- */
[data-theme="light"] {
  --clr-bg:        #f5f3ef;
  --clr-bg-raised: #ffffff;
  --clr-bg-card:   #ffffff;
  --clr-surface:   #eae8e3;
  --clr-border:    rgba(0, 0, 0, .08);
  --clr-text:      #1a1a1a;
  --clr-text-dim:  #555555;
  --clr-text-mute: #888888;
  --clr-accent:    #d48806;
  --clr-accent2:   #c06b10;
  --clr-accent-glow: rgba(212, 136, 6, .12);
  --grad-hero:     linear-gradient(160deg, #f5f3ef 0%, #ebe7e0 40%, #f5f0eb 100%);
  --grad-accent:   linear-gradient(135deg, #d48806, #c06b10);
  --grad-glass:    linear-gradient(135deg, rgba(0,0,0,.02), rgba(0,0,0,.01));
  --shadow-sm:  0 2px  8px  rgba(0,0,0,.06);
  --shadow-md:  0 4px  20px rgba(0,0,0,.08);
  --shadow-lg:  0 8px  40px rgba(0,0,0,.10);
}

/* Smooth theme transition */
html[data-theme] body,
html[data-theme] .main-nav,
html[data-theme] .nav-dropdown,
html[data-theme] .hero { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-full);
  width: 36px; height: 36px;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(244,166,35,.12); border-color: var(--clr-accent); }

/* Light mode component overrides */
[data-theme="light"] .page-loader { background: radial-gradient(ellipse at center, #f5f3ef 0%, #ebe7e0 100%); }
[data-theme="light"] .main-nav { background: rgba(255,255,255,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
[data-theme="light"] .nav-dropdown { background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
[data-theme="light"] .nav-dropdown a:hover { background: rgba(212,136,6,.08); }
[data-theme="light"] .hero-particle { opacity: .06; }
[data-theme="light"] .glass-card,
[data-theme="light"] .breed-card,
[data-theme="light"] .tool-card,
[data-theme="light"] .resource-card { background: #fff; border-color: rgba(0,0,0,.06); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
[data-theme="light"] .breed-card:hover,
[data-theme="light"] .tool-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- UTILITIES ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}
.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-sm);
}
.section-desc {
  color: var(--clr-text-dim);
  font-size: var(--fs-md);
}
.section-disclaimer {
  color: var(--clr-text-mute);
  font-size: var(--fs-xs);
  font-style: italic;
  margin-top: var(--sp-xs);
}

/* ============================
   NAV
   ============================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--sp-md) 0;
  background: rgba(15, 14, 19, .85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  transition: background var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out);
}
.main-nav.scrolled {
  background: rgba(15, 14, 19, .85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--clr-border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
}
.logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(244, 166, 35, .4));
}
.nav-links {
  display: flex;
  gap: var(--sp-xl);
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-dim);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transition: width var(--dur-med) var(--ease-out);
}
.nav-links a:hover { color: var(--clr-accent); }
.nav-links a.nav-active { color: var(--clr-accent); font-weight: 700; }

/* Dropdown Nav */
.nav-links li { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-toggle::after { content: ' ▾'; font-size: 0.7em; opacity: 0.6; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-xs) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast), visibility var(--dur-fast), transform var(--dur-fast);
  transform: translateX(-50%) translateY(8px);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.nav-links li:hover .nav-dropdown,
.nav-links li.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: var(--sp-sm) var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover {
  background: rgba(244,166,35,.1);
  color: var(--clr-accent);
}

/* ============================
   PAGE HERO (sub-pages)
   ============================ */
.page-hero {
  padding: 120px var(--sp-2xl) 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(244,166,35,.08) 0%, transparent 100%);
}
.page-hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--clr-accent);
  margin-bottom: var(--sp-md);
}
.page-hero-desc {
  font-size: var(--fs-md);
  color: var(--clr-text-dim);
  max-width: 600px;
  margin: 0 auto;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; }

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding-bottom: 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-particles {
  position: absolute;
  inset: 0;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--clr-accent);
  opacity: .12;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.1); }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--sp-xl) + 40px) var(--sp-xl) var(--sp-xl);
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-accent);
  background: rgba(244, 166, 35, .1);
  border: 1px solid rgba(244, 166, 35, .2);
  padding: var(--sp-xs) var(--sp-lg);
  border-radius: var(--rad-full);
  margin-bottom: var(--sp-xl);
  animation: fadeInDown .8s var(--ease-out);
}
.hero-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-4xl);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--sp-lg);
}
.hero-title-line { display: block; }
.hero-title-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--clr-text-dim);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2xl);
  animation: fadeInUp .8s .2s var(--ease-out) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search */
.hero-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto var(--sp-2xl);
  animation: fadeInUp .8s .35s var(--ease-out) both;
}
.search-icon {
  position: absolute;
  left: var(--sp-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-lg);
  opacity: .5;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: var(--sp-md) var(--sp-lg) var(--sp-md) 3.2rem;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-full);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.search-input:focus {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-glow);
}
.search-input::placeholder { color: var(--clr-text-mute); }
.search-results {
  position: absolute;
  top: calc(100% + var(--sp-sm));
  left: 0;
  right: 0;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}
.search-results.active { display: block; }
.search-result-item {
  padding: var(--sp-md) var(--sp-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  transition: background var(--dur-fast);
  border-bottom: 1px solid var(--clr-border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--clr-surface); }
.search-result-item .result-emoji { font-size: 1.5rem; }
.search-result-item .result-info { flex: 1; }
.search-result-item .result-name { font-weight: 600; font-size: var(--fs-sm); }
.search-result-item .result-type { font-size: var(--fs-xs); color: var(--clr-text-mute); }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-3xl);
  animation: fadeInUp .8s .5s var(--ease-out) both;
  position: relative;
  z-index: 2;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--clr-accent);
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  animation: fadeInUp 1s 1s var(--ease-out) both;
  z-index: 1;
}
.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid var(--clr-text-mute);
  border-radius: 10px;
  position: relative;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================
   CATEGORY TABS
   ============================ */
.category-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-xl);
}
.category-tabs {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}
.cat-tab {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  border-radius: var(--rad-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  transition: all var(--dur-med) var(--ease-out);
}
.cat-tab:hover {
  background: var(--clr-surface);
  transform: translateY(-2px);
}
.cat-tab.active {
  background: var(--grad-accent);
  color: #0f0e13;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.tab-icon { font-size: 1.2rem; }

/* ============================
   BREED CARDS
   ============================ */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-lg);
}
.breed-card {
  position: relative;
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-spring),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med);
  animation: cardAppear .5s var(--ease-out) both;
  display: flex;
  flex-direction: column;
}
.breed-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(244, 166, 35, .25);
}

/* Card image */
.breed-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.breed-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--clr-bg-card) 0%, transparent 50%);
}

/* Card body */
.breed-card-body {
  padding: var(--sp-sm) var(--sp-md) var(--sp-md);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.breed-card-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 2px;
}
.breed-card-origin {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  margin-bottom: var(--sp-sm);
}

/* ── Always-visible compact stats ── */
.breed-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  margin-bottom: var(--sp-sm);
}
.card-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-surface);
  padding: 5px 8px;
  border-radius: var(--rad-sm);
  font-size: 0.75rem;
  line-height: 1.2;
}
.card-stat-icon {
  font-size: 0.8rem;
  flex-shrink: 0;
}
.card-stat-label {
  font-size: 0.65rem;
  color: var(--clr-text-mute);
  flex-shrink: 0;
}
.card-stat-val {
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Difficulty stars */
.difficulty-stars {
  display: inline-flex;
  gap: 1px;
}
.difficulty-stars .star { color: var(--clr-text-mute); font-size: 0.7rem; }
.difficulty-stars .star.filled { color: var(--clr-accent); }

/* Card CTA */
.breed-card-cta {
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  opacity: 0.6;
  transition: opacity var(--dur-fast);
  text-align: right;
}
.breed-card:hover .breed-card-cta {
  opacity: 1;
}

/* ── Tab count badge ── */
.tab-count {
  background: rgba(255,255,255,.12);
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 99px;
  margin-left: 4px;
  font-weight: 600;
}
.cat-tab.active .tab-count {
  background: rgba(0,0,0,.15);
}

/* ── Filter Bar ── */
.breed-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  max-width: 1280px;
  margin: var(--sp-md) auto var(--sp-lg);
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  backdrop-filter: blur(8px);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.filter-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  white-space: nowrap;
}
.filter-select {
  appearance: none;
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-sm);
  padding: 6px 28px 6px 10px;
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: border-color var(--dur-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.filter-select:focus {
  outline: none;
  border-color: var(--clr-accent);
}
.filter-result-count {
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  margin-left: auto;
  font-weight: 600;
}

/* ── Show More Button ── */
.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-xl);
}
.show-more-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-2xl);
  background: linear-gradient(135deg, rgba(244,166,35,.15), rgba(244,166,35,.05));
  border: 1px solid rgba(244,166,35,.3);
  border-radius: var(--rad-lg);
  color: var(--clr-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
}
.show-more-btn:hover {
  background: linear-gradient(135deg, rgba(244,166,35,.25), rgba(244,166,35,.1));
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(244,166,35,.2);
}
.show-more-icon {
  font-size: 1.1rem;
  transition: transform var(--dur-med);
}
.show-more-btn:hover .show-more-icon {
  transform: translateY(3px);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(40px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Mobile responsive filter bar ── */
@media (max-width: 600px) {
  .breed-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-md);
    padding: var(--sp-md);
  }
  .filter-group {
    flex-wrap: wrap;
    gap: var(--sp-sm);
  }
  .filter-select {
    flex: 1;
    min-width: 120px;
  }
  .filter-result-count {
    margin-left: 0;
    text-align: center;
  }
}

/* ============================
   COST CALCULATOR
   ============================ */
.cost-section { padding: var(--sp-3xl) var(--sp-2xl); }
.cost-calculator {
  max-width: 900px;
  margin: 0 auto;
}
.cost-selector {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  justify-content: center;
  margin-bottom: var(--sp-2xl);
}
.cost-label { font-weight: 600; font-size: var(--fs-sm); }
.cost-dropdown {
  position: relative;
  min-width: 260px;
}
.cost-dropdown-btn {
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-bg-raised);
  border: 2px solid var(--clr-border);
  border-radius: var(--rad-lg);
  color: var(--clr-text);
  font-size: var(--fs-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.cost-dropdown-btn:hover { border-color: var(--clr-accent); }
.cost-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.cost-dropdown.open .cost-dropdown-list { display: block; }

/* Search input inside dropdown */
.dropdown-search {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: var(--sp-sm);
  background: var(--clr-bg-raised);
  border-bottom: 1px solid var(--clr-border);
}
.dropdown-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  background: var(--clr-surface);
  color: var(--clr-text);
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--dur-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.44.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}
.dropdown-search input:focus { border-color: var(--clr-accent); }
.dropdown-search input::placeholder { color: #666; }

/* Category group headers */
.dropdown-category {
  padding: 6px var(--sp-lg);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: sticky;
  top: 45px;   /* below search */
  background: var(--clr-bg-raised);
  z-index: 1;
  border-bottom: 1px solid var(--clr-border);
}

.cost-dropdown-item {
  padding: var(--sp-sm) var(--sp-lg);
  cursor: pointer;
  transition: background var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
}
.cost-dropdown-item:hover { background: var(--clr-surface); }
.cost-dropdown-item.hidden { display: none; }
.dropdown-category.hidden { display: none; }
.dropdown-no-results {
  padding: var(--sp-md) var(--sp-lg);
  text-align: center;
  color: #666;
  font-size: var(--fs-sm);
  display: none;
}

/* ── Breed Picker (Tag Pills) ── */
.breed-picker {
  margin-bottom: var(--sp-xl);
}
.breed-picker-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.breed-search {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-full);
  background: var(--clr-surface);
  color: var(--clr-text);
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.44.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.breed-search:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(244, 166, 35, 0.15);
}
.breed-search::placeholder { color: #666; }

.breed-category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breed-cat-tab {
  padding: 6px 14px;
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-full);
  background: transparent;
  color: var(--clr-text-mute);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.breed-cat-tab:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.breed-cat-tab.active {
  background: var(--clr-accent);
  color: #000;
  border-color: var(--clr-accent);
  font-weight: 600;
}

/* Exotic sub-tabs */
.breed-sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 2px;
}
.breed-sub-tab {
  padding: 4px 12px;
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-full);
  background: transparent;
  color: var(--clr-text-mute);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.breed-sub-tab:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.breed-sub-tab.active {
  background: rgba(244, 166, 35, 0.15);
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  font-weight: 600;
}

.breed-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  padding: 4px 0;
}
.breed-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  background: var(--clr-bg-raised);
  color: var(--clr-text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--dur-fast);
  text-align: center;
  user-select: none;
}
.breed-tag:hover {
  border-color: var(--clr-accent);
  background: rgba(244, 166, 35, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(244, 166, 35, 0.15);
}
.breed-tag.active {
  border-color: var(--clr-accent);
  background: rgba(244, 166, 35, 0.15);
  color: var(--clr-accent);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(244, 166, 35, 0.3);
}
.breed-tag.hidden { display: none; }
.breed-tags-empty {
  width: 100%;
  text-align: center;
  padding: var(--sp-lg);
  color: #666;
  font-size: var(--fs-sm);
  display: none;
}

.cost-result { text-align: center; }
.cost-empty {
  padding: var(--sp-3xl);
  color: var(--clr-text-mute);
}
.cost-empty-icon { font-size: 3rem; display: block; margin-bottom: var(--sp-md); }
.timeline-empty {
  text-align: center;
  padding: var(--sp-3xl);
  color: var(--clr-text-mute);
}

.cost-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.cost-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
}
.cost-donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cost-donut-center {
  position: absolute;
  text-align: center;
}
.cost-donut-total {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--clr-accent);
  display: block;
}
.cost-donut-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
}
.cost-breed-info {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
}
.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.cost-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-bg-card);
  border-radius: var(--rad-md);
  border: 1px solid var(--clr-border);
}
.cost-row-emoji { font-size: 1.3rem; flex-shrink: 0; }
.cost-row-name { flex: 1; font-weight: 600; font-size: var(--fs-sm); }
.cost-row-bar {
  flex: 2;
  height: 8px;
  background: var(--clr-surface);
  border-radius: var(--rad-full);
  overflow: hidden;
}
.cost-row-bar-fill {
  height: 100%;
  border-radius: var(--rad-full);
  transition: width 0.6s var(--ease-out);
}
.cost-row-amount {
  min-width: 110px;
  text-align: right;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--clr-accent);
}
.cost-disclaimer {
  margin-top: var(--sp-xl);
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  font-style: italic;
  text-align: center;
}

/* ── Cost Methodology ── */
.cost-methodology {
  margin-top: var(--sp-2xl);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-xl);
}
.cost-method-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  color: var(--clr-text);
}
.cost-method-intro {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  margin-bottom: var(--sp-lg);
}
.cost-method-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  margin-bottom: var(--sp-sm);
  transition: background var(--dur-fast);
}
.cost-method-item[open] {
  background: rgba(255,255,255,.05);
}
.cost-method-summary {
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--clr-text);
  transition: color var(--dur-fast);
}
.cost-method-summary::-webkit-details-marker { display: none; }
.cost-method-summary::after {
  content: '▸';
  margin-left: auto;
  font-size: .75rem;
  color: var(--clr-text-mute);
  transition: transform var(--dur-fast);
}
.cost-method-item[open] .cost-method-summary::after {
  transform: rotate(90deg);
}
.cost-method-summary:hover { color: var(--clr-accent); }
.cost-method-body {
  padding: 0 var(--sp-lg) var(--sp-lg);
}
.cost-method-body p {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  line-height: 1.8;
  margin: 0;
}
.cost-method-body strong { color: var(--clr-text); }
.cost-method-body em { color: var(--clr-accent); font-style: normal; }

@media (max-width: 768px) {
  .cost-dashboard { grid-template-columns: 1fr; }
  .cost-selector { flex-direction: column; }
}

/* ============================
   ADOPTION RESOURCES
   ============================ */
.adoption-section { padding: var(--sp-3xl) var(--sp-2xl); }
.adoption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-lg);
  max-width: 1100px;
  margin: 0 auto;
}
.adoption-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  padding: var(--sp-xl);
  text-decoration: none;
  color: var(--clr-text);
  transition: transform var(--dur-med) var(--ease-spring),
              box-shadow var(--dur-med),
              border-color var(--dur-fast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.adoption-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244, 166, 35, .3);
}
.adoption-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.adoption-card-emoji { font-size: 2rem; }
.adoption-card-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 700;
}
.adoption-card-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 1.6;
}
.adoption-card-type {
  display: inline-block;
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: var(--rad-full);
  font-weight: 600;
  align-self: flex-start;
}
.adoption-card-type.official { background: rgba(59,130,246,.15); color: #60a5fa; }
.adoption-card-type.platform { background: rgba(52,211,153,.15); color: #34d399; }
.adoption-card-type.ngo { background: rgba(244,166,35,.15); color: var(--clr-accent); }
.adoption-card-type.shelter { background: rgba(167,139,250,.15); color: #a78bfa; }
.adoption-card-link {
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: auto;
}

/* ============================
   BREED FAVORITES
   ============================ */
.fav-btn {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: all var(--dur-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.fav-btn:hover { background: rgba(0,0,0,.7); color: #fff; transform: scale(1.1); }
.fav-btn.active { color: #ff6b6b; background: rgba(255,107,107,.15); }
.fav-btn.active:hover { background: rgba(255,107,107,.25); }
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.fav-btn.pop { animation: heartPop 0.3s var(--ease-spring); }


/* ============================
   FEEDING GUIDE
   ============================ */
.feeding-section { padding: var(--sp-3xl) var(--sp-2xl); }
.feeding-calculator { max-width: 900px; margin: 0 auto; }
.feeding-inputs {
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-2xl);
}
.feeding-field { display: flex; flex-direction: column; gap: var(--sp-xs); min-width: 200px; }
.feeding-weight-input, .feeding-age-select {
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-bg-raised);
  border: 2px solid var(--clr-border);
  border-radius: var(--rad-lg);
  color: var(--clr-text);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast);
}
.feeding-weight-input:focus, .feeding-age-select:focus {
  outline: none;
  border-color: var(--clr-accent);
}
.feeding-calc-btn {
  padding: var(--sp-md) var(--sp-xl);
  background: linear-gradient(135deg, var(--clr-accent), #e8923a);
  color: #0f0e13;
  border: none;
  border-radius: var(--rad-lg);
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  white-space: nowrap;
}
.feeding-calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(244,166,35,.3);
}
.feeding-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
}
.feeding-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  padding: var(--sp-xl);
  text-align: center;
}
.feeding-card-icon { font-size: 2.5rem; margin-bottom: var(--sp-sm); display: block; }
.feeding-card-value {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--clr-accent);
  display: block;
}
.feeding-card-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  margin-top: var(--sp-xs);
}
.feeding-card-detail {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  margin-top: var(--sp-sm);
}
.feeding-tips {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 1.8;
}
.feeding-tips strong { color: var(--clr-text); }
@media (max-width: 768px) {
  .feeding-inputs { flex-direction: column; align-items: stretch; }
  .feeding-field { min-width: 0; }
}

/* ============================
   PRODUCT RECOMMENDATIONS
   ============================ */
.products-section { padding: var(--sp-3xl) var(--sp-2xl); }
.products-filter {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-lg);
  max-width: 1200px;
  margin: 0 auto;
}
.product-rec-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition: transform var(--dur-med) var(--ease-spring),
              box-shadow var(--dur-med),
              border-color var(--dur-fast);
}
.product-rec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244,166,35,.2);
}
.product-rec-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.product-rec-emoji { font-size: 2rem; }
.product-rec-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  flex: 1;
}
.product-rec-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 1.6;
}
.product-rec-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.product-rec-price {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--clr-accent);
}
.product-rec-cat {
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: var(--rad-full);
  background: var(--clr-surface);
  color: var(--clr-text-dim);
}

/* ============================
   TIMELINE
   ============================ */
.timeline-section {
  padding: var(--sp-3xl) var(--sp-2xl);
}
.timeline-section .breed-picker,
.timeline-section .timeline-wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.timeline-breed-select {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
  flex-wrap: wrap;
}
.tl-breed-btn {
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--rad-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  transition: all var(--dur-fast);
}
.tl-breed-btn:hover { background: var(--clr-surface); }
.tl-breed-btn.active {
  background: var(--clr-accent);
  color: #0f0e13;
  border-color: transparent;
}

.timeline-wrapper {
  position: relative;
  padding: var(--sp-lg) 0;
  margin-bottom: var(--sp-2xl);
}

/* ── Vertical Timeline ── */
.tl-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.tl-v-item {
  display: flex;
  gap: var(--sp-lg);
  animation: fadeInUp .4s var(--ease-out) both;
}
.tl-v-item:nth-child(1) { animation-delay: 0s; }
.tl-v-item:nth-child(2) { animation-delay: .08s; }
.tl-v-item:nth-child(3) { animation-delay: .16s; }
.tl-v-item:nth-child(4) { animation-delay: .24s; }
.tl-v-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}
.tl-v-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-bg-raised);
  border: 2px solid var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--clr-accent-glow);
}
.tl-v-line {
  flex: 1;
  width: 3px;
  background: linear-gradient(180deg, var(--clr-accent), var(--clr-surface));
  border-radius: 2px;
  min-height: 24px;
}
.tl-v-card {
  flex: 1;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  padding: var(--sp-lg) var(--sp-xl);
  margin-bottom: var(--sp-lg);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.tl-v-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 4px 24px rgba(255,160,0,.08);
}
.tl-v-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.tl-v-stage {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-accent);
  margin: 0;
}
.tl-v-age {
  font-size: var(--fs-sm);
  color: var(--clr-text-mute);
  background: var(--clr-surface);
  padding: 2px 10px;
  border-radius: var(--rad-full);
}
.tl-v-body p {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 1.8;
  margin: 0 0 var(--sp-xs);
}
.tl-v-label {
  font-weight: 600;
  color: var(--clr-text);
  margin-right: var(--sp-xs);
}
.tl-v-warning {
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(255,160,0,.08);
  border-left: 3px solid var(--clr-accent);
  border-radius: 0 var(--rad-sm) var(--rad-sm) 0;
  color: var(--clr-accent);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: translateY(-50%);
  border-radius: 2px;
  transition: width var(--dur-med) var(--ease-out);
  pointer-events: none;
}

.tl-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0 var(--sp-2xl);
  cursor: pointer;
  min-width: 150px;
}
.tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 3px solid var(--clr-bg);
  transition: all var(--dur-med) var(--ease-spring);
}
.tl-node:hover .tl-dot {
  transform: scale(1.3);
  background: var(--clr-accent);
  box-shadow: 0 0 20px var(--clr-accent-glow);
}
.tl-node.active .tl-dot {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  box-shadow: 0 0 20px var(--clr-accent-glow);
  transform: scale(1.4);
}
.tl-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-mute);
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.tl-node.active .tl-label,
.tl-node:hover .tl-label { color: var(--clr-accent); }
.tl-age {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
  opacity: .6;
}

/* Timeline Content */
.timeline-content {
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  padding: var(--sp-2xl);
  min-height: 250px;
  animation: fadeInUp .4s var(--ease-out);
}
.tl-content-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.tl-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-lg);
}
.tl-info-card {
  background: var(--clr-bg-card);
  padding: var(--sp-lg);
  border-radius: var(--rad-md);
  border: 1px solid var(--clr-border);
}
.tl-info-card h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
}
.tl-info-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 1.8;
}
.tl-info-card ul {
  list-style: none;
  padding: 0;
}
.tl-info-card li {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  padding: var(--sp-xs) 0;
  position: relative;
  padding-left: var(--sp-lg);
}
.tl-info-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: bold;
}

/* ============================
   REGULATIONS ACCORDION
   ============================ */
.regulations-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-xl);
}
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.accordion-item {
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.accordion-item.open { border-color: rgba(244, 166, 35, .2); }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) var(--sp-xl);
  font-size: var(--fs-md);
  font-weight: 600;
  text-align: left;
  transition: color var(--dur-fast);
}
.accordion-header:hover { color: var(--clr-accent); }
.accordion-item.open .accordion-header { color: var(--clr-accent); }
.accordion-icon {
  font-size: var(--fs-lg);
  transition: transform var(--dur-med) var(--ease-out);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.accordion-body-inner {
  padding: 0 var(--sp-xl) var(--sp-xl);
  color: var(--clr-text-dim);
  font-size: var(--fs-sm);
  line-height: 2;
}
.accordion-body-inner h4 {
  color: var(--clr-text);
  font-weight: 600;
  margin: var(--sp-md) 0 var(--sp-sm);
}
.accordion-body-inner ul {
  padding-left: var(--sp-lg);
}
.accordion-body-inner li {
  position: relative;
  padding-left: var(--sp-md);
  margin-bottom: var(--sp-xs);
}
.accordion-body-inner li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-size: var(--fs-xs);
}

/* ============================
   PRODUCTS
   ============================ */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-xl);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-lg);
}
.product-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-spring),
              box-shadow var(--dur-med);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-card-body {
  padding: var(--sp-lg);
}
.product-card-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px var(--sp-md);
  border-radius: var(--rad-full);
  margin-bottom: var(--sp-sm);
}
.product-card-tag.dogs { background: rgba(243, 156, 18, .15); color: var(--clr-dog); }
.product-card-tag.cats { background: rgba(167, 139, 250, .15); color: var(--clr-cat); }
.product-card-tag.all  { background: rgba(52, 211, 153, .15); color: var(--clr-exotic); }
.product-card-name {
  font-weight: 600;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-xs);
}
.product-card-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-md);
}
.product-card-price {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-accent);
}

/* ============================
   STORIES
   ============================ */
.stories-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-xl);
}
.stories-filter {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
  flex-wrap: wrap;
}
.story-filter-btn {
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--rad-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  transition: all var(--dur-fast);
}
.story-filter-btn:hover { background: var(--clr-surface); }
.story-filter-btn.active {
  background: var(--grad-accent);
  color: #0f0e13;
  border-color: transparent;
}
.stories-grid {
  columns: 3 320px;
  column-gap: var(--sp-lg);
}
.story-card {
  break-inside: avoid;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-lg);
  transition: transform var(--dur-med) var(--ease-spring),
              box-shadow var(--dur-med),
              border-color var(--dur-fast);
  animation: cardAppear .5s var(--ease-out) both;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244, 166, 35, .15);
}
.story-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.story-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.story-avatar.dogs { background: rgba(243, 156, 18, .15); }
.story-avatar.cats { background: rgba(167, 139, 250, .15); }
.story-avatar.exotic { background: rgba(52, 211, 153, .15); }
.story-meta { flex: 1; }
.story-author {
  font-weight: 600;
  font-size: var(--fs-sm);
}
.story-breed-tag {
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
}
.story-content {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 1.9;
  margin-bottom: var(--sp-md);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-emoji {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--sp-md);
}
.story-reactions {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
}
.story-reaction {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  cursor: pointer;
  transition: color var(--dur-fast);
}
.story-reaction:hover { color: var(--clr-accent); }
.story-highlight {
  background: rgba(244, 166, 35, .06);
  border-left: 3px solid var(--clr-accent);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: 0 var(--rad-sm) var(--rad-sm) 0;
  margin-bottom: var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  font-style: italic;
}
/* See-more link in overlay stories tab */
.stories-see-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  padding: var(--sp-md) var(--sp-xl);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-accent);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.stories-see-more:hover {
  background: var(--clr-accent);
  color: #0f0e13;
  border-color: transparent;
}

/* ============================
   OVERLAY PANEL
   ============================ */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.overlay-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.overlay-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(820px, 92vw);
  height: 100vh;
  background: var(--clr-bg-raised);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-surface) transparent;
}
.overlay-panel.active {
  transform: translateX(0);
}
.overlay-close {
  position: sticky;
  top: var(--sp-md);
  float: right;
  margin: var(--sp-md) var(--sp-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  z-index: 10;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.overlay-close:hover {
  background: var(--clr-accent);
  color: #0f0e13;
  transform: scale(1.1);
}

/* Overlay Hero */
.overlay-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
  padding: var(--sp-2xl) var(--sp-2xl) var(--sp-lg);
  text-align: center;
}
.overlay-hero-img {
  width: 160px;
  height: 160px;
  border-radius: var(--rad-lg);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.overlay-hero-info { flex: 1; }
.overlay-breed-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--sp-sm);
}
.overlay-breed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
}
.ov-tag {
  font-size: var(--fs-xs);
  padding: 2px var(--sp-md);
  border-radius: var(--rad-full);
  background: var(--clr-surface);
  color: var(--clr-text-dim);
}
.overlay-breed-stats {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.ov-stat {
  font-size: var(--fs-sm);
}
.ov-stat-label {
  color: var(--clr-text-mute);
  font-size: var(--fs-xs);
  display: block;
}
.ov-stat-value {
  font-weight: 600;
  color: var(--clr-accent);
}

/* Overlay Tabs */
.overlay-tabs {
  display: flex;
  gap: var(--sp-xs);
  padding: 0 var(--sp-xl);
  border-bottom: 1px solid var(--clr-border);
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--sp-md), #000 calc(100% - 2rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--sp-md), #000 calc(100% - 2rem), transparent 100%);
}
.overlay-tabs::-webkit-scrollbar { display: none; }
.ov-tab {
  padding: var(--sp-md) var(--sp-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--dur-fast);
  flex-shrink: 0;
}
.ov-tab:hover { color: var(--clr-text); }
.ov-tab.active {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}

/* Overlay Body */
.overlay-body {
  padding: var(--sp-xl) var(--sp-2xl) var(--sp-2xl);
  animation: fadeInUp .3s var(--ease-out);
}
.overlay-body h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.overlay-body p {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 2;
  margin-bottom: var(--sp-lg);
}
.overlay-body ul {
  margin-bottom: var(--sp-lg);
}
.overlay-body li {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  padding: var(--sp-xs) 0;
  padding-left: var(--sp-lg);
  position: relative;
}
.overlay-body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
}

/* ============================
   TOOLTIP
   ============================ */
.tooltip {
  position: fixed;
  z-index: 5000;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  padding: var(--sp-md) var(--sp-lg);
  max-width: 300px;
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   FOOTER
   ============================ */
.main-footer {
  background: var(--clr-bg-raised);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-3xl) var(--sp-xl) 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3xl);
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo-text {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
}
.footer-tagline {
  color: var(--clr-text-mute);
  font-size: var(--fs-sm);
  margin-top: var(--sp-sm);
}
.footer-links {
  display: flex;
  gap: var(--sp-3xl);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--clr-text-mute);
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--clr-accent); }
.footer-bottom {
  text-align: center;
  padding: var(--sp-xl) 0;
  margin-top: var(--sp-2xl);
  border-top: 1px solid var(--clr-border);
  font-size: var(--fs-xs);
  color: var(--clr-text-mute);
}

/* ============================
   MOBILE RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .hero-title { font-size: var(--fs-2xl); }
  .hero-subtitle { font-size: var(--fs-base); }
  .hero-stats { gap: var(--sp-xl); }
  .section-title { font-size: var(--fs-xl); }

  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: all var(--dur-fast);
  }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 14, 19, .95);
    backdrop-filter: blur(20px);
    padding: var(--sp-lg) var(--sp-xl);
    gap: var(--sp-md);
    border-bottom: 1px solid var(--clr-border);
  }

  .breed-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .overlay-panel { width: 100vw; }
  .overlay-hero { flex-direction: column; align-items: center; text-align: center; }
  .overlay-hero-img { width: 140px; height: 140px; }
  .overlay-breed-stats { justify-content: center; }
  .overlay-breed-tags { justify-content: center; }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: var(--sp-2xl); }
}

@media (max-width: 480px) {
  .category-tabs { flex-wrap: wrap; }
  .hero-stats { flex-direction: column; gap: var(--sp-md); }
  .hero-badge { display: none; }
  .overlay-tabs { gap: 0; }
  .ov-tab { padding: var(--sp-sm) var(--sp-md); font-size: var(--fs-xs); }
  .footer-links { flex-direction: column; gap: var(--sp-xl); }
  .breed-grid { grid-template-columns: 1fr; }
  .breed-card-stats { font-size: 0.7rem; }
}

/* ============================
   BODY NO SCROLL (overlay open)
   ============================ */
body.no-scroll { overflow: hidden; }

/* ============================
   BREED COMPARISON
   ============================ */
.compare-section { padding: var(--sp-3xl) var(--sp-2xl); }
.compare-selectors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
  flex-wrap: wrap;
}
.compare-select-wrap { flex: 1; max-width: 320px; min-width: 200px; }
.compare-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  text-align: center;
}
.compare-dropdown { position: relative; }
.compare-dropdown-btn {
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--rad-md);
  color: var(--clr-text);
  font-size: var(--fs-base);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.compare-dropdown-btn:hover { border-color: var(--clr-accent); }
.compare-dropdown-btn .compare-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background-size: cover; background-position: center; flex-shrink: 0;
}
.compare-placeholder { color: var(--clr-text-mute); }
.compare-dropdown-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  max-height: 260px; overflow-y: auto;
  z-index: 100; display: none;
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
}
.compare-dropdown.open .compare-dropdown-list { display: block; }
.compare-dropdown-item {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  cursor: pointer; transition: background var(--dur-fast);
  font-size: var(--fs-sm);
}
.compare-dropdown-item:hover { background: var(--clr-surface); }
.compare-dropdown-item .cdi-img {
  width: 32px; height: 32px; border-radius: 50%;
  background-size: cover; background-position: center; flex-shrink: 0;
}
.compare-vs {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--clr-accent);
  text-shadow: 0 0 20px rgba(255,160,50,.3);
}
.compare-result { max-width: 900px; margin: 0 auto; }
.compare-empty {
  text-align: center; padding: var(--sp-3xl);
  color: var(--clr-text-mute);
}
.compare-empty-icon { font-size: 3rem; display: block; margin-bottom: var(--sp-md); }
.compare-shortcuts { margin-top: var(--sp-xl); }
.compare-shortcuts-label { font-size: var(--fs-sm); color: var(--clr-text-dim); margin-bottom: var(--sp-md); }
.compare-shortcuts-btns { display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap; }
.compare-shortcut-btn {
  padding: var(--sp-sm) var(--sp-lg);
  background: rgba(244,166,35,.1);
  border: 1px solid rgba(244,166,35,.3);
  border-radius: var(--rad-lg);
  color: var(--clr-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.compare-shortcut-btn:hover {
  background: rgba(244,166,35,.2);
  border-color: var(--clr-accent);
  transform: translateY(-2px);
}
.compare-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}
.compare-card {
  background: var(--clr-bg-raised);
  border-radius: var(--rad-lg);
  padding: var(--sp-xl);
  text-align: center;
  border: 2px solid var(--clr-border);
  animation: fadeInUp .4s var(--ease-out);
}
.compare-card-img {
  width: 100px; height: 100px; border-radius: var(--rad-lg);
  background-size: cover; background-position: center;
  margin: 0 auto var(--sp-md);
}
.compare-card h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-xs);
}
.compare-card .compare-card-origin {
  font-size: var(--fs-xs); color: var(--clr-text-mute); margin-bottom: var(--sp-md);
}
.compare-card .compare-card-tags {
  display: flex; flex-wrap: wrap; gap: var(--sp-xs); justify-content: center;
}
.compare-card .compare-card-tags span {
  font-size: var(--fs-xs); padding: 2px var(--sp-sm);
  border-radius: var(--rad-full); background: var(--clr-surface);
  color: var(--clr-text-dim);
}
.compare-bars { margin-bottom: var(--sp-xl); }
.compare-bar-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-md);
  align-items: center; margin-bottom: var(--sp-md);
}
.compare-bar-label {
  text-align: center; font-size: var(--fs-sm); font-weight: 600;
  color: var(--clr-text-dim); min-width: 80px;
}
.compare-bar-track {
  height: 8px; background: var(--clr-surface); border-radius: var(--rad-full);
  overflow: hidden; position: relative;
}
.compare-bar-a .compare-bar-track { direction: rtl; }
.compare-bar-fill {
  height: 100%; border-radius: var(--rad-full);
  transition: width .8s var(--ease-out);
}
.compare-bar-a .compare-bar-fill { background: var(--clr-accent); }
.compare-bar-b .compare-bar-fill { background: #8b5cf6; }
.compare-bar-val {
  font-size: var(--fs-xs); font-weight: 600; margin-top: 2px;
}
.compare-bar-a { text-align: right; }
.compare-bar-a .compare-bar-val { color: var(--clr-accent); }
.compare-bar-b .compare-bar-val { color: #8b5cf6; }
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--clr-bg-raised);
  border-radius: var(--rad-lg); overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: var(--sp-md); font-size: var(--fs-sm);
  border-bottom: 1px solid var(--clr-border);
}
.compare-table th {
  background: var(--clr-surface); font-weight: 600;
  color: var(--clr-text-dim); text-align: center;
}
.compare-table td { text-align: center; color: var(--clr-text-dim); }
.compare-table td:first-child { color: var(--clr-text); font-weight: 500; }

/* ============================
   KNOWLEDGE HUB
   ============================ */
.knowledge-section { padding: var(--sp-3xl) var(--sp-2xl); }
.knowledge-tabs {
  display: flex; justify-content: center; gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
}
.know-tab {
  padding: var(--sp-md) var(--sp-xl);
  font-size: var(--fs-sm); font-weight: 600;
  background: var(--clr-surface);
  border: 2px solid transparent;
  border-radius: var(--rad-full);
  color: var(--clr-text-dim);
  cursor: pointer; transition: all var(--dur-fast);
}
.know-tab:hover { color: var(--clr-text); border-color: var(--clr-border); }
.know-tab.active {
  background: var(--clr-accent);
  color: #0f0e13; border-color: var(--clr-accent);
}
.know-panel { display: none; animation: fadeInUp .4s var(--ease-out); }
.know-panel.active { display: block; }

/* Myths Flip Cards */
.myths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-lg);
  max-width: 1100px; margin: 0 auto;
}
.myth-card {
  perspective: 800px;
  height: 220px;
  cursor: pointer;
}
.myth-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .6s var(--ease-out);
  transform-style: preserve-3d;
}
.myth-card.flipped .myth-card-inner { transform: rotateY(180deg); }
.myth-front, .myth-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--rad-lg);
  padding: var(--sp-xl);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
}
.myth-front {
  background: var(--clr-bg-raised);
  border: 2px solid var(--clr-border);
}
.myth-front .myth-verdict {
  font-size: 2rem; margin-bottom: var(--sp-sm);
}
.myth-front .myth-statement {
  font-size: var(--fs-base); font-weight: 600;
  color: var(--clr-text); line-height: 1.6;
}
.myth-front .myth-tap {
  font-size: var(--fs-xs); color: var(--clr-text-mute);
  margin-top: var(--sp-md);
}
.myth-back {
  background: linear-gradient(135deg, #1a1520, #2a1f35);
  border: 2px solid var(--clr-accent);
  transform: rotateY(180deg);
}
.myth-back .myth-truth-label {
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--clr-accent); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: var(--sp-sm);
}
.myth-back .myth-truth {
  font-size: var(--fs-sm); color: var(--clr-text-dim);
  line-height: 1.8;
}

/* Emergency Guide */
.emergency-list { max-width: 800px; margin: 0 auto; }
.emergency-item {
  background: var(--clr-bg-raised);
  border-radius: var(--rad-lg);
  margin-bottom: var(--sp-md);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}
.emergency-header {
  display: flex; align-items: center; gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  cursor: pointer; transition: background var(--dur-fast);
}
.emergency-header:hover { background: var(--clr-surface); }
.emergency-severity {
  font-size: 1.2rem; flex-shrink: 0;
}
.emergency-title {
  flex: 1; font-weight: 600; font-size: var(--fs-base);
}
.emergency-chevron {
  transition: transform var(--dur-med);
  color: var(--clr-text-mute);
}
.emergency-item.open .emergency-chevron { transform: rotate(180deg); }
.emergency-body {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.emergency-item.open .emergency-body { max-height: 600px; }
.emergency-steps {
  padding: 0 var(--sp-xl) var(--sp-xl);
}
.emergency-step {
  display: flex; gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--clr-border);
}
.emergency-step:last-child { border-bottom: none; }
.emergency-step-num {
  width: 32px; height: 32px;
  background: var(--clr-accent);
  color: #0f0e13;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-sm);
  flex-shrink: 0;
}
.emergency-step-text {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: 1.8;
  padding-top: 4px;
}

/* Starter Checklist */
.starter-wrap { max-width: 700px; margin: 0 auto; }
.starter-progress-wrap {
  margin-bottom: var(--sp-xl);
  text-align: center;
}
.starter-progress-bar {
  height: 10px;
  background: var(--clr-surface);
  border-radius: var(--rad-full);
  overflow: hidden;
  margin-bottom: var(--sp-sm);
}
.starter-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-accent), #f59e0b);
  border-radius: var(--rad-full);
  transition: width .5s var(--ease-out);
}
.starter-progress-text {
  font-size: var(--fs-sm); color: var(--clr-text-dim);
}
.starter-group {
  margin-bottom: var(--sp-xl);
}
.starter-group-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg); font-weight: 700;
  margin-bottom: var(--sp-md);
  display: flex; align-items: center; gap: var(--sp-sm);
}
.starter-item {
  display: flex; align-items: center; gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-bg-raised);
  border-radius: var(--rad-md);
  margin-bottom: var(--sp-xs);
  cursor: pointer; transition: background var(--dur-fast);
  border: 1px solid var(--clr-border);
}
.starter-item:hover { background: var(--clr-surface); }
.starter-checkbox {
  width: 22px; height: 22px;
  border: 2px solid var(--clr-border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--dur-fast);
  font-size: var(--fs-xs);
}
.starter-item.checked .starter-checkbox {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #0f0e13;
}
.starter-item.checked .starter-text {
  text-decoration: line-through;
  color: var(--clr-text-mute);
}
.starter-text {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  transition: all var(--dur-fast);
}

/* ============================
   BREED QUIZ
   ============================ */
.quiz-section {
  padding: var(--sp-3xl) var(--sp-2xl);
  text-align: center;
}
.quiz-intro {
  max-width: 600px; margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-2xl);
  background: linear-gradient(135deg, rgba(255,160,50,.08), rgba(139,92,246,.08));
  border-radius: var(--rad-xl);
  border: 2px solid var(--clr-border);
}
.quiz-intro-icon { font-size: 4rem; margin-bottom: var(--sp-md); }
.quiz-start-btn {
  margin-top: var(--sp-xl);
  padding: var(--sp-md) var(--sp-2xl);
  background: linear-gradient(135deg, var(--clr-accent), #f59e0b);
  color: #0f0e13;
  font-size: var(--fs-base); font-weight: 700;
  border-radius: var(--rad-full);
  cursor: pointer; border: none;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: 0 4px 20px rgba(255,160,50,.3);
}
.quiz-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(255,160,50,.5);
}

/* Quiz Modal */
.quiz-modal {
  position: fixed; inset: 0;
  background: var(--clr-bg);
  z-index: 3000;
  display: none; flex-direction: column;
  overflow-y: auto;
}
.quiz-modal.active { display: flex; }
.quiz-modal-close {
  position: absolute; top: var(--sp-lg); right: var(--sp-xl);
  width: 44px; height: 44px;
  background: var(--clr-surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg);
  cursor: pointer; border: none; color: var(--clr-text);
  z-index: 10; transition: background var(--dur-fast);
}
.quiz-modal-close:hover { background: var(--clr-accent); color: #0f0e13; }
.quiz-progress {
  padding: var(--sp-xl) var(--sp-2xl) 0;
  text-align: center;
}
.quiz-progress-bar {
  height: 6px; background: var(--clr-surface);
  border-radius: var(--rad-full); overflow: hidden;
  max-width: 400px; margin: 0 auto var(--sp-sm);
}
.quiz-progress-bar::after {
  content: '';
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--clr-accent), #f59e0b);
  border-radius: var(--rad-full);
  width: var(--quiz-progress, 12.5%);
  transition: width .4s var(--ease-out);
}
.quiz-progress-text {
  font-size: var(--fs-sm); color: var(--clr-text-mute);
}
.quiz-body {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--sp-2xl);
  animation: fadeInUp .4s var(--ease-out);
}
.quiz-question {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl); font-weight: 700;
  margin-bottom: var(--sp-2xl);
  text-align: center;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
  max-width: 700px; width: 100%;
}
.quiz-option {
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--clr-bg-raised);
  border: 2px solid var(--clr-border);
  border-radius: var(--rad-lg);
  cursor: pointer;
  text-align: center;
  transition: all var(--dur-fast);
}
.quiz-option:hover {
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,160,50,.15);
}
.quiz-option-icon { font-size: 2rem; margin-bottom: var(--sp-sm); display: block; }
.quiz-option-text { font-size: var(--fs-sm); font-weight: 500; }

/* Quiz Result */
.quiz-result {
  display: none;
  padding: var(--sp-2xl);
  text-align: center;
  animation: fadeInUp .5s var(--ease-out);
}
.quiz-result.active { display: block; }
.quiz-result-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl); font-weight: 800;
  margin-bottom: var(--sp-md);
}
.quiz-result-subtitle {
  font-size: var(--fs-sm); color: var(--clr-text-dim);
  margin-bottom: var(--sp-2xl);
}
.quiz-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
  max-width: 1100px; margin: 0 auto var(--sp-2xl);
}
.quiz-match-card {
  background: var(--clr-bg-raised);
  border-radius: var(--rad-lg);
  padding: var(--sp-xl);
  border: 2px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.quiz-match-card:first-child {
  border-color: var(--clr-accent);
}
.quiz-match-rank {
  position: absolute; top: var(--sp-sm); left: var(--sp-sm);
  background: var(--clr-accent); color: #0f0e13;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-sm);
}
.quiz-match-img {
  width: 80px; height: 80px; border-radius: var(--rad-lg);
  background-size: cover; background-position: center;
  margin: 0 auto var(--sp-md);
}
.quiz-match-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-xs);
}
.quiz-match-pct {
  font-size: var(--fs-2xl); font-weight: 800;
  color: var(--clr-accent); margin-bottom: var(--sp-sm);
}
.quiz-match-reason {
  font-size: var(--fs-xs); color: var(--clr-text-dim); line-height: 1.6;
}
.quiz-retry-btn {
  padding: var(--sp-md) var(--sp-2xl);
  background: var(--clr-surface);
  color: var(--clr-text);
  font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--rad-full);
  cursor: pointer; border: 2px solid var(--clr-border);
  transition: all var(--dur-fast);
}
.quiz-retry-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

@media (max-width: 768px) {
  .compare-selectors { flex-direction: column; }
  .compare-vs { margin: var(--sp-sm) 0; }
  .compare-cards { grid-template-columns: 1fr; }
  .compare-bar-row { grid-template-columns: 1fr; gap: var(--sp-xs); }
  .compare-bar-label { text-align: left; }
  .myths-grid { grid-template-columns: 1fr; }
  .knowledge-tabs { flex-wrap: wrap; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-result-grid { grid-template-columns: 1fr; }
}

/* ============================
   FLOATING TEXT TOC
   ============================ */
.floating-toc {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.floating-toc.visible {
  opacity: 1;
  pointer-events: auto;
}
.toc-item {
  display: block;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,.35);
  padding: 6px 14px;
  border-radius: var(--rad-sm);
  text-align: right;
  transition: all var(--dur-fast);
  border-right: 2px solid transparent;
  letter-spacing: .02em;
}
.toc-item:hover {
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.04);
}
.toc-item.active {
  color: var(--clr-accent);
  font-weight: 700;
  border-right-color: var(--clr-accent);
  background: rgba(244,166,35,.06);
}

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), #e8923a);
  color: #0f0e13;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--dur-med) var(--ease-out);
  box-shadow: 0 4px 16px rgba(244,166,35,.3);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(244,166,35,.5);
}

/* Hide TOC on mobile */
@media (max-width: 768px) {
  .floating-toc { display: none; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
}
