/* HiveCloud UI — tech SaaS theme */
:root {
  --hc-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --hc-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --hc-bg: #f1f5f9;
  --hc-surface: #ffffff;
  --hc-border: #e2e8f0;
  --hc-text: #0f172a;
  --hc-text-muted: #64748b;
  --hc-nav-bg: #0b1220;
  --hc-nav-border: rgba(148, 163, 184, 0.12);
  --hc-accent: #3b82f6;
  --hc-accent-hover: #2563eb;
  --hc-success: #10b981;
  --hc-success-bg: #ecfdf5;
  --hc-danger: #ef4444;
  --hc-danger-bg: #fef2f2;
  --hc-warning: #f59e0b;
  --hc-warning-bg: #fffbeb;
  --hc-info: #06b6d4;
  --hc-info-bg: #ecfeff;
  --hc-progress: #6366f1;
  --hc-progress-bg: #eef2ff;
  --hc-ready: #0ea5e9;
  --hc-ready-bg: #f0f9ff;
  --hc-muted: #94a3b8;
  --hc-muted-bg: #f8fafc;
  --hc-radius: 0.625rem;
  --hc-radius-lg: 0.875rem;
  --hc-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
  --hc-shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--hc-font-sans);
  background: var(--hc-bg);
  color: var(--hc-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

code,
.hc-mono,
.table .hc-mono,
.hc-stat {
  font-family: var(--hc-font-mono);
  font-size: 0.875em;
}

/* Navbar */
.hc-navbar {
  background: var(--hc-nav-bg) !important;
  border-bottom: 1px solid var(--hc-nav-border);
  padding-block: 0.65rem;
}

.hc-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hc-brand-logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.55));
}

.hc-navbar .nav-link {
  color: rgba(226, 232, 240, 0.85) !important;
  font-weight: 500;
  font-size: 0.925rem;
  padding-inline: 0.85rem !important;
  border-radius: 0.45rem;
  transition: color 0.15s, background 0.15s;
}

.hc-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

.hc-main {
  padding-bottom: 3rem;
}

.hc-footer {
  border-top: 1px solid var(--hc-border);
  color: var(--hc-text-muted);
  font-size: 0.8125rem;
  padding: 1.25rem 0 2rem;
  margin-top: 2rem;
}

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

.hc-footer a:hover {
  color: var(--hc-accent);
}

/* Page structure */
.hc-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hc-page-header h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.hc-page-header .hc-lead {
  color: var(--hc-text-muted);
  margin-bottom: 0.75rem;
  max-width: 42rem;
}

.hc-balance-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
}

.hc-balance-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.hc-balance-label {
  font-size: 0.875rem;
  color: var(--hc-text-muted);
}

