:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --accent-primary: #00b894;
  --accent-secondary: #0984e3;
  --text-primary: #0f1923;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-card: 16px;
  --radius-button: 10px;
  --shadow-soft: 0 4px 24px rgba(0, 184, 148, 0.08);
  --gradient: linear-gradient(135deg, #00b894, #0984e3);
  --container: min(1120px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

ul {
  list-style: none;
  padding: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(9, 132, 227, 0.03), rgba(0, 184, 148, 0.02));
}

.section-grid {
  position: relative;
  isolation: isolate;
}

.section-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(9, 132, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 148, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 92%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  color: var(--accent-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-white {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0.75rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 10px 22px rgba(12, 34, 42, 0.1);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.8rem;
}

.logo-text {
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.1rem;
}

.nav-home-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-cta {
  margin-left: 0.2rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.guide-card .guide-lock {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.guide-card .guide-lock.is-open {
  color: #0a7a66;
}

.auth-shell {
  max-width: 1020px;
}

.auth-layout {
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: stretch;
}

.auth-side {
  padding: clamp(0.95rem, 2.4vw, 1.25rem);
  display: grid;
  gap: 0.68rem;
  align-content: start;
}

.auth-side h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.66rem);
}

.auth-side p {
  max-width: 46ch;
}

.auth-visual {
  margin-top: 0.2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(116, 178, 218, 0.28);
  background:
    radial-gradient(circle at 70% 30%, rgba(95, 210, 255, 0.2), transparent 42%),
    linear-gradient(150deg, #0b2b63, #071a3e 64%);
  box-shadow: 0 12px 28px rgba(9, 44, 77, 0.14);
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-visual-login {
  min-height: 165px;
  max-height: 190px;
}

.auth-visual-login img {
  object-position: center 22%;
}

.auth-visual-signup {
  min-height: 190px;
  max-height: 225px;
}

.auth-visual-signup img {
  object-position: 62% center;
}

.auth-benefits {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.4rem;
}

.auth-benefits li {
  position: relative;
  padding-left: 1.05rem;
  color: #36546a;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gradient);
}

.auth-form-card {
  padding: clamp(1rem, 2.2vw, 1.3rem);
  display: grid;
  align-content: start;
}

.auth-form-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.auth-form-card .admin-subline {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.auth-form-card .admin-form {
  gap: 0.72rem;
}

.auth-form-card .admin-form label {
  gap: 0.38rem;
}

.auth-form-card .admin-form input {
  min-height: 47px;
}

.auth-form-card .admin-form-actions {
  margin-top: 0.2rem;
}

.auth-form-card .admin-form-actions .btn {
  width: 100%;
}

.auth-alt-link {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #587186;
}

.auth-alt-link a {
  color: var(--accent-secondary);
  font-weight: 700;
}

/* Social auth */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.9rem 0 0.2rem;
}

.social-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dde7f0, transparent);
}

.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #dde7f2;
  background: #fff;
  color: #1e293b;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.14s;
  cursor: pointer;
  line-height: 1;
}

.btn-social:hover {
  background: #f5f9ff;
  border-color: #b6cde8;
  box-shadow: 0 4px 14px rgba(9, 132, 227, 0.1);
  transform: translateY(-1px);
}

.btn-social svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.btn-social-google svg { color: transparent; }

body[data-page="login"] .auth-side {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 251, 255, 0.94));
}

body[data-page="signup"] .auth-side {
  background:
    radial-gradient(circle at 80% 16%, rgba(9, 132, 227, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 255, 0.95));
}

.admin-user-pill {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.logo-mark-buddy {
  overflow: hidden;
  padding: 0;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.75),
    0 6px 18px rgba(9, 132, 227, 0.3);
}

.logo-mark-buddy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buddy-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(9, 132, 227, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.28rem 0.66rem 0.28rem 0.28rem;
  color: #355063;
  font-size: 0.78rem;
  font-weight: 700;
}

.buddy-mini-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.buddy-grid-split {
  display: grid;
  gap: 1rem;
}

.buddy-callout-card,
.buddy-illustration-panel,
.buddy-signup-panel,
.buddy-locked-guide-card,
.buddy-empty-state,
.buddy-welcome-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 255, 0.94));
  box-shadow: var(--shadow-soft);
}

.buddy-callout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}

.buddy-callout-card h3,
.buddy-locked-guide-card h3,
.buddy-signup-panel h2,
.buddy-welcome-panel h2 {
  font-size: 1.2rem;
}

.buddy-callout-card p,
.buddy-locked-guide-card p,
.buddy-signup-panel p,
.buddy-welcome-panel p {
  color: var(--text-muted);
}

.buddy-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.8),
    0 8px 18px rgba(9, 132, 227, 0.25);
}

.buddy-page-hero {
  display: grid;
  gap: 1.1rem;
  align-items: center;
}

.buddy-page-hero-art {
  border: 1px solid rgba(84, 160, 222, 0.28);
  border-radius: 18px;
  overflow: hidden;
  background: #081c47;
  min-height: 180px;
  box-shadow: var(--shadow-soft);
}

.buddy-page-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buddy-illustration-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.buddy-illustration-panel img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(108, 169, 211, 0.25);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.buddy-curator-panel {
  margin-bottom: 1rem;
}

.buddy-lock-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gradient);
  font-size: 1.15rem;
}

.buddy-locked-guide-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.buddy-signup-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.buddy-signup-panel {
  padding: 1rem;
}

.buddy-signup-panel img {
  width: 100%;
  border-radius: 14px;
  margin-top: 0.7rem;
  border: 1px solid rgba(120, 178, 218, 0.25);
}

.buddy-signup-panel .buddy-mini-badge img {
  width: 24px;
  height: 24px;
  margin-top: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}

.buddy-empty-state {
  padding: 1.1rem;
  text-align: center;
}

.buddy-empty-state img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
}

.buddy-welcome-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.buddy-welcome-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.buddy-accent-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgba(0, 184, 148, 0.22);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(9, 132, 227, 0.09));
}

.buddy-accent-strip p {
  color: #32556a;
  font-size: 0.9rem;
}

/* ── Featured Guide spotlight ───────────────────────── */
.guide-spotlight {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border-radius: 24px;
  border: 1px solid rgba(0, 184, 148, 0.16);
  background: linear-gradient(145deg, #ffffff 0%, #f0fbff 55%, #eaf7f3 100%);
  box-shadow:
    0 28px 56px rgba(8, 31, 59, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.guide-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.guide-eyebrow-row .eyebrow {
  margin-bottom: 0;
}

.guide-starter-badge {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0984e3;
  background: rgba(9, 132, 227, 0.08);
  border: 1px solid rgba(9, 132, 227, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
}

.guide-text-side h3 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 18ch;
  margin-top: 0;
}

.guide-text-side > p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.65;
  max-width: 38ch;
  font-size: clamp(0.94rem, 1.6vw, 1.04rem);
}

.guide-benefits {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.guide-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.guide-benefits li svg {
  width: 15px;
  height: 15px;
  color: #00b894;
  flex-shrink: 0;
}

.guide-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.guide-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.guide-trust-tag svg {
  width: 14px;
  height: 14px;
  color: #00b894;
  flex-shrink: 0;
}

.guide-mockup {
  position: relative;
}

.guide-mockup::before {
  content: "";
  position: absolute;
  inset: -28px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 184, 148, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.guide-mockup-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  z-index: 3;
  background: var(--gradient);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.42);
}

.guide-mockup-frame {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #0c2460, #030e2e);
  box-shadow:
    0 2px 0 rgba(0, 200, 255, 0.3),
    0 40px 80px rgba(5, 18, 60, 0.45),
    0 0 0 1px rgba(0, 200, 255, 0.16) inset,
    0 0 48px rgba(0, 130, 240, 0.1) inset;
  padding: 10px;
}

.guide-mockup-frame::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, transparent 100%);
  border-radius: 8px 8px 50% 50%;
  pointer-events: none;
  z-index: 3;
}

