/* ============================================================
   SUB-PAGE MODERN OVERRIDE — pragmatismo.com.br/service/*
   Layered on top of ai-consumer.css + premium.css
   Brings the "graphite bevel" sub-pages into the modern
   glass-gradient aesthetic of the homepage.
   ============================================================ */

/* ── FEATURE CARDS ─────────────────────────────────────────── */
.section .max-w-6xl > div[style*="background:var(--bg-card)"] {
  background: #fff !important;
  border: 1.5px solid #e8ecf4 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 14px !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 8px rgba(0,0,0,0.04) !important;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.22s ease,
              border-color 0.2s ease !important;
  position: relative;
  overflow: hidden;
}

.section .max-w-6xl > div[style*="background:var(--bg-card)"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.02));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border-radius: inherit;
}

.section .max-w-6xl > div[style*="background:var(--bg-card)"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(99,102,241,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
  border-color: rgba(99,102,241,0.25) !important;
}
.section .max-w-6xl > div[style*="background:var(--bg-card)"]:hover::before {
  opacity: 1;
}

/* Icon boxes inside cards — vivid gradient background */
.section .max-w-6xl > div[style*="background:var(--bg-card)"] > div > div[style*="background:rgba"] {
  border-radius: 10px !important;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.section .max-w-6xl > div[style*="background:var(--bg-card)"]:hover > div > div[style*="background:rgba"] {
  transform: scale(1.08) !important;
}

/* Card headings */
.section .max-w-6xl > div[style*="background:var(--bg-card)"] h3 {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em;
}

/* Card descriptions */
.section .max-w-6xl > div[style*="background:var(--bg-card)"] p {
  color: #64748b !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
}

/* ── SECTION LABELS ────────────────────────────────────────── */
.section-label {
  border: none !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  padding: 0.35rem 0.9rem !important;
}

/* ── FEATURE HEADINGS ──────────────────────────────────────── */
.section h2.text-3xl {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  line-height: 1.15 !important;
}
.section p.text-lg.text-muted {
  color: #64748b !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
}

/* Force centering for centered header columns */
.text-center {
  text-align: center !important;
}
.text-center * {
  text-align: center !important;
}

/* ── CALCULATOR SECTION ────────────────────────────────────── */
#calc {
  background: #f8f9fc !important;
  border-top: 1px solid #e8ecf4 !important;
}
#calc h2 {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
}
#calc p {
  color: #64748b !important;
}

.section {
  padding: 8.5rem 0 !important;
}

