/**
 * app.css - Hệ thống Giao diện 7 Themes Độc Lập Chống Footprint & Admin CMS
 * Hỗ trợ:
 * 1. theme-1-editorial (AutoReview360 - Crimson & Slate)
 * 2. theme-2-garage-dark (GaraCheck VN - Garage Blue & Gold)
 * 3. theme-3-clean-emerald (CarSpa & Care - Emerald & Mint)
 * 4. theme-4-tech-blue (PPF Lab Vietnam - Tech Blue & Cyan Lab)
 * 5. theme-5-sport-amber (DetailMod Pro - Motorsport Orange & Carbon)
 * 6. theme-6-magazine-indigo (AutoInsight VN - Deep Indigo & Lavender)
 * 7. theme-7-luxury-rose (BeautyReview Auto - Rose Gold & Burgundy)
 */

:root {
  --theme-primary: #dc2626;
  --theme-primary-hover: #b91c1c;
  --theme-secondary: #0f172a;
  --theme-accent: #f59e0b;
  --theme-bg: #f8fafc;
  --theme-surface: #ffffff;
  --theme-surface-alt: #f1f5f9;
  --theme-text: #0f172a;
  --theme-text-muted: #475569;
  --theme-border: #e2e8f0;
  --theme-radius: 10px;
  --theme-badge-radius: 6px;
  --theme-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
  --theme-hero-grad: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #7f1d1d 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  accent-color: var(--theme-primary);
}

/* ============================================================================
   7 DISTINCT THEME VARIABLES & VISUAL SIGNATURES (ANTI-FOOTPRINT)
   ============================================================================ */

/* Theme 1: Editorial Crimson & Slate (AutoReview360) */
[data-theme="theme-1-editorial"],
.theme-1-editorial {
  --theme-primary: #dc2626;
  --theme-primary-hover: #b91c1c;
  --theme-secondary: #0f172a;
  --theme-accent: #ef4444;
  --theme-bg: #f8fafc;
  --theme-surface: #ffffff;
  --theme-surface-alt: #fef2f2;
  --theme-border: #e2e8f0;
  --theme-radius: 6px;
  --theme-badge-radius: 4px;
  --theme-hero-grad: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #991b1b 100%);
}

/* Theme 2: Garage Pro Blue & Gold (GaraCheck VN) */
[data-theme="theme-2-garage-dark"],
.theme-2-garage-dark {
  --theme-primary: #0284c7;
  --theme-primary-hover: #0369a1;
  --theme-secondary: #0f172a;
  --theme-accent: #f59e0b;
  --theme-bg: #f1f5f9;
  --theme-surface: #ffffff;
  --theme-surface-alt: #e0f2fe;
  --theme-border: #cbd5e1;
  --theme-radius: 8px;
  --theme-badge-radius: 4px;
  --theme-hero-grad: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #0369a1 100%);
}

/* Theme 3: Clean Spa Emerald (CarSpa & Care) */
[data-theme="theme-3-clean-emerald"],
.theme-3-clean-emerald {
  --theme-primary: #059669;
  --theme-primary-hover: #047857;
  --theme-secondary: #064e3b;
  --theme-accent: #10b981;
  --theme-bg: #f0fdf4;
  --theme-surface: #ffffff;
  --theme-surface-alt: #ecfdf5;
  --theme-border: #d1fae5;
  --theme-radius: 16px;
  --theme-badge-radius: 999px;
  --theme-hero-grad: linear-gradient(135deg, #064e3b 0%, #047857 60%, #059669 100%);
}

/* Theme 4: PPF Lab Tech Blue (PPF Lab Vietnam) */
[data-theme="theme-4-tech-blue"],
.theme-4-tech-blue {
  --theme-primary: #2563eb;
  --theme-primary-hover: #1d4ed8;
  --theme-secondary: #1e3a8a;
  --theme-accent: #06b6d4;
  --theme-bg: #f8fafc;
  --theme-surface: #ffffff;
  --theme-surface-alt: #eff6ff;
  --theme-border: #bfdbfe;
  --theme-radius: 10px;
  --theme-badge-radius: 6px;
  --theme-hero-grad: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0284c7 100%);
}

/* Theme 5: Sport Amber & Carbon (DetailMod Pro) */
[data-theme="theme-5-sport-amber"],
.theme-5-sport-amber {
  --theme-primary: #ea580c;
  --theme-primary-hover: #c2410c;
  --theme-secondary: #18181b;
  --theme-accent: #f97316;
  --theme-bg: #fafafa;
  --theme-surface: #ffffff;
  --theme-surface-alt: #fff7ed;
  --theme-border: #e4e4e7;
  --theme-radius: 4px;
  --theme-badge-radius: 2px;
  --theme-hero-grad: linear-gradient(135deg, #09090b 0%, #27272a 55%, #c2410c 100%);
}

/* Theme 6: Magazine Indigo (AutoInsight VN) */
[data-theme="theme-6-magazine-indigo"],
.theme-6-magazine-indigo {
  --theme-primary: #4f46e5;
  --theme-primary-hover: #4338ca;
  --theme-secondary: #1e1b4b;
  --theme-accent: #6366f1;
  --theme-bg: #f5f7ff;
  --theme-surface: #ffffff;
  --theme-surface-alt: #eef2ff;
  --theme-border: #e0e7ff;
  --theme-radius: 12px;
  --theme-badge-radius: 8px;
  --theme-hero-grad: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4f46e5 100%);
}

