@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --app-radius: 14px;
  --brand-accent: #ef4444;
  --brand-accent-2: #f43f5e;
  --brand-surface: rgba(18, 10, 12, 0.78);
  --brand-border: rgba(239, 68, 68, 0.22);
  --brand-ink: #080608;
}

html[data-bs-theme='dark'] {
  --bs-body-bg: #0b0b0f;
  --bs-body-color: #e5e7eb;
  --bs-primary: #e11d48;
  --bs-primary-rgb: 225, 29, 72;
  --bs-link-color: #fb7185;
  --bs-link-hover-color: #fda4af;
  --bs-border-color: rgba(255, 255, 255, 0.12);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.12);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Sora', 'Segoe UI', sans-serif;
}

body.app {
  min-height: 100vh;
  background: radial-gradient(900px 420px at 15% -10%, rgba(239, 68, 68, 0.2), transparent 55%), #080608;
}

h1,
h2,
h3,
.brand-title {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

.navbar {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  background: rgba(11, 11, 15, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1050;
}

.navbar-minimal {
  padding: 0.55rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  background: rgba(8, 8, 12, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1050;
}

.navbar-minimal .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-minimal .brand-title {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
}

.navbar-minimal .navbar-text {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.6) !important;
}

.navbar-minimal .navbar-nav {
  gap: 0.2rem;
}

.navbar-minimal .nav-link {
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7) !important;
}

.navbar-minimal .nav-link:hover {
  color: #fff !important;
}

.navbar-minimal .dropdown-toggle::after {
  margin-left: 0.35rem;
  opacity: 0.7;
}

.navbar-minimal .dropdown-menu {
  background: rgba(12, 12, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  z-index: 1060;
  pointer-events: auto;
}

.navbar-minimal .dropdown-item {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.4rem;
}

.navbar-minimal .dropdown-item:hover,
.navbar-minimal .dropdown-item:focus {
  background: rgba(239, 68, 68, 0.16);
  color: #fff;
}

.navbar-minimal .user-pill {
  background: rgba(16, 6, 10, 0.4);
  border-color: rgba(239, 68, 68, 0.18);
}

.navbar-minimal .btn {
  font-size: 0.7rem;
  padding: 0.35rem 0.7rem;
}

.navbar-minimal__shell {
  gap: 0.75rem 1rem;
}

.navbar-minimal__collapse {
  min-width: 0;
}

.navbar-minimal__primary,
.navbar-minimal__secondary {
  align-items: center;
}

.navbar-minimal__secondary {
  gap: 0.35rem;
}

.navbar-user-item {
  min-width: 0;
}

.navbar-user-pill {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.navbar-user-pill .user-name,
.navbar-user-pill .user-email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.navbar-server-pill {
  display: none;
}

.navbar-server-pill__label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.74);
}

.navbar-server-pill__value {
  min-width: 0;
  color: rgba(248, 250, 252, 0.94);
  font-size: 0.88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .navbar-minimal .navbar-toggler {
    margin-left: auto;
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(24, 8, 12, 0.68);
    box-shadow: none;
  }

  .navbar-minimal .navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(239, 68, 68, 0.18);
  }

  .navbar-minimal__collapse {
    width: 100%;
    margin-top: 0.8rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(248, 113, 113, 0.14);
    background:
      linear-gradient(180deg, rgba(18, 6, 10, 0.96), rgba(9, 4, 8, 0.96)),
      radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 60%);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }

  .navbar-server-pill {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, 0.18);
    background: rgba(20, 6, 10, 0.68);
  }

  .navbar-minimal__primary,
  .navbar-minimal__secondary {
    width: 100%;
    align-items: stretch;
    gap: 0.45rem;
  }

  .navbar-minimal__primary {
    margin-bottom: 0 !important;
  }

  .navbar-minimal__secondary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar-minimal .navbar-nav .nav-item,
  .navbar-minimal .navbar-nav .dropdown {
    width: 100%;
  }

  .navbar-minimal__secondary form {
    display: block !important;
    width: 100%;
  }

  .navbar-minimal .nav-link,
  .navbar-minimal .btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
  }

  .navbar-minimal .nav-link {
    justify-content: flex-start;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
  }

  .navbar-minimal .btn {
    justify-content: center;
  }

  .navbar-minimal .dropdown-toggle::after {
    margin-left: auto;
  }

  .navbar-minimal .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.45rem;
    border-radius: 14px;
    background: rgba(16, 8, 12, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }

  .navbar-minimal .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  .navbar-user-pill {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
  }

  .navbar-user-item {
    order: -1;
  }
}

@media (max-width: 576px) {
  .navbar-minimal .container-fluid {
    padding-inline: 0.9rem;
  }

  .navbar-minimal__collapse {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .navbar-minimal .brand-title {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .navbar-minimal__primary,
  .navbar-minimal__secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .navbar-minimal__primary > .dropdown,
  .navbar-user-item,
  .navbar-logout-item {
    grid-column: 1 / -1;
  }

  .navbar-minimal .nav-link,
  .navbar-minimal .btn {
    min-height: 42px;
    padding: 0.72rem 0.85rem;
  }

  .navbar-minimal .nav-link {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .navbar-minimal__secondary {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
  }

  .navbar-server-pill,
  .navbar-user-pill {
    padding: 0.75rem 0.85rem;
  }
}

.confirm-modal .modal-content {
  background: rgba(14, 6, 10, 0.96);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(8, 4, 8, 0.7);
}

.confirm-modal .modal-dialog {
  max-width: 420px;
}

.confirm-modal .modal-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(248, 113, 113, 0.85);
}

.confirm-modal .confirm-message {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.9);
}

.confirm-modal .btn-outline-light {
  border-color: rgba(248, 113, 113, 0.4);
  color: rgba(248, 113, 113, 0.9);
}

.confirm-modal .btn-outline-light:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.8);
  color: #fff;
}

@media (max-width: 576px) {
  .confirm-modal .modal-dialog {
    max-width: calc(100% - 1.5rem);
  }

  .confirm-modal .modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .confirm-modal .btn {
    width: 100%;
  }
}

.card {
  border-radius: var(--app-radius);
  background: rgba(17, 17, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.alert {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert.alert-fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

code {
  font-size: 0.9em;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(225, 29, 72, 0.14);
  color: #fb7185;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(229, 231, 235, 0.7);
}

.btn-primary {
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.22);
}

.btn-outline-primary {
  border-color: rgba(225, 29, 72, 0.6);
  color: #fb7185;
}

.btn-outline-primary:hover {
  background: rgba(225, 29, 72, 0.18);
  border-color: rgba(225, 29, 72, 0.85);
  color: #fff;
}

.text-muted {
  color: rgba(229, 231, 235, 0.7) !important;
}

.landing,
.bot-hub {
  background:
    radial-gradient(1200px 520px at 15% -5%, rgba(239, 68, 68, 0.22), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(244, 63, 94, 0.18), transparent 60%),
    radial-gradient(900px 520px at 25% 80%, rgba(185, 28, 28, 0.16), transparent 60%),
    var(--brand-ink);
  overflow-x: hidden;
}

.landing-stage,
.hub-stage {
  position: relative;
  z-index: 1;
}

.float-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.85), rgba(127, 29, 29, 0.2));
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
  opacity: 0.65;
  filter: blur(0.2px);
  animation: float 12s ease-in-out infinite;
  z-index: 0;
}

.float-orb.orb-1 {
  top: 40px;
  right: 80px;
  width: 90px;
  height: 90px;
  animation-delay: 0s;
}

.float-orb.orb-2 {
  top: 320px;
  right: 160px;
  width: 140px;
  height: 140px;
  animation-delay: 2s;
}

.float-orb.orb-3 {
  bottom: 60px;
  left: 120px;
  width: 110px;
  height: 110px;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-16px) translateX(8px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(12, 10, 12, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.brand-fallback {
  display: inline-flex;
  font-weight: 700;
  color: #fee2e2;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.brand-icon.image-loaded img {
  opacity: 1;
}

.brand-icon.image-loaded .brand-fallback {
  display: none;
}

.brand-sub {
  font-size: 0.8rem;
  color: rgba(248, 113, 113, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.navbar-brand .brand-title {
  font-size: 0.95rem;
  line-height: 1.1;
}

.navbar-brand .brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
}

.navbar-brand {
  text-decoration: none;
}

.landing-header,
.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.header-actions,
.hub-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(35, 10, 16, 0.92), rgba(18, 6, 10, 0.9)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 65%);
  border: 1px solid rgba(248, 113, 113, 0.2);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.header-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  color: rgba(255, 228, 230, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.header-switcher__link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transform: translateY(-1px);
}

.header-switcher__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2);
}

