/* ==========================================================================
   Generative AI Brasil — Main Design System & Stylesheet
   Paleta: Preto Profundo + Cores Tecnológicas do Brasil (Verde, Amarelo e Azul)
   ========================================================================== */

/* 1. Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* 2. Container & Layout Utilities */
.ai-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.ai-main-container, .ai-single-container, .ai-page-container {
  padding-top: 32px;
  padding-bottom: 64px;
}

.ai-content-layout, .ai-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.ai-article-main-col,
.ai-primary-stream,
.ai-page-main {
  min-width: 0;
  max-width: 100%;
}

.ai-sidebar,
.ai-single-sidebar {
  min-width: 0;
  max-width: 100%;
}

/* 3. Reading Progress Bar (Brasil Gradient) */
.ai-reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--ai-gradient-br);
  z-index: 1000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
}

/* 4. Site Header & Glassmorphism */
.ai-site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 990;
  transition: var(--transition-smooth);
}

.ai-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.ai-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ai-gradient-primary);
  color: #06070a;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.4);
}

.ai-brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.ai-brand-name strong {
  background: var(--ai-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-badge-br {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(255, 214, 0, 0.2) 100%);
  color: var(--br-yellow);
  border: 1px solid rgba(255, 214, 0, 0.4);
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* Navigation Menu */
.ai-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.ai-menu-list a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
}

.ai-menu-list a:hover, .ai-menu-list .current-menu-item > a {
  color: var(--br-green-hover);
}

.ai-menu-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ai-gradient-primary);
  transition: width 0.25s ease;
}

.ai-menu-list a:hover::after, .ai-menu-list .current-menu-item > a::after {
  width: 100%;
}

/* Header Controls */
.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 5;
}

.ai-action-btn * {
  pointer-events: none;
}

.ai-action-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
  transform: translateY(-1px);
}

/* Theme Switcher Sun/Moon */
[data-theme="dark"] .ai-theme-icon-sun { display: block; color: var(--br-yellow); }
[data-theme="dark"] .ai-theme-icon-moon { display: none; }
[data-theme="light"] .ai-theme-icon-sun { display: none; }
[data-theme="light"] .ai-theme-icon-moon { display: block; color: var(--br-blue); }

.ai-mobile-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.ai-hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* 5. Hero Card */
.ai-hero-section {
  margin-bottom: 40px;
}

.ai-hero-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.ai-hero-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.ai-hero-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.ai-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ai-hero-card:hover .ai-hero-img {
  transform: scale(1.04);
}

.ai-hero-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ai-card-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--br-green);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.ai-badge-featured {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 214, 0, 0.15);
  color: var(--br-yellow);
  border: 1px solid rgba(255, 214, 0, 0.3);
}

.ai-hero-title {
  font-size: 2.1rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.ai-hero-title a:hover {
  color: var(--br-green-hover);
}

.ai-hero-excerpt {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.ai-card-meta-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-meta-dot {
  color: var(--text-muted);
}

/* 6. Section Header & Post Cards Grid */
.ai-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.ai-section-title {
  font-size: 1.4rem;
  white-space: nowrap;
}

.ai-section-line {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--br-green) 0%, transparent 100%);
}

.ai-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ai-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.ai-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--br-green);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.15);
}

.ai-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ai-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ai-post-card:hover .ai-card-img {
  transform: scale(1.05);
}

.ai-cat-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  color: var(--br-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.ai-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ai-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.ai-card-title a:hover {
  color: var(--br-green-hover);
}

.ai-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.ai-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* 7. Sidebar Widgets */
.ai-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ai-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

.ai-widget-heading {
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.ai-widget-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--ai-gradient-primary);
}

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

.ai-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.ai-pill:hover {
  background: rgba(0, 230, 118, 0.1);
  color: var(--br-green);
  border-color: var(--br-green);
}

/* Affiliate Widget (Cores do Brasil) */
.ai-widget-affiliate {
  background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(0, 230, 118, 0.06) 50%, rgba(0, 128, 255, 0.06) 100%);
  border-color: rgba(0, 230, 118, 0.3);
}

.ai-widget-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--br-yellow);
  margin-bottom: 8px;
}

.ai-widget-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.ai-widget-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* 8. AdSense Containers & Placeholders */
.ai-ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0;
  width: 100%;
}

.ai-ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ai-ad-placeholder {
  width: 100%;
  min-height: 100px;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ai-ad-placeholder-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ai-ad-sidebar-box .ai-ad-placeholder {
  min-height: 250px;
}

/* 9. Buttons (Gradiente Verde e Azul Cyber Brasil) */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.ai-btn-primary {
  background: var(--ai-primary);
  color: var(--ai-btn-text) !important;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.35);
}

.ai-btn-primary:hover {
  background: var(--ai-primary-hover);
  color: var(--ai-btn-hover-text) !important;
  box-shadow: 0 6px 24px rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
}

.ai-btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.ai-btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
}

.ai-btn-block {
  width: 100%;
}