.guide-mockup-frame img {
  display: block;
  width: 100%;
  border-radius: 11px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ── Why BioBuddy banner ─────────────────────────────── */
.why-buddy-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 1.6rem 0 2rem;
  border: 1px solid rgba(0, 140, 220, 0.28);
  box-shadow:
    0 22px 48px rgba(8, 31, 59, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.why-buddy-banner img {
  display: block;
  width: 100%;
  height: clamp(190px, 28vw, 400px);
  object-fit: cover;
  object-position: right center;
}

.why-buddy-banner-copy {
  position: absolute;
  inset: 0;
  width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 3.5vw, 2.8rem);
  background: linear-gradient(
    to right,
    rgba(4, 18, 68, 0.88) 0%,
    rgba(4, 18, 68, 0.56) 62%,
    transparent 100%
  );
}

.why-buddy-banner-copy .why-eyebrow {
  color: rgba(0, 230, 190, 0.92);
  margin-bottom: 0;
  font-size: 0.7rem;
}

.why-buddy-banner-copy h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: #ffffff;
  margin-top: 0.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.why-buddy-banner-copy p:not(.why-eyebrow) {
  color: rgba(200, 225, 255, 0.82);
  font-size: clamp(0.86rem, 1.3vw, 0.97rem);
  margin-top: 0.65rem;
  line-height: 1.65;
  max-width: 34ch;
}

.hero {
  padding: clamp(2.5rem, 5.5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-shell {
  position: relative;
  border: 1px solid rgba(124, 174, 218, 0.26);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 18%, rgba(9, 132, 227, 0.14), transparent 46%),
    radial-gradient(circle at 15% 84%, rgba(0, 184, 148, 0.11), transparent 40%),
    linear-gradient(145deg, #ffffff, #f6fbff 52%, #f2f8ff);
  box-shadow:
    0 40px 80px rgba(8, 31, 59, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.66) inset;
  overflow: hidden;
  padding: 0;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(22, 124, 195, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 148, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 22% 50%, rgba(0, 0, 0, 0.9), transparent 55%);
}

.hero-grid {
  display: grid;
  gap: 0;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 100%;
  padding: clamp(2.2rem, 5vw, 3.8rem) clamp(1.8rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-size: clamp(2.05rem, 4.8vw, 3.45rem);
  max-width: 13.2ch;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 50ch;
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  line-height: 1.68;
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.74rem;
}

.trust-row {
  margin-top: 1.12rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.trust-row span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  background: rgba(255, 255, 255, 0.96);
}

.hero-media {
  position: relative;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  border-top: 1px solid rgba(102, 165, 221, 0.22);
  background:
    radial-gradient(ellipse at 60% 42%, rgba(0, 140, 240, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(10, 37, 87, 0.96), #05102a 70%);
  min-height: clamp(260px, 64vw, 420px);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 62% 36%, rgba(0, 190, 255, 0.34), transparent 38%),
    radial-gradient(circle at 28% 72%, rgba(0, 184, 148, 0.22), transparent 40%),
    radial-gradient(circle at 80% 68%, rgba(120, 100, 255, 0.18), transparent 36%);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 90px;
  z-index: 2;
  background: linear-gradient(to right, rgba(8, 28, 70, 0.22) 0%, transparent 100%);
  pointer-events: none;
}

.hero-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.section-head {
  margin-bottom: 1.3rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid-3 {
  grid-template-columns: 1fr;
}

.info-card,
.article-card,
.blog-card,
.resource-card,
.offer-card,
.lead-highlight {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover,
.article-card:hover,
.blog-card:hover,
.resource-card:hover,
.offer-card:hover,
.lead-highlight:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 184, 148, 0.45);
  box-shadow:
    0 10px 30px rgba(9, 132, 227, 0.14),
    0 0 0 1px rgba(0, 184, 148, 0.2);
}

.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(83, 148, 195, 0.24);
  background: linear-gradient(145deg, rgba(0, 184, 148, 0.12), rgba(9, 132, 227, 0.15));
  color: #0f5c88;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  box-shadow: 0 8px 20px rgba(9, 132, 227, 0.12);
}

/* ── Why BioBuddy premium cards ─────────────────────── */
.why-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0faff 100%);
  padding: 1.5rem;
  border-color: rgba(0, 184, 148, 0.16);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--gradient);
  border-radius: 0 0 2px 2px;
  opacity: 0.55;
}

.why-card .why-icon {
  box-shadow: 0 6px 18px rgba(0, 184, 148, 0.28);
}

.why-card .why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  margin-top: 0.8rem;
}

.why-card-grid {
  gap: 1.1rem;
}

.info-card h3,
.article-card h3,
.blog-card h2,
.resource-card h3,
.offer-card h3 {
  font-size: 1.15rem;
}

.info-card p,
.article-card p,
.blog-card p,
.resource-card p,
.offer-card p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.article-card a,
.blog-meta a {
  margin-top: 0.85rem;
  display: inline-flex;
  color: var(--accent-secondary);
  font-weight: 700;
}

.article-card-image,
.blog-thumb,
.resource-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: linear-gradient(140deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.12));
}

.article-card-image {
  margin-bottom: 0.75rem;
}

.article-category,
.badge {
  display: inline-flex;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
}

.badge.nutrition,
.article-category.nutrition,
.category-top.nutrition {
  background: #00b894;
}

.badge.sleep,
.article-category.sleep,
.category-top.sleep {
  background: #0984e3;
}

.badge.gut,
.article-category.gut,
.category-top.gut {
  background: #16a085;
}

.badge.mental,
.article-category.mental,
.category-top.mental {
  background: #5b6de0;
}

.badge.remedies,
.article-category.remedies,
.category-top.remedies {
  background: #2d98da;
}

.lead-highlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background:
    radial-gradient(circle at 90% 20%, rgba(9, 132, 227, 0.12), transparent 40%),
    #ffffff;
}

.lead-highlight h3 {
  font-size: 1.35rem;
}

.lead-highlight p {
  margin-top: 0.55rem;
  color: var(--text-muted);
}

.lead-highlight .btn {
  margin-top: 1rem;
}

.newsletter-banner {
  border-radius: var(--radius-card);
  background: var(--gradient);
  color: #ffffff;
  box-shadow:
    0 16px 32px rgba(9, 132, 227, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  padding: clamp(1.05rem, 2.4vw, 1.65rem);
  display: grid;
  gap: 0.78rem;
  position: relative;
  overflow: hidden;
}

.newsletter-banner::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -88px;
  top: -108px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.27), transparent 72%);
  pointer-events: none;
}

