/* Auto-generated from app/globals.css — do not edit by hand */
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

.shkian-native-blog {
  --font: "Vazirmatn", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

.shkian-native-blog *,
.shkian-native-blog *::before,
.shkian-native-blog *::after {
  box-sizing: border-box;
}

/* ─── Design tokens ─── */
:root {
  --font: "Vazirmatn", system-ui, sans-serif;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --accent: #0369a1;
  --accent-light: #0ea5e9;
  --gold: #d4a853;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 148, 136, 0.12);
  --shadow-xl: 0 32px 80px rgba(3, 105, 161, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 76px;
  --container: min(1200px, calc(100% - 2.5rem));
  --article-width: 1000px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 900px;
  --bp-xl: 1100px;
  --header-bg: rgba(248, 250, 252, 0.72);
  --header-bg-scrolled: rgba(255, 255, 255, 0.88);
  --quick-bar-bg: rgba(255, 255, 255, 0.55);
  --quick-pill-bg: #ffffff;
  --quick-pill-bg-hover: #ffffff;
  --quick-pill-text: #475569;
  --quick-pill-border: rgba(15, 23, 42, 0.1);
  --blog-filters-bar-bg: rgba(248, 250, 252, 0.88);
  --blog-pill-bg: #ffffff;
  --blog-pill-bg-hover: #f8fafc;
  --blog-pill-text: #334155;
  --blog-pill-border: rgba(15, 23, 42, 0.1);
  --blog-chip-bg: #f1f5f9;
  --blog-chip-text: #64748b;
  --blog-chip-hover: #e2e8f0;
  --blog-category-bg: #ccfbf1;
  --blog-category-text: #0f766e;
  --blog-hero-meta-bg: rgba(255, 255, 255, 0.7);
  --blog-hero-stat-strong: #0f766e;
  --prose-body: #334155;
  --prose-quote-bg: #f0fdfa;
  --surface-muted: #f1f5f9;
  --on-primary: #fff;
}

[data-theme="dark"] {
  --bg: #0a1628;
  --bg-elevated: #111d33;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --primary: #14b8a6;
  --primary-dark: #2dd4bf;
  --primary-light: #0d9488;
  --accent: #38bdf8;
  --accent-light: #0ea5e9;
  --gold: #e8c468;
  --border: rgba(241, 245, 249, 0.08);
  --border-strong: rgba(241, 245, 249, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(13, 148, 136, 0.18);
  --shadow-xl: 0 32px 80px rgba(3, 105, 161, 0.22);
  --header-bg: rgba(10, 22, 40, 0.78);
  --header-bg-scrolled: rgba(17, 29, 51, 0.92);
  --quick-bar-bg: rgba(10, 22, 40, 0.72);
  --quick-pill-bg: #162544;
  --quick-pill-bg-hover: #1c2f52;
  --quick-pill-text: #cbd5e1;
  --quick-pill-border: rgba(148, 163, 184, 0.2);
  --blog-filters-bar-bg: rgba(10, 22, 40, 0.9);
  --blog-pill-bg: #162544;
  --blog-pill-bg-hover: #1c2f52;
  --blog-pill-text: #cbd5e1;
  --blog-pill-border: rgba(148, 163, 184, 0.22);
  --blog-chip-bg: #1c2f52;
  --blog-chip-text: #94a3b8;
  --blog-chip-hover: #243a5c;
  --blog-category-bg: rgba(20, 184, 166, 0.18);
  --blog-category-text: #5eead4;
  --blog-hero-meta-bg: rgba(22, 37, 68, 0.9);
  --blog-hero-stat-strong: #5eead4;
  --prose-body: #cbd5e1;
  --prose-quote-bg: rgba(20, 184, 166, 0.1);
  --surface-muted: #0f1a2e;
  --on-primary: #0a1628;
}

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

[data-theme="dark"] .orb-1 {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35) 0%, transparent 70%);
  opacity: 0.35;
}

[data-theme="dark"] .orb-2 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
  opacity: 0.3;
}

[data-theme="dark"] .orb-3 {
  background: radial-gradient(circle, rgba(232, 196, 104, 0.22) 0%, transparent 70%);
}

[data-theme="dark"] .grid-overlay {
  background-image:
    linear-gradient(rgba(241, 245, 249, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 245, 249, 0.04) 1px, transparent 1px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}

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

.btn:active { transform: translateY(0); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.45);
}

