/* ============================================================
   Selling Lane — Standalone Site Styles
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --navy: #0f172a;
  --slate: #334155;
  --slate-light: #64748b;
  --gray: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --green: #16a34a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--slate);
  line-height: 1.6;
  background: var(--white);
}

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

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--slate); }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: .3rem .75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ── Utility Top Bar ─────────────────────────────────────── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  padding: .4rem 1.5rem;
  max-width: 1400px;
  margin-inline: auto;
  gap: 1rem;
}
.top-bar a { color: rgba(255,255,255,.88); text-decoration: none; transition: color .15s, opacity .15s; }
.top-bar a:hover { color: #fff; }
.top-bar-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.top-bar-phone svg { width: 14px; height: 14px; opacity: .85; }
.top-bar-right { display: flex; align-items: center; gap: 1.25rem; }
.top-bar-social { display: inline-flex; gap: .9rem; }
.top-bar-social a { display: inline-flex; align-items: center; justify-content: center; opacity: .75; }
.top-bar-social a:hover { opacity: 1; }
.top-bar-social svg { width: 15px; height: 15px; }
.top-bar-login { font-weight: 600; opacity: .9; }
.top-bar-cta {
  background: var(--blue);
  color: #fff !important;
  padding: .35rem .95rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background .15s, transform .15s;
}
.top-bar-cta:hover { background: var(--blue-dark); color: #fff !important; transform: translateY(-1px); }

@media (max-width: 760px) {
  .top-bar-social, .top-bar-login { display: none; }
  .top-bar-inner { padding: .4rem 1rem; min-height: 32px; gap: .5rem; }
  .top-bar-cta { padding: .3rem .75rem; font-size: .72rem; }
  .top-bar { font-size: .78rem; }
}

/* ── Layout Helpers ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: 6rem 0; }
.section-alt { background: var(--gray); }

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.35); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover { background: var(--blue-light); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .4rem 0;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }

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

.nav-login {
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate);
  transition: color .2s;
}
.nav-login:hover { color: var(--blue); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* mobile nav */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--slate);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .btn { margin-top: .75rem; text-align: center; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 60%, var(--blue) 100%);
  padding: 3.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #10b981;
  border: 1px solid #059669;
  color: #ffffff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .55rem 1.15rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(16,185,129,.35);
}

.hero-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: hero-badge-pulse 1.8s ease-out infinite;
}

@keyframes hero-badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: #60a5fa; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-phone {
  margin-top: 1.5rem;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}
.hero-phone a { color: rgba(255,255,255,.9); font-weight: 600; }
.hero-phone a:hover { color: var(--white); }