.newsletter-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.newsletter-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.25rem 0.48rem 0.25rem 0.26rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(10, 31, 59, 0.24);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.newsletter-brand-mark img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.newsletter-banner h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.95rem);
  max-width: 24ch;
}

.newsletter-banner p {
  color: rgba(255, 255, 255, 0.92);
}

.newsletter-support {
  margin-top: -0.12rem;
  max-width: 56ch;
}

.banner-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.banner-form input {
  min-height: 47px;
  border: none;
  border-radius: 10px;
  padding: 0.74rem 0.88rem;
  background: rgba(255, 255, 255, 0.98);
  color: #143146;
}

.banner-form .btn {
  min-height: 47px;
  white-space: nowrap;
  padding-inline: 1.1rem;
}

.newsletter-trust {
  margin-top: -0.06rem;
  font-size: 0.83rem;
  color: rgba(230, 246, 255, 0.94);
}

.banner-success {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.banner-success.show {
  display: inline-flex;
}

.success-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

.page-hero {
  padding: 4.4rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.page-hero p {
  margin-top: 0.7rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.blog-hero {
  padding-bottom: 1.4rem;
}

.blog-hero-layout {
  display: grid;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(154, 201, 230, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(9, 132, 227, 0.11), transparent 42%),
    radial-gradient(circle at 14% 80%, rgba(0, 184, 148, 0.08), transparent 38%),
    linear-gradient(145deg, #ffffff, #f7fbff 54%, #f2f8ff);
  box-shadow:
    0 18px 36px rgba(7, 31, 57, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  padding: clamp(1rem, 2.5vw, 1.55rem);
}

.blog-hero-copy h1 {
  margin-top: 0.05rem;
}

.blog-hero-subtitle {
  margin-top: 0.75rem;
  max-width: 52ch;
  color: var(--text-muted);
}

.blog-hero-actions {
  margin-top: 1.12rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.64rem;
}

.blog-topic-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.blog-topic-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 191, 220, 0.56);
  background: rgba(255, 255, 255, 0.92);
  color: #355264;
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-utility-line {
  margin-top: 0.88rem;
  color: #58788d;
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(113, 174, 216, 0.42);
  background:
    radial-gradient(circle at 68% 30%, rgba(102, 216, 255, 0.2), transparent 42%),
    linear-gradient(150deg, #0b2b63, #071a3e 64%);
  box-shadow: 0 18px 34px rgba(7, 26, 52, 0.24);
  min-height: clamp(220px, 36vw, 340px);
}

.blog-hero-media::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 72% 34%, rgba(122, 109, 255, 0.16), transparent 40%),
    radial-gradient(circle at 18% 72%, rgba(0, 184, 148, 0.14), transparent 44%);
  pointer-events: none;
}

.blog-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.resources-hero {
  padding-bottom: 1.35rem;
}

.resources-hero-layout {
  display: grid;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(154, 201, 230, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(9, 132, 227, 0.1), transparent 44%),
    radial-gradient(circle at 14% 80%, rgba(0, 184, 148, 0.08), transparent 40%),
    linear-gradient(145deg, #ffffff, #f7fbff 54%, #f2f8ff);
  box-shadow:
    0 18px 36px rgba(7, 31, 57, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  padding: clamp(1rem, 2.5vw, 1.55rem);
}

.resources-hero-subtitle {
  margin-top: 0.75rem;
  max-width: 54ch;
  color: var(--text-muted);
}

.resources-hero-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.resources-topic-chips {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resources-topic-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 191, 220, 0.56);
  background: rgba(255, 255, 255, 0.92);
  color: #355264;
  font-size: 0.78rem;
  font-weight: 700;
}

.resources-utility-line {
  margin-top: 0.85rem;
  color: #58788d;
  font-size: 0.82rem;
  font-weight: 600;
}

.resources-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(113, 174, 216, 0.42);
  background:
    radial-gradient(circle at 68% 30%, rgba(102, 216, 255, 0.2), transparent 42%),
    linear-gradient(150deg, #0b2b63, #071a3e 64%);
  box-shadow: 0 18px 34px rgba(7, 26, 52, 0.24);
  min-height: clamp(220px, 36vw, 340px);
}

.resources-hero-media::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 72% 34%, rgba(122, 109, 255, 0.16), transparent 40%),
    radial-gradient(circle at 18% 72%, rgba(0, 184, 148, 0.14), transparent 44%);
  pointer-events: none;
}

.resources-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.resources-trust-strip {
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 184, 148, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(9, 132, 227, 0.09));
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.resources-trust-strip p {
  color: #32556a;
  font-size: 0.9rem;
}

.resources-trust-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1f4661;
  font-weight: 700;
  font-size: 0.8rem;
}

.resources-trust-mark img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.76);
}

.guides-hero {
  padding-bottom: 1.35rem;
}

.guides-hero-layout {
  display: grid;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(154, 201, 230, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(9, 132, 227, 0.1), transparent 44%),
    radial-gradient(circle at 14% 80%, rgba(0, 184, 148, 0.08), transparent 40%),
    linear-gradient(145deg, #ffffff, #f7fbff 54%, #f2f8ff);
  box-shadow:
    0 18px 36px rgba(7, 31, 57, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  padding: clamp(1rem, 2.5vw, 1.55rem);
}

.guides-hero-subtitle {
  margin-top: 0.75rem;
  max-width: 54ch;
  color: var(--text-muted);
}

.guides-hero-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.guides-topic-chips {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guides-topic-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 191, 220, 0.56);
  background: rgba(255, 255, 255, 0.92);
  color: #355264;
  font-size: 0.78rem;
  font-weight: 700;
}

.guides-utility-line {
  margin-top: 0.85rem;
  color: #58788d;
  font-size: 0.82rem;
  font-weight: 600;
}

.guides-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(113, 174, 216, 0.42);
  background:
    radial-gradient(circle at 68% 30%, rgba(102, 216, 255, 0.2), transparent 42%),
    linear-gradient(150deg, #0b2b63, #071a3e 64%);
  box-shadow: 0 18px 34px rgba(7, 26, 52, 0.24);
  min-height: clamp(220px, 36vw, 340px);
}

.guides-hero-media::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 72% 34%, rgba(122, 109, 255, 0.16), transparent 40%),
    radial-gradient(circle at 18% 72%, rgba(0, 184, 148, 0.14), transparent 44%);
  pointer-events: none;
}

.guides-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.guides-access-card {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(0, 184, 148, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 22%, rgba(9, 132, 227, 0.08), transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #f5fcff 56%, #edf9f6 100%);
  box-shadow:
    0 12px 28px rgba(7, 31, 57, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.66) inset;
  padding: clamp(1rem, 2.6vw, 1.4rem);
}

.guides-access-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(9, 132, 227, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #2d5872;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.58rem;
}

.guides-access-copy h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
}

.guides-access-copy p {
  margin-top: 0.5rem;
  color: #496173;
}

.guides-access-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.42rem;
}

.guides-access-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #38546a;
  font-weight: 600;
  font-size: 0.9rem;
}

.guides-access-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.12);
}

