:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --faint: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --brand: #6ee7ff;
  --brand-2: #8b5cf6;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 320px),
    var(--bg);
  background-attachment: fixed, fixed;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.70);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.26), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text {
  font-weight: 650;
  letter-spacing: 0.01em;
}

.top-nav {
  display: flex;
  gap: 14px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.main {
  padding: 34px 0 56px;
}

.hero {
  padding: 18px 0 18px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filters {
  margin-top: 18px;
  padding: 18px;
}

.filters-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.chipgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 32, 0.65);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
}

.chip input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

.chip-clear {
  border-style: dashed;
  color: var(--muted);
}

.chip-clear:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 32, 0.65);
}

.checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 13px;
}

.field-full {
  grid-column: 1 / -1;
}

select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 32, 0.65);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

select:focus {
  border-color: rgba(110, 231, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.10);
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  color: #07111f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.results {
  margin-top: 18px;
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.results-header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.results-meta {
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.auditor {
  padding: 18px;
}

.auditor-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.auditor-name {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.auditor-region {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.auditor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 12px;
}

.badge-preferred {
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.18), rgba(34, 197, 94, 0.16));
  border-color: rgba(110, 231, 255, 0.30);
}

.auditor-desc {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auditor-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.link:hover { text-decoration: underline; }

.empty {
  padding: 18px;
}

.empty h3 {
  margin: 0;
  font-size: 16px;
}

.empty p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.55);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .filters-form { grid-template-columns: 1fr 1fr; }
  .actions { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 0; }
}
