/* ==========================================================================
   Pimofy Digital — Global Stylesheet
   Brand: purple (#5b1fe0) primary, orange (#ff5a1f) conversion accent
   Author: built for pimofydigital.com
   Structure: 1) Design tokens  2) Base/reset  3) Layout helpers
              4) Components (nav, buttons, cards, etc.)  5) Sections
              6) Animations  7) Responsive
   ========================================================================== */

/* 1) DESIGN TOKENS ---------------------------------------------------------- */
:root {
  /* Brand colors (sampled from logo) */
  --purple:        #5b1fe0;
  --purple-dark:   #4413b0;
  --purple-light:  #efeaff;
  --orange:        #ff5a1f;
  --orange-dark:   #e8480f;

  /* Neutrals */
  --ink:        #1a1530;   /* headings */
  --body:       #4a4a5a;   /* paragraph text */
  --muted:      #6b6b7b;
  --line:       #e7e7ef;   /* borders */
  --bg:         #ffffff;
  --bg-soft:    #f7f6fc;   /* alternating section bg */
  --bg-card:    #ffffff;

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

  /* Spacing & shape */
  --container: 1160px;
  --space-page-x: clamp(16px, 2.8vw, 32px);
  --space-section-y: clamp(60px, 8vw, 92px);
  --space-card: clamp(20px, 2.4vw, 32px);
  --space-block: clamp(18px, 2.2vw, 28px);
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(26, 21, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 21, 48, 0.12);
  --transition: 0.25s ease;
}

/* Override: brand blue requested for hero accent + top bar */
:root { --blue: #4900ff; }

/* 2) BASE / RESET ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(16px, 0.95vw + 14px, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: clamp(1.12rem, 1.2vw, 1.28rem); }
p  { margin-bottom: 1rem; }
a  { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Accessibility: visible focus + skip link */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; color: #fff; }

.skip-link,
.btn,
.nav__menu > li > a,
.nav__logout-button,
.admin-nav__link,
.admin-nav__sublink,
.admin-topbar__button,
.dropdown__menu a,
.rich-editor__toolbar button,
.media-card__actions .btn,
.taxonomy-switcher .btn,
.media-pagination__controls .btn {
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 3) LAYOUT HELPERS --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-page-x); }
.section { padding: var(--space-section-y) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin: 0 auto var(--space-block); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin-top: 12px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple); background: var(--purple-light);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.align-start { align-items: start; }
.cell-muted { color: var(--muted); }
.spacing-sm-b { margin-bottom: 12px; }
.spacing-md-b { margin-bottom: 14px; }
.anchor-offset { scroll-margin-top: 120px; }
.input-min-160 { min-width: 160px; }
.mt-40 { margin-top: 40px; }

.max-w-500 { max-width: 500px; }
.max-w-760 { max-width: 760px; }
.max-w-780 { max-width: 780px; }
.max-w-820 { max-width: 820px; }
.max-w-900 { max-width: 900px; }

.layout-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions-row--center {
  justify-content: center;
}

.section--tight-top {
  padding-top: 24px;
}

.section--compact {
  padding: 40px 0;
}

.card--compact {
  padding: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
}

.table-clean thead tr,
.table-clean tbody tr {
  border-bottom: 1px solid var(--line);
}

.table-clean th {
  text-align: left;
  padding: 10px 8px;
}

.table-clean td {
  padding: 12px 8px;
}

