/* Ataiva Design System — Light mode, dark hero/nav/footer, magenta accent */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-dark: #0b0b1e;
  --bg-dark-2: #131330;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #a60091;
  --accent-hover: #8a0079;
  --accent-light: rgba(166,0,145,.08);
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius: .625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
  --shadow-glow: 0 0 40px rgba(166,0,145,.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.brand-row { transition: background .15s, box-shadow .15s; cursor: pointer; color: inherit; }
.brand-row:hover { background: #f1f5f9 !important; box-shadow: 0 1px 3px rgba(0,0,0,.06); color: inherit; }

/* ── Global polish ── */
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
input, textarea, select { font-family: var(--font); }
.form-control, .form-select { border-radius: var(--radius); border-color: var(--border); transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-control-lg { padding: .75rem 1rem; font-size: 1rem; }
.btn { border-radius: var(--radius); font-weight: 600; transition: all var(--transition); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-light); }
.badge { font-weight: 600; letter-spacing: .01em; }
.alert { border-radius: var(--radius-lg); border: none; }
code { background: var(--bg-subtle); padding: .15em .4em; border-radius: 4px; font-size: .875em; color: var(--accent); }
pre code { background: none; padding: 0; }
hr { border-color: var(--border); opacity: 1; }

/* ── Nav ── */
.navbar-ataiva { background: rgba(11,11,30,.95); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(255,255,255,.06); padding: .6rem 0; transition: background .3s; }
.navbar-ataiva .navbar-brand { color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.navbar-ataiva .nav-link { color: rgba(255,255,255,.65); font-size: .875rem; font-weight: 500; transition: color .15s; padding: .5rem .75rem; }
.navbar-ataiva .nav-link:hover { color: #fff; }
.navbar-ataiva .navbar-toggler-icon { filter: invert(1); }
.navbar-ataiva .dropdown-menu { border-radius: var(--radius-lg); padding: .5rem; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.navbar-ataiva .dropdown-item { border-radius: var(--radius); padding: .5rem .75rem; font-size: .85rem; transition: background .15s; }
.navbar-ataiva .dropdown-item:hover { background: rgba(99,102,241,.15); }
.navbar-ataiva .dropdown-divider { border-color: rgba(255,255,255,.08); margin: .35rem 0; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.notification-bell { color: rgba(255,255,255,.6); position: relative; transition: color .15s; }
.notification-bell:hover { color: #fff; }
.notification-bell .badge { position: absolute; top: -4px; right: -6px; font-size: .6rem; }

/* ── Buttons ── */
.btn-accent { background: var(--accent); color: #fff; border: none; padding: .65rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: all .2s; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-accent-lg { padding: .85rem 2.25rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2); padding: .65rem 1.75rem; border-radius: var(--radius); font-weight: 500; transition: all .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.12); padding: .4rem 1.25rem; border-radius: var(--radius); font-weight: 500; font-size: .85rem; transition: all .15s; }
.btn-glass:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Hero (dark) ── */
.hero { background: var(--bg-dark); color: #fff; padding: 7rem 0 5.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 40%, rgba(166,0,145,.15) 0%, transparent 55%), radial-gradient(ellipse at 75% 20%, rgba(16,185,129,.08) 0%, transparent 50%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.hero p.lead { font-size: 1.15rem; opacity: .65; max-width: 520px; line-height: 1.65; }
.hero-score { width: 180px; height: 180px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--score,87) * 3.6deg), rgba(255,255,255,.06) 0); display: flex; align-items: center; justify-content: center; margin: 0 auto; position: relative; }
.hero-score::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg-dark); }
.hero-score .val { position: relative; font-size: 3rem; font-weight: 800; }
.hero-score .lbl { position: relative; font-size: .75rem; opacity: .5; display: block; }

/* ── Sections ── */
section { padding: 5rem 0; }
.section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.2; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* ── Cards ── */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-hover { transition: transform var(--transition), box-shadow var(--transition); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.score-card { text-align: center; padding: 1.25rem; }
.score-value { font-size: 2.25rem; font-weight: 800; color: var(--accent); }
.score-label { color: var(--text-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-card { background: var(--bg-subtle); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; border: 1px solid var(--border); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

/* ── Logo bar ── */
.logo-bar { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.logo-bar .logos { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.logo-bar .logo-placeholder { font-size: .95rem; font-weight: 700; color: var(--text-muted); opacity: .35; letter-spacing: .01em; }

/* ── Stats ── */
.stat-block { text-align: center; padding: 1.5rem 1rem; }
.stat-block .stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }

/* ── Testimonials ── */
.testimonial-card { padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg); }
.testimonial-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--green)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.testimonial-card .stars { color: var(--yellow); font-size: .8rem; letter-spacing: 1px; }

/* ── Steps ── */
.step-number { width: 44px; height: 44px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; margin: 0 auto 1rem; }

/* ── Features ── */
.feature-icon { width: 44px; height: 44px; background: var(--accent-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: .75rem; }

/* ── Trust badges ── */
.trust-badge { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); transition: box-shadow .2s; }
.trust-badge:hover { box-shadow: var(--shadow); }
.trust-badge .icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

/* ── Comparison table ── */
.comparison-table { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); font-size: .85rem; }
.comparison-table th, .comparison-table td { text-align: center; vertical-align: middle; padding: .65rem .75rem; }
.comparison-table thead th { background: var(--bg-dark); color: #fff; font-weight: 600; font-size: .8rem; }
.comparison-table thead th:first-child { text-align: left; }
.comparison-table tbody td:first-child { text-align: left; font-weight: 500; }
.comparison-table .highlight-col { background: var(--accent-light); }
.comparison-table thead th.highlight-col { background: var(--accent); color: #fff; }
.comparison-table tbody tr { border-bottom: 1px solid var(--border); }

/* ── Pricing ── */
.pricing-toggle { display: inline-flex; background: var(--bg-subtle); border-radius: 2rem; padding: 3px; border: 1px solid var(--border); }
.pricing-toggle button { border: none; background: none; padding: .4rem 1.15rem; border-radius: 2rem; font-size: .85rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all .15s; }
.pricing-toggle button.active { background: var(--accent); color: #fff; }
.pricing-card { border-radius: var(--radius-xl); padding: 2.25rem 1.75rem; text-align: center; position: relative; background: var(--bg-subtle); }
.pricing-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-glow); background: #fff; }
.pricing-card .price { font-size: 2.75rem; font-weight: 800; letter-spacing: -.02em; }
.pricing-card .price span:last-child { font-size: .85rem; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; text-align: left; }
.pricing-card ul li { padding: .45rem 0; border-bottom: 1px solid var(--bg-subtle); font-size: .88rem; color: var(--text); }
.pricing-card ul li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: .5rem; }

/* ── FAQ ── */
details { border-bottom: 1px solid var(--border); }
details summary { padding: 1.15rem 0; font-weight: 600; cursor: pointer; list-style: none; font-size: .95rem; color: var(--text); }
details summary::after { content: "+"; float: right; font-size: 1.2rem; color: var(--text-muted); transition: transform .2s; }
details[open] summary::after { content: "−"; color: var(--accent); }
details p { padding: 0 0 1.15rem; color: var(--text-muted); line-height: 1.7; font-size: .95rem; }

/* ── CTA (dark) ── */
.cta-section { background: var(--bg-dark); color: #fff; padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(166,0,145,.1) 0%, transparent 65%); pointer-events: none; }
.cta-section .container { position: relative; z-index: 1; }
.cta-section input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.cta-section input::placeholder { color: rgba(255,255,255,.4); }

/* ── Footer (dark) ── */
.footer-dark { background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.06); }
.footer-dark a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.footer-dark a:hover { color: #fff; }
.footer-dark hr { border-color: rgba(255,255,255,.08); }

/* ── Auth ── */
.auth-container { max-width: 420px; margin: 4rem auto; }

/* ── Blog ── */
.blog-card img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; height: 200px; object-fit: cover; }
.blog-meta { font-size: .8rem; color: var(--text-muted); }
article { max-width: 720px; margin: 0 auto; }
article img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-content h2 { margin-top: 2rem; font-size: 1.4rem; }
.post-content p { line-height: 1.8; color: var(--text-muted); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.post-content th, .post-content td { padding: .6rem .75rem; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--bg-subtle); font-weight: 600; }

/* ── Dashboard ── */
.brand-card { border-left: 3px solid var(--accent); }
.period-btn { font-size: .8rem; padding: .3rem .7rem; border-radius: 2rem; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); cursor: pointer; transition: all .15s; }
.period-btn.active, .period-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.activity-item { padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.activity-item:last-child { border-bottom: none; }
.quick-action { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: var(--radius); border: 1px solid var(--border); font-size: .85rem; font-weight: 500; color: var(--text); text-decoration: none; transition: all .15s; }
.quick-action:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.empty-state { text-align: center; padding: 3.5rem 2rem; }
.empty-state .icon { font-size: 2.5rem; margin-bottom: .75rem; }
.onboard-step { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem; border-radius: var(--radius); border: 1px solid var(--border); }
.onboard-step .num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }

/* ── Brand detail tabs — see polished version below ── */

/* ── Circular progress ── */
.circle-progress { width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--color, var(--accent)) calc(var(--pct,0) * 3.6deg), var(--border) 0); display: flex; align-items: center; justify-content: center; margin: 0 auto; position: relative; }
.circle-progress::before { content: ''; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); position: absolute; }
.circle-progress .val { position: relative; font-size: 1rem; font-weight: 700; }

/* ── Sentiment badges ── */
.sentiment-positive { background: #d1fae5; color: #065f46; font-size: .7rem; padding: .2rem .5rem; border-radius: 2rem; font-weight: 600; }
.sentiment-negative { background: #fee2e2; color: #991b1b; font-size: .7rem; padding: .2rem .5rem; border-radius: 2rem; font-weight: 600; }
.sentiment-neutral { background: #f1f5f9; color: #475569; font-size: .7rem; padding: .2rem .5rem; border-radius: 2rem; font-weight: 600; }
.sentiment-mixed { background: #fef3c7; color: #92400e; font-size: .7rem; padding: .2rem .5rem; border-radius: 2rem; font-weight: 600; }

/* ── Data tables ── */
.table-results th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.badge-yes { background: var(--green); color: #fff; }
.badge-no { background: var(--red); color: #fff; }

/* ── Fade-in on scroll ── */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 3.5rem; }
  .hero h1 { font-size: 2rem; }
  section { padding: 3rem 0; }
  .pricing-card { padding: 1.75rem 1.25rem; }
  .tab-nav { gap: 0; }
  .logo-bar .logos { gap: 1.25rem; }
  .trust-badge { padding: .75rem; }
  .comparison-table { font-size: .75rem; }
  .tool-hero h1 { font-size: 1.5rem !important; }
  .onboarding-card { padding: 2rem 1.25rem !important; }
}

/* ── Tool pages ── */
.tool-hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%); color: #fff; padding: 3.5rem 0 3rem; margin-top: -1px; position: relative; overflow: hidden; }
.tool-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(166,0,145,.1) 0%, transparent 60%); pointer-events: none; }
.tool-hero .container { position: relative; z-index: 1; }
.tool-hero h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.tool-hero p { color: rgba(255,255,255,.55); max-width: 560px; }
.tool-body { padding: 2.5rem 0 4rem; max-width: 720px; margin: 0 auto; }
.tool-body .card { border: 1px solid var(--border); }
.tool-result { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1rem 0; }
.tool-result.pass { border-left-color: var(--green); }
.tool-result.fail { border-left-color: var(--red); }
.tool-result.warn { border-left-color: var(--yellow); }
.tool-score { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 800; margin: 0 auto; }
.tool-score.good { background: rgba(16,185,129,.1); color: var(--green); border: 3px solid var(--green); }
.tool-score.ok { background: rgba(245,158,11,.1); color: var(--yellow); border: 3px solid var(--yellow); }
.tool-score.bad { background: rgba(239,68,68,.1); color: var(--red); border: 3px solid var(--red); }

/* ── Onboarding ── */
.onboarding-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); }
.onboarding-progress { display: flex; justify-content: center; gap: 0; margin-bottom: 2rem; position: relative; }
.onboarding-progress::before { content: ''; position: absolute; top: 18px; left: 25%; right: 25%; height: 2px; background: var(--border); z-index: 0; }
.onboarding-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.onboarding-step .num { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; border: 2px solid var(--border); background: var(--bg); color: var(--text-muted); transition: all var(--transition); }
.onboarding-step.active .num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }
.onboarding-step.done .num { background: var(--green); color: #fff; border-color: var(--green); }
.onboarding-step .label { font-size: .7rem; font-weight: 600; color: var(--text-muted); margin-top: .35rem; text-transform: uppercase; letter-spacing: .05em; }
.onboarding-step.active .label { color: var(--accent); }
.category-card { cursor: pointer; transition: all var(--transition); border: 2px solid var(--border) !important; }
.category-card:hover { border-color: var(--accent) !important; background: var(--accent-light); }
.category-card.selected { border-color: var(--accent) !important; background: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-light); }

/* ── Brand tabs polish ── */
.tab-nav { display: flex; gap: .15rem; border-bottom: 2px solid var(--border); margin-bottom: 1.75rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav a { padding: .6rem .9rem; font-size: .82rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all .15s; position: relative; }
.tab-nav a:hover { color: var(--text); background: var(--accent-light); border-radius: var(--radius) var(--radius) 0 0; }
.tab-nav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ── Diff view ── */
.diff-card { border-left: 3px solid var(--accent); }
.diff-line-add { color: var(--green); background: rgba(16,185,129,.06); }
.diff-line-del { color: var(--red); background: rgba(239,68,68,.06); }
.diff-text { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: .8rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ── Notification dropdown ── */
#notifDropdown { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.1); }
#notifDropdown .dropdown-item { white-space: normal; line-height: 1.4; }

/* ── Page transitions ── */
.fade-in { animation: fadeIn .4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main > .container, main > .container-fluid { animation: fadeIn .3s ease-out; }

/* ── Hallucination cards ── */
.hallucination-card { border-left: 3px solid var(--yellow); }
.hallucination-card.confirmed { border-left-color: var(--red); }

/* ── Watchlist ── */
.watchlist-row { transition: background var(--transition); }
.watchlist-row:hover { background: var(--accent-light); }

/* ── Empty states ── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h2 { font-size: 1.15rem; font-weight: 700; }
.empty-state p { color: var(--text-muted); max-width: 400px; margin: .5rem auto 1.5rem; }

/* ── Skeleton loading ── */
.skeleton { background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Accessibility focus ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Table polish ── */
.table { --bs-table-bg: transparent; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }

/* Ensure text is visible on dark backgrounds */
[style*="bg-dark"], .bg-dark, .card[style*="bg-dark"], .footer-dark { color: #e2e8f0; }
[style*="bg-dark"] .text-muted, .bg-dark .text-muted, .footer-dark .text-muted { color: rgba(255,255,255,.5) !important; }
[style*="bg-dark"] h1, [style*="bg-dark"] h2, [style*="bg-dark"] h3,
.bg-dark h1, .bg-dark h2, .bg-dark h3,
[style*="bg-dark"] .h1, [style*="bg-dark"] .h2, [style*="bg-dark"] .h3 { color: #fff; }
[style*="bg-dark"] .small, .bg-dark .small { color: rgba(255,255,255,.6); }

/* ── Print ── */
@media print { .navbar-ataiva, .footer-dark, .btn, .tab-nav { display: none !important; } main { padding-top: 0 !important; } }
