/* Bot-Tricks Labs Styles */

.labs-arcanum-theme {
  --labs-bg: #171717;
  --labs-surface: #1f1f25;
  --labs-surface-2: #262631;
  --labs-border: rgba(223, 140, 255, 0.26);
  --labs-text: #f5f3ff;
  --labs-text-muted: #d2c3ee;
  --labs-orange: #ff7a18;
  --labs-orange-bright: #ffb347;
  --labs-cyan: #43f7ff;
  --labs-purple: #b155ff;
  --labs-purple-bright: #df8cff;
  --labs-purple-soft: rgba(177, 85, 255, 0.18);
  --labs-glow: rgba(223, 140, 255, 0.46);
}

.labs-main {
  padding: 2rem 0;
}

.labs-hero {
  text-align: center;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
}

.labs-hero--arcanum {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 24, 0.26);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 122, 24, 0.26), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(67, 247, 255, 0.18), transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(223, 140, 255, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(255, 122, 24, 0.08), rgba(177, 85, 255, 0.12) 40%, rgba(0, 0, 0, 0));
  box-shadow:
    0 0 20px rgba(255, 122, 24, 0.16),
    0 0 34px rgba(177, 85, 255, 0.18),
    inset 0 0 28px rgba(177, 85, 255, 0.08);
}

.labs-hero--arcanum::before,
.labs-hero--arcanum::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
}

.labs-hero--arcanum::before {
  width: 180px;
  height: 180px;
  left: -30px;
  top: -50px;
  background: rgba(255, 122, 24, 0.18);
}

.labs-hero--arcanum::after {
  width: 220px;
  height: 220px;
  right: -40px;
  top: -70px;
  background: rgba(67, 247, 255, 0.12);
}

.labs-hero--arcanum .labs-minimal-nav,
.labs-hero--arcanum h1 {
  position: relative;
  z-index: 1;
}

.labs-partner-lockup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.partner-pill--arcanum {
  color: #f5ebff;
  background: rgba(153, 102, 204, 0.18);
  border: 1px solid rgba(184, 140, 255, 0.38);
  box-shadow: 0 0 18px rgba(153, 102, 204, 0.18);
}

.partner-pill--bottricks {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-separator {
  color: var(--labs-text-muted);
  font-weight: 700;
}

.labs-hero-subcopy {
  max-width: 60rem;
  margin: 1rem auto 0;
  color: var(--labs-text-muted);
}

.labs-minimal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.labs-minimal-nav__link {
  color: var(--labs-text-muted);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.labs-minimal-nav__link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(67, 247, 255, 0.42);
}

.labs-minimal-nav__sep {
  color: rgba(255, 255, 255, 0.28);
}

.labs-hero h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.labs-arcanum-theme .labs-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ffd18f 18%, #ff7a18 44%, #4bb7ff 74%, #1b4dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 0 12px rgba(255, 122, 24, 0.22),
    0 0 20px rgba(75, 183, 255, 0.18);
  animation: labsHeroPulse 3.6s ease-in-out infinite;
}

.labs-section {
  margin-top: 1.5rem;
}

.labs-section-heading {
  margin-bottom: 1rem;
}

.labs-section-heading h2 {
  margin: 0 0 0.35rem 0;
  color: #fff;
}

.labs-section-heading p {
  margin: 0;
  color: var(--labs-text-muted);
}