.hero-price-anchor {
  margin-top: 1.25rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.5;
}
.hero-price-anchor strong { color: var(--white); font-weight: 700; }
.hero-price-anchor a {
  color: rgba(255,255,255,.95);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: .25rem;
}
.hero-price-anchor a:hover { color: var(--white); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero-card-dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-card-dot.red { background: #ef4444; }
.hero-card-dot.yellow { background: #f59e0b; }
.hero-card-dot.green { background: #22c55e; }

.hero-card-title { font-size: .85rem; font-weight: 600; color: var(--slate-light); margin-left: auto; margin-right: auto; }

.hero-stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.hero-stat-label { font-size: .75rem; color: var(--slate-light); }

.hero-card-bar {
  height: 8px;
  background: var(--gray);
  border-radius: 100px;
  margin-bottom: .6rem;
  overflow: hidden;
}
.hero-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  border-radius: 100px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--slate-light);
  margin-bottom: .25rem;
}

.hero-card-profit {
  margin-top: 1.25rem;
  padding: .85rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  text-align: center;
}
.hero-card-profit-num { font-size: 1.4rem; font-weight: 800; color: var(--green); }
.hero-card-profit-label { font-size: .75rem; color: #16a34a; }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--slate-light);
  white-space: nowrap;
  transition: color .15s;
}
a.trust-item:hover { color: var(--blue); }
.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .25s;
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.feature-card p { font-size: .9rem; color: var(--slate-light); line-height: 1.55; }

/* ── Comparison / Profit Section ─────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.comparison-card {
  border-radius: var(--radius);
  padding: 2rem;
}
.comparison-card.bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.comparison-card.good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.comparison-card h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.comparison-card.bad h3 { color: #dc2626; }
.comparison-card.good h3 { color: var(--green); }

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
  font-size: .9rem;
}
.comparison-item .icon { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.comparison-item p { color: var(--slate); }

/* ── Steps ───────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.step-card h3 { margin-bottom: .6rem; }
.step-card p { font-size: .9rem; color: var(--slate-light); }

/* ── Categories ──────────────────────────────────────────── */
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.category-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .85rem;
  color: var(--slate);
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
a.category-tag:hover { text-decoration: none; }
.category-tag:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .05em; }

.testimonial-card blockquote {
  font-size: .92rem;
  color: var(--slate);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: .9rem; color: var(--navy); }
.author-role { font-size: .8rem; color: var(--slate-light); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 3.5rem auto 0;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  transition: all .25s;
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-light); margin-bottom: .75rem; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-price span { font-size: 1.25rem; font-weight: 500; color: var(--slate-light); }
.pricing-equiv { font-size: .85rem; color: var(--green); font-weight: 600; margin-top: .35rem; }

.pricing-features {
  list-style: none;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: var(--slate);
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.pricing-note { font-size: .82rem; color: var(--slate-light); margin-top: 1rem; text-align: center; }

/* ── Comparison Table ────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
  font-size: .9rem;
}

.compare-table th, .compare-table td {
  padding: .85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius) 0 0; }

.compare-table tr:nth-child(even) td { background: var(--gray); }
.compare-table td.highlight { font-weight: 700; color: var(--green); }
.compare-table td.dim { color: var(--slate-light); }
.compare-table td.bad { color: #dc2626; }
.compare-table td:first-child { font-weight: 500; color: var(--navy); }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 60%, var(--blue) 100%);
  padding: 6rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 2rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-row .footer-logo-img { flex-shrink: 0; }
.footer-brand-row p {
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  margin: 0;
  max-width: 640px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .75rem;
}
.footer-brand h3 span { color: #60a5fa; }
.footer-brand p { font-size: .88rem; line-height: 1.65; max-width: 280px; color: rgba(255,255,255,.85); }

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact { margin-top: 1.25rem; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
  transition: color .2s;
}
.footer-contact a:hover { color: var(--white); }

.footer-meta-row {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-meta-row .footer-contact { margin-top: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-meta-row .footer-contact a { margin-bottom: 0; }
.footer-meta-row .social-links { margin-top: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ── Social Icons ────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: all .2s;
}
.social-link:hover { background: var(--blue); color: var(--white); }

/* ── Nav Dropdown ────────────────────────────────────────── */
.has-dropdown { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  width: 720px;
  padding: 1rem;
}

/* Invisible bridge so moving from nav link → dropdown doesn't lose hover */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown { display: block; }

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .25rem;
}

.nav-dropdown-grid a {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: 8px;
  transition: background .15s;
  font-size: .85rem;
  color: var(--slate);
}
.nav-dropdown-grid a:hover { background: var(--gray); color: var(--navy); }

.dd-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

.nav-dropdown-grid a strong { display: block; color: var(--navy); font-weight: 600; font-size: .85rem; }
.nav-dropdown-grid a small { color: var(--slate-light); font-size: .78rem; display: block; margin-top: .1rem; }

.nav-dropdown-sm { width: 320px; left: 50%; transform: translateX(-50%); }
.nav-dropdown-wide { width: 920px; }
.nav-dropdown-grid-compact { grid-template-columns: repeat(4, 1fr); }
.nav-dropdown-grid-compact a { padding: .55rem .65rem; align-items: center; }
.nav-dropdown-grid-compact a strong { font-size: .82rem; line-height: 1.25; }
.nav-dropdown-footer {
  margin-top: .5rem;
  padding: .65rem .75rem 0;
  border-top: 1px solid var(--border);
  text-align: right;
}
.nav-dropdown-footer a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
}
.nav-dropdown-footer a:hover { text-decoration: underline; }
.nav-dropdown-list { display: flex; flex-direction: column; gap: .25rem; }
.nav-dropdown-list a {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .6rem .85rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--slate);
  transition: background .15s;
}
.nav-dropdown-list a:hover { background: var(--gray); color: var(--navy); }
.nav-dropdown-list a strong { display: block; color: var(--navy); font-weight: 600; font-size: .85rem; }
.nav-dropdown-list a small { color: var(--slate-light); font-size: .78rem; display: block; margin-top: .1rem; }

/* ── Feature Page Hero ───────────────────────────────────── */
.feature-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 60%, var(--blue) 100%);
  padding: 2.25rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.feature-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.feature-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-hero-text { min-width: 0; }
.feature-hero-icon { display: none; }
.feature-hero h1 { color: var(--white); margin-bottom: 1rem; }
.feature-hero h1 em { font-style: normal; color: #60a5fa; }
.feature-hero .lead { color: rgba(255,255,255,.82); font-size: 1.1rem; margin: 0 0 2rem; }
.feature-hero-image {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.05);
}
.feature-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Featured image section — used mid-page for extra visual */
.feature-image-block {
  margin: 2.5rem 0 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.feature-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Feature Page Content ────────────────────────────────── */
.feature-content { max-width: 860px; margin-inline: auto; }

.feature-content h2 { margin-bottom: 1rem; }
.feature-content p { margin-bottom: 1.15rem; color: var(--slate); line-height: 1.75; font-size: 1rem; }

.feature-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .25s;
}
.benefit-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.benefit-card .benefit-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.benefit-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.benefit-card p { font-size: .88rem; color: var(--slate-light); margin: 0; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 1.5rem 0 2rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--slate);
}
.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

.feature-steps { counter-reset: step; margin: 2rem 0; }
.feature-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.feature-step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}
.feature-step-body h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature-step-body p { font-size: .92rem; color: var(--slate-light); margin: 0; }