/* 10. Single Article Typography & Content */
.ai-breadcrumbs-wrap {
  margin-bottom: 24px;
}

.ai-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-breadcrumbs a:hover {
  color: var(--br-green-hover);
}

.ai-article-header {
  margin-bottom: 32px;
}

.ai-article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-reading-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ai-article-title {
  font-size: 2.75rem;
  line-height: 1.18;
  margin-bottom: 14px;
}

.ai-article-lead-deck {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.ai-author-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ai-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-author-avatar img {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: 2px solid var(--br-green);
}

.ai-author-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-date-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ai-article-featured-media {
  margin-bottom: 36px;
}

.ai-featured-media-frame {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ai-single-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-featured-caption {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
  margin-top: 10px;
  padding: 0;
}

.ai-featured-caption svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--br-green);
  opacity: 0.9;
}

.ai-featured-caption span {
  flex: 1;
  text-align: left;
}

/* 11. Gutenberg Editorial Elements */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry-content p {
  margin-bottom: 1.6rem;
}

.entry-content h2 {
  font-size: 1.95rem;
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 18px;
}

.entry-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--ai-gradient-primary);
  border-radius: 2px;
}

.entry-content h3 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.6rem;
  padding-left: 28px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content strong {
  color: var(--text-primary);
}

.entry-content a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition-fast);
}

.entry-content a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Tables */
.wp-block-table,
.ai-table-responsive {
  width: 100%;
  max-width: 100%;
  margin: 2.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.wp-block-table table,
.ai-table-responsive table,
.entry-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.wp-block-table th, .wp-block-table td,
.ai-table-responsive th, .ai-table-responsive td,
.entry-content table th, .entry-content table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.wp-block-table th,
.ai-table-responsive th,
.entry-content table th {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: 2px solid var(--br-green);
}

.wp-block-table tr:hover td,
.ai-table-responsive tr:hover td,
.entry-content table tr:hover td {
  background: rgba(0, 230, 118, 0.04);
}

/* Code Blocks */
pre, .wp-block-code {
  background: #06070a !important;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 2rem 0;
  position: relative;
}

.ai-code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: none;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ai-code-copy-btn:hover {
  background: var(--br-green);
  color: #06070a;
}

/* Affiliate Card Shortcode (Preto + Ouro e Verde) */
.ai-affiliate-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(0, 230, 118, 0.08) 50%, rgba(255, 214, 0, 0.08) 100%);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: var(--border-radius-md);
  padding: 28px;
  margin: 2.5rem 0;
  box-shadow: 0 4px 24px rgba(0, 230, 118, 0.15);
}

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

.ai-affiliate-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--ai-primary);
  color: var(--ai-btn-text);
  letter-spacing: 0.05em;
}

.ai-affiliate-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ai-badge-yellow-text);
  text-transform: uppercase;
  background: var(--ai-badge-yellow-bg);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--ai-badge-yellow-border);
}

.ai-affiliate-card .ai-btn {
  background: var(--ai-primary) !important;
  color: var(--ai-btn-text) !important;
  font-weight: 800 !important;
}

.ai-affiliate-card .ai-btn:hover {
  background: var(--ai-primary-hover) !important;
  color: var(--ai-btn-hover-text) !important;
}

.ai-affiliate-title {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.ai-affiliate-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Author Bio Box */
.ai-author-bio-box {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  margin: 40px 0;
}

.ai-bio-avatar img {
  border-radius: 50%;
  border: 2px solid var(--br-green);
}

.ai-bio-name {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ai-bio-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Related Posts */
.ai-related-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.ai-related-heading {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.ai-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.ai-related-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ai-related-body {
  padding: 14px;
}

.ai-related-body h4 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.ai-related-body a:hover {
  color: var(--br-green);
}

.ai-related-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 12. Site Footer */
.ai-site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
}

.ai-footer-top {
  padding: 60px 20px 40px 20px;
}

.ai-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.ai-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ai-footer-heading {
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--br-yellow);
}

.ai-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ai-footer-links a:hover {
  color: var(--br-green-hover);
  padding-left: 4px;
}

.ai-footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ai-footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
}

.ai-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-back-to-top-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.ai-back-to-top-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
}

/* 13. Modals & Drawers */
.ai-mobile-drawer, .ai-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ai-mobile-drawer.active, .ai-search-modal.active {
  visibility: visible;
  opacity: 1;
}

.ai-drawer-overlay, .ai-search-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.ai-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-mobile-drawer.active .ai-drawer-content {
  transform: translateX(0);
}

.ai-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--br-green);
}

.ai-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
}

.ai-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-drawer-list a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.ai-drawer-list a:hover {
  color: var(--br-green-hover);
}

.ai-drawer-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Search Modal Box */
.ai-search-modal-container {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 100px auto 0 auto;
  padding: 0 20px;
}

.ai-search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--border-radius-md);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.ai-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
}

.ai-search-field {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
  font-family: var(--font-body);
}

