/* ==========================================================================
   Stream Command Center - Sovereign Creator HQ Theme
   Executive 90s Cyber-Terminal Aesthetic with Dynamic Dark-to-Light Gradients
   Palette: Deep Midnight Obsidian/Slate (#040711, #080d1a, #0e172a)
   Electric Teals (#00f5ff, #00ffd5, #38bdf8) & Subtle Violet Accents (#a855f7)
   ========================================================================== */

:root {
  --bg-deep: #040711;
  --bg-dark: #080d1a;
  --bg-slate: #0e172a;
  --bg-card: rgba(16, 25, 46, 0.92);
  --bg-card-hover: rgba(24, 38, 68, 0.96);
  --border-cyan: rgba(0, 245, 255, 0.35);
  --border-cyan-glow: rgba(0, 245, 255, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --cyan: #00f5ff;
  --cyan-bright: #00ffd5;
  --cyan-muted: #38bdf8;
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-glow: rgba(168, 85, 247, 0.25);
  --emerald: #34d399;
  --gold: #fbbf24;
  --crimson: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-mono: 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  /* Luminous Dark-to-Light Vertical Canvas Gradient with Subtle CRT Scanline Texture */
  background-image: 
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(0, 245, 255, 0.12) 0%, rgba(145, 70, 255, 0.05) 45%, transparent 80%),
    linear-gradient(180deg, #0d1527 0%, #080d19 35%, #040711 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 3px);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 20px 80px 20px;
}

.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   TOP TERMINAL STATUS STRIP & NAVIGATION BAR
   ========================================================================== */
.terminal-top-strip {
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.98) 0%, rgba(8, 13, 24, 0.98) 100%);
  border-bottom: 1px solid rgba(0, 245, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  padding: 6px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.terminal-top-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-strip-left, .top-strip-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-led-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  display: inline-block;
}

.top-strip-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.top-strip-divider {
  color: rgba(255, 255, 255, 0.2);
}

.top-strip-tag {
  color: var(--cyan-bright);
}

.top-strip-operator {
  color: var(--cyan-muted);
  font-weight: 700;
}

.top-strip-pill {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.18) 0%, rgba(0, 245, 255, 0.05) 100%);
  border: 1px solid var(--border-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

/* TOP NAVIGATION BAR */
.terminal-nav-bar {
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.97) 0%, rgba(8, 14, 26, 0.98) 100%);
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 29px;
  z-index: 999;
  backdrop-filter: blur(16px);
}

.terminal-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-brand-link {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.06em;
}

.terminal-brand-link .brand-bracket {
  color: var(--cyan);
}

.terminal-brand-link .brand-text {
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.tnav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tnav-link:hover {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.22) 0%, rgba(0, 245, 255, 0.06) 100%);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.35);
}

.tnav-link.active {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.35) 0%, rgba(12, 24, 46, 0.95) 100%);
  border: 1px solid var(--cyan);
  color: var(--cyan-bright);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 800;
}

/* ==========================================================================
   PAGE HERO & TERMINAL CHASSIS HEADERS
   ========================================================================== */
.page-hero {
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: left;
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
}

.terminal-prompt-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.15) 0%, rgba(0, 245, 255, 0.04) 100%);
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 2px 10px;
  border-radius: 4px;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 45%, #38bdf8 80%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 780px;
}

/* ==========================================================================
   TERMINAL CHASSIS & CARDS (Dark-to-Light Luminous Depth)
   ========================================================================== */
.terminal-card {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.9) 0%, rgba(9, 15, 28, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-top: 2px solid;
  border-image: linear-gradient(90deg, rgba(0,245,255,0.2) 0%, #00f5ff 35%, #38bdf8 70%, rgba(168,85,247,0.3) 100%) 1;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  margin-bottom: 28px;
  position: relative;
}

.terminal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.terminal-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.18) 0%, rgba(0, 245, 255, 0.05) 100%);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.terminal-tag-purple {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0.06) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--purple-light);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 0;
}

.btn-cyan {
  background: linear-gradient(180deg, #5ef7ff 0%, #00d4eb 50%, #009eb0 100%);
  color: #040711;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 18px rgba(0, 245, 255, 0.35);
}
.btn-cyan:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 26px rgba(0, 245, 255, 0.6);
  transform: translateY(-1px);
}

.btn-purple {
  background: linear-gradient(180deg, #c084fc 0%, #a855f7 50%, #7928ca 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 18px rgba(168, 85, 247, 0.35);
}
.btn-purple:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 26px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
}