.header-switcher__link[aria-current='page'] {
  background: linear-gradient(135deg, rgba(255, 92, 114, 1), rgba(255, 63, 91, 0.94));
  color: #1a0509;
  box-shadow:
    0 12px 28px rgba(255, 65, 87, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fee2e2;
  background: rgba(20, 6, 10, 0.4);
}

.btn-ghost:hover {
  background: rgba(45, 8, 14, 0.7);
  color: #fff;
}

.btn-glow {
  box-shadow: 0 18px 35px rgba(239, 68, 68, 0.3);
}

.landing .btn-primary,
.bot-hub .btn-primary {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2));
  border: none;
  color: #170508;
  font-weight: 600;
}

.landing .btn-primary:hover,
.bot-hub .btn-primary:hover {
  filter: brightness(1.05);
}

.btn-discord {
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: none;
  color: #1b0608;
  font-weight: 700;
}

.btn-discord:hover {
  filter: brightness(1.05);
  color: #1b0608;
}

.landing-grid,
.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: center;
}

.auth-grid {
  align-items: start;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(255, 77, 109, 0.35), transparent 62%),
    radial-gradient(520px 300px at 84% 82%, rgba(127, 29, 29, 0.26), transparent 70%),
    radial-gradient(460px 240px at 16% 84%, rgba(190, 24, 93, 0.22), transparent 72%),
    linear-gradient(180deg, #12050a 0%, #090306 100%);
}

.auth-page .landing-stage {
  max-width: 1220px;
}

.auth-page .landing-header {
  margin-bottom: 2rem;
}

.auth-page .auth-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 3rem;
  align-items: center;
}

.auth-page .hero-copy {
  max-width: 38rem;
}

.auth-card .form-control {
  background: rgba(12, 5, 8, 0.85);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fee2e2;
}

.auth-card .form-control:focus {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.2);
}

.auth-card .form-label {
  color: rgba(248, 113, 113, 0.8);
}

.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 2rem 1.8rem;
  background:
    linear-gradient(180deg, rgba(20, 7, 12, 0.96), rgba(10, 4, 8, 0.96)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 58%);
  border: 1px solid rgba(239, 68, 68, 0.22);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0 10% auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 109, 0.95), transparent);
  box-shadow: 0 0 24px rgba(255, 77, 109, 0.7);
}

.auth-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 77, 109, 0.08);
  pointer-events: none;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.auth-card .alert {
  border-radius: 18px;
  padding: 0.9rem 1rem;
}

.auth-form {
  gap: 1rem;
}

.auth-card .form-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding-inline: 1.25rem;
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.auth-input {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 118, 148, 0.14);
  background: linear-gradient(180deg, rgba(34, 16, 26, 0.74), rgba(20, 9, 16, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.auth-input:focus-within {
  border-color: rgba(255, 77, 109, 0.46);
  box-shadow:
    0 0 0 3px rgba(255, 77, 109, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.auth-input__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: rgba(255, 205, 215, 0.74);
  font-size: 1rem;
}

.auth-input__control {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 56px;
  padding: 0.95rem 0.75rem;
}

.auth-input__control::placeholder {
  color: rgba(255, 205, 215, 0.34);
}

.auth-input__toggle {
  border: 0;
  background: transparent;
  color: rgba(255, 205, 215, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-input__toggle:hover,
.auth-input__toggle:focus {
  color: #fff;
}

.auth-card .btn-primary {
  background: linear-gradient(180deg, #ff566f 0%, #ff4157 100%);
  color: #fff;
  box-shadow: 0 22px 40px rgba(255, 65, 87, 0.28);
}

.auth-card .btn-outline-light,
.auth-card .btn-ghost {
  border-color: rgba(255, 118, 148, 0.18);
  background: rgba(24, 8, 14, 0.42);
  color: rgba(255, 228, 230, 0.9);
}

.auth-card .btn-outline-light:hover,
.auth-card .btn-ghost:hover {
  border-color: rgba(255, 118, 148, 0.42);
  background: rgba(45, 12, 22, 0.72);
  color: #fff;
}

.auth-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.5rem;
  color: rgba(255, 205, 215, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.auth-inline-link:hover,
.auth-inline-link:focus {
  color: #fff;
}

.auth-qr-panel {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0.35rem;
}

.auth-qr-image {
  width: min(100%, 260px);
  height: auto;
}

.auth-setup-meta {
  display: grid;
  gap: 0.4rem;
}

.auth-setup-meta__label {
  font-weight: 600;
}

.auth-setup-key {
  display: block;
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(12, 5, 8, 0.88);
  border: 1px solid rgba(239, 68, 68, 0.16);
  color: rgba(255, 228, 230, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-with-icon::before {
  content: attr(data-icon);
  line-height: 1;
  font-size: 0.98em;
}

.verify-page {
  background: radial-gradient(800px 380px at 20% -10%, rgba(239, 68, 68, 0.22), transparent 55%), #070607;
}

.verify-page .verify-card {
  border-radius: 20px;
  background: rgba(16, 6, 10, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 30px 60px rgba(10, 4, 8, 0.7);
}

.verify-page .form-control {
  background: rgba(12, 5, 8, 0.85);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fee2e2;
}

.verify-page .form-control:focus {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.2);
}

.verify-page .form-label {
  color: rgba(248, 113, 113, 0.85);
}

.verify-page .alert-warning {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fef3c7;
}

.verify-page .alert-danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fee2e2;
}

.verify-page .verify-actions {
  margin-top: 0.5rem;
}

.verify-shell {
  display: grid;
  gap: 1.35rem;
}

.verify-page main.container {
  width: min(100%, 1200px);
}

.verify-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background:
    radial-gradient(720px 240px at 10% 0%, rgba(248, 113, 113, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(23, 5, 9, 0.95), rgba(69, 10, 25, 0.86));
  box-shadow: 0 30px 60px rgba(10, 4, 8, 0.65);
}

.verify-showcase::before,
.verify-showcase::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.verify-showcase::before {
  inset: auto auto -120px -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.28), transparent 68%);
}

.verify-showcase::after {
  inset: -110px -70px auto auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(253, 164, 175, 0.18), transparent 68%);
}

.verify-showcase-copy,
.verify-showcase-art,
.verify-banner-shell {
  position: relative;
  z-index: 1;
}

.verify-showcase-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(8, 3, 6, 0.45);
  color: rgba(254, 226, 226, 0.94);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.verify-badge img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.32);
}

.verify-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.verify-lead {
  max-width: 44rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 228, 230, 0.84);
}

.verify-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.verify-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(8, 3, 6, 0.5);
  color: rgba(255, 228, 230, 0.86);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.verify-showcase-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.6fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.verify-art-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  background: rgba(9, 3, 5, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 30px rgba(6, 2, 4, 0.42);
}

.verify-art-card--core {
  min-height: 330px;
  padding: 1rem;
}

.verify-art-card--sigil {
  min-height: 210px;
  padding: 0.85rem;
}

.verify-art-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(239, 68, 68, 0.18));
}

.verify-banner-shell {
  grid-column: 1 / -1;
  padding: 0.35rem;
  border-radius: 20px;
  background: rgba(9, 3, 5, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.12);
}

.verify-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.verify-card {
  overflow: hidden;
}

.verify-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.verify-card-head-copy,
.verify-card-head-actions {
  min-width: 0;
}

.verify-card-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.verify-card-eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.78);
}

.verify-card-mark {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(239, 68, 68, 0.2));
}

.verify-card-avatar {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: 0 18px 30px rgba(127, 29, 29, 0.28);
}

.verify-result-profile {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  background: rgba(10, 4, 8, 0.58);
}

.verify-result-profile__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.verify-result-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: rgba(255, 228, 230, 0.7);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.verify-result-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  background: rgba(12, 5, 8, 0.76);
}

.verify-result-card--approved {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(180deg, rgba(7, 24, 14, 0.88), rgba(12, 5, 8, 0.76));
}

.verify-result-card--pending {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(180deg, rgba(47, 25, 8, 0.86), rgba(12, 5, 8, 0.76));
}

.verify-result-card--denied,
.verify-result-card--failed {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(48, 10, 16, 0.86), rgba(12, 5, 8, 0.76));
}

