:root {
  --bg-main: #060911;
  --bg-surface: #0d1322;
  --bg-elevated: #131c31;
  --bg-glass: rgba(13, 19, 34, 0.88);
  --border-subtle: #1e293b;
  --border-strong: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.08), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.08), transparent 40%);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

/* Executive Header */
.exec-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.exec-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #059669, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: -0.03em;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-title .slash {
  color: var(--accent-emerald);
  margin: 0 3px;
}

.brand-badge {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation Tabs */
.exec-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.nav-tab-btn {
  background: rgba(19, 28, 49, 0.75);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.55rem 0.95rem;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.nav-tab-btn:hover {
  border-color: #475569;
  color: #ffffff;
  background: var(--bg-elevated);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(37, 99, 235, 0.22));
  color: #ffffff;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.2);
}

.tab-count {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
}

/* Client Mandant Filter Bar */
.mandant-bar {
  background: rgba(13, 19, 34, 0.65);
  border-bottom: 1px solid var(--border-subtle);
}

.mandant-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.mandant-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.mandant-btn {
  background: #0f172a;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mandant-btn:hover {
  color: #ffffff;
  border-color: #475569;
}

.mandant-btn.active {
  background: #10b981;
  color: #04130d;
  border-color: #10b981;
  font-weight: 800;
}

/* Layout Container */
.main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Cards & Grid */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
  gap: 1.35rem;
}

@media (max-width: 720px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

.agency-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}

.noindex-alert {
  background: rgba(244, 63, 94, 0.16);
  border: 2px solid #f43f5e;
  color: #fecdd3;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.ok-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.tech-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.tech-cell {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.tech-cell-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.tech-cell-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 9px;
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-emerald {
  background: #059669;
  color: #ffffff;
  border-color: #10b981;
}

.btn-emerald:hover {
  background: #10b981;
  color: #02140c;
}

.btn-blue {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
}

.btn-blue:hover {
  background: #3b82f6;
}

.btn-purple {
  background: #7c3aed;
  color: #ffffff;
  border-color: #8b5cf6;
}

.btn-subtle {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border-color: #334155;
}

textarea.agency-textarea {
  width: 100%;
  background: #070b14;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.86rem;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
}
