:root {
  /* Brand palette */
  --brand: #0a59dd; /* Vermilion red */
  --brand-gradient-dark: rgba(47, 91, 215, 0.06);
  --brand-gradient-light: rgba(10, 89, 221, 0.18);
  --ink: #eef1f3; /* Text on dark */
  --muted: #a8afb7;
  --bg: #050505; /* Deep charcoal */
  --bg-2: #14161a; /* Elevated surfaces */
  --line: #23262c;
  --radius: 18px;
  --container: 1100px;

  /* Typography */
  --font-manrope: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-sans: "Spectral", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --fs-900: clamp(2.2rem, 4vw, 3.1rem);
  --fs-800: clamp(1.6rem, 3vw, 2.2rem);
  --fs-700: clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-600: 1.125rem;
  --fs-500: 1rem;

  /* Unified hover tokens */
  --card-hover-border: rgba(255, 255, 255, 0.25);
  --card-hover-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  --card-hover-overlay-alpha: 0.03; /* subtle “old” bg brighten */

  /* Config for image-pane cards (can override per-card inline) */
  --pane-width: 50%; /* width of the right image panel */
  --pane-fade-start: 44%; /* where the fade begins (percentage of LEFT area) */
  --pane-fade-size: 22%; /* how wide the fade is inside the LEFT area */
  --pane-fade-overflow: 32px; /* small spill of the fade into the image pane for a soft seam */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-manrope);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* background: url("/img/Background_Empty.png") no-repeat center center fixed; */
  background: url("/img/bgimage.png") no-repeat center center fixed;
  background-size: cover;
}

.cover-container {
  background: radial-gradient(1100px 600px at 90% -10%, var(--brand-gradient-light), transparent 60%), radial-gradient(900px 500px at -10% 10%, var(--brand-gradient-dark), transparent 50%);
  min-height: 100vh;
  height: auto !important;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}
.pad-block {
  padding-block: 3rem;
}
.mute,
.mute * {
  color: var(--muted);
}

/* ===== Header/Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-collapse > ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.navbar-collapse > ul > li > a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  color: var(--ink);
}
.navbar-collapse > ul > li > a.active,
.navbar-collapse > ul > li > a:hover {
  background: var(--bg-2);
}
.navbar-collapse .dropdown-menu {
  min-width: 16rem;
  background: rgba(12, 13, 16, 0.98);
  border: 1px solid var(--line);
  padding: 0.4rem;
}
.navbar-collapse .dropdown-menu .dropdown-item {
  border-radius: 10px;
  color: var(--ink);
}
.navbar-collapse .dropdown-menu .dropdown-item.active,
.navbar-collapse .dropdown-menu .dropdown-item:hover {
  background: var(--bg-2);
  color: var(--ink);
}

@media (max-width: 767.98px) {
  .navbar-expand-md .navbar-nav .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
  }
}

.sr-only {
  position: absolute;
  left: -9999px;
}

/* ===== Responsive Nav ===== */
@media (max-width: 860px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .site-nav {
    display: none;
    position: absolute;
    inset: 60px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    padding: 1rem;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.98rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  letter-spacing: 0.2px;
}
.btn:hover {
  filter: brightness(1.05);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.small {
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
}
/* present utility */
.btn.stretch {
  display: block;
  width: 100%;
  text-align: center;
}

/* Loadouts: special Erkul button */
.nyx-card--with-link .loadout-link {
  align-self: flex-end;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffa537;
  color: #000;
  border: none;
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: 14px;
  margin-top: 0.9rem;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}
.nyx-card--with-link .loadout-link:hover {
  filter: brightness(1.15);
  color: #000;
  /* border-color: var(--card-hover-border); */
  border-color: var(--bs-border-color, #c5cbd3);
  box-shadow: 0 2px 6px rgba(255, 165, 55, 0.2);
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid.duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.tri {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid.duo,
  .grid.tri {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: saturate(120%) blur(10px);
}
.card h3 {
  margin-top: 0;
  font-family: var(--font-manrope);
  font-size: var(--fs-700);
}

/* ===== Unified hover for LINKED cards + Commands cards (same visual) ===== */
.tool-card-link:hover .card,
.card.is-link:hover,
a.card-link:hover .card,
.is-commands a:hover .card.cmd-card,
.is-commands .card.cmd-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, var(--card-hover-overlay-alpha)), var(--card-hover-shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-block: 2rem;
  backdrop-filter: saturate(120%) blur(10px);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), var(--brand-gradient-dark));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.footer-grid .right {
  text-align: right;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid .right {
    text-align: left;
  }
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--bg);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ===== Misc site styles ===== */
#b_avatar_wrapper,
#b_intro_wrapper,
#b_twitch_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
}
main,
#b_twitch_wrapper,
#b_avatar_wrapper {
  gap: 40px;
}
#b_avatar_background {
  background-color: #004ecf;
  border-radius: 50%;
  padding: 3px;
  transition: ease-in-out 0.2s;
}
#b_avatar_background:hover {
  transform: scale(1.2, 1.2);
}
#b_avatar_image {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  box-shadow: 0 0 250px 25px #004ecf;
}
#b_intro_wrapper {
  gap: 10px;
}
#b_intro_header {
  line-height: 2.4rem;
}
img#b_intro_header {
  max-height: 4rem;
}
#b_intro_header .normal-font {
  font-size: 2.8rem;
  font-weight: bold;
  vertical-align: super;
}
#b_intro_header .special-font {
  font-family: "Permanent Marker", cursive;
  color: #004ecf;
  font-size: 4rem;
}
#b_intro_subtext {
  font-size: 1rem;
}