.labs-section--featured {
  border: 1px solid rgba(223, 140, 255, 0.28);
  box-shadow:
    0 0 16px rgba(223, 140, 255, 0.18),
    0 0 30px rgba(177, 85, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.labs-section--featured::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(14deg);
  animation: labsSweep 4.8s linear infinite;
  pointer-events: none;
}

/* Lab Grid */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lab-card {
  display: block;
  background: var(--card-bg, #242424);
  border: 1px solid var(--border-color, #333);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.labs-arcanum-theme .lab-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(177, 85, 255, 0.03));
  border-color: var(--labs-border);
}

.lab-card:hover {
  transform: translateY(-2px);
  border-color: #ff6b35;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.labs-arcanum-theme .lab-card:hover {
  border-color: rgba(223, 140, 255, 0.95);
  box-shadow: 0 0 18px rgba(223, 140, 255, 0.38), 0 0 38px rgba(177, 85, 255, 0.24), 0 14px 40px rgba(177, 85, 255, 0.18);
  transform: translateY(-4px) scale(1.01);
}

.labs-arcanum-theme .lab-card--original:hover {
  border-color: rgba(255, 122, 24, 0.95);
  box-shadow:
    0 0 18px rgba(255, 122, 24, 0.24),
    0 0 36px rgba(255, 122, 24, 0.2),
    0 0 52px rgba(75, 183, 255, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.lab-card:hover .lab-card-glow {
  filter: saturate(1.35) brightness(1.2);
}

.lab-card:hover .lab-badge,
.lab-card:hover .meta-pill,
.lab-card:hover .lab-difficulty {
  filter: brightness(1.18);
}

.lab-card--premium {
  position: relative;
}

.lab-card-glow {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(223, 140, 255, 0.34), transparent 35%);
}

.lab-card--premium .lab-card-glow {
  background:
    radial-gradient(circle at top right, rgba(223, 140, 255, 0.38), transparent 32%),
    radial-gradient(circle at bottom left, rgba(177, 85, 255, 0.22), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(255, 122, 24, 0.14), transparent 24%);
}

.lab-card--premium:hover {
  box-shadow:
    0 0 20px rgba(255, 122, 24, 0.2),
    0 0 34px rgba(223, 140, 255, 0.3),
    0 0 54px rgba(177, 85, 255, 0.24),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.lab-card--bottricks-premium .lab-card-glow {
  background:
    radial-gradient(circle at top right, rgba(67, 247, 255, 0.32), transparent 32%),
    radial-gradient(circle at bottom left, rgba(75, 183, 255, 0.18), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(57, 255, 20, 0.1), transparent 24%);
}

.lab-card--bottricks-premium:hover {
  box-shadow:
    0 0 20px rgba(67, 247, 255, 0.18),
    0 0 34px rgba(75, 183, 255, 0.26),
    0 0 54px rgba(67, 247, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.lab-card--original .lab-card-glow {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 24, 0.28), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 122, 24, 0.18), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(75, 183, 255, 0.14), transparent 22%);
}

.lab-card--original:hover {
  box-shadow:
    0 0 18px rgba(255, 122, 24, 0.22),
    0 0 34px rgba(255, 122, 24, 0.18),
    0 0 44px rgba(75, 183, 255, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.lab-card--original {
  background: linear-gradient(180deg, rgba(8, 20, 58, 0.96), rgba(12, 29, 84, 0.96));
  border-color: rgba(75, 183, 255, 0.32);
}

.lab-card--original h3,
.lab-card--original p,
.lab-card--original .lab-difficulty,
.lab-card--original .meta-pill {
  color: #f8fbff;
}

.lab-card--original .meta-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(75, 183, 255, 0.24);
}

.lab-course-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 140, 255, 0.46);
  background: rgba(177, 85, 255, 0.16);
  color: #f3d7ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(177, 85, 255, 0.18);
}

.lab-card--coming-soon {
  opacity: 0.7;
  pointer-events: none;
}

.lab-card--coming-soon::after {
  content: "SOON";
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: #666;
  color: white;
  padding: 0.25rem 3rem;
  font-size: 0.7rem;
  font-weight: bold;
  transform: rotate(45deg);
}

.lab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.lab-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-xss {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  border: 1px solid #ff6b35;
}

.labs-arcanum-theme .badge-xss {
  background: rgba(177, 85, 255, 0.18);
  color: #efc4ff;
  border-color: rgba(223, 140, 255, 0.62);
  box-shadow: 0 0 14px rgba(177, 85, 255, 0.16);
}

.badge-ssrf {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.labs-arcanum-theme .badge-ssrf {
  background: rgba(167, 139, 250, 0.18);
  color: #d9c6ff;
  border-color: rgba(196, 181, 253, 0.58);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.15);
}

.badge-original {
  background: rgba(255, 122, 24, 0.14);
  color: #ffd7ad;
  border: 1px solid rgba(255, 122, 24, 0.42);
  box-shadow: 0 0 12px rgba(255, 122, 24, 0.14);
}

.lab-difficulty {
  font-size: 0.8rem;
  color: #888;
}

.lab-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: #fff;
}

.lab-card p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.labs-arcanum-theme .lab-card p,
.labs-arcanum-theme .lab-difficulty,
.labs-arcanum-theme .meta-pill,
.labs-arcanum-theme .info-item p {
  color: var(--labs-text-muted);
}

.lab-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #888;
}

.labs-arcanum-theme .meta-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Labs Info */
.labs-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.labs-arcanum-theme .info-item {
  background: linear-gradient(180deg, rgba(153, 102, 204, 0.06), rgba(255, 255, 255, 0.02));
  border-color: var(--labs-border);
}

.info-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
}

