/* bulletproof/assets/css/custom.css */
/* Shared visual system for BULLETPROOF */

:root {
  --bp-black: #0a0a0f;
  --bp-dark: #0d0d14;
  --bp-panel: #11111b;
  --bp-panel-2: #161625;
  --bp-gray: #1a1a2e;
  --bp-border: #1e1e30;
  --bp-border-strong: rgba(255, 255, 255, 0.14);
  --bp-text: #f5f7fb;
  --bp-muted: #a1a8bc;
  --bp-subtle: #69728a;
  --bp-cyan: #00f5ff;
  --bp-violet: #8b5cf6;
  --bp-red: #ff2d55;
  --bp-green: #00ff88;
  --bp-amber: #ffb800;
  --bp-orange: #ff6432;
  --bp-radius: 8px;
  --bp-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --bp-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 32%),
    linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%);
  color: var(--bp-text);
}

a,
button,
input,
textarea {
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
  color: #667085;
}

.neon-cyan {
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.75), 0 0 26px rgba(0, 245, 255, 0.35);
}

.neon-violet {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.7), 0 0 20px rgba(139, 92, 246, 0.25);
}

.neon-red {
  text-shadow: 0 0 10px rgba(255, 45, 85, 0.7), 0 0 20px rgba(255, 45, 85, 0.25);
}

.neon-green {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.7), 0 0 20px rgba(0, 255, 136, 0.25);
}

.neon-amber {
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.7), 0 0 20px rgba(255, 184, 0, 0.25);
}

.neon-border-cyan {
  border-color: var(--bp-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.18), inset 0 0 10px rgba(0, 245, 255, 0.08);
}

.neon-border-violet {
  border-color: var(--bp-violet);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.18), inset 0 0 10px rgba(139, 92, 246, 0.08);
}

.neon-border-red {
  border-color: var(--bp-red);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.18), inset 0 0 10px rgba(255, 45, 85, 0.08);
}

.bp-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.bp-shell-wide {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
}

.bp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bp-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.85), rgba(139, 92, 246, 0.4));
}

.bp-section {
  padding: 88px 0;
}

.bp-section-tight {
  padding: 64px 0;
}

.bp-section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.bp-kicker {
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.7;
}

.glass {
  background: linear-gradient(180deg, rgba(17, 17, 27, 0.82), rgba(13, 13, 20, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--bp-shadow-soft);
}

.glass-heavy {
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.92), rgba(10, 10, 15, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--bp-shadow);
}

.bp-card {
  border-radius: var(--bp-radius);
  overflow: hidden;
}

.bp-stat-card,
.bp-feature-card,
.bp-info-card,
.bp-action-card {
  border-radius: var(--bp-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(19, 19, 29, 0.9), rgba(13, 13, 20, 0.95));
  box-shadow: var(--bp-shadow-soft);
}

.bp-stat-card {
  padding: 22px;
}

.bp-feature-card,
.bp-info-card,
.bp-action-card {
  padding: 24px;
}

.bp-feature-card:hover,
.bp-action-card:hover,
.bp-info-card:hover {
  border-color: rgba(0, 245, 255, 0.22);
  transform: translateY(-1px);
}

.bp-icon-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.bp-btn-primary,
.bp-btn-secondary,
.bp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bp-btn-primary {
  border: 1px solid rgba(0, 245, 255, 0.24);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.95), rgba(124, 253, 255, 0.92));
  color: #071014;
  box-shadow: 0 16px 32px rgba(0, 245, 255, 0.18);
}

.bp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 245, 255, 0.24);
}

.bp-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--bp-text);
}

.bp-btn-secondary:hover,
.bp-btn-ghost:hover {
  border-color: rgba(0, 245, 255, 0.24);
  color: #fff;
  background: rgba(0, 245, 255, 0.06);
}

.bp-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--bp-muted);
  background: rgba(255, 255, 255, 0.02);
}

.bp-input,
.bp-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 17, 27, 0.88);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bp-input {
  min-height: 52px;
  padding: 0 16px;
  font-size: 14px;
}

.bp-textarea {
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.bp-input:focus,
.bp-textarea:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.08);
}

.bp-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bp-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bp-topbar-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bp-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bp-brand-note {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-subtle);
}

.bp-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bp-nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--bp-muted);
  font-size: 13px;
  font-weight: 600;
}