.guides-access-cta {
  border: 1px solid rgba(9, 132, 227, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.85rem;
  display: grid;
  gap: 0.5rem;
  align-content: center;
}

.guides-access-cta .btn {
  width: 100%;
}

.guides-access-cta p {
  margin: 0;
  font-size: 0.84rem;
  color: #5a758b;
  text-align: center;
}

.guides-access-cta a:not(.btn) {
  color: var(--accent-secondary);
  font-weight: 700;
}

.coming-soon-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfe0f4;
  border-radius: 26px;
  padding: clamp(1.4rem, 2.7vw, 2.4rem);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(9, 132, 227, 0.16) 0%, rgba(9, 132, 227, 0) 55%),
    linear-gradient(130deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.12)),
    #ffffff;
  box-shadow: 0 18px 50px rgba(20, 40, 90, 0.1);
  display: grid;
  gap: 0.85rem;
}

.coming-soon-banner::after {
  content: "";
  position: absolute;
  inset: auto -18% -65% auto;
  width: clamp(220px, 32vw, 360px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.2), rgba(0, 184, 148, 0));
  pointer-events: none;
}

.coming-soon-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #bcd5f2;
  background: rgba(255, 255, 255, 0.86);
  color: #19609c;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coming-soon-banner h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.16;
}

.coming-soon-banner p {
  margin: 0;
  max-width: 64ch;
  color: var(--text-body);
}

.coming-soon-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(9, 132, 227, 0.12);
  color: #0f4f83;
  font-weight: 600;
  font-size: 0.83rem;
}

.blog-controls {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.search-wrap input,
.admin-toolbar input,
.admin-toolbar select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--text-primary);
  background: #ffffff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-pill {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.52rem 0.9rem;
  cursor: pointer;
}

.filter-pill.is-active {
  border-color: transparent;
  color: #ffffff;
  background: var(--gradient);
}

.pinned-article {
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(9, 132, 227, 0.08));
  padding: 1rem;
}

.pinned-article strong {
  color: var(--accent-primary);
}

.pinned-article h2 {
  margin-top: 0.45rem;
  font-size: 1.5rem;
}

.pinned-article p {
  margin-top: 0.55rem;
  color: #375163;
}

.blog-grid .blog-card {
  padding: 0;
  overflow: hidden;
}

.category-top {
  height: 7px;
}

.blog-thumb {
  border-radius: 0;
  border: none;
  aspect-ratio: 16 / 9;
}

.blog-card-body {
  padding: 1rem 1rem 1.1rem;
}

.blog-card h2 {
  margin-top: 0.65rem;
  font-size: 1.09rem;
}

.blog-meta {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
}

.page-link {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 9px;
  padding: 0.5rem 0.82rem;
}

.page-link.is-current,
.page-link:hover {
  border-color: rgba(9, 132, 227, 0.45);
  color: var(--text-primary);
}

.article-layout {
  padding-top: 3rem;
}

.article-shell {
  max-width: 860px;
}

.article-header h1 {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}

.article-subtitle {
  margin-top: 0.7rem;
  color: var(--text-muted);
}

.article-meta {
  margin-top: 0.9rem;
  color: #466175;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.article-figure {
  margin-top: 1.4rem;
}

.article-figure img {
  border-radius: 14px;
  border: 1px solid var(--border);
}

.article-figure figcaption {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.article-content {
  margin-top: 1.5rem;
  font-size: 1.04rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.55rem;
}

.article-content p {
  margin-top: 0.95rem;
}

.article-content ul,
.article-content ol {
  margin-top: 0.95rem;
  padding-left: 1.2rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content blockquote {
  margin: 1.2rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent-secondary);
  border-radius: 0 10px 10px 0;
  background: rgba(9, 132, 227, 0.06);
  color: #30495b;
}

.article-content a {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.article-content img {
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.article-cta {
  margin-top: 1.6rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 184, 148, 0.34);
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.09), rgba(9, 132, 227, 0.08));
  padding: 1.1rem;
}

.article-cta h3 {
  font-size: 1.22rem;
}

.article-cta p {
  margin-top: 0.6rem;
  color: #395062;
}

.article-cta .btn {
  margin-top: 0.9rem;
}

/* ── Article share buttons ───────────────────────────────────────── */
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.6rem;
}

.article-share-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e8ecef;
}

.article-share-label {
  font-size: 0.82rem;
  color: #7a8a9a;
  font-weight: 500;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.18s, transform 0.15s;
  color: #fff;
  line-height: 1;
}

.share-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.share-btn svg {
  flex-shrink: 0;
}

.share-fb   { background: #1877f2; }
.share-pinterest { background: #e60023; }
.share-whatsapp  { background: #25d366; }

.share-copy {
  background: transparent;
  color: #4a5568;
  border: 1.5px solid #cbd5e0;
}

.share-copy:hover {
  background: #f7fafc;
  border-color: #a0aec0;
  opacity: 1;
}

.share-copied {
  background: #38a169 !important;
  border-color: #38a169 !important;
  color: #fff !important;
}

/* ── End article share buttons ───────────────────────────────────── */

.related-articles {
  margin-top: 2rem;
}

.related-articles h2 {
  margin-bottom: 0.9rem;
}

.notice-box {
  border: 1px solid #d6ebfa;
  background: #f0f9ff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: #2d4456;
  margin-bottom: 1rem;
}

.affiliate-disclosure-banner {
  margin-top: 1rem;
  border: 1px solid rgba(0, 184, 148, 0.34);
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.08));
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  color: #335468;
  font-size: 0.9rem;
}

.ad-slot-wrap {
  margin-top: 1rem;
}

.ezoic-ad-slot {
  border: 1px dashed rgba(9, 132, 227, 0.35);
  border-radius: 12px;
  min-height: 96px;
  background: linear-gradient(135deg, rgba(9, 132, 227, 0.05), rgba(0, 184, 148, 0.05));
  display: grid;
  place-items: center;
  color: #4a6a80;
  font-size: 0.78rem;
  font-weight: 700;
}

.ezoic-ad-slot::before {
  content: "Ezoic Ad Placeholder";
}

.ezoic-ad-slot-inline {
  margin: 1rem 0;
}

.ezoic-ad-slot-end {
  margin-top: 1.2rem;
}

.article-side-ad {
  margin-top: 1rem;
}

.resource-section + .resource-section {
  margin-top: 1.85rem;
}

.section-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(83, 148, 195, 0.24);
  background: linear-gradient(145deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.14));
  color: #0f5c88;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(9, 132, 227, 0.1);
}

.pill-tag {
  display: inline-flex;
  align-self: flex-start;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
}

.pill-tag.green {
  background: #00b894;
}

.pill-tag.blue {
  background: #0984e3;
}

.newsletter-page {
  padding-top: 3.2rem;
}

.newsletter-landing-grid {
  gap: clamp(0.9rem, 2vw, 1.3rem);
}

.newsletter-story-card {
  display: grid;
  gap: 0.72rem;
  align-content: start;
  padding: clamp(1rem, 2.6vw, 1.35rem);
}

.newsletter-story-card h2 {
  font-size: clamp(1.35rem, 3vw, 1.72rem);
}

.newsletter-story-card p {
  max-width: 48ch;
}

.newsletter-buddy-visual {
  margin-top: 0.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(116, 178, 218, 0.28);
  background:
    radial-gradient(circle at 70% 30%, rgba(95, 210, 255, 0.2), transparent 42%),
    linear-gradient(150deg, #0b2b63, #071a3e 64%);
  min-height: clamp(170px, 28vw, 250px);
  box-shadow: 0 12px 28px rgba(9, 44, 77, 0.18);
}

.newsletter-buddy-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.newsletter-shell {
  max-width: none;
  margin-inline: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 4vw, 2rem);
  height: 100%;
}