/* ── COMPARISON TABLE ──────────────────────────────────────── */
.section-alt {
  background: #f8f9fc !important;
  padding: 8.5rem 0 !important;
}
.section-alt table {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.01) !important;
  border-spacing: 0 !important;
  border-collapse: separate !important;
}
.section-alt thead tr {
  background: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
.section-alt th {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 24px 28px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
.section-alt td {
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 24px 28px !important;
  transition: background 0.15s ease;
  vertical-align: middle;
}
.section-alt tbody tr:hover td {
  background: rgba(99,102,241,0.02) !important;
}
.section-alt tbody tr:last-child td {
  border-bottom: none !important;
}
/* Accent column highlight (Pragmatismo) */
.section-alt td:nth-child(2),
.section-alt th:nth-child(2) {
  background: rgba(99,102,241,0.04) !important;
  border-left: 1px solid rgba(99,102,241,0.08) !important;
  border-right: 1px solid rgba(99,102,241,0.08) !important;
}
.section-alt tbody tr:hover td:nth-child(2) {
  background: rgba(99,102,241,0.06) !important;
}

/* ── CROSS-SELL SECTION ────────────────────────────────────── */
section[style*="background:rgba"] {
  background: linear-gradient(135deg, #f8f9fc, #f1f5f9) !important;
  border-top: 1px solid #e8ecf4 !important;
  border-bottom: 1px solid #e8ecf4 !important;
}
section[style*="background:rgba"] h4 {
  color: #475569 !important;
  letter-spacing: 0.08em !important;
}
section[style*="background:rgba"] p {
  color: #64748b !important;
}
section[style*="background:rgba"] .btn-ghost {
  background: #fff !important;
  color: #334155 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease !important;
}
section[style*="background:rgba"] .btn-ghost:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(99,102,241,0.12) !important;
  border-color: rgba(99,102,241,0.3) !important;
  color: #4f46e5 !important;
}

/* ── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #0f172a 100%) !important;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  bottom: -150px; left: -80px;
  background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.cta-section h2 {
  color: #f1f5f9 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  position: relative;
  z-index: 1;
}
.cta-section p {
  color: rgba(148,163,184,0.9) !important;
  position: relative;
  z-index: 1;
}
.cta-section .btn-primary {
  background: linear-gradient(135deg, var(--p-indigo), var(--p-violet)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 0 30px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease !important;
  position: relative; z-index: 1;
}
.cta-section .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 40px rgba(99,102,241,0.65), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
.cta-section .btn-ghost {
  background: rgba(255,255,255,0.07) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 10px !important;
  transition: background 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
  position: relative; z-index: 1;
}
.cta-section .btn-ghost:hover {
  background: rgba(255,255,255,0.12) !important;
  transform: translateY(-2px) !important;
}

/* ── HERO SECTION (sub-page) ───────────────────────────────── */
.hero-canvas {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg, var(--bg));
  border-bottom: none !important;
}
.hero-canvas .container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero-canvas h1 {
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-canvas .hero-sub {
  max-width: 540px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-canvas::before,
.hero-canvas::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  animation: orbFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-canvas::before {
  width: 600px; height: 600px;
  top: -160px; left: -180px;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 70%);
}
.hero-canvas::after {
  width: 500px; height: 500px;
  bottom: -120px; right: -100px;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(34,211,238,0.2) 60%, transparent 80%);
  animation-delay: -6s;
}
.hero-orb-mid {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: orbFloat 9s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
[data-theme="dark"] .hero-canvas::before {
  background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 70%);
}
[data-theme="dark"] .hero-canvas::after {
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, rgba(34,211,238,0.2) 60%, transparent 80%);
}
[data-theme="dark"] .hero-grid-overlay {
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── CODE TAGS ─────────────────────────────────────────────── */
.section code {
  background: #f1f5f9 !important;
  color: #4f46e5 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 5px !important;
  padding: 0.125rem 0.4rem !important;
  font-size: 0.8125rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── HEADER LIGHT THEME OVERRIDES ───────────────────────────── */
html:not([data-theme="dark"]) .mega-menu-inner {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}
html:not([data-theme="dark"]) .mega-col h5 {
  border-bottom-color: rgba(0,0,0,0.08) !important;
}
html:not([data-theme="dark"]) .mega-col a {
  color: rgba(0,0,0,0.6) !important;
}
html:not([data-theme="dark"]) .mega-col a:hover {
  color: #000 !important;
}
html:not([data-theme="dark"]) .mobile-overlay {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(20px) !important;
}
html:not([data-theme="dark"]) .mobile-overlay a {
  color: rgba(0,0,0,0.7) !important;
}
html:not([data-theme="dark"]) .mobile-overlay a:hover {
  background: rgba(0,0,0,0.04) !important;
  color: #000 !important;
}
html:not([data-theme="dark"]) .mobile-menu-divider {
  background: rgba(0,0,0,0.1) !important;
}
html:not([data-theme="dark"]) .mobile-grid-apps a {
  background: rgba(0,0,0,0.02) !important;
  border-color: rgba(0,0,0,0.06) !important;
  color: rgba(0,0,0,0.7) !important;
}
html:not([data-theme="dark"]) .mobile-grid-apps a:hover {
  background: rgba(0,0,0,0.04) !important;
  color: #000 !important;
}
html:not([data-theme="dark"]) .mobile-menu-section-title {
  color: #6366f1 !important;
}
html:not([data-theme="dark"]) .mobile-overlay a.nav-cta {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
}

/* ── LOGO SIZE (sub-pages) ──────────────────────────────────── */
.header-inner {
  padding: 0.5rem 1.5rem 0.5rem 10rem !important;
}
.logo-profile {
  position: absolute !important;
  left: calc(1.5rem - 4px) !important;
  top: 20px !important;
  transform: none !important;
}
.logo-profile img {
  width: 96px !important;
  height: 96px !important;
  border: none !important;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(99,102,241,0.3));
  border-radius: 0 !important;
}
.logo-profile.scrolled img {
  width: 54px !important;
  height: 54px !important;
}

/* ── CALCULATOR VPS BUTTON CONTRAST (light mode) ──────────── */
.calc-vps-btn {
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
.calc-vps-btn:hover {
  border-color: #6366f1 !important;
  box-shadow: 0 4px 12px rgba(99,102,241,0.12) !important;
}
[data-theme="dark"] .calc-vps-btn {
  border: 1.5px solid #3a3a3c !important;
}

/* ── SLIDER PADDING ────────────────────────────────────────── */
.calc-slider-row .calc-slider {
  margin-left: 0.25rem !important;
  width: calc(100% - 0.5rem) !important;
}

/* ── HOSTING PAGE ───────────────────────────────────────────── */
.az-main {
  padding-left: 20px !important;
}

/* ── SECTION LIGHT THEME OVERRIDES ─────────────────────────── */
html:not([data-theme="dark"]) .hero-canvas .btn-ghost {
  background: rgba(0,0,0,0.04) !important;
  color: #334155 !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
}
html:not([data-theme="dark"]) .hero-canvas .btn-ghost:hover {
  background: rgba(0,0,0,0.08) !important;
}

/* ── HOSTING PAGE DEDICATED TABLE ────────────────────────────── */
.section table:not(.az-table) {
  width: 100%;
  border-collapse: collapse;
}
.section table:not(.az-table) th,
.section table:not(.az-table) td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.section table:not(.az-table) th {
  background: var(--bg-secondary, #f1f5f9);
  font-weight: 700;
  color: var(--fg);
}
.section table:not(.az-table) tbody tr:hover {
  background: rgba(99,102,241,0.03);
}
[data-theme="dark"] .section table:not(.az-table) th {
  background: #2a2a2c;
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] body,
[data-theme="dark"] .section .max-w-6xl > div[style*="background:var(--bg-card)"],
[data-theme="dark"] .section .max-w-6xl > div[style*="background:var(--bg-card)"] {
  background: #2d2d30 !important;
}

/* Feature cards — dark */
[data-theme="dark"] .section .max-w-6xl > div[style*="background:var(--bg-card)"] {
  background: #2d2d30 !important;
  border: 1.5px solid #3a3a3c !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 8px rgba(0,0,0,0.15) !important;
}
[data-theme="dark"] .section .max-w-6xl > div[style*="background:var(--bg-card)"]:hover {
  box-shadow: 0 12px 32px rgba(99,102,241,0.2), 0 2px 8px rgba(0,0,0,0.2) !important;
  border-color: rgba(99,102,241,0.35) !important;
}
[data-theme="dark"] .section .max-w-6xl > div[style*="background:var(--bg-card)"] h3 {
  color: #ededed !important;
}
[data-theme="dark"] .section .max-w-6xl > div[style*="background:var(--bg-card)"] p {
  color: #a8a8a8 !important;
}
[data-theme="dark"] .section .max-w-6xl > div[style*="background:var(--bg-card)"]::before {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04)) !important;
}

/* Section headings — dark */
[data-theme="dark"] .section h2.text-3xl {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .section p.text-lg.text-muted {
  color: #94a3b8 !important;
}

/* Calculator section — dark */
[data-theme="dark"] #calc {
  background: #1e1e1e !important;
  border-top: 1px solid #3a3a3c !important;
}
[data-theme="dark"] #calc h2 {
  color: #f1f5f9 !important;
}
[data-theme="dark"] #calc p {
  color: #94a3b8 !important;
}
[data-theme="dark"] .calc-shell {
  background: #1a1a1e !important;
  border: 1.5px dashed #3a3a3c !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
}
[data-theme="dark"] .calc-shell-title {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .calc-shell-sub {
  color: #94a3b8 !important;
}
[data-theme="dark"] .calc-period {
  background: #1e1e1e !important;
  border-color: #3a3a3c !important;
}
[data-theme="dark"] .calc-period-btn {
  background: #2d2d30 !important;
  color: #a8a8a8 !important;
  border-color: #3a3a3c !important;
}
[data-theme="dark"] .calc-period-btn:hover {
  color: #f1f5f9 !important;
  background: #3a3a3c !important;
}
[data-theme="dark"] .calc-period-btn.active {
  background: linear-gradient(135deg, var(--p-indigo), var(--p-violet)) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4) !important;
}
[data-theme="dark"] .calc-vps-btn {
  background: #2d2d30 !important;
  border-color: #3a3a3c !important;
  color: #ededed !important;
}
[data-theme="dark"] .calc-vps-btn:hover {
  border-color: var(--p-indigo) !important;
  background: #3a3a3c !important;
}
[data-theme="dark"] .calc-vps-btn.active {
  background: rgba(99,102,241,0.15) !important;
  border-color: var(--p-indigo) !important;
}
[data-theme="dark"] .calc-slider-row {
  background: rgba(255,255,255,0.03) !important;
  border-color: #3a3a3c !important;
}
[data-theme="dark"] .calc-slider-label {
  color: #ededed !important;
}
[data-theme="dark"] .calc-slider-val {
  color: #a5b4fc !important;
}
[data-theme="dark"] .calc-slider {
  accent-color: var(--p-indigo) !important;
}
[data-theme="dark"] .calc-price-amount {
  background: linear-gradient(135deg, #f1f5f9, #a5b4fc) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
[data-theme="dark"] .calc-cta {
  box-shadow: 0 4px 20px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* Override hardcoded white in calculator inline styles */
[data-theme="dark"] #calc [style*="background: #fff"],
[data-theme="dark"] #calc [style*="background:#fff"],
[data-theme="dark"] #calc [style*="background: #f8fafc"] {
  background: #2d2d30 !important;
}
[data-theme="dark"] #calc [style*="background: rgba(0"] {
  background: rgba(255,255,255,0.03) !important;
}
[data-theme="dark"] #calc [style*="border: 1px solid var(--border)"],
[data-theme="dark"] #calc [style*="border: 1px dashed var(--border)"],
[data-theme="dark"] #calc [style*="border: 1.5px dashed var(--border)"],
[data-theme="dark"] #calc [style*="border-top: 1px dashed var(--border)"] {
  border-color: #3a3a3c !important;
}
[data-theme="dark"] #calc [style*="color: var(--foreground)"],
[data-theme="dark"] #calc [style*="color:var(--foreground)"] {
  color: #f1f5f9 !important;
}
[data-theme="dark"] #calc [style*="color: var(--muted-foreground)"],
[data-theme="dark"] #calc [style*="color:var(--muted-foreground)"] {
  color: #94a3b8 !important;
}
[data-theme="dark"] #calc [style*="color: var(--primary)"],
[data-theme="dark"] #calc [style*="color:var(--primary)"] {
  color: #a5b4fc !important;
}
[data-theme="dark"] #calc [style*="background: var(--muted)"],
[data-theme="dark"] #calc [style*="background:var(--muted)"] {
  background: #1e1e1e !important;
}
[data-theme="dark"] #calc .calc-period-save {
  background: rgba(16,185,129,0.2) !important;
  color: #34d399 !important;
}