.ai-search-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.ai-search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.ai-quick-label {
  color: var(--text-muted);
}

.ai-quick-tag {
  background: var(--bg-surface-elevated);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid var(--border-subtle);
}

.ai-quick-tag:hover {
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
}

/* 14. Responsive Breakpoints */
@media (max-width: 1080px) {
  .ai-content-layout, .ai-article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ai-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ai-hero-card {
    grid-template-columns: 1fr;
  }
  .ai-hero-image-wrap {
    min-height: 240px;
  }
  .ai-hero-pillars {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .ai-nav-desktop {
    display: none;
  }
  .ai-mobile-trigger {
    display: flex;
  }
  .ai-posts-grid {
    grid-template-columns: 1fr;
  }
  .ai-related-grid {
    grid-template-columns: 1fr;
  }
  .ai-article-title {
    font-size: 2rem;
  }
  .ai-article-lead-deck {
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .ai-featured-caption {
    font-size: 0.8rem;
    text-align: left;
    justify-content: flex-start;
  }
  .ai-featured-caption svg {
    margin-top: 2px;
  }
  .ai-footer-grid {
    grid-template-columns: 1fr;
  }
  .ai-hero-headline {
    font-size: 2.1rem !important;
  }
}

/* ==========================================================================
   15. Brasil Cyber Elements & Hero Section
   ========================================================================== */
.ai-brasil-stripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #00e676 0%, #ffd600 50%, #0080ff 100%);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.7);
}

.ai-brasil-hero {
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.95) 0%, rgba(6, 7, 10, 0.98) 100%);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 56px 44px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 230, 118, 0.12);
}

.ai-brasil-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e676 0%, #ffd600 50%, #0080ff 100%);
}

.ai-hero-badge-wrap {
  margin-bottom: 20px;
}

.ai-badge-brasil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
}

.ai-flag-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.ai-flag-dot-yellow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd600;
  box-shadow: 0 0 8px #ffd600;
}

.ai-flag-dot-blue {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0080ff;
  box-shadow: 0 0 8px #0080ff;
}

.ai-hero-headline {
  font-size: 3.1rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 980px;
}

.ai-text-green {
  color: #00e676;
  text-shadow: 0 0 25px rgba(0, 230, 118, 0.35);
}

.ai-text-gradient {
  background: linear-gradient(135deg, #00e676 0%, #ffd600 50%, #0080ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-hero-subheadline {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 820px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.ai-hero-subheadline strong {
  color: #ffd600;
}

.ai-hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.ai-pillar-card {
  background: rgba(18, 22, 32, 0.7);
  border-radius: var(--border-radius-md);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.ai-pillar-card:hover {
  transform: translateY(-3px);
}

.ai-pillar-green {
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.08);
}

.ai-pillar-green:hover {
  border-color: #00e676;
  box-shadow: 0 6px 25px rgba(0, 230, 118, 0.2);
}

.ai-pillar-yellow {
  border-color: rgba(255, 214, 0, 0.35);
  box-shadow: 0 4px 20px rgba(255, 214, 0, 0.08);
}

.ai-pillar-yellow:hover {
  border-color: #ffd600;
  box-shadow: 0 6px 25px rgba(255, 214, 0, 0.2);
}

.ai-pillar-blue {
  border-color: rgba(0, 128, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 128, 255, 0.08);
}

.ai-pillar-blue:hover {
  border-color: #0080ff;
  box-shadow: 0 6px 25px rgba(0, 128, 255, 0.2);
}

.ai-pillar-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.ai-pillar-body h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.ai-pillar-body p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.ai-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Upcoming Cards Grid (Quando não há posts) */
.ai-upcoming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ai-upcoming-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.ai-upcoming-card:hover {
  border-color: var(--br-green);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.1);
}

.ai-upcoming-card h4 {
  font-size: 1.25rem;
  margin: 10px 0;
  color: #ffffff;
}

.ai-upcoming-card p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.ai-upcoming-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.ai-tag-green {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.ai-tag-yellow {
  background: rgba(255, 214, 0, 0.15);
  color: #ffd600;
  border: 1px solid rgba(255, 214, 0, 0.3);
}

.ai-tag-blue {
  background: rgba(0, 128, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 128, 255, 0.3);
}

/* Fallback Card Thumbnail */
.ai-card-thumb-fallback {
  background: linear-gradient(135deg, #0c0e14 0%, #151926 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 230, 118, 0.2);
}

.ai-fallback-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
}

/* Colored Topic Pills */
.ai-pill-green {
  border-color: rgba(0, 230, 118, 0.3) !important;
  color: #00e676 !important;
}

.ai-pill-green:hover {
  background: rgba(0, 230, 118, 0.2) !important;
}

.ai-pill-yellow {
  border-color: rgba(255, 214, 0, 0.3) !important;
  color: #ffd600 !important;
}

.ai-pill-yellow:hover {
  background: rgba(255, 214, 0, 0.2) !important;
}

.ai-pill-blue {
  border-color: rgba(0, 128, 255, 0.3) !important;
  color: #38bdf8 !important;
}

.ai-pill-blue:hover {
  background: rgba(0, 128, 255, 0.2) !important;
}

/* ==========================================================================
   16. Author E-E-A-T Profile Page & Author Components
   ========================================================================== */
.ai-author-profile-hero {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(0, 230, 118, 0.05) 50%, rgba(0, 128, 255, 0.05) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.ai-author-profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ai-gradient-br);
}