/* Theme 7: Luxury Rose & Burgundy (BeautyReview Auto) */
[data-theme="theme-7-luxury-rose"],
.theme-7-luxury-rose {
  --theme-primary: #e11d48;
  --theme-primary-hover: #be123c;
  --theme-secondary: #881337;
  --theme-accent: #fb7185;
  --theme-bg: #fffbfc;
  --theme-surface: #ffffff;
  --theme-surface-alt: #fff1f2;
  --theme-border: #ffe4e6;
  --theme-radius: 14px;
  --theme-badge-radius: 999px;
  --theme-hero-grad: linear-gradient(135deg, #4c0519 0%, #881337 55%, #be123c 100%);
}

/* ============================================================================
   BASE RESET & MODERN WEB GUIDANCE TYPOGRAPHY / UI THEMING
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--theme-primary);
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.28;
  color: var(--theme-secondary);
  text-wrap: balance;
}

p,
blockquote,
li {
  text-wrap: pretty;
}

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--theme-primary-hover);
}

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

textarea {
  resize: vertical;
}

input:not([type="range"]):user-invalid,
textarea:user-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

input:not([type="range"]):user-valid,
textarea:user-valid {
  border-color: var(--theme-primary);
}

.site-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.admin-container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================================
   TOP UTILITY BAR & PUBLIC HEADER
   ============================================================================ */
.top-utility-bar {
  background-color: var(--theme-secondary);
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--theme-primary);
}

.top-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-code-pill {
  background-color: var(--theme-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--theme-badge-radius);
  letter-spacing: 0.05em;
}

.utility-partner-link {
  color: #38bdf8;
  font-weight: 600;
}

.utility-partner-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.utility-link {
  color: #cbd5e1;
}

.utility-admin-btn {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.utility-admin-btn:hover {
  background-color: var(--theme-primary);
  color: #ffffff;
}

.public-header {
  background-color: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--theme-secondary);
}

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: var(--theme-radius);
  background: var(--theme-hero-grad);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--theme-primary);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  color: var(--theme-secondary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 12px;
  color: var(--theme-text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-item {
  color: var(--theme-secondary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--theme-badge-radius);
}

.nav-item:hover,
.nav-item.active {
  background-color: var(--theme-surface-alt);
  color: var(--theme-primary);
}

.btn-partner-header {
  background-color: var(--theme-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--theme-badge-radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.btn-partner-header:hover {
  background-color: var(--theme-primary-hover);
  transform: translateY(-1px);
}

/* ============================================================================
   HERO SECTION & PARTNER HUB (PUBLIC/HOME)
   ============================================================================ */
.hero-section {
  background: var(--theme-hero-grad);
  color: #ffffff;
  padding: 48px 0;
  border-bottom: 4px solid var(--theme-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 920px;
  gap: 24px;
  align-items: start;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-badge {
  background-color: var(--theme-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--theme-badge-radius);
  letter-spacing: 0.05em;
}

.hero-site-id {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.hero-headline {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-lead {
  color: #e2e8f0;
  font-size: 16px;
  margin-bottom: 24px;
}

.hero-featured-spotlight {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--theme-primary);
  padding: 20px 24px;
  border-radius: var(--theme-radius);
  margin-bottom: 24px;
}

.spotlight-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 6px;
}

.spotlight-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.spotlight-title a {
  color: #ffffff;
}

.spotlight-title a:hover {
  color: #38bdf8;
}

.spotlight-excerpt {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 16px;
}

.spotlight-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: var(--theme-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--theme-badge-radius);
}

.btn-hero-partner {
  background-color: rgba(255, 255, 255, 0.14);
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--theme-badge-radius);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hero-stat-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  border-radius: var(--theme-radius);
  display: flex;
  flex-direction: column;
}

.hero-stat-item strong {
  font-size: 22px;
  color: #ffffff;
}

.hero-stat-item span {
  font-size: 12px;
  color: #cbd5e1;
}

.hero-partner-hub {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--theme-radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.partner-hub-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.partner-hub-header h3 {
  color: #ffffff;
  font-size: 20px;
  margin: 4px 0 8px;
}

.partner-hub-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.partner-hub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-hub-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 12px;
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 13px;
}

.partner-hub-link-item:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

.hub-link-cat {
  font-size: 11px;
  color: #94a3b8;
}

.partner-hub-link-item:hover .hub-link-cat {
  color: #f1f5f9;
}

.hero-secondary-card {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--theme-radius);
  padding: 16px;
}

.secondary-card-kicker {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
}

.hero-secondary-card h4 {
  margin: 6px 0;
  font-size: 15px;
}

.hero-secondary-card h4 a {
  color: #ffffff;
}

.secondary-backlink-tag {
  font-size: 12px;
  color: #38bdf8 !important;
  font-weight: 600;
}

/* ============================================================================
   CATEGORIES STRIP & MAIN CONTENT LAYOUT
   ============================================================================ */
.categories-strip-section {
  padding: 36px 0 16px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--theme-border);
  padding-bottom: 10px;
}

.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title {
  font-size: 24px;
  margin: 2px 0 0;
}

.category-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-feature-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-top: 3px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  padding: 16px;
  box-shadow: var(--theme-shadow);
  color: var(--theme-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--theme-primary);
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cat-card-top h3 {
  font-size: 16px;
  margin: 0;
  color: var(--theme-secondary);
}

.cat-count-badge {
  background: var(--theme-surface-alt);
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--theme-badge-radius);
  white-space: nowrap;
}

.category-feature-card p {
  font-size: 13px;
  color: var(--theme-text-muted);
  margin: 0;
}

.home-content-section,
.category-body-section,
.contact-page-body {
  padding: 28px 0 56px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
  align-items: start;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.post-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  overflow: hidden;
  box-shadow: var(--theme-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.14);
}

.post-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0f172a;
  overflow: hidden;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--theme-primary);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--theme-badge-radius);
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--theme-text-muted);
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.post-card-title a {
  color: var(--theme-secondary);
}

