/* ClaudeGuard — cybersecurity theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.3);
  --red: #ff3b5c;
  --red-dim: rgba(255, 59, 92, 0.15);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.15);
  --yellow: #ffd000;
  --yellow-dim: rgba(255, 208, 0, 0.15);
  --bg: #06080d;
  --bg-2: #0a0e17;
  --surface: #0f1420;
  --surface-2: #151c2c;
  --surface-3: #1a2236;
  --text: #e8ecf4;
  --text-muted: #7a8599;
  --border: #1e2a3a;
  --border-light: #2a3a50;
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #66f0ff; }

/* ---- Grid background ---- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 229, 255, 0.06), transparent 70%);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #06080d;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}
.btn-primary:hover {
  background: #33ecff;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
  color: #06080d;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 1rem;
}

/* ---- Beta banner ---- */
.beta-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.6rem 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}
.beta-banner a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.5rem;
}
.beta-banner a:hover {
  text-decoration: underline;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 7rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .accent-red { color: var(--red); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Setup / Terminal ---- */
.setup-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.setup-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.setup-section .sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #ffbd2e; }
.terminal-dot.g { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-muted);
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: var(--text); }
.terminal-body .comment { color: #3d4f65; }
.terminal-body .success { color: var(--green); }
.terminal-body .warn { color: var(--red); }
.terminal-body .output { color: var(--red); }
.terminal-body .dim { color: #3d4f65; }
.terminal-body .highlight { color: var(--yellow); }

/* ---- What it does / Value props ---- */
.value-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.value-section h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}
.value-section .sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  font-size: 1rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.04);
}
.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.value-icon.shield { background: var(--accent-dim); }
.value-icon.radar { background: var(--red-dim); }
.value-icon.cost { background: var(--green-dim); }
.value-icon.memory { background: var(--yellow-dim); }
.value-icon.audit { background: rgba(168, 85, 247, 0.15); }
.value-icon.team { background: rgba(59, 130, 246, 0.15); }
.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---- How it works (explainer) ---- */
.explainer {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.explainer-inner {
  max-width: 700px;
  margin: 0 auto;
}
.explainer h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}
.explainer-steps {
  position: relative;
  padding-left: 2.5rem;
}
.explainer-steps::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--red), var(--green));
  border-radius: 2px;
}
.explainer-step {
  position: relative;
  margin-bottom: 2.5rem;
}
.explainer-step:last-child { margin-bottom: 0; }
.explainer-step::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 8px var(--accent-glow);
}
.explainer-step:nth-child(3)::before { background: var(--yellow); box-shadow: 0 0 8px rgba(255, 208, 0, 0.3); }
.explainer-step:nth-child(4)::before { background: var(--red); box-shadow: 0 0 8px rgba(255, 59, 92, 0.3); }
.explainer-step:nth-child(5)::before { background: var(--green); box-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
.explainer-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.explainer-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Pricing ---- */
.pricing {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.pricing h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.price-tag {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.price-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ---- Data notice ---- */
.data-notice {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 640px;
  margin: 0 auto;
}
.data-notice h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.data-notice p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.data-notice strong {
  color: var(--text);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Forms ---- */
.form-page {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.form-page h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 800;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-card .btn { width: 100%; margin-top: 0.5rem; }
.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

/* ---- Dashboard Layout ---- */
.dashboard-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}
.sidebar-section {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}
.sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-link:hover { color: var(--text); background: var(--surface); }
.sidebar-link.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
}
.sidebar-link.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.sidebar-team {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.sidebar-org-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.invite-box-sidebar { margin-top: 0.5rem; }

/* Main content */
.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1100px;
}
.main-content h2 {
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* 6-column stat grid */
.stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-light); }
.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .stat-value-red { color: var(--red); }
.stat-card .stat-value-muted {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.stat-card .stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Panels */
.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.panel-full {
  margin-bottom: 1.5rem;
}
.panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* Risk distribution bars */
.risk-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.risk-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.risk-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  width: 60px;
  text-align: right;
  text-transform: uppercase;
}
.risk-bar-track {
  flex: 1;
  height: 20px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.risk-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 2px;
}
.risk-bar-fill.critical { background: var(--red); }
.risk-bar-fill.high { background: var(--yellow); }
.risk-bar-fill.medium { background: #f59e0b; }
.risk-bar-fill.low { background: var(--green); }
.risk-bar-fill.info { background: var(--surface-3); }
.risk-bar-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  width: 30px;
  color: var(--text-muted);
}

/* Service breakdown bars */
.service-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}
.service-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  width: 80px;
  text-align: right;
  color: var(--text-muted);
}
.service-bar-track {
  flex: 1;
  height: 16px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.service-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
  min-width: 2px;
}
.service-bar-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 30px;
}

