/* Hisparadise Media — shared design system (used on every page: public,
   account, publisher, advertiser and admin). Portal-specific stylesheets
   (account.css, publisher.css, advertiser.css, admin.css, magazine.css)
   build on top of these tokens rather than redefining them. */

:root {
  --color-navy: #102A43;
  --color-teal: #236555;
  --color-orange: #E87247;
  --color-charcoal: #1F2933;
  --color-white: #FFFFFF;
  --color-light-gray: #F4F6F7;

  --color-border: #E1E6E9;
  --color-text: var(--color-charcoal);
  --color-text-muted: #52606D;

  /* Dedicated CTA blue used only by ad-slot cards, matching the approved
     ad card reference design (distinct from the navy/orange brand pair). */
  --color-ad-blue: #2E6BE6;
  --color-ad-blue-dark: #244FB0;

  /* BBC's own Reith Sans/Reith Serif are proprietary in-house typefaces with
     no public license, so Public Sans and PT Serif stand in here — both are
     free, well-supported, and built in the same spirit (Public Sans was
     explicitly designed for the same dense, civic/news use case). */
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 4px 16px rgba(16, 42, 67, 0.12);

  --container-width: 1400px;
}

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

html { font-size: 18px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 1rem;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--wide { max-width: 1920px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--color-navy); color: var(--color-white); }
.btn--primary:hover { background: #0b1e30; }
.btn--accent { background: var(--color-orange); color: var(--color-white); }
.btn--accent:hover { background: #d5623a; }
.btn--outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn--outline-light { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: var(--color-white); color: var(--color-navy); border-color: var(--color-white); }
.btn--teal { background: var(--color-teal); color: var(--color-white); }

/* Flash messages */
.flash {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}
.flash--success { background: #E4F3EE; color: var(--color-teal); }
.flash--error { background: #FCEAE4; color: #A8402A; }
.flash__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

/* ===== Modal (generic popup, used wherever a form shouldn't take over the
   page — e.g. admin/homepage-sections) ===== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16,42,67,0.55);
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.25rem;
  overflow-y: auto;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--color-white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  padding: 1.75rem 2rem 2rem;
  position: relative;
  box-shadow: var(--shadow-md);
}
.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-light-gray);
  color: var(--color-charcoal);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { background: var(--color-navy); color: var(--color-white); }
.modal h2 { margin-top: 0; }

/* ===== Header — BBC-style dark tab bar: single thin row, sharp edges,
   orange standing in for BBC's red active-tab accent. ===== */
.site-header { background: var(--color-navy); position: sticky; top: 0; z-index: 90; }

.header-bar {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  min-height: 52px;
}

.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand__logo { display: block; height: 34px; width: auto; }

.main-nav { display: flex; align-items: stretch; gap: 0; flex: 1; font-size: 0.95rem; font-weight: 600; }
.main-nav > a, .main-nav .has-dropdown > a {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.main-nav > a:hover, .main-nav .has-dropdown > a:hover {
  color: var(--color-white);
}
.main-nav > a.is-active {
  color: var(--color-white);
  border-bottom-color: var(--color-orange);
}
.main-nav__mobile-extra { display: none; }

.has-dropdown { position: relative; display: flex; align-items: stretch; }
.has-dropdown__arrow { display: none; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  min-width: 210px;
  z-index: 50;
  border: 1px solid var(--color-border);
  border-top: none;
}
.dropdown--right { left: auto; right: 0; }
.dropdown li a { display: block; padding: 0.5rem 1rem; font-weight: 500; white-space: nowrap; color: var(--color-text); border: none; font-size: 0.92rem; }
.dropdown li a:hover { background: var(--color-light-gray); color: var(--color-orange); }
.dropdown__divider { height: 1px; background: var(--color-border); margin: 0.4rem 0; }
.has-dropdown:hover .dropdown { display: block; }
.account-menu.is-open .dropdown { display: block; }

.header-tools { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; margin-left: auto; }

/* ===== Portal header (admin-header.php / portal-header.php) — the
   dedicated header used on every logged-in dashboard page instead of the
   public magazine navbar above. Reuses .site-header/.header-bar/.brand/
   .header-tools/.icon-btn/.account-menu/.dropdown from the public header. ===== */
.portal-header__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 1rem;
  margin-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.portal-header__alert-chip {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.portal-header__alert-chip.is-active { color: #fff; background: var(--color-orange); }
.portal-header__wallet-chip {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.portal-header__wallet-chip:hover { background: rgba(255,255,255,0.16); }
.dropdown__user { padding: 0.5rem 1rem; font-weight: 700; color: var(--color-navy); font-size: 0.9rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent;
  color: rgba(255,255,255,0.85); cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--color-orange); }
.icon-btn[aria-pressed="true"] { color: var(--color-orange); }
.icon-btn svg { width: 18px; height: 18px; }

.header-link {
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.header-link:hover { color: var(--color-white); }
.header-link--accent { color: var(--color-orange); }
.header-link--accent:hover { color: #ff9a72; }

.badge--dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-orange); border: 2px solid var(--color-navy); padding: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--color-white); border-radius: 2px; }

.account-menu { position: relative; display: flex; align-items: center; }
.account-menu__trigger {
  position: relative; display: flex; align-items: center; padding: 0 0.4rem;
  background: none; border: none; cursor: pointer; color: inherit; font: inherit;
}
.account-menu__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,0.15); color: var(--color-white); font-size: 0.8rem; font-weight: 700;
}
.account-menu__avatar img { width: 100%; height: 100%; object-fit: cover; }

.search-panel {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-light-gray);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
}
.search-panel.is-open { max-height: 80px; }
.search-panel__form { display: flex; gap: 0.6rem; padding: 0.85rem 1.25rem; }
.search-panel__form input {
  flex: 1; padding: 0.6rem 1rem; border: 1px solid var(--color-border);
  font-family: inherit; font-size: 0.9rem;
}
.search-panel__form input:focus { outline: none; border-color: var(--color-teal); }

/* Legacy house-ad classes retired in favor of the unified .ad-slot__card
   design below (see renderAdCard() in includes/ad-display.php). */

/* ===== Footer — BBC-style: plain, light, dense text links, no decoration ===== */
.site-footer { background: var(--color-light-gray); color: var(--color-charcoal); margin-top: 3rem; border-top: 3px solid var(--color-navy); position: relative; }
.site-footer__grid {
  padding: 2.25rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 1.75rem;
}
.site-footer h2, .site-footer h3 { color: var(--color-charcoal); }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; height: 34px; width: auto; }
.site-footer__tagline { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--color-text-muted); font-weight: 600; margin-top: 0.35rem; }
.site-footer__advertise-btn { display: inline-block; margin-top: 1rem; }
.site-footer__column h3 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.85rem; }
.site-footer__column ul { list-style: none; padding: 0; margin: 0; }
.site-footer__column li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.site-footer__column a { color: var(--color-text-muted); }
.site-footer__column a:hover { color: var(--color-orange); }
.site-footer__column--follow h3 { margin-bottom: 0.7rem; }
.social-links { display: flex; flex-direction: row; gap: 0.5rem; margin-bottom: 1rem; }
.social-links li { margin-bottom: 0; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--color-white); border: 1px solid var(--color-border); color: var(--color-charcoal);
}
.social-links a:hover { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.social-links svg { width: 13px; height: 13px; }
.site-footer__cta-line { font-size: 0.78rem; color: var(--color-text-muted); line-height: 1.4; }

.newsletter-form label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; }
.newsletter-form__row { display: flex; gap: 0.5rem; }
.newsletter-form__row input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
}