.newsletter-form-card {
  display: grid;
  align-content: start;
}

.badge-gradient {
  display: inline-flex;
  background: var(--gradient);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.newsletter-shell h1 {
  margin-top: 0.8rem;
  font-size: clamp(1.7rem, 5vw, 2.45rem);
}

.newsletter-subtitle {
  margin-top: 0.7rem;
  color: var(--text-muted);
}

.guide-mockup {
  margin-top: 1.2rem;
  border-radius: 16px;
  padding: 1.2rem;
  background: linear-gradient(140deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.11));
}

.guide-cover {
  border-radius: 12px;
  background: var(--gradient);
  color: #ffffff;
  padding: 1.1rem;
  box-shadow: 0 12px 24px rgba(9, 132, 227, 0.2);
}

.guide-cover span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.guide-cover h2 {
  margin-top: 0.55rem;
  font-size: 1.15rem;
}

.inside-list {
  margin-top: 1.3rem;
}

.inside-list h2 {
  font-size: 1.2rem;
}

.inside-list li {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #344b5d;
}

.gradient-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.lead-form {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.45rem;
}

.lead-form label {
  font-weight: 600;
  font-size: 0.88rem;
}

.form-error {
  min-height: 1.2rem;
  color: #c0392b;
  font-size: 0.82rem;
}

.form-trust {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.newsletter-benefit-row {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.72rem;
}

.newsletter-benefit-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.82rem 0.9rem;
  box-shadow: 0 8px 18px rgba(7, 37, 66, 0.05);
}

.newsletter-benefit-item h3 {
  font-size: 0.98rem;
}

.newsletter-benefit-item p {
  margin-top: 0.32rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.thank-you-state {
  display: none;
  margin-top: 1.3rem;
  text-align: center;
  border: 1px solid #d6f5ee;
  border-radius: 14px;
  background: #f5fffc;
  padding: 1.15rem;
}

.thank-you-state.show {
  display: block;
  animation: fadeUp 0.45s ease;
}

.check-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  border: 2px solid rgba(0, 184, 148, 0.25);
  display: grid;
  place-items: center;
}

.animated-check {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gradient);
  transform: scale(0.4);
  opacity: 0;
  animation: checkPop 0.45s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gradient {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(9, 132, 227, 0.24);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: rgba(9, 132, 227, 0.45);
}

.btn-light {
  background: #ffffff;
  color: var(--text-primary);
}

.btn-danger {
  border-color: #ffcfcf;
  background: #fff5f5;
  color: #d63031;
}

.btn-block {
  width: 100%;
}