#b_twitch_container {
  position: relative;
  flex-direction: row;
  height: 0;
  width: 50%;
  padding-top: 28%;
}
@media (max-width: 860px) {
  #b_twitch_container {
    width: 100%;
    padding-top: 56.25%;
  }
}
#twitch-embed > iframe {
  border-radius: 7px;
  box-shadow: 0px 0px 20px 0px #000000;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

#b_footer_linklist {
  gap: 15px;
}
#b_footer_linklist > a {
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  display: inline-block;
  margin: 0;
  transition: ease-in-out 0.2s;
}
#b_footer_linklist > a:hover {
  transform: scale(1.3, 1.3);
}

#livecheck-toast {
  animation: pulse 2s infinite;
}
@-webkit-keyframes pulse {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}

#b_mainlink > a {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  background-color: rgba(145, 71, 255, 0.5);
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  transition: all ease-in-out 0.3s;
}
#b_mainlink > a > i {
  margin-right: 5px;
}
#b_mainlink > a:hover {
  background-color: rgb(145, 71, 255);
}

#b_linklist {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
}
#b_linklist > a {
  font-size: 1rem;
  height: 2.7rem;
  width: 2.7rem;
  border-radius: 50%;
  line-height: 2.5rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: rgba(255, 255, 255, 0.75);
  display: inline-block;
  margin: 0;
  transition: ease-in-out 0.2s;
}
#b_linklist > a:hover {
  color: white;
  background-color: #004ecf;
  border-color: #004ecf;
  transform: scale(1.3, 1.3);
}

/* ===== Nyx Sections ===== */
#nyx-hero,
#nyx-loadouts-hero {
  padding: 0;
}
#nyx-hero .lead,
#nyx-loadouts-hero .lead {
  margin-inline: auto;
  max-width: 42rem;
}
#nyx-hero .btn,
#nyx-loadouts-hero .btn {
  min-width: 160px;
}

.nyx-subnav .nav-link,
.vault-subnav .nav-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
}
.nyx-subnav .nav-link:hover,
.vault-subnav .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}
.nyx-subnav .nav-link.active,
.vault-subnav .nav-link.active {
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}
.nyx-subnav .nav-link.disabled,
.vault-subnav .nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.loadout-group + .loadout-group {
  margin-top: 3rem;
}