.callout {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--slate);
  font-size: .97rem;
  line-height: 1.7;
}

.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Features Hub Grid ───────────────────────────────────── */
.features-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
}
.hub-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.hub-card-image {
  aspect-ratio: 16 / 9;
  background: var(--gray);
  overflow: hidden;
}
.hub-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hub-card:hover .hub-card-image img { transform: scale(1.04); }
.hub-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  flex: 1;
}
.hub-card-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.hub-card h3 { font-size: 1rem; margin-bottom: .3rem; color: var(--navy); }
.hub-card p { font-size: .85rem; color: var(--slate-light); margin: 0; line-height: 1.5; }

/* ── Video Embed ─────────────────────────────────────────── */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  margin: 2rem 0;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Click-to-play lite YouTube wrapper — hides all YouTube chrome (including
   subscriber count) until the user clicks. JS in main.js swaps in the iframe
   on click. Use inside any 16:9 wrapper (.video-embed, .fd-video, etc). */
.yt-lite {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}
.yt-lite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.05) 0%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
}
.yt-lite-play {
  position: relative;
  width: 78px;
  height: 56px;
  border: 0;
  background: rgba(33,33,33,.85);
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 1;
}
.yt-lite-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(2px);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.yt-lite:hover .yt-lite-play,
.yt-lite:focus-within .yt-lite-play {
  background: #ff0000;
  transform: scale(1.05);
}

/* Video pair on homepage / feature showcase */
.video-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.video-showcase .video-embed { margin: 0; }

@media (max-width: 800px) {
  .video-showcase { grid-template-columns: 1fr; }
}

/* ── Auction School Post ─────────────────────────────────── */
.post-article { padding-bottom: 4rem; }
.post-header {
  padding: 4rem 0 2rem;
  background: var(--gray);
  border-bottom: 1px solid var(--border);
}
.post-meta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--navy);
}
.post-excerpt {
  font-size: 1.2rem;
  color: var(--slate-light);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}
.post-featured-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--gray);
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--slate);
  margin-top: 3rem;
}
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  color: var(--navy);
  margin: 2.25rem 0 1rem;
  line-height: 1.25;
}
.post-body h2 { font-size: 1.75rem; }
.post-body h3 { font-size: 1.35rem; }
.post-body h4 { font-size: 1.1rem; }
.post-body p { margin-bottom: 1.25rem; }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body a:hover { color: var(--blue-dark); }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.5rem; }
.post-body li { margin-bottom: .5rem; }
.post-body blockquote {
  border-left: 4px solid var(--blue);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--slate);
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  display: block;
}
.post-body figure { margin: 1.5rem 0; }
.post-body figure img { margin: 0; }
.post-body figcaption {
  font-size: .88rem;
  color: var(--slate-light);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}
