/* Automated Dating — shared brand system (matches automated.dating) */
@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 {
  --au-bg: #000000;
  --au-grid-line: rgba(255, 255, 255, 0.025);
  --au-text: #ffffff;
  --au-muted: #a1a1aa;
  --au-faint: #71717a;
  --au-border: rgba(255, 255, 255, 0.08);
  --au-border-strong: rgba(255, 255, 255, 0.16);
  --au-card: rgba(255, 255, 255, 0.025);

  --au-blue: #60a5fa;
  --au-purple: #a78bfa;
  --au-fuchsia: #c084fc;
  --au-teal: #5eead4;

  --au-grad: linear-gradient(90deg, #60a5fa 0%, #a78bfa 55%, #c084fc 100%);
  --au-glow: 0 0 20px rgba(167, 139, 250, 0.25);
  --au-glow-strong: 0 0 28px rgba(167, 139, 250, 0.40);

  --au-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --au-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* Black background with the subtle 60px grid from the main site */
.au-grid-bg {
  background-color: var(--au-bg);
  background-image:
    linear-gradient(var(--au-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--au-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}

/* ── Top navigation bar ── */
.au-topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--au-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.au-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.au-logo {
  font-family: var(--au-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--au-text);
  text-decoration: none;
  white-space: nowrap;
}
.au-logo .g {
  background: var(--au-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.au-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--au-purple);
  background: rgba(167, 139, 250, 0.10);
  border: 1px solid rgba(167, 139, 250, 0.30);
}

/* Primary product nav (Admin / Sales / Fulfillment) */
.au-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.au-nav a {
  font-family: var(--au-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--au-muted);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.au-nav a:hover { color: var(--au-text); background: rgba(255, 255, 255, 0.05); }
.au-nav a.active {
  color: var(--au-text);
  border-color: var(--au-border-strong);
  background: rgba(255, 255, 255, 0.04);
}
.au-nav a.active::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--au-grad);
  vertical-align: middle;
}

/* Links whose destination isn't wired up yet */
.au-nav a[data-au-soon]::after {
  content: "soon";
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--au-teal);
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.30);
  vertical-align: middle;
}

.au-spacer { flex: 1; }
.au-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Buttons ── */
.au-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--au-font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--au-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--au-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.au-btn:hover { color: var(--au-text); border-color: var(--au-border-strong); background: rgba(255, 255, 255, 0.06); }

.au-btn svg { width: 15px; height: 15px; }

.au-btn-primary {
  background: var(--au-grad);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--au-glow);
}
.au-btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--au-glow-strong);
  border-color: rgba(255, 255, 255, 0.20);
}

.au-btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.au-btn-primary:hover .arrow { transform: translateX(3px); }

.au-btn-danger { color: #fda4af; }
.au-btn-danger:hover { color: #fb7185; border-color: rgba(244, 63, 94, 0.45); background: rgba(244, 63, 94, 0.10); }

@media (max-width: 720px) {
  .au-topnav { gap: 12px; padding: 10px 16px; }
  .au-nav a { padding: 6px 10px; font-size: 12px; }
}

/* ───────────────────────────────────────────────
   Studio aesthetic — shared pieces inspired by the
   reference mockup, rendered in the dark brand.
   ─────────────────────────────────────────────── */

/* Soft rounded surface panel */
.au-panel {
  background: var(--au-card);
  border: 1px solid var(--au-border);
  border-radius: 16px;
}

/* Small uppercase section label */
.au-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--au-faint);
}

/* Connection / live status pill (monospace, like the mockup's LIVE · 60 FPS) */
.au-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--au-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--au-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--au-border);
  white-space: nowrap;
}
.au-status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--au-faint);
  flex-shrink: 0;
}
.au-status-pill.live {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.10);
}
.au-status-pill.live .dot {
  background: #fb7185;
  box-shadow: 0 0 8px #fb7185;
  animation: auPulse 1.6s ease infinite;
}
.au-status-pill.ok {
  color: var(--au-teal);
  border-color: rgba(94, 234, 212, 0.30);
  background: rgba(94, 234, 212, 0.10);
}
.au-status-pill.ok .dot {
  background: var(--au-teal);
  box-shadow: 0 0 8px var(--au-teal);
}
@keyframes auPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Logical grouping of pill buttons in a toolbar */
.au-ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.au-ctrl-group + .au-ctrl-group {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--au-border);
}