.verify-result-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.verify-result-card__copy {
  color: rgba(255, 228, 230, 0.76);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.verify-result-stat {
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  background: rgba(9, 3, 6, 0.58);
}

.verify-result-stat__label {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(248, 113, 113, 0.74);
}

.verify-result-stat__value {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(248, 250, 252, 0.98);
}

.verify-result-stat__copy {
  color: rgba(255, 228, 230, 0.74);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.verify-form-grid {
  display: grid;
  gap: 1rem;
}

.verify-question-block {
  display: grid;
  gap: 0.55rem;
}

.verify-question-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.verify-question-input {
  min-height: 58px;
}

.verify-page .form-control::placeholder {
  color: rgba(254, 205, 211, 0.34);
}

.verify-submit-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.verify-submit-btn {
  min-width: 170px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ef4444, #e11d48);
  border: none;
}

.verify-submit-btn.is-loading::after {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.65rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.95);
  display: inline-block;
  vertical-align: -0.1rem;
  animation: verify-spin 0.8s linear infinite;
}

.verify-submit-btn:hover,
.verify-submit-btn:focus {
  filter: brightness(1.04);
}

.verify-secondary-btn {
  min-width: 170px;
  font-weight: 600;
  border-color: rgba(254, 205, 211, 0.28);
  color: rgba(255, 228, 230, 0.92);
}

.verify-secondary-btn:hover,
.verify-secondary-btn:focus {
  border-color: rgba(254, 205, 211, 0.5);
  background: rgba(255, 255, 255, 0.04);
  color: #fff1f2;
}

.verify-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.verify-result-actions form {
  margin: 0;
}

.verify-result-actions .btn {
  min-height: 48px;
  padding-inline: 1.15rem;
  white-space: normal;
}

.verify-status-text {
  margin-top: -0.1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  background: rgba(127, 29, 29, 0.2);
  color: rgba(254, 226, 226, 0.9);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.verify-status-text[hidden] {
  display: none !important;
}

.verify-status-text[data-tone='success'] {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(20, 83, 45, 0.26);
  color: rgba(220, 252, 231, 0.96);
}

.verify-status-text[data-tone='danger'] {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.28);
  color: rgba(254, 226, 226, 0.96);
}

.verify-status-text[data-tone='warning'] {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(120, 53, 15, 0.28);
  color: rgba(254, 243, 199, 0.95);
}

.verify-inline-error {
  display: none;
  margin-top: -0.35rem;
  font-size: 0.85rem;
  color: #fca5a5;
  overflow-wrap: anywhere;
}

.verify-inline-error:not(:empty) {
  display: block;
}

@keyframes verify-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(248, 113, 113, 0.75);
}

.hero-title {
  font-size: clamp(2rem, 2.6vw, 3.1rem);
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.78);
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.glass-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 1.6rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(10, 4, 8, 0.7);
}

.login-card {
  animation: fadeUp 0.8s ease both;
}

.login-actions {
  display: grid;
  gap: 0.75rem;
}

.step-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: rgba(18, 6, 10, 0.65);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 16px;
  padding: 1.25rem;
  animation: fadeUp 0.8s ease both;
}

.step-card:nth-child(2) {
  animation-delay: 0.08s;
}

.step-card:nth-child(3) {
  animation-delay: 0.16s;
}

.step-number {
  font-size: 0.85rem;
  color: rgba(248, 113, 113, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.step-title {
  font-weight: 600;
  margin-top: 0.4rem;
}

.user-pill {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 999px;
  background: rgba(24, 6, 10, 0.55);
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.user-email {
  font-size: 0.75rem;
  color: rgba(248, 113, 113, 0.65);
}

.switcher-card {
  display: grid;
  gap: 1rem;
}

.switcher-title {
  font-weight: 600;
}

.switcher-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.switcher-preview {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.switcher-preview .bot-icon,
.bot-head .bot-icon {
  flex-shrink: 0;
}

.preview-name {
  font-weight: 600;
}

.bot-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.bot-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: fadeUp 0.8s ease both;
}

.bot-card:nth-child(2) {
  animation-delay: 0.08s;
}

.bot-card:nth-child(3) {
  animation-delay: 0.16s;
}

.bot-head {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.bot-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(244, 63, 94, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b0608;
  font-weight: 700;
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
}

.bot-icon img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bot-hub .bot-icon img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  transform: scale(1.08);
}

.bot-fallback {
  display: inline-flex;
  font-weight: 700;
  color: #fee2e2;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.bot-icon.image-loaded img {
  opacity: 1;
}

.bot-icon.image-loaded .bot-fallback {
  display: none;
}

.bot-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 999px;
}

.bot-hub .bot-icon,
.bot-hub .bot-icon-lg {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(30, 10, 16, 0.98), rgba(10, 8, 12, 0.98));
  border-color: rgba(248, 113, 113, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(127, 29, 29, 0.26);
}

.bot-icon--website,
.bot-icon-sm--website {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(38, 10, 18, 0.96), rgba(15, 8, 12, 0.98));
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
}

.bot-icon--website img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.bot-hub .bot-icon.bot-icon--website img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: transparent;
  transform: scale(1.02);
}

.bot-name {
  font-weight: 600;
}

.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: rgba(254, 226, 226, 0.85);
}

.bot-hub .form-select,
.landing .form-select {
  background-color: rgba(16, 6, 10, 0.85);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}

.bot-hub .form-select:focus,
.landing .form-select:focus {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.2);
}

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

@media (max-width: 992px) {
  .landing-grid,
  .hub-hero {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .bot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .verify-showcase {
    grid-template-columns: 1fr;
  }

  .verify-showcase-art {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.55fr);
  }

  .verify-card .verify-card-body {
    padding: 1.35rem !important;
  }

  .verify-card-head-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .landing-header,
  .hub-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .switcher-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bot-grid {
    grid-template-columns: 1fr;
  }

  .verify-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-card-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .verify-card-avatar,
  .verify-card-mark {
    width: 64px;
    height: 64px;
  }

  .verify-result-profile__meta {
    gap: 0.35rem;
  }
}

@media (max-width: 576px) {
  .cta-row {
    flex-direction: column;
  }

  .auth-card {
    padding: 1.4rem 1.1rem;
    border-radius: 24px;
  }

  .auth-card h2 {
    font-size: 1.8rem;
  }

  .auth-qr-image {
    width: min(100%, 220px);
  }

  .auth-setup-key {
    font-size: 0.8rem;
    padding: 0.7rem 0.8rem;
  }

  .header-actions,
  .hub-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-switcher {
    width: 100%;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .verify-page main.container {
    padding-inline: 0.9rem;
  }

  .verify-showcase {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .verify-badge {
    width: 100%;
    justify-content: center;
  }

  .verify-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .verify-showcase-art {
    grid-template-columns: 1fr;
  }

  .verify-art-card--core {
    min-height: 250px;
  }

  .verify-art-card--sigil {
    min-height: 180px;
  }

  .verify-card-head {
    align-items: stretch;
  }

  .verify-card-head-actions {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .verify-card-avatar,
  .verify-card-mark {
    width: 56px;
    height: 56px;
  }

  .verify-card .verify-card-body {
    padding: 1rem !important;
  }

  .verify-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-submit-btn {
    width: 100%;
  }

  .verify-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .verify-result-actions form,
  .verify-result-actions .btn {
    width: 100%;
  }
}

.servers-page .card {
  border-radius: calc(var(--app-radius) + 2px);
}

.servers-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.servers-table .server-row {
  cursor: pointer;
}

.servers-table .server-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.servers-table .server-row:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: -2px;
}

.servers-table tbody tr:last-child {
  border-bottom: 0;
}

.servers-table thead th,
.servers-table tbody td {
  padding: 0.85rem 0.9rem;
}

.server-name {
  font-weight: 600;
  word-break: break-word;
}

.server-row-link {
  color: inherit;
  text-decoration: none;
}

.server-row-link:hover {
  color: inherit;
}

.server-row-link--icon {
  display: inline-flex;
}

.server-row-link--name {
  display: inline-flex;
  align-items: center;
}

  .server-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .server-icon-fallback {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
  }

  .server-icon.image-loaded img {
    opacity: 1;
  }

  .server-icon.image-loaded .server-icon-fallback {
    display: none;
  }

.server-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.bot-icon-row {
  gap: 0.4rem;
}

.bot-icon-sm {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bot-icon-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-icon-sm.bot-icon-sm--website img {
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: transparent;
}

.bot-status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #0c0b0f;
  background: #9ca3af;
}

.bot-status-dot.approved {
  background: #22c55e;
}

.bot-status-dot.rejected {
  background: #ef4444;
}

.bot-status-dot.pending {
  background: #f59e0b;
}

.bot-status-dot.absent {
  background: #64748b;
}

.bot-icon-sm.absent {
  opacity: 0.6;
  filter: grayscale(0.2);
}

.server-id code {
  word-break: break-all;
}

.bot-pills .badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bot-pills .text-bg-secondary {
  background-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(229, 231, 235, 0.85) !important;
}

.status-meta {
  margin-top: 0.2rem;
}

.action-group .btn {
  min-width: 90px;
}

.action-group .btn-delete {
  border-color: rgba(248, 113, 113, 0.7);
  color: #f87171;
}

.action-group .btn-delete:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fff;
}

@media (max-width: 992px) {
  .servers-table thead {
    display: none;
  }

  .servers-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.6rem 0;
  }

  .servers-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    padding: 0.35rem 0.5rem;
  }

  .servers-table tbody td::before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(229, 231, 235, 0.6);
  }

  .servers-table tbody td[colspan] {
    display: block;
    text-align: left;
  }

  .servers-table tbody td[colspan]::before {
    content: none;
  }

  .servers-table .action-group {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 576px) {
  .servers-table .action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .servers-table .action-group .btn {
    width: 100%;
  }
}

