/* ================================================================
   PetHub Tools — Premium Design System (v3 · AI 2026)
   Modern, glassy, animated. Dark-on-light hybrid.
   ================================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand-50:  #fff5f3;
  --brand-100: #ffe4e0;
  --brand-200: #ffc9c1;
  --brand-300: #ffa093;
  --brand-400: #ff7e6c;
  --brand-500: #ff6b6b;   /* Primary */
  --brand-600: #e85555;
  --brand-700: #c54242;
  --brand-800: #a23232;
  --accent-400: #4ecdc4;  /* Secondary */
  --accent-500: #2eb5ac;
  --accent-warm: #ff8e53;
  --accent-yellow: #ffe66d;

  /* Neutrals */
  --gray-0:   #ffffff;
  --gray-25:  #fdfdfe;
  --gray-50:  #f7f9fc;
  --gray-100: #eef1f6;
  --gray-150: #e5e9f0;
  --gray-200: #d9dee7;
  --gray-300: #b9c1cf;
  --gray-400: #8a94a6;
  --gray-500: #6c7689;
  --gray-600: #4d5566;
  --gray-700: #343a48;
  --gray-800: #1f2433;
  --gray-900: #0f1322;

  /* Semantic */
  --color-bg:        var(--gray-0);
  --color-bg-soft:   var(--gray-50);
  --color-bg-muted:  var(--gray-100);
  --color-text:      var(--gray-800);
  --color-text-soft: var(--gray-500);
  --color-border:    var(--gray-150);
  --color-primary:   var(--brand-500);
  --color-primary-hover: var(--brand-600);
  --color-success:   #10b981;
  --color-warning:   #f59e0b;
  --color-error:     #ef4444;

  /* Surfaces */
  --surface-1: #ffffff;
  --surface-2: #fafbfd;
  --surface-3: #f4f6fa;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  --gradient-cool:  linear-gradient(135deg, #4ECDC4 0%, #44A1FF 100%);
  --gradient-soft:  linear-gradient(135deg, #fff5f3 0%, #f0fbfa 100%);
  --gradient-hero:  radial-gradient(ellipse at top left, #fff5f3 0%, transparent 50%),
                    radial-gradient(ellipse at bottom right, #f0fbfa 0%, transparent 50%),
                    linear-gradient(180deg, #fdfdfe 0%, #f7f9fc 100%);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', sans-serif;

  /* Sizing */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 19, 34, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 19, 34, 0.05), 0 1px 2px rgba(15, 19, 34, 0.04);
  --shadow-md: 0 8px 16px rgba(15, 19, 34, 0.06), 0 2px 6px rgba(15, 19, 34, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 19, 34, 0.10), 0 4px 12px rgba(15, 19, 34, 0.05);
  --shadow-xl: 0 32px 64px rgba(15, 19, 34, 0.14);
  --shadow-brand: 0 12px 32px rgba(255, 107, 107, 0.28);
  --shadow-brand-sm: 0 4px 12px rgba(255, 107, 107, 0.20);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition: 220ms var(--ease-out);
  --transition-slow: 380ms var(--ease-out);

  /* Container */
  --container-width: 1180px;
  --container-padding: 24px;
}

@media (max-width: 520px) {
  :root {
    --container-padding: 16px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-hover); }
::selection { background: var(--brand-200); color: var(--gray-800); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { margin: 0 0 0.6em; line-height: 1.15; font-weight: 800; letter-spacing: -0.022em; color: var(--gray-900); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-text-soft); line-height: 1.6; }
.muted { color: var(--color-text-soft); }
.eyebrow { display: inline-block; padding: 6px 14px; background: var(--brand-50); color: var(--brand-700); border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

/* ---------- Layout ---------- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
}
.section-soft { background: var(--surface-2); }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; fill: currentColor; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-left: max(4px, env(safe-area-inset-left, 0px));
  padding-right: max(4px, env(safe-area-inset-right, 0px));
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; flex-wrap: nowrap; }
.nav-sheet {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.nav-sheet .main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.nav-sheet .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--gray-900); transition: opacity var(--transition-fast); }
.brand:hover { opacity: 0.85; color: var(--gray-900); }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient-brand); display: grid; place-items: center; box-shadow: var(--shadow-brand-sm); }
.brand-logo svg { width: 22px; height: 22px; color: white; }
/* AI mark: sparkles icon + multi-stop gradient (matches site AI theme) */
.brand-logo--ai {
  background: var(--ai-gradient, linear-gradient(135deg, #ff6b6b 0%, #d946ef 45%, #8b5cf6 100%));
  box-shadow:
    0 4px 18px rgba(217, 70, 239, 0.28),
    0 2px 8px rgba(255, 107, 107, 0.18);
}
.brand-logo--ai svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 800; font-size: 1.05rem; }
.brand-text small { font-size: 0.65rem; color: var(--brand-500); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.main-nav a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; font-size: 0.95rem; transition: all var(--transition-fast); touch-action: manipulation; }
.main-nav a:hover { background: var(--gray-100); color: var(--gray-900); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-select {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 28px 8px 10px;
  min-height: 44px;
  max-width: 10rem;
  cursor: pointer;
  appearance: auto;
  touch-action: manipulation;
}
[dir="rtl"] .lang-select {
  padding: 8px 10px 8px 28px;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  margin-inline: 2px;
  padding: 2px;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: var(--radius-sm);
  place-items: center;
  flex-shrink: 0;
  touch-action: manipulation;
  box-sizing: border-box;
}
.menu-toggle .icon {
  width: 1.35em;
  height: 1.35em;
}
@media (max-width: 880px) {
  .site-header .container.nav-wrap {
    padding-left: calc(var(--container-padding) + 4px);
    padding-right: calc(var(--container-padding) + 4px);
  }
  .nav-wrap { padding: 12px 0; gap: 8px; }
  .nav-wrap .brand {
    margin-inline-end: 10px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .nav-wrap .brand-text {
    min-width: 0;
  }
  .nav-wrap .brand-text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(46vw, 220px);
  }
  .nav-wrap .brand-text small {
    display: none;
  }
  .nav-sheet {
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }
  .nav-sheet .nav-actions {
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-end;
  }
  .nav-sheet .lang-select {
    max-width: min(44vw, 11rem);
  }
  .nav-sheet .main-nav,
  .nav-sheet .nav-actions .nav-login,
  .nav-sheet .nav-actions .btn-ai-nav {
    display: none !important;
  }
  .menu-toggle { display: grid; }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .nav-wrap {
    flex-wrap: wrap;
    row-gap: 0;
  }
  body.menu-open .nav-sheet {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    flex: 1 0 100%;
    order: 3;
    gap: 0;
    margin: 8px calc(-1 * var(--container-padding)) 0;
    padding: 0 var(--container-padding) 4px;
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
  }
  body.menu-open .nav-sheet .main-nav {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    padding: 12px 0 4px;
    gap: 4px;
  }
  body.menu-open .nav-sheet .main-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
  }
  body.menu-open .nav-sheet .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 0 16px;
  }
  body.menu-open .nav-sheet .nav-actions .lang-select {
    max-width: none;
    width: 100%;
  }
  body.menu-open .nav-sheet .nav-actions .nav-login,
  body.menu-open .nav-sheet .nav-actions .btn-ai-nav {
    display: flex !important;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    align-items: center;
  }
  body.menu-open .nav-sheet .nav-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

/* ---------- Buttons (premium) ---------- */
.btn {
  --btn-bg: var(--gray-900);
  --btn-color: white;
  --btn-shadow: var(--shadow-sm);
  --btn-shadow-hover: var(--shadow-md);

  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border: none; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-color);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: all var(--transition-fast);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow-hover); color: var(--btn-color); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-primary {
  --btn-bg: var(--gradient-brand);
  --btn-color: white;
  --btn-shadow: var(--shadow-brand-sm);
  --btn-shadow-hover: var(--shadow-brand);
  background: var(--gradient-brand);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition-fast);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--gray-800);
  --btn-shadow: none;
  --btn-shadow-hover: none;
  border: 1px solid var(--color-border);
  background: white;
}
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-secondary {
  --btn-bg: var(--accent-400);
  --btn-color: white;
}

.btn-large { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-small { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-google {
  --btn-bg: white;
  --btn-color: #3c4043;
  border: 1px solid #dadce0;
  width: 100%; padding: 14px;
}
.btn-google-prominent {
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}
.btn-google-prominent:hover { box-shadow: 0 2px 6px rgba(60, 64, 67, 0.16); }
.btn-google:hover { background: #f8f9fa; color: #3c4043; }
.btn-google::before { display: none; }

/* Header: compact Google OAuth entry */
.btn-google-nav {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}
.btn-google-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 520px) {
  .btn-google-nav .btn-google-nav__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .btn-google-nav { padding: 8px 10px; }
}

.auth-google-pending-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--gray-700);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-sm);
}
.auth-google-setup-details {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--gray-50);
  font-size: 0.88rem;
  line-height: 1.55;
}
.auth-google-setup-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-800);
}
.auth-google-setup-details-ol { margin: 10px 0 0 1.1rem; padding: 0; }
.auth-google-setup-details-ol li { margin-bottom: 8px; }

