/* === THEME === */
:root {
  --bottom-nav-height: 64px;

  --bg: #0d1014;
  --card: #101318;
  --card-glass: #101318;
  --stroke: #181a20;
  --text: #e6e6f0;
  --muted: #ffffff;
  --primary: #8e78ff;
  --success: #55ffb6;

  /* Progress bar */
  --progress-height: 3px;
  --progress-track: rgba(255, 255, 255, 0.12);
  --progress-start: rgba(255, 96, 175, 0.9);
  --progress-end: rgba(255, 255, 255, 0.9);
  --progress-glow: 0 0 8px rgba(255, 0, 157, 0.6);

  /* Status accent (overridden by data-status) */
  --status-color: #6c757d;
  --status-glow: rgba(108, 117, 125, 0.35);
}

html,
body {
  height: 100%;
}
:root {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
@supports (font-variation-settings: normal) {
  :root {
    font-family: "Inter", system-ui, sans-serif;
  }
}

body {
  background: #0d1014;
  font-size: 1rem;
  color: var(--text);
  padding-bottom: var(--bottom-nav-height);
  scroll-behavior: smooth;
}
/* optional */
.chip i {
  opacity: 0.9;
}
#visitorLiveChip {
  border-color: rgba(142, 120, 255, 0.35);
}
#visitorTotalChip {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Titles */
.page-title {
  font-family: "Inter", sans-serif;

  text-transform: uppercase;
  font-size: 24px;
}
.text-secondary {
  font-family: "Inter", sans-serif;
}
.halloween2025 {
  font-family: "Inter", sans-serif;
}
/* Top progress bar */
#fnlbProgress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--progress-height);
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
#fnlbProgress .track {
  width: 100%;
  height: 100%;
  background: var(--progress-track);
}
#fnlbProgress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--progress-start),
    var(--progress-end)
  );
  box-shadow: var(--progress-glow);
}
@keyframes fnlbProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Nav */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(7, 8, 11, 0.85) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Buttons */
.btn-primary {
  background: #5c60f5;
  border: 0;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Glass cards */
.card.glass,
.glass {
  background: var(--card-glass) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.card:hover {
  
  box-shadow 0.2s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* KPI */
.kpi-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
}

/* Inputs */
.glass-select {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-select::placeholder {
  color: var(--muted);
}
.glass-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(142, 120, 255, 0.25);
}

/* --- Bot card layout + playlist backdrop --- */
.bot-card {
  position: relative;
  overflow: hidden;
}
.bot-card > .card-body {
  position: relative;
  z-index: 2;
}

/* Playlist backdrop via CSS var: --playlist-bg: url(...) */
.bot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(
      160deg,
      rgba(13, 13, 17, 0.8),
      rgba(13, 13, 17, 0.92)
    ),
    var(--playlist-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(1.02);
  filter: grayscale(60%);
  will-change: opacity, transform;
}
.bot-card:hover::after {
  opacity: 1;
  transform: scale(1.04);
}

/* Left status glow bar */
.bot-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 6px;
  border-radius: 1rem 0 0 1rem;
  background: var(--status-color);
  box-shadow: 0 0 60px var(--status-glow);
  z-index: 3;
}
/* Status colors */
.bot-card[data-status="available"] {
  --status-color: #5b9753;
  --status-glow: rgba(62, 230, 162, 0.99);
}
.bot-card[data-status="inuse"] {
  --status-color: #f5c469;
  --status-glow: rgba(255, 193, 7, 0.99);
}
.bot-card[data-status="offline"] {
  --status-color: #ff566e;
  --status-glow: rgba(255, 86, 110, 0.99);
}

/* Row 1: avatar + name (left) | copy (right) */
.bot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.bot-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bot-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}
.account-name {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff !important;
}