.btn-outline {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover { color: var(--primary); background: rgba(13, 148, 136, 0.06); }

.btn-light {
  background: var(--bg-elevated);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .theme-switcher-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

[data-theme="dark"] .theme-switcher-option:hover {
  background: rgba(20, 184, 166, 0.1);
}

[data-theme="dark"] .theme-switcher-option.is-active {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(45, 212, 191, 0.28);
}

.mobile-nav-actions .btn { flex: 1; }

[data-theme="dark"] .mobile-nav {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .mobile-nav.is-open {
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {[data-theme="dark"] .mobile-nav-backdrop {
    background: rgba(0, 0, 0, 0.55);
  }}

[data-theme="dark"] .quick-pill:hover {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.4);
}

[data-theme="dark"] .quick-pill:hover .pill-icon {
  color: #5eead4;
}

/* ─── Search section (minimal) ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-cta .btn svg { transform: scaleX(-1); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  min-width: 0;
}

.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.blog-thumb {
  height: 220px;
  background-size: cover;
  background-position: center 35%;
}

.blog-thumb-1 {
  background: linear-gradient(135deg, #0d9488 0%, #0369a1 100%),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.2) 0%, transparent 50%);
  background-blend-mode: overlay;
}

.blog-thumb-2 {
  background: linear-gradient(160deg, #1e3a5f 0%, #0ea5e9 100%);
}

.blog-thumb-3 {
  background: linear-gradient(135deg, #134e4a 0%, #14b8a6 50%, #67e8f9 100%);
}

.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.blog-body time {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 600;
}

.blog-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0.5rem 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-body h3 a:hover { color: var(--primary); }

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.read-more:hover { text-decoration: underline; }

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {.header-actions .btn { display: none; }}

@media (max-width: 600px) {:root {
    --header-h: 68px;
    --container: min(1200px, calc(100% - 1.5rem));
  }

.hero-cta .btn-lg {
    width: 100%;
    justify-content: center;
  }

.cta-actions .btn { flex: 1; min-width: 0; }

.featured-card .btn-lg { width: 100%; justify-content: center; }

.page-actions .btn { width: 100%; justify-content: center; }

.footer-bottom .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

.btn { white-space: normal; text-align: center; }

.blog-list-section { padding: 1.75rem 0 3rem; }

.blog-featured-section { padding: 1.5rem 0 0.75rem; }

.article-header { padding: 1.5rem 0 1rem; }

.article-cover { height: min(56vw, 280px); border-radius: var(--radius-lg); }

.article-share {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem;
  }

.article-share-buttons { justify-content: center; }

.article-related-section { padding: 2rem 0 3rem; }

.seo-keyword-strip { padding: 1rem 0 1.5rem; }}

@media (max-width: 480px) {.hero-cta .btn-outline.btn-lg { width: 100%; justify-content: center; }

.blog-empty-state { padding: 2.5rem 1.25rem; }

.blog-card-featured .blog-thumb { min-height: 200px; }}

@media (prefers-reduced-motion: reduce) {.reveal { opacity: 1; transform: none; }}

/* ─── Inner pages ─── */
.page-main { min-height: 60vh; }

.blog-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 2rem; }

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-thumb-custom {
  background-size: cover;
  background-position: center;
}

.article-page { padding: 0 0 4rem; }

.article-main { background: var(--bg); }

.article-container {
  max-width: var(--article-width);
  width: 100%;
  margin-inline: auto;
}

.article-hero-band {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(13, 148, 136, 0.06) 0%,
    transparent 100%
  );
}

.article-top-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.article-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
}

.article-breadcrumb ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-width: 0;
}

.article-breadcrumb li {
  white-space: nowrap;
  min-width: 0;
}

.article-breadcrumb li:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-inline-start: 0.5rem;
  color: var(--text-soft);
}

.article-breadcrumb a:hover { color: var(--primary); }

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: gap 0.2s var(--ease-out);
}

.article-back-link:hover { gap: 0.45rem; color: var(--primary-dark); }

.article-header {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.article-meta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.article-meta-chips .blog-category,
.article-meta-chips .article-chip {
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  font-weight: 600;
  border-radius: 999px;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blog-chip-text);
  background: var(--blog-chip-bg);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--blog-pill-border);
}