.auth-google-secure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 26rem;
}
.auth-google-secure-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 2px;
  color: #059669;
}
.auth-google-secure-icon .icon {
  width: 18px;
  height: 18px;
}

.auth-google-setup-hint {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--gray-50);
  font-size: 0.9rem;
  line-height: 1.55;
}
.auth-google-setup-hint ol { margin: 10px 0 0 1.1rem; padding: 0; }
.auth-google-setup-hint li { margin-bottom: 10px; }
.auth-google-setup-hint--compact { margin-bottom: 16px; padding: 14px 16px; }
.auth-callback-code {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  word-break: break-all;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,107,107,0.08), transparent 30%),
                    radial-gradient(circle at 80% 70%, rgba(78,205,196,0.10), transparent 35%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; } }
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero-subtitle { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--color-text-soft); margin-bottom: 36px; max-width: 540px; }
@media (max-width: 880px) { .hero-subtitle { margin-left: auto; margin-right: auto; } }

.hero-search {
  display: flex; max-width: 560px; background: white; padding: 6px;
  border-radius: var(--radius-full); box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}
@media (max-width: 880px) { .hero-search { margin-left: auto; margin-right: auto; } }
.hero-search input { flex: 1; border: none; padding: 14px 22px; font-size: 0.98rem; background: transparent; outline: none; color: var(--color-text); border-radius: var(--radius-full); }
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search button { display: inline-flex; align-items: center; gap: 6px; background: var(--gradient-brand); color: white; border: none; padding: 12px 22px; border-radius: var(--radius-full); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-brand-sm); transition: all var(--transition-fast); }
.hero-search button:hover { transform: translateY(-1px); box-shadow: var(--shadow-brand); }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-stats { justify-content: center; } }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); }
.hero-stats span { font-size: 0.85rem; color: var(--color-text-soft); }

.hero-image { display: grid; place-items: center; position: relative; }
.hero-image img { max-width: 540px; width: 100%; filter: drop-shadow(0 30px 40px rgba(255, 107, 107, 0.18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Section header ---------- */
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.section-header.center { flex-direction: column; align-items: center; text-align: center; }
.section-header > div:first-child { max-width: 600px; }
.section-header h2 { margin-bottom: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-primary); }
.link-arrow:hover { color: var(--color-primary-hover); gap: 10px; }

.page-header { text-align: center; margin-bottom: 60px; padding-top: 40px; }
.page-header .eyebrow { margin-bottom: 18px; }

/* ---------- Tool cards ---------- */
.grid-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  align-items: stretch;
}
.tool-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, var(--gray-50) 55%, #ffffff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  transition: all var(--transition);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}
.tool-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-800);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(255, 107, 107, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.22);
}
.tool-card-badge .live-dot { flex-shrink: 0; }
.tool-card-badge--muted {
  background: rgba(15, 19, 34, 0.04);
  border-color: rgba(15, 19, 34, 0.08);
  color: var(--gray-700);
}
.tool-card-stack {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tool-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 14px;
  flex-shrink: 0;
  background: var(--gray-100);
}
.tool-card-stack > .tool-icon {
  margin: 0 0 14px;
}
.tool-card-stack > h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.tool-card-stack > p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.55em * 3);
}
.tool-card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-soft);
  opacity: 0; transition: opacity var(--transition);
  z-index: -1;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--color-text); }
.tool-card:hover::after { opacity: 1; }
.tool-card.compact { padding: 22px 20px 20px; }

.tool-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center;
  font-size: 1.55rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.tool-card:hover .tool-icon { transform: scale(1.08) rotate(-4deg); }
.tool-icon.style-cool { background: #e6f9f7; color: var(--accent-500); }
.tool-icon.style-warm { background: #fff4e6; color: #d97706; }

.tool-card .tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.92rem;
  transition: gap var(--transition-fast);
}
.tool-card .tool-cta .icon { width: 16px; height: 16px; flex-shrink: 0; }
.tool-card:hover .tool-cta { gap: 10px; }

/* ---------- Feature blocks ---------- */
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-border); }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--gradient-brand); color: white;
  display: grid; place-items: center; margin: 0 auto 22px;
  font-size: 2rem; box-shadow: var(--shadow-brand-sm);
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--color-text-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Forms ---------- */
.form-card { display: flex; flex-direction: column; gap: 18px; }
.form-card label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 0.92rem; color: var(--gray-700); }
.form-card input, .form-card select, .form-card textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.98rem;
  background: white; color: var(--color-text);
  transition: all var(--transition-fast);
}
.form-card input:hover, .form-card select:hover, .form-card textarea:hover { border-color: var(--gray-300); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.checkbox { flex-direction: row !important; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; cursor: pointer; }
.checkbox input { accent-color: var(--brand-500); width: 18px; height: 18px; }

/* ---------- Auth ---------- */
.auth-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 520px) { .auth-card { padding: 32px 24px; } }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-card .muted { margin-bottom: 28px; }
.divider { position: relative; text-align: center; margin: 24px 0; color: var(--color-text-soft); font-size: 0.85rem; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--color-border); }
.divider span { position: relative; padding: 0 16px; background: white; }
.auth-links { display: flex; justify-content: space-between; margin-top: 24px; font-size: 0.92rem; gap: 12px; flex-wrap: wrap; }

/* ---------- Flash messages ---------- */
.flash { padding: 14px 20px; border-radius: var(--radius); margin: 16px 0; font-weight: 500; max-width: var(--container-width); margin-left: auto; margin-right: auto; display: flex; align-items: center; gap: 10px; animation: slideDown 280ms var(--ease-out); }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Tool page ---------- */
.breadcrumb { padding: 24px 0; display: flex; gap: 8px; color: var(--color-text-soft); font-size: 0.88rem; }
.breadcrumb a { color: var(--color-text-soft); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--gray-300); }