.btn-terminal {
  background: linear-gradient(180deg, rgba(28, 44, 76, 0.8) 0%, rgba(12, 20, 36, 0.95) 100%);
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-terminal:hover {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.25) 0%, rgba(18, 30, 52, 0.95) 100%);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

/* ==========================================================================
   LIVE BROADCAST STAGE & SPOTLIGHT CAROUSEL
   ========================================================================== */
.offline-hero-slate {
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.8) 0%, rgba(8, 14, 26, 0.9) 100%);
  border: 1px dashed rgba(0, 245, 255, 0.35);
  border-radius: 8px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.slate-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.offline-hero-slate h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.offline-hero-slate p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-size: 0.92rem;
}

.slate-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SPOTLIGHT 3D CAROUSEL */
.spotlight-carousel-section {
  margin-bottom: 28px;
}

.spotlight-carousel-inner {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.9) 0%, rgba(9, 15, 28, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-top: 2px solid #00f5ff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.spotlight-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.spotlight-carousel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.spotlight-title-text {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.carousel-viewport {
  position: relative;
  height: 180px;
  perspective: 1000px;
  overflow: hidden;
  margin: 10px 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.spotlight-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 320px;
  height: 165px;
  margin-left: -160px;
  background: linear-gradient(180deg, rgba(22, 34, 60, 0.95) 0%, rgba(10, 16, 30, 0.98) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.spotlight-card.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 10;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.35);
}

.spotlight-card.is-prev {
  transform: translateX(-180px) scale(0.82);
  opacity: 0.55;
  z-index: 5;
}

.spotlight-card.is-next {
  transform: translateX(180px) scale(0.82);
  opacity: 0.55;
  z-index: 5;
}

.spotlight-card.is-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.spotlight-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 8px;
}

.spotlight-card .live-badge {
  color: var(--emerald);
  font-weight: 800;
}

.spotlight-card .streamer-tag {
  color: var(--cyan-muted);
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.spotlight-card .streamer-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.spotlight-card .streamer-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

.spotlight-card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.9) 0%, rgba(8, 14, 26, 0.9) 100%);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-nav-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 16px var(--cyan);
}
.carousel-nav-btn.btn-prev { left: 10px; }
.carousel-nav-btn.btn-next { right: 10px; }

.carousel-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ==========================================================================
   CLIP ARCHIVE GRID
   ========================================================================== */
.clip-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover, .tab-btn.active {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.25) 0%, rgba(12, 22, 42, 0.95) 100%);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.35);
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.clip-card {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.85) 0%, rgba(9, 15, 28, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.clip-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.25);
}

.clip-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #162442 0%, #090e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clip-play-icon {
  font-size: 28px;
  color: var(--cyan);
  opacity: 0.8;
  transition: all 0.2s;
}
.clip-card:hover .clip-play-icon {
  transform: scale(1.15);
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 16px var(--cyan);
}

.clip-badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.clip-views {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.clip-body {
  padding: 12px;
}

.clip-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.clip-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   SOVEREIGN LINK-IN-BIO MATRIX
   ========================================================================== */
.bio-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.bio-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.85) 0%, rgba(10, 16, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bio-link-card:hover {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(28, 46, 82, 0.92) 0%, rgba(14, 22, 40, 0.98) 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.25);
}

.bio-link-icon {
  font-size: 22px;
}

.bio-link-info {
  flex: 1;
}

.bio-link-info strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 2px;
}

.bio-link-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.bio-link-arrow {
  color: var(--cyan);
  font-weight: 900;
  font-family: var(--font-mono);
}

/* ==========================================================================
   REPUTATION & DIGITAL PASSPORT
   ========================================================================== */
.reputation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.rep-stat-box {
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.8) 0%, rgba(9, 15, 28, 0.92) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rep-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rep-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #ffffff 15%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rep-sub {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   STORE & P2P DIGITAL DOWNLOADS
   ========================================================================== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.store-item-card {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.85) 0%, rgba(9, 15, 28, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.store-item-card.highlight-card {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(24, 40, 72, 0.95) 0%, rgba(12, 20, 36, 0.98) 100%);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.store-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.store-item-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.store-item-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-bottom: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 48px;
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .terminal-top-inner { flex-direction: column; align-items: flex-start; }
  .terminal-nav-links { overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .tnav-link { font-size: 0.72rem; padding: 5px 8px; }
}

/* ==========================================================================
   Gamer P2P Network Health Badge & Telemetry HUD System
   ========================================================================== */
.p2p-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(8, 16, 30, 0.94) 0%, rgba(4, 24, 36, 0.9) 100%);
  border: 1px solid rgba(0, 245, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.15), inset 0 0 10px rgba(0, 245, 255, 0.08);
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  outline: none;
}