/* Comparison table — dark */
[data-theme="dark"] .section-alt {
  background: #1e1e1e !important;
}
[data-theme="dark"] .section-alt table {
  border-color: #2e2e32 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
}
[data-theme="dark"] .section-alt thead tr {
  background: #26262b !important;
  border-bottom-color: #3e3e42 !important;
}
[data-theme="dark"] .section-alt th {
  color: #94a3b8 !important;
  border-bottom-color: #3e3e42 !important;
}
[data-theme="dark"] .section-alt td {
  border-bottom-color: #2d2d30 !important;
  color: #d4d4d8 !important;
}
[data-theme="dark"] .section-alt tbody tr:hover td {
  background: rgba(165,180,252,0.03) !important;
}
[data-theme="dark"] .section-alt td:nth-child(2),
[data-theme="dark"] .section-alt th:nth-child(2) {
  background: rgba(165,180,252,0.06) !important;
  border-left: 1px solid rgba(165,180,252,0.12) !important;
  border-right: 1px solid rgba(165,180,252,0.12) !important;
}
[data-theme="dark"] .section-alt tbody tr:hover td:nth-child(2) {
  background: rgba(165,180,252,0.09) !important;
}
[data-theme="dark"] .section-alt td[style*="color:var(--accent-color)"],
[data-theme="dark"] .section-alt td[style*="color: var(--accent-color)"] {
  color: #a5b4fc !important;
}