.ai-author-profile-inner {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .ai-author-profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }
}

.ai-author-avatar-large {
  position: relative;
  flex-shrink: 0;
}

.ai-author-avatar-large .ai-avatar-img,
.ai-author-avatar-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--br-green);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
  display: block;
  object-fit: cover;
}

.ai-verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #06070a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ai-author-details {
  flex: 1;
}

.ai-author-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ai-author-name-heading {
  font-size: 2.2rem;
  margin: 0;
  line-height: 1.15;
}

.ai-badge-specialist {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--br-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.ai-author-full-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.ai-author-expertise {
  margin-bottom: 22px;
}

.ai-expertise-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ai-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-exp-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.ai-author-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-author-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.ai-author-link-pill:hover {
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.15);
}

.ai-link-editorial {
  border-color: rgba(0, 128, 255, 0.3);
  color: var(--br-blue);
}

.ai-link-editorial:hover {
  border-color: var(--br-blue-hover);
  color: var(--br-blue-hover);
}

/* Header & Bio Box Author Links */
.ai-author-header-link:hover,
.ai-author-bio-link:hover {
  color: var(--br-green-hover);
  text-decoration: underline;
}

.ai-bio-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  margin-left: 8px;
  border-radius: 4px;
  background: var(--ai-badge-bg);
  color: var(--br-green);
  border: 1px solid var(--ai-badge-border);
  vertical-align: middle;
}

.ai-bio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

.ai-bio-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--br-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.ai-bio-more-link:hover {
  color: var(--br-yellow-hover);
  transform: translateX(3px);
}

.ai-bio-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 119, 181, 0.12);
  color: #0077b5;
  border: 1px solid rgba(0, 119, 181, 0.3);
  transition: var(--transition-fast);
}

.ai-bio-social-pill:hover {
  background: #0077b5;
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="dark"] .ai-bio-social-pill {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .ai-bio-social-pill:hover {
  background: #0077b5;
  color: #ffffff;
}

/* ==========================================================================
   17. Dynamic Table of Contents (TOC) & Key Takeaways
   ========================================================================== */
.entry-content .ai-toc-box,
.ai-toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--br-green);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px !important;
  margin: 18px 0 26px 0 !important;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.entry-content .ai-toc-header,
.ai-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0 !important;
  padding: 0 0 8px 0 !important;
  border-bottom: 1px solid var(--border-subtle);
}

.entry-content .ai-toc-title,
.ai-toc-title {
  font-family: var(--font-heading);
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.ai-toc-icon {
  color: var(--br-green);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Explicitly eliminate inherited list margins/padding from .entry-content ol */
.entry-content ol.ai-toc-list,
.entry-content .ai-toc-list,
.ai-toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.entry-content li.ai-toc-item,
.entry-content .ai-toc-item,
.ai-toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 5px 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.ai-toc-item:hover {
  background: var(--bg-surface-elevated);
}

.ai-toc-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--br-green);
  background: var(--ai-badge-bg);
  border: 1px solid var(--ai-badge-border);
  border-radius: 4px;
  padding: 1px 6px;
  min-width: 26px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.3;
}

.entry-content a.ai-toc-link,
.entry-content .ai-toc-link,
.ai-toc-link {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  transition: var(--transition-fast);
}

.entry-content a.ai-toc-link:hover,
.ai-toc-item:hover .ai-toc-link {
  color: var(--br-green-hover) !important;
  text-decoration: none !important;
}

/* Key Takeaways Box (Google AI Overviews / SGE Extractor) */
.ai-key-takeaways {
  background: linear-gradient(145deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 128, 255, 0.05) 100%);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--border-radius-md);
  padding: 24px 28px;
  margin: 28px 0 36px 0;
}

.ai-takeaways-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--br-green);
  margin-bottom: 14px;
}

.ai-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-takeaways-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.ai-takeaways-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--br-green);
  font-size: 0.85rem;
  font-weight: 800;
}

/* 404 Recommended Posts */
.ai-404-recommended {
  margin-top: 50px;
  text-align: left;
}

.ai-404-rec-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}

/* ==========================================================================
   18. Smooth Scroll Margin for Headings (TOC Anchor Framing)
   ========================================================================== */