.hc-balance-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hc-balance-currency {
  font-family: var(--hc-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.hc-balance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hc-step-label {
  font-family: var(--hc-font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-accent);
}

.hc-type-picker {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.hc-type-card {
  display: block;
  background: var(--hc-surface);
  border: 2px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hc-type-card-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hc-type-card-body {
  padding: 1.25rem 1.35rem;
}

.hc-type-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.hc-type-card-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.hc-type-card-desc {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 0.9rem;
}

.hc-type-card-tag {
  font-family: var(--hc-font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.hc-type-card-tag--live {
  color: var(--hc-success);
  background: var(--hc-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.hc-type-card-tag--soon {
  color: var(--hc-warning);
  background: var(--hc-warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.hc-type-card--active {
  border-color: var(--hc-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), var(--hc-shadow);
}

.hc-type-card--disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background: var(--hc-muted-bg);
}

.hc-section-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* Cards */
.hc-card {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow);
  padding: 1.35rem 1.5rem;
  height: 100%;
}

.hc-card + .hc-card {
  margin-top: 1rem;
}

.hc-card-muted {
  background: var(--hc-muted-bg);
}

/* Status badges */
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--hc-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hc-badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.hc-badge--success {
  color: #047857;
  background: var(--hc-success-bg);
  border-color: #a7f3d0;
}

.hc-badge--danger {
  color: #b91c1c;
  background: var(--hc-danger-bg);
  border-color: #fecaca;
}

.hc-badge--progress {
  color: #4338ca;
  background: var(--hc-progress-bg);
  border-color: #c7d2fe;
}

.hc-badge--progress.hc-badge--pulse::before {
  animation: hc-pulse 1.4s ease-in-out infinite;
}

.hc-badge--info {
  color: #0e7490;
  background: var(--hc-info-bg);
  border-color: #a5f3fc;
}

.hc-badge--ready {
  color: #0369a1;
  background: var(--hc-ready-bg);
  border-color: #bae6fd;
}

.hc-badge--warning {
  color: #b45309;
  background: var(--hc-warning-bg);
  border-color: #fde68a;
}

.hc-badge--muted {
  color: #475569;
  background: var(--hc-muted-bg);
  border-color: var(--hc-border);
}

.hc-badge--type {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

@keyframes hc-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* Tables */
.hc-table-wrap {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow);
  overflow: hidden;
}

.hc-table {
  margin-bottom: 0;
}

.hc-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--hc-border);
  color: var(--hc-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.hc-table tbody td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.hc-table tbody tr:last-child td {
  border-bottom: none;
}

.hc-table tbody tr:hover {
  background: #f8fafc;
}

.hc-table a {
  font-weight: 600;
  color: var(--hc-text);
  text-decoration: none;
}

.hc-table a:hover {
  color: var(--hc-accent);
}

.hc-table .text-danger {
  font-size: 0.8125rem;
}

/* Forms */
.hc-form-card {
  max-width: 40rem;
}

.hc-auth-card {
  margin-inline: auto;
}

.hc-auth-card .hc-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hc-auth-card a {
  color: var(--hc-accent);
  text-decoration: none;
  font-weight: 500;
}

.hc-auth-card a:hover {
  color: var(--hc-accent-hover);
  text-decoration: underline;
}

.hc-form ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 0.35rem;
  color: var(--hc-danger);
  font-size: 0.8125rem;
}

.hc-form .errorlist.nonfield {
  margin-bottom: 1rem;
}

.hc-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hc-text);
  margin-bottom: 0.35rem;
}

.hc-form .form-control,
.hc-form .form-select,
.hc-form textarea.form-control {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hc-form .form-control:focus,
.hc-form .form-select:focus {
  border-color: var(--hc-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.hc-form .form-text,
.hc-form .helptext {
  color: var(--hc-text-muted);
  font-size: 0.8125rem;
}

.hc-form .mb-field {
  margin-bottom: 1.15rem;
}

.hc-form fieldset.hc-fieldset {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  padding: 1.25rem 1.35rem 1rem;
  background: #fafbfc;
}

.hc-form fieldset.hc-fieldset legend {
  float: none;
  width: auto;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.hc-form .form-check-input:checked {
  background-color: var(--hc-accent);
  border-color: var(--hc-accent);
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: var(--hc-radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--hc-accent);
  border-color: var(--hc-accent);
}

.btn-primary:hover {
  background: var(--hc-accent-hover);
  border-color: var(--hc-accent-hover);
}

.btn-outline-secondary {
  border-color: var(--hc-border);
  color: var(--hc-text);
}

.btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--hc-text);
}

.hc-btn-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Alerts */
.alert {
  border-radius: var(--hc-radius);
  border-width: 1px;
  font-size: 0.9375rem;
}

.alert-danger {
  background: var(--hc-danger-bg);
  border-color: #fecaca;
  color: #991b1b;
}

.alert-success {
  background: var(--hc-success-bg);
  border-color: #a7f3d0;
  color: #065f46;
}

.alert-warning {
  background: var(--hc-warning-bg);
  border-color: #fde68a;
  color: #92400e;
}

/* Hero */
.hc-hero {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 55%, #0f172a 100%);
  border-radius: var(--hc-radius-lg);
  color: #f8fafc;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--hc-shadow-lg);
  position: relative;
  overflow: hidden;
}

.hc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.35), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(34, 211, 238, 0.2), transparent 40%);
  pointer-events: none;
}

.hc-hero > * {
  position: relative;
  z-index: 1;
}

.hc-hero-body {
  padding-right: clamp(5rem, 14vw, 9rem);
}

.hc-hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.2;
  max-width: none;
}

.hc-hero .lead {
  color: rgba(226, 232, 240, 0.88);
  max-width: 52rem;
}

.hc-hero .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  padding: 0.65rem 1.35rem;
}

.hc-hero .btn-outline-light {
  border-color: rgba(248, 250, 252, 0.35);
  color: #f8fafc;
}

.hc-hero .btn-outline-light:hover {
  background: rgba(248, 250, 252, 0.1);
  border-color: rgba(248, 250, 252, 0.5);
  color: #fff;
}

/* Progress bar */
.progress {
  height: 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

/* Log panel */
.hc-log-toggle {
  border-radius: var(--hc-radius) !important;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hc-log-pre {
  font-family: var(--hc-font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border: 1px solid #1e293b;
  border-radius: var(--hc-radius) !important;
}

/* Empty state */
.hc-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--hc-text-muted);
  background: var(--hc-surface);
  border: 1px dashed var(--hc-border);
  border-radius: var(--hc-radius-lg);
}

.hc-empty-icon {
  font-size: 2rem;
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

/* Meta chips row */
.hc-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hc-meta-row .hc-meta-text {
  color: var(--hc-text-muted);
  font-size: 0.8125rem;
}

/* Hero extras */
.hc-hero-eyebrow {
  color: #67e8f9;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-hero-workloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hc-hero-workload {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
}

.hc-hero-workload-name {
  font-weight: 600;
  color: #f8fafc;
}

.hc-hero-workload-tag {
  font-family: var(--hc-font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.hc-hero-workload-tag--live {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.hc-hero-workload-tag--soon {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(252, 211, 77, 0.3);
}

.hc-hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.9375rem;
}

.hc-hero-points li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
}

.hc-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #6366f1);
}

.hc-hero-logo-wrap {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  width: 5.5rem;
  height: 5.5rem;
  z-index: 2;
}

.hc-hero-logo {
  position: relative;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  animation: hc-logo-float 4s ease-in-out infinite;
}

.hc-hero-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.35);
  animation: hc-ring-pulse 3s ease-out infinite;
}

@media (max-width: 575.98px) {
  .hc-hero-body {
    padding-right: 0;
    padding-top: 5.5rem;
  }

  .hc-hero-logo-wrap {
    top: 1rem;
    right: 1rem;
    width: 4.25rem;
    height: 4.25rem;
  }

  .hc-hero-logo {
    width: 3.5rem;
    height: 3.5rem;
  }

  .hc-hero-title {
    letter-spacing: 0.03em;
  }
}

@keyframes hc-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes hc-ring-pulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}

.hc-section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.hc-section-title-lg {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

/* Gamified flow board */
.hc-flow-section {
  position: relative;
}

.hc-flow-board {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow);
  position: relative;
  overflow: hidden;
}

.hc-flow-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hc-flow-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
  opacity: 0;
}