.article-meta-chips .article-chip {
  color: var(--blog-chip-text);
  background: var(--blog-chip-bg);
  border: 1px solid var(--blog-pill-border);
}

.article-featured-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.article-header h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.article-excerpt {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  margin: 0 auto 1.25rem;
  max-width: 38rem;
}

.article-byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-author {
  display: flex;
  justify-content: center;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.article-author > span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.article-author-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.article-author-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.article-author-footer .article-author {
  justify-content: flex-start;
  margin: 0;
}

.article-tags {
  justify-content: center;
  margin-top: 0.25rem;
}

.article-cover {
  height: min(48vw, 420px);
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center 35%;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.article-body-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.article-body-card .article-content { max-width: none; }

.article-cover > div,
.article-cover [role="img"] {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 35%;
}

.article-content {
  line-height: 1.9;
  font-size: 1.05rem;
}

.article-content p { margin-bottom: 1rem; }

/* Ads share the same prose container; segments don't create extra boxes. */
.article-content-with-ads .article-md-segment {
  display: contents;
}

.blog-ad-min {
  display: block;
  width: 100%;
  max-width: var(--blog-ad-max-width, 560px);
  margin: 1.35rem 0 1.5rem;
  clear: both;
}

.blog-ad-min--start { margin-inline-start: 0; margin-inline-end: auto; }

.blog-ad-min--end { margin-inline-start: auto; margin-inline-end: 0; }

.blog-ad-min--center { margin-inline: auto; }

.blog-ad-min--small { --blog-ad-max-width: 280px; }

.blog-ad-min--medium { --blog-ad-max-width: 560px; }

.blog-ad-min--large { --blog-ad-max-width: 720px; }

.blog-ad-min--full { --blog-ad-max-width: 100%; }

.blog-ad-min-tag {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 1;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.blog-ad-min-tag--text-only {
  position: static;
  display: inline-block;
  margin-bottom: 0.35rem;
  background: var(--blog-chip-bg);
  color: var(--text-soft);
  backdrop-filter: none;
}

.blog-ad-min-link,
.blog-ad-min-body {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-ad-min-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.blog-ad-min-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  line-height: 0;
}

.blog-ad-min-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--blog-ad-image-max-height, 240px);
  object-fit: contain;
}

.blog-ad-min--small .blog-ad-min-image img { --blog-ad-image-max-height: 160px; }

.blog-ad-min--medium .blog-ad-min-image img { --blog-ad-image-max-height: 240px; }

.blog-ad-min--large .blog-ad-min-image img { --blog-ad-image-max-height: 300px; }

.blog-ad-min--full .blog-ad-min-image img { --blog-ad-image-max-height: 360px; }

.blog-ad-min-cta {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-ad-min-link:hover .blog-ad-min-cta {
  text-decoration: underline;
}

.post-rich-editor figure,
.post-rich-editor .blog-inline-figure {
  margin: 1rem 0;
}

.post-sidebar-section-head .btn-seo-ai {
  flex-shrink: 0;
}

.btn-block { width: 100%; justify-content: center; }

.seo-keywords-preview {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.76rem;
}

.blog-settings-form {
  display: grid;
  gap: 1.25rem;
}

.blog-settings-form .admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.admin-ad-preview-canvas .blog-ad-min {
  margin: 0;
}

.admin-post-thumb.blog-thumb-1,
.admin-post-thumb.blog-thumb-2,
.admin-post-thumb.blog-thumb-3 { background-size: cover; }

.btn-seo-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  opacity: 0.88;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.btn-seo-ai:hover:not(:disabled) {
  color: var(--primary-dark);
  opacity: 1;
}

.btn-seo-ai:disabled {
  opacity: 0.45;
  cursor: wait;
}

.btn-seo-ai-icon {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

.btn-seo-ai-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: admin-cover-spin 0.7s linear infinite;
}

.btn-ai {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 45%, #6366f1 100%);
  color: white;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.2;
  box-shadow:
    0 4px 16px rgba(13, 148, 136, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s,
    filter 0.25s;
  white-space: nowrap;
}

.btn-ai-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-ai-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.btn-ai:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(13, 148, 136, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ai:hover .btn-ai-glow { opacity: 1; }

.btn-ai:active { transform: translateY(0); }

.btn-ai:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-ai--cta {
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
}

@media (max-width: 560px) {.admin-ai-modal-foot .btn { width: 100%; justify-content: center; }}

/* ─── Blog enhancements ─── */
.blog-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
  min-width: 0;
}

.blog-thumb-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.08) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

.blog-card:hover .blog-thumb-wrap::after { opacity: 1; }

.blog-card-featured { grid-column: 1 / -1; }

.blog-featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.35);
}