.site-footer__bottom { border-top: 1px solid var(--color-border); padding: 0.9rem 0; font-size: 0.76rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--color-text-muted); }
.site-footer__bottom-inner p { margin: 0; }

.scroll-top-btn {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--color-orange); color: var(--color-white);
  font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-md);
  display: none; align-items: center; justify-content: center;
}
.scroll-top-btn.is-visible { display: flex; }
.scroll-top-btn:hover { background: #d5623a; }

/* ===== Forms (shared across auth/account/publisher/advertiser/admin) ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-control:focus { outline: none; border-color: var(--color-teal); }
.form-hint { font-size: 0.88rem; color: var(--color-text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.88rem; color: #A8402A; margin-top: 0.3rem; }
.form-section { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.25rem; margin-bottom: 1.25rem; }
.form-section legend { font-weight: 700; color: var(--color-navy); padding: 0 0.4rem; font-size: 0.95rem; }
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; }

/* ===== Ad slots — unified card design: light card, "Ad" label + info icon
   top-right, bold headline, muted subtext, blue pill CTA with an arrow. */
.ad-slot {
  margin: 1.5rem 0;
}
.ad-slot__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16,42,67,0.06);
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
  width: 100%;
}
.ad-slot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.ad-slot__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.ad-slot__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text-muted);
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
}
.ad-slot__body {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}
/* No image: content simply fills the card. With an image: a fixed-width
   thumbnail sits beside the copy instead of a large stacked banner. */
.ad-slot__card--with-image .ad-slot__body { align-items: center; }
.ad-slot__card--with-image .ad-slot__image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.ad-slot__image {
  border-radius: 10px;
  object-fit: cover;
}
.ad-slot__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}
.ad-slot__headline {
  font-family: var(--font-serif);
  font-weight: 800;
  color: var(--color-navy);
  font-size: 1.35rem;
  line-height: 1.25;
}
.ad-slot__subtext { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.4; }
.ad-slot__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  background: var(--color-ad-blue);
  color: var(--color-white);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}