.post-body pre {
  background: var(--navy);
  color: #f1f5f9;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .9rem;
  margin: 1.5rem 0;
}
.post-body code { background: var(--gray); padding: .15rem .4rem; border-radius: 4px; font-size: .92em; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.post-body strong { color: var(--navy); }

.post-footer {
  max-width: 780px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}

/* ── Admin (Auction School editor) ───────────────────────── */
.admin-wrap { max-width: 960px; margin: 2.5rem auto; padding: 0 1.5rem; }
.admin-wrap-wide { max-width: 1440px; margin: 1.5rem auto; padding: 0 1rem; }
.admin-wrap-full { max-width: none; margin: 1.5rem 0 0; padding: 0 1.5rem; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.admin-header h1 { color: var(--navy); font-size: 1.75rem; }
.admin-note {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 1.5rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.admin-table th { background: var(--gray); color: var(--navy); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .status-published { color: var(--green); font-weight: 600; }
.admin-table .status-draft { color: #f59e0b; font-weight: 600; }

.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input[type="checkbox"] { width: auto; padding: 0; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-field input:disabled { background: var(--gray); color: var(--slate-light); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-help { font-size: .78rem; color: var(--slate-light); margin-top: .3rem; }

.featured-preview {
  margin-top: .5rem;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--gray);
  border-radius: 8px;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
}
.featured-preview img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.editor-container { border: 1px solid var(--border); border-radius: 8px; background: var(--white); overflow: hidden; }
.editor-container .ql-toolbar {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  position: sticky;
  top: 145px;
  background: var(--white);
  z-index: 5;
}
.editor-container .ql-container { border: none !important; min-height: calc(100vh - 360px); font-size: 1rem; }
.editor-container .ql-editor { padding: 1.75rem 2rem; font-size: 1.02rem; line-height: 1.75; max-width: 820px; margin-inline: auto; }
.editor-container .ql-editor h1, .editor-container .ql-editor h2, .editor-container .ql-editor h3 { color: var(--navy); line-height: 1.25; }
.editor-container .ql-editor p { margin-bottom: 1rem; }

.admin-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: var(--white);
  font-weight: 500;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: translateY(10px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: #dc2626; }

/* ── Admin Sidebar ───────────────────────────────────────── */
:root { --admin-nav-w: 232px; --admin-nav-w-collapsed: 64px; }

body.admin-shell { padding-left: var(--admin-nav-w); transition: padding-left .18s ease; }
body.admin-shell.nav-collapsed { padding-left: var(--admin-nav-w-collapsed); }

.admin-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--admin-nav-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(0,0,0,.02);
  z-index: 100;
  transition: width .18s ease, transform .18s ease;
  overflow: hidden;
}
.admin-nav.collapsed { width: var(--admin-nav-w-collapsed); }

.admin-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: none;
  padding: 0;
  gap: 0;
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 60px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}
.admin-nav-brand img { flex-shrink: 0; height: 32px; width: auto; }
.admin-nav-brand span {
  font-size: .7rem;
  background: var(--blue);
  color: var(--white);
  padding: .15rem .5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.admin-nav-toggle {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--slate-light);
  padding: .35rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.admin-nav-toggle:hover { background: var(--gray); color: var(--navy); }
.admin-nav-toggle svg { width: 18px; height: 18px; }

.admin-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .1rem;
  padding: .5rem .5rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}
.admin-nav-links a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .7rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.admin-nav-links a:hover { background: var(--gray); color: var(--navy); }
.admin-nav-links a.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}
.admin-nav-links a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-links a .nav-label { min-width: 0; }

.admin-nav-group-label {
  padding: 1rem .7rem .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-light);
  white-space: nowrap;
  overflow: hidden;
}

.admin-nav-bottom {
  border-top: 1px solid var(--border);
  padding: .5rem;
  flex-shrink: 0;
}
.admin-nav-link-out {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .7rem;
  font-size: .88rem;
  color: var(--slate-light);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.admin-nav-link-out:hover { color: var(--navy); background: var(--gray); }
.admin-nav-link-out svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Collapsed state: hide labels, center icons */
.admin-nav.collapsed .admin-nav-brand img,
.admin-nav.collapsed .admin-nav-brand span,
.admin-nav.collapsed .admin-nav-links a .nav-label,
.admin-nav.collapsed .admin-nav-group-label,
.admin-nav.collapsed .admin-nav-link-out .nav-label,
.admin-nav.collapsed .nav-user-name,
.admin-nav.collapsed .nav-user-caret {
  display: none !important;
}
.admin-nav.collapsed .admin-nav-brand {
  justify-content: center;
  padding: .85rem .5rem;
}
.admin-nav.collapsed .admin-nav-links a,
.admin-nav.collapsed .admin-nav-link-out,
.admin-nav.collapsed .nav-user-btn {
  justify-content: center;
  padding: .55rem;
}
.admin-nav.collapsed .admin-nav-group-label {
  padding: .75rem 0 .25rem;
  text-align: center;
}
.admin-nav.collapsed .admin-nav-group-label::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  width: 24px;
}
.admin-nav.collapsed .admin-nav-toggle { margin-left: 0; }

/* User menu inside sidebar: open upward instead of downward */
.admin-nav .nav-user-menu { width: 100%; }
.admin-nav .nav-user-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: .55rem .7rem;
  border-radius: 6px;
  justify-content: flex-start;
}
.admin-nav .nav-user-btn:hover { background: var(--gray); }
.admin-nav .nav-user-dropdown {
  top: auto;
  bottom: calc(100% + 8px);
  right: auto;
  left: 0;
  min-width: 220px;
}
.admin-nav.collapsed .nav-user-dropdown { left: calc(100% + 8px); bottom: 0; }

/* Mobile topbar + overlay */
.admin-mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
}
.admin-mobile-topbar button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .4rem .55rem;
  cursor: pointer;
  color: var(--slate);
}
.admin-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  z-index: 99;
}

@media (max-width: 900px) {
  body.admin-shell,
  body.admin-shell.nav-collapsed { padding-left: 0; }
  .admin-nav {
    transform: translateX(-100%);
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
  }
  .admin-nav.mobile-open { transform: translateX(0); }
  .admin-nav.mobile-open + .admin-nav-overlay { display: block; }
  .admin-mobile-topbar { display: flex; }
}