.site-footer {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(156, 204, 234, 0.34);
  background:
    radial-gradient(circle at 85% 8%, rgba(9, 132, 227, 0.07), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.footer-logo {
  margin-bottom: 0.55rem;
}

.footer-top {
  padding: 2rem 0 1.2rem;
  display: grid;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  color: #5a758b;
  font-size: 0.92rem;
}

.footer-nav {
  display: grid;
  gap: 0.46rem 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.footer-nav a {
  color: #4f6a7f;
  font-weight: 600;
  font-size: 0.92rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  color: #12374d;
  border-color: rgba(9, 132, 227, 0.35);
}

.footer-social-wrap p {
  color: #55738a;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 0.55rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(151, 203, 234, 0.45);
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  color: #2e5269;
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  color: #0e6fa6;
  border-color: rgba(0, 184, 148, 0.45);
  box-shadow: 0 10px 22px rgba(9, 132, 227, 0.16);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  padding: 0.95rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
}

.footer-bottom small {
  color: #5a758b;
  font-weight: 600;
}

.footer-affiliate-note {
  margin: 0;
  color: #648096;
  font-size: 0.82rem;
  max-width: 760px;
}

.legal-shell {
  max-width: 920px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  padding: clamp(1rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-soft);
}

.legal-shell h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.legal-shell h2 {
  margin-top: 1.3rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.legal-shell p,
.legal-shell li {
  color: #385466;
}

.legal-shell ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.45rem;
}

.legal-updated {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-shell > p {
  max-width: 62ch;
  color: var(--text-muted);
}

.contact-grid {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.contact-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.contact-form {
  display: grid;
  gap: 0.48rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.86rem;
  color: #3d5568;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--text-primary);
  background: #ffffff;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.cookie-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  border: 1px solid rgba(0, 184, 148, 0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(4, 23, 47, 0.96), rgba(6, 43, 76, 0.96));
  color: #ebf8ff;
  padding: 0.85rem;
  box-shadow: 0 18px 34px rgba(2, 11, 29, 0.35);
}

.cookie-consent-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-consent-banner a {
  color: #7ad9ff;
  text-decoration: underline;
}

.cookie-consent-actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-enabled .animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Admin */

.admin-header {
  position: sticky;
  top: 0;
  z-index: 120;
}

.admin-token-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-token-bar label {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.admin-token-bar input {
  width: 220px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
}

.admin-layout {
  width: min(1380px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
  max-width: 100%;
}

.admin-sidebar {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  align-self: start;
}

.admin-sidebar-title {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.admin-nav-btn {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.admin-nav-btn + .admin-nav-btn {
  margin-top: 0.32rem;
}

.admin-nav-btn:hover {
  border-color: var(--border);
  color: var(--text-primary);
}

.admin-nav-btn.is-active {
  color: #ffffff;
  background: var(--gradient);
}

.admin-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-pane {
  display: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-pane.is-active {
  display: block;
}

.admin-pane h1 {
  font-size: 1.5rem;
}

.admin-subline {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.admin-status {
  margin-top: 0.75rem;
  min-height: 1.2rem;
  color: #2d5672;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-metrics {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  background: #fbfdff;
}

.metric-card strong {
  display: block;
  font-size: 1.3rem;
}

.metric-card span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.admin-split {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.admin-split > * {
  min-width: 0;
  max-width: 100%;
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  background: #ffffff;
  min-width: 0;
  max-width: 100%;
}

.admin-card h2 {
  font-size: 1.16rem;
  margin-bottom: 0.65rem;
}

.admin-toolbar {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
}

.admin-toolbar > * {
  min-width: 0;
}

.admin-list-card {
  max-height: 880px;
  overflow: auto;
}

.admin-item {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfdff;
  padding: 0.75rem;
}

.admin-item + .admin-item {
  margin-top: 0.55rem;
}

.admin-item h3 {
  font-size: 1rem;
}

.admin-item p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.admin-item small {
  display: block;
  margin-top: 0.3rem;
  color: #71889b;
  font-size: 0.78rem;
}

.admin-item-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-item-actions .btn {
  padding: 0.5rem 0.72rem;
  font-size: 0.83rem;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f7fbff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b7286;
}

.admin-form {
  display: grid;
  gap: 0.58rem;
  min-width: 0;
  max-width: 100%;
}

.admin-form > * {
  min-width: 0;
  max-width: 100%;
}

.admin-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d5568;
}

.admin-form textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-form-grid {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
  max-width: 100%;
}

.admin-form-grid > * {
  min-width: 0;
  max-width: 100%;
}

.admin-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.admin-toggles input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.admin-form-actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.editor-toolbar .btn {
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
}

.admin-live-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafcfe;
  padding: 0.8rem;
}

.admin-live-preview h3 {
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
}

.admin-live-preview p {
  color: #425b6f;
  font-size: 0.93rem;
}

.seo-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafcff;
  padding: 0.8rem;
}

.seo-score-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.seo-status-badge {
  border-radius: 999px;
  background: #e8efff;
  color: #27496b;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.24rem 0.55rem;
}

.seo-readability {
  color: #5a7388;
  font-size: 0.82rem;
}

.seo-snippet {
  margin-top: 0.62rem;
  border: 1px solid #e6edf4;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.6rem;
}

.seo-checks {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.35rem;
}

.seo-checks li {
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

.seo-check-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.seo-check-row strong {
  display: block;
  margin-bottom: 0.12rem;
}

.seo-check-row span {
  color: #51697d;
}

.seo-checks li.pass {
  border-color: #b8efd7;
  background: #f3fff9;
}

.seo-checks li.warn {
  border-color: #ffe4b6;
  background: #fff9ef;
}

.btn.btn-sm {
  padding: 0.34rem 0.55rem;
  font-size: 0.75rem;
}

.seo-fix-suggestions {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
}

.seo-fix-card {
  border: 1px solid #dbe9f5;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.seo-fix-card h4 {
  font-size: 0.9rem;
}

.seo-fix-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.seo-fix-preview {
  border: 1px solid #e7eff7;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fbfdff;
}

.seo-fix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fcff;
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.ai-panel h3 {
  font-size: 1.05rem;
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-actions .btn {
  padding: 0.5rem 0.7rem;
  font-size: 0.81rem;
}

.ai-output-grid {
  display: grid;
  gap: 0.65rem;
}

.media-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.media-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.7rem;
  display: grid;
  gap: 0.55rem;
}

.media-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: linear-gradient(140deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.12));
}

.media-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.media-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-inline-tools {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}

.admin-inline-tools input {
  width: 100%;
}

.smart-related-card {
  margin-top: 0.45rem;
}

.smart-related-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem;
  background: #fbfdff;
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.smart-related-group select {
  min-height: 130px;
  width: 100%;
  max-width: 100%;
}

.chip-collection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 0.8rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.chip-item {
  border: 1px solid #b8d9ee;
  border-radius: 999px;
  background: #eef7ff;
  color: #2d5672;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-pane[data-admin-pane="articles"] label:has(> [name="tagsText"]) {
  grid-column: 1 / -1;
}

.article-tags-tools {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fbfdff;
  align-items: start;
}

.article-tags-tools .ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.tags-chip-list .chip-item {
  max-width: 220px;
}

.reference-chip-list .chip-item {
  max-width: 280px;
}

.social-preview-card {
  margin-top: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.social-preview-image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.14), rgba(9, 132, 227, 0.16));
  border-bottom: 1px solid var(--border);
}

.social-preview-body {
  padding: 0.65rem 0.7rem;
  display: grid;
  gap: 0.25rem;
}

.article-v3-status {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(9, 132, 227, 0.1));
}

.articles-manager-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.6rem 0 0.9rem;
}

.articles-manager-tabs .btn.is-active {
  border-color: transparent;
  background: var(--gradient);
  color: #ffffff;
}

.article-current-header {
  margin: 0 0 0.9rem;
  padding: 0.75rem;
  background: linear-gradient(145deg, rgba(240, 250, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.article-current-headline {
  display: grid;
  gap: 0.35rem;
}

.article-current-headline h3 {
  margin: 0;
}

.article-current-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-current-actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.article-v3-status-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.article-v3-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.article-v3-blockers ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.article-v3-blockers li {
  color: #2f485a;
  font-size: 0.85rem;
}

.article-v3-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.article-v3-tabs .btn.is-active {
  border-color: #007fd1;
  background: #e7f4ff;
  color: #0a4f78;
}

.article-v3-tabs .btn {
  flex: 0 0 auto;
}

.article-action-status {
  margin-top: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fcff;
  padding: 0.6rem 0.75rem;
}

[data-article-ai-feedback] ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.25rem;
}

[data-article-ai-feedback] li {
  font-size: 0.82rem;
  color: #405b70;
}

[data-internal-links-suggested],
[data-internal-links-approved],
[data-source-suggestions-preview] {
  display: grid;
  gap: 0.55rem;
}

.seo-link-suggestion-list {
  display: grid;
  gap: 0.55rem;
}

.seo-link-suggestion-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  background: #ffffff;
}

.seo-link-suggestion-card p {
  margin: 0.2rem 0;
  overflow-wrap: anywhere;
}

.article-source-editor .admin-table input,
.article-source-editor .admin-table select {
  min-width: 140px;
}

.article-sources-cards {
  display: grid;
  gap: 0.65rem;
}

.article-source-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.7rem;
  display: grid;
  gap: 0.4rem;
}

.article-source-card h4 {
  margin: 0;
}

.article-source-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.article-source-card .admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-source-claim {
  color: #4b6578;
  font-size: 0.82rem;
}

.article-source-modal {
  margin-top: 0.65rem;
  border-style: dashed;
}

.article-source-editor,
.article-source-editor .admin-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.article-source-editor .admin-table-wrap {
  overflow-x: auto;
}

.social-preview-domain {
  color: #6a8194;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-preview-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #193249;
}

.social-preview-desc {
  font-size: 0.82rem;
  color: #476175;
  overflow-wrap: anywhere;
}

.media-field-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.smart-media-field {
  margin-top: 0.35rem;
  border: 1px dashed #c4d6e4;
  border-radius: 12px;
  padding: 0.6rem;
  background: #fbfdff;
}

.smart-media-preview {
  min-height: 130px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.smart-media-preview span {
  color: #7a90a3;
  font-size: 0.86rem;
}

.smart-media-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.smart-media-meta {
  padding: 0.45rem 0.55rem;
}

.smart-media-meta strong {
  display: block;
  font-size: 0.86rem;
}

.smart-media-meta small {
  color: #728799;
  font-size: 0.76rem;
}

.smart-media-actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.media-picker-modal[hidden] {
  display: none;
}

.media-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
}

.media-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 31, 0.45);
  backdrop-filter: blur(4px);
}

.media-picker-panel {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 26px 50px rgba(6, 22, 33, 0.25);
  padding: 1rem;
}

.media-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.media-picker-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.media-picker-tabs button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.42rem 0.8rem;
  cursor: pointer;
}

.media-picker-tabs button.is-active {
  border-color: transparent;
  background: var(--gradient);
  color: #ffffff;
}

.media-tab-panel {
  display: none;
}

.media-tab-panel.is-active {
  display: block;
}

.media-toolbar {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.media-picker-grid {
  display: grid;
  gap: 0.75rem;
}

.media-picker-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.media-picker-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.media-picker-card-body {
  padding: 0.6rem;
  display: grid;
  gap: 0.22rem;
}

.media-picker-card-body small {
  color: #6f8598;
  font-size: 0.76rem;
}

.media-picker-card-actions {
  padding: 0 0.6rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.media-picker-footer {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.media-upload-dropzone {
  border: 1px dashed #b9cedd;
  border-radius: 12px;
  background: #f8fcff;
  padding: 1rem;
  text-align: center;
  display: grid;
  gap: 0.35rem;
}

.media-upload-dropzone.is-dragover {
  border-color: var(--accent-secondary);
  background: #eef8ff;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.38rem;
}

.analytics-bar-row span {
  font-size: 0.78rem;
  color: #627f95;
}

.analytics-bar-track {
  background: #eef4f8;
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
}

.analytics-bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #00b894, #0984e3);
}

.analytics-bar-row strong {
  font-size: 0.82rem;
  color: #123447;
}

[data-analytics-sources] h3,
[data-analytics-audience] h3 {
  font-size: 0.92rem;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

[data-analytics-sources] h3:first-child,
[data-analytics-audience] h3:first-child {
  margin-top: 0;
}

.guide-breadcrumb {
  color: var(--text-muted);
  font-weight: 600;
}

.guide-breadcrumb:hover {
  color: var(--accent-secondary);
}

.guide-landing-hero {
  margin-top: 1rem;
  display: grid;
  gap: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow-soft);
}

.guide-landing-copy {
  display: grid;
  gap: 0.65rem;
}

.guide-subtitle,
.guide-short,
.guide-access-note {
  color: var(--text-muted);
}

.guide-badges,
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guide-landing-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(9, 132, 227, 0.1));
}

.guide-landing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-detail-grid {
  display: grid;
  gap: 1rem;
}

.guide-detail-grid ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.guide-success-buddy {
  margin-top: 1rem;
  border: 1px solid rgba(0, 184, 148, 0.35);
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.12), rgba(9, 132, 227, 0.11));
  display: grid;
  gap: 0.7rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.guide-success-buddy.is-show {
  animation: fadeUp 0.45s ease;
}