.badge.text-bg-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge.optional-badge {
  background: rgba(255, 145, 0, 0.18);
  color: #ffc97c;
  border: 1px solid rgba(255, 145, 0, 0.35);
  font-weight: 700;
}

.nyx-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1.1rem 1.6rem;
}
.nyx-card .content {
  flex: 1 1 auto;
}
.nyx-card ul,
.nyx-card ol {
  /* padding-left: 1rem; */
  margin-bottom: 0;
}
.nyx-card ul li,
.nyx-card ol li {
  margin-bottom: 0.3rem;
}

/* ===== Loadouts ===== */
.loadout-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 12, 12, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.loadout-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.loadout-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.loadout-details {
  padding-left: 0.4rem;
}

.detail-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink);
}
.detail-item i {
  font-size: 0.95rem;
  color: var(--ink);
  width: 1.25rem;
}
.detail-item strong {
  color: var(--ink);
  margin-right: 0.25rem;
}
.detail-item .crew-min {
  font-size: 0.8rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loadout-infield {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  background: rgba(12, 12, 12, 0.8);
  margin-top: 0.9rem;
}

.phase-block-header i {
  color: var(--brand);
}
/* .phase-description {
  max-width: 720px;
} */
.phase-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.phase-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.phase-item .card-body {
  height: 100%;
  flex: 1 1 auto;
}

/* ===== Media helpers preserved ===== */
.phase-thumb {
  flex: 0 0 200px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 12, 12, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.phase-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ===== Phase content & lists ===== */
.phase-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.phase-item .phase-subtitle,
.section-item-description {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Main detail list: NO left padding, tight gap */
.phase-detail {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
/* Normalize fonts (strong shouldn’t shrink/grow) */
.phase-detail,
.phase-detail * {
  font-size: 1rem;
  line-height: 1.5;
}
.phase-detail > li strong,
.phase-bullet-label,
.phase-detail > li strong.phase-detail-title {
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.phase-detail > li {
  display: block;
}
.phase-detail > li span {
  color: var(--ink);
}

/* Bullet sublists: left padding + tight gap */
.phase-detail-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0.1rem 0 0 0;
  display: flex;
  flex-direction: column;
}
.phase-detail-bullets > li {
  position: relative;
  padding-left: 1rem;
}
.phase-detail-bullets > li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.phase-detail-bullets > li span {
  color: var(--ink);
}

/* Ordered steps */
.phase-steps {
  padding-left: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: var(--ink);
}

/* ===== Tools (linked card wrapper) ===== */
.tool-card-link {
  text-decoration: none;
  color: inherit;
}
.tool-top {
  gap: 0.75rem;
}
.tool-thumb {
  flex: 0 0 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(12, 12, 12, 0.3);
}
.tool-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tool-card .card-body {
  padding: 1rem 1.1rem;
  gap: 0.75rem;
}
.tool-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem !important;
}
.tool-card p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.tool-link-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.tool-card .tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* --- Commands Page Enhancements --- */
.marker {
  font-family: "Permanent Marker", cursive;
  color: #004ecf;
}
.search {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.grid-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card.cmd-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
  position: relative; /* for centered toast */
}
.card.cmd-card .h5 {
  letter-spacing: 0.5px;
}
.card.cmd-card .group-badge {
  border-color: rgba(255, 255, 255, 0.12) !important;
  cursor: pointer;
}
.card.cmd-card p {
  line-height: 1.35;
}

/* ===== Streamplan (Schedule) ===== */
#b_schedule {
  scroll-margin-top: 80px;
}
#b_schedule .card,
#b_nextstream .card {
  border-radius: 0.75rem;
  box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
}
#b_schedule .card.cmd-card.has-cover,
#b_nextstream .card.cmd-card.has-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 15, 0.9);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#b_schedule .card-body,
#b_nextstream .card-body {
  padding: 0.75rem 1rem;
}
#b_schedule .card.cmd-card.has-cover::before,
#b_nextstream .card.cmd-card.has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--schedule-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(12px);
  transform: scale(1.12);
  opacity: 0.7;
  z-index: -2;
}
#b_schedule .card.cmd-card.has-cover .card-body,
#b_nextstream .card.cmd-card.has-cover .card-body {
  position: relative;
  z-index: 1;
  background: rgba(5, 7, 16, 0.58);
  backdrop-filter: blur(10px);
  background-clip: padding-box;
}
#b_schedule .card.cmd-card.has-cover .content,
#b_nextstream .card.cmd-card.has-cover .content {
  text-shadow: 0 2px 12px rgba(5, 5, 5, 0.55);
}

