:root {
  --bg-main: #22273a;
  --bg-top: #141a28;
  --bg-card: #2f3446;
  --bg-card-soft: #3b4153;
  --line: rgba(86, 123, 184, 0.34);
  --text-main: #f1f4ff;
  --text-soft: #9ea7c4;
  --blue: #62b8ff;
  --blue-hover: #53a7f5;
  --btn-glow: 0 10px 26px rgba(61, 185, 255, 0.22);
  --btn-shadow: 0 8px 18px rgba(7, 13, 28, 0.34);
  --shadow: 0 20px 44px rgba(8, 11, 22, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(180deg, #0d1423 0%, #111a2c 48%, #0c1422 100%),
    radial-gradient(820px 420px at 12% -8%, rgba(69, 135, 255, 0.24), transparent 72%),
    radial-gradient(760px 420px at 88% 112%, rgba(67, 203, 255, 0.14), transparent 76%),
    radial-gradient(420px 220px at 76% 18%, rgba(100, 143, 255, 0.1), transparent 72%),
    var(--bg-main);
  background-attachment: fixed;
}

body.ddpbot-modal-open {
  overflow: hidden;
}

.ddpbot-page {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.ddpbot-page::before,
.ddpbot-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ddpbot-page::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.03), transparent 34%),
    repeating-linear-gradient(90deg, rgba(112, 152, 232, 0.09) 0, rgba(112, 152, 232, 0.09) 1px, transparent 1px, transparent 108px),
    repeating-linear-gradient(0deg, rgba(112, 152, 232, 0.06) 0, rgba(112, 152, 232, 0.06) 1px, transparent 1px, transparent 108px);
  opacity: 0.3;
}

.ddpbot-page::after {
  background:
    radial-gradient(18px 18px at 14% 22%, rgba(116, 169, 255, 0.34), transparent 72%),
    radial-gradient(14px 14px at 82% 18%, rgba(111, 228, 255, 0.22), transparent 72%),
    radial-gradient(20px 20px at 76% 66%, rgba(78, 146, 255, 0.2), transparent 72%),
    linear-gradient(128deg, transparent 0%, transparent 47%, rgba(88, 138, 237, 0.16) 49%, transparent 51%, transparent 100%),
    linear-gradient(152deg, transparent 0%, transparent 63%, rgba(82, 204, 255, 0.08) 65%, transparent 67%, transparent 100%);
  opacity: 0.85;
}

.ddpbot-hello-floater {
  position: fixed;
  bottom: 12px;
  width: min(22vw, 280px);
  min-width: 160px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  z-index: 130;
  filter: drop-shadow(0 10px 20px rgba(4, 10, 24, 0.45));
  transition: transform 680ms cubic-bezier(0.2, 0.9, 0.24, 1), opacity 420ms ease;
}

.ddpbot-hello-floater.is-left {
  left: 12px;
  transform: translate(-34px, 24px);
}

.ddpbot-hello-floater.is-right {
  right: 12px;
  transform: translate(34px, 24px);
}

.ddpbot-hello-floater.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.ddpbot-hello-video {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}



@media (max-width: 768px) {
  .ddpbot-hello-floater {
    width: min(42vw, 220px);
    min-width: 128px;
    bottom: 8px;
  }

  .ddpbot-hello-floater.is-left {
    left: 8px;
  }

  .ddpbot-hello-floater.is-right {
    right: 8px;
  }

}

.site-footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 14px 18px 20px;
  text-align: center;
}

.site-footer-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.ddpbot-header {
  border-bottom: 1px solid rgba(117, 173, 246, 0.16);
  background:
    linear-gradient(90deg, rgba(83, 133, 225, 0.12), transparent 22%, transparent 78%, rgba(79, 197, 255, 0.08)),
    linear-gradient(180deg, rgba(11, 18, 31, 0.96), rgba(14, 22, 36, 0.92));
}

.ddpbot-topbar {
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ddpbot-brand {
  text-decoration: none;
  color: #ffffff;
  font-family: "Orbitron", "Montserrat", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.32rem;
  font-weight: 700;
  text-shadow: 0 0 22px rgba(91, 182, 255, 0.22);
}

.ddpbot-nav {
  display: flex;
  gap: 14px;
}


.ddpbot-account {
  position: relative;
}

.ddpbot-login-btn,
.ddpbot-main-btn,
.ddpbot-ghost-btn,
.ddpbot-configure-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--btn-shadow);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.ddpbot-has-icon::before {
  content: attr(data-btn-icon);
  display: inline-block;
  font-weight: 800;
  font-size: 0.88em;
  line-height: 1;
  opacity: 0.92;
}

.ddpbot-btn-s {
  min-height: 34px;
  padding: 8px 11px !important;
  font-size: 0.82rem !important;
}

.ddpbot-btn-m {
  min-height: 40px;
  padding: 10px 14px !important;
  font-size: 0.92rem !important;
}

.ddpbot-btn-l {
  min-height: 46px;
  padding: 12px 18px !important;
  font-size: 0.98rem !important;
}

.ddpbot-btn-accent-success {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #47b88b, #2f9f75 62%, #2a8f74) !important;
  border-color: rgba(130, 236, 192, 0.38) !important;
  color: #f1fffa !important;
}

.ddpbot-btn-accent-neutral {
  border-color: rgba(173, 197, 237, 0.3) !important;
}

.ddpbot-btn-accent-warning {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #da9c3d, #c8832a 62%, #b96f25) !important;
  border-color: rgba(255, 217, 146, 0.42) !important;
  color: #fff8ec !important;
}

.ddpbot-btn-accent-danger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #dc6b7f, #c84f65 62%, #b8445d) !important;
  border-color: rgba(255, 177, 194, 0.42) !important;
  color: #fff4f7 !important;
}

.ddpbot-login-btn,
.ddpbot-main-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #49b4ff, #3178ff 58%, #3ed3ff 100%);
  border-color: rgba(126, 207, 255, 0.46);
  color: #f5f9ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.ddpbot-login-btn:hover,
.ddpbot-main-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-glow), var(--btn-shadow);
}

.ddpbot-login-btn:active,
.ddpbot-main-btn:active,
.ddpbot-ghost-btn:active,
.ddpbot-configure-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(7, 13, 28, 0.28);
}

.ddpbot-login-btn:focus-visible,
.ddpbot-main-btn:focus-visible,
.ddpbot-ghost-btn:focus-visible,
.ddpbot-configure-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(94, 170, 255, 0.32), var(--btn-shadow);
}

.ddpbot-login-btn {
  padding: 11px 18px;
  font-size: 0.9rem;
}

.ddpbot-profile-btn {
  border: 0;
  background: transparent;
  color: #e5ebff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.ddpbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, #68c8ff, #3f81f8);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #091227;
}

.ddpbot-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ddpbot-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  border: 1px solid rgba(120, 148, 198, 0.42);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.98), rgba(13, 22, 40, 0.96));
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 60;
}

.ddpbot-dropdown-title {
  margin: 4px 0 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}

.ddpbot-dropdown a,
.ddpbot-dropdown button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bfcef1;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 6px 8px;
  cursor: pointer;
}

.ddpbot-dropdown a:hover,
.ddpbot-dropdown button:hover {
  color: #edf3ff;
  background: rgba(72, 100, 150, 0.24);
}

.ddpbot-dropdown button#btn-logout {
  color: #ffc2cc;
  background: rgba(140, 48, 78, 0.32);
}

.ddpbot-dropdown button#btn-logout:hover {
  color: #ffd8df;
  background: rgba(166, 54, 90, 0.42);
}

.ddpbot-guest,
.ddpbot-oauth-info {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px 18px;
}