.post-card-title a:hover {
  color: var(--theme-primary);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.post-card-backlink-bar {
  background-color: var(--theme-surface-alt);
  border-left: 3px solid var(--theme-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.backlink-bar-label {
  color: var(--theme-text-muted);
}

.backlink-bar-anchor {
  font-weight: 700;
  color: var(--theme-primary);
}

.post-readmore-btn {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--theme-primary);
}

/* ============================================================================
   ARTICLE DETAIL, SEO FIGURES & RECOMMENDED PARTNER CALLOUT
   ============================================================================ */
.article-page-wrapper {
  padding-top: 24px;
  padding-bottom: 56px;
}

.seo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--theme-text-muted);
  margin-bottom: 18px;
}

.breadcrumb-sep {
  color: #94a3b8;
}

.breadcrumb-current {
  color: var(--theme-secondary);
  font-weight: 600;
}

.single-article-container {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 32px;
  box-shadow: var(--theme-shadow);
}

.article-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.article-cat-pill {
  background: var(--theme-primary);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--theme-badge-radius);
}

.article-keyword-pill {
  background: var(--theme-surface-alt);
  color: var(--theme-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--theme-badge-radius);
}

.single-article-title {
  font-size: 30px;
  margin-bottom: 14px;
}

.single-article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--theme-text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 20px;
}

.article-meta-backlink {
  font-weight: 700;
  color: var(--theme-primary);
}

.single-article-excerpt {
  font-size: 17px;
  font-weight: 600;
  color: var(--theme-secondary);
  background: var(--theme-surface-alt);
  padding: 16px 20px;
  border-left: 4px solid var(--theme-primary);
  border-radius: 6px;
  margin-bottom: 24px;
}

.seo-article-figure {
  margin: 26px 0;
  background: #f8fafc;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.seo-article-img {
  width: 100%;
  height: auto;
  display: block;
}

.seo-figure-caption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--theme-text-muted);
  background: #f1f5f9;
  border-top: 1px solid var(--theme-border);
  text-align: center;
}

.seo-backlink-anchor {
  color: var(--theme-primary);
  text-decoration: underline;
}

.single-article-content h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--theme-surface-alt);
}

.single-article-content h3 {
  font-size: 18px;
  margin: 22px 0 10px;
}

.single-article-content p {
  font-size: 16px;
  margin-bottom: 16px;
}

.seo-backlink-callout,
.seo-contextual-backlink-box {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--theme-surface-alt);
  border-left: 5px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  font-size: 15.5px;
}

.recommended-center-box {
  margin: 36px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--theme-radius);
  padding: 28px;
  border: 2px solid var(--theme-primary);
}

.rec-verified-badge {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.rec-box-header h3 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 10px;
}

.rec-box-desc {
  color: #cbd5e1;
  font-size: 14.5px;
  margin-bottom: 18px;
}

.rec-box-details {
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 14px;
}

.rec-detail-item a {
  color: #38bdf8;
  font-weight: 700;
}

.rec-hotline-highlight {
  color: #fbbf24;
  font-size: 16px;
}

.rec-box-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-rec-primary {
  background: var(--theme-primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--theme-badge-radius);
}

.btn-rec-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--theme-badge-radius);
}

.related-posts-section {
  margin: 36px 0;
}

.related-section-title {
  font-size: 20px;
  margin-bottom: 16px;
}

/* ============================================================================
   SIDEBAR & CONSULTATION FORM WIDGET
   ============================================================================ */
.public-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 22px;
  box-shadow: var(--theme-shadow);
}

.partner-spotlight-widget {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-top: 4px solid var(--theme-primary);
}

.partner-widget-badge {
  display: inline-block;
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.partner-widget-title {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
}

.partner-widget-desc {
  color: #cbd5e1;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.partner-contact-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: #e2e8f0;
}

.partner-contact-highlights li {
  margin-bottom: 6px;
}

.btn-partner-sidebar {
  display: block;
  text-align: center;
  background: var(--theme-primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: var(--theme-badge-radius);
}

.sidebar-widget-heading {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--theme-surface-alt);
  margin-bottom: 14px;
}

.sidebar-money-links,
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-money-anchor {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: var(--theme-surface-alt);
  border-radius: 6px;
  border-left: 3px solid var(--theme-primary);
}

.sidebar-money-sub {
  font-size: 12px;
  color: var(--theme-text-muted);
  margin-top: 2px;
}

.sidebar-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--theme-secondary);
  font-weight: 600;
  font-size: 14px;
}

.sidebar-cat-link:hover {
  background: var(--theme-surface-alt);
  color: var(--theme-primary);
}