.info-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}

/* Labs homepage layout */
.labs-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(223, 140, 255, 0.22);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 122, 24, 0.18), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(67, 247, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(177, 85, 255, 0.06));
  box-shadow:
    0 0 30px rgba(255, 122, 24, 0.11),
    0 0 52px rgba(177, 85, 255, 0.12);
  margin-bottom: 1rem;
}

.labs-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.16) 40%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.labs-home-hero__inner {
  position: relative;
  z-index: 1;
  padding: 1rem 1.15rem 1.1rem 1.15rem;
}

.labs-home-hero__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #ab9fc2;
}

.labs-minimal-nav--hero {
  margin-bottom: 0.85rem;
  justify-content: center;
}

.labs-home-hero__partner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.44rem 0.72rem;
  border-radius: 999px;
  background: rgba(153, 102, 204, 0.12);
  border: 1px solid rgba(153, 102, 204, 0.24);
}

.labs-home-hero__partner span {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  font-size: 0.74rem;
  color: #d7caf0;
}

.labs-home-hero__partner img {
  height: 18px;
  width: auto;
}

.labs-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 0.9rem;
  align-items: center;
  margin-top: 0.75rem;
}

.labs-home-hero__art-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.labs-home-hero__art {
  width: min(100%, 620px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 22px rgba(255, 122, 24, 0.12)) drop-shadow(0 0 34px rgba(67, 247, 255, 0.08));
}

.labs-home-hero__panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 10, 0.45);
  backdrop-filter: blur(8px);
  padding: 0.95rem;
}

.labs-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffdcbf;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.labs-home-hero__eyebrow::before {
  content: '◉';
  color: #ff9f4a;
}

.labs-home-hero__panel h1 {
  margin: 0.8rem 0 0.5rem 0;
  color: #fff;
  font-size: clamp(1.85rem, 3.3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: none;
  animation: none;
  background: none;
  -webkit-text-fill-color: initial;
}

.labs-home-hero__panel p {
  margin: 0;
  color: #c5bdd8;
  line-height: 1.62;
  font-size: 0.96rem;
}

.labs-home-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.85rem;
}

.labs-home-pill {
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #efe7fb;
  font-size: 0.75rem;
  font-weight: 600;
}

.labs-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.labs-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.labs-home-btn--primary {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  color: #2f1700;
}

.labs-home-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1eafa;
}

.labs-section-heading--with-tag {
  margin-bottom: 1rem;
}

.labs-section--homepage-featured {
  margin-top: 1.3rem;
}

.lab-card--partnered {
  padding-top: 3.9rem;
}

.lab-card__partner-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.62);
  border: 1px solid rgba(153, 102, 204, 0.24);
  z-index: 1;
}

.lab-card__partner-tag span {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.67rem;
  font-weight: 800;
  color: #d7caf0;
}

.lab-card__partner-tag img {
  height: 16px;
  width: auto;
}

.lab-card__partner-tag--icon-only {
  padding: 0.42rem 0.55rem;
}

.lab-card__partner-tag--icon-only span {
  display: none;
}

/* Brand Section */
.topbar--labs-simple {
  justify-content: flex-start;
}

.labs-simple-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #ffb37a;
  text-decoration: none;
}