.ddpbot-workspace {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: 22px 20px 34px;
  display: grid;
  grid-template-columns: clamp(280px, 22vw, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ddpbot-server-sidebar {
  position: sticky;
  top: 82px;
  border: 1px solid #2f3a57;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 21, 37, 0.96), rgba(11, 18, 32, 0.92));
  padding: 12px;
  box-shadow: 0 16px 32px rgba(8, 12, 22, 0.38);
  max-height: calc(100vh - 96px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.ddpbot-dashboard {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.ddpbot-oauth-error {
  width: min(1120px, 100%);
  margin: 16px auto 0;
  padding: 0 18px;
}

.ddpbot-oauth-error p {
  margin: 0;
  border: 1px solid #764b53;
  border-radius: 10px;
  background: rgba(126, 53, 64, 0.2);
  color: #ffd8de;
  padding: 12px 14px;
}

.ddpbot-guest {
  max-width: 920px;
  text-align: center;
  padding-top: 66px;
  padding-bottom: 54px;
}

.ddpbot-guest-illustration {
  width: min(460px, 100%);
  height: 230px;
  margin: 0 auto 24px;
  border-radius: 24px;
  border: 1px solid rgba(181, 219, 255, 0.24);
  background: linear-gradient(180deg, #131b2f, #0f1628);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(153, 204, 255, 0.08),
    inset 0 -24px 54px rgba(28, 58, 115, 0.26),
    0 18px 34px rgba(5, 10, 22, 0.34);
}

.ddpbot-guest-gif {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ddpbot-guest h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #eef5ff;
  text-shadow:
    0 0 22px rgba(106, 193, 255, 0.22),
    0 10px 26px rgba(2, 8, 20, 0.52);
}

#guest-title {
  position: relative;
  display: inline-block;
  padding: 0 0.18em 14px;
  will-change: transform;
  animation: ddpbot-title-enter 560ms cubic-bezier(0.2, 0.9, 0.24, 1) both;
}

#guest-title::before {
  content: "";
  position: absolute;
  inset: -6px -10px 12px;
  z-index: -1;
  border-radius: 16px;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(91, 171, 255, 0.18), transparent 78%);
  filter: blur(7px);
}

#guest-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(78%, 560px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(115, 191, 255, 0), rgba(115, 191, 255, 0.95), rgba(126, 247, 255, 0.95), rgba(115, 191, 255, 0));
  box-shadow:
    0 0 14px rgba(120, 208, 255, 0.45),
    0 0 26px rgba(65, 129, 255, 0.24);
  animation: ddpbot-title-line 3.8s ease-in-out 820ms infinite;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  #guest-title .ddpbot-title-text {
    position: relative;
    display: inline-block;
    background:
      linear-gradient(94deg, #f6fbff 0%, #cbebff 32%, #74bfff 56%, #b6f2ff 74%, #f1fbff 100%),
      linear-gradient(180deg, rgba(112, 208, 255, 0.26), rgba(116, 144, 255, 0.18));
    background-size: 260% 100%, 100% 100%;
    background-position: 0% 50%, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow:
      0 0 14px rgba(112, 206, 255, 0.24),
      0 10px 24px rgba(2, 8, 20, 0.46);
    animation: ddpbot-title-spectrum 6.6s ease-in-out 700ms infinite;
  }

  #guest-title .ddpbot-title-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0) 68%);
    background-size: 220% 100%;
    background-position: -160% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: blur(0.15px);
    opacity: 0.92;
    pointer-events: none;
    animation: ddpbot-title-shine 3.2s ease-in-out 1.1s infinite;
  }
}

.ddpbot-guest p {
  margin: 0 auto 24px;
  color: var(--text-soft);
  max-width: 680px;
  font-size: 1.03rem;
  line-height: 1.65;
  animation: ddpbot-fade-up 620ms ease 140ms both;
}

.ddpbot-guest-meta {
  margin: 0 auto 20px;
  padding: 0;
  width: min(720px, 100%);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  animation: ddpbot-fade-up 620ms ease 260ms both;
}

.ddpbot-guest-meta li {
  border: 1px solid rgba(149, 190, 249, 0.26);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.01));
  color: #d6e4ff;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
  padding: 9px 11px;
}

.ddpbot-guest-meta li::before {
  content: "\2713\00A0";
  color: #97cdff;
}

.ddpbot-main-btn {
  padding: 12px 24px;
  font-size: 0.98rem;
}

.ddpbot-guest-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.ddpbot-guest-actions .ddpbot-main-btn,
.ddpbot-guest-actions .ddpbot-guest-service-btn {
  min-height: 126px;
  border-radius: 18px;
  padding: 18px 20px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 26px rgba(6, 12, 24, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: ddpbot-guest-card-enter 520ms ease both;
}

.ddpbot-guest-actions .ddpbot-main-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #63c1ff, #3f8eff 62%, #5f78ff);
  border-color: rgba(169, 222, 255, 0.62);
}

.ddpbot-guest-actions .ddpbot-guest-service-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, rgba(96, 133, 205, 0.9), rgba(66, 97, 171, 0.88));
  border-color: rgba(168, 196, 247, 0.56);
}

.ddpbot-guest-actions #btn-login-discord-hero {
  background:
    radial-gradient(130% 110% at -16% -34%, rgba(255, 227, 170, 0.34), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 48%),
    linear-gradient(128deg, #ffcf78 0%, #d89b3f 52%, #915d1f 100%);
  border-color: rgba(255, 222, 158, 0.72);
  box-shadow:
    0 20px 34px rgba(39, 20, 4, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -22px 42px rgba(80, 44, 10, 0.3);
}

.ddpbot-guest-actions #btn-ddp-status {
  background:
    radial-gradient(130% 90% at 108% -28%, rgba(188, 247, 255, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(132deg, #77dfec 0%, #2ca9c8 56%, #1e6a93 100%);
  border-color: rgba(158, 240, 255, 0.66);
  box-shadow:
    0 20px 34px rgba(6, 28, 36, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -20px 36px rgba(8, 45, 62, 0.28);
}

.ddpbot-guest-actions .ddpbot-main-btn::before,
.ddpbot-guest-actions .ddpbot-guest-service-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  transform: skewX(-24deg);
  transition: left 420ms ease;
  pointer-events: none;
}

.ddpbot-guest-actions .ddpbot-main-btn::after,
.ddpbot-guest-actions .ddpbot-guest-service-btn::after {
  content: "\2192";
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 1.16rem;
  color: rgba(236, 245, 255, 0.94);
  transition: transform 220ms ease;
}

.ddpbot-card-btn-title {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fbff;
  line-height: 1.2;
}

.ddpbot-card-btn-sub {
  display: block;
  font-size: 0.87rem;
  line-height: 1.4;
  color: rgba(229, 238, 255, 0.9);
  max-width: 210px;
}

.ddpbot-guest-actions .ddpbot-main-btn:hover,
.ddpbot-guest-actions .ddpbot-guest-service-btn:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 32px rgba(7, 13, 28, 0.46), 0 0 0 1px rgba(174, 218, 255, 0.34);
}

.ddpbot-guest-actions #btn-login-discord-hero:hover {
  box-shadow:
    0 28px 38px rgba(52, 28, 7, 0.6),
    0 0 0 1px rgba(255, 229, 172, 0.56),
    0 0 34px rgba(255, 193, 88, 0.38);
}

.ddpbot-guest-actions #btn-ddp-status:hover {
  box-shadow:
    0 28px 38px rgba(8, 26, 36, 0.58),
    0 0 0 1px rgba(171, 245, 255, 0.52),
    0 0 30px rgba(90, 214, 236, 0.34);
}

.ddpbot-guest-actions .ddpbot-main-btn:hover::before,
.ddpbot-guest-actions .ddpbot-guest-service-btn:hover::before {
  left: 145%;
}

.ddpbot-guest-actions .ddpbot-main-btn:hover::after,
.ddpbot-guest-actions .ddpbot-guest-service-btn:hover::after {
  transform: translateX(5px);
}

.ddpbot-guest-actions .ddpbot-main-btn {
  animation-delay: 70ms;
}

.ddpbot-guest-actions .ddpbot-guest-service-btn {
  animation-delay: 160ms;
}