.bp-nav-link:hover,
.bp-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.bp-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.bp-orb {
  position: absolute;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.42;
}

.bp-orb-cyan {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.18), transparent 70%);
}

.bp-orb-violet {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%);
}

.bp-hero-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 72px;
}

.bp-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.bp-hero-title {
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.bp-hero-subtitle {
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--bp-muted);
}

.bp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.bp-proof-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bp-proof-item {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 27, 0.7);
}

.bp-proof-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.bp-spotlight-panel {
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 18, 28, 0.92), rgba(12, 12, 18, 0.98)),
    linear-gradient(135deg, rgba(0, 245, 255, 0.06), transparent);
}

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

.bp-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bp-inline-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--bp-muted);
}

.bp-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px);
  gap: 32px;
  align-items: stretch;
  width: min(1260px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 36px 0;
}

.bp-auth-aside,
.bp-auth-panel {
  border-radius: 12px;
}

.bp-auth-aside {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(16, 16, 26, 0.95), rgba(10, 10, 15, 0.98)),
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.1), transparent 35%);
}

.bp-auth-panel {
  padding: 36px;
}

.bp-auth-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.bp-auth-metric {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.bp-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.bp-page-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  font-weight: 800;
}

.bp-header-panel {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.bp-dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.bp-dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 13, 20, 0.97), rgba(11, 11, 17, 0.99)),
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.08), transparent 30%);
}

.bp-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.bp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--bp-muted);
  font-size: 14px;
  font-weight: 600;
}

.bp-sidebar-link:hover,
.bp-sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.bp-dashboard-main {
  padding: 28px;
}

.bp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
  gap: 22px;
  margin-bottom: 24px;
}

.bp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bp-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bp-history-table th,
.bp-history-table td {
  white-space: nowrap;
}

.bp-history-table td:first-child,
.bp-history-table th:first-child {
  white-space: normal;
}

.bp-app-main {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.bp-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 20px;
  margin-bottom: 24px;
}

.bp-progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
}

.bp-mini-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bp-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bp-metric-tile {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.bp-stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 18px;
  min-height: calc(100vh - 182px);
}

.bp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bp-toolbar button {
  border-radius: 8px;
}

.bp-toolbar .bp-tool-primary,
.bp-toolbar .bp-tool-secondary,
.bp-toolbar .bp-tool-accent,
.bp-toolbar .bp-tool-success {
  min-height: 40px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
}

.bp-tool-primary {
  color: var(--bp-violet);
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
}

.bp-tool-secondary {
  color: var(--bp-cyan);
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.06);
}

.bp-tool-accent {
  color: var(--bp-amber);
  border-color: rgba(255, 184, 0, 0.3);
  background: rgba(255, 184, 0, 0.06);
}

.bp-tool-success {
  color: var(--bp-green);
  border-color: rgba(0, 255, 136, 0.28);
  background: rgba(0, 255, 136, 0.06);
}

.bp-better-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.scanline {
  animation: scanline 8s linear infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 245, 255, 0.25); }
  50% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.6), 0 0 40px rgba(0, 245, 255, 0.22); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlowViolet {
  0%, 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.25); }
  50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.18); }
}

.pulse-glow-violet {
  animation: pulseGlowViolet 2s ease-in-out infinite;
}

@keyframes scoreReveal {
  from { stroke-dashoffset: 565; }
  to { stroke-dashoffset: var(--target-offset); }
}

.bp-tooltip {
  position: absolute;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(0, 245, 255, 0.27);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px;
  border-radius: 8px;
  max-width: 320px;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.13);
  font-size: 13px;
  line-height: 1.5;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #00f5ff;
  border-radius: 50%;
  animation: floatUp linear infinite;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.bp-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  animation: fadeIn 0.25s ease-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--bp-shadow-soft);
}

.bp-toast-success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.28);
  color: #00ff88;
}

.bp-toast-error {
  background: rgba(255, 45, 85, 0.1);
  border: 1px solid rgba(255, 45, 85, 0.28);
  color: #ff6886;
}

.bp-toast-info {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: #00f5ff;
}

.bp-toast-warning {
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.28);
  color: #ffb800;
}

mark.flag-critical {
  background: rgba(255, 45, 85, 0.25);
  border-bottom: 2px solid #ff2d55;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
  padding: 0 2px;
}