.tool-hero {
  padding: 40px 0 50px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}
.tool-hero-icon { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 2.6rem; background: white; box-shadow: var(--shadow-md); }
.tool-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }

.calc-widget {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
}
@media (max-width: 600px) { .calc-widget { padding: 24px; } }
.calc-form { display: flex; flex-direction: column; gap: 22px; }
.calc-form button { margin-top: 4px; }

/* Calculator fields: label above control, aligned grid, modern inputs */
.calc-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
  align-items: start;
}
.calc-form .form-row--weight-unit {
  grid-template-columns: minmax(0, 1fr) minmax(108px, 140px);
}
@media (max-width: 560px) {
  .calc-form .form-row,
  .calc-form .form-row--weight-unit {
    grid-template-columns: 1fr;
  }
}
.calc-form .calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.calc-form .calc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  line-height: 1.3;
}
.calc-form .calc-field input[type="number"],
.calc-form .calc-field input[type="date"],
.calc-form .calc-field input[type="text"],
.calc-form .calc-field input[type="email"],
.calc-form .calc-field input[type="tel"],
.calc-form .calc-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}
.calc-form .calc-field input[type="date"] {
  min-height: 52px;
  padding: 12px 14px 12px 16px;
  color-scheme: light;
  cursor: pointer;
}
.calc-form .calc-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.88;
  padding: 8px;
  margin-right: 2px;
  border-radius: 10px;
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.calc-form .calc-field input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
  background: rgba(139, 92, 246, 0.14);
}
.calc-form .calc-field input[type="date"]:focus::-webkit-calendar-picker-indicator {
  background: rgba(139, 92, 246, 0.2);
}
.calc-form .calc-field select {
  cursor: pointer;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  background-color: var(--gray-50);
}
.calc-form .calc-field input:hover,
.calc-form .calc-field select:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: white;
}
.calc-form .calc-field select:hover {
  background-color: white;
}
.calc-form .calc-field input:focus,
.calc-form .calc-field select:focus {
  outline: none;
  border-color: var(--ai-violet, #8b5cf6);
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}
.calc-form .calc-field.has-error input,
.calc-form .calc-field.has-error select {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Highlighted date row (heat calendar & any tool with .calc-date-shell) */
.calc-date-shell {
  position: relative;
  padding: 2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(255, 107, 107, 0.35), rgba(78, 205, 196, 0.35));
  box-shadow: 0 16px 40px -24px rgba(139, 92, 246, 0.45);
}
.calc-date-shell::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.08), transparent 55%);
  pointer-events: none;
}
.calc-date-shell-inner {
  position: relative;
  z-index: 1;
  padding: 18px 20px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
}
.calc-date-shell-inner .calc-field {
  margin: 0;
}
.calc-date-shell-inner .calc-field input[type="date"] {
  min-height: 54px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  box-shadow: inset 0 1px 2px rgba(15, 19, 34, 0.04);
}
.calc-date-hint {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray-600);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-sm);
}
.calc-form .calc-field-error {
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 600;
}
.calc-form .calc-field input::placeholder {
  color: var(--gray-400);
}
.calc-form .calc-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(255, 107, 107, 0.05));
  border: 1.5px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}
.calc-form .calc-checkbox:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: white;
  box-shadow: var(--shadow-xs);
}
.calc-form .calc-checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--ai-violet, #8b5cf6);
  border-radius: 5px;
  cursor: pointer;
}
.calc-form .calc-checkbox-text {
  user-select: none;
  line-height: 1.35;
}

