/* ==========================================================================
   THE DLNE PROJECT — FUTURISTIC GLASSY PORTAL STYLES
   Color Scheme: Electric Cyan (#00f0ff), Cyber Violet (#c084fc), Deep Slate (#0b0f19)
   ========================================================================== */

:root {
  --dlne-cyan: #00f0ff;
  --dlne-cyan-glow: rgba(0, 240, 255, 0.45);
  --dlne-cyan-subtle: rgba(0, 240, 255, 0.12);
  --dlne-cyan-border: rgba(0, 240, 255, 0.28);
  
  --dlne-purple: #c084fc;
  --dlne-purple-glow: rgba(192, 132, 252, 0.45);
  --dlne-purple-subtle: rgba(192, 132, 252, 0.12);

  /* The neon pink of the official brain logo (sampled from its bright pink lines), for the trim and the scrollbar. */
  --dlne-pink: #ee4eb0;
  --dlne-pink-glow: rgba(238, 78, 176, 0.4);

  --dlne-bg: #07090e;
  --dlne-panel-bg: rgba(15, 23, 42, 0.65);
  --dlne-card-bg: rgba(11, 15, 25, 0.75);
  --dlne-card-border: rgba(255, 255, 255, 0.12);
  
  --dlne-text-bright: #ffffff;
  --dlne-text-muted: #94a3b8;
  --dlne-text-dim: #64748b;
}

/* ==========================================================================
   DEEP CYBERNETIC BACKGROUND OVERRIDE FOR DLNE PORTAL
   ========================================================================== */
html[data-portal="dlne"],
body[data-portal="dlne"],
body[data-portal="dlne"] #app {
  background-color: #07090e !important;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(0, 240, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 82% 28%, rgba(192, 132, 252, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(14, 165, 233, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #07090e 0%, #0b0f19 50%, #05070a 100%) !important;
  background-attachment: fixed !important;
  color: #e2e8f0 !important;
}

/* Eliminate grain and torchlight when on DLNE */
body[data-portal="dlne"]::before,
body[data-portal="dlne"]::after {
  display: none !important;
}

/* DLNE Portal Container */
.dlne-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.dlne-section {
  padding: 4.5rem 0;
  position: relative;
}

/* Glassmorphic Panel Core */
.dlne-glass {
  background: var(--dlne-panel-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--dlne-card-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.03);
}

.dlne-glass-card {
  background: var(--dlne-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dlne-cyan-border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.dlne-glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--dlne-cyan);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.08);
}

/* Cybernetic Neon Glow Accent Lines */
.dlne-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--dlne-cyan) 50%, transparent 100%);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   DLNE HERO SECTION
   -------------------------------------------------------------------------- */
.dlne-hero-wrapper {
  position: relative;
  padding: 5rem 0 3.5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.dlne-hero-wrapper .dlne-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dlne-hero-banner-art {
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dlne-hero-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.65)) drop-shadow(0 0 15px rgba(192, 132, 252, 0.4));
  animation: dlnePulsate 4s ease-in-out infinite alternate;
}

@keyframes dlnePulsate {
  0% { transform: scale(0.98); filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.5)); }
  100% { transform: scale(1.03); filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.85)) drop-shadow(0 0 20px rgba(192, 132, 252, 0.6)); }
}

.dlne-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--dlne-cyan-border);
  border-radius: 9999px;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.dlne-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dlne-cyan);
  box-shadow: 0 0 10px var(--dlne-cyan);
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.dlne-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 1.25rem auto;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  text-align: center;
}

.dlne-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.dlne-hero-subtitle strong {
  color: #38bdf8;
  font-weight: 600;
}

.dlne-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto 3rem auto;
  width: 100%;
}

/* Futuristic Action Buttons */
.btn-dlne-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(168, 85, 247, 0.3) 100%);
  border: 1px solid var(--dlne-cyan);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.btn-dlne-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.45) 0%, rgba(168, 85, 247, 0.5) 100%);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
}

.btn-dlne-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.8rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-dlne-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   LIVE SWARM STATUS TICKER / METRICS STRIP (SIDE-BY-SIDE 4-COLUMN GRID)
   -------------------------------------------------------------------------- */