mark.flag-high {
  background: rgba(255, 100, 50, 0.2);
  border-bottom: 2px solid #ff6432;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
  padding: 0 2px;
}

mark.flag-medium {
  background: rgba(255, 184, 0, 0.15);
  border-bottom: 2px solid #ffb800;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
  padding: 0 2px;
}

mark.flag-low {
  background: rgba(255, 230, 0, 0.1);
  border-bottom: 2px solid #ffe600;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
  padding: 0 2px;
}

mark.flag-active {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12);
}

.consumer-review-shell {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.consumer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 4px;
}

.consumer-article-panel {
  min-height: 760px;
  overflow: hidden;
}

.consumer-article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #1e1e30;
  background: rgba(13, 13, 20, 0.86);
}

.consumer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
}

.consumer-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
}

.legend-dot.critical { background: #ff2d55; }
.legend-dot.high { background: #ff6432; }
.legend-dot.medium { background: #ffb800; }
.legend-dot.low { background: #ffe600; }

.consumer-article-reader {
  padding: 32px;
  color: #d7d9e2;
}

.consumer-article-reader .article-body {
  max-width: 78ch;
  font-size: 17px;
  line-height: 1.85;
}

.consumer-article-reader .article-paragraph {
  margin: 0 0 1.2em;
}

.consumer-empty-state {
  border: 1px solid rgba(30, 30, 48, 0.95);
  background: rgba(26, 26, 46, 0.32);
  color: #8f96a8;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 8px;
}

.flag-list-item {
  width: 100%;
  text-align: left;
  display: block;
  border: 1px solid rgba(30, 30, 48, 0.95);
  background: rgba(26, 26, 46, 0.42);
  padding: 12px;
  color: #d7d9e2;
  border-radius: 8px;
  transition: border-color 160ms ease, background 160ms ease;
}

.flag-list-item:hover,
.flag-list-item.active {
  border-color: rgba(0, 245, 255, 0.45);
  background: rgba(0, 245, 255, 0.06);
}

.flag-list-item.unmatched {
  border-style: dashed;
  opacity: 0.82;
}

.flag-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
}

.flag-pill.secondary {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.14);
}

.category-compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-compact-card {
  border: 1px solid rgba(30, 30, 48, 0.95);
  background: rgba(26, 26, 46, 0.32);
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: border-color 160ms ease, background 160ms ease;
}

.category-compact-card:hover {
  border-color: rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.04);
}

.step-line {
  background: linear-gradient(90deg, #00f5ff, #8b5cf6);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #1e1e30;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a40;
}

::selection {
  background: rgba(0, 245, 255, 0.2);
  color: #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 245, 255, 0.2);
  border-top-color: #00f5ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 1279px) {
  .bp-page-header,
  .bp-dashboard-grid,
  .bp-analysis-grid,
  .bp-editor-layout,
  .bp-better-grid,
  .bp-progress-grid {
    grid-template-columns: 1fr;
  }

  .bp-proof-grid,
  .bp-spotlight-grid,
  .bp-stats-grid,
  .bp-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .bp-dashboard-shell,
  .bp-auth-shell,
  .consumer-review-shell {
    grid-template-columns: 1fr;
  }

  .bp-dashboard-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .consumer-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .consumer-article-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .consumer-article-reader {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .bp-shell,
  .bp-shell-wide,
  .bp-topbar-inner,
  .bp-app-main {
    width: min(100% - 1rem, 100%);
  }

  .bp-topbar-inner {
    min-height: 64px;
  }

  .bp-nav-links {
    display: none;
  }

  .bp-hero-shell,
  .bp-section {
    padding-top: 92px;
  }

  .bp-proof-grid,
  .bp-auth-metrics,
  .bp-spotlight-grid,
  .bp-stats-grid,
  .bp-quick-actions,
  .bp-metric-row {
    grid-template-columns: 1fr;
  }

  .bp-auth-aside,
  .bp-auth-panel,
  .bp-feature-card,
  .bp-info-card,
  .bp-action-card,
  .bp-spotlight-panel {
    padding: 20px;
  }

  .bp-dashboard-main {
    padding: 18px;
  }

  .bp-btn-primary,
  .bp-btn-secondary,
  .bp-btn-ghost {
    width: 100%;
  }

  .bp-hero-actions {
    flex-direction: column;
  }
}