/* Attention list */
.attention-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.attention-item:last-child { border-bottom: none; }
.attention-icon {
  font-size: 0.7rem;
  margin-top: 0.15rem;
}
.attention-text { color: var(--text-muted); flex: 1; }
.attention-text strong { color: var(--text); font-weight: 600; }

/* Invite code */
.invite-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: var(--green);
  border: 1px solid var(--border);
  display: inline-block;
  user-select: all;
}

/* Assessment list */
.assessment-list { list-style: none; }
.assessment-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s;
}
.assessment-item:hover { border-color: var(--border-light); }
.risk-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.risk-CRITICAL { background: var(--red); color: white; }
.risk-HIGH { background: var(--yellow); color: #000; }
.risk-MEDIUM { background: #f59e0b; color: #000; }
.risk-LOW { background: var(--green); color: #000; }
.risk-INFO { background: var(--surface-3); color: var(--text-muted); }
.assessment-detail { flex: 1; }
.assessment-detail .command {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Attention user attribution */
.attention-user {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ---- Architecture Map / Resources page ---- */
.arch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.arch-account-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.arch-account-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.arch-provider-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.arch-provider-badge.aws { background: var(--yellow-dim); color: var(--yellow); }
.arch-provider-badge.gcp { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.arch-account-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.arch-account-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.arch-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
}
.arch-service-card {
  background: var(--surface);
  padding: 1rem 1.25rem;
}
.arch-service-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.arch-service-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.arch-resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.arch-resource-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.25rem 0;
}
.arch-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.arch-status-dot.active { background: var(--green); box-shadow: 0 0 6px rgba(0, 255, 136, 0.4); }
.arch-status-dot.inactive { background: var(--text-muted); opacity: 0.5; }
.arch-resource-name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.arch-resource-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---- Settings page ---- */
.plan-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 999px;
}
.settings-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.settings-panel h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.settings-panel p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.members-table {
  width: 100%;
  border-collapse: collapse;
}
.members-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.members-table td {
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.members-table tr:last-child td { border-bottom: none; }
.admin-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  text-transform: uppercase;
}

/* ---- Anomalies page ---- */
.anomaly-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.anomaly-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.anomaly-card:hover { border-color: var(--border-light); }
.anomaly-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.anomaly-type-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.anomaly-type-idle { background: var(--red-dim); color: var(--red); }
.anomaly-type-orphaned { background: var(--yellow-dim); color: var(--yellow); }
.anomaly-type-untagged { background: var(--surface-3); color: var(--text-muted); }
.anomaly-cost {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
}
.anomaly-card-body {
  padding: 1rem 1.25rem;
}
.anomaly-resource-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.anomaly-arn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  word-break: break-all;
}
.anomaly-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.anomaly-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.anomaly-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .service-bars { grid-template-columns: 1fr; }
  .anomaly-summary { grid-template-columns: repeat(3, 1fr); }
  .arch-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .value-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .dashboard-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    overflow-x: auto;
  }
  .sidebar-section { display: flex; gap: 0.5rem; margin-bottom: 0; padding: 0; }
  .sidebar-team { display: none; }
  .main-content { padding: 1.5rem; }
  .stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .panel-row { grid-template-columns: 1fr; }
  .anomaly-summary { grid-template-columns: repeat(2, 1fr); }
  .arch-stats { grid-template-columns: repeat(2, 1fr); }
  .arch-service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav { padding: 0.9rem 1rem; }
}