.result-box {
  margin-top: 32px;
  padding: 28px;
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  animation: scaleIn 360ms var(--ease-out);
  border: 1px solid var(--brand-100);
}
.result-box.hidden { display: none; }
.result-main { font-size: 1.25rem; margin-bottom: 18px; line-height: 1.4; color: var(--gray-800); font-weight: 500; }
.result-main .result-number { font-size: 1.8rem; color: var(--brand-600); font-weight: 800; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.result-item {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  padding: 16px 16px 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  border-left: 3px solid rgba(139, 92, 246, 0.75);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.result-item:hover {
  border-color: rgba(139, 92, 246, 0.22);
  box-shadow: 0 8px 24px -12px rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
}
.result-item .label { display: block; font-size: 0.75rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.result-item span:not(.label) { font-weight: 600; color: var(--gray-800); }
.result-explanation { margin-top: 16px; color: var(--gray-600); font-size: 0.95rem; line-height: 1.65; white-space: pre-line; }
.result-notes { margin: 16px 0 0; padding-left: 20px; }
.result-notes li { margin-bottom: 6px; color: var(--color-text-soft); font-size: 0.92rem; }

/* ---------- Built-in guide / checklist tools (GuideChecklists) ---------- */
.guide-tool { display: flex; flex-direction: column; gap: 22px; }
.guide-tool-lead { margin: 0 0 4px; font-size: 1.02rem; color: var(--gray-700); line-height: 1.55; }
.guide-tool-section {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
  box-shadow: var(--shadow-xs);
}
.guide-tool-h {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.guide-tool-list { margin: 0; padding-left: 1.2rem; color: var(--gray-700); line-height: 1.6; }
.guide-tool-list li { margin-bottom: 8px; }
.guide-tool-list li::marker { color: var(--brand-500); }
.guide-tool-foot { margin: 0; font-size: 0.88rem; }
.guide-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 520px) { .guide-calc-grid { grid-template-columns: 1fr; } }
.guide-tool--interactive .calc-field { margin: 0; }
.guide-tool-result {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--gray-900);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.guide-quiz-q {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--gray-50);
}
.guide-quiz-q legend { font-weight: 800; padding: 0 8px; color: var(--gray-900); }
.guide-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-800);
}
.guide-quiz-opt input { margin-top: 4px; accent-color: var(--ai-violet, #8b5cf6); }
.guide-tool--quiz .btn { margin-top: 8px; }

@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.tool-content { margin: 50px 0; }
.tool-content h2 { margin-top: 36px; }

/* Legal pages (Privacy, Terms) — readable long-form */
.legal-doc {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--gray-700);
  padding-bottom: 48px;
}
.legal-doc h2 {
  margin: 2.35rem 0 0.85rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.legal-doc h2:first-of-type { margin-top: 1.25rem; }
.legal-doc p { margin: 0 0 1.05em; }
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1.15em;
  padding-left: 1.4rem;
}
.legal-doc li { margin-bottom: 0.55em; }
.legal-doc li::marker { color: var(--ai-violet, #8b5cf6); }
.legal-doc a {
  font-weight: 600;
  color: var(--ai-indigo, #6366f1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-doc a:hover { color: var(--ai-violet, #8b5cf6); }
.legal-doc strong { color: var(--gray-800); }

.category-block { margin-bottom: 60px; }
.category-title { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 22px; border-bottom: 3px solid var(--brand-500); }

/* ---------- Breeds / stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 24px 0 36px; }
.stat-card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; transition: all var(--transition-fast); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-label { font-size: 0.78rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-top: 6px; line-height: 1.2; }
.stat-sub { font-size: 0.78rem; color: var(--color-text-soft); margin-top: 4px; }
.breed-hero { border-radius: var(--radius-lg); margin-bottom: 32px; width: 100%; box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 70px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--gray-400); font-size: 0.93rem; transition: color var(--transition-fast); }
.site-footer a:hover { color: white; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: white; margin-bottom: 14px; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.footer-brand .brand-logo svg { width: 20px; height: 20px; }
.footer-tagline {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 440px;
  margin: 0 0 6px;
}
.footer-share-heading {
  margin: 18px 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.footer-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.footer-share a,
.footer-share .footer-share-copy {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: var(--gray-300);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-share .footer-share-copy {
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.footer-share a .icon,
.footer-share .footer-share-copy .icon { width: 18px; height: 18px; }
/* Sprite "link" is stroke-only; global .icon { fill: currentColor } would hide it */
.footer-share .footer-share-copy .icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-share a .icon {
  fill: currentColor;
  stroke: none;
}
.footer-share a:hover,
.footer-share .footer-share-copy:hover {
  background: var(--brand-500);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}
.footer-share .footer-share-fb:hover { background: #1877f2; }
.footer-share .footer-share-x:hover { background: #0f1419; }
.footer-share .footer-share-li:hover { background: #0a66c2; }
.footer-share .footer-share-wa:hover { background: #25d366; }
.footer-share .footer-share-copy:hover {
  background: var(--ai-gradient, linear-gradient(135deg, #ff6b6b, #8b5cf6));
}
.footer-copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 0.85rem; text-align: center; color: var(--gray-400); }

/* ---------- About page ---------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}
.about-hero-card {
  border-radius: 24px;
  padding: 28px;
}
.about-hero-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}
.about-hero-card p {
  color: var(--gray-700);
  margin-bottom: 12px;
}
.about-visual {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: white;
  box-shadow: var(--shadow-md);
}
.about-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.about-metrics > div {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
}
.about-metrics strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gray-900);
}
.about-metrics span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--gray-600);
}
.about-grid-2 {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.about-panel {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 18px;
  padding: 18px 18px 16px;
}
.about-panel h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.about-panel ul {
  margin: 0;
  padding-left: 18px;
}
.about-panel li {
  margin: 6px 0;
  color: var(--gray-700);
}
.about-faq {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.about-faq-item {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
}
.about-faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.about-faq-item p {
  margin: 0;
  color: var(--gray-700);
}
@media (max-width: 960px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  .about-grid-2,
  .about-metrics {
    grid-template-columns: 1fr;
  }
}

.breeds-hub-visual img,
.breeds-hub-visual > svg {
  max-height: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Breeds library hub (hero + grid + filters) ---------- */
.breeds-library-hero-wrap {
  padding-top: 0;
  padding-bottom: 0;
}
.breeds-library-hero {
  position: relative;
  min-height: clamp(320px, 52vw, 520px);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  margin-bottom: 8px;
}
.breeds-library-hero__picture,
.breeds-library-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.breeds-library-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 12, 0.1) 0%, rgba(5, 6, 12, 0.55) 45%, rgba(5, 6, 12, 0.82) 100%),
    radial-gradient(900px 500px at 80% 20%, rgba(139, 92, 246, 0.25), transparent 55%);
  pointer-events: none;
}
.breeds-library-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 10vw, 100px) 0 clamp(40px, 8vw, 72px);
  max-width: 900px;
}
.breeds-library-hero__eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.breeds-library-hero__eyebrow .icon { color: #c4b5fd; }
.breeds-library-hero__h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}
.breeds-library-hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 14px;
}
.breeds-library-hero__caption {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 620px;
  line-height: 1.5;
}
.page-header--breeds-grid {
  text-align: center;
  margin-bottom: 28px;
  padding-top: 12px;
}
.breeds-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 48px -24px rgba(15, 19, 34, 0.2);
}
.breeds-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breeds-chip {
  border: 1px solid rgba(15, 19, 34, 0.12);
  background: #fff;
  color: var(--gray-800);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.breeds-chip:hover {
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--ai-violet);
}
.breeds-chip.is-active {
  background: var(--ai-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.45);
}
.breeds-search-wrap { flex: 1 1 220px; max-width: 360px; }
.breeds-search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 19, 34, 0.1);
  font: inherit;
  background: #fff;
}
.breeds-search-input:focus {
  outline: 2px solid rgba(139, 92, 246, 0.35);
  outline-offset: 2px;
}
.breeds-breed-grid { margin-top: 4px; }
.breed-card-thumb { background: var(--gray-100); }
.breeds-cross-links__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.btn-ai.btn-ai--ghost {
  background: transparent;
  animation: none;
  border: 2px solid rgba(139, 92, 246, 0.4);
}
.btn-ai.btn-ai--ghost .btn-ai-content {
  background: rgba(255, 255, 255, 0.95);
  color: #5b21b6;
}
.btn-ai.btn-ai--ghost:hover {
  border-color: rgba(217, 70, 239, 0.65);
}

/* Breed profile */
.breed-page-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 0 28px;
  background: var(--gray-100);
}
.breed-page-hero__img {
  width: 100%;
  max-height: min(420px, 56vw);
  object-fit: cover;
  display: block;
}
.breed-page-hero__cap {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--gray-600);
  background: linear-gradient(180deg, #fff, #f8f7ff);
  border-top: 1px solid rgba(139, 92, 246, 0.12);
}
.breed-prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}
.breed-prose p {
  color: var(--gray-700);
  line-height: 1.7;
}
.breed-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center; padding: 60px 24px;
  background: var(--gradient-soft); border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}
.empty-state img { max-width: 280px; margin: 0 auto 24px; }
.empty-state p { color: var(--color-text-soft); margin: 0 auto; max-width: 460px; }

/* ---------- Tags / badges (frontend) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--brand-50); color: var(--brand-700);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
}

/* ---------- Loading state ---------- */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   AI 2026 · Design Layer
   New tokens, gradients, glass, bento grid, glow buttons.
   Additive — does not affect older pages.
   ================================================================ */