.blog-read-more {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-read-more-icon {
  transition: transform 0.25s var(--ease-out);
}

.blog-card:hover .blog-read-more-icon {
  transform: translateX(-4px);
}

.blog-meta-row,
.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.blog-category {
  display: inline-block;
  background: var(--blog-category-bg);
  color: var(--blog-category-text);
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.blog-reading-time { font-size: 0.8rem; color: var(--text-muted); }

.blog-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0; list-style: none; padding: 0; }

.blog-tag {
  font-size: 0.78rem;
  background: var(--blog-chip-bg);
  color: var(--blog-chip-text);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--blog-pill-border);
}

a.blog-tag:hover {
  background: var(--blog-chip-hover);
  color: var(--primary-dark);
}

[data-theme="dark"] a.blog-tag:hover {
  color: #5eead4;
}

.article-focus-keyword {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.5rem;
}

.article-focus-keyword strong { color: var(--primary-dark); font-weight: 600; }

.seo-keyword-strip {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.04));
}

.seo-keyword-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.seo-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-keyword-list a,
.seo-keyword-list span {
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.seo-keyword-list a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.seo-keywords-preview { line-height: 1.6; }

.blog-filters-section { padding-top: 0; padding-bottom: 1rem; }

.blog-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.blog-filters::-webkit-scrollbar { display: none; }

.blog-filter-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--blog-pill-border);
  background: var(--blog-pill-bg);
  color: var(--blog-pill-text);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.blog-filter-pill:hover:not(.is-active) {
  background: var(--blog-pill-bg-hover);
  color: var(--primary);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-md);
}

.blog-filter-pill.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

[data-theme="dark"] .blog-filter-pill:hover:not(.is-active) {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.4);
}

.blog-featured-section { padding: 2.5rem 0 1rem; }

/* ─── Blog index page ─── */
.blog-index .blog-hero {
  position: relative;
  padding: 2rem 0 1.25rem;
  text-align: center;
  overflow: hidden;
}

.blog-index .blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(13, 148, 136, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(3, 105, 161, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 80%, rgba(20, 184, 166, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.blog-index .blog-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.blog-hero-inner {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
}

.blog-index .blog-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.blog-hero-lead {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 36rem;
}

.blog-hero-lead-line {
  display: block;
}

.blog-hero-lead-secondary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  opacity: 0.92;
}

.blog-hero-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--blog-hero-meta-bg);
  border: 1px solid var(--blog-pill-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.blog-hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--blog-chip-text);
}

.blog-hero-stat strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blog-hero-stat-strong);
}

.blog-hero-stat-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--border-strong);
}

.blog-filters-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--blog-filters-bar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  max-width: 100%;
  overflow: hidden;
}

.blog-index .blog-filters {
  gap: 0.35rem;
}

.blog-section-head-compact {
  margin-bottom: 1rem;
}

.blog-section-head-compact .blog-section-label {
  margin-bottom: 0;
}

/* vh-based min-heights grow with iframe height and cause infinite resize loops */
html.is-embed-iframe .page-main {
  min-height: 0;
}

[data-theme="dark"] .embed-magazine-loader__mark {
  background: rgba(17, 29, 51, 0.92);
}

/* /s routes — sticky filters, but no header offset */
.standalone-route .blog-filters-bar {
  top: 0;
}

.blog-filters-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.blog-filter-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.blog-section-head {
  margin-bottom: 1.75rem;
}

.blog-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.blog-section-label,
.blog-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.blog-section-label {
  display: block;
  color: var(--text);
}

.blog-section-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.blog-list-section {
  padding: 2.5rem 0 5rem;
}

.blog-load-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.blog-index .blog-grid {
  gap: 1.75rem;
}

.blog-index {
  overflow-x: clip;
  max-width: 100%;
}

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

.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.04) 0%, rgba(3, 105, 161, 0.03) 100%);
  border: 1px dashed rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-xl);
}

.blog-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.25rem;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  border-radius: 50%;
}