.guide-success-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(9, 132, 227, 0.42);
  box-shadow: 0 0 24px rgba(9, 132, 227, 0.24);
  animation: buddyFloat 2.4s ease-in-out infinite;
}

.guide-speech-bubble {
  background: #ffffff;
  border: 1px solid rgba(9, 132, 227, 0.25);
  border-radius: 16px;
  padding: 0.9rem;
  position: relative;
}

.guide-speech-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-left: 1px solid rgba(9, 132, 227, 0.25);
  border-bottom: 1px solid rgba(9, 132, 227, 0.25);
  transform: rotate(45deg);
}

.guide-speech-bubble p {
  margin: 0 0 0.7rem;
  font-weight: 600;
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.account-guide-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.account-guide-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: #f9fcff;
}

.account-guide-list span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.affiliate-disclosure-block {
  margin-top: 0.7rem;
  border: 1px solid rgba(9, 132, 227, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.95));
  color: #436174;
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 0.62rem 0.75rem;
}

.affiliate-disclosure-block.is-compact {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  padding: 0.5rem 0.62rem;
}

.resource-for {
  color: #425d70;
  font-size: 0.86rem;
}

.resource-benefits {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.28rem;
  list-style: disc;
}

.resource-benefits li {
  color: #385567;
  font-size: 0.84rem;
}

.resource-warning {
  color: #6b4d34;
  border: 1px solid rgba(246, 190, 118, 0.45);
  background: rgba(255, 247, 232, 0.92);
  border-radius: 10px;
  padding: 0.5rem 0.62rem;
  font-size: 0.8rem;
}

.resource-score {
  color: #224458;
  font-size: 0.85rem;
}

.article-inline-cta {
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 184, 148, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 252, 247, 0.95));
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.55rem;
}

.article-inline-cta h3 {
  font-size: 1.2rem;
}

.article-inline-cta p {
  color: var(--text-muted);
}

.article-recommended {
  margin-top: 1.2rem;
}

.article-recommended h2 {
  margin-bottom: 0.8rem;
}

.start-here-page {
  padding-top: 2.4rem;
}

.start-here-hero {
  max-width: 760px;
  display: grid;
  gap: 0.8rem;
}

.start-here-hero p {
  color: var(--text-muted);
}

.start-here-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.start-here-card {
  border: 1px solid rgba(104, 164, 212, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 15%, rgba(9, 132, 227, 0.11), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 255, 0.95));
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.start-here-card h2 {
  font-size: 1.22rem;
}

.start-here-card p {
  color: var(--text-muted);
}

.start-here-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(83, 148, 195, 0.24);
  display: grid;
  place-items: center;
  color: #0f5c88;
  background: linear-gradient(145deg, rgba(0, 184, 148, 0.12), rgba(9, 132, 227, 0.15));
  box-shadow: 0 8px 18px rgba(9, 132, 227, 0.12);
}

.icon-chip svg,
.resource-icon svg,
.start-here-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.start-here-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
}

.start-here-links a {
  font-size: 0.8rem;
  color: #0f608f;
  font-weight: 700;
}

.high-intent-popup {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.high-intent-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 30, 0.58);
  backdrop-filter: blur(5px);
}

.high-intent-popup__panel {
  position: relative;
  width: min(440px, 100%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(6, 19, 30, 0.3);
  padding: 0 0 2.2rem;
  text-align: center;
  overflow: hidden;
}

.high-intent-popup__header {
  background: linear-gradient(160deg, #0984e3 0%, #00b894 100%);
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.high-intent-popup__buddy {
  height: 172px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

.high-intent-popup__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f1f5f8;
  color: #64748b;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.high-intent-popup__close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.high-intent-popup__icon {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.high-intent-popup__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00b894;
  margin-bottom: 0.5rem;
}

.high-intent-popup__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d2233;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.high-intent-popup__sub {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.high-intent-popup__skip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.high-intent-popup__skip:hover {
  color: #475569;
}

.high-intent-popup__step {
  display: none;
  gap: 0.7rem;
  padding: 1.8rem 2rem 0;
}

.high-intent-popup__step.is-active {
  display: grid;
}

.high-intent-popup__actions {
  display: grid;
  gap: 0.6rem;
}

.high-intent-popup__segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

/* Responsive */

@media (min-width: 760px) {
  .buddy-signup-layout {
    grid-template-columns: 1fr 1fr;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .newsletter-landing-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
  }

  .newsletter-benefit-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .buddy-page-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .buddy-callout-card {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    align-items: start;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-controls {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-inline-tools {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }

  .media-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .media-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-landing-hero {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }

  .guide-success-buddy {
    grid-template-columns: auto 1fr auto;
  }

  .guide-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-here-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 1.2rem;
  }

  .resources-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 1.2rem;
  }

  .guides-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 1.2rem;
  }

  .guides-access-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .cookie-consent-banner {
    left: auto;
    width: min(760px, calc(100% - 2rem));
  }
}

@media (min-width: 980px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
    align-items: stretch;
  }

  .blog-hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
  }

  .blog-hero-media {
    min-height: clamp(250px, 24vw, 330px);
  }

  .resources-hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
  }

  .resources-hero-media {
    min-height: clamp(250px, 24vw, 330px);
  }

  .guides-hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
  }

  .guides-hero-media {
    min-height: clamp(250px, 24vw, 330px);
  }

  .guides-access-card {
    gap: 1.2rem;
  }

  .article-side-ad {
    margin-top: 1.2rem;
    margin-left: auto;
    width: min(320px, 100%);
  }

  .hero-shell {
    padding: 0;
  }

  .hero-media {
    border-radius: 0 28px 28px 0;
    border-top: none;
    border-left: 1px solid rgba(102, 165, 221, 0.22);
    min-height: 0;
  }

  .hero-media img {
    height: 100%;
  }

  .buddy-illustration-panel {
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
  }

  .guide-spotlight {
    grid-template-columns: 1fr 1fr;
  }

  .admin-layout {
    grid-template-columns: 260px 1fr;
  }

  .admin-toolbar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-split {
    grid-template-columns: 0.95fr 1.35fr;
    align-items: start;
  }

  .admin-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .start-here-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Articles Admin overflow guards */