.approvals-table th,
.approvals-table td {
  padding: 0.85rem 0.9rem;
}

.icon-btn {
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  font-weight: 700;
}

/* Admin panel styling */
.admin-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 520px at 15% -5%, rgba(239, 68, 68, 0.24), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(244, 63, 94, 0.2), transparent 60%),
    radial-gradient(900px 520px at 25% 80%, rgba(185, 28, 28, 0.18), transparent 60%),
    #070608;
}

.admin-page::before,
.admin-page::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.8), rgba(127, 29, 29, 0.2));
  box-shadow: 0 24px 50px rgba(239, 68, 68, 0.18);
  filter: blur(0.2px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}

.admin-page::before {
  top: 90px;
  right: 8%;
}

.admin-page::after {
  bottom: 80px;
  left: 10%;
  animation-delay: 3s;
}

.admin-page main.container {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  padding-inline: clamp(0.95rem, 1.8vw, 1.5rem);
}

.admin-page .card,
.admin-page .table,
.admin-page .table-responsive {
  border-radius: calc(var(--app-radius) + 2px);
}

.admin-page .card {
  background: rgba(16, 6, 10, 0.86);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 24px 60px rgba(8, 4, 8, 0.7);
}

.admin-page .card .card-body {
  color: rgba(243, 244, 246, 0.95);
}

.admin-page .table {
  color: rgba(243, 244, 246, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-page .table thead th {
  color: rgba(248, 113, 113, 0.8);
}

.admin-page .table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-page .table tbody tr:hover {
  background: rgba(239, 68, 68, 0.06);
}

.admin-page .form-control,
.admin-page .form-select {
  background: rgba(12, 5, 8, 0.88);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fee2e2;
}

.admin-page .form-control:focus,
.admin-page .form-select:focus {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.2);
}

.admin-page .btn-outline-secondary {
  border-color: rgba(239, 68, 68, 0.35);
  color: rgba(248, 113, 113, 0.9);
}

.admin-page .btn-outline-secondary:hover {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.15);
  color: #fff;
}

.dashboard-page main.container,
.economy-items-page main.container {
  display: grid;
  gap: 1rem;
}

.dashboard-hero,
.economy-items-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-hero__copy {
  max-width: 42rem;
}

.dashboard-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-server-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-server-card__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1 1 320px;
  min-width: 0;
}

.dashboard-server-card__meta {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.dashboard-server-card__meta .fw-semibold {
  overflow-wrap: anywhere;
}

.dashboard-server-card__aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.dashboard-bot-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-stat-card .card-body {
  display: grid;
  gap: 0.45rem;
}

.dashboard-stat-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.76);
}

.dashboard-stat-card .display-6 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.economy-item-form {
  align-items: start;
}

.economy-item-form .form-control {
  min-height: 44px;
}

.economy-item-form .input-group {
  flex-wrap: nowrap;
  width: 100%;
}

.economy-item-flags {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.economy-item-submit {
  margin-left: auto;
  display: flex;
}

.economy-item-submit .btn {
  min-width: 140px;
  min-height: 44px;
}

.economy-items-table-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(12, 5, 8, 0.76);
}

.economy-items-table {
  margin-bottom: 0;
}

.economy-items-table thead th {
  white-space: nowrap;
}

.economy-items-table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.economy-shop-page main.container {
  display: grid;
  gap: 1rem;
}

.economy-item-upload-card {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: rgba(12, 5, 8, 0.66);
}

.economy-item-upload-card__preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 18px;
  border: 1px dashed rgba(248, 113, 113, 0.28);
  background: rgba(18, 8, 12, 0.82);
  color: rgba(226, 232, 240, 0.65);
  overflow: hidden;
}