.ad-slot__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.ad-slot__card:hover .ad-slot__cta { background: var(--color-ad-blue-dark); }

/* Slots that live in a narrow sidebar column don't have room for a
   side-by-side image + text layout, so stack them there instead. */
.ad-slot--home-sidebar .ad-slot__card--with-image .ad-slot__body,
.ad-slot--article-sidebar .ad-slot__card--with-image .ad-slot__body {
  flex-direction: column;
  align-items: flex-start;
}
.ad-slot--home-sidebar .ad-slot__card--with-image .ad-slot__image,
.ad-slot--article-sidebar .ad-slot__card--with-image .ad-slot__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* ===== Pagination ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination__link {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.pagination__link--active { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.pagination__link:hover:not(.pagination__link--active) { background: var(--color-light-gray); }

/* ===== Premium paywall ===== */
.premium-lock {
  position: relative;
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--color-light-gray);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-orange);
}
.premium-lock__badge {
  display: inline-block;
  color: var(--color-orange);
  padding: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.premium-lock h3 { font-family: var(--font-sans); font-weight: 800; margin-bottom: 0.5rem; }
.premium-lock p { color: var(--color-text-muted); max-width: 420px; margin-left: auto; margin-right: auto; }
.premium-lock__actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== Dashboard shell (account/publisher/advertiser/admin) =====
   Desktop: sidebar is a permanent left column, as normal. Mobile (see
   responsive.css, <=860px): it becomes an off-canvas drawer hidden by
   default and toggled via the hamburger button navbar.php renders whenever
   a page sets $sidebarItems — .sidebar-toggle and the drawer's close
   button are hidden here and only revealed at that breakpoint. */
.dashboard-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.dashboard-sidebar {
  background: var(--color-light-gray);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.dashboard-sidebar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dashboard-sidebar__title { font-size: 1rem; margin: 0; }
.dashboard-sidebar__close { display: none; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--color-text-muted); padding: 0 0.25rem; }
.dashboard-sidebar__close:hover { color: var(--color-navy); }
.dashboard-sidebar ul { list-style: none; margin: 0; padding: 0; }
.dashboard-sidebar li { margin-bottom: 0.25rem; }
.dashboard-sidebar a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}
.dashboard-sidebar a:hover { background: rgba(16,42,67,0.06); }
.dashboard-sidebar li.is-active a { background: var(--color-navy); color: var(--color-white); }

.dashboard-sidebar-backdrop { display: none; }

.sidebar-toggle { display: none; margin-right: 0.5rem; flex-direction: column; gap: 4px; }
.sidebar-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }

.dashboard-main { min-width: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card__value { font-family: var(--font-serif); font-size: 1.8rem; color: var(--color-navy); }
.stat-card__label { color: var(--color-text-muted); font-size: 0.92rem; }

.announcement-bar { background: var(--color-orange); color: #fff; text-align: center; font-size: 0.85rem; font-weight: 600; }
.announcement-bar__inner { padding: 0.5rem 1rem; }
.announcement-bar a { color: #fff; text-decoration: underline; }

.impersonation-banner { background: var(--color-orange); color: var(--color-white); position: relative; z-index: 95; }

.push-prompt {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--color-navy); color: var(--color-white);
  box-shadow: 0 -2px 12px rgba(16,42,67,0.25);
}
.push-prompt__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
}
.push-prompt__text { font-size: 0.92rem; }
.push-prompt__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.push-prompt__dismiss { width: 32px; height: 32px; color: rgba(255,255,255,0.7); }
.push-prompt__dismiss:hover { color: var(--color-white); }
@media (max-width: 600px) {
  .push-prompt__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .push-prompt__actions { justify-content: center; }
}
.impersonation-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 1.25rem; font-size: 0.86rem; flex-wrap: wrap;
}
.impersonation-banner__btn {
  background: var(--color-white); color: var(--color-navy); border-radius: var(--radius);
  padding: 0.35rem 0.9rem; font-weight: 700; font-size: 0.82rem; white-space: nowrap;
}
.impersonation-banner__btn:hover { background: var(--color-light-gray); }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--color-text-muted); }
.empty-state h3 { color: var(--color-navy); }

.dashboard-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dashboard-main__header h1 { margin-bottom: 0; }

.user-view-header { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.user-view-header__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-view-header__avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-navy); color: var(--color-white);
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700;
}
.user-view-header__body { flex: 1; min-width: 200px; }
.user-view-header__body h1 { margin-bottom: 0.2rem; }
.user-view-header__email { color: var(--color-text-muted); margin-bottom: 0.5rem; }
.user-view-header__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.user-view-header__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-start; }