.admin-warning-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  color: #92400e;
  padding: .75rem 1.5rem;
  text-align: center;
  font-size: .88rem;
}
.admin-warning-banner a { color: #92400e; font-weight: 600; text-decoration: underline; }

/* ── Dashboard ───────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--slate-light); margin-top: .4rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.dashboard-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-panel-header h2 { font-size: 1rem; color: var(--navy); }

.recent-posts-list { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.recent-posts-list a {
  display: flex;
  gap: 1rem;
  padding: .75rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background .15s;
}
.recent-posts-list a:hover { background: var(--gray); }
.recent-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray);
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-meta strong { display: block; color: var(--navy); font-size: .92rem; line-height: 1.3; }
.recent-meta small { font-size: .78rem; color: var(--slate-light); }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.quick-action {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.25rem;
  background: var(--gray);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  border: 1px solid transparent;
}
.quick-action:hover { background: var(--blue-light); border-color: var(--blue); }
.quick-action .qa-icon { font-size: 1.6rem; }
.quick-action strong { color: var(--navy); font-size: .95rem; }
.quick-action span { font-size: .82rem; color: var(--slate-light); line-height: 1.45; }

/* ── Filter bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  background: var(--white);
  padding: .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.filter-bar input[type="search"], .filter-bar select {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .88rem;
  font-family: inherit;
  background: var(--white);
}
.filter-bar input[type="search"] { flex: 1; min-width: 180px; }

/* ── Tag chip ────────────────────────────────────────────── */
.tag-chip {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  padding: .25rem .65rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  margin-right: .3rem;
  transition: all .15s;
}
.tag-chip:hover { background: var(--blue); color: var(--white); }
.tag-chip.active { background: var(--blue); color: var(--white); }

/* ── Editor layout (2-col sidebar) ───────────────────────── */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: flex-start;
}
.editor-main { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.editor-main-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.editor-sidebar > * { min-width: 0; }
.editor-sidebar input,
.editor-sidebar textarea { max-width: 100%; box-sizing: border-box; }
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.sidebar-box h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-box .form-field { margin-bottom: .85rem; }
.sidebar-actions { margin-top: .5rem; }

.editor-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  overflow: hidden;
}
.editor-details summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
  font-size: .95rem;
}
.editor-details summary:hover { background: var(--gray); }
.editor-details[open] summary { border-bottom: 1px solid var(--border); }
.editor-details-body { padding: 1.25rem; }

.seo-preview {
  background: var(--gray);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  border-left: 3px solid var(--blue);
}
.seo-preview-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-light);
  font-weight: 600;
  margin-bottom: .5rem;
}
.serp-url { font-size: .72rem; color: #3a8a36; margin-bottom: .2rem; word-break: break-all; }
.serp-title {
  font-size: .95rem;
  color: #1a0dab;
  margin-bottom: .2rem;
  font-family: arial, sans-serif;
  line-height: 1.25;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-word;
}
.serp-desc {
  font-size: .78rem;
  color: #4d5156;
  font-family: arial, sans-serif;
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 520px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { position: static; }
  .dashboard-grid { grid-template-columns: 1fr; }
  /* sidebar handled by dedicated 900px media query below */
}

/* ═══════════════════════════════════════════════════════════
   Modern Admin — Login Page
   ═══════════════════════════════════════════════════════════ */

body.login-body { min-height: 100vh; background: var(--navy); }

.login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left / brand panel */
.login-brand-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.login-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(96,165,250,.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,.2)  0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-brand-inner {
  position: relative;
  height: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 520px;
  margin-inline: auto;
}
.login-brand-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  width: auto;
}
.login-brand-content { padding: 3rem 0; }
.login-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.login-brand-panel h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.login-brand-panel p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 2.5rem;
}
.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin: 0;
  padding: 0;
}
.login-features li {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.login-features li span {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}
.login-brand-footer {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* Right / form panel */
.login-form-panel {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-form-inner {
  width: 100%;
  max-width: 400px;
}
.login-form-header { margin-bottom: 2rem; }
.login-form-header h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: .4rem;
  letter-spacing: -.02em;
}
.login-form-header p { color: var(--slate-light); font-size: 1rem; }

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.login-alert.error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.login-alert.warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.login-alert svg { flex-shrink: 0; margin-top: 2px; }

.login-form .form-field { margin-bottom: 1.1rem; }
.login-form label { font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: .45rem; display: block; }

.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}
.link-btn:hover { text-decoration: underline; }

.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: .5rem;
  padding: .95rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.login-footer-links {
  margin-top: 2rem;
  text-align: center;
  font-size: .85rem;
  color: var(--slate-light);
}
.login-footer-links a { color: var(--slate-light); text-decoration: none; margin: 0 .4rem; }
.login-footer-links a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; }
}

/* ═══════════════════════════════════════════════════════════
   Modern Admin — Dashboard
   ═══════════════════════════════════════════════════════════ */