.blog-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-empty-text {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {.blog-card-featured .blog-card-link {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 320px;
  }

.blog-card-featured .blog-thumb-wrap,
  .blog-card-featured .blog-thumb {
    height: 100%;
    min-height: 320px;
  }

.blog-card-featured .blog-body {
    padding: 2rem 2rem 2rem 1.75rem;
    justify-content: center;
  }

.blog-card-featured .blog-body h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    -webkit-line-clamp: 3;
  }

.blog-card-featured .blog-excerpt {
    font-size: 1rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }}

@media (max-width: 767px) {.blog-index .blog-hero { padding: 1.5rem 0 1rem; }

.blog-hero-meta {
    width: 100%;
    border-radius: var(--radius-md);
    justify-content: center;
  }

.blog-hero-stat-divider { display: none; }

.blog-filters-bar-inner { flex-direction: column; align-items: stretch; }

.blog-filter-count { text-align: center; }}

.article-share {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.07) 0%,
    rgba(3, 105, 161, 0.04) 100%
  );
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: var(--shadow-sm);
}

.article-share-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.article-share-label::before {
  content: "";
  width: 3px;
  height: 1.15em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.article-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border-radius: 50%;
  color: var(--blog-pill-text);
  border: 1px solid var(--blog-pill-border);
  background: var(--bg-elevated);
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.article-share-btn svg,
.article-share-btn .article-share-logo {
  width: 1.35rem;
  height: 1.35rem;
}

.article-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-share-btn--whatsapp { color: #25d366; }

.article-share-btn--whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.article-share-btn--telegram { color: #229ed9; }

.article-share-btn--telegram:hover {
  background: #229ed9;
  border-color: #229ed9;
  color: #fff;
}

.article-share-btn--eitaa { color: #f57c00; }

.article-share-btn--eitaa:hover {
  background: #f57c00;
  border-color: #f57c00;
  color: #fff;
}

.article-share-btn--eitaa:hover .article-share-logo {
  filter: brightness(0) invert(1);
}

.article-share-btn--bale { color: #00a884; }

.article-share-btn--bale:hover {
  background: #00a884;
  border-color: #00a884;
  color: #fff;
}

.article-share-btn--bale:hover .article-share-logo {
  filter: brightness(0) invert(1);
}

.article-related-section {
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.03) 0%, transparent 100%);
}

.prose h2, .prose h3, .prose h4 { margin: 1.75rem 0 0.85rem; line-height: 1.4; color: var(--text); }

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-strong);
}

.prose li {
  color: var(--prose-body);
}

.prose h3 { font-size: 1.2rem; font-weight: 700; }

.prose p {
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--prose-body);
}

.prose ul, .prose ol { margin: 0 0 1rem; padding-right: 1.25rem; }

.prose li { margin-bottom: 0.35rem; }

.prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-right: 4px solid var(--primary);
  background: var(--prose-quote-bg);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.prose a { color: var(--primary); text-decoration: underline; }

.prose mark {
  background: rgba(250, 204, 21, 0.45);
  color: inherit;
  padding: 0.05em 0.15em;
  border-radius: 3px;
}

.prose u { text-underline-offset: 2px; }

.prose sub, .prose sup { font-size: 0.75em; line-height: 0; }

.prose img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.prose .blog-inline-figure {
  margin: 1.25rem auto;
  text-align: center;
}

.prose .blog-inline-figure img,
.prose img.blog-img-inline {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.prose .blog-inline-figure.blog-img-small,
.prose img.blog-img-inline.blog-img-small { max-width: 280px; }

.prose .blog-inline-figure.blog-img-medium,
.prose img.blog-img-inline.blog-img-medium { max-width: 560px; }

.prose .blog-inline-figure.blog-img-large,
.prose img.blog-img-inline.blog-img-large { max-width: 960px; }

.prose .blog-inline-figure.blog-img-full,
.prose img.blog-img-inline.blog-img-full { max-width: 100%; }

.admin-inline-image-preview .blog-inline-figure {
  margin: 0.5rem auto 0;
}

.prose .markdown-table-wrap,
.post-rich-editor .markdown-table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.prose table.markdown-table,
.post-rich-editor table.markdown-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose table.markdown-table th,
.prose table.markdown-table td,
.post-rich-editor table.markdown-table th,
.post-rich-editor table.markdown-table td {
  padding: 0.65rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--prose-body);
}