.economy-item-upload-card__preview img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.item-media-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.item-id-input,
.item-id-code {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.item-id-input {
  flex: 1 1 24rem;
  min-width: min(100%, 24rem);
}

.item-media-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(18, 8, 12, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 228, 230, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.item-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-media-thumb--common {
  border-color: #94a3b8;
}

.item-media-thumb--rare {
  border-color: #38bdf8;
}

.item-media-thumb--epic {
  border-color: #a78bfa;
}

.item-media-thumb--pristine {
  border-color: #fbbf24;
}

.item-media-thumb--transcendent {
  border-color: #f97316;
}

.item-media-thumb--primordial {
  border-color: #ef4444;
}

.monster-media-token {
  font-size: 1.15rem;
  line-height: 1;
}

.rarity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 8.75rem;
  min-height: 28px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rarity-pill--common,
.rarity-card--common {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.rarity-pill--rare,
.rarity-card--rare {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.rarity-pill--epic,
.rarity-card--epic {
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(167, 139, 250, 0.14);
  color: #c4b5fd;
}

.rarity-pill--pristine,
.rarity-card--pristine {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

.rarity-pill--transcendent,
.rarity-card--transcendent {
  border-color: rgba(249, 115, 22, 0.34);
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}

.rarity-pill--primordial,
.rarity-card--primordial {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.metric-stack {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.metric-stack__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.metric-stack__row span {
  color: rgba(229, 231, 235, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.metric-stack__row strong {
  color: rgba(248, 250, 252, 0.96);
  font-weight: 700;
}

.scope-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.accounts-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.accounts-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(248, 113, 113, 0.8);
  margin-bottom: 0.45rem;
}

.accounts-subtitle,
.accounts-panel-copy,
.accounts-activity-actor,
.accounts-last-login {
  color: rgba(226, 232, 240, 0.72);
}

.accounts-alert {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(80, 15, 20, 0.82);
}

.accounts-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.accounts-stat-card {
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: calc(var(--app-radius) + 2px);
  padding: 1rem 1.1rem;
  background: rgba(12, 5, 8, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.accounts-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248, 113, 113, 0.76);
}

.accounts-stat-value {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  margin-top: 0.45rem;
  color: #fff5f5;
}

.accounts-form-note {
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: rgba(10, 4, 8, 0.65);
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.92rem;
}

.accounts-table-wrap {
  overflow: hidden;
}

.accounts-table thead th {
  white-space: nowrap;
}

.accounts-table td {
  vertical-align: middle;
}

.accounts-email {
  word-break: break-word;
}

.accounts-actions-cell {
  min-width: 210px;
}

.accounts-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.accounts-actions-icons {
  gap: 0.45rem;
}

.accounts-actions form {
  margin: 0;
}

.accounts-action-btn {
  padding: 0;
}

.accounts-action-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.monster-actions {
  justify-content: flex-end;
}

.accounts-activity-list {
  display: grid;
  gap: 0.9rem;
}

.accounts-activity-item {
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(12, 5, 8, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.accounts-activity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.accounts-activity-time {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.6);
}

.accounts-activity-message {
  color: rgba(248, 250, 252, 0.92);
}

.accounts-activity-actor {
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.accounts-empty-state {
  border: 1px dashed rgba(239, 68, 68, 0.24);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(10, 4, 8, 0.45);
}

@media (max-width: 1199px) {
  .accounts-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .accounts-table-wrap {
    overflow: visible;
  }

  .accounts-table thead {
    display: none;
  }

  .accounts-table,
  .accounts-table tbody {
    display: block;
    width: 100%;
  }

  .accounts-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 1rem;
    margin-bottom: 0.9rem;
    border-radius: 18px;
    background: rgba(12, 5, 8, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .accounts-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .accounts-table tbody td {
    display: grid;
    gap: 0.25rem;
    justify-items: start;
    text-align: left;
    padding: 0.55rem 0;
    border: 0;
  }

  .accounts-table tbody td + td {
    border-top: 1px solid rgba(239, 68, 68, 0.12);
  }

  .accounts-table tbody td::before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(229, 231, 235, 0.6);
  }

  .accounts-table tbody td[colspan] {
    display: block;
    text-align: left;
  }

  .accounts-table tbody td[colspan]::before {
    content: none;
  }

  .accounts-actions-cell {
    min-width: 0;
    display: block !important;
    text-align: left !important;
    padding-top: 0.8rem !important;
  }

  .accounts-actions-cell::before {
    content: none !important;
  }

  .accounts-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .admin-page::before,
  .admin-page::after {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    opacity: 0.35;
  }

  .admin-page main.container {
    padding-inline: 0.9rem;
  }

  .dashboard-hero,
  .economy-items-hero {
    align-items: flex-start;
  }

  .dashboard-hero__actions,
  .dashboard-hero__actions .btn {
    width: 100%;
  }

  .dashboard-server-card__identity {
    align-items: flex-start;
  }

  .dashboard-server-card__aside {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .dashboard-server-card__aside .btn,
  .dashboard-bot-strip {
    width: 100%;
  }

  .economy-item-flags {
    flex-direction: column;
    align-items: stretch;
  }

  .economy-item-submit {
    width: 100%;
    margin-left: 0;
  }

  .economy-item-submit .btn {
    width: 100%;
  }

  .accounts-stat-grid {
    grid-template-columns: 1fr;
  }

  .accounts-table tbody td::before {
    margin-bottom: 0.15rem;
  }

  .accounts-actions {
    gap: 0.5rem;
  }

  .accounts-actions-icons {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .accounts-actions-icons form,
  .accounts-actions-icons .btn {
    width: auto;
  }
}

.whitelist-submit-btn {
  min-height: 42px;
  width: 100%;
}

.economy-search-form {
  align-items: flex-end;
}

.economy-search-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  min-height: 42px;
}

.economy-search-actions .btn,
.approval-channel-btn,
.whitelist-submit-btn {
  white-space: nowrap;
}

.approval-channel-btn,
[data-passkey-register] {
  min-height: 42px;
}

.economy-search-form .btn {
  min-height: 42px;
}

.whitelist-add-form {
  align-items: end;
  gap: 0.85rem;
}

.whitelist-add-form .form-control,
.economy-search-form .form-control {
  min-height: 42px;
}

.whitelist-add-form .form-text,
.economy-search-form .form-text {
  margin-top: 0.45rem;
}

.whitelist-submit-col {
  display: grid;
  align-self: flex-end;
  min-width: 190px;
}

.approval-channel-action-col {
  align-self: flex-end;
}

.bulk-aid-stack {
  height: 100%;
}

.bulk-aid-form .btn {
  min-height: 42px;
}

.economy-users-page main.container,
.economy-user-detail-page main.container,
.economy-analytics-page main.container,
.economy-player-profile-page main.container {
  display: grid;
  gap: 1rem;
}

.economy-users-toolbar,
.economy-users-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.economy-users-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 68, 68, 0.12);
}

.economy-users-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.economy-users-pager__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.economy-users-pager__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
}

.economy-users-table thead th {
  white-space: nowrap;
}

.economy-users-table td {
  vertical-align: middle;
}

.user-id-code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.user-name-cell {
  font-weight: 600;
}

.user-primary-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.user-actions-cell,
.whitelist-actions-cell {
  min-width: 332px;
}

.user-actions-panel {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  justify-items: stretch;
}

.user-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.65rem;
  width: 100%;
}

.user-action-form {
  display: grid;
  align-items: center;
  gap: 0.45rem;
}

.user-action-form--metric {
  grid-template-columns: minmax(0, 1fr) 40px;
  grid-template-areas:
    "label label"
    "input button";
  width: 100%;
}

.user-action-label {
  grid-area: label;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.72);
  text-align: left;
}

.user-action-input {
  grid-area: input;
  min-width: 0;
}

.user-action-form--metric .btn {
  grid-area: button;
}

.user-action-form .btn:disabled,
.user-action-form .form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.user-manual-note {
  font-size: 0.78rem;
  color: rgba(229, 231, 235, 0.62);
  text-align: left;
}

.economy-user-detail-page code {
  overflow-wrap: anywhere;
}

.economy-user-editor-form .form-control,
.economy-user-editor-form .form-select,
.economy-user-inventory-grid .form-control,
.economy-user-inventory-grid .form-select {
  min-height: 44px;
}

.economy-user-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.economy-user-sidebar .card {
  margin-bottom: 0 !important;
}

.economy-user-table td {
  vertical-align: middle;
}

.analytics-flow-card .card-body {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.analytics-flow-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.analytics-flow-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.analytics-flow-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.analytics-flow-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 6, 10, 0.7);
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.82rem;
}

.analytics-flow-legend__item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.analytics-flow-legend__item--generated {
  color: #22c55e;
}

.analytics-flow-legend__item--spent {
  color: #f97316;
}

.analytics-flow-legend__item--net {
  color: #38bdf8;
}

.analytics-flow-chart {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(16, 10, 16, 0.95), rgba(8, 6, 10, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(0, 0, 0, 0.22);
  padding: clamp(0.7rem, 1.8vw, 1rem);
  overflow: hidden;
}

.analytics-flow-chart svg {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 340px);
}

.analytics-table td {
  vertical-align: middle;
}

.analytics-player-link {
  font-weight: 600;
  text-decoration: none;
}

.analytics-player-link:hover,
.analytics-player-link:focus {
  text-decoration: underline;
}

.analytics-rarity-card,
.player-rarity-card,
.player-stat-tile,
.player-loadout-card,
.player-profile-meta-card {
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 18px;
  background: rgba(12, 5, 8, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.analytics-rarity-card,
.player-rarity-card {
  padding: 1rem;
  height: 100%;
}

.player-profile-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.player-profile-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background:
    linear-gradient(135deg, rgba(18, 8, 12, 0.92), rgba(12, 18, 30, 0.82)),
    var(--player-wallpaper, none) center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.player-profile-banner__glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 3, 5, 0.34), rgba(6, 4, 8, 0.54)),
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.18), transparent 28%);
  backdrop-filter: blur(8px);
}

.player-profile-banner__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: start;
  gap: 1rem 1.25rem;
  padding: 1.15rem;
}

.player-profile-badge-strip {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  justify-content: end;
  gap: 0.75rem;
}

.player-profile-badge {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0.55rem;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 6, 10, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 28px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.player-profile-badge--empty {
  width: 100%;
  height: auto;
  min-height: 88px;
  padding: 1rem;
  border-width: 1px;
  color: rgba(226, 232, 240, 0.72);
  place-items: start;
}

.player-profile-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.player-profile-badge__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.95);
}

.player-profile-badge--common {
  border-color: #94a3b8;
}

.player-profile-badge--rare {
  border-color: #38bdf8;
}

.player-profile-badge--epic {
  border-color: #a78bfa;
}

.player-profile-badge--pristine {
  border-color: #fbbf24;
}

.player-profile-badge--transcendent {
  border-color: #f97316;
}

.player-profile-badge--primordial {
  border-color: #ef4444;
}

.player-profile-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.72);
}

.player-profile-value {
  color: rgba(241, 245, 249, 0.92);
}

.player-profile-bio {
  white-space: pre-wrap;
}

.player-profile-meta-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.player-profile-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-profile-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.player-profile-meta-row strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.player-profile-wallpaper {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.player-stat-tile {
  height: 100%;
  padding: 0.95rem;
  display: grid;
  gap: 0.35rem;
}

.player-stat-tile__label,
.player-loadout-card__slot {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.74);
}

.player-stat-tile__value,
.player-loadout-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.player-stat-tile__bonus {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.62);
}

.player-loadout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.player-loadout-card {
  padding: 0.95rem;
  display: grid;
  gap: 0.45rem;
}

.player-loadout-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.82rem;
}