:root {
  /* AI palette */
  --ai-violet: #8b5cf6;
  --ai-indigo: #6366f1;
  --ai-fuchsia: #d946ef;
  --ai-pink: #ec4899;
  --ai-cyan: #22d3ee;
  --ai-teal: #2dd4bf;
  --ai-amber: #f59e0b;

  /* AI gradients */
  --ai-gradient: linear-gradient(135deg, #ff6b6b 0%, #d946ef 45%, #8b5cf6 100%);
  --ai-gradient-cool: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #8b5cf6 100%);
  --ai-gradient-sunset: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 45%, #ffc265 100%);
  --ai-conic: conic-gradient(from 180deg at 50% 50%, #ff6b6b, #ff8e53, #ffd36b, #2dd4bf, #6366f1, #d946ef, #ff6b6b);
  --ai-gradient-mesh:
    radial-gradient(1200px 600px at -10% -20%, rgba(255, 107, 107, 0.25), transparent 55%),
    radial-gradient(900px 500px at 110% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(34, 211, 238, 0.18), transparent 55%),
    linear-gradient(180deg, #fdfbff 0%, #f6f4ff 100%);

  /* Dark surfaces */
  --ink-0:  #05060c;
  --ink-1:  #0a0b14;
  --ink-2:  #10111d;
  --ink-3:  #161827;
  --ink-4:  #1f2236;

  /* Glow shadows */
  --glow-brand: 0 10px 40px -10px rgba(255, 107, 107, 0.55), 0 0 0 1px rgba(255, 107, 107, 0.18) inset;
  --glow-violet: 0 10px 40px -10px rgba(139, 92, 246, 0.55);
  --glow-ring: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px -20px rgba(8, 10, 30, 0.35);
}

/* ---------- Utilities ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 80px -30px rgba(15, 19, 34, 0.22);
}

.shimmer-text {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff8e53 20%, #d946ef 45%, #8b5cf6 70%, #22d3ee 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-flow 6s linear infinite;
  display: inline-block;
}
@keyframes shimmer-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.eyebrow-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.10), rgba(139, 92, 246, 0.10));
  color: var(--gray-800);
  border: 1px solid rgba(139, 92, 246, 0.22);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow-ai .icon { width: 14px; height: 14px; color: var(--ai-violet); }
.eyebrow-dark {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}
.eyebrow-dark .icon { color: #ffcfcf; }

.on-dark { color: #fff; }
.on-dark-sub { color: rgba(255, 255, 255, 0.72) !important; }

/* ---------- AI button (hero/CTA signature) ---------- */
.btn-ai {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: none;
  border-radius: 999px;
  background: var(--ai-conic);
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  transition: transform 220ms var(--ease-out);
  animation: ai-border-spin 8s linear infinite;
}
.btn-ai:hover { transform: translateY(-2px); color: #fff; }
.btn-ai:active { transform: translateY(0); }
.btn-ai-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a1330 0%, #0a0b14 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 220ms var(--ease-out);
}
.btn-ai-content .icon { width: 16px; height: 16px; }
.btn-ai:hover .btn-ai-content {
  background: linear-gradient(135deg, #231a46 0%, #0f1022 100%);
}
.btn-ai-glow {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: var(--ai-gradient);
  filter: blur(22px);
  opacity: 0.55;
  z-index: 0;
  transition: opacity 260ms var(--ease-out);
}
.btn-ai:hover .btn-ai-glow { opacity: 0.95; }
.btn-ai-lg .btn-ai-content { padding: 16px 28px; font-size: 1rem; }
.btn-ai-lg .btn-ai-content .icon { width: 18px; height: 18px; }

@keyframes ai-border-spin {
  to { --_a: 1turn; transform: rotate(0); }
}
/* Fallback rotate via background-position — supported widely */
.btn-ai {
  background-size: 200% 200%;
  animation: ai-gradient-shift 6s ease infinite;
}
@keyframes ai-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-ghost-dark {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.28); }

/* ---------- AI pill / chip ---------- */
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 999px;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 6px 20px -10px rgba(139, 92, 246, 0.35);
  transition: all 220ms var(--ease-out);
  backdrop-filter: blur(10px);
}
.ai-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(139, 92, 246, 0.45); color: var(--gray-900); }
.ai-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ai-gradient);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
  animation: ai-pulse 2.4s ease-in-out infinite;
}
.ai-pill-arrow { display: inline-flex; color: var(--ai-violet); }
.ai-pill-arrow .icon { width: 14px; height: 14px; }
@keyframes ai-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(139, 92, 246, 0.05); }
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--gray-700);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 180ms var(--ease-out);
  backdrop-filter: blur(8px);
}
.ai-chip:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--gray-900);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(139, 92, 246, 0.35);
}

/* ---------- Live dot ---------- */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: live-pulse 2s ease-out infinite;
  margin-right: 6px;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Hero AI ---------- */
.hero-ai {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ai-gradient-mesh);
}
.hero-ai-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 19, 34, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 19, 34, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 90%);
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/></svg>");
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}
.hero-orb-1 { width: 420px; height: 420px; top: -80px; left: -120px; background: radial-gradient(circle, #ff6b6b, transparent 70%); }
.hero-orb-2 { width: 520px; height: 520px; top: 20px; right: -180px; background: radial-gradient(circle, #8b5cf6, transparent 70%); animation-delay: -5s; }
.hero-orb-3 { width: 380px; height: 380px; bottom: -120px; left: 40%; background: radial-gradient(circle, #22d3ee, transparent 70%); animation-delay: -9s; opacity: 0.4; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -20px) scale(1.06); }
}

.hero-ai-title {
  margin: 26px 0 18px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-ai-title .shimmer-text { display: inline-block; }

.hero-ai-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--gray-600);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* AI prompt (hero search) */
.ai-prompt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto 18px;
  padding: 7px 7px 7px 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 999px;
  box-shadow:
    0 20px 60px -20px rgba(139, 92, 246, 0.35),
    0 8px 24px -12px rgba(255, 107, 107, 0.25);
  backdrop-filter: blur(14px);
  transition: box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.ai-prompt:focus-within {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow:
    0 0 0 6px rgba(139, 92, 246, 0.12),
    0 20px 60px -20px rgba(139, 92, 246, 0.55);
}
.ai-prompt-spark { display: inline-flex; color: var(--ai-violet); }
.ai-prompt-spark .icon { width: 20px; height: 20px; }
.ai-prompt-input {
  flex: 1;
  padding: 14px 4px;
  font-size: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--gray-900);
  min-width: 0;
}
.ai-prompt-input::placeholder { color: var(--gray-400); }
@media (max-width: 560px) {
  .ai-prompt { padding: 6px 6px 6px 14px; }
  .btn-ai .btn-ai-content { padding: 10px 14px; font-size: 0.88rem; }
  .btn-ai-content span:not(.btn-ai-glow) { display: inline; }
}

.ai-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 48px;
  max-width: 760px;
}
.ai-suggestion-label { color: var(--gray-500); font-size: 0.86rem; margin-right: 4px; }

.hero-ai-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}
@media (max-width: 720px) { .hero-ai-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 19, 34, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  text-align: left;
  transition: transform 220ms var(--ease-out);
}
.stat-pill:hover { transform: translateY(-2px); }
.stat-pill-num {
  font-size: 1.4rem; font-weight: 800;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex; align-items: center;
}
.stat-pill-num.live { color: #16a34a; background: none; -webkit-text-fill-color: currentColor; font-size: 1rem; }
.stat-pill-label { font-size: 0.82rem; color: var(--gray-500); }

/* ---------- AI demo card ---------- */
.section-ai-demo { padding: 30px 0 60px; }
.ai-demo-card {
  position: relative;
  padding: 36px;
  border-radius: 28px;
  overflow: hidden;
}
@media (max-width: 640px) { .ai-demo-card { padding: 24px; } }
.ai-demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.ai-demo-title { max-width: 560px; }
.ai-demo-title h2 { margin-top: 12px; margin-bottom: 6px; }
.ai-demo-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.ai-chat { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.ai-msg { display: flex; gap: 12px; align-items: flex-start; }
.ai-msg-user { flex-direction: row-reverse; }
.ai-avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.ai-avatar .icon { width: 18px; height: 18px; }
.ai-avatar-user { background: linear-gradient(135deg, #343a48, #1f2433); }
.ai-avatar-bot {
  background: var(--ai-gradient);
  box-shadow: 0 8px 22px -8px rgba(139, 92, 246, 0.6);
  position: relative;
}
.ai-avatar-bot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 14px;
  background: var(--ai-conic);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.5;
  animation: ai-gradient-shift 5s ease infinite;
  background-size: 200% 200%;
}
.ai-bubble {
  max-width: 78%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  line-height: 1.55;
  color: var(--gray-800);
  font-size: 0.98rem;
}
.ai-msg-user .ai-bubble {
  background: linear-gradient(135deg, #101322, #1f2433);
  color: #f1f3f8;
  border-color: transparent;
  border-top-right-radius: 6px;
}
.ai-bubble-bot {
  border-top-left-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  border-color: rgba(139, 92, 246, 0.18);
  box-shadow: 0 10px 30px -18px rgba(139, 92, 246, 0.45);
  max-width: 85%;
}
.ai-bubble p { margin: 0 0 10px; }
.ai-bubble-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.78rem; margin-bottom: 10px; flex-wrap: wrap; }
.ai-bubble-tag { background: rgba(139, 92, 246, 0.08); color: #6d28d9; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.ai-bubble-ms { color: var(--gray-500); }
.ai-bubble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 12px;
}
@media (max-width: 480px) { .ai-bubble-grid { grid-template-columns: 1fr; } }
.ai-bubble-grid > div {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.ai-bubble-grid .label { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } }

/* Home “Most used agents”: three equal cards per row */
.home-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .home-agents-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .home-agents-grid { grid-template-columns: 1fr; }
}
.home-agents-grid .bento-card {
  grid-column: auto;
  grid-row: auto;
  min-height: 200px;
}

.bento-card {
  position: relative;
  grid-column: span 2;
  padding: 28px;
  min-height: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  color: var(--gray-800);
  overflow: hidden;
  isolation: isolate;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
  display: flex; flex-direction: column; gap: 8px;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(139, 92, 246, 0.45), 0 6px 18px -8px rgba(255, 107, 107, 0.2);
  color: var(--gray-800);
}
.bento-wide { grid-column: span 3; }
.bento-md   { grid-column: span 2; }
.bento-tall { grid-column: span 2; grid-row: span 2; min-height: 420px; }
@media (max-width: 960px) {
  .bento-wide, .bento-md { grid-column: span 1; }
  .bento-tall { grid-column: span 1; grid-row: auto; min-height: 220px; }
}
@media (max-width: 520px) {
  .bento-wide, .bento-md, .bento-tall { grid-column: span 1; }
}

.bento-glow {
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--a, 0deg), rgba(255,107,107,0), rgba(255,107,107,0.6), rgba(139,92,246,0.6), rgba(34,211,238,0.6), rgba(255,107,107,0));
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  z-index: -1;
  filter: blur(14px);
}
.bento-card:hover .bento-glow { opacity: 0.55; }

.bento-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.14);
  transition: transform 240ms var(--ease-out);
}
.bento-card:hover .bento-icon { transform: rotate(-4deg) scale(1.06); }
.bento-badge {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bento-card h3 { font-size: 1.25rem; margin: 6px 0 4px; }
.bento-card p { color: var(--gray-500); font-size: 0.95rem; margin: 0; flex: 1; }
.bento-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 8px 14px;
  align-self: flex-start;
  font-weight: 600; font-size: 0.88rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: all 220ms var(--ease-out);
}
.bento-cta .icon { width: 14px; height: 14px; }
.bento-card:hover .bento-cta {
  background: var(--ai-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(255, 107, 107, 0.55);
}

.home-agents-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}
.home-agents-actions .btn-large {
  min-width: 220px;
  justify-content: center;
}