.labs-simple-backlink:hover,
.labs-simple-backlink:focus-visible {
  color: #ffd2b0;
  text-decoration: underline;
}

.brand-section {
  color: #ff6b35;
  font-weight: 600;
}

.labs-arcanum-theme .brand-section,
.labs-arcanum-theme .brand-lab {
  color: var(--labs-purple-bright);
}

.brand-separator {
  margin: 0 0.5rem;
  color: #444;
}

/* Lab Specific Pages */
.lab-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lab-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lab-container--xss {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  align-items: start;
}

.lab-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .lab-container {
    grid-template-columns: 1fr;
  }

  .lab-panel--primary {
    min-height: 460px;
  }
}

.lab-panel {
  background: var(--card-bg, #242424);
  border: 1px solid var(--border-color, #333);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.lab-panel--primary {
  min-height: 520px;
}

.lab-panel--compact {
  min-height: 0;
}

.lab-panel--full-width {
  min-height: 0;
}

.labs-arcanum-theme .lab-panel {
  border-color: var(--labs-border);
}

.premium-lab-banner {
  margin-bottom: 1.25rem;
  border: 1px solid var(--labs-border);
  background:
    radial-gradient(circle at top right, rgba(184, 140, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(153, 102, 204, 0.12), rgba(255, 255, 255, 0.01));
}

.premium-lab-banner--bottricks {
  border-color: rgba(57, 255, 20, 0.28);
  background:
    radial-gradient(circle at top right, rgba(57, 255, 20, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(57, 255, 20, 0.06), rgba(255, 255, 255, 0.01));
}

.premium-lab-banner--bottricks .premium-lab-banner__eyebrow {
  color: #a3ff9e;
}

.premium-lab-banner--bottricks .premium-lab-pill {
  border-color: rgba(57, 255, 20, 0.35);
  color: #c8ffc4;
}

.premium-lab-banner__eyebrow {
  margin-bottom: 0.65rem;
  color: #d8b4fe;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-lab-banner__eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.premium-lab-banner__logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(153, 102, 204, 0.22));
}

.premium-lab-banner__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.premium-lab-banner__title-row h2 {
  margin: 0;
  color: #fff;
}

.premium-lab-pill {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ede9fe;
  font-size: 0.78rem;
  font-weight: 700;
}

.lab-panel-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color, #333);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lab-panel-header--inverse {
  border-bottom-color: rgba(255,255,255,0.1);
}

.lab-panel-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.lab-panel-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.lab-panel--admin-cta {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  border-color: #2c5282;
}

.site-footer--labs-centered {
  text-align: center;
}

.site-footer--labs-centered p {
  justify-content: center;
}

.labs-reset-link {
  margin-top: 0.9rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(255, 179, 122, 0.35);
  border-radius: 999px;
  background: rgba(255, 179, 122, 0.08);
  color: #ffb37a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.labs-reset-link:hover,
.labs-reset-link:focus-visible {
  color: #fff1e6;
  border-color: rgba(255, 210, 176, 0.62);
  background: rgba(255, 179, 122, 0.16);
  text-decoration: none;
}

/* Chat Interface */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.user {
  align-self: flex-end;
  background: #ff6b35;
  color: white;
  border-bottom-right-radius: 4px;
}

.labs-arcanum-theme .chat-message.user,
.labs-arcanum-theme .chat-send {
  background: linear-gradient(135deg, #9966cc, #7c3aed);
}

.chat-message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  border-bottom-left-radius: 4px;
}

.chat-message.system {
  align-self: center;
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border-color, #333);
}

.chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #444);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  resize: none;
  font-family: inherit;
  min-height: 64px;
  min-width: 0;
}

.chat-input:focus {
  outline: none;
  border-color: #ff6b35;
}

.labs-arcanum-theme .chat-input:focus {
  border-color: var(--labs-purple-bright);
  box-shadow: 0 0 0 3px rgba(153, 102, 204, 0.12);
}

.chat-send {
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.chat-send:hover {
  background: #e55a2b;
}

.labs-arcanum-theme .chat-send:hover {
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
}

.chat-send:disabled {
  background: #666;
  cursor: not-allowed;
}

/* Capstone visual bridge */
.labs-section--capstone .lab-card--capstone {
  border-color: rgba(57, 255, 20, 0.35);
}

.labs-section--capstone .lab-card--capstone:hover {
  border-color: rgba(57, 255, 20, 0.85);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.22), 0 0 38px rgba(57, 255, 20, 0.14), 0 14px 40px rgba(0, 0, 0, 0.24);
}

/* Webhook Receiver */
.webhook-url {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #4ade80;
  margin-bottom: 1rem;
  word-break: break-all;
}

.webhook-requests {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.webhook-request {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  padding: 1rem;
}

.webhook-request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color, #333);
}

.webhook-method {
  background: #4ade80;
  color: black;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.webhook-time {
  font-size: 0.75rem;
  color: #888;
}

.webhook-details {
  font-family: monospace;
  font-size: 0.8rem;
  color: #aaa;
  overflow-x: auto;
}

.webhook-details summary {
  cursor: pointer;
  color: #ff6b35;
}

.webhook-details pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 0.5rem;
}

.webhook-empty {
  text-align: center;
  color: #666;
  padding: 3rem 1rem;
  font-style: italic;
}

/* Level Progress */
.level-indicator {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.level-progress-card {
  min-width: 210px;
}

.level-label-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.level-label {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 0.42rem 0.3rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-label.active {
  color: #fff;
  border-color: rgba(255, 122, 24, 0.55);
  background: rgba(255, 122, 24, 0.12);
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.18);
}

.level-label.completed {
  color: #4ade80;
}

.level-label.unlocked:hover {
  color: #fff;
  border-color: rgba(75, 183, 255, 0.45);
  box-shadow: 0 0 14px rgba(75, 183, 255, 0.12);
}

.level-label.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.level-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #444;
  transition: all 0.3s;
}

.level-dot.active {
  background: #ff6b35;
  border-color: #ff6b35;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.level-dot.completed {
  background: #4ade80;
  border-color: #4ade80;
}

/* Objectives */
/* Instructions Panel */
.instructions-content {
  line-height: 1.7;
  color: #ccc;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.mission-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}

.mission-brief-eyebrow {
  margin-bottom: 0.35rem;
  color: #d8b4fe;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
}

.mission-bullets {
  margin: 0;
  padding-left: 1.1rem;
}

.mission-bullets li {
  margin-bottom: 0.45rem;
}

.mission-brief-callout {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 122, 24, 0.28);
  border-radius: 10px;
  background: rgba(255, 122, 24, 0.08);
}

.mission-brief-callout code {
  display: inline-block;
  margin-left: 0.5rem;
}

.instructions-content h4 {
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.instructions-content code {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.instructions-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color, #333);
}

.instructions-content pre code {
  background: none;
  padding: 0;
  color: #ddd;
}

@media (max-width: 860px) {
  .labs-home-hero__grid {
    grid-template-columns: 1fr;
  }

  .labs-home-hero__art {
    width: min(100%, 520px);
  }

  .labs-home-hero__topline {
    align-items: flex-start;
  }

  .mission-brief-grid {
    grid-template-columns: 1fr;
  }

  .level-progress-card {
    width: 100%;
  }

  .chat-input-area {
    flex-direction: column;
    gap: 0.5rem;
  }

  .chat-input {
    min-height: 80px;
    width: 100%;
  }

  .chat-send {
    width: 100%;
    padding: 0.75rem;
  }
}

/* Status Indicators */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.waiting {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulsing {
  animation: pulse 2s infinite;
}

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

@keyframes labsHeroPulse {
  0%, 100% {
    filter: saturate(1) brightness(1);
    transform: translateY(0);
  }
  50% {
    filter: saturate(1.18) brightness(1.08);
    transform: translateY(-1px);
  }
}

@keyframes labsSweep {
  0% {
    transform: translateX(-160%) rotate(14deg);
  }
  100% {
    transform: translateX(360%) rotate(14deg);
  }
}

.chat-message {
  animation: slideIn 0.3s ease;
}