/* Row 2: playlist (LEFT) + party (RIGHT) */
.bot-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.bot-sub .sub-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bot-sub .sub-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.chip {
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.chip i {
  margin-right: 0.35rem;
  opacity: 0.8;
}
.chip-playlist {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.chip-party {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mini avatar group below */
.avatar-group {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.5rem;
}
.avatar-mini,
.avatar-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e6e6f0;
}
.avatar-mini + .avatar-mini,
.avatar-mini + .avatar-count,
.avatar-count + .avatar-mini {
  margin-left: -8px;
}
.avatar-count {
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #1a1a22;
  border-radius: 1rem;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: shimmer 1.25s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Misc */
.copy-btn {
  border-radius: 10px;
}
.text-secondary {
  color: var(--muted) !important;
}
.party-members {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  font-family: "fn-semi", sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
}
/* ===============================
   Dark glass UI for dropdowns, inputs, tooltips
   =============================== */
:root {
  --glass-surface: rgba(255, 255, 255, 0.06);
  --glass-surface-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --tooltip-bg: rgba(12, 12, 18, 0.92);
  --tooltip-border: rgba(255, 255, 255, 0.14);
}
/* Glass buttons to match the theme */
.btn-glass {
  font-family: "Inter", sans-serif;
}
/* Dark glass dropdowns (overrides) */
.dropdown-menu {
  background: linear-gradient(
    to bottom right,
    rgba(20, 20, 28, 0.82),
    rgba(12, 12, 18, 0.82)
  );
  color: var(--text);
  border: 1px solid var(--glass-border);
  font-family: "Inter", sans-serif;
  box-shadow: var(--glass-shadow);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dropdown-item {
  color: var(--text);
  border-radius: 8px;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: "Inter", sans-serif;
}
.dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Dark glass tooltips */
.tooltip {
  z-index: 10050;
}
.tooltip.tooltip-glass .tooltip-inner {
  background: rgba(12, 12, 18, 0.92);
  color: var(--text);
  font-family: "Inter", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  padding: 0.45rem 0.6rem;
}
.tooltip.tooltip-glass.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: rgba(12, 12, 18, 0.92);
}
.tooltip.tooltip-glass.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: rgba(12, 12, 18, 0.92);
}
.tooltip.tooltip-glass.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: rgba(12, 12, 18, 0.92);
}
.tooltip.tooltip-glass.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: rgba(12, 12, 18, 0.92);
}

.btn-dark {
  background: #fff600;
  color: #000;
}