/* ---------- Dark section ---------- */
.section-dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at top, #1a1330 0%, #0a0b14 70%);
  color: #fff;
  padding: 110px 0;
}
.section-dark .container { position: relative; z-index: 2; }
.dark-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dark-bg .hero-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 85%);
}
.dark-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}
.dark-orb-1 { width: 520px; height: 520px; top: -150px; left: -150px; background: radial-gradient(circle, #ff6b6b, transparent 70%); }
.dark-orb-2 { width: 600px; height: 600px; bottom: -200px; right: -200px; background: radial-gradient(circle, #8b5cf6, transparent 70%); }

.grid-features-ai {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature-ai {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.feature-ai:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.feature-ai h3 { color: #fff; font-size: 1.1rem; margin: 14px 0 6px; }
.feature-ai p { color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; margin: 0; }
.feature-ai-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ai-gradient);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 107, 107, 0.55);
  position: relative;
  isolation: isolate;
}
.feature-ai-icon::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 18px;
  background: var(--ai-conic);
  filter: blur(12px);
  opacity: 0.55;
  z-index: -1;
  background-size: 200% 200%;
  animation: ai-gradient-shift 6s ease infinite;
}
.feature-ai-icon .icon { width: 22px; height: 22px; }

/* ---------- CTA card ---------- */
.section-cta { padding: 60px 0 120px; }
.cta-card {
  position: relative;
  padding: 72px 48px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at top, #1a1330 0%, #0a0b14 80%);
  color: #fff;
}
@media (max-width: 640px) { .cta-card { padding: 48px 24px; border-radius: 24px; } }
.cta-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cta-bg .hero-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 85%);
}
.cta-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.cta-orb-1 { width: 360px; height: 360px; top: -120px; left: -80px; background: radial-gradient(circle, #ff6b6b, transparent 70%); }
.cta-orb-2 { width: 420px; height: 420px; bottom: -160px; right: -100px; background: radial-gradient(circle, #8b5cf6, transparent 70%); }
.cta-content {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
  text-align: center;
}
.cta-content h2 { margin: 16px 0 12px; font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- Header tweak (AI feel) ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 19, 34, 0.06);
}
.brand-text small {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.14em;
}
.brand-ai {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.brand-ai-dot {
  color: var(--ai-violet);
  margin: 0 3px;
  opacity: 0.65;
}
.main-nav a:hover { background: rgba(139, 92, 246, 0.08); color: var(--gray-900); }
.nav-actions .btn-primary {
  background: var(--ai-gradient);
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.5);
}

/* Smaller AI button variant for nav */
.btn-ai-nav .btn-ai-content {
  padding: 8px 16px;
  font-size: 0.86rem;
}
.btn-ai-nav .btn-ai-content .icon { width: 14px; height: 14px; }

/* ================================================================
   GLOBAL OVERRIDES · Upgrade existing components to AI 2026 aesthetic
   (applied to every page automatically)
   ================================================================ */

/* Set Space Grotesk as display font for headings */
h1, h2, .hero-ai-title, .shimmer-text {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.028em;
}

/* --- Page header (tools list, breeds, admin-like pages) --- */
.page-header {
  position: relative;
  isolation: isolate;
  padding: 70px 24px 50px;
  margin: -30px -24px 50px;
  text-align: center;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ai-gradient-mesh);
  border: 1px solid rgba(139, 92, 246, 0.12);
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 19, 34, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 19, 34, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 95%);
  pointer-events: none;
  z-index: -1;
}
.page-header::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: orb-float 14s ease-in-out infinite;
}
.page-header h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.028em;
}
.page-header .eyebrow {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: var(--gray-800);
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}
.page-header .lead { color: var(--gray-600); max-width: 640px; margin-left: auto; margin-right: auto; }

/* --- Container-narrow text pages (about, contact, privacy, terms) --- */
main > section.section > .container-narrow > h1:first-child {
  position: relative;
  padding-top: 30px;
  font-size: clamp(2rem, 4vw, 3rem);
}
main > section.section > .container-narrow > h1:first-child::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  width: 120px; height: 4px;
  background: var(--ai-gradient);
  border-radius: 999px;
  box-shadow: 0 2px 20px rgba(139, 92, 246, 0.6);
}
main > section.section > .container-narrow > h2 {
  margin-top: 40px;
  position: relative;
  padding-left: 16px;
}
main > section.section > .container-narrow > h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 70%;
  background: var(--ai-gradient);
  border-radius: 999px;
}