.btn--small { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.data-table th { color: var(--color-text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.inline-views-form { display: flex; align-items: center; gap: 0.4rem; }
.inline-views-form__input { width: 85px; padding: 0.3rem 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.88rem; }

.badge-success, .badge-muted {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #E4F3EE; color: var(--color-teal); }
.badge-muted { background: var(--color-light-gray); color: var(--color-text-muted); }

/* ===== Status badges (articles, applications, publishers, campaigns...) ===== */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge--draft, .status-badge--pending, .status-badge--pending-payment, .status-badge--pending-review { background: var(--color-light-gray); color: var(--color-text-muted); }
.status-badge--changes-requested, .status-badge--more-information-required { background: #FFF3E0; color: #B8620E; }
.status-badge--approved, .status-badge--published, .status-badge--active, .status-badge--confirmed, .status-badge--paid { background: #E4F3EE; color: var(--color-teal); }
.status-badge--rejected, .status-badge--failed, .status-badge--suspended, .status-badge--cancelled { background: #FCEAE4; color: #A8402A; }
.status-badge--scheduled { background: #EAF1FB; color: #2B5B9E; }
.status-badge--archived, .status-badge--expired, .status-badge--completed { background: var(--color-light-gray); color: var(--color-text-muted); }

/* ===== Generic detail/grid + form-actions used across publisher/admin review screens ===== */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem 1.5rem; margin: 1rem 0 1.5rem; }
.detail-grid p { margin: 0; }

.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.article-editor { font-family: var(--font-serif); font-size: 1rem; line-height: 1.7; }

.editorial-feedback {
  background: #FFF3E0;
  border-left: 4px solid var(--color-orange);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.article-preview__category { color: var(--color-teal); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; }
.article-preview__subtitle { color: var(--color-text-muted); font-size: 1.1rem; }
.article-preview__image, .featured-image-preview { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 1rem 0; }
.article-preview__content { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.8; max-width: 720px; }

/* ===== Static prose pages (about, policies, become-publisher, guidelines) ===== */
.static-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem; }
.static-page h1 { margin-bottom: 1rem; }
.static-page h2 { margin-top: 2rem; }
.static-page ul, .static-page ol { padding-left: 1.25rem; }
.static-page li { margin-bottom: 0.4rem; }

.wysiwyg-editor .ql-editor { min-height: 320px; font-size: 1rem; font-family: inherit; }
.wysiwyg-editor .ql-toolbar.ql-snow { border-radius: 0; border-color: var(--color-border); }
.wysiwyg-editor .ql-container.ql-snow { border-radius: 0; border-color: var(--color-border); }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.25rem; background: #fff; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--color-navy); }
.faq-item p { margin-top: 0.75rem; color: var(--color-text-muted); }

.interest-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.interest-chip:has(input:checked) { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }

.dashboard-sidebar__group {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 1.1rem 0 0.4rem;
  padding: 0 0.75rem;
}
.dashboard-sidebar__group:first-of-type { margin-top: 0.25rem; }

.error-page { max-width: 600px; margin: 4rem auto; text-align: center; padding: 0 1.25rem; }
.error-page h1 { font-size: 4rem; color: var(--color-orange); }

/* ===== Auth pages (login/register/forgot/reset/verify) ===== */
.auth-page { padding: 3rem 1.25rem; display: flex; justify-content: center; }
.auth-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-card > p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.auth-card form .btn { width: 100%; margin-top: 0.5rem; }
.auth-card__footer { margin-top: 1.25rem; font-size: 0.9rem; text-align: center; color: var(--color-text-muted); }

/* ===== Split-screen registration page (auth/register.php only — the other
   auth pages above keep the plain centered .auth-card, which this doesn't
   touch) ===== */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.auth-split__panel {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a5c 55%, var(--color-teal) 130%);
  color: var(--color-white); display: flex; align-items: center; padding: 3rem 2.5rem;
}
.auth-split__panel-inner { max-width: 420px; margin: 0 auto; }
.auth-split__panel h2 { font-family: var(--font-sans); font-size: 1.9rem; color: var(--color-white); margin: 0 0 0.75rem; line-height: 1.2; }
.auth-split__panel > p { color: rgba(255,255,255,0.78); line-height: 1.6; margin: 0 0 2rem; }
.auth-split__benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.auth-split__benefits li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; color: rgba(255,255,255,0.92); }
.auth-split__benefits li span.auth-split__icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.auth-split__form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: var(--color-white); }
.auth-split__form .auth-card { box-shadow: none; border: none; padding: 0; max-width: 400px; }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-split__panel { padding: 2.25rem 1.5rem; }
  .auth-split__panel-inner { max-width: none; }
  .auth-split__panel h2 { font-size: 1.5rem; }
  .auth-split__benefits { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
  .auth-split__benefits li { font-size: 0.85rem; }
  .auth-split__form { padding: 2.25rem 1.5rem; }
}
.auth-card__footer a { color: var(--color-teal); font-weight: 600; }