.hc-flow-packet--out {
  animation: hc-packet-out 8s ease-in-out infinite;
}

.hc-flow-packet--back {
  animation: hc-packet-back 8s ease-in-out infinite;
  background: linear-gradient(135deg, #10b981, #22d3ee);
}

@keyframes hc-packet-out {
  0%, 8% { opacity: 0; left: 8%; top: 50%; }
  12%, 28% { opacity: 1; }
  35% { left: 38%; top: 50%; opacity: 1; }
  45%, 55% { left: 50%; top: 50%; opacity: 1; }
  70% { opacity: 0; }
  100% { opacity: 0; left: 50%; top: 50%; }
}

@keyframes hc-packet-back {
  0%, 55% { opacity: 0; left: 75%; top: 50%; }
  62%, 78% { opacity: 1; }
  88% { left: 92%; top: 50%; opacity: 1; }
  100% { opacity: 0; left: 92%; top: 50%; }
}

.hc-flow-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 0.65rem;
  border-radius: var(--hc-radius);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: hc-step-glow 8s ease-in-out infinite;
}

.hc-flow-step--1 { animation-delay: 0s; }
.hc-flow-step--hub { animation-delay: 2s; }
.hc-flow-step--3 { animation-delay: 4s; }
.hc-flow-step--4 { animation-delay: 6s; }

@keyframes hc-step-glow {
  0%, 10%, 100% {
    background: transparent;
    box-shadow: none;
    transform: scale(1);
  }
  15%, 25% {
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    transform: scale(1.02);
  }
}

.hc-flow-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.65rem;
  color: var(--hc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-flow-icon svg {
  width: 100%;
  height: 100%;
}

.hc-flow-icon--network {
  color: #6366f1;
}

.hc-flow-icon--reward {
  color: var(--hc-success);
}

.hc-flow-hub {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.18));
  border: 2px solid rgba(99, 102, 241, 0.25);
  animation: hc-hub-pulse 2.5s ease-in-out infinite;
}

@keyframes hc-hub-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.25); }
  50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}