.p2p-health-badge:hover {
  border-color: #00f5ff;
  background: linear-gradient(135deg, rgba(12, 28, 52, 0.98) 0%, rgba(8, 42, 56, 0.94) 100%);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.38), inset 0 0 14px rgba(0, 245, 255, 0.2);
  transform: translateY(-1px) scale(1.02);
}

.p2p-health-badge:active {
  transform: translateY(0) scale(0.98);
}

.p2p-health-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 5px; height: 5px;
  border-top: 2px solid #00f5ff;
  border-left: 2px solid #00f5ff;
  pointer-events: none;
}

.p2p-health-badge::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; width: 5px; height: 5px;
  border-bottom: 2px solid #00f5ff;
  border-right: 2px solid #00f5ff;
  pointer-events: none;
}

.p2p-health-radar {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p2p-health-radar-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  transition: background 0.3s, box-shadow 0.3s;
}

.p2p-health-radar-ping {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: p2p-radar-ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

@keyframes p2p-radar-ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.3); opacity: 0; }
}

.p2p-health-bracket {
  color: #64748b;
  font-weight: 900;
}

.p2p-health-title {
  color: #67e8f9;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p2p-health-score {
  color: #34d399;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.p2p-health-ping {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

/* Status variants */
.p2p-health-badge.status-moderate {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}
.p2p-health-badge.status-moderate .p2p-health-radar-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}
.p2p-health-badge.status-moderate .p2p-health-radar-ping {
  border-color: #fbbf24;
}
.p2p-health-badge.status-moderate .p2p-health-score {
  color: #fde68a;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}
.p2p-health-badge.status-moderate .p2p-health-ping {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.p2p-health-badge.status-degraded {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}
.p2p-health-badge.status-degraded .p2p-health-radar-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}
.p2p-health-badge.status-degraded .p2p-health-radar-ping {
  border-color: #ef4444;
}
.p2p-health-badge.status-degraded .p2p-health-score {
  color: #fca5a5;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.p2p-health-badge.status-degraded .p2p-health-ping {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ==========================================================================
   Gamer Health Bar & Bandwidth Pool Visualizations
   ========================================================================== */
.p2p-health-bar-track {
  display: inline-flex;
  width: 46px;
  height: 7px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  vertical-align: middle;
  position: relative;
}

.p2p-health-bar-fill {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.p2p-health-bar-fill.fill-used {
  background: linear-gradient(90deg, #10b981, #00f5ff);
  box-shadow: 0 0 6px #10b981;
}

.p2p-health-bar-fill.fill-allocated {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 6px #fbbf24;
}

.p2p-health-bar-fill.fill-available {
  background: rgba(30, 41, 59, 0.6);
}

.p2p-health-bw {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

/* Expanded HUD Health Bar Module */
.p2p-hud-health-section {
  margin: 16px 0 12px;
  background: rgba(8, 16, 30, 0.85);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
}

.p2p-hud-health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.p2p-hud-health-title {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #67e8f9;
}

.p2p-hud-health-hp {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 900;
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.p2p-hud-main-bar-track {
  width: 100%;
  height: 16px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 245, 255, 0.15);
  position: relative;
}

.p2p-hud-main-bar-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 18px, rgba(0, 0, 0, 0.3) 18px, rgba(0, 0, 0, 0.3) 20px);
  pointer-events: none;
}

.p2p-hud-main-bar-fill {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.p2p-hud-main-bar-fill.bar-used {
  background: linear-gradient(90deg, #059669, #10b981);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.p2p-hud-main-bar-fill.bar-allocated {
  background: linear-gradient(90deg, #d97706, #fbbf24);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.p2p-hud-main-bar-fill.bar-available {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.p2p-hud-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  font-family: ui-monospace, monospace;
}

.p2p-hud-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.p2p-hud-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.p2p-hud-bw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.p2p-hud-bw-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
}

.p2p-hud-bw-card-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
  display: block;
}

.p2p-hud-bw-card-val {
  font-family: ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: 3px;
  display: block;
}