@keyframes ddpbot-guest-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ddpbot-title-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ddpbot-title-spectrum {
  0% {
    text-shadow:
      0 0 14px rgba(106, 196, 255, 0.2),
      0 10px 24px rgba(2, 8, 20, 0.48);
    background-position: 0% 50%;
  }
  25% {
    text-shadow:
      0 0 20px rgba(126, 236, 255, 0.34),
      0 12px 28px rgba(2, 8, 20, 0.56);
    background-position: 42% 50%;
  }
  50% {
    text-shadow:
      0 0 24px rgba(108, 178, 255, 0.42),
      0 12px 28px rgba(2, 8, 20, 0.56);
    background-position: 100% 50%;
  }
  75% {
    text-shadow:
      0 0 20px rgba(162, 222, 255, 0.32),
      0 12px 28px rgba(2, 8, 20, 0.56);
    background-position: 58% 50%;
  }
  100% {
    text-shadow:
      0 0 14px rgba(106, 196, 255, 0.2),
      0 10px 24px rgba(2, 8, 20, 0.48);
    background-position: 0% 50%;
  }
}

@keyframes ddpbot-title-shine {
  0%,
  52%,
  100% {
    opacity: 0;
    background-position: -160% 50%;
  }
  58% {
    opacity: 0.95;
  }
  82% {
    opacity: 0.55;
    background-position: 170% 50%;
  }
}

@keyframes ddpbot-title-line {
  0%, 100% {
    opacity: 0.82;
    transform: translateX(-50%) scaleX(0.9);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.05);
  }
}

@keyframes ddpbot-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ddpbot-dashboard h2 {
  margin: 2px 0 12px;
  text-align: left;
  font-size: 1.28rem;
}

.ddpbot-server-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ddpbot-server-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 144, 214, 0.28);
  border-left: 4px solid rgba(102, 205, 255, 0.84);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.03), transparent 34%),
    radial-gradient(220px 120px at 100% 0%, rgba(92, 195, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(14, 24, 41, 0.94), rgba(10, 18, 31, 0.88));
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(211, 226, 255, 0.08), 0 10px 20px rgba(6, 10, 18, 0.22), 0 0 0 1px rgba(62, 136, 232, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.ddpbot-server-card:hover {
  border-color: rgba(138, 178, 255, 0.42);
  box-shadow: 0 12px 26px rgba(8, 13, 24, 0.36);
  transform: translateY(-1px);
}

.ddpbot-server-card.is-active {
  border-color: rgba(110, 200, 255, 0.72);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.04), transparent 34%),
    radial-gradient(220px 120px at 100% 0%, rgba(92, 195, 255, 0.22), transparent 70%),
    linear-gradient(115deg, rgba(34, 83, 170, 0.34), rgba(14, 28, 52, 0.7));
  box-shadow: 0 0 0 1px rgba(116, 186, 255, 0.28), 0 14px 28px rgba(8, 13, 24, 0.45), inset 0 1px 0 rgba(205, 225, 255, 0.08), 0 0 18px rgba(64, 173, 255, 0.12);
}

.ddpbot-server-card.is-active::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #8fd2ff, #5db1ff);
}

.ddpbot-server-active-badge {
  display: none;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(127, 227, 173, 0.45);
  background: rgba(31, 88, 59, 0.5);
  color: #baf5cf;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ddpbot-server-card.is-active[data-connected="1"] .ddpbot-server-active-badge {
  display: inline-flex;
}

.ddpbot-empty-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(20, 24, 37, 0.76);
  padding: 20px;
  grid-column: 1 / -1;
}

.ddpbot-empty-card h3 {
  margin: 0 0 10px;
}

.ddpbot-empty-card p {
  margin: 0;
  color: var(--text-soft);
}

.ddpbot-server-cover {
  height: 88px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: grid;
  place-items: center;
}

.ddpbot-server-icon,
.ddpbot-server-icon-fallback {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(8, 11, 22, 0.4);
}

.ddpbot-server-icon-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.ddpbot-server-icon {
  object-fit: cover;
}

.ddpbot-server-icon-fallback {
  display: grid;
  place-items: center;
  color: #eaf2ff;
  font-weight: 700;
  font-size: 1.45rem;
  background: linear-gradient(165deg, #4c9df9, #6a5df6);
}

.ddpbot-server-icon-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(18, 28, 47, 0.96);
  background: #7d8797;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ddpbot-server-card[data-connected="1"] .ddpbot-server-icon-status {
  background: #5bdd97;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 12px rgba(91, 221, 151, 0.45);
}

.cover-1 {
  background:
    radial-gradient(circle at 50% 58%, rgba(205, 222, 255, 0.48), transparent 56%),
    linear-gradient(145deg, #2f3746, #4b5160);
}

.cover-2 {
  background:
    linear-gradient(110deg, #131b2f 0%, #181a36 40%, #56316a 50%, #14182f 72%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24), transparent 40%);
}

.ddpbot-server-row {
  margin-top: 0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.ddpbot-server-row-main {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.ddpbot-server-copy {
  min-width: 0;
}

.ddpbot-server-kicker {
  margin: 0 0 3px;
  color: #7ec0ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.ddpbot-server-row h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.2;
  word-break: break-word;
}

.ddpbot-server-row p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.35;
  word-break: break-word;
}

.ddpbot-server-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ddpbot-server-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ddpbot-server-connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
}

.ddpbot-server-connection-pill.is-connected {
  color: #b4f5cc;
  background: rgba(35, 102, 69, 0.42);
  border-color: rgba(113, 225, 166, 0.35);
}

.ddpbot-server-connection-pill.is-disconnected {
  color: #f7d8be;
  background: rgba(118, 78, 41, 0.35);
  border-color: rgba(241, 181, 119, 0.28);
}

.ddpbot-configure-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, #28466f, #1a2943 62%, #23456f);
  border-color: rgba(123, 185, 255, 0.28);
  color: #eff5ff;
  min-width: 86px;
  padding: 8px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.ddpbot-module-sidebar {
  border-top: 1px solid #24304a;
  margin-top: 12px;
  padding-top: 12px;
}

.ddpbot-module-compact-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.ddpbot-module-compact-label {
  display: block;
  margin: 0;
  color: #90a8d8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ddpbot-module-quick-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ddpbot-module-quick-tab {
  border: 1px solid #3a4a73;
  border-radius: 10px;
  background: rgba(57, 75, 116, 0.2);
  color: #d2def7;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.ddpbot-module-quick-tab[data-premium-tab="1"] {
  border-color: rgba(224, 182, 94, 0.66);
  background:
    radial-gradient(170px 70px at 100% 0%, rgba(255, 214, 129, 0.2), transparent 70%),
    rgba(111, 82, 31, 0.22);
  color: #ffe7bc;
  box-shadow: inset 0 1px 0 rgba(255, 236, 194, 0.12);
}

.ddpbot-module-quick-tab[data-premium-tab="1"]:hover {
  border-color: rgba(238, 201, 122, 0.82);
  background:
    radial-gradient(170px 70px at 100% 0%, rgba(255, 220, 142, 0.28), transparent 70%),
    rgba(124, 90, 34, 0.3);
}

.ddpbot-module-quick-tab.is-active {
  background: linear-gradient(130deg, rgba(74, 163, 255, 0.28), rgba(74, 163, 255, 0.1));
  border-color: rgba(109, 188, 255, 0.72);
  color: #f4f9ff;
}

.ddpbot-module-quick-tab[data-premium-tab="1"].is-active {
  background:
    radial-gradient(170px 70px at 100% 0%, rgba(255, 224, 150, 0.32), transparent 72%),
    linear-gradient(130deg, rgba(192, 146, 54, 0.4), rgba(136, 96, 25, 0.24));
  border-color: rgba(245, 210, 136, 0.86);
  color: #fff3d8;
}

.ddpbot-module-title {
  margin: 0 0 8px;
  color: #90a8d8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.ddpbot-main-column {
  min-width: 0;
}

.ddpbot-configure-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, #2f527f, #203253 62%, #285180);
  border-color: rgba(151, 205, 255, 0.42);
  transform: translateY(-1px);
}

.ddpbot-server-settings {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, rgba(9, 17, 30, 0.97), rgba(9, 16, 29, 0.93));
  margin-top: 0;
  box-shadow: 0 18px 34px rgba(8, 12, 22, 0.4), inset 0 1px 0 rgba(181, 223, 255, 0.05);
  padding: 18px;
}