h1[id], h2[id], h3[id], h4[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* ==========================================================================
   19. Keyboard Shortcut Badge (Header Search)
   ========================================================================== */
.ai-search-btn {
  width: auto !important;
  padding: 0 12px !important;
  gap: 8px;
}

.ai-kbd-shortcut {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  line-height: 1;
}

@media (max-width: 640px) {
  .ai-kbd-shortcut {
    display: none;
  }
  .ai-search-btn {
    width: 40px !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   20. Social Share Bar (Viral Reach & CTR)
   ========================================================================== */
.ai-social-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin: 32px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-share-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ai-share-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}

.ai-share-whatsapp:hover {
  background: #25d366;
  color: #06070a;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.ai-share-linkedin {
  background: rgba(0, 119, 181, 0.12);
  color: #38bdf8;
  border-color: rgba(0, 119, 181, 0.3);
}

.ai-share-linkedin:hover {
  background: #0077b5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.ai-share-x {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.ai-share-x:hover {
  background: #ffffff;
  color: #000000;
}

.ai-share-copy {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.ai-share-copy:hover {
  border-color: var(--br-green);
  color: var(--br-green);
}

/* ==========================================================================
   21. Post Navigation (Previous / Next Articles)
   ========================================================================== */
.ai-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

@media (max-width: 640px) {
  .ai-post-navigation {
    grid-template-columns: 1fr;
  }
}

.ai-nav-card {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.ai-nav-card:hover {
  border-color: var(--br-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.15);
}

.ai-nav-direction {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--br-green);
  margin-bottom: 8px;
}

.ai-nav-next .ai-nav-direction {
  color: var(--br-yellow);
}

.ai-nav-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.ai-nav-card:hover .ai-nav-title {
  color: var(--br-green-hover);
}

.ai-nav-empty {
  display: none;
}

/* ==========================================================================
   22. Animated Toast Notification System
   ========================================================================== */
.ai-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #06070a;
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 230, 118, 0.3);
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.ai-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Related card image styling */
.ai-related-thumb-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  display: block;
}

/* ==========================================================================
   23. Category & Archive Header Styles
   ========================================================================== */
.ai-archive-header {
  margin-top: 16px;
  margin-bottom: 48px;
  padding: 32px 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.ai-archive-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--br-green) 0%, var(--br-blue) 100%);
}

.ai-archive-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--br-green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ai-archive-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.ai-archive-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 840px;
  margin-bottom: 24px;
}

.ai-cat-pill-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.ai-cat-pill-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.ai-cat-pill-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-cat-pill-item {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.ai-cat-pill-item:hover {
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
  transform: translateY(-1px);
}

.ai-cat-pill-item.active {
  background: var(--ai-badge-bg);
  border-color: var(--br-green);
  color: var(--br-green);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

@media (max-width: 768px) {
  .ai-archive-header {
    padding: 24px 20px;
    margin-bottom: 32px;
  }
  .ai-archive-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Search Page Styles
   ========================================================================== */
.ai-search-header {
  margin-bottom: 36px;
}

.ai-search-term {
  color: var(--br-yellow);
}

.ai-search-count {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 18px;
}

.ai-search-count strong {
  color: var(--br-green);
}

.ai-search-refine-box {
  max-width: 580px;
  margin-top: 14px;
}

.ai-search-refine-box .ai-search-form {
  display: flex;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px;
  transition: var(--transition-smooth);
}

.ai-search-refine-box .ai-search-form:focus-within {
  border-color: var(--br-green);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

.ai-search-refine-box .ai-search-field {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 8px 14px;
  outline: none;
}

.ai-empty-search-box {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 40px;
}

.ai-empty-search-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.ai-empty-search-box h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.ai-empty-search-box p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.ai-empty-search-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ai-empty-search-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Page Layout (Institutional & Legal)
   ========================================================================== */
.ai-page-container {
  padding-top: 24px;
  padding-bottom: 60px;
}

.ai-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 991px) {
  .ai-page-layout {
    grid-template-columns: 1fr;
  }
}

.ai-page-main {
  min-width: 0;
}

.ai-page-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 40px;
}

@media (max-width: 640px) {
  .ai-page-article {
    padding: 24px 18px;
  }
}

.ai-page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-page-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(41, 121, 255, 0.12);
  color: var(--br-blue);
  border: 1px solid rgba(41, 121, 255, 0.3);
  margin-bottom: 10px;
}

.ai-page-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: var(--text-primary);
}

.ai-page-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

.ai-inst-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-inst-nav-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.ai-inst-nav-list li a:hover {
  background: var(--bg-surface-elevated);
  color: var(--br-green-hover);
  transform: translateX(3px);
}

.ai-inst-nav-list li.current-page a {
  background: var(--ai-badge-bg);
  color: var(--br-green);
  font-weight: 600;
  border-left: 3px solid var(--br-green);
}

.ai-widget-contact-card {
  background: linear-gradient(145deg, rgba(13, 17, 23, 0.9), rgba(6, 7, 10, 0.9));
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 12px;
  padding: 22px;
}

.ai-contact-card-title {
  font-size: 1.15rem;
  margin: 8px 0 12px 0;
  color: var(--text-primary);
}