.dash-hero {
  background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 60%, #2563eb 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(96,165,250,.25) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%,  rgba(139,92,246,.15) 0%, transparent 40%);
  pointer-events: none;
}
.dash-hero-text { position: relative; }
.dash-greeting {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .4rem;
}
.dash-hero h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.dash-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 540px; margin: 0; }
.dash-hero p strong { color: var(--white); }
.dash-hero-actions {
  position: relative;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.dash-hero-actions .btn-outline {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.dash-hero-actions .btn-outline:hover { background: rgba(255,255,255,.2); color: var(--white); }
.dash-hero-actions .btn-primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.dash-hero-actions .btn-primary:hover { background: var(--gray); }

/* Modern stat cards with gradient accents */
.stat-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card-modern {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.stat-card-modern:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar-color, var(--blue));
}
.stat-card-modern.grad-blue   { --bar-color: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card-modern.grad-green  { --bar-color: linear-gradient(90deg, #10b981, #34d399); }
.stat-card-modern.grad-purple { --bar-color: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card-modern.grad-amber  { --bar-color: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card-modern.grad-red    { --bar-color: linear-gradient(90deg, #ef4444, #f87171); border-color: #fecaca; }
.stat-card-modern.grad-teal   { --bar-color: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.stat-card-modern.grad-indigo { --bar-color: linear-gradient(90deg, #6366f1, #818cf8); }
.stat-card-modern.grad-pink   { --bar-color: linear-gradient(90deg, #ec4899, #f472b6); }

a.stat-card-modern { cursor: pointer; display: block; }

.stat-alert-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: #ef4444;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 11px;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.stat-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.stat-num-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label-big {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .5rem;
}
.stat-sub { font-size: .8rem; color: var(--slate-light); margin-top: .3rem; }

/* Dashboard main grid */
.dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 1.5rem;
}
.dash-side { display: flex; flex-direction: column; gap: 1.5rem; }

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.dash-card-header h2 {
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -.01em;
}
.dash-card-sub {
  font-size: .82rem;
  color: var(--slate-light);
  margin-top: .2rem;
}
.dash-card-action {
  color: var(--blue);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
}
.dash-card-action:hover { text-decoration: underline; }

/* Post list modern */
.post-list-modern { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.post-list-modern a {
  display: flex;
  gap: 1rem;
  padding: .9rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  align-items: center;
  transition: background .15s;
}
.post-list-modern a:hover { background: var(--gray); }
.post-list-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray);
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--slate-light);
}
.post-list-meta { flex: 1; min-width: 0; }
.post-list-title {
  font-weight: 600;
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.3;
  margin-bottom: .3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.post-list-sub {
  font-size: .8rem;
  color: var(--slate-light);
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.post-list-arrow {
  color: var(--slate-light);
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.post-list-modern a:hover .post-list-arrow { opacity: 1; transform: translateX(2px); }

/* Status pills */
.pill {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pill-success { background: #d1fae5; color: #065f46; }
.pill-warn    { background: #fef3c7; color: #92400e; }
.pill-info    { background: var(--blue-light); color: var(--blue); }

/* Quick actions modern */
.quick-actions-modern { display: flex; flex-direction: column; gap: .5rem; }
.quick-action-modern {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.quick-action-modern:hover { background: var(--gray); }
.qa-emoji {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.quick-action-modern strong { display: block; color: var(--navy); font-size: .92rem; font-weight: 600; }
.quick-action-modern small { color: var(--slate-light); font-size: .78rem; }

/* Content health bars */
.health-item { margin-bottom: 1rem; }
.health-item:last-child { margin-bottom: 0; }
.health-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--slate);
  margin-bottom: .35rem;
  font-weight: 500;
}
.health-label span:last-child { color: var(--navy); font-weight: 700; }
.health-bar {
  height: 8px;
  background: var(--gray);
  border-radius: 100px;
  overflow: hidden;
}
.health-fill {
  height: 100%;
  border-radius: 100px;
  transition: width .8s ease;
}

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tag-cloud-item {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .4rem .85rem;
  border-radius: 100px;
  background: var(--gray);
  color: var(--navy);
  text-decoration: none;
  transition: all .15s;
  font-weight: 500;
}
.tag-cloud-item:hover { background: var(--blue); color: var(--white); transform: translateY(-1px); }
.tag-cloud-item small { opacity: .55; font-size: .75em; font-weight: 600; }
.tag-cloud-item.size-1 { font-size: .78rem; }
.tag-cloud-item.size-2 { font-size: .88rem; }
.tag-cloud-item.size-3 { font-size: .98rem; }
.tag-cloud-item.size-4 { font-size: 1.1rem; font-weight: 600; background: var(--blue-light); color: var(--blue); }

.dash-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--slate-light);
}
.dash-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .6; }
.dash-empty p { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; padding: 2rem; }
}

/* Admin edit bar shown on public pages when logged in */
.admin-edit-bar {
  background: linear-gradient(90deg, #1e293b 0%, #1e3a8a 100%);
  color: var(--white);
  padding: .7rem 0;
  font-size: .88rem;
  position: sticky;
  top: 58px; /* below sticky public nav */
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.admin-edit-bar strong { color: var(--white); }
.admin-edit-bar .btn-primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.admin-edit-bar .btn-primary:hover { background: var(--gray); }
.admin-edit-bar .btn-outline {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.admin-edit-bar .btn-outline:hover { background: rgba(255,255,255,.2); }

/* ── Nav user menu ───────────────────────────────────────── */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  color: var(--navy);
  transition: background .15s;
}
.nav-user-btn:hover { background: #e2e8f0; }
.nav-user-btn img, .nav-user-avatar-initial {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-user-avatar-initial {
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}
.nav-user-name { font-size: .85rem; font-weight: 500; }
.nav-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: .5rem;
  z-index: 200;
  display: none;
}
.nav-user-dropdown.open { display: block; }
.nav-user-dropdown-head {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .25rem;
}
.nav-user-dropdown-head strong { display: block; color: var(--navy); font-size: .9rem; }
.nav-user-dropdown-head small { color: var(--slate-light); font-size: .78rem; }
.nav-user-dropdown a {
  display: block;
  padding: .6rem 1rem;
  border-radius: 6px;
  color: var(--slate);
  font-size: .88rem;
  text-decoration: none;
}
.nav-user-dropdown a:hover { background: var(--gray); color: var(--navy); }
.nav-user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: .25rem 0; }

/* ── Profile avatar ──────────────────────────────────────── */
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-sm { width: 40px; height: 40px; font-size: 1rem; }

/* ── Editor publish bar (sticky top) ─────────────────────── */
.editor-publish-bar {
  position: sticky;
  top: 0; /* admin nav is now a left sidebar, nothing above */
  z-index: 80;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(15,23,42,.04);
}
.editor-publish-bar .admin-wrap {
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
}
.editor-toolbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--slate-light);
  background: var(--gray);
}
.pb-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.pb-back {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--gray);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.pb-back:hover { background: #e2e8f0; color: var(--navy); }
.pb-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pb-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}
.pb-controls {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.pb-select {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.pb-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.pb-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pb-btn {
  padding: .55rem 1rem;
  font-size: .88rem;
}
.pb-save {
  padding: .6rem 1.5rem;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .editor-publish-bar { position: static; padding: .75rem 0; }
  .editor-publish-bar .admin-wrap { flex-direction: column; align-items: stretch; }
  .pb-controls, .pb-actions { width: 100%; justify-content: flex-end; }
  .pb-title { max-width: 100%; }
}

/* Author bio on public post pages */
.author-bio-box {
  max-width: 780px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-sizing: border-box;
}
.author-bio-box .profile-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}
.author-bio-box .profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-bio-box .author-bio-body { min-width: 0; flex: 1; }
.author-bio-box .author-bio-role {
  font-size: .72rem;
  color: var(--slate-light);
  margin-bottom: .15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.author-bio-box h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 .4rem;
  font-weight: 700;
  line-height: 1.2;
}
.author-bio-box p {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 560px) {
  .author-bio-box { gap: 1rem; }
  .author-bio-box .profile-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
  .author-bio-box p { font-size: .85rem; }
}

/* ── Media Library ───────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.media-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.media-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.media-no-alt { border-color: #fecaca; }
.media-thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray);
  cursor: pointer;
  overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-alert-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 12px; height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--white);
}
.media-info { padding: .6rem .75rem; }
.media-filename {
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-dims { font-size: .72rem; color: var(--slate-light); margin-top: .15rem; }

/* Media modal */
.media-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.media-modal {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.media-modal-close {
  position: absolute;
  top: .75rem; right: .75rem;
  background: none; border: none;
  font-size: 1.5rem; color: var(--slate-light);
  cursor: pointer; z-index: 1;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.media-modal-close:hover { background: var(--gray); color: var(--navy); }
.media-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.media-modal-preview {
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 16px 0 0 16px;
  min-height: 300px;
}
.media-modal-preview img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}
.media-modal-form { padding: 1.75rem; }
.media-modal-form h3 {
  font-size: .95rem;
  word-break: break-all;
  margin-bottom: .25rem;
}
@media (max-width: 700px) {
  .media-modal-inner { grid-template-columns: 1fr; }
  .media-modal-preview { border-radius: 16px 16px 0 0; min-height: 200px; }
}

/* ── Help Center ─────────────────────────────────────────── */
.help-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  padding: 2.5rem 0 2rem;
  color: var(--white);
}
.help-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: .75rem; }
.help-search-wrap { position: relative; max-width: 520px; margin: 0 auto; }
.help-search {
  width: 100%;
  padding: .85rem 1rem .85rem 2.75rem;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  outline: none;
  transition: border-color .2s, background .2s;
}
.help-search::placeholder { color: rgba(255,255,255,.5); }
.help-search:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.help-search-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.4); pointer-events: none; }

.help-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.help-tab {
  padding: .45rem 1rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: all .15s;
  background: transparent;
}
.help-tab:hover { background: var(--gray); color: var(--navy); }
.help-tab.active { background: var(--navy); color: var(--white); }
.help-tab-count {
  font-size: .75rem;
  color: var(--slate-light);
  margin-left: .2rem;
}
.help-tab.active .help-tab-count { color: rgba(255,255,255,.6); }

.help-category-group { margin-bottom: 2.5rem; }
.help-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-left: .25rem;
}
.help-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.help-article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.help-article-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.help-article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 .4rem;
  padding-right: 1.5rem;
}
.help-article-card p {
  font-size: .88rem;
  color: var(--slate-light);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.help-article-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--slate-light);
  font-size: 1.1rem;
  transition: transform .2s, color .2s;
}
.help-article-card:hover .help-article-arrow { transform: translateX(3px); color: var(--blue); }

.help-feedback button { font-size: .88rem; padding: .5rem 1.25rem; }

/* ── Team Page ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.team-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.team-card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card-avatar span {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
}
.team-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .25rem;
}
.team-card-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .5rem;
}
.team-card-education {
  font-size: .82rem;
  color: var(--slate-light);
  margin-bottom: .75rem;
  font-style: italic;
}
.team-card-bio {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 0 0 .75rem;
  text-align: left;
}
.team-card-favorites {
  font-size: .82rem;
  color: var(--slate-light);
  line-height: 1.5;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  text-align: left;
}
.team-card-favorites strong {
  color: var(--slate);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-login { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .feature-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .feature-hero .lead { margin-inline: auto; }
  .feature-hero-image { max-width: 480px; margin-inline: auto; }
  .btn-group { justify-content: center; }

  .comparison { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-brand-row p { max-width: none; }
}

@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta-row { flex-direction: column; align-items: center; text-align: center; }
  .footer-meta-row .footer-contact { flex-direction: column; gap: .5rem; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .compare-table { font-size: .8rem; }
  .compare-table th, .compare-table td { padding: .65rem .75rem; }

  /* Hero: tighter padding on phones */
  .hero { padding: 2rem 0 3rem; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-sub { font-size: 1rem; }
  .hero-badge { font-size: .85rem; padding: .45rem .9rem; }
  .hero-price-anchor { font-size: .9rem; margin-top: 1rem; }
  .btn-group { flex-direction: column; align-items: stretch; gap: .65rem; }
  .btn-group .btn { width: 100%; justify-content: center; }
}

/* Release the H1 nowrap on very narrow viewports so it doesn't push horizontal scroll */
@media (max-width: 480px) {
  .hero h1 em[style*="nowrap"] { white-space: normal !important; }
}

/* ── Help/Auction-School article components ───────────────
   Reusable pieces for content_html in help articles and auction-school posts.
   Hero callout, numbered "why" list, stat boxes, and CTA. */

.post-body .article-hero {
  position: relative;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #a7f3d0 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2.25rem;
  margin: 0 0 2.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(6, 78, 59, .08);
}
.post-body .article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.5) 0%, transparent 50%);
  pointer-events: none;
}
.post-body .article-hero > * { position: relative; }
.post-body .article-hero-icon {
  font-size: 3.5rem;
  line-height: 1;
  display: block;
  margin-bottom: .75rem;
  filter: drop-shadow(0 2px 4px rgba(6, 78, 59, .2));
}
.post-body .article-hero h2 {
  color: #065f46;
  font-size: 1.75rem;
  margin: 0 0 1rem;
  line-height: 1.25;
}
.post-body .article-hero p {
  color: #064e3b;
  margin-bottom: .85rem;
  font-size: 1.02rem;
}
.post-body .article-hero p:last-child { margin-bottom: 0; }

.post-body .article-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 1.75rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .1);
}
.post-body .article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.post-body .article-why {
  list-style: none;
  counter-reset: why-counter;
  padding-left: 0;
  margin: 1.5rem 0 2rem;
}
.post-body .article-why > li {
  counter-increment: why-counter;
  padding: 1rem 1.25rem 1rem 3.5rem;
  background: var(--gray);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  position: relative;
}
.post-body .article-why > li::before {
  content: counter(why-counter);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
}
.post-body .article-why > li strong {
  display: block;
  color: var(--navy);
  margin-bottom: .2rem;
  font-size: 1.02rem;
}

.post-body .article-stat-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2rem;
}
.post-body .article-stat-box h3 {
  margin: 0 0 1rem;
  color: #9a3412;
  font-size: 1.15rem;
}
.post-body .article-stat-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-body .article-stat-box li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed #fed7aa;
  margin: 0;
}
.post-body .article-stat-box li:last-child { border-bottom: none; }
.post-body .article-stat-box .stat-value {
  font-weight: 700;
  color: #9a3412;
  text-align: right;
  white-space: nowrap;
}
.post-body .article-stat-box li.stat-total {
  margin-top: .35rem;
  padding-top: .9rem;
  border-top: 2px solid #fb923c;
  border-bottom: none;
}
.post-body .article-stat-box li.stat-total span { font-size: 1.05rem; }
.post-body .article-stat-box li.stat-total .stat-value { color: #c2410c; font-size: 1.15rem; }

.post-body .article-items-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem;
  padding: 0;
  margin: 1rem 0 2rem;
}
.post-body .article-items-grid li {
  background: var(--gray);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  margin: 0;
  font-size: .95rem;
}

.post-body .article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1e40af 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin: 2.5rem 0 0;
  text-align: center;
}
.post-body .article-cta h3 {
  color: var(--white);
  margin: 0 0 .65rem;
  font-size: 1.4rem;
}
.post-body .article-cta p {
  color: rgba(255,255,255,.9);
  margin: 0 auto 1.25rem;
  max-width: 520px;
}
.post-body .article-cta a.article-cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.post-body .article-cta a.article-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  color: var(--navy);
}