.ddpbot-banner-card {
  border: 1px solid rgba(102, 172, 255, 0.48);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(560px 250px at 92% -18%, rgba(92, 195, 255, 0.36), transparent 72%),
    radial-gradient(460px 230px at 2% 120%, rgba(64, 114, 255, 0.24), transparent 70%),
    linear-gradient(122deg, rgba(22, 49, 98, 0.97), rgba(13, 29, 58, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(205, 225, 255, 0.16),
    0 14px 28px rgba(6, 12, 25, 0.34),
    0 0 22px rgba(69, 173, 255, 0.08);
}

.ddpbot-banner-kicker {
  margin: 0 0 8px;
  color: #9db6e8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.ddpbot-banner-card h3 {
  margin: 0 0 8px;
  font-size: 1.38rem;
}

.ddpbot-banner-card p {
  margin: 0;
  color: #c1d0ee;
  line-height: 1.45;
}

.ddpbot-plugin-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ddpbot-plugin-card {
  border: 1px solid #344368;
  border-radius: 10px;
  background: rgba(21, 31, 52, 0.64);
  padding: 12px;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-settings-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 176, 240, 0.66);
  background:
    radial-gradient(520px 260px at -12% -30%, rgba(113, 230, 255, 0.26), transparent 70%),
    radial-gradient(460px 240px at 112% 130%, rgba(116, 140, 255, 0.22), transparent 74%),
    linear-gradient(132deg, rgba(32, 58, 102, 0.97), rgba(16, 31, 62, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(235, 245, 255, 0.16),
    inset 0 -18px 28px rgba(40, 82, 150, 0.16),
    0 12px 22px rgba(7, 13, 26, 0.32),
    0 0 0 1px rgba(110, 182, 255, 0.14),
    0 0 12px rgba(78, 178, 255, 0.08);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-settings-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.12), transparent 32%, transparent 64%, rgba(169, 201, 255, 0.1));
  pointer-events: none;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-settings-card::after {
  content: "";
  position: absolute;
  inset: -120% -40% auto;
  height: 64%;
  background: linear-gradient(90deg, transparent, rgba(173, 229, 255, 0.12), transparent);
  transform: rotate(-8deg);
  animation: ddpbot-overview-sheen 5.6s ease-in-out infinite;
  pointer-events: none;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-settings-card:hover {
  border-color: rgba(160, 202, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(246, 251, 255, 0.24),
    inset 0 -18px 28px rgba(58, 106, 184, 0.2),
    0 16px 28px rgba(8, 14, 30, 0.36),
    0 0 16px rgba(97, 194, 255, 0.14);
  transform: translateY(-2px);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-settings-grid {
  margin-bottom: 22px;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-settings-card > * {
  position: relative;
  z-index: 1;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card {
  --plugin-accent: rgba(129, 216, 255, 0.44);
  --plugin-edge: rgba(150, 206, 255, 0.86);
  --plugin-secondary: rgba(118, 134, 255, 0.3);
  --plugin-icon-glow: rgba(148, 223, 255, 0.6);
  position: relative;
  overflow: hidden;
  border-color: var(--plugin-edge);
  background:
    radial-gradient(300px 170px at 112% -34%, var(--plugin-accent), transparent 72%),
    radial-gradient(220px 120px at -12% 118%, var(--plugin-secondary), transparent 74%),
    linear-gradient(142deg, rgba(34, 59, 102, 0.97), rgba(16, 33, 66, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(236, 245, 255, 0.16),
    inset 0 -14px 20px rgba(43, 88, 155, 0.14),
    0 8px 14px rgba(8, 15, 29, 0.28),
    0 0 10px rgba(101, 187, 255, 0.08);
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card--welcome {
  --plugin-accent: rgba(112, 238, 255, 0.44);
  --plugin-edge: rgba(146, 235, 255, 0.88);
  --plugin-secondary: rgba(111, 146, 255, 0.3);
  --plugin-icon-glow: rgba(122, 240, 255, 0.65);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card--roles {
  --plugin-accent: rgba(126, 188, 255, 0.42);
  --plugin-edge: rgba(160, 206, 255, 0.88);
  --plugin-secondary: rgba(122, 130, 255, 0.34);
  --plugin-icon-glow: rgba(145, 196, 255, 0.62);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card--moderation {
  --plugin-accent: rgba(106, 213, 255, 0.44);
  --plugin-edge: rgba(145, 216, 255, 0.9);
  --plugin-secondary: rgba(96, 168, 255, 0.34);
  --plugin-icon-glow: rgba(118, 203, 255, 0.64);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card--tickets {
  --plugin-accent: rgba(128, 171, 255, 0.42);
  --plugin-edge: rgba(166, 196, 255, 0.88);
  --plugin-secondary: rgba(133, 132, 255, 0.32);
  --plugin-icon-glow: rgba(152, 182, 255, 0.62);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card--clans {
  --plugin-accent: rgba(170, 132, 255, 0.38);
  --plugin-edge: rgba(197, 172, 255, 0.86);
  --plugin-secondary: rgba(126, 128, 255, 0.3);
  --plugin-icon-glow: rgba(192, 164, 255, 0.62);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card--alerts {
  --plugin-accent: rgba(89, 239, 255, 0.46);
  --plugin-edge: rgba(133, 237, 255, 0.9);
  --plugin-secondary: rgba(86, 191, 255, 0.34);
  --plugin-icon-glow: rgba(115, 243, 255, 0.66);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card--content {
  --plugin-accent: rgba(131, 150, 255, 0.44);
  --plugin-edge: rgba(162, 183, 255, 0.88);
  --plugin-secondary: rgba(98, 148, 255, 0.34);
  --plugin-icon-glow: rgba(146, 176, 255, 0.62);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(173, 228, 255, 1), rgba(173, 228, 255, 0));
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card:hover {
  border-color: rgba(182, 214, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(246, 251, 255, 0.22),
    inset 0 -14px 20px rgba(57, 107, 182, 0.18),
    0 12px 18px rgba(8, 15, 29, 0.34),
    0 0 12px rgba(99, 196, 255, 0.12);
  transform: translateY(-2px);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eef7ff;
  text-shadow: 0 0 12px rgba(131, 198, 255, 0.18);
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card h4::before {
  content: attr(data-card-icon);
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 6px;
  border: 1px solid rgba(187, 224, 255, 0.62);
  background: linear-gradient(145deg, rgba(204, 230, 255, 0.24), rgba(145, 188, 255, 0.16));
  color: #eefdff;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: 0 0 12px var(--plugin-icon-glow);
  flex: 0 0 1.2rem;
}

.ddpbot-tab-panel[data-panel="overview"] .ddpbot-plugin-card p {
  color: #d2e5ff;
}

@keyframes ddpbot-overview-sheen {
  0% {
    transform: translateX(-48%) rotate(-8deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translateX(48%) rotate(-8deg);
    opacity: 0;
  }
}

.ddpbot-plugin-card h4 {
  margin: 0 0 6px;
}

.ddpbot-plugin-card p {
  margin: 0;
  color: #b9c7e6;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ddpbot-settings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.ddpbot-settings-kicker {
  margin: 0 0 6px;
  color: #8da5d6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.ddpbot-server-settings h2 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.2;
  word-break: break-word;
}

.ddpbot-settings-subtitle {
  margin: 0;
  color: #aebbe0;
  line-height: 1.45;
  word-break: break-word;
}

.ddpbot-settings-server-switcher {
  display: grid;
  gap: 6px;
  min-width: 360px;
}

.ddpbot-settings-server-switcher label {
  color: #a8b7de;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ddpbot-settings-server-switcher-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
}

#settings-guild-select {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #4a5168;
  background: #27314a;
  color: #ffffff;
  padding: 8px 10px;
}

.ddpbot-settings-tabs {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  max-height: min(54vh, 680px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.ddpbot-settings-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #3a4a73;
  border-radius: 10px;
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(84, 133, 220, 0.14), transparent 70%),
    rgba(57, 75, 116, 0.2);
  color: #d2def7;
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(196, 214, 255, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.ddpbot-settings-tab[data-premium-badge] {
  padding-right: 72px;
  border-color: rgba(214, 173, 88, 0.64);
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(255, 216, 130, 0.18), transparent 70%),
    rgba(85, 64, 27, 0.22);
}

.ddpbot-settings-tab[data-premium-badge]:hover {
  border-color: rgba(234, 196, 118, 0.8);
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(255, 223, 144, 0.26), transparent 70%),
    rgba(108, 80, 33, 0.28);
}

.ddpbot-settings-tab[data-premium-badge] .ddpbot-settings-tab-kicker {
  color: #f0c778;
}

.ddpbot-settings-tab[data-premium-badge].is-active {
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(255, 228, 157, 0.32), transparent 72%),
    linear-gradient(132deg, rgba(187, 141, 51, 0.46), rgba(130, 92, 24, 0.32));
  border-color: rgba(247, 214, 142, 0.88);
  color: #fff3da;
  box-shadow: inset 0 1px 0 rgba(255, 243, 210, 0.14);
}

.ddpbot-settings-tab[data-premium-badge].is-active .ddpbot-settings-tab-kicker,
.ddpbot-settings-tab[data-premium-badge].is-active .ddpbot-settings-tab-title {
  color: #fff3da;
}

.ddpbot-settings-tab-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ddpbot-settings-tab-kicker {
  color: #7ec0ff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.ddpbot-settings-tab-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f6ff;
  line-height: 1.2;
}

.ddpbot-settings-tab-text {
  display: none;
}

.ddpbot-settings-tab:hover {
  border-color: rgba(126, 174, 245, 0.64);
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(98, 162, 255, 0.2), transparent 70%),
    rgba(57, 75, 116, 0.34);
  box-shadow: 0 10px 18px rgba(7, 12, 22, 0.22);
}

.ddpbot-settings-tab.is-active {
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(108, 188, 255, 0.24), transparent 72%),
    linear-gradient(130deg, rgba(74, 163, 255, 0.28), rgba(74, 163, 255, 0.1));
  border-color: rgba(109, 188, 255, 0.72);
  color: #f4f9ff;
  box-shadow: inset 0 1px 0 rgba(205, 225, 255, 0.08);
}

.ddpbot-settings-tab.is-active .ddpbot-settings-tab-kicker,
.ddpbot-settings-tab.is-active .ddpbot-settings-tab-title {
  color: #f4f9ff;
}

.ddpbot-settings-tab.is-active .ddpbot-settings-tab-text {
  color: #d7e7ff;
}

.ddpbot-settings-tab.is-locked-premium {
  background: linear-gradient(130deg, rgba(97, 81, 40, 0.34), rgba(69, 53, 22, 0.2));
  border-color: rgba(183, 152, 82, 0.64);
  color: #f3e4bf;
  cursor: not-allowed;
  opacity: 0.92;
}

.ddpbot-settings-tab.is-locked-premium[data-tooltip],
.ddpbot-premium-tooltip-anchor[data-tooltip] {
  position: relative;
}

.ddpbot-settings-tab.is-locked-premium[data-tooltip]::after,
.ddpbot-premium-tooltip-anchor[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 205, 130, 0.46);
  background: linear-gradient(180deg, rgba(49, 37, 17, 0.98), rgba(34, 25, 11, 0.95));
  color: #ffe6bf;
  font-size: 0.79rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  z-index: 35;
}

.ddpbot-settings-tab.is-locked-premium[data-tooltip][data-tooltip-kind="locked"]::after,
.ddpbot-premium-tooltip-anchor[data-tooltip][data-tooltip-kind="locked"]::after {
  border-color: rgba(255, 188, 102, 0.56);
  background: linear-gradient(180deg, rgba(54, 38, 14, 0.98), rgba(36, 25, 8, 0.96));
  color: #ffe4b7;
}

.ddpbot-premium-tooltip-anchor[data-tooltip][data-tooltip-kind="limited"]::after {
  border-color: rgba(163, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(22, 38, 56, 0.98), rgba(13, 28, 43, 0.96));
  color: #d8ecff;
}

.ddpbot-settings-tab.is-locked-premium[data-tooltip]::before,
.ddpbot-premium-tooltip-anchor[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(6px) rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 205, 130, 0.46);
  border-bottom: 1px solid rgba(255, 205, 130, 0.46);
  background: rgba(39, 29, 13, 0.96);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  z-index: 34;
}

.ddpbot-settings-tab.is-locked-premium[data-tooltip][data-tooltip-kind="locked"]::before {
  border-right-color: rgba(255, 188, 102, 0.56);
  border-bottom-color: rgba(255, 188, 102, 0.56);
  background: rgba(43, 30, 10, 0.96);
}

.ddpbot-premium-tooltip-anchor[data-tooltip][data-tooltip-kind="limited"]::before {
  border-right-color: rgba(163, 210, 255, 0.5);
  border-bottom-color: rgba(163, 210, 255, 0.5);
  background: rgba(14, 30, 46, 0.96);
}

.ddpbot-settings-tab.is-locked-premium[data-tooltip]:hover::after,
.ddpbot-settings-tab.is-locked-premium[data-tooltip]:focus-visible::after,
.ddpbot-premium-tooltip-anchor[data-tooltip]:hover::after,
.ddpbot-premium-tooltip-anchor[data-tooltip]:focus-within::after,
.ddpbot-premium-tooltip-anchor[data-tooltip]:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ddpbot-settings-tab.is-locked-premium[data-tooltip]:hover::before,
.ddpbot-settings-tab.is-locked-premium[data-tooltip]:focus-visible::before,
.ddpbot-premium-tooltip-anchor[data-tooltip]:hover::before,
.ddpbot-premium-tooltip-anchor[data-tooltip]:focus-within::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.ddpbot-settings-tab[data-premium-badge]::after {
  content: attr(data-premium-badge);
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 224, 161, 0.58);
  background: rgba(123, 93, 36, 0.34);
  color: #ffe5b4;
}

.ddpbot-settings-tab:focus-visible {
  outline: none;
  border-color: rgba(109, 188, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(83, 143, 255, 0.18);
}

.is-premium-locked-control {
  opacity: 0.65;
  cursor: not-allowed;
}

.ddpbot-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ddpbot-settings-panels {
  min-width: 0;
}

.ddpbot-bot-context-note {
  margin: 0 0 14px;
  border: 1px solid #45516d;
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(33, 47, 76, 0.4), rgba(27, 38, 61, 0.3));
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ddpbot-bot-context-note.is-warn {
  border-color: #7a6438;
  background: linear-gradient(130deg, rgba(98, 74, 32, 0.34), rgba(60, 47, 24, 0.26));
}

.ddpbot-bot-context-note.is-error {
  border-color: #7d4552;
  background: linear-gradient(130deg, rgba(97, 42, 52, 0.36), rgba(57, 28, 35, 0.24));
}

.ddpbot-bot-context-note.is-info {
  border-color: #45516d;
  background: linear-gradient(130deg, rgba(33, 47, 76, 0.4), rgba(27, 38, 61, 0.3));
}

.ddpbot-bot-context-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0d1526;
  background: #9fbae8;
  flex-shrink: 0;
}

.ddpbot-bot-context-note.is-warn .ddpbot-bot-context-icon {
  background: #e5bc76;
}

.ddpbot-bot-context-note.is-error .ddpbot-bot-context-icon {
  background: #ec8f9f;
}

.ddpbot-bot-context-body {
  min-width: 0;
  flex: 1;
}

.ddpbot-guest-company-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  animation: ddpbot-fade-up 620ms ease 340ms both;
}

.ddpbot-company-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  min-height: 46px;
  min-width: 184px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(145, 203, 255, 0.64);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(178, 230, 255, 0.22), transparent 50%),
    linear-gradient(180deg, rgba(86, 123, 196, 0.92), rgba(44, 63, 111, 0.96));
  color: #f5faff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
  box-shadow:
    0 0 0 1px rgba(165, 220, 255, 0.16),
    0 16px 34px rgba(10, 20, 40, 0.34),
    0 0 24px rgba(101, 173, 255, 0.22);
  animation: ddpbot-guides-glow 2.8s ease-in-out infinite;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ddpbot-company-mini-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.34) 50%, transparent 85%);
  transform: translateX(-160%);
  transition: transform 480ms ease;
  pointer-events: none;
}

.ddpbot-company-mini-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(146, 216, 255, 0.18);
  opacity: 0.9;
  pointer-events: none;
}

.ddpbot-company-mini-btn:hover {
  border-color: rgba(201, 234, 255, 0.86);
  color: #ffffff;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(197, 238, 255, 0.28), transparent 52%),
    linear-gradient(180deg, rgba(103, 145, 225, 0.96), rgba(56, 80, 139, 0.98));
  box-shadow:
    0 0 0 1px rgba(179, 229, 255, 0.24),
    0 20px 38px rgba(10, 20, 40, 0.42),
    0 0 30px rgba(111, 190, 255, 0.34);
  transform: translateY(-3px) scale(1.02);
}

.ddpbot-company-mini-btn:hover::before {
  transform: translateX(160%);
}

.ddpbot-company-mini-btn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(119, 192, 255, 0.28),
    0 20px 38px rgba(10, 20, 40, 0.42),
    0 0 30px rgba(111, 190, 255, 0.34);
}

@keyframes ddpbot-guides-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(165, 220, 255, 0.16),
      0 16px 34px rgba(10, 20, 40, 0.34),
      0 0 22px rgba(101, 173, 255, 0.18);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(182, 231, 255, 0.24),
      0 18px 38px rgba(10, 20, 40, 0.4),
      0 0 34px rgba(112, 191, 255, 0.34);
  }
}

.ddpbot-bot-context-title {
  margin: 0 0 4px;
  font-size: 0.93rem;
  font-weight: 700;
  color: #f2f7ff;
}

.ddpbot-bot-context-text {
  margin: 0;
  color: #dbe6ff;
  line-height: 1.45;
  word-break: break-word;
}

.ddpbot-bot-context-note.is-warn .ddpbot-bot-context-text {
  color: #f5e2bf;
}

.ddpbot-bot-context-note.is-error .ddpbot-bot-context-text {
  color: #ffd3dc;
}

.ddpbot-bot-context-note .ddpbot-main-btn {
  flex-shrink: 0;
}

.ddpbot-discord-object-field {
  margin-top: 2px;
}

.ddpbot-tab-panel {
  display: none;
}

.ddpbot-tab-panel.is-active {
  display: block;
}

.ddpbot-settings-card {
  border: 1px solid rgba(94, 138, 205, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.03), transparent 32%),
    radial-gradient(220px 120px at 100% 0%, rgba(111, 181, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(14, 24, 41, 0.94), rgba(10, 18, 31, 0.88));
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(211, 226, 255, 0.08), 0 10px 20px rgba(6, 10, 18, 0.22), 0 0 0 1px rgba(62, 136, 232, 0.06);
}

.ddpbot-settings-card h3 {
  color: #eef4ff;
}

.ddpbot-settings-card ul {
  color: #c7d8f8;
}

.ddpbot-clans-list-wrap {
  margin-top: 14px;
}

.ddpbot-clans-list {
  display: grid;
  gap: 10px;
}

.ddpbot-clans-list .ddpbot-settings-card {
  padding: 12px;
}

.ddpbot-clans-list .ddpbot-settings-card h4 {
  margin: 0 0 6px;
  color: #ecf3ff;
  font-size: 0.96rem;
}

.ddpbot-clans-list .ddpbot-settings-card p {
  margin: 0;
  color: #b8c4e7;
  font-size: 0.88rem;
}

.ddpbot-autoreply-rules {
  display: grid;
  gap: 10px;
}

.ddpbot-autoreply-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 160px;
  gap: 8px;
  margin-bottom: 10px;
}

.ddpbot-autoreply-toolbar .ddpbot-field-input {
  width: 100%;
  min-height: 38px;
}

.ddpbot-autoreply-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.ddpbot-autoreply-pagination .ddpbot-settings-inline-status {
  margin: 0;
}

.ddpbot-module-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.ddpbot-module-block {
  --ddpbot-module-accent: rgba(111, 181, 255, 0.72);
  --ddpbot-module-accent-soft: rgba(111, 181, 255, 0.14);
  border: 1px solid rgba(91, 126, 187, 0.28);
  border-left: 4px solid var(--ddpbot-module-accent);
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(220px 120px at 100% 0%, var(--ddpbot-module-accent-soft), transparent 70%),
    linear-gradient(180deg, rgba(19, 29, 49, 0.92), rgba(12, 19, 33, 0.84));
  box-shadow: inset 0 1px 0 rgba(211, 226, 255, 0.08), 0 10px 20px rgba(6, 10, 18, 0.22);
}

.ddpbot-module-block.is-full {
  grid-column: 1 / -1;
}

.ddpbot-module-block.is-safety {
  --ddpbot-module-accent: rgba(255, 138, 160, 0.82);
  --ddpbot-module-accent-soft: rgba(255, 138, 160, 0.14);
}

.ddpbot-module-block.is-config {
  --ddpbot-module-accent: rgba(125, 198, 255, 0.82);
  --ddpbot-module-accent-soft: rgba(125, 198, 255, 0.14);
}

.ddpbot-module-block.is-words {
  --ddpbot-module-accent: rgba(255, 196, 102, 0.82);
  --ddpbot-module-accent-soft: rgba(255, 196, 102, 0.14);
}

.ddpbot-module-block.is-levels {
  --ddpbot-module-accent: rgba(130, 227, 175, 0.8);
  --ddpbot-module-accent-soft: rgba(130, 227, 175, 0.14);
}

.ddpbot-module-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ddpbot-module-block-copy {
  min-width: 0;
}

.ddpbot-module-block-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--ddpbot-module-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ddpbot-module-block-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #eef4ff;
}

.ddpbot-module-block-text {
  margin: 3px 0 0;
  color: #91a8d4;
  font-size: 0.79rem;
  line-height: 1.35;
}

.ddpbot-module-block-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ddpbot-module-block-fields > .field,
.ddpbot-module-block-fields > .ddpbot-field-block {
  margin: 0;
}

.ddpbot-field-block {
  border: 1px solid rgba(120, 146, 193, 0.14);
  border-radius: 10px;
  padding: 8px 8px 7px;
  background: rgba(10, 16, 29, 0.28);
}

.ddpbot-field-block .ddpbot-field-label {
  margin-top: 0;
}

.ddpbot-token-editor {
  border: 1px solid rgba(91, 126, 187, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(111, 181, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(19, 29, 49, 0.88), rgba(12, 19, 33, 0.8));
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(211, 226, 255, 0.06);
}

.ddpbot-token-editor-inputrow {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
}

.ddpbot-token-editor-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  margin-top: 8px;
}

.ddpbot-token-editor-tools .ddpbot-field-input {
  width: 100%;
}

.ddpbot-token-editor-inputrow .ddpbot-field-input {
  width: 100%;
}

.ddpbot-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 26px;
}