.hc-flow-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-accent);
  background: var(--hc-progress-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.hc-flow-badge--hub {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.hc-flow-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hc-flow-desc {
  font-size: 0.8125rem;
  color: var(--hc-text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

.hc-flow-xp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--hc-text-muted);
  font-family: var(--hc-font-mono);
}

.hc-flow-xp-bar {
  display: block;
  width: 4rem;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.hc-flow-xp-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: inherit;
  animation: hc-xp-fill 8s ease-in-out infinite;
}

.hc-flow-step--1 .hc-flow-xp-bar::after { animation-delay: 0.5s; }
.hc-flow-step--hub .hc-flow-xp-bar::after { animation-delay: 2.5s; }
.hc-flow-step--3 .hc-flow-xp-bar::after { animation-delay: 4.5s; }
.hc-flow-step--4 .hc-flow-xp-bar::after { animation-delay: 6.5s; background: linear-gradient(90deg, #10b981, #22d3ee); }

@keyframes hc-xp-fill {
  0%, 12% { width: 0; }
  20%, 35% { width: 100%; }
  100% { width: 100%; }
}

.hc-flow-xp--complete .hc-flow-xp-text {
  color: var(--hc-success);
}

.hc-flow-connector {
  position: relative;
  z-index: 1;
  height: 3px;
  min-width: 1.5rem;
  background: linear-gradient(90deg, #cbd5e1, #6366f1, #cbd5e1);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: hc-connector-flow 2s linear infinite;
}

.hc-flow-connector--b {
  height: auto;
  min-height: 4rem;
  width: 3px;
  min-width: 3px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-flow-fan {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.hc-flow-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  animation: hc-node-join 8s ease-in-out infinite;
}

.hc-flow-node:nth-child(1) { animation-delay: 3.2s; }
.hc-flow-node:nth-child(2) { animation-delay: 3.5s; }
.hc-flow-node:nth-child(3) { animation-delay: 3.8s; }
.hc-flow-node:nth-child(4) { animation-delay: 4.1s; }
.hc-flow-node:nth-child(5) { animation-delay: 4.4s; }

@keyframes hc-node-join {
  0%, 40% { background: #94a3b8; transform: scale(1); box-shadow: none; }
  45%, 70% { background: #6366f1; transform: scale(1.35); box-shadow: 0 0 8px rgba(99, 102, 241, 0.7); }
  100% { background: #94a3b8; transform: scale(1); }
}

@keyframes hc-connector-flow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hc-card--lift {
  transition: transform 0.2s, box-shadow 0.2s;
}

.hc-card--lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--hc-shadow-lg);
}

.hc-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hc-compare-col {
  padding: 1rem;
  border-radius: var(--hc-radius);
}

.hc-compare-col--old {
  background: var(--hc-muted-bg);
  border: 1px dashed var(--hc-border);
}

.hc-notices {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hc-border);
}

.hc-notices a {
  color: var(--hc-accent);
  text-decoration: none;
  font-weight: 500;
}

.hc-notices a:hover {
  text-decoration: underline;
}

.hc-compare-col--new {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hc-flow-board {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hc-flow-connector {
    width: 3px;
    height: 1.5rem;
    min-height: 1.5rem;
    margin: 0 auto;
    background: linear-gradient(180deg, #cbd5e1, #6366f1, #cbd5e1);
    background-size: 100% 200%;
    animation: hc-connector-flow-v 2s linear infinite;
  }

  .hc-flow-connector--b {
    min-height: 3rem;
  }

  .hc-flow-fan {
    flex-direction: row;
  }

  @keyframes hc-connector-flow-v {
    0% { background-position: 0 100%; }
    100% { background-position: 0 -100%; }
  }

  .hc-flow-packet--out {
    animation-name: hc-packet-out-v;
  }

  .hc-flow-packet--back {
    animation-name: hc-packet-back-v;
  }

  @keyframes hc-packet-out-v {
    0%, 8% { opacity: 0; left: 50%; top: 5%; }
    20%, 40% { opacity: 1; left: 50%; top: 28%; }
    55% { left: 50%; top: 48%; opacity: 1; }
    70%, 100% { opacity: 0; }
  }

  @keyframes hc-packet-back-v {
    0%, 55% { opacity: 0; left: 50%; top: 72%; }
    68%, 85% { opacity: 1; left: 50%; top: 88%; }
    100% { opacity: 0; }
  }
}

@media (max-width: 767.98px) {
  .hc-table-wrap {
    overflow-x: auto;
  }

  .hc-table {
    min-width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-flow-packet,
  .hc-flow-step,
  .hc-flow-connector,
  .hc-flow-node,
  .hc-flow-xp-bar::after,
  .hc-hero-logo,
  .hc-hero-logo-ring,
  .hc-flow-hub {
    animation: none !important;
  }
}