/* Cross-sell — dark */
[data-theme="dark"] section[style*="background:rgba"] {
  background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
  border-top-color: #2a2a3c !important;
  border-bottom-color: #2a2a3c !important;
}
[data-theme="dark"] section[style*="background:rgba"] h4 {
  color: #94a3b8 !important;
}
[data-theme="dark"] section[style*="background:rgba"] p {
  color: #64748b !important;
}
[data-theme="dark"] section[style*="background:rgba"] .btn-ghost {
  background: rgba(255,255,255,0.06) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255,255,255,0.1) !important;
}
[data-theme="dark"] section[style*="background:rgba"] .btn-ghost:hover {
  background: rgba(99,102,241,0.15) !important;
  border-color: rgba(99,102,241,0.3) !important;
  color: #a5b4fc !important;
}

/* Code tags — dark */
[data-theme="dark"] .section code {
  background: #2a2a2c !important;
  color: #a5b4fc !important;
  border-color: #3a3a3c !important;
}

/* ── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section .max-w-6xl > div[style*="background:var(--bg-card)"] {
    padding: 1.25rem 1rem !important;
  }
  .section-alt table {
    font-size: 0.8125rem !important;
  }
  .section-alt th, .section-alt td {
    padding: 10px 12px !important;
  }
}

/* ── TECH SPEC & SHOWCASE TABS STYLE OVERRIDES ──────────────── */
.tech-spec-tab-btn, .showcase-tab-btn {
  border-bottom: 2px solid transparent !important;
  color: var(--muted-foreground) !important;
  transition: all 0.22s ease !important;
}
.tech-spec-tab-btn:hover, .showcase-tab-btn:hover {
  color: var(--foreground) !important;
  border-bottom-color: rgba(99,102,241,0.4) !important;
}
.tech-spec-tab-btn.active, .showcase-tab-btn.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .tech-spec-tab-btn.active, 
[data-theme="dark"] .showcase-tab-btn.active {
  color: #a5b4fc !important;
  border-bottom-color: #a5b4fc !important;
}