#b_schedule .card.cmd-card.offline-card {
  position: static;
  overflow: visible;
  isolation: auto;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: none;
}

#b_schedule .schedule-time {
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0.125rem;
}
#b_schedule .schedule-title {
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.125rem;
}
#b_schedule .schedule-category {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
}
#b_schedule .day-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#b_schedule .offline {
  color: var(--bs-secondary-color, #6c757d);
}

/* Buttons (compat) */
.btn.secondary {
  background-color: var(--bs-secondary-bg, #f2f4f7);
  color: var(--bs-body-color, #212529);
  border: 1px solid var(--bs-border-color, #d0d5dd);
}
.btn.secondary:hover {
  background-color: var(--bs-tertiary-bg, #e9edf3);
  color: var(--bs-body-color, #212529);
  border-color: var(--bs-border-color, #c5cbd3);
}
.btn.secondary:active {
  background-color: var(--bs-tertiary-bg, #e3e8ee);
}
.btn.secondary:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 2px;
}
.btn.ghost {
  background-color: transparent;
  color: var(--bs-body-color, #212529);
  border: 1px solid var(--bs-border-color, #d0d5dd);
}
.btn.ghost:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
.btn.ghost:active {
  background-color: rgba(0, 0, 0, 0.05);
}
.btn.ghost:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 2px;
}
.btn.stretch {
  display: block;
  width: 100%;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .btn.secondary {
    background-color: #2b2f31;
    color: #e6e6e6;
    border-color: #3a3f44;
  }
  .btn.secondary:hover {
    background-color: #32373a;
  }
  .btn.ghost {
    color: #e6e6e6;
    border-color: #3a3f44;
  }
  .btn.ghost:hover {
    background-color: rgba(255, 255, 255, 0.06);
  }
}

/* ======= Schedule/Next-Stream ======= */
#b_nextstream .schedule-cover,
#b_schedule .schedule-cover {
  height: 100px;
  width: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}
.schedule-datetime {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0.2px;
  font-size: 1rem;
}
#b_nextstream .card.cmd-card .h5,
#b_schedule .card.cmd-card .h5 {
  font-size: 1.15rem;
  font-weight: 900;
}
#b_nextstream .card.cmd-card .h5 a,
#b_schedule .card.cmd-card .h5 a {
  color: #9146ff;
  text-decoration-color: rgba(145, 70, 255, 0.45);
}
#b_nextstream .card.cmd-card .h5 a:hover,
#b_schedule .card.cmd-card .h5 a:hover {
  text-decoration: underline;
}

#b_schedule .offline-card {
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
#b_schedule .offline-card .offline-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
}
#b_schedule .offline-card .card-body {
  padding: 0.625rem 0.875rem;
}
#b_schedule .card:hover,
#b_nextstream .card:hover {
  transform: none;
}

/* Mark past (already finished) schedule items with a subtle fade */
#b_schedule .card.cmd-card.past .text-body-secondary,
#b_schedule .card.cmd-card.past .text-primary-emphasis,
#b_schedule .card.cmd-card.past .schedule-datetime {
  color: var(--muted) !important;
  opacity: 0.5;
}

/* ===== Commands copy hint & toast ===== */
.cmd-copy-hint {
  margin: 0 0 0.35rem 0;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.cmd-copy-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(16, 185, 129, 0.95);
  color: #eafff4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.cmd-copy-toast.show {
  opacity: 1;
}

