/* ============================================================
   KairoSEO AI — shared styles
   Theme matched to the Luminary template: dark editorial base,
   Montserrat, glass panels, pill buttons, subtle grain overlay.
   ============================================================ */

:root {
  --base-deep: #0f1115;
  --base-mid: #161a20;
  --base-soft: #1c2128;
  --slate-warm: #6b7280;
  --slate-light: #9ca3af;
  --graphite: #2a2e35;
  --graphite-soft: #3d424a;
  --ivory: #e5e7eb;
  --ivory-muted: #c9cdd4;
  --silver: #b0b8c4;
  --panel-bg: rgba(22, 26, 32, 0.55);
  --panel-border: rgba(156, 163, 175, 0.08);
  --signal-good: #7fbf9e;
  --signal-warn: #d9b36b;
  --signal-critical: #d97d7d;
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0f1115;
  color: var(--ivory);
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #0f1115 0%, #161a20 35%, #1c2128 70%, #0d0f13 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  mix-blend-mode: overlay;
}

.content {
  position: relative;
  z-index: 10;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  transition: background 0.7s var(--ease-silk), padding 0.7s var(--ease-silk);
}
.navbar.scrolled {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 40px;
}
.navbar-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo span {
  font-weight: 300;
  color: var(--slate-warm);
}
.navbar-beta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--base-deep);
  background: var(--signal-warn);
  padding: 3px 8px;
  border-radius: 100px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--silver), var(--slate-light));
  color: var(--base-deep);
  border: none;
  cursor: pointer;
  transition: transform 0.6s var(--ease-silk), box-shadow 0.6s var(--ease-silk);
  font-family: inherit;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(176, 184, 196, 0.15);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary.small {
  padding: 10px 24px;
  font-size: 10px;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(156, 163, 175, 0.25);
  cursor: pointer;
  transition: border-color 0.6s var(--ease-silk), color 0.6s var(--ease-silk);
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: var(--silver);
  color: #fff;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

/* --- Glass panel --- */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
}

/* --- Hero --- */
.hero {
  padding: 160px 40px 112px;
  max-width: 1100px;
  margin: 0 auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-good);
}
.badge-text {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--slate-light);
}
.hero-sub {
  margin-top: 32px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ivory-muted);
}

/* --- Audit form --- */
.audit-form-wrap {
  margin-top: 48px;
  max-width: 560px;
  scroll-margin-top: 88px;
}
.audit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
@media (min-width: 640px) {
  .audit-form {
    flex-direction: row;
  }
}
.audit-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ivory);
  font-family: inherit;
}
.audit-form input::placeholder {
  color: var(--slate-warm);
}
.audit-form input:disabled {
  opacity: 0.5;
}
.form-error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--signal-critical);
}
.form-hint {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate-warm);
}

/* --- Stats row --- */
.stats-row {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 480px;
}
.stat-value {
  font-size: 28px;
  font-weight: 300;
}
.stat-label {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--slate-warm);
}

/* --- How it works --- */
.section {
  padding: 96px 40px;
  border-top: 1px solid var(--panel-border);
  scroll-margin-top: 88px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-warm);
  margin: 0 0 16px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step-card {
  padding: 24px;
}
.step-num {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--slate-warm);
}
.step-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 500;
}
.step-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ivory-muted);
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.pricing-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card.featured {
  border: 1px solid var(--signal-warn);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--signal-warn);
  color: var(--base-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.pricing-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.pricing-price {
  font-size: 34px;
  font-weight: 700;
  color: var(--ivory);
}
.pricing-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate-warm);
  text-transform: none;
  letter-spacing: normal;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ivory-muted);
  flex-grow: 1;
}
.pricing-card ul li {
  padding-left: 20px;
  position: relative;
}
.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--signal-good);
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.blog-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s var(--ease-silk);
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-warm);
}
.blog-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.blog-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ivory-muted);
}
.blog-card .blog-read {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ivory);
}

/* --- Final CTA (base) --- */
.final-cta {
  text-align: center;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--panel-border);
  padding: 64px 40px 32px;
  margin-top: 96px;
  background: var(--base-deep, #0f1115);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-warm);
  margin: 0 0 18px;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ivory-muted);
  margin: 0 0 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ivory-muted);
  transition: color 0.3s var(--ease-silk);
}
.footer-links a:hover {
  color: var(--ivory);
}
.footer-contact-email {
  font-size: 13px;
  color: var(--ivory);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  transition: background 0.3s var(--ease-silk), transform 0.3s var(--ease-silk);
}
.footer-socials a:hover {
  background: var(--graphite-soft);
  transform: translateY(-2px);
}
.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: var(--ivory);
}
.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-warm);
}
.footer-bottom span:last-child {
  text-transform: none;
  letter-spacing: normal;
  color: rgba(107, 114, 128, 0.7);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Audit page --- */
.audit-page {
  padding: 144px 24px 96px;
  max-width: 720px;
  margin: 0 auto;
}
.audit-page.wide {
  max-width: 900px;
}
.audit-id-label {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-warm);
  margin: 0 0 8px;
}
.audit-id-value {
  font-size: 15px;
  color: var(--ivory);
  margin: 0 0 32px;
}

/* --- Progress tracker --- */
.progress-panel {
  padding: 32px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--graphite-soft);
  flex-shrink: 0;
  transition: background 0.5s;
}
.progress-dot.done {
  background: var(--signal-good);
}
.progress-dot.active {
  background: var(--slate-light);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.progress-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--slate-warm);
  transition: color 0.5s;
}
.progress-label.active-text,
.progress-label.done-text {
  color: var(--ivory);
}
.progress-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--slate-warm);
  font-variant-numeric: tabular-nums;
}
.cancel-link {
  margin-top: 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate-warm);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cancel-link:hover {
  color: var(--ivory);
}