.table-clean .cell-muted {
  color: var(--muted);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag--plain {
  margin: 0;
}

.tag--draft {
  background: #ffe6df;
  color: #d63b14;
}

.tag--active {
  background: #e9f9ed;
  color: #127a36;
}

.tag--disabled {
  background: #ffe6df;
  color: #d63b14;
}

.stat__num--blue { color: var(--blue); }
.stat__num--green { color: var(--green, #22c55e); }
.stat__num--orange { color: var(--orange); }
.stat__num--purple { color: var(--purple); }

.pagination-row {
  margin-top: 20px;
}

.pagination-pill {
  pointer-events: none;
  padding: 12px 16px;
  font-weight: 600;
}

.hero--compact {
  padding: 60px 0;
}

.login-divider {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.login-submit {
  width: 100%;
  margin-top: 20px;
}

.callout--featured {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.callout--featured-content {
  flex: 1;
  min-width: 260px;
}

.callout--featured-content h2 {
  margin: 6px 0 8px;
}

.callout--featured-content p {
  margin: 0;
}

.article-meta-block {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.article-meta-block p {
  color: var(--muted);
  margin-bottom: 10px;
}

.tag-link {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
}

.section-title-spaced {
  margin-bottom: 32px;
}

.admin-tool-link {
  text-align: center;
  padding: 20px;
}

.admin-tool-link__icon {
  display: block;
  margin: 0 auto 10px;
}

/* 4) COMPONENTS ------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 100px; border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 31, 0.3); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 90, 31, 0.38); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--purple); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn--white { background: #fff; color: var(--purple); }
.btn--white:hover { background: #f3f0ff; color: var(--purple-dark); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* Top announcement bar */
.topbar {
  background: var(--blue); color: #fff; font-size: 0.95rem; text-align: center;
  padding: 9px 0; letter-spacing: 0.01em;
}
.topbar__strong { font-weight: 700; margin-right: 6px; }

/* Header / Nav */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav__menu > li > a {
  display: block; padding: 10px 16px; color: var(--ink); font-weight: 500; font-size: 0.97rem;
  border-radius: 8px;
}
.nav__menu > li > a:hover, .nav__menu > li > a[aria-current="page"] { color: var(--purple); background: var(--purple-light); }
.nav__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* The in-menu Book a Call is for the mobile dropdown only; hidden on desktop to avoid duplicating the far-right CTA */
.nav__mobile-cta { display: none; }

.nav__logout-form {
  margin: 0;
}

.nav__logout-button {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 0.97rem;
  text-align: left;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.nav__logout-button:hover,
.nav__logout-button:focus-visible {
  color: var(--purple);
  background: var(--purple-light);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown__toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font: inherit; }
.dropdown__toggle svg { transition: transform var(--transition); }
.dropdown[aria-expanded="true"] .dropdown__toggle svg { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.dropdown[aria-expanded="true"] .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); }
.dropdown__menu a:hover { background: var(--purple-light); color: var(--purple); }
.dropdown__menu strong { display: block; font-size: 0.97rem; }
.dropdown__menu span { font-size: 0.85rem; color: var(--muted); }

/* Mobile menu toggle */
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform var(--transition), opacity var(--transition); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-card); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--feature { border-top: 4px solid var(--purple); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--purple-light); color: var(--purple);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card .link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

/* Trust bar: 3 columns with icons */
.trustbar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 20px;
}
.trustbar__item { display: flex; align-items: center; gap: 14px; justify-content: center; font-weight: 600; color: var(--ink); }
.trustbar__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--purple-light);
  color: var(--blue); display: grid; place-items: center;
}
.trustbar__icon svg { width: 24px; height: 24px; }
.trustbar__num { font-size: 1.5rem; font-weight: 800; color: var(--blue); display: block; line-height: 1.1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--purple); line-height: 1; }
.stat__label { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

/* Checklist */
.checklist { display: grid; gap: 14px; }
.checklist--2 { grid-template-columns: repeat(2, 1fr); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--purple-light);
  color: var(--purple); display: grid; place-items: center; margin-top: 2px;
}
.check svg { width: 14px; height: 14px; }

/* Hero */
.hero h1 .ink { color: var(--blue); }
.hero { padding: 30px 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--body); margin: 18px 0 28px; }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.hero__actions .btn { justify-content: center; }
.hero__media { display: flex; justify-content: flex-end; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; height: auto; }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ba__col { padding: 28px; }
.ba__col--before { background: #fff4f1; }
.ba__col--after  { background: #eefbf3; }
.ba__col h3 { margin-bottom: 18px; }
.ba__col li { padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.ba__col li:last-child { border-bottom: none; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
.step__icon { grid-row: span 2; margin-bottom: 0; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }
.step__num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%; background: var(--purple);
  color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 16px;
}
.step__num::before { content: counter(step); }

/* Pricing */
.pricing { max-width: 560px; margin: 0 auto; }
.pricing .card { text-align: center; border-top: 4px solid var(--orange); }
.price { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.price small { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); margin-top: 6px; }
.price + .price { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.trial-note { background: var(--purple-light); color: var(--purple-dark); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 22px; font-weight: 500; }

/* FAQ (accordion) */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit;
  font-weight: 600; color: var(--ink); padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq__q svg { flex: 0 0 auto; transition: transform var(--transition); color: var(--purple); }
.faq__item[aria-expanded="true"] .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a p { padding: 0 22px 20px; margin: 0; color: var(--body); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); color: #fff; border-radius: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 12px auto 26px; }

/* Article cards (Resources) */
.article { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.article__thumb { position: relative; }
.article__img { height: 200px; width: 100%; max-width: 100%; object-fit: cover; display: block; background: linear-gradient(135deg, var(--purple-light), #fff); }
.tag--overlay { position: absolute; top: 14px; right: 14px; margin: 0; background: rgba(26, 21, 48, 0.62); color: #fff; backdrop-filter: blur(2px); }
.article__body { padding: 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.article__body h3 { margin-bottom: 10px; }
.article__body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; }
.article__body .link { margin-top: auto; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange); margin-bottom: 8px;padding-left: 0.5em;
    padding-right: 0.5em; }

/* Forms */
.form { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder { color: #9b9bac; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-light); outline: none; transform: translateY(-1px); }
.field textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.form__feedback { display: grid; gap: 10px; }
.form__success { background: #eefbf3; border: 1px solid #b7ebca; color: #1c7c4a; padding: 14px 18px; border-radius: var(--radius-sm); display: none; line-height: 1.5; }
.form__success.show { display: block; }
.form__error { background: #ffe6df; border: 1px solid #ff5a1f; color: #d63b14; padding: 14px 18px; border-radius: var(--radius-sm); display: none; line-height: 1.5; }
.form__error.show { display: block; }
.form__error ul { margin: 8px 0 0 20px; }

.form.is-loading,
.card.is-loading,
.btn.is-loading {
  position: relative;
}

.is-loading {
  opacity: 0.82;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.loading-skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f4f3fb 0%, #ebe9f7 50%, #f4f3fb 100%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.2s ease-in-out infinite;
}

.loading-skeleton--text {
  border-radius: 999px;
  height: 0.9em;
}

.loading-skeleton--block {
  border-radius: 14px;
  min-height: 160px;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.12s; }
.loading-dots span:nth-child(3) { animation-delay: 0.24s; }

/* Footer */
.footer { background: var(--ink); color: #c9c6d8; padding: 64px 0 28px; }
.footer a { color: #c9c6d8; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; font-size: 0.95rem; }
.footer__logo {margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { text-decoration: underline; }

/* Helper backgrounds */
.callout {
  background: var(--purple-light); border-radius: var(--radius); padding: 36px; text-align: center;
}

/* Checklist X variant (hidden cost) */
.check--x { background: #ffe6df; color: var(--orange-dark); }
.check svg { width: 14px; height: 14px; }

/* Before/After marks */
.ba__col li { display: flex; align-items: flex-start; gap: 10px; }
.ba__mark { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }

/* Admin shell -------------------------------------------------------------- */
.admin-body {
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 60%);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  position: relative;
}

.admin-shell__backdrop {
  display: none;
}

.admin-sidebar {
  background: #101428;
  color: rgba(255, 255, 255, 0.82);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar__topbar {
  display: none;
  justify-content: flex-end;
}

.admin-sidebar__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-sidebar__logo img {
  width: clamp(44px, 5vw, 58px);
  height: auto;
  max-width: 100%;
  border-radius: 12px;
}

.admin-sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.admin-sidebar__brand strong,
.admin-topbar h1,
.admin-page__header h2 {
  color: var(--ink);
}

.admin-sidebar__brand strong {
  color: #fff;
}

.admin-topbar h1,
.admin-page__header h2 {
  color: var(--ink);
}

.admin-sidebar__brand span {
  color: rgba(255, 255, 255, 0.72);
}

.admin-topbar__eyebrow,
.admin-page__header p {
  color: var(--muted);
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav__section {
  display: grid;
  gap: 6px;
}

.admin-nav__section-label {
  display: block;
  padding: 10px 12px 4px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-nav__section-label.is-active {
  color: #fff;
}

.admin-nav__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-nav__submenu {
  display: grid;
  gap: 4px;
  padding-left: 8px;
}

.admin-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.admin-nav__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.admin-nav__sublink:hover,
.admin-nav__sublink.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.admin-nav__label {
  min-width: 0;
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-shell__content {
  padding: clamp(20px, 2.4vw, 34px);
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 21, 48, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(26, 21, 48, 0.06);
  position: sticky;
  top: 16px;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.admin-topbar__eyebrow {
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-topbar h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar__button {
  justify-content: space-between;
  min-width: 126px;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: none;
}

.admin-topbar__logout-form {
  margin: 0;
}

.admin-topbar__button.btn--ghost {
  background: #fff;
}

.admin-topbar__button.btn--primary {
  box-shadow: none;
}

.admin-topbar__user {
  text-align: left;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8f7fc;
  border: 1px solid var(--line);
  min-width: 140px;
}

.admin-topbar__user span {
  color: var(--muted);
}

.admin-topbar__user strong {
  color: var(--ink);
}

.admin-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.admin-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.admin-main .card,
.admin-main .admin-card {
  background: rgba(255, 255, 255, 0.92);
}

.admin-main {
  display: grid;
  gap: var(--space-block);
}

.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-block);
}

.admin-page__header {
  margin-bottom: var(--space-block);
}

.admin-page__header h2,
.admin-page__header p {
  margin: 0;
}

.admin-page__header p {
  margin-top: 8px;
  color: var(--muted);
}

.admin-page__header h2 {
  color: var(--ink);
}

.admin-page__header p {
  color: var(--muted);
}

.admin-grid--dashboard {
  max-width: 1200px;
  display: grid;
  gap: 18px;
}

.admin-grid--dashboard > .pagination-row {
  margin-top: 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-kpi-card {
  display: grid;
  gap: 12px;
}

.admin-kpi-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-kpi-card h3,
.admin-kpi-card p {
  margin: 0;
}

.admin-kpi-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-action-card {
  display: grid;
  gap: 10px;
}

.admin-action-card h3,
.admin-action-card p {
  margin: 0;
}

.admin-action-card p {
  color: var(--muted);
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-section-head h2,
.admin-section-head p {
  margin: 0;
}

.admin-section-head p {
  margin-top: 6px;
  color: var(--muted);
}

.admin-section-head--inside {
  margin-bottom: 14px;
}

.admin-form {
  max-width: 960px;
}

.taxonomy-page {
  max-width: 1120px;
}

.taxonomy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.taxonomy-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.taxonomy-card h3 {
  margin: 0;
}

.taxonomy-manager {
  max-width: 860px;
}

.taxonomy-overview {
  max-width: 980px;
}

.taxonomy-hero {
  margin-bottom: 18px;
}

.taxonomy-summary-panel {
  align-content: center;
}

.taxonomy-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.taxonomy-section-head {
  margin-bottom: 18px;
}

.taxonomy-section-head h2,
.taxonomy-section-head p {
  margin: 0;
}

.taxonomy-section-head p {
  margin-top: 8px;
}

.taxonomy-overview__grid {
  gap: 20px;
}

.taxonomy-overview__card {
  display: grid;
  gap: 14px;
  color: inherit;
}

.taxonomy-overview__card h3,
.taxonomy-overview__card p {
  margin: 0;
}

.taxonomy-overview__card:hover {
  color: inherit;
}

.taxonomy-overview__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.taxonomy-overview__stats span {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfbfe;
}

.taxonomy-create-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfe;
}

.taxonomy-create-form .btn {
  justify-self: start;
}

.taxonomy-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: #fff;
}

.taxonomy-table {
  min-width: 680px;
}

.taxonomy-table td {
  vertical-align: top;
}

.taxonomy-table td:nth-child(2),
.taxonomy-table th:nth-child(2) {
  width: 90px;
}

.taxonomy-term-actions {
  align-items: center;
}

.taxonomy-term-actions .btn {
  padding: 12px 18px;
}

.taxonomy-delete-form .btn {
  padding: 12px 18px;
}

.admin-featured-image__preview {
  width: min(100%, 220px);
  max-width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fbfbfe;
  color: var(--muted);
  padding: 0;
  cursor: zoom-in;
  appearance: none;
  border-style: dashed;
}

.admin-featured-image__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .admin-featured-image__preview {
    width: min(100%, 180px);
  }
}

.rich-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fafafe;
}

.rich-editor__toolbar button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.rich-editor__surface {
  min-height: 340px;
  padding: 16px;
  outline: none;
}

.rich-editor__surface h1,
.rich-editor__surface h2,
.rich-editor__surface h3,
.rich-editor__surface h4,
.rich-editor__surface h5,
.rich-editor__surface h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.rich-editor__surface p {
  margin-bottom: 0.9rem;
}

.rich-editor__surface ul,
.rich-editor__surface ol {
  margin: 0 0 1rem 1.25rem;
  list-style: initial;
}

.rich-editor__surface ul {
  list-style: disc;
}

.admin-body .footer,
.admin-body .header,
.admin-body .topbar {
  display: none;
}

.admin-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(91, 31, 224, 0.06), rgba(255, 90, 31, 0.08));
}

.admin-welcome__copy h1 {
  margin: 10px 0 12px;
  color: var(--ink);
}

.admin-welcome__copy p {
  color: var(--body);
  max-width: 680px;
  margin-bottom: 0.75rem;
}

.admin-welcome__list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  max-width: 680px;
}

.admin-welcome__list li {
  line-height: 1.45;
}

.admin-welcome__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-admin-tools {
  padding-top: 24px;
}

.admin-welcome__panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
  display: grid;
  gap: 16px;
  align-content: space-between;
}

.admin-welcome__panel strong {
  color: var(--ink);
}

.admin-welcome__panel p {
  color: var(--muted);
  margin: 6px 0 0;
}

.admin-welcome__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-pulse {
  display: grid;
  gap: 14px;
}

.admin-pulse__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.admin-pulse__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--orange));
}

.admin-pulse__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-pulse__meta strong {
  color: var(--ink);
}

.admin-welcome__stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.admin-welcome__stats strong {
  color: var(--ink);
}

.admin-recent-articles {
  margin-top: 0;
}

.admin-recent-articles__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-recent-articles__header h2 {
  margin: 0;
}

.admin-recent-articles__list {
  display: grid;
  gap: 12px;
}

.admin-article-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.admin-article-item__main h3 {
  margin: 0;
  font-size: 1.06rem;
}

.admin-article-item__main h3 a {
  color: var(--ink);
}

.admin-article-item__main p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-article-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid transparent;
}

.admin-status--published {
  color: #14734d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.admin-status--draft {
  color: #92400e;
  background: #ffedd5;
  border-color: #fed7aa;
}

.admin-article-item__actions {
  justify-self: end;
}

.admin-empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.admin-empty-state p {
  margin: 0;
  color: var(--muted);
}

.media-preview {
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fbfbfe;
  color: var(--muted);
  margin-bottom: 8px;
  cursor: zoom-in;
}

.media-upload-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.media-upload-card__actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.media-card span {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-library__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.media-library__head h2 {
  margin: 0;
}

.media-library__head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 680px;
}

.media-library__count {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}

.media-filters {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfe;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 1fr) minmax(120px, 0.8fr) auto;
  gap: 12px;
  margin-bottom: 14px;
  align-items: end;
}

.media-filters .field {
  margin-bottom: 0;
}

.media-filters .field label {
  margin-bottom: 6px;
}

.media-filters .field input,
.media-filters .field select {
  width: 100%;
}

.media-filters__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.media-pagination {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.media-pagination p {
  margin: 0;
  color: var(--muted);
}

.media-pagination__controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.media-pagination__controls .btn {
  min-width: 42px;
  justify-content: center;
}

.media-pagination__controls .btn.is-active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}

.media-grid--library {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-card--library {
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.media-card__preview {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-card__preview img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.media-card__body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.media-card__body h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.media-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media-card__actions .btn {
  justify-content: center;
  text-align: center;
}

.media-card__edit {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 10px;
}

.media-card__edit-form {
  display: grid;
  gap: 8px;
}

.media-card__edit-form label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.media-card__edit-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.media-card__edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.media-card__delete {
  width: 100%;
  justify-content: center;
  color: #b42318;
  border-color: #fda29b;
  background: #fef3f2;
}

.media-empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fbfbfe;
  padding: 22px;
  color: var(--muted);
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
}

.media-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 400;
}

.media-modal.is-open {
  display: block;
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 40, 0.72);
  backdrop-filter: blur(6px);
}

.media-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.media-modal__dialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #f6f7fb;
  border-radius: 14px;
}

.media-modal__dialog p {
  margin: 12px 0 0;
  color: var(--muted);
}

.media-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 20, 40, 0.08);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes skeleton-wave {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-2px); opacity: 1; }
}

@media (max-width: 980px) {
  .admin-welcome {
    grid-template-columns: 1fr;
  }

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

  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-welcome__copy p,
  .admin-welcome__list {
    max-width: 100%;
  }

  .admin-article-item {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admin-article-item__actions {
    justify-self: start;
  }

  .media-library__head {
    flex-direction: column;
  }

  .media-filters {
    grid-template-columns: 1fr 1fr;
  }

  .media-filters__actions {
    grid-column: 1 / -1;
  }

  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .taxonomy-overview__grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell__backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(16, 20, 40, 0.5);
    backdrop-filter: blur(3px);
    z-index: 49;
  }

  .admin-shell.is-nav-open .admin-shell__backdrop {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(82vw, 300px);
    height: 100vh;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .admin-shell.is-nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar__topbar {
    display: flex;
  }

  .admin-nav-toggle {
    display: inline-block;
  }

  .admin-topbar__links {
    display: none;
  }
}

@media (max-width: 980px) {
  .admin-shell__content {
    padding-top: 16px;
  }
}

@media (max-width: 720px) {
  .admin-shell__content {
    padding: 18px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    top: 10px;
    padding: 14px;
  }

  .admin-topbar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-topbar__user {
    min-width: 0;
    flex: 1 1 auto;
  }

  .taxonomy-switcher {
    width: 100%;
  }

  .taxonomy-switcher .btn {
    flex: 1 1 180px;
    justify-content: center;
  }

  .admin-recent-articles__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-card__actions {
    grid-template-columns: 1fr;
  }

  .media-filters {
    grid-template-columns: 1fr;
  }

  .taxonomy-card {
    gap: 14px;
  }

  .taxonomy-create-form {
    padding: 14px;
  }

  .taxonomy-table {
    min-width: 560px;
  }

  .taxonomy-term-actions {
    align-items: stretch;
  }

  .taxonomy-term-actions .btn,
  .taxonomy-delete-form .btn {
    width: 100%;
    justify-content: center;
  }
}
.ba__mark svg { width: 13px; height: 13px; }
.ba__mark--x { background: #ffd9cf; color: #d63b14; }
.ba__mark--tick { background: #cdeedd; color: #1c7c4a; }

/* Step icons (replace numbered circles when present) */
.step__icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--purple-light); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px;
}
.step__icon svg { width: 28px; height: 28px; }

/* CTA band — two columns (text 2/3, action 1/3) */
.cta-band__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center; text-align: left; }
.cta-band__action { display: flex; justify-content: flex-start; }
.cta-band__bookicon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.18); color: #fff; vertical-align: middle; margin-right: 10px; }
.cta-band__bookicon svg { width: 22px; height: 22px; }
.cta-band__text h2 { display: flex; align-items: center; }
.cta-band__text p { margin: 12px 0 0; }

/* Legal pages (terms / privacy) */
.legal p { color: var(--body); }
.legal a { text-decoration: underline; }
.legal__list { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 0; }
.legal__list li { display: flex; gap: 10px; }
.legal__list li::before { content: "\2022"; color: var(--purple); font-weight: 700; }
.legal__note { margin-top: 28px; padding: 16px 18px; background: var(--bg-soft); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.92rem; }

/* Goal / target icon before a section heading */
.goal-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  margin: 0 auto 14px; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff;
}
.goal-icon svg { width: 28px; height: 28px; }

/* Section heading with icon on the left (not stacked) */
.section__head--row { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.section__head--row .goal-icon { margin: 0; flex: 0 0 auto; }
.section__head--row h2 { margin: 0; }

/* Larger card icon (Explore Our Solution) */
.card__icon--lg { width: 72px; height: 72px; border-radius: 18px; }
.card__icon--lg svg { width: 38px; height: 38px; }

/* Extra-large card icon (Industries) */
.card__icon--xl { width: 96px; height: 96px; border-radius: 24px; }
.card__icon--xl svg { width: 52px; height: 52px; }

/* Belief cards (About) — icon to the left of the title */
.belief-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 10px; align-items: center; }
.belief-card .card__icon { grid-row: auto; margin-bottom: 0; }
.belief-card h3 { margin-bottom: 0; }
.belief-card p { grid-column: 1 / -1; margin: 0; }

/* Stat cards (About — The Numbers) */
.stat-card .stat__num { color: var(--blue); }

/* Equal-height explore cards so the blue links align on one level */
.explore-card { display: flex; flex-direction: column; }
.explore-card .link { margin-top: auto; }

/* Blue round / white tick check (Everything the Pod Handles) */
.check--blue { background: var(--blue); color: #fff; }
.check--blue svg { width: 14px; height: 14px; }

/* Contact: huge call/calendar icon for What Happens on the Call */
.contact-call-icon { width: 88px; height: 88px; border-radius: 24px; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.contact-call-icon svg { width: 46px; height: 46px; }

/* Large blue-circle white-tick checkbox (Contact) */
.check--lg { width: 32px; height: 32px; flex: 0 0 32px; }
.check--lg svg { width: 18px; height: 18px; }
.checklist--lg li { align-items: center; gap: 14px; }

/* Contact detail cards */
.contact-detail .stat__label { margin: 12px 0 6px; }

/* Article pages */
.article-hero { padding-bottom: 8px; }
.article-hero h1 { margin: 14px 0 12px; }
.article-meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.article-hero__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 8px; aspect-ratio: 16/9; object-fit: cover; }
.article-body { font-size: 1.06rem; }
.article-body .article-lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; margin-bottom: 28px; }
.article-body h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px; display: grid; gap: 10px; }
.article-body li { display: flex; gap: 10px; }
.article-body li::before { content: "\2022"; color: var(--purple); font-weight: 700; flex: 0 0 auto; }
.article-body a { text-decoration: underline; font-weight: 600; }