/* ===================================================== */
/* Opt-in right-side background image for any card       */
/* Use: .card.bg-pane + style="--phase-image:url(...)"   */
/* ===================================================== */
.card.bg-pane {
  position: relative;
  overflow: hidden;
}

/* Image pane (::after) — anchored to the card's right side */
.card.bg-pane::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: var(--phase-image);
  mask-image: radial-gradient(circle farthest-side at right bottom, rgba(99, 19, 19, 1) 0%, transparent 80%);
  background-size: cover; /* <= image preserves aspect ratio */
  background-position: right center;
  background-repeat: no-repeat, no-repeat;
  z-index: 0;
}

/* Keep real content above overlays */
.card.bg-pane > * {
  position: relative;
  z-index: 2;
}

/* Optional: hide inner thumbs when bg-pane is used */
.card.bg-pane.hide-thumb .loadout-thumb,
.card.bg-pane.hide-thumb .phase-thumb {
  display: none;
}

.dice-stats-strip .card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  min-height: 130px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.dice-stats-strip .card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.dice-stats-strip .card-body {
  padding: 1.1rem;
  gap: 0.35rem;
}
.live-stats-grid .card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  min-height: 120px;
}
.ranking-card .card-body {
  padding: 1.5rem;
}
.ranking-card .card-title {
  margin-bottom: 0.5rem;
}
.ranking-entry {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ranking-entry .badge.rank-badge,
.pulse-leaderboard-entry .badge.rank-badge {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
}
.ranking-entry:last-child {
  border-bottom: none;
}
.ranking-entry-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.ranking-entry-info {
  flex: 1;
  min-width: 0;
}
.dice-live-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
}
.dice-live-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.live-roll-entry {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
}
.live-roll-info {
  flex: 1;
  min-width: 0;
}
.dice-face-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}
.dice-face-display {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), rgba(15, 15, 15, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  color: #fff;
  text-align: center;
}
.dice-face-number {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  width: 100%;
  line-height: 1;
  color: inherit;
}
.dice-face-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: inherit;
  width: 100%;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dice-face-type {
  font-size: 0.55rem;
  letter-spacing: 0;
  margin-top: 0.1rem;
  letter-spacing: 0 !important;
}
.legend-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}
.legend-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legend-info strong {
  display: block;
  font-size: 1rem;
}
.legend-info small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.legend-main {
  flex: 1;
}
.legend-info {
  font-size: 0.75rem;
}
.legend-chance {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(10, 89, 221, 0.45);
  color: #fff;
}
.legend-main .dice-face-number {
  letter-spacing: 0;
}
.live-feature-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 15, 15, 0.9);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
}
.live-feature-card .card-body {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-dice-face {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.3), rgba(10, 10, 10, 0.85));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.feature-dice-number {
  font-size: 2.2rem;
  letter-spacing: 0.35rem;
}
.feature-dice-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}
.recent-roll-entry {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.recent-roll-entry:last-child {
  border-bottom: none;
}
.recent-roll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0 0.15rem;
}
.recent-roll-success {
  background: linear-gradient(90deg, rgba(30, 139, 97, 0), rgba(30, 139, 97, 0.25));
}
.recent-roll-danger {
  background: linear-gradient(90deg, rgba(139, 26, 32, 0), rgba(139, 26, 32, 0.25));
}
.recent-roll-details {
  flex: 1;
  min-width: 0;
}
.recent-roll-details strong {
  display: block;
  font-size: 1rem;
}
.recent-roll-details small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.recent-roll-dice {
  width: 60px;
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.dice-face-display {
  /* retains the dice appearance */
}
.dice-badge {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translate(-100%, -50%);
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.dice-badge.text-bg-success {
  background-color: #1e7b4d;
}
.dice-badge.text-bg-danger {
  background-color: #8d1a20;
}
.pulse-hero-card {
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(140deg, rgba(10, 89, 221, 0.12), rgba(11, 11, 11, 0.65));
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.35);
}
.pulse-hero-card .card-body {
  padding: 0.55rem 0.75rem;
}
.pulse-hero-card span.small {
  letter-spacing: 0.08em;
}
.pulse-hero-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.pulse-live-panel,
.pulse-leaderboard-panel {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.8);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}
.pulse-panel-tabs {
  margin-bottom: 0;
  padding-top: 0.25rem;
  margin-top: -1px;
}
.pulse-panel-tabs .nav-tabs {
  justify-content: center;
  border-bottom: none;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  position: relative;
  z-index: 1;
  padding: 0.1rem 0.75rem 0;
  background: transparent;
  margin-left: 0.4rem;
  margin-right: 0.4rem;
}
.pulse-panel-tabs .nav-tabs .nav-link.active {
  background: rgba(10, 10, 10, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: transparent;
  box-shadow: none;
}
.pulse-live-panel .card-body,
.pulse-leaderboard-panel .card-body {
  /* dynamic height, allow content to expand */
  min-height: auto;
}
.pulse-leaderboard-entry {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
}
.pulse-leaderboard-entry:last-child {
  margin-bottom: 0;
}
.metric-badge {
  min-width: 64px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(10, 89, 221, 0.2);
  border: 1px solid rgba(10, 89, 221, 0.5);
  color: #cfe0ff;
}
.vip-takeover-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vip-takeover-row:last-child {
  border-bottom: none;
}
.vip-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.vip-takeover-info {
  flex: 1;
  min-width: 0;
}
.vip-summary-card .card-body {
  gap: 0.35rem;
}
.vip-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vip-event {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}
.vip-event-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.vip-event-meta .badge {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.vip-event-names strong {
  display: inline-block;
  margin-right: 0.4rem;
}
.vip-event-names span.arrow {
  margin: 0 0.4rem;
  font-weight: 400;
}

/* ===== Landing page accordion (per-phase) — final ===== */

/* Force the toggle to be a single flex row no matter what other styles exist */
.phase-toggle {
  display: flex !important;   /* wins over any grid/column overrides */
  flex-direction: row;
  flex-wrap: nowrap;          /* prevents caret from wrapping under text */
  align-items: flex-start;    /* no vertical centering -> no fake "centered" look */
  gap: .75rem;
  cursor: pointer;
  user-select: none;
}

/* Titles always left */
.phase-toggle .titles,
.phase-toggle .titles > * { text-align: left !important; }
.phase-toggle .titles { 
  flex: 1 1 auto; 
  min-width: 0;              /* long titles don't push caret to next line */
}
.phase-toggle .titles h3,
.phase-toggle .titles .h5 { margin-bottom: .125rem; }
.phase-toggle .titles small { display: block; }

/* Caret: same row, on the far right */
.phase-toggle .phase-caret {
  margin-left: auto;         /* pushes caret to the right */
  flex: 0 0 auto;
  align-self: flex-start;
  transition: transform .2s ease;
  font-size: 2rem;
}

/* Visual open state + caret rotation */
.phase-item.is-open { border-color: rgba(255,255,255,0.18); }
.phase-item.is-open .phase-caret { transform: rotate(180deg); }

/* Focus */
.phase-toggle:focus { outline: none; }
.phase-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,.28);
  outline-offset: 3px;
  border-radius: 10px;
}