.admin-pane[data-admin-pane="articles"] .admin-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-pane[data-admin-pane="articles"] .admin-split {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.admin-pane[data-admin-pane="articles"] .articles-manager-workspace.is-editor-focus,
.admin-pane[data-admin-pane="articles"] .articles-manager-workspace.is-list-focus {
  grid-template-columns: minmax(0, 1fr);
}

.admin-pane[data-admin-pane="articles"] .admin-list-card,
.admin-pane[data-admin-pane="articles"] [data-article-form] {
  min-width: 0;
  max-width: 100%;
}

.admin-pane[data-admin-pane="articles"] [data-article-form] {
  overflow-x: hidden;
}

.admin-pane[data-admin-pane="articles"] .smart-related-card .admin-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-pane[data-admin-pane="articles"] .social-preview-card,
.admin-pane[data-admin-pane="articles"] .admin-live-preview,
.admin-pane[data-admin-pane="articles"] .seo-panel,
.admin-pane[data-admin-pane="articles"] .admin-table-wrap {
  max-width: 100%;
}

.admin-pane[data-admin-pane="articles"] .admin-live-preview,
.admin-pane[data-admin-pane="articles"] .seo-panel {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .admin-pane[data-admin-pane="articles"] .admin-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(9, 25, 35, 0.12);
    padding: 0.9rem;
    display: grid;
    gap: 0.5rem;
    transform: translateY(-4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 0.35rem 0.2rem;
  }

  .nav-auth {
    display: grid;
  }

  .hero {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 1.7rem 1.4rem 1.3rem;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-shell {
    border-radius: 24px;
    padding: 0;
  }

  .hero-shell::before {
    opacity: 0.45;
    mask-image: radial-gradient(ellipse at 50% 20%, rgba(0, 0, 0, 0.7), transparent 60%);
  }

  .hero-media {
    border-radius: 0 0 22px 22px;
    min-height: clamp(255px, 62vw, 390px);
    border-top: 1px solid rgba(102, 165, 221, 0.18);
    border-left: none;
  }

  .hero-media::after {
    width: 0;
    display: none;
  }

  .hero-media img {
    height: 100%;
    object-position: 60% center;
  }

  .blog-hero-layout {
    padding: 1rem;
  }

  .blog-hero-actions {
    gap: 0.58rem;
  }

  .blog-hero-actions .btn {
    flex: 1 1 180px;
  }

  .blog-hero-media {
    min-height: clamp(220px, 62vw, 320px);
  }

  .resources-hero-layout {
    padding: 1rem;
  }

  .resources-hero-actions {
    gap: 0.58rem;
  }

  .resources-hero-actions .btn {
    flex: 1 1 180px;
  }

  .resources-hero-media {
    min-height: clamp(220px, 62vw, 320px);
  }

  .guides-hero-layout {
    padding: 1rem;
  }

  .guides-hero-actions {
    gap: 0.58rem;
  }

  .guides-hero-actions .btn {
    flex: 1 1 180px;
  }

  .guides-hero-media {
    min-height: clamp(220px, 62vw, 320px);
  }

  .guides-access-cta {
    padding: 0.78rem;
  }

  .newsletter-page {
    padding-top: 2.6rem;
  }

  .auth-shell {
    max-width: 640px;
  }

  .auth-layout {
    gap: 0.85rem;
  }

  .auth-side {
    padding: 0.9rem;
  }

  .auth-visual-login {
    min-height: 145px;
    max-height: 170px;
  }

  .auth-visual-signup {
    min-height: 160px;
    max-height: 195px;
  }

  .auth-form-card {
    padding: 0.95rem;
  }

  .auth-form-card .admin-form-actions .btn {
    width: 100%;
  }

  .newsletter-story-card {
    padding: 0.95rem;
  }

  .newsletter-buddy-visual {
    min-height: clamp(155px, 52vw, 220px);
  }

  .newsletter-shell {
    padding: 1.05rem;
  }

  .newsletter-banner-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .banner-form {
    grid-template-columns: 1fr;
  }

  .banner-form .btn {
    width: 100%;
  }

  .newsletter-brand-mark {
    font-size: 0.7rem;
  }

  .footer-top {
    padding-top: 1.5rem;
    gap: 0.95rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
  }

  .footer-bottom {
    padding-top: 0.8rem;
    justify-content: flex-start;
  }

  .cookie-consent-banner {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    padding: 0.75rem;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 120px;
  }

  .trust-row span {
    font-size: 0.78rem;
  }

  .guide-spotlight {
    padding: 1.6rem 1.4rem;
    gap: 1.6rem;
  }

  .guide-text-side h3 {
    max-width: 100%;
  }

  .guide-mockup-badge {
    right: 12px;
  }

  .why-buddy-banner img {
    height: clamp(200px, 58vw, 320px);
    object-position: 72% center;
  }

  .why-buddy-banner-copy {
    width: 100%;
    justify-content: flex-end;
    padding: 1rem 1.2rem 1.3rem;
    background: linear-gradient(
      to top,
      rgba(4, 18, 68, 0.92) 0%,
      rgba(4, 18, 68, 0.6) 48%,
      transparent 100%
    );
  }

  .why-buddy-banner-copy p:not(.why-eyebrow) {
    max-width: 100%;
  }

}

@media (min-width: 900px) {
  .nav {
    position: static;
  }
}

@keyframes checkPop {
  from {
    transform: scale(0.45);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buddyFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.resource-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.resource-detail-card,
.offer-detail-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 252, 252, 0.88));
  border: 1px solid rgba(0, 184, 148, 0.18);
  border-radius: 1.1rem;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.resource-detail-image {
  margin: 0.75rem 0 1rem;
}

.resource-detail-lead {
  font-size: 1.02rem;
  color: #2f3f4f;
}

.score-panel {
  margin: 1rem 0 1.1rem;
  padding: 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(9, 132, 227, 0.2);
  background: rgba(240, 249, 255, 0.85);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.score-grid div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  padding: 0.5rem;
  background: #fff;
}

.score-grid strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
}

.score-grid span {
  font-size: 0.78rem;
  color: #556274;
}

.score-subtext {
  font-size: 0.84rem;
  color: #4a5568;
}

@media (max-width: 760px) {
  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cro-main {
  gap: 1rem;
}

.cro-filter-card {
  margin-bottom: 0.4rem;
}

.cro-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.cro-inline-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cro-pre {
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: rgba(248, 250, 252, 0.92);
  font-size: 0.82rem;
}

.cro-mock-badge {
  display: inline-block;
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  background: rgba(9, 132, 227, 0.12);
  border: 1px solid rgba(9, 132, 227, 0.28);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
}

.cro-priority-badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cro-priority-badge.is-complete {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.cro-priority-badge.is-medium {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.cro-priority-badge.is-low {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.cro-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
}

.cro-recommendation-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 245, 0.92));
}