.dlne-metrics-grid {
  width: 100% !important;
  align-self: stretch !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
  margin-top: 1rem !important;
  margin-bottom: 3.5rem !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .dlne-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 580px) {
  .dlne-metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

.dlne-metric-card {
  background: var(--dlne-card-bg);
  border: 1px solid var(--dlne-card-border);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 146px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.dlne-metric-card:hover {
  border-color: var(--dlne-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.2);
}

.dlne-metric-label {
  font-size: 0.78rem;
  color: var(--dlne-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  width: 100%;
  margin-bottom: 0.4rem;
}

.dlne-metric-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 0.35rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.dlne-metric-val--cyan {
  color: var(--dlne-cyan);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.dlne-metric-val--purple {
  color: var(--dlne-purple);
  text-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.dlne-metric-sub {
  font-size: 0.8rem;
  color: var(--dlne-text-dim);
  text-align: center;
  width: 100%;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   ARCHITECTURE THREE PILLARS GRID
   -------------------------------------------------------------------------- */
.dlne-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.dlne-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--dlne-cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--dlne-cyan);
}

.dlne-pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.dlne-pillar-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   MODEL TIER HIERARCHY
   -------------------------------------------------------------------------- */
.dlne-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.dlne-tier-card {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.dlne-tier-card--active {
  border-color: var(--dlne-cyan);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.dlne-tier-badge {
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.85rem;
  /* Beside a long tier name on a phone, the name wraps and the badge keeps its one line */
  white-space: nowrap;
  flex-shrink: 0;
}

.dlne-tier-badge--online {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.dlne-tier-badge--locked {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dlne-tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.dlne-tier-vram {
  font-size: 0.82rem;
  color: var(--dlne-cyan);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.85rem;
}

.dlne-tier-details {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: auto;
}

/* The CPU pool has members but none ready yet */
.dlne-tier-badge--starting {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   CPU APP POOL: LIVE COUNTS, PHONE CHAT, MODEL LADDER
   -------------------------------------------------------------------------- */
.dlne-pool-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.dlne-pool-stat {
  background: rgba(5, 7, 10, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dlne-pool-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dlne-text-muted);
}

.dlne-pool-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dlne-cyan);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* The two swarm tiles: six readings each, in three rows of two. */
.dlne-pool-stats--six .dlne-pool-stat-val {
  font-size: 1.05rem;
}

.dlne-pool-standby {
  margin: -0.6rem 0 1.25rem;
  font-size: 0.82rem;
  color: var(--dlne-text-muted);
}

.dlne-chat-btn {
  display: flex; /* full width of the card, not the width of its label */
  justify-content: center;
  margin-bottom: 1rem;
}

/* A tier name that is long, or has no spaces in it, wraps inside its card instead of pushing the badge out */
#dlne-app-tiers-grid .dlne-tier-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dlne-install-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.dlne-install-steps li {
  padding-left: 0.85rem;
  border-left: 2px solid var(--dlne-cyan-border);
}

/* Numbered, for the Android install steps */
ol.dlne-install-steps {
  counter-reset: dlne-step;
}

ol.dlne-install-steps li::before {
  counter-increment: dlne-step;
  content: counter(dlne-step) ". ";
  color: var(--dlne-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* One way onto the phone: the Android app, or the web chat */
.dlne-phone-block {
  margin-bottom: 0.5rem;
}

.dlne-phone-block-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dlne-text-muted);
  margin-bottom: 0.6rem;
}

/* The APK's size and SHA-256, for anyone who wants to check the download */
.dlne-verify {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--dlne-text-muted);
  margin: -0.25rem 0 1rem 0;
  overflow-wrap: anywhere;
}

.dlne-verify-label {
  color: var(--dlne-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.dlne-verify code {
  display: block;
  margin-top: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #cbd5e1;
  word-break: break-all;
  user-select: all;
}

.dlne-play-soon {
  font-size: 0.86rem;
  color: var(--dlne-text-muted);
  margin: -0.5rem 0 1rem 0;
}

/* The live status is a dozen short lines. On a wide card they filled only the left half of the box, so a view
   of the card's right side showed an empty dark box under the button. Two columns use the width; a narrow
   box (a phone) is too small for two 26rem columns and keeps one. */
#dlne-live-status-output.dlne-status-cols {
  columns: 26rem;
  column-gap: 2rem;
}

.dlne-ladder-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--dlne-text-dim);
  margin: 1.25rem auto 0 auto;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   CODING MEMBERS: LIVE TILES, AND THE PRIVACY POINTS
   The tiles reuse the CPU pool's stat boxes (.dlne-pool-stat) in a row of three. The wrapper starts
   hidden and is shown only while the coordinator says coding members are on; the [hidden] rule is
   explicit because an author `display` would otherwise beat the attribute.
   -------------------------------------------------------------------------- */
.dlne-member-live {
  margin-top: 2.25rem;
}
.dlne-member-live[hidden] {
  display: none;
}

.dlne-member-live-title {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dlne-text-muted);
  margin: 0 0 0.75rem 0;
}

.dlne-member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
}

.dlne-member-stats .dlne-pool-stat {
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
}

.dlne-member-stats .dlne-pool-stat-val {
  font-size: 2rem;
}

.dlne-pool-stat-sub {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--dlne-text-dim);
}

@media (max-width: 560px) {
  .dlne-member-stats {
    grid-template-columns: 1fr;
  }
}

.dlne-privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.dlne-privacy-point {
  min-width: 0;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.dlne-privacy-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.dlne-privacy-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #94a3b8;
  overflow-wrap: anywhere;
}

/* The honest limit: the amber of the model-swap notice, so it reads as a caution and not as one more feature. */
.dlne-privacy-point--limit {
  grid-column: 1 / -1; /* the closing line of the block, across every column */
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.07);
}
.dlne-privacy-point--limit .dlne-privacy-title {
  color: #fde68a;
}

/* --------------------------------------------------------------------------
   VS CODE ASSISTANT HIGHLIGHT CARD
   -------------------------------------------------------------------------- */
.dlne-vscode-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
  border: 1px solid var(--dlne-cyan-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 4rem;
}

@media (max-width: 850px) {
  .dlne-vscode-card {
    grid-template-columns: 1fr;
    padding: 1.8rem;
  }
}

.dlne-code-terminal {
  background: #05070a;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  font-family: 'JetBrains Mono', monospace;
}

.dlne-terminal-header {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot--red { background: #ef4444; }
.terminal-dot--yellow { background: #f59e0b; }
.terminal-dot--green { background: #10b981; }

.dlne-terminal-body {
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.dlne-terminal-body .cmd { color: #38bdf8; }
.dlne-terminal-body .dim { color: #64748b; }
.dlne-terminal-body .green { color: #4ade80; }
.dlne-terminal-body .purple { color: #c084fc; }

/* --------------------------------------------------------------------------
   HOW TO CONTRIBUTE TABS
   -------------------------------------------------------------------------- */
.dlne-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.dlne-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.6rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dlne-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.dlne-tab-btn.active {
  color: var(--dlne-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--dlne-cyan-border);
}

.dlne-tab-pane {
  display: none;
}
.dlne-tab-pane.active {
  display: block;
}

.dlne-code-snippet {
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #38bdf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  overflow-x: auto;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.btn-copy-code:hover {
  background: var(--dlne-cyan);
  color: #07090e;
  border-color: var(--dlne-cyan);
}

/* ==========================================================================
   FUTURISTIC CYBERNETIC NAVIGATION BAR FOR DLNE
   ========================================================================== */

[data-portal="dlne"] .portal-switcher-strip {
  background: rgba(7, 9, 14, 0.95) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
}

[data-portal="dlne"] .top-nav-bar,
.dlne-nav-bar {
  position: relative !important;
  background: rgba(7, 9, 14, 0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.28) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.12) !important;
}

[data-portal="dlne"] .top-nav-bar::before,
.dlne-nav-bar::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #c084fc 70%, transparent 100%) !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.9) !important;
  pointer-events: none !important;
}

/* Completely eliminate Norse wood trim and knot band */
[data-portal="dlne"] .top-nav-bar::after,
.dlne-nav-bar::after {
  display: none !important;
}

/* DLNE Brand Logo in Nav */
.dlne-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.dlne-brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
  background: #07090e;
  object-fit: contain;
}

/* DLNE Brand Typography in Nav (Pure Cyber Modern — No Medieval Serifs) */
.dlne-brand-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
}

.dlne-brand-title {
  font-family: 'JetBrains Mono', 'Alegreya Sans', ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.32rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  filter: none !important;
}

.dlne-brand-title .dlne-title-part1 {
  color: #00f0ff !important;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.7) !important;
  -webkit-text-fill-color: #00f0ff !important;
}

.dlne-brand-title .dlne-title-part2 {
  color: #c084fc !important;
  text-shadow: 0 0 16px rgba(192, 132, 252, 0.7) !important;
  -webkit-text-fill-color: #c084fc !important;
}

.dlne-brand-subtitle {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.70rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

@media (max-width: 1200px) {
  .dlne-brand-subtitle {
    white-space: normal !important;
    font-size: 0.65rem !important;
    max-width: 250px !important;
    line-height: 1.2 !important;
  }
}

/* Futuristic Nav Link Pills */
.dlne-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Brand + five section pills + beacon + Discord + VSX overflowed the bar below ~1600px
   (the beacon was cut off at 1400). The beacon is decoration, so it goes first. */
@media (max-width: 1599px) {
  .dlne-status-beacon { display: none !important; }
  .dlne-nav-pill { padding: 0.4rem 0.6rem; font-size: 0.75rem; gap: 0.35rem; }
  .dlne-nav-bar nav { gap: 0.35rem !important; }
}

/* Below 1700px the section pills go icon-only; each keeps its title as a tooltip. (At 1400-1700px
   the labelled pills pushed the right-hand pills off the edge.) */
@media (max-width: 1699px) {
  .dlne-nav-bar nav .dlne-nav-pill > span:last-child { display: none; }
}

.dlne-nav-pill:hover {
  color: #00f0ff;
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.dlne-nav-pill.active {
  color: #ffffff;
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Swarm Node Status Beacon in Nav */
.dlne-status-beacon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #00f0ff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: nowrap;
}

.dlne-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
  animation: dlnePulse 1.8s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}



/* ==========================================================================
   DLNE SCROLLBAR AND FOOT OF THE PAGE
   The page scrollbar and the footer trim come from the Wonderland (Valheim)
   theme: a brass thumb and a gold twisted-rope band. Both are put back to the
   logo's palette, cyan into pink on dark, for the DLNE portal only; the realms
   keep their gold.
   ========================================================================== */

/* Firefox, and any browser without ::-webkit-scrollbar: a flat cyan thumb on the dark track. */
html[data-portal="dlne"],
[data-portal="dlne"] * {
  scrollbar-width: thin;
  scrollbar-color: #00c8d6 #07090e;
}

/* Chrome, Edge, Safari. Setting scrollbar-color or scrollbar-width switches ::-webkit-scrollbar
   off in current Chrome (and made the realms' gradient thumb a flat gold one), so both go back to
   auto here and the pseudo-elements do the drawing: a slim cyan-to-pink thumb. */
@supports selector(::-webkit-scrollbar) {
  html[data-portal="dlne"],
  [data-portal="dlne"] * {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  html[data-portal="dlne"]::-webkit-scrollbar,
  [data-portal="dlne"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: #07090e;
  }
  html[data-portal="dlne"]::-webkit-scrollbar-track,
  [data-portal="dlne"] ::-webkit-scrollbar-track {
    background: #07090e;
    border-left: 1px solid rgba(0, 240, 255, 0.12);
  }
  html[data-portal="dlne"]::-webkit-scrollbar-thumb,
  [data-portal="dlne"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--dlne-cyan), var(--dlne-pink));
    border: 2px solid #07090e;
    border-radius: 5px;
    min-height: 40px;
  }
  html[data-portal="dlne"]::-webkit-scrollbar-thumb:horizontal,
  [data-portal="dlne"] ::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(90deg, var(--dlne-cyan), var(--dlne-pink));
    min-height: 0;
    min-width: 40px;
  }
  html[data-portal="dlne"]::-webkit-scrollbar-thumb:hover,
  [data-portal="dlne"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5af4f8, #ff6cc6);
  }
  html[data-portal="dlne"]::-webkit-scrollbar-thumb:horizontal:hover,
  [data-portal="dlne"] ::-webkit-scrollbar-thumb:horizontal:hover {
    background: linear-gradient(90deg, #5af4f8, #ff6cc6);
  }
  html[data-portal="dlne"]::-webkit-scrollbar-corner,
  [data-portal="dlne"] ::-webkit-scrollbar-corner {
    background: #07090e;
  }
}

/* The footer. .site-footer (components.css) is the Valheim hall's foot: a gold hairline inside its
   top edge and a knotwork rope band across it. DLNE gets one thin cyan-to-pink glow line on its top
   edge instead, the same line the nav bar wears at its own top, so the page is bracketed by the
   same light. */
.site-footer--dlne {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  background: rgba(7, 9, 14, 0.95);
  border-top: 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-footer--dlne::before {
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--dlne-cyan) 28%, var(--dlne-pink) 72%, transparent 100%);
  box-shadow: 0 0 14px var(--dlne-cyan-glow), 0 0 22px var(--dlne-pink-glow);
  opacity: 1;
  pointer-events: none;
}

/* The brand line, the toolchain note and the links are set nowrap for the Valheim footer, which is
   wider than a phone: on 390 px the emblem was pushed off the left edge and the tagline and the
   links ran off both sides. Here they wrap and centre instead. */
.site-footer--dlne .site-footer-brand,
.site-footer--dlne .site-footer-meta {
  max-width: 100%;
}
.site-footer--dlne .site-footer-title,
.site-footer--dlne .site-footer-sub {
  white-space: normal;
}
.site-footer--dlne .site-footer-meta {
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
}
@media (max-width: 899px) {
  .site-footer--dlne .site-footer-brand {
    flex-direction: column;
    text-align: center;
  }
  /* Wrapped, the bullets between the links would be left hanging at the end of a line. */
  .site-footer--dlne .site-footer-meta {
    gap: 0.4rem 1.25rem;
  }
  .site-footer--dlne .site-footer-meta > .text-slate-700 {
    display: none;
  }
}