.ddpbot-token-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(151, 179, 233, 0.28);
  background: linear-gradient(135deg, rgba(63, 82, 119, 0.68), rgba(41, 56, 85, 0.68));
  border-radius: 999px;
  padding: 5px 8px;
  max-width: 100%;
}

.ddpbot-token-chip-text {
  color: #e8f1ff;
  font-size: 0.82rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddpbot-token-chip-remove {
  border: 1px solid rgba(255, 196, 210, 0.32);
  background: rgba(161, 69, 92, 0.28);
  color: #ffdbe3;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.ddpbot-token-chip-remove:hover {
  background: rgba(183, 73, 100, 0.4);
}

.ddpbot-fun-levels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ddpbot-fun-level-card {
  border: 1px solid rgba(91, 126, 187, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(130, 227, 175, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(19, 29, 49, 0.88), rgba(12, 19, 33, 0.8));
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(211, 226, 255, 0.06);
}

.ddpbot-fun-level-card h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: #dbe8ff;
}

.ddpbot-fun-level-card textarea {
  width: 100%;
  resize: vertical;
  min-height: 220px;
}

.ddpbot-autoreply-rule-card {
  border: 1px solid rgba(91, 126, 187, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(111, 181, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(19, 29, 49, 0.88), rgba(12, 19, 33, 0.8));
  box-shadow: inset 0 1px 0 rgba(211, 226, 255, 0.06);
}

.ddpbot-autoreply-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ddpbot-autoreply-rule-headtext {
  min-width: 0;
}

.ddpbot-autoreply-rule-title {
  margin: 0;
  color: #ecf3ff;
  font-weight: 700;
}

.ddpbot-autoreply-rule-summary {
  margin: 4px 0 0;
  color: #9fb2dd;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ddpbot-autoreply-rule-body {
  margin-top: 8px;
  border-top: 1px solid rgba(110, 132, 183, 0.25);
  padding-top: 8px;
}

@media (max-width: 1120px) {
  .ddpbot-guest-actions {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .ddpbot-guest-actions .ddpbot-main-btn,
  .ddpbot-guest-actions .ddpbot-guest-service-btn {
    min-height: 112px;
  }

  .ddpbot-guest-meta {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}


@media (prefers-reduced-motion: reduce) {
  #guest-title,
  #guest-title .ddpbot-title-text,
  #guest-title .ddpbot-title-text::after,
  #guest-title::before,
  #guest-title::after,
  .ddpbot-guest p,
  .ddpbot-guest-meta,
  .ddpbot-guest-company-wrap,
  .ddpbot-guest-illustration,
  .ddpbot-guest-illustration::before,
  .ddpbot-guest-illustration::after,
  .ddpbot-guest-actions .ddpbot-main-btn,
  .ddpbot-guest-actions .ddpbot-guest-service-btn,
  .ddpbot-guest-actions .ddpbot-main-btn::before,
  .ddpbot-guest-actions .ddpbot-guest-service-btn::before,
  .ddpbot-guest-actions .ddpbot-main-btn::after,
  .ddpbot-guest-actions .ddpbot-guest-service-btn::after,
  .ddpbot-tab-panel[data-panel="overview"] .ddpbot-settings-card::after {
    animation: none;
    transition: none;
  }
}
.ddpbot-autoreply-rule-card.is-collapsed {
  padding-bottom: 8px;
}

.ddpbot-autoreply-rule-card.is-collapsed .ddpbot-autoreply-rule-head {
  margin-bottom: 0;
}

.ddpbot-autoreply-toggle-btn {
  min-width: 108px;
  white-space: nowrap;
}

.ddpbot-autoreply-rule-card .ddpbot-field-input {
  width: 100%;
}

.ddpbot-settings-card h3 {
  margin: 0 0 10px;
}

.ddpbot-settings-card ul {
  margin: 0;
  padding-left: 18px;
  color: #b9c7ea;
  line-height: 1.5;
}

.ddpbot-settings-switches {
  display: grid;
  gap: 8px;
}

.ddpbot-settings-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d4e1fb;
  border: 1px solid rgba(120, 146, 193, 0.14);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(10, 16, 29, 0.28);
}

.ddpbot-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ddpbot-form-grid:first-child {
  margin-top: 0;
}

.ddpbot-form-field {
  border: 1px solid rgba(120, 146, 193, 0.14);
  border-radius: 10px;
  padding: 8px 8px 7px;
  background: rgba(10, 16, 29, 0.28);
  min-width: 0;
}

.ddpbot-form-field .ddpbot-field-label {
  margin-top: 0;
}

.ddpbot-form-field .ddpbot-field-input {
  width: 100%;
}

.ddpbot-form-full {
  grid-column: 1 / -1;
}

.ddpbot-form-grid .ddpbot-settings-switches,
.ddpbot-form-grid .ddpbot-settings-actions,
.ddpbot-form-grid .ddpbot-token-editor,
.ddpbot-form-grid .ddpbot-autoreply-toolbar,
.ddpbot-form-grid .ddpbot-autoreply-rules,
.ddpbot-form-grid .ddpbot-autoreply-pagination,
.ddpbot-form-grid .ddpbot-rules-options-list,
.ddpbot-form-grid .ddpbot-fun-levels-grid,
.ddpbot-form-grid .ddpbot-permissions,
.ddpbot-form-grid .ddpbot-abilities,
.ddpbot-form-grid .ddpbot-clans-list-wrap,
.ddpbot-form-grid .ddpbot-settings-grid {
  margin-top: 0;
}

.ddpbot-field-label {
  display: block;
  margin: 10px 0 6px;
  color: #bfd0f4;
  font-size: 0.88rem;
}

.ddpbot-required-mark {
  color: #ffb2b2;
  font-weight: 700;
  margin-left: 4px;
}

.ddpbot-required-note {
  color: #9db1df;
  font-size: 0.78rem;
  margin-left: 6px;
}

.ddpbot-field-label-with-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ddpbot-field-hint-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #5c77ad;
  background: #263754;
  color: #d7e7ff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ddpbot-field-hint-btn:hover {
  background: #30456b;
  border-color: #7da2e4;
}

.ddpbot-field-hint-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(105, 170, 255, 0.35);
}

.ddpbot-hint-modal-open {
  overflow: hidden;
}

.ddpbot-field-hint-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 13, 24, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.ddpbot-field-hint-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 140ms ease;
}