.economy-player-profile-page code {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .user-actions-cell,
  .whitelist-actions-cell {
    min-width: 310px;
  }

  .user-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .dashboard-server-card__aside {
    width: 100%;
    justify-content: space-between;
  }

  .economy-item-upload-card {
    grid-template-columns: 1fr;
  }

  .economy-items-table thead {
    display: none;
  }

  .economy-items-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 18px;
    background: rgba(12, 5, 8, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .economy-items-table tbody td {
    display: grid;
    gap: 0.25rem;
    justify-items: start;
    text-align: left;
    padding: 0;
    border: 0;
  }

  .economy-items-table tbody td::before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(229, 231, 235, 0.6);
  }

  .economy-items-table tbody td[colspan] {
    padding: 0.25rem 0;
  }

  .economy-items-table tbody td[colspan]::before {
    content: none;
  }

  .economy-items-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .whitelist-submit-col {
    width: 100%;
    min-width: 0;
  }

  .economy-users-table thead {
    display: none;
  }

  .economy-users-table,
  .economy-users-table tbody {
    display: block;
    width: 100%;
  }

  .economy-users-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 1rem;
    margin-bottom: 0.9rem;
    border-radius: 18px;
    background: rgba(12, 5, 8, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .economy-users-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .economy-users-table tbody td {
    display: grid;
    gap: 0.25rem;
    justify-items: start;
    text-align: left;
    padding: 0.55rem 0;
    border: 0;
  }

  .economy-users-table tbody td + td {
    border-top: 1px solid rgba(239, 68, 68, 0.12);
  }

  .economy-users-table tbody td::before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(229, 231, 235, 0.6);
  }

  .economy-users-table tbody td[colspan] {
    display: block;
    text-align: left;
  }

  .economy-users-table tbody td[colspan]::before {
    content: none;
  }

  .user-actions-cell,
  .whitelist-actions-cell {
    min-width: 0;
    display: block !important;
    text-align: left !important;
    padding-top: 0.8rem !important;
  }

  .user-actions-cell::before,
  .whitelist-actions-cell::before {
    content: none !important;
  }

  .user-actions-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-actions-panel {
    justify-items: stretch;
  }

  .economy-users-toolbar,
  .economy-users-footer {
    align-items: stretch;
  }

  .economy-users-pager {
    width: 100%;
    justify-content: space-between;
  }

  .economy-users-pager__actions {
    justify-content: flex-start;
  }

  .user-primary-actions {
    width: 100%;
  }

  .user-editor-link-row {
    justify-content: flex-start;
  }

  .analytics-flow-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .analytics-flow-card .card-body {
    padding: 1rem;
  }

  .analytics-table thead {
    display: none;
  }

  .analytics-table,
  .analytics-table tbody {
    display: block;
    width: 100%;
  }

  .analytics-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 18px;
    background: rgba(12, 5, 8, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .analytics-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .analytics-table tbody td {
    display: grid;
    gap: 0.25rem;
    justify-items: start;
    text-align: left !important;
    padding: 0.55rem 0;
    border: 0;
  }

  .analytics-table tbody td + td {
    border-top: 1px solid rgba(239, 68, 68, 0.12);
  }

  .analytics-table tbody td::before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(229, 231, 235, 0.6);
  }

  .analytics-table tbody td[colspan] {
    display: block;
    padding: 0.25rem 0;
  }

  .analytics-table tbody td[colspan]::before {
    content: none;
  }

  .economy-user-table thead {
    display: none;
  }

  .economy-user-table,
  .economy-user-table tbody {
    display: block;
    width: 100%;
  }

  .economy-user-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 18px;
    background: rgba(12, 5, 8, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .economy-user-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .economy-user-table tbody td {
    display: grid;
    gap: 0.25rem;
    justify-items: start;
    text-align: left !important;
    padding: 0.55rem 0;
    border: 0;
  }

  .economy-user-table tbody td + td {
    border-top: 1px solid rgba(239, 68, 68, 0.12);
  }

  .economy-user-table tbody td::before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(229, 231, 235, 0.6);
  }

  .economy-user-table tbody td[colspan] {
    display: block;
    padding: 0.25rem 0;
  }

  .economy-user-table tbody td[colspan]::before {
    content: none;
  }

  .analytics-flow-header,
  .analytics-flow-meta {
    gap: 0.65rem;
  }

  .analytics-flow-chart {
    padding: 0.65rem;
    border-radius: 18px;
  }

  .analytics-flow-chart svg {
    height: 272px;
  }
}

@media (max-width: 576px) {
  .analytics-flow-header,
  .analytics-flow-meta {
    align-items: flex-start;
  }

  .item-media-row {
    align-items: flex-start;
  }

  .analytics-flow-meta {
    width: 100%;
    flex-direction: column;
  }

  .analytics-flow-legend {
    gap: 0.55rem;
  }

  .analytics-flow-legend__item {
    width: 100%;
    justify-content: flex-start;
  }

  .economy-search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .whitelist-submit-btn {
    width: 100%;
  }

  .economy-users-table tbody td::before {
    margin-bottom: 0.15rem;
  }

  .economy-users-pager,
  .economy-users-pager__actions {
    width: 100%;
  }

  .economy-users-pager {
    justify-content: flex-start;
  }

  .economy-users-pager__meta {
    width: 100%;
  }

  .economy-users-pager__actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .user-actions-grid {
    grid-template-columns: 1fr;
  }

  .user-action-form,
  .user-action-form--metric {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .user-action-form--toggle {
    width: auto;
    justify-content: flex-start;
  }

  .user-editor-link-row .btn {
    width: 100%;
  }

  .player-profile-meta-row {
    flex-direction: column;
    gap: 0.35rem;
  }

  .player-profile-banner__content {
    grid-template-columns: 1fr;
  }

  .player-profile-badge-strip {
    justify-content: start;
  }

  .user-action-form .btn {
    min-height: 40px;
  }

  .whitelist-actions-cell form {
    width: auto;
  }
}

.log-search {
  min-width: 240px;
  max-width: 360px;
}

.log-search .input-group-text {
  background: rgba(18, 6, 10, 0.85);
  border-color: rgba(239, 68, 68, 0.25);
  color: rgba(248, 113, 113, 0.8);
}

.log-list {
  display: grid;
  gap: 1rem;
}

.log-card {
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(12, 5, 8, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.log-card-compact {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
}

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

.log-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(248, 113, 113, 0.85);
}

.log-time {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.6);
}

.log-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.log-meta form {
  margin: 0;
}

.log-card-body {
  display: grid;
  gap: 0.8rem;
}

.log-card-compact .log-card-body {
  gap: 0.5rem;
}

.log-bot {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
}

.log-summary {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
  white-space: pre-wrap;
  word-break: break-word;
}

.log-summary-stack {
  display: grid;
  gap: 0.7rem;
}

.log-summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.log-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.log-summary-chip {
  display: grid;
  gap: 0.35rem;
  padding: 0.78rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: rgba(10, 4, 8, 0.62);
}

.log-summary-chip__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248, 113, 113, 0.74);
}

.log-summary-chip__value {
  color: rgba(248, 250, 252, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
}

.log-content {
  color: rgba(248, 250, 252, 0.9);
  white-space: pre-wrap;
  margin-bottom: 0;
  word-break: break-word;
}

.log-embed-stack {
  display: grid;
  gap: 0.6rem;
}

.log-embed {
  border-left: 4px solid var(--embed-color, rgba(239, 68, 68, 0.8));
  background: rgba(10, 4, 8, 0.7);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.log-embed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.log-embed-thumb {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: rgba(11, 11, 15, 0.72);
}

.log-embed-author {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 113, 113, 0.7);
  margin-bottom: 0.2rem;
}

.log-embed-title {
  font-weight: 600;
}

.log-embed-desc {
  margin-top: 0.3rem;
  color: rgba(226, 232, 240, 0.75);
  white-space: pre-wrap;
}

.log-embed-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem 1rem;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.log-embed-field {
  display: grid;
  gap: 0.25rem;
}

.log-embed-field dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 113, 113, 0.7);
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.log-embed-field dd {
  margin: 0;
  color: rgba(248, 250, 252, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
}

.log-embed-footer {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.6);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.log-embed-image-wrap {
  margin-top: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, 0.12);
  background: rgba(6, 4, 8, 0.85);
}

.log-embed-image {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
}

.log-expander {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.log-expander > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(248, 113, 113, 0.78);
}

.log-expander > summary::-webkit-details-marker {
  display: none;
}

.log-expander > summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: rgba(248, 250, 252, 0.88);
}

.log-expander[open] > summary::after {
  content: '−';
}

.log-empty {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px dashed rgba(239, 68, 68, 0.22);
  background: rgba(12, 5, 8, 0.52);
}

.log-section {
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(12, 5, 8, 0.6);
  margin-bottom: 1rem;
}

.log-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(248, 113, 113, 0.8);
  margin-bottom: 0.6rem;
}

.log-item.form-check {
  padding-left: 0;
  margin: 0;
}

.log-item {
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  background: rgba(10, 4, 8, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.log-item .form-check-input {
  margin-left: auto;
  margin-right: 0;
  order: 2;
}

.log-item .form-check-label {
  margin: 0;
  order: 1;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 113, 113, 0.85);
}

.log-item--channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: 0.85rem;
}

.log-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.log-item-toggle .form-check-label {
  min-width: 0;
}

.log-item-channel {
  min-width: 0;
}

.log-item-channel .wick-select__trigger,
.log-item-channel .form-select {
  min-height: 44px;
}

[data-autosave-status].is-saving {
  color: #fbbf24 !important;
}

[data-autosave-status].is-warning {
  color: #f59e0b !important;
}

[data-autosave-status].is-error {
  color: #f87171 !important;
}

[data-autosave-status].is-ok {
  color: #34d399 !important;
}

.autosave-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1080;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(13, 6, 10, 0.94);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.autosave-dock-label {
  margin-bottom: 0.18rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.75);
}

.autosave-dock-status {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.92);
}

.autosave-dock.is-saving,
.autosave-dock .is-saving {
  border-color: rgba(251, 191, 36, 0.45);
}

.autosave-dock.is-warning,
.autosave-dock .is-warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.autosave-dock.is-error,
.autosave-dock .is-error {
  border-color: rgba(248, 113, 113, 0.52);
}

.autosave-dock.is-ok,
.autosave-dock .is-ok {
  border-color: rgba(52, 211, 153, 0.42);
}

.autosave-dock.is-pulse {
  animation: autosavePulse 1.2s ease;
}

@keyframes autosavePulse {
  0% {
    transform: translateY(6px);
    opacity: 0.75;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.role-preview {
  min-height: 26px;
}

#verificationForm .select-filter,
#verificationForm .form-select,
#verificationForm .form-control {
  background: rgba(12, 5, 8, 0.88);
  border-color: rgba(239, 68, 68, 0.24);
  color: rgba(248, 250, 252, 0.92);
}

#verificationForm .select-filter,
#verificationForm .form-select {
  min-height: 42px;
}

