/* PulseBot v22.1.2 — clean admin notices and public server showcase. */

/* --- Public server showcase --- */
body#pulsebot-app.landing-mode .pb2212-showcase[hidden] {
  display: none !important;
}

body#pulsebot-app.landing-mode .pb2212-showcase {
  position: relative;
  overflow: hidden;
  padding: 44px 0 50px;
  border-top: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
  background: transparent;
}

body#pulsebot-app.landing-mode .pb2212-showcase-head {
  width: min(760px, calc(100% - 36px));
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 auto 30px;
  text-align: center;
}

body#pulsebot-app.landing-mode .pb2212-showcase-head > div {
  min-width: 0;
  display: grid;
  justify-items: center;
}

body#pulsebot-app.landing-mode .pb2212-showcase-head .pb-eyebrow {
  margin: 0;
}

body#pulsebot-app.landing-mode .pb2212-showcase-head h2 {
  max-width: 620px;
  margin: 8px 0 0;
  color: #f2f4f7;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
}

body#pulsebot-app.landing-mode .pb2212-showcase-head > p {
  max-width: 560px;
  margin: 0;
  color: #808996;
  font-size: .82rem;
  line-height: 1.6;
  text-align: center;
}

body#pulsebot-app.landing-mode .pb2212-showcase-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

body#pulsebot-app.landing-mode .pb2212-showcase-track {
  width: max-content;
  display: flex;
  gap: 38px;
  align-items: center;
  transform: translate3d(0,0,0);
  will-change: transform;
}

body#pulsebot-app.landing-mode .pb2212-showcase-group {
  display: flex;
  gap: 38px;
  align-items: center;
}

body#pulsebot-app.landing-mode .pb2212-server-card {
  width: 230px;
  min-width: 230px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body#pulsebot-app.landing-mode .pb2212-server-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  background: #151a21;
  color: #d7dde6;
  font-size: .78rem;
  font-weight: 600;
}

body#pulsebot-app.landing-mode .pb2212-server-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

body#pulsebot-app.landing-mode .pb2212-server-avatar.has-image img {
  opacity: 1;
}

body#pulsebot-app.landing-mode .pb2212-server-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body#pulsebot-app.landing-mode .pb2212-server-copy strong {
  overflow: hidden;
  color: #e8ecf2;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body#pulsebot-app.landing-mode .pb2212-server-copy small {
  color: #747e8c;
  font-size: .69rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  body#pulsebot-app.landing-mode .pb2212-showcase {
    padding: 38px 0 42px;
  }

  body#pulsebot-app.landing-mode .pb2212-showcase-head {
    width: min(100% - 28px, 640px);
    margin-bottom: 24px;
  }

  body#pulsebot-app.landing-mode .pb2212-showcase-head h2 {
    font-size: 1.3rem;
  }

  body#pulsebot-app.landing-mode .pb2212-showcase-window {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }

  body#pulsebot-app.landing-mode .pb2212-showcase-track,
  body#pulsebot-app.landing-mode .pb2212-showcase-group {
    gap: 26px;
  }

  body#pulsebot-app.landing-mode .pb2212-server-card {
    width: 205px;
    min-width: 205px;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 10px;
  }

  body#pulsebot-app.landing-mode .pb2212-server-avatar {
    width: 38px;
    height: 38px;
  }
}

/* --- Clean toast notifications --- */
body#pulsebot-app .toast,
body#pulsebot-app.dashboard-mode .toast,
body#pulsebot-app.admin-mode .toast {
  position: fixed !important;
  inset: auto 20px 20px auto !important;
  z-index: 1400 !important;
  width: min(390px, calc(100vw - 28px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 13px 14px !important;
  overflow: hidden !important;
  border: 1px solid #303844 !important;
  border-left: 3px solid #3b82f6 !important;
  border-radius: 10px !important;
  background: #11161d !important;
  color: #e8edf5 !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.34) !important;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
  transition: opacity .16s ease, transform .16s ease !important;
}

body#pulsebot-app .toast.show,
body#pulsebot-app.dashboard-mode .toast.show,
body#pulsebot-app.admin-mode .toast.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body#pulsebot-app .toast::before,
body#pulsebot-app .toast::after,
body#pulsebot-app .toast-progress,
body#pulsebot-app .toast-message::before,
body#pulsebot-app .toast-message::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app .toast[data-type="error"] {
  border-color: #3a3037 !important;
  border-left-color: #d86b7b !important;
  background: #171317 !important;
}