.ai-contact-card-email {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.ai-contact-card-email code {
  color: var(--br-yellow);
  font-size: 0.95rem;
  background: rgba(255, 215, 0, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.ai-contact-card-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Interactive Contact Form
   ========================================================================== */
.ai-contact-form-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.ai-contact-form-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.ai-contact-form-header p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.ai-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-req {
  color: #ff5252;
}

.ai-form-input,
.ai-form-select,
.ai-form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-smooth);
}

.ai-form-input:focus,
.ai-form-select:focus,
.ai-form-textarea:focus {
  outline: none;
  border-color: var(--br-green);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

.ai-form-select option {
  background: #0d1117;
  color: #fff;
}

.ai-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ai-form-status {
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.ai-form-status.loading {
  color: var(--br-yellow);
}

.ai-form-status.success {
  color: var(--br-green);
  font-weight: 600;
}

.ai-form-status.error {
  color: #ff5252;
  font-weight: 600;
}

/* ==========================================================================
   26. FAQ Accordion & Toggler (Interactive & High-Performance)
   ========================================================================== */
.ai-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 36px;
}

.ai-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  overflow: hidden;
}

.ai-faq-item[open] {
  border-color: rgba(0, 230, 118, 0.4);
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none; /* Hide default browser triangle */
  user-select: none;
  transition: color var(--transition-fast);
}

.ai-faq-question::-webkit-details-marker {
  display: none;
}

.ai-faq-question:hover {
  color: var(--br-green-hover);
}

.ai-faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.ai-faq-item[open] .ai-faq-chevron {
  transform: rotate(180deg);
  color: var(--br-green);
}

.ai-faq-answer {
  padding: 0 22px 22px 22px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 16px;
}

.ai-faq-answer p:last-child {
  margin-bottom: 0;
}

.ai-faq-answer strong {
  color: var(--text-primary);
}

.ai-faq-answer a {
  color: var(--br-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   27. Article Tags Styling (Dark & Light Mode)
   ========================================================================== */
.ai-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
}

.ai-tags-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-tag-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.ai-tag-pill:hover {
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   28. Light Theme Specific High-Contrast Overrides (WCAG AAA Compliance)
   ========================================================================== */
/* Social Share Buttons in Light Mode */
[data-theme="light"] .ai-share-whatsapp {
  background: rgba(7, 94, 84, 0.08);
  color: #075e54;
  border-color: rgba(7, 94, 84, 0.25);
}

[data-theme="light"] .ai-share-whatsapp:hover {
  background: #075e54;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(7, 94, 84, 0.3);
}

[data-theme="light"] .ai-share-linkedin {
  background: rgba(0, 119, 181, 0.08);
  color: #0077b5;
  border-color: rgba(0, 119, 181, 0.25);
}

[data-theme="light"] .ai-share-linkedin:hover {
  background: #0077b5;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 119, 181, 0.3);
}

[data-theme="light"] .ai-share-x {
  background: var(--bg-surface-elevated);
  color: #0a0c10;
  border-color: #cbd5e1;
}

[data-theme="light"] .ai-share-x:hover {
  background: #0a0c10;
  color: #ffffff;
}

[data-theme="light"] .ai-share-copy {
  background: var(--bg-surface-elevated);
  color: #0a0c10;
  border-color: #cbd5e1;
}

[data-theme="light"] .ai-share-copy:hover {
  border-color: var(--br-green-hover);
  color: var(--br-green-hover);
}

/* Brasil Cyber Hero Section in Light Mode */
[data-theme="light"] .ai-brasil-hero {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .ai-hero-headline {
  color: #0a0c10;
}

[data-theme="light"] .ai-text-green {
  color: var(--br-green);
  text-shadow: none;
}

[data-theme="light"] .ai-hero-subheadline {
  color: var(--text-secondary);
}

[data-theme="light"] .ai-hero-subheadline strong {
  color: var(--br-yellow);
}

[data-theme="light"] .ai-badge-brasil {
  background: var(--ai-badge-bg);
  border-color: var(--ai-badge-border);
  color: var(--br-green);
}

[data-theme="light"] .ai-pillar-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .ai-pillar-body h4 {
  color: #0a0c10;
}

[data-theme="light"] .ai-pillar-body p {
  color: #475569;
}

[data-theme="light"] .ai-pillar-green:hover {
  border-color: var(--br-green);
  box-shadow: 0 6px 20px rgba(0, 122, 61, 0.15);
}

[data-theme="light"] .ai-pillar-yellow:hover {
  border-color: var(--br-yellow);
  box-shadow: 0 6px 20px rgba(146, 64, 14, 0.15);
}

[data-theme="light"] .ai-pillar-blue:hover {
  border-color: var(--br-blue);
  box-shadow: 0 6px 20px rgba(0, 91, 181, 0.15);
}

/* Badges & Pills in Light Mode */
[data-theme="light"] .ai-pill-green {
  background: var(--ai-badge-bg) !important;
  color: var(--br-green) !important;
  border-color: var(--ai-badge-border) !important;
}

[data-theme="light"] .ai-pill-green:hover {
  background: rgba(0, 122, 61, 0.14) !important;
  color: var(--br-green-hover) !important;
  border-color: var(--br-green-hover) !important;
}

[data-theme="light"] .ai-pill-yellow {
  background: var(--ai-badge-yellow-bg) !important;
  color: var(--br-yellow) !important;
  border-color: var(--ai-badge-yellow-border) !important;
}

[data-theme="light"] .ai-pill-yellow:hover {
  background: rgba(146, 64, 14, 0.14) !important;
  color: var(--br-yellow-hover) !important;
  border-color: var(--br-yellow-hover) !important;
}

[data-theme="light"] .ai-pill-blue {
  background: var(--ai-badge-blue-bg) !important;
  color: var(--br-blue) !important;
  border-color: var(--ai-badge-blue-border) !important;
}

[data-theme="light"] .ai-pill-blue:hover {
  background: rgba(0, 91, 181, 0.14) !important;
  color: var(--br-blue-hover) !important;
  border-color: var(--br-blue-hover) !important;
}

[data-theme="light"] .ai-cat-badge-overlay {
  background: #ffffff;
  color: var(--br-green);
  border: 1px solid var(--ai-badge-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Key Takeaways in Light Mode */
[data-theme="light"] .ai-key-takeaways {
  background: #f0fdf4;
  border: 1px solid rgba(0, 122, 61, 0.22);
}

/* Form Controls in Light Mode */
[data-theme="light"] .ai-form-input,
[data-theme="light"] .ai-form-textarea,
[data-theme="light"] .ai-form-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0a0c10;
}

[data-theme="light"] .ai-form-input:focus,
[data-theme="light"] .ai-form-textarea:focus,
[data-theme="light"] .ai-form-select:focus {
  border-color: var(--br-green);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.15);
}

[data-theme="light"] .ai-form-select option {
  background: #ffffff;
  color: #0a0c10;
}

/* Post Navigation in Light Mode */
[data-theme="light"] .ai-nav-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .ai-nav-card:hover {
  border-color: var(--br-green-hover);
  box-shadow: 0 6px 20px rgba(0, 122, 61, 0.12);
}

/* ==========================================================================
   Interactive AI Cost & ROI Calculator
   ========================================================================== */
.ai-calculator-card {
  background: linear-gradient(135deg, rgba(10, 13, 20, 0.95), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 230, 118, 0.06);
  position: relative;
  overflow: hidden;
}

.ai-calculator-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.15), transparent 70%);
  pointer-events: none;
}

.ai-calc-header {
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.ai-calc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--br-green);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 999px;
  margin-bottom: 12px;
}