#verificationForm .select-filter::placeholder {
  color: rgba(255, 228, 230, 0.34);
}

#verificationForm .select-filter:focus,
#verificationForm .form-select:focus,
#verificationForm .form-control:focus {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.18);
}

.wick-select-native[data-wick-enhanced='1'] {
  display: none !important;
}

.wick-select {
  position: relative;
  --wick-surface: linear-gradient(180deg, rgba(24, 8, 12, 0.96), rgba(11, 4, 8, 0.99));
  --wick-surface-raised: rgba(16, 6, 10, 0.98);
  --wick-surface-soft: rgba(38, 10, 16, 0.9);
  --wick-surface-option: rgba(26, 8, 13, 0.82);
  --wick-surface-option-hover: rgba(58, 14, 22, 0.92);
  --wick-border: rgba(248, 113, 113, 0.24);
  --wick-border-strong: rgba(248, 113, 113, 0.42);
  --wick-glow: rgba(239, 68, 68, 0.16);
  --wick-text: rgba(255, 241, 242, 0.94);
  --wick-muted: rgba(251, 207, 232, 0.62);
  --wick-channel-bg: rgba(239, 68, 68, 0.14);
  --wick-channel-text: rgba(254, 202, 202, 0.96);
  --wick-scroll-thumb: rgba(248, 113, 113, 0.55);
  --wick-scroll-track: rgba(25, 7, 11, 0.8);
}

.wick-select__control {
  position: relative;
}

.wick-select__trigger {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 3.3rem 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--wick-border);
  background: var(--wick-surface);
  color: var(--wick-text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: left;
}