.tech-table tr {
  transition: background 0.15s ease;
}
.tech-table tr:hover {
  background: rgba(99,102,241,0.03) !important;
}
[data-theme="dark"] .tech-table tr:hover {
  background: rgba(99,102,241,0.08) !important;
}
[data-theme="dark"] .tech-table th {
  background: #2a2a2c !important;
  color: #ededed !important;
}
[data-theme="dark"] .tech-table td {
  border-bottom-color: #2a2a2c !important;
}
[data-theme="dark"] .tech-table {
  border-color: #3a3a3c !important;
}

/* ── COST CALCULATOR CONTRAST & STYLES OVERRIDES ──────────────── */
#general-bots-calculator {
  --muted-foreground: #475569 !important; /* Slate 600 - high contrast grey */
  --border: #cbd5e1 !important; /* Slate 300 - clear borders */
}
[data-theme="dark"] #general-bots-calculator {
  --muted-foreground: #94a3b8 !important;
  --border: #3a3a3c !important;
}
#general-bots-calculator [style*="background: rgba(0"],
#general-bots-calculator [style*="background:rgba(0"] {
  background: #f1f5f9 !important; /* Solid high-contrast background */
}
[data-theme="dark"] #general-bots-calculator [style*="background: rgba(0"],
[data-theme="dark"] #general-bots-calculator [style*="background:rgba(0"] {
  background: rgba(255,255,255,0.03) !important;
}

/* AI Inference Buttons */
.az-ai {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 12px 10px !important;
  cursor: pointer;
  font-family: inherit;
  color: #334155 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  transition: all 0.2s ease !important;
}
.az-ai:hover {
  border-color: #6366f1 !important;
  background: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.08) !important;
}
.az-ai.az-ai-active {
  background: rgba(99,102,241,0.06) !important;
  border-color: #6366f1 !important;
  color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}
.az-ai strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a !important;
}
.az-ai.az-ai-active strong {
  color: #4f46e5 !important;
}
.az-ai span {
  font-size: 9.5px;
  color: #475569 !important;
  line-height: 1.3;
}
.az-ai.az-ai-active span {
  color: #4f46e5 !important;
  opacity: 0.8;
}
.az-ai em {
  font-style: normal;
  font-size: 11.5px;
  color: #6366f1 !important;
  font-weight: 700;
}
.az-ai.az-ai-active em {
  color: #4f46e5 !important;
}

/* Dark theme AI Inference Buttons */
[data-theme="dark"] .az-ai {
  background: #2d2d30 !important;
  border-color: #3a3a3c !important;
  color: #d4d4d8 !important;
}
[data-theme="dark"] .az-ai:hover {
  background: #3a3a3c !important;
  border-color: #a5b4fc !important;
  box-shadow: 0 4px 12px rgba(165,180,252,0.15) !important;
}
[data-theme="dark"] .az-ai.az-ai-active {
  background: rgba(165,180,252,0.15) !important;
  border-color: #a5b4fc !important;
  color: #a5b4fc !important;
  box-shadow: 0 0 0 3px rgba(165,180,252,0.25) !important;
}
[data-theme="dark"] .az-ai strong {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .az-ai.az-ai-active strong {
  color: #a5b4fc !important;
}
[data-theme="dark"] .az-ai span {
  color: #94a3b8 !important;
}
[data-theme="dark"] .az-ai.az-ai-active span {
  color: #a5b4fc !important;
}
[data-theme="dark"] .az-ai em {
  color: #a5b4fc !important;
}
[data-theme="dark"] .az-ai.az-ai-active em {
  color: #a5b4fc !important;
}