/* FAQ accordion variant (Nyx-style interaction, compact sizing) */
.faq-feature-item .phase-caret {
  font-size: 1.2rem;
}

.faq-feature-item .phase-subtitle {
  margin-bottom: 0;
}

.faq-feature-item .phase-detail {
  padding-left: 0;
}

.faq-feature-item .phase-detail > li span {
  display: block;
  margin-top: 0.2rem;
}

/* ===== The Vault ===== */
.vault-hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.85), rgba(62, 39, 143, 0.45));
}

.vault-hero-inner {
  width: 100%;
}

.vault-hero-inner form .btn {
  white-space: nowrap;
}

.vault-hero-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.vault-hero-aside {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.vault-hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vault-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.vault-hero-meta .label {
  font-size: .72rem;
  letter-spacing: .08em;
  display: block;
  margin-bottom: .1rem;
}

.vault-hero-meta h3 {
  margin-bottom: .05rem;
}

.vault-hero-meta .handle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .9rem;
  color: #adb5bd;
}

nav.vault-subnav {
  margin-top: 1.25rem;
}

.vault-login-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.8);
}

.vault-hero.login-hero {
  margin-bottom: 2rem;
}

.vault-hero.login-hero .hero-copy a.btn {
  min-width: 220px;
}

.vault-login-highlight {
  min-width: 260px;
}