.sidebar-cat-count {
  font-size: 12px;
  color: var(--theme-text-muted);
}

/* Quick Consultation Form */
.consultation-widget-card {
  background: var(--theme-surface);
  border: 2px solid var(--theme-border);
  border-top: 5px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  padding: 28px;
  box-shadow: var(--theme-shadow);
  margin-top: 24px;
}

.consultation-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-primary);
  letter-spacing: 0.05em;
}

.consultation-title {
  font-size: 22px;
  margin: 4px 0 8px;
}

.consultation-subtitle {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin-bottom: 20px;
}

.consultation-alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.consultation-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.consultation-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.consultation-mail-status {
  font-size: 12.5px;
  margin: 6px 0 0;
  color: #047857;
}

/* ============================================================================
   FORMS & INPUTS (SHARED PUBLIC + ADMIN)
   ============================================================================ */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--theme-secondary);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="search"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-submit-consultation,
.btn-primary-cta {
  background-color: var(--theme-primary);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--theme-badge-radius);
  cursor: pointer;
}

.btn-submit-consultation:hover,
.btn-primary-cta:hover {
  background-color: var(--theme-primary-hover);
}

.btn-outline-partner,
.btn-secondary-cta {
  background-color: transparent;
  border: 1.5px solid var(--theme-primary);
  color: var(--theme-primary) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--theme-badge-radius);
}

/* ============================================================================
   PARTNER NETWORK STRIP & PUBLIC FOOTER
   ============================================================================ */
.partner-network-strip {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 32px 0;
  border-top: 3px solid var(--theme-primary);
}

.partner-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.partner-badge {
  display: inline-block;
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.partner-strip-info h3 {
  color: #ffffff;
  font-size: 21px;
  margin-bottom: 4px;
}

.partner-strip-info p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
}

.partner-strip-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-strip-actions .btn-secondary-cta {
  border-color: #ffffff;
  color: #ffffff !important;
}

.public-footer {
  background-color: #090d16;
  color: #cbd5e1;
  padding-top: 48px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-title {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 14px;
  border-left: 3px solid var(--theme-primary);
  padding-left: 10px;
}

.footer-desc {
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-contact-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li,
.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-util-link {
  color: #cbd5e1;
}

.footer-links a:hover,
.footer-util-link:hover {
  color: #38bdf8;
}

.footer-seo-utilities {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
}

.footer-bottom {
  background-color: #05080f;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: #cbd5e1;
}

/* Category & Contact Page Heroes */
.category-hero-banner,
.contact-page-hero {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  padding: 28px 0;
}

.category-page-title,
.contact-hero-title {
  font-size: 28px;
  margin-bottom: 6px;
}

.category-page-desc,
.contact-hero-sub {
  color: var(--theme-text-muted);
  margin: 0;
}

.contact-info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.contact-info-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 20px;
}

.partner-card-highlight {
  border: 2px solid var(--theme-primary);
  background: var(--theme-surface-alt);
}

/* ============================================================================
   FLASH BANNER
   ============================================================================ */
.flash-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 14.5px;
  font-weight: 500;
}