/* Resources: article card icons (replace image placeholders) */
.article__icon {
  display: grid; place-items: center; aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--purple-light), #fff); color: var(--blue);
}
.article__icon svg { width: 44px; height: 44px; }

/* Pod grid: 4 columns, 2 items each */
.pod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pod-col { display: grid; gap: 16px; }
.pod-item { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink); }

/* Pricing cards (3 columns, Most Popular highlighted) */
.price-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; position: relative; }
.price-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--purple-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.price-card__icon svg { width: 26px; height: 26px; }
.price-card h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.price-card__amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.price-card__amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card p { flex: 1 0 auto; }
.price-card .btn { margin-top: 16px; }
.price-card--popular { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.price-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 100px; white-space: nowrap; }

/* Capacity Audit: What We'll Review items */
.review-item { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }

/* Capacity Audit: Investment Free two-column block */
.invest-free { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--purple-light); border-radius: var(--radius); padding: 40px; }
.invest-free__left { display: flex; align-items: center; gap: 20px; }
.invest-free__icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; display: grid; place-items: center; }
.invest-free__icon svg { width: 32px; height: 32px; }
.invest-free__left h2 { margin: 0; }
.invest-free__right p { margin: 0; font-size: 1.1rem; }

/* 6) ANIMATIONS ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* 7) RESPONSIVE ------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pod-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .invest-free { grid-template-columns: 1fr; gap: 20px; padding: 32px; text-align: center; }
  .invest-free__left { flex-direction: column; text-align: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
  .nav__menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 16px 24px 24px; box-shadow: var(--shadow);
  }
  .nav__menu.open .btn { display: inline-flex; justify-content: center; margin-top: 8px; }
  .nav__menu.open .nav__mobile-cta { display: block; }
  .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 12px; min-width: 0; }
  .dropdown:not([aria-expanded="true"]) .dropdown__menu { display: none; }
  .grid--2, .grid--3, .grid--4, .checklist--2, .steps, .ba, .form__row { grid-template-columns: 1fr; }
  .trustbar { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 24px 0 40px; }
  .hero__copy { text-align: center; }
  .hero__copy .eyebrow { margin-left: auto; margin-right: auto; }
  .hero__actions { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero__media { justify-content: center; }
  .hero__media img { max-width: 100%; }
  /* Keep long hero CTA labels from overflowing the screen so centered heros stay centered */
  .hero__copy .btn { max-width: 100%; white-space: normal; text-align: center; }
  /* Homepage hero: left-aligned on mobile (distinct from other pages) */
  .hero--home .hero__copy { text-align: left; }
  .hero--home .hero__copy .eyebrow { margin-left: 0; margin-right: 0; }
  .hero--home .hero__actions { margin-left: 0; margin-right: 0; }
  .hero--home .hero__media { justify-content: flex-start; }
  .cta-band__grid { grid-template-columns: 1fr; text-align: center; }
  .cta-band__action { justify-content: center; }
  .cta-band__text h2 { justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}

@media (max-width: 440px) {
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