.login-highlights li {
  margin-bottom: 1rem;
}

.login-highlights strong {
  font-weight: 700;
  display: block;
}

.vault-login-benefits .card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.85);
}

/* ===== Dice Stats ===== */
.dice-stats-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dice-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dice-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dice-metrics {
  display: grid;
  gap: 0.75rem;
}

.dice-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dice-metric .label {
  color: var(--muted);
}

.dice-metric .value {
  font-weight: 600;
}

.dice-favorite {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.dice-favorite .dice-face-display {
  width: 72px;
  height: 72px;
}

.dice-favorite-info p {
  margin: 0;
}

.dice-usage-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.dice-usage-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.7);
  padding: 0.75rem;
}

.dice-usage-card .badge {
  background: var(--dice-bg, #2c2f36);
  color: var(--dice-fg, #fff);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dice-usage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dice-usage-top .count {
  font-weight: 700;
}

.dice-usage-body {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.dice-usage-body .face {
  font-weight: 700;
  text-transform: uppercase;
}

.dice-usage-footer {
  color: var(--muted);
  font-size: 0.85rem;
}

.dice-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.dice-plain-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dice-plain-list li:last-child {
  border-bottom: none;
}

.dice-plain-list .time {
  color: var(--muted);
  font-size: 0.85rem;
}

.dice-plain-list .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .dice-plain-list li {
    grid-template-columns: 1fr auto;
  }
  .dice-plain-list .time {
    grid-column: 1 / -1;
  }
}

.dice-roll-dice {
  width: 60px;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.watch-streak-list {
  display: grid;
  gap: 0.55rem;
}

.watch-streak-card .card-body {
  padding: 0.9rem !important;
}

.watch-streak-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-streak-row:last-child {
  border-bottom: none;
}

.watch-streak-rank .rank-badge {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.watch-streak-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.watch-streak-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.watch-streak-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

.watch-streak-user-meta {
  min-width: 0;
}

.watch-streak-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-streak-score .metric-badge {
  min-width: 88px;
  height: auto;
  padding: 0.35rem 0.85rem;
}

@media (max-width: 768px) {
  .watch-streak-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

.vault-login-shell {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vault-features li {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vault-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.85);
  border-radius: 18px;
}

.vault-card h2 {
  margin-bottom: 1rem;
}

.vault-progress {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: .85rem 1.1rem;
}

.vault-progress-value {
  font-size: 2rem;
  font-weight: 700;
  margin-right: 0.4rem;
}

.vault-stat {
  min-width: 140px;
}

.vault-stat span.label {
  display: block;
  text-transform: uppercase;
  font-size: .82rem;
  color: #adb5bd;
  margin-bottom: .35rem;
}

.vault-stat strong {
  display: block;
  margin-bottom: .15rem;
}

.vault-quarter-pie .pie {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
  min-width: 150px;
}

.vault-quarter-pie .pie::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pie-legend li {
  font-size: .95rem;
  color: #dee2e6;
  margin-bottom: .35rem;
}

.pie-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-secondary-muted {
  color: #adb5bd;
}

@media (max-width: 768px) {
  .vault-hero-inner {
    flex-direction: column;
  }

  .vault-hero-aside {
    width: 100%;
    justify-content: center;
  }

  .vault-hero-copy,
  .vault-hero-aside {
    width: 100%;
  }

  .vault-login-benefits .card {
    min-height: auto;
  }
}

/* ===== Midnight Landing ===== */
.midnight-page {
  width: 100%;
}

.midnight-container {
  max-width: 1280px;
  padding-inline: clamp(1rem, 2.4vw, 1.5rem);
}

.midnight-hero-shell {
  padding-top: 0.4rem;
}

.midnight-hero-card {
  border-radius: 1.15rem;
  background:
    radial-gradient(760px 340px at 100% -10%, rgba(10, 89, 221, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(12, 16, 28, 0.96), rgba(8, 10, 16, 0.95));
  min-height: calc(100dvh - 128px);
}

.midnight-hero-card h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.midnight-hero-card .lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-discord:hover {
  background: #4c58d6;
  border-color: #4c58d6;
  color: #fff;
}

.btn-discord:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.4);
}

.midnight-discord-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.midnight-hero-card .btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}

.midnight-hero-card .btn-outline-primary:hover {
  background: var(--brand);
  color: #fff;
}

.midnight-hero-image-card {
  border-radius: 1rem;
  background: transparent;
}

.midnight-emblem {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
}

.midnight-section-card,
.midnight-step-card,
.midnight-subcard {
  border-radius: 1rem;
}

.midnight-section-card .card-body > h2,
.midnight-subcard .card-body > h3 {
  letter-spacing: 0.01em;
}

.midnight-chip {
  border-radius: 999px;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.midnight-step-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.midnight-step-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.midnight-section-card ul li + li,
.midnight-subcard ul li + li {
  margin-top: 0.35rem;
}

.midnight-page .accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.midnight-page .accordion-button {
  background: rgba(255, 255, 255, 0.01);
  color: var(--ink);
  font-weight: 700;
}

.midnight-page .accordion-button:not(.collapsed) {
  background: rgba(10, 89, 221, 0.2);
  color: #fff;
}

.midnight-page .accordion-button:focus {
  box-shadow: none;
}

.midnight-page .accordion-body {
  color: #dce4f0;
}

@media (max-width: 767.98px) {
  .midnight-hero-shell .row {
    --bs-gutter-y: 1.25rem;
  }

  .midnight-hero-image-card .card-body {
    padding: 0.5rem !important;
  }

  .midnight-emblem {
    max-width: 300px;
  }

  .midnight-hero-card {
    min-height: calc(100dvh - 110px);
  }
}

@media (min-width: 992px) {
  .midnight-hero-card {
    min-height: min(82vh, 700px);
  }
}

.event-section + .event-section {
  margin-top: 1.25rem;
}

.event-channel-card {
  background: rgba(14, 18, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f7ff;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.event-channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.event-channel-card-live {
  background: linear-gradient(180deg, rgba(34, 10, 22, 0.9), rgba(20, 8, 16, 0.95));
  border-color: rgba(255, 83, 122, 0.45);
}

.event-channel-card-live:hover {
  border-color: rgba(255, 123, 156, 0.75);
}

.event-channel-card-offline {
  background: rgba(14, 18, 30, 0.78);
}

.event-channel-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.event-live-header .event-channel-name {
  font-size: 1rem;
}

.event-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #ff3b72;
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 59, 114, 0.55);
  animation: event-live-blink 1.2s ease-in-out infinite;
}

@keyframes event-live-blink {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 59, 114, 0.55);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 0.35rem rgba(255, 59, 114, 0.15);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 59, 114, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-live-badge {
    animation: none;
  }
}

.event-live-thumb {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-live-title {
  color: #c9d4ea;
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-offline-card-body {
  padding: 0.62rem 0.8rem;
}

.event-offline-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.62rem;
  min-height: 52px;
}

.event-offline-content .event-channel-name {
  font-size: 0.94rem;
  line-height: 1.2;
}

.event-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.event-offline-avatar-wrap {
  flex: 0 0 auto;
}

.event-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #e6e6e6;
}