.ai-calc-title {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ai-calc-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ai-calc-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ai-calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-calc-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ai-calc-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--br-green);
}

.ai-calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--br-green);
  box-shadow: 0 0 12px var(--br-green);
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

.ai-calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.ai-calc-range-marks {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ai-calc-grid-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ai-calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-calc-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-calc-select:focus {
  border-color: var(--br-green);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15);
}

.ai-calc-select option {
  background: #0d1117;
  color: #f1f5f9;
}

.ai-calc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ai-calc-result-box {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-calc-result-box.ai-box-after {
  background: rgba(0, 230, 118, 0.05);
  border-color: rgba(0, 230, 118, 0.25);
}

.ai-box-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ai-box-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-box-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ai-color-emerald {
  color: var(--br-green) !important;
}

.ai-calc-savings-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.12), rgba(255, 214, 0, 0.08));
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.ai-savings-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--br-green);
  margin-bottom: 4px;
}

.ai-savings-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.ai-savings-yearly {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ai-savings-yearly strong {
  color: var(--br-yellow);
}

/* Light Theme Overrides for Calculator */
[data-theme="light"] .ai-calculator-card {
  background: #ffffff;
  border-color: rgba(0, 122, 61, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ai-calc-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .ai-calc-select option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .ai-calc-result-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .ai-calc-savings-banner {
  background: linear-gradient(90deg, rgba(0, 122, 61, 0.08), rgba(217, 119, 6, 0.08));
  border-color: rgba(0, 122, 61, 0.35);
}

[data-theme="light"] .ai-savings-headline {
  color: #0f172a;
}

@media (max-width: 768px) {
  .ai-calculator-card {
    padding: 20px;
  }
  .ai-calc-grid-selectors,
  .ai-calc-results-grid {
    grid-template-columns: 1fr;
  }
  .ai-calc-savings-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ai-savings-action {
    width: 100%;
  }
  .ai-savings-action a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   21. WooCommerce Cyber-Tech Glassmorphism Styling
   ========================================================================== */
.ai-shop-container {
  padding-top: 32px;
  padding-bottom: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-shop-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-shop-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-emerald, #00e676);
  border: 1px solid rgba(0, 230, 118, 0.35);
  margin-bottom: 16px;
}

.ai-shop-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.ai-shop-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* WooCommerce Products Grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 32px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  background: rgba(21, 25, 38, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  margin-bottom: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.2) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--accent-emerald, #00e676) !important;
}

.woocommerce ul.products li.product .price {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--accent-emerald, #00e676) !important;
  margin-bottom: 20px !important;
  display: block !important;
}

.woocommerce ul.products li.product .price del {
  color: #64748b !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  margin-right: 8px !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--accent-emerald, #00e676) !important;
}

.woocommerce ul.products li.product span.onsale {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  margin: 0 !important;
  min-height: auto !important;
  min-width: auto !important;
  padding: 5px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%) !important;
  color: #0b0f19 !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.4) !important;
}

/* Button styling */
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%) !important;
  color: #0b0f19 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  border: none !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: linear-gradient(135deg, #26ff8c 0%, #00e676 100%) !important;
  box-shadow: 0 6px 22px rgba(0, 230, 118, 0.45) !important;
  transform: translateY(-2px) !important;
  color: #0b0f19 !important;
}