.ddpbot-field-hint-modal-card {
  width: min(420px, 100%);
  border-radius: 12px;
  border: 1px solid #405f96;
  background: linear-gradient(180deg, rgba(21, 34, 58, 0.98), rgba(18, 30, 52, 0.95));
  box-shadow: 0 20px 44px rgba(7, 12, 24, 0.52);
  padding: 14px 14px 12px;
  transform: translateY(4px) scale(0.97);
  opacity: 0.92;
  transition: transform 140ms ease, opacity 140ms ease;
}

.ddpbot-field-hint-modal.is-open .ddpbot-field-hint-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ddpbot-field-hint-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ddpbot-field-hint-modal-title {
  margin: 0;
  color: #e2eeff;
  font-size: 0.98rem;
  font-weight: 700;
}

.ddpbot-field-hint-modal-close {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #5674ad;
  background: #273b62;
  color: #d9e8ff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

.ddpbot-field-hint-modal-close:hover {
  background: #315082;
}

.ddpbot-field-hint-modal-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(105, 170, 255, 0.35);
}

.ddpbot-field-hint-modal-text {
  margin: 0;
  color: #d7e7ff;
  font-size: 0.86rem;
  line-height: 1.5;
}

.ddpbot-field-input {
  width: min(560px, 100%);
  max-width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #46557c;
  background: #24314b;
  color: #ecf3ff;
  padding: 8px 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.ddpbot-field-input:focus,
#settings-guild-select:focus,
#invite-guild-select:focus,
.ddpbot-fun-level-card textarea:focus {
  outline: none;
  border-color: #6f9dff;
  box-shadow: 0 0 0 3px rgba(83, 143, 255, 0.2);
  background: #253653;
}

.ddpbot-field-input.is-required-missing {
  border-color: #d46d7b;
  box-shadow: inset 0 0 0 1px rgba(212, 109, 123, 0.35);
}

.ddpbot-field-input.is-required-missing:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(212, 109, 123, 0.32), inset 0 0 0 1px rgba(212, 109, 123, 0.42);
}