/* --- Tool hero (individual tool page) --- */
.tool-hero {
  position: relative;
  isolation: isolate;
  padding: 60px 0 70px;
  background: var(--ai-gradient-mesh);
  overflow: hidden;
}
.tool-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 19, 34, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 19, 34, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 40%, transparent 90%);
  z-index: -2;
}
.tool-hero::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.2), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: orb-float 16s ease-in-out infinite;
}
.tool-hero-icon {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 24px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  font-size: 2.8rem;
  background: #fff;
  box-shadow: 0 24px 50px -20px rgba(139, 92, 246, 0.45), 0 10px 24px -12px rgba(255, 107, 107, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.15);
  isolation: isolate;
}
.tool-hero-icon::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 26px;
  background: var(--ai-conic);
  background-size: 200% 200%;
  animation: ai-gradient-shift 7s ease infinite;
  filter: blur(14px);
  opacity: 0.55;
  z-index: -1;
}

/* --- Tool cards: AI glow hover on every page --- */
.tool-card {
  position: relative;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.tool-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: var(--ai-conic);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  z-index: -1;
  filter: blur(12px);
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -25px rgba(139, 92, 246, 0.45), 0 8px 22px -10px rgba(255, 107, 107, 0.25);
  border-color: transparent;
}
.tool-card:hover::before { opacity: 0.35; animation: ai-gradient-shift 6s ease infinite; }
.tool-card:hover .tool-cta { gap: 8px; }

/* --- Primary button globally = AI gradient --- */
.btn-primary {
  background: var(--ai-gradient);
  background-size: 200% 200%;
  box-shadow: 0 10px 26px -10px rgba(139, 92, 246, 0.55), 0 4px 12px -6px rgba(255, 107, 107, 0.45);
  transition: background-position 400ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 36px -10px rgba(139, 92, 246, 0.65), 0 8px 20px -6px rgba(255, 107, 107, 0.5);
}

/* --- Auth card: AI gradient border + glow --- */
.auth-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 80px -30px rgba(139, 92, 246, 0.35), 0 10px 30px -15px rgba(255, 107, 107, 0.2);
  isolation: isolate;
  overflow: visible;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--ai-conic);
  background-size: 200% 200%;
  animation: ai-gradient-shift 8s ease infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.auth-card::after {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 380px; height: 180px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25), transparent 70%);
  filter: blur(40px);
  z-index: -2;
  pointer-events: none;
}
.auth-card h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2rem;
}

/* Form inputs: AI focus ring */
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}
.auth-card .btn-primary { background: var(--ai-gradient); background-size: 200% 200%; }

/* --- Auth page body bg: subtle AI mesh --- */
body:has(.auth-card) main {
  background: var(--ai-gradient-mesh);
  position: relative;
  isolation: isolate;
}
body:has(.auth-card) main::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 19, 34, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 19, 34, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 95%);
  z-index: -1;
  pointer-events: none;
}

/* --- Calc widget: glass + gradient border --- */
.calc-widget {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 80px -30px rgba(139, 92, 246, 0.3), 0 10px 30px -15px rgba(255, 107, 107, 0.15);
  isolation: isolate;
}
.calc-widget::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.4));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.calc-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}
.calc-widget-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #15803d;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 999px;
}

.calc-form button[type="submit"] {
  background: var(--ai-gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(139, 92, 246, 0.55);
  transition: background-position 400ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.calc-form button[type="submit"]:hover { background-position: 100% 50%; transform: translateY(-2px); }

/* --- Result box: AI theme --- */
.result-box {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(139, 92, 246, 0.06), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  isolation: isolate;
}
.result-box .result-number {
  background: var(--ai-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-flow 6s linear infinite;
}

/* --- Category title gradient underline --- */
.category-title { border-bottom: none !important; position: relative; padding-bottom: 14px; }
.category-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 60px; height: 3px;
  background: var(--ai-gradient);
  border-radius: 999px;
}

/* --- Eyebrow global (outside page-header too) --- */
.eyebrow:not(.eyebrow-ai):not(.eyebrow-dark) {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(139, 92, 246, 0.08));
  color: var(--gray-800);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* --- Footer share (per-page social share) --- */
.footer-share a:focus-visible,
.footer-share .footer-share-copy:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

/* ================================================================
   AI THINKING ANIMATION · Shows while a calculator is "processing"
   ================================================================ */

.ai-thinking {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0a0b14 0%, #1a1330 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  animation: ai-thinking-in 420ms var(--ease-out);
}
@keyframes ai-thinking-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.ai-thinking::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 90%);
  z-index: 0;
  pointer-events: none;
}
.ai-thinking::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  top: -160px; right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  animation: orb-float 8s ease-in-out infinite;
}

.ai-thinking-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ai-thinking-orb {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 18px;
  background: var(--ai-gradient);
  background-size: 200% 200%;
  animation: ai-gradient-shift 3s ease infinite;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.55);
}
.ai-thinking-orb::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 22px;
  background: var(--ai-conic);
  background-size: 200% 200%;
  animation: ai-gradient-shift 4s linear infinite;
  filter: blur(10px);
  opacity: 0.8;
  z-index: -1;
}
.ai-thinking-orb::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  animation: ai-orb-pulse 2s ease-out infinite;
}
@keyframes ai-orb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6); }
  80%  { box-shadow: 0 0 0 18px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}
.ai-thinking-orb .icon {
  width: 24px; height: 24px;
  animation: ai-spin-sparkle 3s linear infinite;
}
@keyframes ai-spin-sparkle {
  from { transform: rotate(0) scale(1); }
  50%  { transform: rotate(180deg) scale(1.12); }
  to   { transform: rotate(360deg) scale(1); }
}