.wick-select.is-open .wick-select__trigger,
.wick-select__trigger:focus {
  border-color: var(--wick-border-strong);
  box-shadow:
    0 0 0 3px var(--wick-glow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wick-select__value {
  display: flex;
  align-items: center;
  min-width: 0;
}

.wick-select__token {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.wick-select__token--option {
  width: 100%;
}

.wick-select__placeholder {
  color: var(--wick-muted);
}

.wick-select__token-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wick-select__accent {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--wick-accent, #f87171);
  box-shadow: 0 0 0 2px rgba(14, 3, 6, 0.5);
}

.wick-select__accent--channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--wick-channel-bg);
  box-shadow: none;
  color: var(--wick-channel-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.wick-select__chevron {
  margin-left: auto;
  color: var(--wick-muted);
  font-size: 0.78rem;
  transition: transform 0.18s ease;
}

.wick-select.is-open .wick-select__chevron {
  transform: rotate(180deg);
}

.wick-select__clear {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 228, 230, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wick-select__clear:hover,
.wick-select__clear:focus {
  background: rgba(239, 68, 68, 0.18);
  color: #fff;
}

.wick-select__panel {
  position: absolute;
  inset: calc(100% + 0.45rem) 0 auto;
  z-index: 30;
  padding: 0.55rem;
  border-radius: 18px;
  border: 1px solid var(--wick-border);
  background: var(--wick-surface-raised);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.wick-select__search {
  width: 100%;
  min-height: 38px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  background: var(--wick-surface-soft);
  color: var(--wick-text);
  margin-bottom: 0.55rem;
}

.wick-select__search::placeholder {
  color: var(--wick-muted);
}

.wick-select__search:focus {
  outline: 0;
  border-color: var(--wick-border-strong);
  box-shadow: 0 0 0 3px var(--wick-glow);
}

.wick-select__list {
  display: grid;
  gap: 0.3rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.1rem;
  scrollbar-color: var(--wick-scroll-thumb) var(--wick-scroll-track);
  scrollbar-width: thin;
}

.wick-select__list::-webkit-scrollbar {
  width: 10px;
}

.wick-select__list::-webkit-scrollbar-track {
  background: var(--wick-scroll-track);
  border-radius: 999px;
}

.wick-select__list::-webkit-scrollbar-thumb {
  background: var(--wick-scroll-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.wick-select__list::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 113, 133, 0.78);
  background-clip: padding-box;
}

.wick-select__option {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 0;
  border-radius: 12px;
  background: var(--wick-surface-option);
  color: var(--wick-text);
  text-align: left;
}

.wick-select__option:hover,
.wick-select__option:focus,
.wick-select__option.is-selected {
  background: var(--wick-surface-option-hover);
}

.wick-select__option.is-selected {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}

.wick-select__option.is-empty {
  color: var(--wick-muted);
}

.wick-select__empty {
  padding: 0.7rem 0.3rem 0.15rem;
  color: var(--wick-muted);
  font-size: 0.88rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 8, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.9);
}

.role-pill::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--role-color, #f87171);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.question-list {
  display: grid;
  gap: 0.6rem;
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: start;
}

.question-fields {
  min-width: 0;
}

.question-remove-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

@media (max-width: 576px) {
  .wick-select__trigger {
    padding-right: 3rem;
  }

  .question-list {
    gap: 0.85rem;
  }

  .question-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: rgba(12, 5, 8, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .question-remove-btn {
    width: auto;
    height: 2.5rem;
    align-self: end;
    justify-self: end;
  }
}

.ip-logs-alert {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(250, 204, 21, 0.35);
  color: #fef3c7;
}

.ip-logs-table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  overflow: hidden;
  background: rgba(12, 5, 8, 0.75);
}

.ip-logs-table {
  margin-bottom: 0;
  color: rgba(243, 244, 246, 0.9);
  --bs-table-bg: transparent;
  --bs-table-color: rgba(243, 244, 246, 0.9);
  --bs-table-striped-bg: rgba(239, 68, 68, 0.05);
  --bs-table-hover-bg: rgba(239, 68, 68, 0.08);
}

.ip-logs-table thead th {
  background: rgba(10, 4, 8, 0.9);
  color: rgba(248, 113, 113, 0.85);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.ip-logs-table tbody td {
  border-color: rgba(255, 255, 255, 0.06);
}

.ip-logs-table tbody tr:hover {
  background: rgba(239, 68, 68, 0.08);
}

.ip-log-row.is-flagged {
  background: rgba(127, 29, 29, 0.22);
}

.ip-log-row.is-flagged td {
  border-color: rgba(239, 68, 68, 0.2);
}

.backups-page .backup-hero {
  margin-bottom: 2rem;
}

.backups-page main.container {
  width: min(100%, 1240px);
}

.backup-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.backup-card,
.backup-feature-card,
.backup-retention-card,
.backup-table-card,
.backup-operation-card {
  min-width: 0;
  overflow: hidden;
}

.backup-hero-copy {
  display: grid;
  gap: 1rem;
}

.backup-hero-stack {
  display: grid;
  gap: 1rem;
}

.backup-callout {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(20, 6, 10, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: rgba(248, 250, 252, 0.85);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.backup-live-alert {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(88, 53, 7, 0.44);
  color: #fde68a;
}

.backup-live-alert__title {
  font-weight: 700;
}

.backup-live-alert__copy {
  color: rgba(254, 243, 199, 0.88);
  overflow-wrap: anywhere;
}

.backup-card .card-body {
  display: grid;
  gap: 0.75rem;
}

.backup-card .form-label,
.backup-retention-card .form-label {
  margin-bottom: 0.45rem;
}

.backup-card .form-text,
.backup-retention-card .form-text,
.backup-callout,
.backup-operation-copy,
#backupOperationMeta {
  overflow-wrap: anywhere;
}

.backup-card .form-control,
.backup-card .form-select,
.backup-retention-card .form-control,
.backup-retention-card .form-select {
  min-height: 44px;
}

.backup-card .btn,
.backup-retention-card .btn {
  min-height: 44px;
  white-space: normal;
}

.backup-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem 0.75rem;
}

.backup-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.55rem;
}

.backup-type-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(12, 5, 8, 0.88);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fee2e2;
}

.backup-type-option input {
  margin: 0;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.backup-type-option span {
  font-size: 0.92rem;
  text-transform: capitalize;
  line-height: 1.35;
}

.backup-toggle-grid .form-check,
.backup-card .form-switch {
  min-width: 0;
}

.backup-toggle-grid .form-check .form-check-label,
.backup-card .form-switch .form-check-label {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.backup-feature-grid {
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.backup-schedule-table-wrap,
.backup-table-card .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(12, 5, 8, 0.76);
  -webkit-overflow-scrolling: touch;
}

.backup-feature-card {
  background: rgba(14, 6, 10, 0.75);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 20px 40px rgba(8, 4, 8, 0.45);
}

.backup-feature-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(248, 113, 113, 0.85);
  margin-bottom: 0.8rem;
}

.backup-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.backup-feature-list li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(226, 232, 240, 0.85);
}

.backup-feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(239, 68, 68, 0.85);
}

.backup-operation-card {
  overflow: hidden;
  border-color: rgba(239, 68, 68, 0.26);
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(225, 29, 72, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(18, 7, 12, 0.96), rgba(10, 4, 8, 0.94));
}

.backup-operation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.backup-operation-copy {
  min-width: 0;
}

.backup-operation-badges {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.backup-operation-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.backup-operation-live__dot {
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: backupOperationPulse 1.5s ease-out infinite;
}

.backup-operation-live.is-live,
.backup-operation-live.is-polling {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(13, 44, 39, 0.42);
}

.backup-operation-live.is-connecting,
.backup-operation-live.is-waiting {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(62, 34, 8, 0.4);
}

.backup-operation-live.is-stale,
.backup-operation-live.is-failed {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(69, 18, 26, 0.36);
}

.backup-operation-live.is-done {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(14, 46, 28, 0.36);
}

.backup-operation-health {
  margin-bottom: 0.8rem;
  color: rgba(255, 228, 230, 0.82);
  white-space: normal;
  overflow-wrap: anywhere;
}

.backup-operation-card .progress {
  height: 1rem;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.22);
}

.backup-operation-card .progress-bar {
  min-width: 2.5rem;
  font-weight: 700;
  transition: width 0.35s ease;
}

.backup-operation-card .progress-bar span {
  padding-inline: 0.55rem;
  font-size: 0.76rem;
  line-height: 1.2;
}

@keyframes backupOperationPulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.backup-table-card {
  margin-bottom: 1rem;
}

.backups-table {
  margin-bottom: 0;
  min-width: 1120px;
}

.backup-schedule-table {
  margin-bottom: 0;
  min-width: 780px;
}

.backups-table td,
.backups-table th,
.backup-schedule-table td,
.backup-schedule-table th {
  min-width: 0;
}

.backups-table td,
.backup-schedule-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.backups-table td code,
.backups-table td .badge,
.backups-table td .backup-cell-text,
.backup-schedule-table td code,
.backup-schedule-table td .badge,
.backup-schedule-table td .backup-cell-text {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.backups-table td code,
.backups-table td .backup-cell-text,
.backup-schedule-table td code,
.backup-schedule-table td .backup-cell-text {
  align-items: flex-start;
}

.backup-status-badge {
  text-transform: capitalize;
}

.backup-id-code,
.backup-pill-badge,
.backup-cell-text--nowrap {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.backup-id-code {
  display: inline-block !important;
  max-width: none !important;
}

.backup-pill-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.backup-name-value {
  display: block;
}

.backup-name-meta {
  max-width: 34rem;
  overflow-wrap: anywhere;
}

.backup-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.backup-archive-col,
.backup-schedule-switches,
.backup-table-head {
  min-width: 0;
}

.backup-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.backup-schedule-switches {
  flex-wrap: wrap;
}

.backup-table-meta {
  overflow-wrap: anywhere;
}

.backups-table thead th {
  white-space: nowrap;
}

.backups-table td,
.backup-schedule-table td {
  vertical-align: middle;
}

@media (max-width: 992px) {
  .backups-table,
  .backup-schedule-table,
  .backups-table tbody,
  .backup-schedule-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .backup-hero-grid {
    grid-template-columns: 1fr;
  }

  .backup-schedule-table-wrap,
  .backup-table-card .table-responsive {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .backup-operation-head {
    flex-direction: column;
    align-items: stretch;
  }

  .backup-operation-badges {
    justify-content: space-between;
  }

  .backup-schedule-switches {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .backup-schedule-switches .form-check {
    margin-top: 0 !important;
  }

  .backup-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .backups-table thead,
  .backup-schedule-table thead {
    display: none;
  }

  .backups-table tbody tr,
  .backup-schedule-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem;
    margin-bottom: 0.9rem;
    border-radius: 18px;
    background: rgba(12, 5, 8, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .backups-table tbody td,
  .backup-schedule-table tbody td {
    display: grid;
    gap: 0.28rem;
    justify-items: start;
    text-align: left;
    padding: 0.55rem 0;
    border: 0;
  }

  .backups-table tbody td + td,
  .backup-schedule-table tbody td + td {
    border-top: 1px solid rgba(239, 68, 68, 0.12);
  }

  .backups-table tbody td::before,
  .backup-schedule-table tbody td::before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(229, 231, 235, 0.6);
  }

  .backups-table tbody td > *,
  .backup-schedule-table tbody td > * {
    min-width: 0;
  }

  .backups-table tbody td code,
  .backups-table tbody td .badge,
  .backups-table tbody td .backup-cell-text,
  .backup-schedule-table tbody td code,
  .backup-schedule-table tbody td .badge,
  .backup-schedule-table tbody td .backup-cell-text {
    justify-self: start;
  }

  .backups-table tbody td[data-label='Actions'],
  .backup-schedule-table tbody td[data-label='Actions'] {
    margin-top: 0.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .backups-table tbody td[data-label='Actions']::before,
  .backup-schedule-table tbody td[data-label='Actions']::before {
    content: 'Actions';
  }

  .backups-table tbody td[data-label='Actions'] .backup-actions,
  .backup-schedule-table tbody td[data-label='Actions'] form {
    width: 100%;
  }

  .backups-table tbody td[colspan],
  .backup-schedule-table tbody td[colspan] {
    padding: 0.25rem 0;
  }

  .backups-table tbody td[colspan]::before,
  .backup-schedule-table tbody td[colspan]::before {
    content: none;
  }

  .backups-table tbody tr:last-child,
  .backup-schedule-table tbody tr:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .backups-table tbody td[data-label='Created'] .backup-cell-text {
    white-space: normal;
  }

  .backup-actions {
    justify-content: flex-start;
  }

  .backup-actions .btn,
  .backup-actions form {
    flex: 1 1 0;
  }

  .backup-actions form {
    display: flex !important;
    width: 100%;
  }

  .backup-actions .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
  }

  .backup-schedule-table tbody td[data-label='Actions'] .btn {
    width: 100%;
    min-height: 40px;
  }
}

@media (max-width: 576px) {
  .backups-page main.container {
    padding-inline: 0.9rem;
  }

  .backups-page .backup-hero {
    margin-bottom: 1.35rem;
  }

  .backup-archive-col {
    align-items: flex-start !important;
  }

  .backup-toggle-grid {
    grid-template-columns: 1fr;
  }

  .backup-type-grid {
    grid-template-columns: 1fr;
  }

  .backup-operation-card .card-body {
    padding: 1rem;
  }

  .backup-operation-badges {
    width: 100%;
  }

  .backup-operation-badges > * {
    flex: 1 1 auto;
    justify-content: center;
  }

  .backup-operation-live,
  .backup-operation-badges .badge {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .backup-table-card .card-body {
    padding: 1rem;
  }

  .backups-table tbody tr,
  .backup-schedule-table tbody tr {
    padding: 0.95rem;
  }

  .backups-table tbody td,
  .backup-schedule-table tbody td {
    grid-template-columns: minmax(4.9rem, auto) minmax(0, 1fr);
    align-items: start;
    column-gap: 0.7rem;
    row-gap: 0.18rem;
  }

  .backups-table tbody td::before,
  .backup-schedule-table tbody td::before {
    margin-bottom: 0;
    align-self: center;
  }

  .backups-table tbody td > *,
  .backup-schedule-table tbody td > * {
    grid-column: 2;
  }

  .backups-table tbody td[data-label='Actions'],
  .backup-schedule-table tbody td[data-label='Actions'] {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .backups-table tbody td[data-label='Actions'] .backup-actions,
  .backup-schedule-table tbody td[data-label='Actions'] form {
    grid-column: 1;
  }

  .backup-actions {
    display: grid;
    grid-template-columns: repeat(3, 2.6rem);
    justify-content: start;
    align-items: start;
    gap: 0.55rem;
  }

  .backup-actions .btn,
  .backup-actions form {
    width: 2.6rem;
  }

  .backup-actions form {
    display: flex !important;
  }

  .backup-actions .icon-btn {
    width: 2.6rem;
    min-width: 2.6rem;
    min-height: 42px;
    border-radius: 12px;
  }

  .backup-feature-grid {
    margin: 1.15rem 0 1.5rem;
    gap: 0.85rem;
  }

  .backup-feature-card {
    padding: 1rem;
  }

  .backup-retention-form .col-12.d-grid,
  .backup-retention-action {
    margin-top: 0.25rem;
  }
}

@media (max-width: 576px) {
  .autosave-dock {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
    min-width: 0;
  }

  .log-search {
    width: 100%;
    max-width: none;
  }

  .log-card {
    padding: 0.85rem;
  }

  .log-card-header {
    align-items: flex-start;
  }

  .log-time {
    width: 100%;
  }

  .log-embed {
    padding: 0.65rem 0.7rem;
  }

  .log-summary-grid {
    grid-template-columns: 1fr;
  }

  .log-embed-head {
    flex-direction: column;
  }

  .log-embed-fields {
    grid-template-columns: 1fr;
  }

  .log-item--channel {
    grid-template-columns: 1fr;
  }
}