.ddpbot-rules-options-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.ddpbot-rules-option-card {
  border: 1px solid rgba(91, 126, 187, 0.28);
  border-radius: 10px;
  padding: 10px;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(111, 181, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(19, 29, 49, 0.88), rgba(12, 19, 33, 0.8));
}

.ddpbot-rules-option-title {
  font-size: 0.86rem;
  color: #dbe7ff;
  font-weight: 700;
  margin-bottom: 4px;
}

.ddpbot-field-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9fb6e4 50%), linear-gradient(135deg, #9fb6e4 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.ddpbot-field-select[multiple] {
  appearance: auto;
  background-image: none;
  padding-right: 12px;
  min-height: 8em;
  max-height: 12em;
  overflow: auto;
}

.ddpbot-multiselect-wrap {
  position: relative;
}

.ddpbot-multiselect-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.ddpbot-multiselect-toggle {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.ddpbot-multiselect-toggle::after {
  content: "▾";
  font-size: 12px;
  color: #9fb6e4;
  flex-shrink: 0;
}

.ddpbot-multiselect-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  border: 1px solid rgba(123, 180, 255, 0.35);
  border-radius: 12px;
  background: rgba(7, 18, 43, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 8px;
  max-height: 220px;
  overflow: auto;
}

.ddpbot-multiselect-wrap:not(.is-open) .ddpbot-multiselect-panel {
  display: none;
}

.ddpbot-multiselect-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #dfe8ff;
  font-size: 14px;
}