body#pulsebot-app .toast[data-type="info"] {
  border-left-color: #8aa0ba !important;
}

body#pulsebot-app .toast-icon {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(59,130,246,.26) !important;
  border-radius: 9px !important;
  background: rgba(59,130,246,.1) !important;
  color: #9ec5ff !important;
}

body#pulsebot-app .toast[data-type="error"] .toast-icon {
  border-color: rgba(216,107,123,.28) !important;
  background: rgba(216,107,123,.09) !important;
  color: #eba4ae !important;
}

body#pulsebot-app .toast-icon svg {
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body#pulsebot-app .toast-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-top: 1px;
}

body#pulsebot-app .toast-title {
  color: #f2f5fa !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

body#pulsebot-app .toast-message {
  display: block !important;
  color: #a4adba !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}

/* --- Full-page system notices --- */
body#pulsebot-app.system-notice-mode .pb2212-system-notice {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: 84px 0 96px;
}

body#pulsebot-app.system-notice-mode .pb2212-system-notice > .wrap {
  width: min(860px, calc(100% - 36px));
}

body#pulsebot-app.system-notice-mode .pb2212-notice-card {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 20px 22px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: transparent;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59,130,246,.28);
  border-radius: 13px;
  background: rgba(59,130,246,.08);
  color: #9ec5ff;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-icon.is-danger {
  border-color: rgba(216,107,123,.3);
  background: rgba(216,107,123,.08);
  color: #e6a1ac;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-icon .ui-icon {
  width: 23px;
  height: 23px;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-copy {
  min-width: 0;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-kicker {
  color: #7e8998;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .12em;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-copy h1 {
  margin: 8px 0 10px;
  color: #f4f6fa;
  font-size: clamp(2rem,5vw,3.15rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.04em;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-copy > p {
  max-width: 690px;
  margin: 0;
  color: #9aa4b1;
  font-size: .94rem;
  line-height: 1.75;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-meta,
body#pulsebot-app.system-notice-mode .pb2212-notice-details {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.065);
}

body#pulsebot-app.system-notice-mode .pb2212-notice-meta > span,
body#pulsebot-app.system-notice-mode .pb2212-notice-details > div {
  min-width: 0;
  padding: 14px 18px 0 0;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-meta > span + span,
body#pulsebot-app.system-notice-mode .pb2212-notice-details > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.065);
}

body#pulsebot-app.system-notice-mode .pb2212-notice-meta span,
body#pulsebot-app.system-notice-mode .pb2212-notice-details dt {
  color: #788392;
  font-size: .7rem;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-details dd {
  margin: 5px 0 0;
  color: #dce2ea;
  font-size: .8rem;
  line-height: 1.5;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body#pulsebot-app.system-notice-mode .pb2212-notice-actions .btn {
  min-height: 42px;
}

@media (max-width: 720px) {
  body#pulsebot-app .toast,
  body#pulsebot-app.dashboard-mode .toast,
  body#pulsebot-app.admin-mode .toast {
    inset: auto 12px 12px 12px !important;
    width: auto !important;
  }

  body#pulsebot-app.system-notice-mode .pb2212-system-notice {
    align-items: start;
    padding: 70px 0 82px;
  }

  body#pulsebot-app.system-notice-mode .pb2212-notice-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 0;
  }

  body#pulsebot-app.system-notice-mode .pb2212-notice-actions {
    grid-column: 1;
    flex-direction: column;
  }

  body#pulsebot-app.system-notice-mode .pb2212-notice-actions .btn {
    width: 100%;
  }

  body#pulsebot-app.system-notice-mode .pb2212-notice-meta,
  body#pulsebot-app.system-notice-mode .pb2212-notice-details {
    grid-template-columns: 1fr;
  }

  body#pulsebot-app.system-notice-mode .pb2212-notice-meta > span + span,
  body#pulsebot-app.system-notice-mode .pb2212-notice-details > div + div {
    padding-left: 0;
    border-left: 0;
  }
}