.prose table.markdown-table th:not([style*="text-align"]),
.prose table.markdown-table td:not([style*="text-align"]),
.post-rich-editor table.markdown-table th:not([style*="text-align"]),
.post-rich-editor table.markdown-table td:not([style*="text-align"]) {
  text-align: right;
}

.prose table.markdown-table th,
.post-rich-editor table.markdown-table th {
  font-weight: 700;
  color: var(--text);
  background: var(--bg-soft, #f8fafc);
  white-space: nowrap;
}

.prose table.markdown-table tr:last-child td,
.post-rich-editor table.markdown-table tr:last-child td {
  border-bottom: none;
}

.prose table.markdown-table tbody tr:hover td,
.post-rich-editor table.markdown-table tbody tr:hover td {
  background: rgba(20, 184, 166, 0.04);
}

.prose .markdown-code-block,
.post-rich-editor pre.markdown-code-block {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  border: none;
}

.prose .markdown-code-block code,
.post-rich-editor pre.markdown-code-block code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose .markdown-chart,
.post-rich-editor .markdown-chart {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.prose .markdown-bar-chart,
.post-rich-editor .markdown-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prose .markdown-chart-title,
.post-rich-editor .markdown-chart-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.prose .markdown-chart-body,
.post-rich-editor .markdown-chart-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prose .markdown-chart-caption,
.post-rich-editor .markdown-chart-caption {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted, #64748b);
}

.prose .markdown-chart-row,
.post-rich-editor .markdown-chart-row {
  display: grid;
  grid-template-columns: minmax(5rem, 28%) 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.prose .markdown-chart-label,
.post-rich-editor .markdown-chart-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.prose .markdown-chart-bar-track,
.post-rich-editor .markdown-chart-bar-track {
  height: 0.55rem;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.prose .markdown-chart-bar,
.post-rich-editor .markdown-chart-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #2dd4bf);
}

.prose .markdown-chart-value,
.post-rich-editor .markdown-chart-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.prose strong { font-weight: 700; }

.prose code {
  background: var(--surface-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

@media (max-width: 768px) {.admin-head-actions .btn,
  .admin-head-actions .btn-ai { width: 100%; justify-content: center; }

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

.prose h2 { font-size: 1.2rem; }

.prose p { font-size: 0.98rem; }}

/* ─── Dark mode: light-surface patches ─── */
[data-theme="dark"] .featured-scan {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, #0c2a3a 50%, #0a2230 100%);
}

[data-theme="dark"] .si-teal { background: rgba(20, 184, 166, 0.15); color: #5eead4; }

[data-theme="dark"] .si-blue { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }

[data-theme="dark"] .si-cyan { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }

[data-theme="dark"] .si-emerald { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }

[data-theme="dark"] .si-indigo { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; }

[data-theme="dark"] .si-violet { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; }

[data-theme="dark"] .si-rose { background: rgba(251, 113, 133, 0.15); color: #fda4af; }

[data-theme="dark"] .admin-table th,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .admin-panel,
[data-theme="dark"] .admin-table-wrap,
[data-theme="dark"] .admin-settings-section,
[data-theme="dark"] .admin-sidebar-card,
[data-theme="dark"] .post-editor-topbar,
[data-theme="dark"] .post-title-block,
[data-theme="dark"] .post-excerpt-block,
[data-theme="dark"] .post-content-editor,
[data-theme="dark"] .post-editor-sidebar,
[data-theme="dark"] .admin-markdown-editor,
[data-theme="dark"] .admin-preview-panel,
[data-theme="dark"] .admin-image-modal,
[data-theme="dark"] .admin-ai-modal,
[data-theme="dark"] .admin-snackbar,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .service-list-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .contact-card {
  background: var(--bg-elevated);
}

[data-theme="dark"] .admin-table th,
[data-theme="dark"] .admin-markdown-toolbar,
[data-theme="dark"] .post-md-toolbar,
[data-theme="dark"] .post-sidebar-tabs,
[data-theme="dark"] .post-preview-chrome,
[data-theme="dark"] .seo-serp-preview,
[data-theme="dark"] .admin-toggle-row,
[data-theme="dark"] .admin-image-modal-body {
  background: var(--surface-muted);
}

[data-theme="dark"] .admin-table th {
  color: var(--text-muted);
}

[data-theme="dark"] .admin-badge.published {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
}

[data-theme="dark"] .admin-badge.draft {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

[data-theme="dark"] .admin-badge.scheduled {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .admin-filters a:not(.is-active) {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

[data-theme="dark"] .admin-post-thumb-wrap.is-missing {
  outline-color: var(--border-strong);
}

[data-theme="dark"] .admin-cover-spinner {
  border-color: var(--border-strong);
  border-top-color: var(--primary);
}

[data-theme="dark"] .admin-ai-modal-hero {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.14) 0%, rgba(99, 102, 241, 0.12) 100%),
    var(--bg-elevated);
}

[data-theme="dark"] .admin-ai-modal-kicker {
  color: #5eead4;
}

[data-theme="dark"] .admin-ai-overlay {
  background: rgba(2, 8, 20, 0.78);
}

[data-theme="dark"] .admin-ai-job-item--running {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(20, 184, 166, 0.1);
}

[data-theme="dark"] .admin-ai-job-item--completed {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

[data-theme="dark"] .admin-ai-job-item--failed {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .admin-ai-job-item--failed .admin-ai-job-step {
  color: #fca5a5;
}

[data-theme="dark"] .admin-ai-job-retry {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

[data-theme="dark"] .admin-ai-job-retry:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.16);
}

[data-theme="dark"] .admin-ai-job-save {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

[data-theme="dark"] .admin-ai-job-save:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.16);
}

[data-theme="dark"] .admin-login-field input {
  background: var(--bg-elevated);
  color: var(--text);
}

[data-theme="dark"] .admin-login-icon {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary);
}

[data-theme="dark"] .admin-login-alert {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

[data-theme="dark"] .admin-markdown-input,
[data-theme="dark"] .post-markdown-input,
[data-theme="dark"] .post-title-input,
[data-theme="dark"] .post-excerpt-input,
[data-theme="dark"] .admin-form input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] .admin-form textarea,
[data-theme="dark"] .admin-form select {
  background: var(--bg-elevated);
  color: var(--text);
}

[data-theme="dark"] .admin-table input,
[data-theme="dark"] .admin-category-add-row input {
  background: var(--bg-elevated);
  color: var(--text);
}

[data-theme="dark"] .toolbar-actions button {
  background: var(--bg-elevated);
  color: var(--text);
}

[data-theme="dark"] .admin-preview-panel .prose {
  color: var(--text);
}

[data-theme="dark"] .seo-serp-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .seo-serp-url { color: #86efac; }

[data-theme="dark"] .seo-serp-title { color: #93c5fd; }

[data-theme="dark"] .seo-serp-desc { color: #94a3b8; }

[data-theme="dark"] .post-content-preview { background: var(--bg); }

[data-theme="dark"] .admin-status-pill {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

[data-theme="dark"] .admin-status-pill.is-active {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(20, 184, 166, 0.35);
  color: var(--primary-dark);
}

[data-theme="dark"] .admin-ad-upload-btn {
  background: var(--bg-elevated);
}

[data-theme="dark"] .blog-ad-min-image {
  background: var(--bg-elevated);
}

[data-theme="dark"] .admin-ad-preview-canvas {
  background: var(--bg-elevated);
}

[data-theme="dark"] .admin-star {
  color: var(--gold);
}

[data-theme="dark"] .admin-ai-toggle-card {
  background: var(--surface-muted);
}

[data-theme="dark"] .admin-ai-progress {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(99, 102, 241, 0.1));
  border-color: rgba(45, 212, 191, 0.3);
}

[data-theme="dark"] .admin-snackbar--error {
  background: rgba(69, 10, 10, 0.92);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

[data-theme="dark"] .admin-snackbar--success {
  background: rgba(4, 47, 46, 0.92);
  border-color: rgba(45, 212, 191, 0.35);
  color: #99f6e4;
}

[data-theme="dark"] .admin-snackbar--info {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

[data-theme="dark"] .admin-snackbar--error .admin-snackbar-icon {
  background: rgba(127, 29, 29, 0.6);
  color: #fca5a5;
}

[data-theme="dark"] .admin-snackbar--success .admin-snackbar-icon {
  background: rgba(19, 78, 74, 0.6);
  color: #5eead4;
}

[data-theme="dark"] .admin-snackbar--info .admin-snackbar-icon {
  background: rgba(30, 58, 138, 0.5);
  color: #93c5fd;
}

[data-theme="dark"] .prose .markdown-table-wrap,
[data-theme="dark"] .post-rich-editor .markdown-table-wrap {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .prose table.markdown-table th,
[data-theme="dark"] .post-rich-editor table.markdown-table th {
  background: var(--surface-muted);
  color: var(--text);
}

[data-theme="dark"] .prose table.markdown-table tbody tr:hover td,
[data-theme="dark"] .post-rich-editor table.markdown-table tbody tr:hover td {
  background: rgba(45, 212, 191, 0.08);
}

[data-theme="dark"] .prose .markdown-code-block,
[data-theme="dark"] .post-rich-editor pre.markdown-code-block {
  background: #0b1220;
  color: #cbd5e1;
}

[data-theme="dark"] .prose .markdown-chart,
[data-theme="dark"] .post-rich-editor .markdown-chart {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .prose code,
[data-theme="dark"] .article-toc,
[data-theme="dark"] .search-result mark {
  background: var(--surface-muted);
}

[data-theme="dark"] .admin-input,
[data-theme="dark"] .admin-textarea,
[data-theme="dark"] .admin-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

[data-theme="dark"] .admin-input:focus,
[data-theme="dark"] .admin-textarea:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus {
  border-color: var(--primary);
}

[data-theme="dark"] .site-footer {
  background: #060d18;
}

[data-theme="dark"] .brand-logo {
  filter: brightness(1.08) contrast(1.05);
}

[data-theme="dark"] .article-hero-band {
  background: linear-gradient(
    180deg,
    rgba(20, 184, 166, 0.08) 0%,
    transparent 100%
  );
}

[data-theme="dark"] .article-share {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.1) 0%,
    rgba(56, 189, 248, 0.06) 100%
  );
  border-color: rgba(20, 184, 166, 0.22);
}

[data-theme="dark"] .article-related-section {
  background: linear-gradient(
    180deg,
    rgba(20, 184, 166, 0.06) 0%,
    transparent 100%
  );
}

[data-theme="dark"] .blog-empty-state {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.08) 0%,
    rgba(56, 189, 248, 0.05) 100%
  );
  border-color: rgba(20, 184, 166, 0.25);
}

[data-theme="dark"] .blog-empty-icon {
  background: rgba(20, 184, 166, 0.15);
}

[data-theme="dark"] .seo-keyword-strip {
  background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.05));
}

[data-theme="dark"] .seo-keyword-list a,
[data-theme="dark"] .seo-keyword-list span {
  background: var(--blog-pill-bg);
  color: var(--blog-chip-text);
  border-color: var(--blog-pill-border);
}

[data-theme="dark"] .seo-keyword-list a:hover {
  color: #5eead4;
}

@media (max-width: 720px) {.post-editor-topbar-end .btn {
    flex: 1;
    justify-content: center;
  }}

[data-theme="dark"] .post-editor-topbar,
[data-theme="dark"] .post-title-block,
[data-theme="dark"] .post-excerpt-block,
[data-theme="dark"] .post-content-editor,
[data-theme="dark"] .post-editor-sidebar,
[data-theme="dark"] .post-md-toolbar,
[data-theme="dark"] .post-preview-chrome,
[data-theme="dark"] .post-sidebar-tabs {
  background: var(--bg-elevated);
}

[data-theme="dark"] .post-rich-editor {
  background: var(--bg-elevated);
  color: var(--text);
}

[data-theme="dark"] .post-rich-editor blockquote {
  background: rgba(20, 184, 166, 0.1);
}

[data-theme="dark"] .post-input-head {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), transparent);
}

[data-theme="dark"] .post-topbar-chip {
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.2);
  border-color: rgba(34, 211, 238, 0.28);
}

[data-theme="dark"] .production-footer {
  --production-footer-bg: color-mix(in srgb, var(--bg) 78%, var(--primary) 22%);
  --production-footer-border: rgba(255, 255, 255, 0.08);
}

.production-footer-keyword-strip .seo-keyword-list {
  gap: 0.35rem;
}

.production-footer-keyword-strip .seo-keyword-list a,
.production-footer-keyword-strip .seo-keyword-list span {
  font-size: 0.72rem;
  padding: 0.12rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

.production-footer-keyword-strip .seo-keyword-list a:hover {
  border-color: var(--primary-light);
  color: #fff;
  background: rgba(13, 148, 136, 0.22);
}