.ddpbot-multiselect-option:hover {
  background: rgba(86, 145, 255, 0.16);
}

@media (max-width: 980px) {
  .ddpbot-module-quick-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ddpbot-settings-tabs {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .ddpbot-form-grid {
    grid-template-columns: 1fr;
  }

  .ddpbot-module-block-fields {
    grid-template-columns: 1fr;
  }

  .ddpbot-autoreply-toolbar {
    grid-template-columns: 1fr;
  }

  .ddpbot-autoreply-pagination {
    flex-wrap: wrap;
  }

  .ddpbot-token-editor-inputrow {
    grid-template-columns: 1fr;
  }

  .ddpbot-token-editor-tools {
    grid-template-columns: 1fr;
  }

  .ddpbot-fun-levels-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .ddpbot-fun-levels-grid {
    grid-template-columns: 1fr;
  }
}

.ddpbot-server-settings.is-loading .ddpbot-settings-card,
.ddpbot-server-settings.is-loading .ddpbot-banner-card,
.ddpbot-server-settings.is-loading .ddpbot-plugin-card {
  position: relative;
  overflow: hidden;
}

.ddpbot-server-settings.is-loading .ddpbot-settings-card::after,
.ddpbot-server-settings.is-loading .ddpbot-banner-card::after,
.ddpbot-server-settings.is-loading .ddpbot-plugin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 12%, rgba(151, 178, 228, 0.18) 45%, transparent 78%);
  animation: ddpbot-skeleton 1.2s linear infinite;
}

@keyframes ddpbot-skeleton {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.ddpbot-settings-inline-status {
  margin: 0;
  color: #b5c7eb;
  line-height: 1.55;
}

.ddpbot-alert-image-preview {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ddpbot-alert-image-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  border: 1px solid rgba(182, 202, 240, 0.32);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.ddpbot-settings-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ddpbot-settings-actions .ddpbot-main-btn {
  width: fit-content;
  min-width: 154px;
}

.ddpbot-settings-actions .ddpbot-ghost-btn {
  width: fit-content;
  min-width: 154px;
  padding: 11px 14px;
  font-size: 0.92rem;
}

.ddpbot-settings-status {
  margin: 0;
  min-height: 20px;
  color: #9fceb6;
  font-size: 0.9rem;
}

.ddpbot-settings-status.is-error {
  color: #ffc1cc;
}

.ddpbot-oauth-info {
  max-width: 880px;
  margin-top: 24px;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 24, 37, 0.75);
}

.ddpbot-oauth-info h2 {
  margin-top: 2px;
}

.ddpbot-oauth-info p,
.ddpbot-oauth-info li {
  color: #c0c9e3;
  line-height: 1.62;
  font-size: 1rem;
}

.ddpbot-oauth-info ol {
  padding-left: 20px;
}

.ddpbot-note {
  margin-top: 14px;
  color: #d7e4ff;
}

.ddpbot-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 22, 0.72);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 18px;
}

.ddpbot-modal-panel {
  width: min(560px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(106, 132, 186, 0.38);
  background: linear-gradient(180deg, rgba(13, 23, 43, 0.98), rgba(11, 18, 34, 0.96));
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
}

.ddpbot-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #c6d0eb;
  cursor: pointer;
}

.ddpbot-close:hover {
  color: #ffffff;
}

.ddpbot-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#invite-guild-select {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #4a5168;
  background: #3c4254;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.ddpbot-abilities {
  margin: 14px 0 18px;
  border: 1px solid rgba(91, 126, 187, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(111, 181, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(19, 29, 49, 0.88), rgba(12, 19, 33, 0.8));
  padding: 14px;
}

.ddpbot-abilities p {
  margin-top: 0;
}

.ddpbot-abilities ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #c4cce4;
}

.ddpbot-step-text {
  color: #bac4df;
  margin: 0 0 14px;
}

.ddpbot-company-panel {
  background:
    linear-gradient(150deg, rgba(77, 130, 255, 0.16), transparent 46%),
    linear-gradient(180deg, #2f3340, #2a2f3c);
}

.ddpbot-company-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.ddpbot-company-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  border: 1px solid rgba(91, 126, 187, 0.24);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(10, 16, 29, 0.24);
}

.ddpbot-company-key {
  color: #b8caef;
  font-weight: 700;
}

.ddpbot-company-value {
  color: #f2f8ff;
  text-align: right;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .ddpbot-company-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ddpbot-company-value {
    text-align: left;
  }
}

.ddpbot-permissions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  border: 1px solid rgba(91, 126, 187, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(111, 181, 255, 0.08), transparent 70%),
    rgba(18, 28, 48, 0.54);
  padding: 14px;
  max-height: 340px;
  overflow: auto;
}

.ddpbot-token-editor,
.ddpbot-fun-level-card,
.ddpbot-autoreply-rule-card,
.ddpbot-empty-card {
  border: 1px solid rgba(91, 126, 187, 0.28);
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(111, 181, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(19, 29, 49, 0.88), rgba(12, 19, 33, 0.8));
  box-shadow: inset 0 1px 0 rgba(211, 226, 255, 0.06);
}

.ddpbot-token-editor,
.ddpbot-fun-level-card,
.ddpbot-autoreply-rule-card {
  border-radius: 10px;
}

.ddpbot-permissions label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #e6ecff;
  font-size: 0.92rem;
}

.ddpbot-perm-group {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #8aa7dd;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.ddpbot-step-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ddpbot-ghost-btn {
  padding: 11px 14px;
  font-size: 0.98rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, rgba(35, 62, 100, 0.94), rgba(18, 34, 58, 0.94));
  border-color: rgba(120, 173, 238, 0.3);
  color: #dce8ff;
}

.ddpbot-ghost-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, rgba(44, 76, 120, 0.96), rgba(25, 44, 73, 0.96));
  border-color: rgba(158, 204, 255, 0.46);
  color: #f0f6ff;
  transform: translateY(-1px);
}

.ddpbot-login-btn:disabled,
.ddpbot-main-btn:disabled,
.ddpbot-ghost-btn:disabled,
.ddpbot-configure-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.ddpbot-toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 24px));
}

.ddpbot-toast {
  border-radius: 10px;
  border: 1px solid #3d4f78;
  background: rgba(23, 33, 55, 0.95);
  color: #eaf2ff;
  padding: 10px 12px;
  box-shadow: 0 14px 30px rgba(7, 12, 24, 0.46);
  animation: ddpbot-toast-in 220ms ease;
}

.ddpbot-toast-success {
  border-color: #3b7f67;
}

.ddpbot-toast-warn {
  border-color: #8a7541;
}

.ddpbot-toast-error {
  border-color: #894c59;
}

.ddpbot-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

@keyframes ddpbot-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .ddpbot-workspace {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 16px 12px 24px;
  }

  .ddpbot-plugin-grid {
    grid-template-columns: 1fr;
  }

  .ddpbot-server-sidebar {
    position: static;
  }

  .ddpbot-topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ddpbot-nav {
    width: 100%;
    justify-content: center;
  }

  .ddpbot-guest {
    padding-top: 42px;
  }

  .ddpbot-guest-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ddpbot-guest-actions .ddpbot-main-btn,
  .ddpbot-guest-actions .ddpbot-guest-service-btn {
    width: 100%;
  }

  .ddpbot-server-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ddpbot-settings-head {
    flex-direction: column;
  }

  .ddpbot-settings-server-switcher {
    min-width: 0;
    width: 100%;
  }

  .ddpbot-settings-server-switcher-row {
    grid-template-columns: 1fr;
  }

  .ddpbot-module-sidebar {
    position: static;
  }

  .ddpbot-settings-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .ddpbot-settings-grid {
    grid-template-columns: 1fr;
  }

  .ddpbot-bot-context-note {
    flex-direction: column;
    align-items: stretch;
  }

  .ddpbot-bot-context-note .ddpbot-main-btn {
    width: 100%;
  }

  .ddpbot-server-settings {
    padding: 14px;
  }

  .ddpbot-permissions {
    grid-template-columns: 1fr;
  }

  .ddpbot-configure-btn {
    width: 100%;
  }

  .ddpbot-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .ddpbot-toast-wrap {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }

}