.ai-thinking-text { flex: 1; min-width: 0; }
.ai-thinking-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.ai-thinking-status {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.12rem;
  font-weight: 600;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #fff;
}
.ai-thinking-status-text {
  background: linear-gradient(90deg, #fff 0%, #c4b5fd 30%, #f472b6 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-flow 2.4s linear infinite;
}
.ai-thinking-dots { display: inline-flex; gap: 4px; margin-left: 4px; }
.ai-thinking-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a78bfa;
  display: inline-block;
  animation: ai-dot-bounce 1.2s ease-in-out infinite;
}
.ai-thinking-dots span:nth-child(2) { animation-delay: 0.18s; background: #f472b6; }
.ai-thinking-dots span:nth-child(3) { animation-delay: 0.36s; background: #60a5fa; }
@keyframes ai-dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50%      { transform: translateY(-6px); opacity: 1; }
}

.ai-thinking-bar {
  margin-top: 16px;
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ai-thinking-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: var(--ai-gradient);
  border-radius: inherit;
  animation: ai-bar-run 1.6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}
@keyframes ai-bar-run {
  0%   { left: -30%; width: 30%; }
  50%  { left: 35%;  width: 45%; }
  100% { left: 100%; width: 30%; }
}

.ai-thinking-steps {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  position: relative; z-index: 1;
}
.ai-thinking-steps span {
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 300ms ease, opacity 300ms ease;
  opacity: 0.4;
}
.ai-thinking-steps span.active {
  color: #fff;
  opacity: 1;
}
.ai-thinking-steps span.done {
  color: #86efac;
  opacity: 0.95;
}
.ai-thinking-steps span::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

/* Blog listing / hero image — ratio box + absolute img avoids stretch vs global img{height:auto} */
.blog-card-thumb {
  margin: -8px -8px 16px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  position: relative;
}
.blog-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tool-card.blog-card .tool-card-stack .blog-card-thumb {
  margin: 0 0 14px;
  border-radius: 14px;
}
.blog-hero-wrap {
  margin: 0 0 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.15);
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}
.blog-hero-wrap .blog-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Blog article typography */
.blog-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
}
.blog-prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  color: var(--gray-900);
}
.blog-prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.blog-prose p { margin: 0 0 1.1em; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.1em; padding-left: 1.35rem; }
.blog-prose li { margin-bottom: 0.45em; }
.blog-prose a {
  color: var(--ai-violet);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-prose a:hover { color: var(--ai-indigo); }
.blog-prose blockquote {
  margin: 1.25em 0;
  padding: 14px 20px;
  border-left: 4px solid;
  border-image: var(--ai-gradient) 1;
  background: rgba(139, 92, 246, 0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--gray-600);
}

/* Blog share (social + SEO-friendly engagement) */
.blog-share {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.06), rgba(139, 92, 246, 0.08));
}
.blog-share-footer {
  margin-top: 40px;
  margin-bottom: 8px;
}
.blog-share-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.blog-share-label .icon { width: 16px; height: 16px; opacity: 0.85; }
.blog-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: var(--surface-1);
  color: var(--gray-800);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.blog-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--gray-900);
}
.blog-share-btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.blog-share-btn.blog-share-copy .icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blog-share-btn.blog-share-mail .icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blog-share-fb .icon,
.blog-share-x .icon,
.blog-share-li .icon,
.blog-share-wa .icon {
  fill: currentColor;
  stroke: none;
}
.blog-share-btn span { white-space: nowrap; }
.blog-share-fb:hover { color: #1877f2; border-color: rgba(24, 119, 242, 0.35); }
.blog-share-x:hover { color: #0f1419; border-color: rgba(15, 20, 25, 0.2); }
.blog-share-li:hover { color: #0a66c2; border-color: rgba(10, 102, 194, 0.35); }
.blog-share-wa:hover { color: #25d366; border-color: rgba(37, 211, 102, 0.4); }
.blog-share-mail:hover { color: var(--ai-violet); }
.blog-share-copy {
  cursor: pointer;
  font: inherit;
}
.blog-share-copy:hover { color: var(--ai-indigo); }

/* Blog article: comments (below Enjoyed this?) */
.blog-comments {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}
.blog-comments-title {
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.blog-comments-sub {
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.blog-comments-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.blog-comment-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.blog-comment-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.blog-comment-avatar-wrap {
  width: 46px;
  height: 46px;
}
.blog-comment-avatar {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 20px -10px rgba(15, 19, 34, 0.45);
}
.blog-comment-item:last-child {
  border-bottom: none;
}
.blog-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.blog-comment-author {
  font-weight: 700;
  color: var(--gray-900);
}
.blog-comment-time {
  font-size: 0.82rem;
  color: var(--gray-500);
}
.blog-comment-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
}
@media (max-width: 560px) {
  .blog-comment-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }
  .blog-comment-avatar-wrap,
  .blog-comment-avatar {
    width: 40px;
    height: 40px;
  }
}
.blog-comments-empty {
  margin: 0 0 20px;
}
.blog-comment-form {
  margin-top: 8px;
  max-width: 100%;
}
.blog-comment-form textarea {
  min-height: 120px;
  resize: vertical;
}
.blog-comments-note {
  font-size: 0.85rem;
  margin: 0 0 12px;
}

@media (max-width: 520px) {
  .blog-share-btn span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
  .blog-share-btn { padding: 10px 12px; position: relative; }
}

/* Homepage: welcome video + testimonials (SEO-rich content) */
.section-home-video {
  padding-top: 48px;
  padding-bottom: 32px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.04), transparent);
}
.home-video-kicker {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 10px;
}
.home-video-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.home-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background: var(--gray-900);
}
.home-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}
.home-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  text-align: center;
  background: linear-gradient(145deg, #1a1428 0%, #2d1f3d 50%, #1e1b2e 100%);
  color: var(--gray-200);
}
.home-video-placeholder-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.home-video-placeholder-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.home-video-placeholder-h {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: white;
}
.home-video-placeholder-p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gray-400);
  max-width: 420px;
}
.home-video-note {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-home-reviews {
  padding-top: 56px;
  padding-bottom: 48px;
}
.home-reviews-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1020px) {
  .home-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .home-reviews-grid { grid-template-columns: 1fr; }
}
.home-review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.home-review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.home-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.home-review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
}
.home-review-stars {
  color: #f5a623;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.home-review-quote {
  margin: 0;
  flex: 1;
}
.home-review-quote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-700);
}
.home-review-by {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-review-name {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
}
.home-review-role {
  font-size: 0.82rem;
  color: var(--gray-500);
}
.home-reviews-disclaimer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.82rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Error hero (404/500/403) */
.error-hero {
  position: relative;
  display: inline-block;
  margin: 0 auto 24px;
  isolation: isolate;
}
.error-code {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}
.error-glow {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 107, 107, 0.45), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.45), transparent 55%);
  filter: blur(60px);
  z-index: 0;
  animation: orb-float 10s ease-in-out infinite;
}

/* The submit button while loading: shimmer skin */
.calc-form button[type="submit"].is-loading {
  pointer-events: none;
  opacity: 0.9;
  position: relative;
  overflow: hidden;
}
.calc-form button[type="submit"].is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  animation: button-shimmer 1.2s linear infinite;
}
@keyframes button-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ---------- Account / PetCoins ---------- */
.nav-account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-coin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.22), rgba(255, 107, 107, 0.12));
  border: 1px solid rgba(255, 193, 7, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
}
.account-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}
.account-avatar-wrap { flex-shrink: 0; }
.account-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.account-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  background: var(--gradient-brand);
}
.account-email { margin-top: 6px; }
.account-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.account-coins { margin-bottom: 28px; }
.account-coins-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.account-coins-value { font-size: 1.65rem; letter-spacing: -0.02em; }
.account-coins-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--gray-100);
  margin: 14px 0 12px;
  overflow: hidden;
}
.account-coins-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  transition: width 0.4s var(--ease-out);
}
.account-coins-hint, .account-coins-disclaimer { font-size: 0.9rem; margin: 0 0 8px; }
.account-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .account-grid { grid-template-columns: 1fr 1fr; }
}
.account-card--wide { grid-column: 1 / -1; }
.account-card h2 { margin-top: 0; font-size: 1.15rem; }
.account-card h3 { font-size: 1rem; margin: 16px 0 8px; }
.account-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.account-form-inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.account-hr { margin: 22px 0; border: none; border-top: 1px solid var(--color-border); }
.account-payout-status { font-size: 0.88rem; color: var(--color-text-soft); margin: 0 0 12px; }
.account-history { list-style: none; padding: 0; margin: 12px 0 0; }
.account-history li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}
.account-history li:last-child { border-bottom: none; }

/* ---------- Keep reduced motion last ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-orb, .dark-orb, .cta-orb { animation: none; }
}