/* ===== Mobile polish (XS/SM) ===== */
@media (max-width: 575.98px) {
  .page-title {
    font-size: 18px;
  }
  .halloween2025 {
    font-size: 14px;
  }
  .navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  /* inputs */
  .glass-select {
    min-width: 160px;
  }

  /* cards */
  .card.glass {
    border-radius: 0.85rem;
  }
  .bot-avatar {
    width: 32px;
    height: 32px;
  }
  .account-name {
    font-size: 1rem;
  }

  .bot-top {
    gap: 0.5rem;
  }
  .bot-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .bot-sub .sub-right {
    margin-left: 0;
  }
  .chip {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }

  .avatar-mini,
  .avatar-count {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .page-title {
    font-size: 20px;
  }
  .bot-avatar {
    width: 36px;
    height: 36px;
  }
  .chip {
    font-size: 0.9rem;
  }
}

/* Make the vertical rule subtle in dark UI */
.vr {
  opacity: 0.5;
}

.link-secondary {
  color: #fff !important;
  -webkit-text-decoration-color: RGBA(
    var(--bs-secondary-rgb),
    var(--bs-link-underline-opacity, 1)
  ) !important;
  text-decoration-color: RGBA(
    var(--bs-secondary-rgb),
    var(--bs-link-underline-opacity, 1)
  ) !important;
  font-weight: 500;
}
.nav-link {
  display: block;
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: 0 0;
  border: 0;
  font-size: 0.875rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

/* full-width band under header */
.search-band {
  width: 100%;
  background: #0d1014; /* slightly different so it reads as its own bar */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);

  position: relative;
  z-index: 2000;
}

.fnlbots {
  padding: 25px;
}
/* limit bar width + center it */
.search-shell {
  max-width: 720px; /* tune this if you want wider/narrower */
  margin-left: auto;
  margin-right: auto;
}

/* the actual pill box */
.search-inner {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;

  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

/* reuse your same searchInput but styled like emoji.gg */
.search-input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.2;
  width: 100%;
}
.search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.search-input:focus {
  outline: none;
  box-shadow: none;
}

/* right-side small icon button (folder in their UI) */
.upload-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}
.upload-btn:hover {
  color: rgba(255, 255, 255, 1);
  cursor: pointer;
}

/* search icon styling */
.search-inner i {
  font-size: 1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
}

/* mobile: tighten */
@media (max-width: 575.98px) {
  .search-inner {
    padding: 0.5rem 0.6rem;
  }
  .search-input {
    font-size: 0.9rem;
  }
}

/* Footer band */
.site-footer {
  background-color: #0d1014; /* same bg as body or slightly different if you want */
  border-top: 1px solid rgba(255, 255, 255, 0.07); /* that thin line */
  color: rgba(255, 255, 255, 0.6);
  font-family: "Inter", system-ui, sans-serif;
  /* remove blur, footer in screenshot is clean, not glass */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Layout inside footer */
.footer-inner {
  padding-top: 1.5rem;
  padding-bottom: 2rem;

  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* left text color tweaks */
.text-secondary-emphasis {
  color: rgba(255, 255, 255, 0.8) !important;
}
.text-secondary {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* right-side links */
.footer-links .list-inline-item + .list-inline-item {
  margin-left: 1rem;
}

.footer-link {
  color: #7e828b; /* slight blue-ish link like many dark UIs */
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}
.footer-link:hover {
  color: #fff;
  text-decoration: none;
}

/* mobile stacking behavior */
@media (max-width: 575.98px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links .list-inline-item {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .search-shell {
    max-width: 100%;
  }
}

.btn-status {
  white-space: nowrap;
  background: #cfd6df;
  color: #000;
  font-size: 0.875rem;
}

.btn-status:hover {
  color: #000;
  background: #d9dee5;
}

.btn {
  font-size: 0.875rem;
  text-transform: none !important;
  padding: 0.6rem 0.75rem;
  border-radius: 0.375rem !important;
}

.card {
  overflow: hidden;
  border: 1px solid #181a20;
  background: #101318;
}
.feature-row,
.hero {
  background: #101318;
  border-radius: 8px;
}
*,
::after,
::before {
  border: 0 solid #e7eaf0;
}
.card-body {
  flex: 1 1 auto;
  color: #87898c;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #cbced2;
}
.h6,
h6 {
  font-size: 0.875rem;
}
.feature-row .border-right {
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-row a p {
  color: #7e828b;
}
.fs-14 {
  font-size: 14px !important;
}

.feature-row .border-right {
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

a {
  text-decoration: none;
}

.cmds {
  color: #fff600;
}

.docs {
  color: #5b9753;
}

.disc {
  color: #5c60f5;
}

.content-hero {
  padding-right: 500px;
  background-image: url(https://pfps.gg/assets/img/hero.webp);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: -0px 0px;
  border-radius: 6px;
  background-size: cover;
}

.h4,
h4 {
  font-size: 1.125rem;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.3;
}

.color-online {
  color: #5b9753;
  background: #5b9753;
  animation: pulse-online 2s infinite;
}

.color-inuse {
  color: #f5c469;
  background: #f5c469;
  animation: pulse-inuse 2s infinite;
}

.color-offline {
  color: #b12e2e;
  background: #b12e2e;
  animation: pulse-offline 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 30px 12px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes pulse-online {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 151, 83, 0.6);
  }
  70% {
    box-shadow: 0 0 30px 12px rgba(91, 151, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 151, 83, 0);
  }
}

@keyframes pulse-inuse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 196, 105, 0.6);
  }
  70% {
    box-shadow: 0 0 30px 12px rgba(245, 196, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 196, 105, 0);
  }
}

@keyframes pulse-offline {
  0% {
    box-shadow: 0 0 0 0 rgba(177, 46, 46, 0.6);
  }
  70% {
    box-shadow: 0 0 10px 12px rgba(177, 46, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(177, 46, 46, 0);
  }
}

/* =========================
   HERO BACKDROP WITH GRID
   ========================= */

/* =========================
   Animated grid background
   ========================= */

.animated-grid {
  position: relative;
  background-color: #0d1014; /* base stays your bg */
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  isolation: isolate; /* keep blend/filters inside this section */
}

/* layer that draws + animates the grid */
.animated-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* This is the grid pattern:
     - one vertical repeating-linear-gradient
     - one horizontal repeating-linear-gradient
     - both are semi-transparent lines
  */
  background-image: repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.5) 0px,
      rgba(255, 255, 255, 0.5) 1px,
      transparent 1px,
      transparent 65px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.5) 0px,
      rgba(255, 255, 255, 0.5) 1px,
      transparent 1px,
      transparent 65px
    );

  /* slightly dim it overall so it doesn't fight text/cards */
  opacity: 0.07;

  /* smooth edges */
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.06));

  /* animate with transform instead of background-position
     (transform is cheaper on GPU) */
  animation: grid-slide 30s linear infinite;
  will-change: transform;
  transform-origin: 0 0;
}

/* optional: subtle second mini-grid for detail, even fainter */
.animated-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 8px
    );

  opacity: 0.04;
  animation: grid-slide-small 45s linear infinite;
  will-change: transform;
  transform-origin: 0 0;
}

/* slow drift for main grid */
@keyframes grid-slide {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-80px, -40px, 0) scale(1.03);
  }
}

/* even slower drift for micro grid */
@keyframes grid-slide-small {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-40px, -20px, 0) scale(1.04);
  }
}

/* make sure real content sits above the grid layers */
.animated-grid > .container {
  position: relative;
  z-index: 2;
  padding-top: 1.5rem; /* some breathing room */
  padding-bottom: 1.5rem;
}