.flash-success {
  background-color: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.flash-error {
  background-color: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.flash-close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: inherit;
}

/* ============================================================================
   ADMIN CMS SHELL, LOGIN, DASHBOARD, POST FORM & IMAGE STUDIO, SETTINGS
   ============================================================================ */
.admin-login-screen {
  min-height: 100vh;
  background: var(--theme-hero-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.login-site-pill {
  display: inline-block;
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.login-title {
  font-size: 24px;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 22px;
}

.login-error-alert {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.btn-login-submit {
  width: 100%;
  background: var(--theme-primary);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
}

.login-default-hint {
  margin-top: 20px;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-fill-demo {
  background: #e2e8f0;
  border: none;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.btn-fill-demo:hover {
  background: #cbd5e1;
}

.login-footer-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* Admin Layout Topbar & Nav */
.admin-shell {
  min-height: 100vh;
  background-color: #f1f5f9;
  padding-bottom: 60px;
}

.admin-topbar {
  background: #0f172a;
  color: #ffffff;
  border-bottom: 3px solid var(--theme-primary);
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.admin-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
}

.admin-badge-id {
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.admin-site-title {
  font-size: 18px;
}

.admin-tech-meta {
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 4px;
}

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

.admin-user-greeting {
  font-size: 13px;
  color: #cbd5e1;
}

.admin-btn-view-site {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
}

.admin-btn-logout {
  background: #ef4444;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.admin-nav-bar {
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 8px;
}

.admin-nav-link {
  color: #cbd5e1 !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.admin-nav-cta {
  background: var(--theme-primary) !important;
  color: #ffffff !important;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 22px;
}

.admin-page-title {
  font-size: 24px;
  margin-bottom: 4px;
}

.admin-page-subtitle {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.btn-admin-primary {
  background: var(--theme-primary);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-admin-secondary {
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Admin 5 Stat Cards */
.admin-stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--theme-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.stat-blue { border-top-color: #2563eb; }
.stat-emerald { border-top-color: #059669; }
.stat-crimson { border-top-color: #dc2626; }
.stat-amber { border-top-color: #d97706; }
.stat-indigo { border-top-color: #4f46e5; }

.stat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0;
}

.stat-sub {
  font-size: 12px;
  color: #475569;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

.admin-panel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.panel-title {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-info-table th,
.admin-info-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.admin-info-table th {
  width: 210px;
  color: #475569;
}

.badge-driver {
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.preset-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preset-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.preset-link-info {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.preset-url-text {
  font-size: 12px;
  color: #2563eb;
}

.btn-mini-action {
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Admin Data Table */
.table-responsive {
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.admin-data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.admin-table-thumb {
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
}

.row-sub-slug,
.row-sub-url {
  font-size: 12px;
  color: #64748b;
}

.badge-anchor {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

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

.btn-table-view,
.btn-table-edit,
.btn-table-delete {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.btn-table-view { background: #f1f5f9; color: #0f172a !important; }
.btn-table-edit { background: #eff6ff; color: #1d4ed8 !important; }
.btn-table-delete { background: #fef2f2; color: #dc2626 !important; }

.admin-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-search-input {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.filter-select {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

/* ============================================================================
   POST FORM & IN-ARTICLE IMAGE BACKLINK STUDIO
   ============================================================================ */
.post-editor-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 24px;
  align-items: start;
}

.image-backlink-studio-card {
  border: 2px solid var(--theme-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.studio-header-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.studio-badge {
  display: inline-block;
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.studio-title {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 6px;
}

.studio-desc {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0;
}

.studio-backlink-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0 18px;
}

.preview-filename-hint code {
  background: #0f172a;
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

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

.btn-studio-upload {
  background: var(--theme-primary);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-studio-autogen {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.studio-result-box {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.studio-result-success {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
}

.studio-result-error {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
}

.studio-result-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  border-radius: 4px;
}

.studio-gallery-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.studio-gallery-title {
  font-size: 14px;
  margin-bottom: 12px;
}

.studio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.studio-gallery-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  font-size: 11.5px;
}

.studio-gallery-thumb {
  width: 100%;
  height: 84px;
  object-fit: cover;
}

.studio-gallery-info {
  padding: 8px;
}

.gal-filename {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gal-dims {
  color: #64748b;
  margin-bottom: 6px;
}

.gal-btn-row {
  display: flex;
  gap: 4px;
}

.btn-gal-insert,
.btn-gal-thumb {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-gal-insert { background: var(--theme-primary); color: #ffffff; }
.btn-gal-thumb { background: #e2e8f0; color: #0f172a; }

/* Content Editor & Live Preview */
.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.toolbar-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.toolbar-btn-highlight {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.code-content-textarea {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
  font-size: 13px !important;
  line-height: 1.55;
}

.editor-live-preview-wrapper {
  margin-top: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.live-preview-header {
  background: #0f172a;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
}

.live-preview-body {
  padding: 20px;
  background: #ffffff;
  max-height: 520px;
  overflow-y: auto;
}

.btn-publish-main {
  width: 100%;
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 15.5px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-publish-main:hover {
  background: #047857;
}

/* SEO Score Checklist */
.seo-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.seo-score-badge {
  font-size: 15px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.score-high { background: #dcfce7; color: #15803d; }
.score-med { background: #fef3c7; color: #b45309; }
.score-low { background: #fee2e2; color: #b91c1c; }

.seo-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.seo-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.chk-pass { color: #065f46; font-weight: 600; }
.chk-pending { color: #64748b; }

.current-thumb-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ============================================================================
   ADMIN SETTINGS & GOOGLE APP PASSWORD 12-CHAR TESTER
   ============================================================================ */
.google-app-password-guide {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.google-app-password-guide h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #1e3a8a;
}

.guide-steps-list {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 13.5px;
  color: #334155;
}

.guide-steps-list li {
  margin-bottom: 6px;
}

.guide-external-link {
  font-size: 13px;
  font-weight: 700;
}

.char-count-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.count-valid { background: #dcfce7; color: #15803d; }
.count-invalid { background: #fee2e2; color: #b91c1c; }

.test-mail-interactive-box {
  margin-top: 22px;
  background: #eff6ff;
  border: 2px dashed #3b82f6;
  border-radius: 10px;
  padding: 20px;
}

.test-mail-heading {
  font-size: 16.5px;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.test-mail-desc {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 14px;
}

.test-mail-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.test-mail-input {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #ffffff;
}

.btn-test-mail-trigger {
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-test-mail-trigger:hover {
  background: #1d4ed8;
}

.test-mail-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13.5px;
}

.test-mail-pass {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
}

.test-mail-fail {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
}

.test-mail-meta {
  font-size: 12px;
  margin: 6px 0 0;
  font-family: monospace;
}

.db-config-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.db-kv-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.db-kv-box span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.db-kv-box code {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

/* ============================================================================
   7-SITE CONTENT ARCHITECTURE: HOME MODULES, OUTLINE, TABLES & STATIC PAGES
   ============================================================================ */

/* Footer Spec Bar (Giới thiệu – Chính sách – Liên hệ – Thông tin biên tập) */
.footer-spec-bar {
  background-color: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  margin-bottom: 32px;
}

.footer-spec-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-spec-topic {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.footer-spec-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-spec-sep {
  color: #64748b;
  font-weight: 600;
}

.footer-spec-link {
  color: #38bdf8;
  font-weight: 700;
  font-size: 13.5px;
}

.footer-spec-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.footer-editorial-note {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 12px;
  line-height: 1.55;
}

/* Hero Category Quick Bar & Secondary Button */
.btn-hero-secondary-cat {
  background-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: var(--theme-badge-radius);
}

.btn-hero-secondary-cat:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.hero-category-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-cat-bar-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-right: 4px;
}

.hero-cat-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--theme-badge-radius);
}

.hero-cat-pill:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

/* Natural Topic Bar on Post Card */
.post-card-topic-bar {
  background-color: #f8fafc;
  border-left: 3px solid #94a3b8;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.topic-bar-label {
  color: var(--theme-text-muted);
}

.topic-bar-link {
  font-weight: 700;
  color: var(--theme-secondary);
}

/* Home Spec Sections & Specialized Interactive Modules */
.home-spec-section {
  margin-bottom: 44px;
}

.section-desc-sub {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin: 6px 0 0;
}

.section-more-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--theme-primary);
  white-space: nowrap;
}

.spec-module {
  margin-bottom: 24px;
}

/* Site 1: Brand Directory Grid & Segment Comparison Cards */
.brand-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.brand-dir-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-left: 4px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--theme-shadow);
  color: var(--theme-text);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.brand-dir-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-primary);
}

.brand-dir-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-dir-name {
  font-size: 16px;
  color: var(--theme-secondary);
}

.brand-dir-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--theme-surface-alt);
  color: var(--theme-primary);
  padding: 2px 8px;
  border-radius: var(--theme-badge-radius);
}

.brand-dir-models {
  font-size: 13px;
  color: var(--theme-text-muted);
  margin: 0;
}

.comparison-cards-grid,
.tuning-pillars-grid,
.ev-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.comparison-highlight-card,
.tuning-pillar-card,
.ev-tech-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-top: 3px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  padding: 18px;
  box-shadow: var(--theme-shadow);
}

.cmp-segment-pill,
.tuning-pillar-num,
.ev-tech-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-primary);
  background: var(--theme-surface-alt);
  padding: 3px 8px;
  border-radius: var(--theme-badge-radius);
  margin-bottom: 8px;
}

.cmp-matchup-title,
.tuning-pillar-card h4,
.ev-tech-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cmp-focus-desc,
.tuning-pillar-card p,
.ev-tech-card p {
  font-size: 13.5px;
  color: var(--theme-text-muted);
  margin-bottom: 10px;
}

.cmp-action-link {
  font-size: 13px;
  font-weight: 700;
}

/* Site 2: Fault Diagnostics & Maintenance Schedule */
.fault-diagnostic-grid,
.maintenance-schedule-grid,
.care-steps-grid,
.ppf-lab-mechanism-grid,
.criteria-score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fault-diag-card,
.maintenance-milestone-card,
.care-step-card,
.lab-mech-card,
.criteria-score-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-left: 4px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  padding: 18px;
  box-shadow: var(--theme-shadow);
}

.fault-diag-header {
  margin-bottom: 8px;
}

.fault-code-badge,
.care-step-badge,
.lab-mech-tag,
.criteria-score-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: var(--theme-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--theme-badge-radius);
  margin-bottom: 6px;
}

.fault-diag-header h4,
.care-step-card h4,
.lab-mech-card h4,
.criteria-score-card h4 {
  font-size: 16px;
  margin: 4px 0 8px;
}

.fault-symptom,
.fault-solution,
.care-step-card p,
.lab-mech-card p,
.criteria-score-card p {
  font-size: 13.5px;
  color: var(--theme-text-muted);
  margin: 0 0 6px;
}

.milestone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.milestone-km {
  font-size: 16px;
  color: var(--theme-secondary);
}

.milestone-cycle {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--theme-primary);
  background: var(--theme-surface-alt);
  padding: 2px 8px;
  border-radius: var(--theme-badge-radius);
}

.milestone-items {
  font-size: 13.5px;
  color: var(--theme-text-muted);
  margin: 0;
}

/* Site 4 & Article Content: Responsive Technical Comparison Tables */
.spec-table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
}

.spec-comparison-table,
.single-article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.spec-comparison-table thead,
.single-article-content table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--theme-secondary);
  color: #ffffff;
}

.spec-comparison-table th,
.spec-comparison-table td,
.single-article-content table th,
.single-article-content table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--theme-border);
  text-align: left;
  vertical-align: top;
}

.spec-comparison-table thead th,
.single-article-content table thead th {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.spec-comparison-table tbody th,
.single-article-content table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--theme-surface-alt);
  color: var(--theme-secondary);
  font-weight: 700;
}

.single-article-content table {
  margin: 22px 0;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  overflow: hidden;
}

/* Sidebar Editorial Structure Widget */
.editorial-standard-widget {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-top: 4px solid var(--theme-primary);
}

.sidebar-editorial-title {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
}

.sidebar-editorial-desc {
  color: #cbd5e1;
  font-size: 13px;
  margin-bottom: 14px;
}

.sidebar-structure-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-structure-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #f1f5f9;
}

.structure-step-num {
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.sidebar-editorial-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-mini-link {
  color: #38bdf8 !important;
  font-size: 12.5px;
  font-weight: 700;
}

.sidebar-ref-note {
  font-size: 13px;
  color: var(--theme-text-muted);
  margin-bottom: 12px;
}

/* Article Structure Outline Bar & Contextual Reference Box */
.article-structure-outline {
  background: var(--theme-surface-alt);
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.outline-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-secondary);
  margin-bottom: 8px;
}

.outline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outline-pill {
  background: #ffffff;
  border: 1px solid var(--theme-border);
  color: var(--theme-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.contextual-reference-box,
.article-references {
  margin: 30px 0;
  background: #f8fafc;
  border: 1px solid var(--theme-border);
  border-left: 4px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  padding: 20px 24px;
}

.ref-verified-badge {
  display: inline-block;
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ref-box-header h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.ref-box-desc {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin-bottom: 12px;
}

.ref-box-link-row {
  font-size: 14px;
}

.ref-box-anchor {
  font-weight: 700;
  color: var(--theme-primary);
  text-decoration: underline;
}

/* Pros & Cons Grid inside Article Content */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.pros-box,
.cons-box {
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
}

.pros-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
}

.cons-box {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
}

/* PublicStaticPage (/gioi-thieu/, /chinh-sach/, /thong-tin-bien-tap/) */
.static-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--theme-surface-alt);
}

.static-tab-link {
  padding: 8px 16px;
  border-radius: var(--theme-badge-radius);
  background: #f1f5f9;
  color: var(--theme-secondary) !important;
  font-size: 13.5px;
  font-weight: 700;
}

.static-tab-link.active,
.static-tab-link:hover {
  background: var(--theme-primary);
  color: #ffffff !important;
}

.static-page-prose h2 {
  font-size: 21px;
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--theme-surface-alt);
}

.static-page-prose p,
.static-page-prose li {
  font-size: 15.5px;
  color: var(--theme-text);
  margin-bottom: 12px;
}

.editorial-workflow-grid,
.static-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

.workflow-step-card,
.static-sec-card {
  background: #f8fafc;
  border: 1px solid var(--theme-border);
  border-left: 4px solid var(--theme-primary);
  border-radius: var(--theme-radius);
  padding: 16px 18px;
}

.wf-step-badge,
.static-sec-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-primary);
  background: var(--theme-surface-alt);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.workflow-step-card h4,
.static-sec-card h4 {
  font-size: 16px;
  margin: 4px 0 6px;
}

.workflow-step-card p,
.static-sec-card p {
  font-size: 13.5px;
  color: var(--theme-text-muted);
  margin: 0;
}

.static-structure-list,
.static-cat-links-list {
  padding-left: 20px;
}

/* ============================================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .content-with-sidebar,
  .post-editor-layout,
  .admin-grid-2,
  .footer-grid,
  .comparison-cards-grid,
  .tuning-pillars-grid,
  .ev-tech-grid {
    grid-template-columns: 1fr;
  }

  .category-pills-grid,
  .studio-gallery-grid,
  .db-config-summary-grid,
  .brand-directory-grid,
  .fault-diagnostic-grid,
  .maintenance-schedule-grid,
  .care-steps-grid,
  .ppf-lab-mechanism-grid,
  .criteria-score-grid,
  .editorial-workflow-grid,
  .static-sections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stats-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .posts-grid,
  .form-grid-2,
  .form-grid-3,
  .hero-stats-grid,
  .category-pills-grid,
  .contact-info-cards-grid,
  .rec-box-details,
  .brand-directory-grid,
  .fault-diagnostic-grid,
  .maintenance-schedule-grid,
  .care-steps-grid,
  .ppf-lab-mechanism-grid,
  .criteria-score-grid,
  .editorial-workflow-grid,
  .static-sections-grid,
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 24px;
  }

  .single-article-container {
    padding: 20px;
  }

  .logo-customizer-box {
    grid-template-columns: 1fr;
  }

  .editor-image-uploader-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================================
   FIX WEBSITE 2.0: BRAND LOGO, RICH EDITOR, IMAGE UPLOADER & SEO SCORE BAR
   ============================================================================ */
.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px 6px;
  border: 1px solid var(--theme-border);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.admin-topbar-logo-img {
  height: 28px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px 5px;
}

.toolbar-divider {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0 2px;
  user-select: none;
}

.custom-link-popover-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--theme-primary);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 10px 0 12px;
}

.editor-image-uploader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0 12px;
}

.uploader-bar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: #0f172a;
}

.uploader-bar-sub {
  font-size: 12px;
  color: #64748b;
}

.uploader-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.uploader-url-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.uploader-url-group input {
  width: 230px;
  padding: 8px 11px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.thumbnail-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.seo-progress-bar-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 12px;
}

.seo-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-primary), #10b981);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.seo-wordcount-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #475569;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.logo-settings-highlight-card {
  border: 2px solid var(--theme-primary);
}

.logo-customizer-box {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}

.logo-live-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  min-height: 120px;
  text-align: center;
}

.logo-preview-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.logo-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.logo-preview-img {
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}

.logo-preview-emblem {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--theme-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-preview-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.logo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logo-url-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.logo-url-input-row input {
  flex: 1;
}

.brand-quick-summary-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.dashboard-logo-preview-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.dashboard-logo-preview-emblem {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--theme-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-quick-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
}

/* ============================================================================
   WYSIWYG RICH TEXT EDITOR (WORD / DOCS STYLE) & 1-CLICK IMAGE UPLOADER
   ============================================================================ */
#in-article-image-studio.editor-image-uploader-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px dashed #64748b;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 10px 0 16px;
}

.uploader-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-mode-switcher {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.btn-editor-mode {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-mode.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.toolbar-btn-upload {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

.toolbar-btn-word {
  background: #eff6ff !important;
  border-color: #60a5fa !important;
  color: #1d4ed8 !important;
}

.word-paste-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.btn-close-paste-notice {
  background: transparent;
  border: none;
  color: #065f46;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}

.rich-editor-workspace {
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.rich-visual-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #0f172a;
  color: #f8fafc;
  padding: 9px 16px;
  font-size: 12px;
}

.rich-visual-badge {
  font-weight: 800;
  color: #38bdf8;
}

.rich-visual-shortcut-hint {
  color: #cbd5e1;
  font-size: 11.5px;
}

#rich-visual-editor.rich-wysiwyg-surface {
  min-height: 400px;
  max-height: 760px;
  overflow-y: auto;
  padding: 24px 28px;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.7;
  outline: none;
  cursor: text;
}

#rich-visual-editor.rich-wysiwyg-surface:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}

#rich-visual-editor.rich-wysiwyg-surface.drag-over-active {
  background: #eff6ff;
  outline: 2px dashed #2563eb;
}

#rich-visual-editor.rich-wysiwyg-surface:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-style: italic;
  pointer-events: none;
}

#rich-visual-editor.rich-wysiwyg-surface h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}

#rich-visual-editor.rich-wysiwyg-surface h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 18px 0 8px;
}

#rich-visual-editor.rich-wysiwyg-surface h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: #334155;
  margin: 14px 0 6px;
}

#rich-visual-editor.rich-wysiwyg-surface strong,
#rich-visual-editor.rich-wysiwyg-surface b {
  font-weight: 800;
  color: #0f172a;
}

#rich-visual-editor.rich-wysiwyg-surface ul,
#rich-visual-editor.rich-wysiwyg-surface ol {
  margin: 12px 0 16px;
  padding-left: 24px;
}

#rich-visual-editor.rich-wysiwyg-surface li {
  margin-bottom: 6px;
}

#rich-visual-editor.rich-wysiwyg-surface blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  background: #f8fafc;
  border-left: 4px solid var(--theme-primary);
  border-radius: 6px;
}

.html-source-sync-group {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
}

.html-source-label {
  font-size: 12.5px !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
}

/* ============================================================================
 * PROACTIVE INLINE SELECTION LINKER & ARTICLE LINKS INSPECTOR (SEO TEAM)
 * ============================================================================ */
.toolbar-btn-selection-active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.selection-quick-link-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.selection-quick-link-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #1e3a8a;
}

.selection-quick-badge {
  font-weight: 800;
  color: #1d4ed8;
}

.selection-quick-phrase {
  background: #ffffff;
  color: #0f172a;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid #93c5fd;
  font-weight: 800;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-existing-url-tag {
  font-size: 12px;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.selection-quick-link-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-quick-attach-link {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-quick-attach-link:hover {
  background: #1d4ed8;
}

.btn-quick-remove-link,
.btn-admin-danger-outline {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-quick-remove-link:hover,
.btn-admin-danger-outline:hover {
  background: #fee2e2;
}

.custom-link-popover-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #cbd5e1;
}

.custom-link-mode-badge {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 3px solid #2563eb;
}

#rich-visual-editor.rich-wysiwyg-surface a,
#rich-visual-editor.rich-wysiwyg-surface a.seo-inline-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
}

.article-links-inspector-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.article-links-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.article-links-inspector-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.article-links-inspector-hint {
  font-size: 12px;
  color: #64748b;
}

.article-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.article-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
}

.article-link-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.article-link-index {
  font-size: 11.5px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-link-anchor {
  color: #0f172a;
  font-weight: 800;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 4px;
}

.article-link-arrow {
  color: #94a3b8;
  font-weight: 700;
}

.article-link-href {
  color: #2563eb;
  font-family: monospace;
  font-size: 12.5px;
  text-decoration: underline;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-link-rel-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-link-rel-badge.rel-dofollow {
  background: #dcfce7;
  color: #166534;
}

.article-link-rel-badge.rel-nofollow {
  background: #fef3c7;
  color: #92400e;
}

.article-link-rel-badge.rel-sponsored {
  background: #f3e8ff;
  color: #6b21a8;
}

.article-link-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-inline-link-edit {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-inline-link-edit:hover {
  background: #dbeafe;
}

.btn-inline-link-remove {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-inline-link-remove:hover {
  background: #fee2e2;
}

/* ============================================================================
   IMAGE DELETION & UPLOADED IMAGES MANAGER STYLES
   ============================================================================ */
.admin-nav-images-btn {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  font-weight: 700 !important;
}

.admin-nav-images-btn:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  color: #ffffff !important;
}

.gal-thumb-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.btn-gal-corner-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 3;
}

.btn-gal-corner-delete:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.btn-gal-delete {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-gal-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.studio-result-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-delete-last-upload {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-delete-last-upload:hover {
  background: #b91c1c;
}

.thumb-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-delete-thumb {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-delete-thumb:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.thumb-cell-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.btn-table-thumb-delete {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}

.btn-table-thumb-delete:hover {
  background: #dc2626;
  color: #ffffff;
}

.admin-images-manager-card {
  margin-top: 24px;
  border: 1px solid #e2e8f0;
}

.images-manager-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.images-manager-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.images-manager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-images-manager-box {
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
}

.article-inline-img-thumb {
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.article-inline-img-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