/* Single Product Layout */
.woocommerce div.product {
  background: rgba(21, 25, 38, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 40px !important;
  backdrop-filter: blur(12px) !important;
  margin-top: 24px !important;
}

.woocommerce div.product .product_title {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 16px !important;
  line-height: 1.25 !important;
}

.woocommerce div.product p.price {
  font-size: 1.8rem !important;
  color: var(--accent-emerald, #00e676) !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1.1rem !important;
  color: #cbd5e1 !important;
  line-height: 1.7 !important;
  margin-bottom: 28px !important;
}

.woocommerce div.product .product_meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 20px !important;
  margin-top: 32px !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
}

.woocommerce div.product .product_meta a {
  color: #38bdf8 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: rgba(0, 230, 118, 0.15) !important;
  border-color: rgba(0, 230, 118, 0.4) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  color: #cbd5e1 !important;
  line-height: 1.8 !important;
  padding: 24px 0 !important;
}

/* Cart & Checkout */
.woocommerce table.shop_table {
  background: rgba(21, 25, 38, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: #cbd5e1 !important;
}

.woocommerce table.shop_table th {
  color: #ffffff !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce table.shop_table td {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: rgba(11, 15, 25, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--accent-emerald, #00e676) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2) !important;
}

/* Light Mode Overrides */
[data-theme="light"] .ai-shop-title {
  color: #0f172a;
}

[data-theme="light"] .ai-shop-subtitle {
  color: #475569;
}

[data-theme="light"] .woocommerce ul.products li.product {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #0f172a !important;
}

[data-theme="light"] .woocommerce div.product {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .woocommerce div.product .product_title {
  color: #0f172a !important;
}

/* ==========================================================================
   22. In-Article Product Callout Box Component ([ai_product_box])
   ========================================================================== */
.ai-product-callout-card {
  margin: 48px 0;
  background: linear-gradient(135deg, rgba(21, 25, 38, 0.9) 0%, rgba(13, 17, 28, 0.95) 100%);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 230, 118, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-product-callout-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 230, 118, 0.15);
}

.ai-product-callout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #00e676 0%, #00b0ff 100%);
}

.ai-prod-callout-inner {
  display: flex;
  gap: 32px;
  align-items: center;
}

.ai-prod-callout-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.ai-prod-callout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.ai-product-callout-card:hover .ai-prod-callout-thumb img {
  transform: scale(1.05);
}

.ai-prod-callout-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-prod-callout-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ai-prod-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-emerald, #00e676);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.ai-prod-pill-free {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 176, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 176, 255, 0.35);
}

.ai-prod-pill-discount {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 0, 0.15);
  color: #ffd600;
  border: 1px solid rgba(255, 214, 0, 0.35);
}

.ai-prod-callout-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.ai-prod-callout-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ai-prod-callout-title a:hover {
  color: var(--accent-emerald, #00e676);
}

.ai-prod-callout-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-prod-callout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-prod-callout-price-box {
  display: flex;
  flex-direction: column;
}

.ai-prod-callout-price-free {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-emerald, #00e676);
  line-height: 1.2;
}

.ai-prod-callout-price-old {
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: line-through;
  line-height: 1.2;
}

.ai-prod-callout-price-current {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-emerald, #00e676);
  line-height: 1.2;
}

.ai-prod-callout-price-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 3px;
}

.ai-prod-callout-btn {
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35);
}

/* Light mode overrides */
[data-theme="light"] .ai-product-callout-card {
  background: #ffffff;
  border-color: rgba(0, 122, 61, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ai-prod-callout-title a {
  color: #0f172a;
}

[data-theme="light"] .ai-prod-callout-desc {
  color: #475569;
}

[data-theme="light"] .ai-prod-callout-footer {
  border-top-color: #e2e8f0;
}

@media (max-width: 768px) {
  .ai-prod-callout-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .ai-prod-callout-thumb {
    width: 100%;
    height: 220px;
  }
  .ai-prod-callout-footer {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .ai-prod-callout-btn {
    width: 100%;
    justify-content: center;
  }
}