/* --- Report --- */
.report-section {
  margin-bottom: 64px;
}
.report-section:last-child {
  margin-bottom: 0;
}
.report-section h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 24px;
}
.overview-url {
  font-size: 13px;
  color: var(--slate-warm);
  word-break: break-all;
}
.overview-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 640px) {
  .overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.overview-stat-value {
  font-size: 20px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.overview-stat-label {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--slate-warm);
}

.score-panel {
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.score-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.score-gauge-num {
  margin-top: -110px;
  font-size: 36px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.score-gauge-max {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-warm);
  margin-top: 4px;
}
.category-scores {
  flex: 1;
  min-width: 240px;
}
.category-row {
  margin-bottom: 20px;
}
.category-row:last-child {
  margin-bottom: 0;
}
.category-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}
.category-row-top .label {
  color: var(--ivory-muted);
}
.category-row-top .value {
  color: var(--slate-warm);
  font-variant-numeric: tabular-nums;
}
.category-bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--graphite);
  overflow: hidden;
}
.category-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--silver), var(--slate-light));
  transition: width 0.7s var(--ease-silk);
}

/* --- Issues --- */
.severity-group {
  margin-bottom: 24px;
}
.severity-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.severity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.severity-group-header h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  font-weight: 500;
}
.issue-card {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.issue-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  color: inherit;
}
.issue-desc {
  font-size: 13px;
  color: var(--ivory);
  margin: 0;
}
.issue-page {
  font-size: 11px;
  color: var(--slate-warm);
  margin: 4px 0 0;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.issue-toggle {
  font-size: 11px;
  color: var(--slate-warm);
  flex-shrink: 0;
}
.issue-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--panel-border);
  display: none;
}
.issue-body.open {
  display: block;
  padding-top: 8px;
}
.issue-body-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-warm);
  margin: 8px 0 4px;
}
.issue-body-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ivory-muted);
  margin: 0;
}
.no-issues {
  font-size: 13px;
  color: var(--ivory-muted);
}

/* --- Strengths (report page) --- */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
}
.strength-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: var(--signal-good);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.strength-message {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ivory);
}
.strength-category {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-warm);
}

.status-message {
  text-align: center;
}
.status-message p {
  font-size: 15px;
}
.status-message .error-text {
  color: var(--signal-critical);
  font-size: 13px;
}

/* --- Beta notice section --- */
.beta-notice {
  padding: 24px 28px;
}
.beta-notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.beta-notice-item h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ivory);
}
.beta-notice-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ivory-muted);
}

/* --- Feature grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 24px;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
}
.feature-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ivory-muted);
}

/* --- FAQ accordion (reuses issue-card pattern) --- */
.faq-item {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  color: var(--ivory);
  font-size: 14px;
}
.faq-answer {
  padding: 0 22px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ivory-muted);
  display: none;
}
.faq-answer.open {
  display: block;
}
.faq-icon {
  font-size: 18px;
  color: var(--slate-warm);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-silk);
}
.faq-icon.open {
  transform: rotate(45deg);
}

/* --- Final CTA (text styling, layered on .section) --- */
.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  margin: 0 0 16px;
}
.final-cta p {
  color: var(--ivory-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 14px;
}

/* --- Admin panel --- */
.admin-login-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 160px 24px 96px;
}
.admin-login-panel {
  padding: 32px;
}
.admin-login-panel label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-warm);
  margin-bottom: 8px;
}
.admin-login-panel input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  margin-bottom: 16px;
}
.admin-login-panel input:focus {
  border-color: var(--silver);
}
.admin-shell {
  padding: 120px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.admin-logout {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-warm);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--panel-border);
}
.admin-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-warm);
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.admin-tab.active {
  color: var(--ivory);
  border-bottom-color: var(--silver);
}
.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.admin-health-card {
  padding: 20px;
}
.admin-health-value {
  font-size: 24px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.admin-health-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--slate-warm);
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-toolbar select,
.admin-toolbar input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-warm);
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}
table.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border);
  color: var(--ivory-muted);
  vertical-align: top;
}
table.admin-table tr:last-child td {
  border-bottom: none;
}
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-pill.completed { background: rgba(127,191,158,0.15); color: var(--signal-good); }
.status-pill.failed { background: rgba(217,125,125,0.15); color: var(--signal-critical); }
.status-pill.cancelled { background: rgba(107,114,128,0.2); color: var(--slate-light); }
.status-pill.running { background: rgba(217,179,107,0.15); color: var(--signal-warn); }
.admin-row-btn {
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--ivory-muted);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  margin-right: 6px;
}
.admin-row-btn:hover {
  border-color: var(--silver);
  color: var(--ivory);
}
.admin-empty {
  padding: 40px;
  text-align: center;
  color: var(--slate-warm);
  font-size: 13px;
}
.admin-loading {
  padding: 24px;
  text-align: center;
  color: var(--slate-warm);
  font-size: 12px;
}

/* --- Footer branding --- */
.footer-brand {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(107, 114, 128, 0.6);
}

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

/* --- Chat widget: typing indicator + message fade-in --- */
.chat-bubble-in {
  animation: chatBubbleIn 0.25s ease-out;
}
@keyframes chatBubbleIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-typing-dots {
  display: inline-flex;
  gap: 3px;
}
.chat-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate-warm);
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
