* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1b1450 0%, #09081d 55%, #05050f 100%);
  color: #f5f5ff;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  min-height: 100vh;
}

/* LOGIN */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-card {
  width: 100%;
  max-width: 560px;
  background: rgba(23, 21, 52, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 0 60px rgba(72, 66, 180, 0.28);
}

.login-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.login-bot-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.login-title-wrap h1 {
  margin: 0;
  font-size: 58px;
  line-height: 0.95;
  color: #ab8cff;
  font-weight: 900;
}

.login-subtext {
  color: #d7d8ef;
  font-size: 18px;
  margin-bottom: 18px;
}

.login-input {
  width: 100%;
  height: 72px;
  border: none;
  outline: none;
  border-radius: 22px;
  background: #dce3ef;
  color: #222;
  padding: 0 24px;
  font-size: 18px;
  margin-bottom: 20px;
}

.login-button {
  width: 100%;
  border: none;
  cursor: pointer;
  height: 72px;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 800;
  color: white;
  background: linear-gradient(90deg, #7856ff, #29baf0);
}

.login-error {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 74, 74, 0.14);
  color: #ff8c8c;
  border: 1px solid rgba(255, 74, 74, 0.25);
}

/* APP LAYOUT */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 320px;
  background: rgba(11, 11, 28, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(19, 20, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 110px;
}

.brand-banner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110, 71, 255, 0.3), rgba(29, 186, 239, 0.24));
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.brand-main {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.brand-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-sub {
  margin-top: 4px;
  color: #b7b8d9;
  font-size: 14px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(19, 20, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.server-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
}

.server-name {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
}

.server-sub {
  margin-top: 4px;
  color: #b7b8d9;
  font-size: 13px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 20px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-section-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #a3a4c9;
  font-weight: 800;
  padding: 6px 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 13px 14px;
  color: #d9daf1;
  transition: 0.2s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(107, 74, 255, 0.35), rgba(28, 183, 239, 0.18));
  border: 1px solid rgba(103, 96, 255, 0.38);
}

.nav-icon {
  font-size: 22px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.nav-badge,
.plugin-status,
.version-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge-live {
  background: rgba(45, 216, 165, 0.16);
  color: #52f3be;
  border: 1px solid rgba(45, 216, 165, 0.26);
}

.badge-soon {
  background: rgba(232, 174, 32, 0.16);
  color: #ffd364;
  border: 1px solid rgba(232, 174, 32, 0.26);
}

.main-content {
  flex: 1;
  padding: 0;
  min-width: 0;
}

.topbar {
  height: 98px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 13, 32, 0.85);
  backdrop-filter: blur(12px);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  display: none;
}

.page-heading h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.page-heading p {
  margin: 6px 0 0;
  color: #b9bad5;
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.version-pill {
  background: rgba(117, 84, 255, 0.16);
  color: #cab7ff;
  border: 1px solid rgba(117, 84, 255, 0.24);
}

.logout-btn {
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.hero-card,
.section-card {
  margin: 24px 24px 0;
  border-radius: 28px;
  background: rgba(22, 23, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-card {
  padding: 28px;
  background: linear-gradient(90deg, rgba(115, 83, 247, 0.3), rgba(40, 184, 238, 0.24));
}

.hero-text {
  display: flex;
  gap: 18px;
  align-items: center;
}

.hero-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-bot-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  object-fit: cover;
}

.hero-text h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 900;
}

.hero-text p {
  margin: 0;
  color: #e6e6f5;
  font-size: 16px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 24px;
}

.stat-card {
  background: rgba(22, 23, 48, 0.94);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 26px;
}

.stat-icon {
  font-size: 34px;
  margin-bottom: 18px;
}

.stat-value {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 8px;
  word-break: break-word;
}

.stat-label {
  font-size: 16px;
  color: #b5b6d4;
}

.section-header {
  padding: 28px 28px 0;
}

.section-header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

.section-header p {
  margin: 8px 0 0;
  color: #b9bad5;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 26px;
}

.plugin-card {
  background: rgba(30, 31, 55, 0.96);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px;
  transition: 0.2s ease;
}

.plugin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 96, 255, 0.32);
}

.plugin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plugin-icon {
  font-size: 34px;
}

.plugin-card h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.plugin-card p {
  margin: 0;
  color: #bdbed7;
  line-height: 1.6;
}

/* BUILDER + FORMS */

.builder-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 24px;
}

.form-stack {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group span {
  font-weight: 800;
  color: #e9e9f7;
}

.input {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 18px;
  background: rgba(12, 13, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  padding: 16px 18px;
  font-size: 16px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.primary-btn {
  margin-top: 6px;
  min-height: 58px;
  border: none;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 900;
  color: white;
  cursor: pointer;
  background: linear-gradient(90deg, #7756ff, #29baf0);
}

.mini-btn {
  border: none;
  border-radius: 12px;
  background: rgba(117, 84, 255, 0.2);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.mini-btn.danger {
  background: rgba(255, 74, 74, 0.18);
  color: #ff9b9b;
}

.alert {
  margin: 24px 24px 0;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 800;
}

.alert.success {
  background: rgba(45, 216, 165, 0.12);
  color: #65f1c5;
  border: 1px solid rgba(45, 216, 165, 0.24);
}

.alert.error {
  background: rgba(255, 74, 74, 0.12);
  color: #ff9999;
  border: 1px solid rgba(255, 74, 74, 0.24);
}

.preview-panel {
  overflow: hidden;
}

.preview-normal {
  padding: 10px 28px 0;
  white-space: pre-wrap;
  color: #e9e9f7;
  min-height: 28px;
}

.discord-preview {
  padding: 20px 28px 28px;
}

.discord-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 16px;
  overflow: hidden;
  min-height: 170px;
}

.discord-embed-border {
  width: 6px;
  background: #8b5cf6;
  flex-shrink: 0;
}

.discord-embed-content {
  padding: 18px;
  flex: 1;
}

.discord-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.discord-description {
  font-size: 18px;
  color: #f2f2f4;
  line-height: 1.5;
}

.discord-footer {
  margin-top: 16px;
  font-size: 14px;
  color: #bbbcc4;
}

.preview-thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 14px;
}

.preview-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 16px;
}

.hidden {
  display: none;
}

/* TABLES / RESULTS */

.table-list {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.table-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(30, 31, 55, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 18px;
}

.vertical-row {
  flex-direction: column;
}

.row-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 5px;
}

.row-sub {
  color: #b8bad4;
  font-size: 14px;
}

.row-preview {
  margin-top: 10px;
  color: #dedff3;
  line-height: 1.5;
  max-height: 80px;
  overflow: hidden;
}

.status-pill {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}

.status-pill.good {
  background: rgba(45, 216, 165, 0.16);
  color: #65f1c5;
}

.status-pill.bad {
  background: rgba(255, 74, 74, 0.16);
  color: #ff9999;
}

.status-pill.info {
  background: rgba(41, 186, 240, 0.16);
  color: #9fe8ff;
}

.result-card {
  margin: 0 28px 28px;
  background: rgba(30, 31, 55, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 20px;
}

.result-card h3 {
  margin-top: 0;
}

.text-box {
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(10, 12, 28, 0.82);
  color: #f1f1ff;
  white-space: pre-wrap;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.empty-mini {
  padding: 24px;
  border-radius: 18px;
  background: rgba(30, 31, 55, 0.96);
  color: #b8bad4;
}

.empty-state {
  padding: 46px 28px;
  text-align: center;
}

.empty-state-icon {
  font-size: 52px;
  margin-bottom: 14px;
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.empty-state p {
  margin: 0 auto;
  max-width: 700px;
  color: #c1c2dc;
  line-height: 1.7;
}

/* MOBILE */

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

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

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

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -340px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: left 0.25s ease;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar {
    padding: 0 16px;
  }

  .hero-card,
  .section-card,
  .alert {
    margin-left: 16px;
    margin-right: 16px;
  }

  .stats-grid,
  .builder-grid {
    padding: 16px;
  }

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

  .topbar-right {
    gap: 8px;
  }

  .version-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .login-title-wrap h1 {
    font-size: 44px;
  }

  .login-card {
    padding: 26px;
  }
}


.banner-image {
  opacity: 0.65;
  background-size: cover;
  background-position: center;
}

.banner-fallback {
  opacity: 1;
  background:
    radial-gradient(circle at 25% 30%, rgba(124, 92, 255, 0.9), transparent 28%),
    radial-gradient(circle at 70% 40%, rgba(34, 199, 255, 0.55), transparent 30%),
    linear-gradient(135deg, rgba(110, 71, 255, 0.55), rgba(29, 186, 239, 0.28));
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-fallback-avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  object-fit: cover;
  opacity: 0.88;
  z-index: 2;
  box-shadow: 0 0 35px rgba(124, 92, 255, 0.55);
}

.banner-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.28);
  filter: blur(20px);
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
}

.sports-card {
  margin: 0;
}

.pretty-picker {
  border-radius: 22px;
  background: rgba(10, 12, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pretty-picker-title {
  padding: 16px 18px;
  font-weight: 900;
  color: #f4f1ff;
  background: linear-gradient(90deg, rgba(119, 86, 255, 0.24), rgba(41, 186, 240, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pretty-picker-title span {
  color: #9fe8ff;
}

.pretty-channel-list {
  max-height: 290px;
  overflow-y: auto;
  padding: 12px;
}

.pretty-category {
  margin: 12px 8px 8px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 900;
  color: #b8badb;
  text-transform: uppercase;
}

.pretty-channel-option {
  width: 100%;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 7px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #f4f1ff;
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.pretty-channel-option span {
  color: #9fa2c7;
  font-size: 20px;
  font-weight: 900;
}

.pretty-channel-option strong {
  font-size: 16px;
}

.pretty-channel-option:hover {
  background: rgba(119, 86, 255, 0.18);
  transform: translateX(3px);
}

.pretty-channel-option.selected {
  background: linear-gradient(90deg, rgba(119, 86, 255, 0.42), rgba(41, 186, 240, 0.2));
  border: 1px solid rgba(119, 86, 255, 0.5);
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 12, 28, 0.72);
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.toggle-line input {
  width: 20px;
  height: 20px;
  accent-color: #7756ff;
}

.sports-test-actions {
  padding: 24px 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .sports-grid {
    grid-template-columns: 1fr;
  }
}

.native-select-hidden {
  display: none !important;
}

.pretty-select-wrapper {
  position: relative;
  width: 100%;
}

.pretty-select-trigger {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(119, 86, 255, 0.16), rgba(41, 186, 240, 0.07)),
    rgba(12, 13, 30, 0.94);
  color: #f5f5ff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.pretty-select-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pretty-select-arrow {
  color: #aeb2e6;
  font-size: 22px;
  margin-left: 12px;
}

.pretty-select-panel {
  display: none;
  position: absolute;
  z-index: 2000;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(20, 21, 42, 0.98);
  border: 1px solid rgba(124, 92, 255, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.pretty-select-wrapper.open .pretty-select-panel {
  display: block;
}

.pretty-select-search {
  width: calc(100% - 24px);
  margin: 12px;
  height: 46px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: rgba(7, 8, 20, 0.92);
  color: white;
  padding: 0 14px;
  font-size: 15px;
}

.pretty-select-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 0 12px 12px;
}

.pretty-select-group {
  padding: 12px 10px 8px;
  color: #b8badb;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 900;
  text-transform: uppercase;
}

.pretty-select-option {
  width: 100%;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 7px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #f4f1ff;
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.pretty-select-option:hover {
  background: rgba(119, 86, 255, 0.18);
  transform: translateX(3px);
}

.pretty-select-option.selected {
  background: linear-gradient(90deg, rgba(119, 86, 255, 0.42), rgba(41, 186, 240, 0.2));
  border: 1px solid rgba(119, 86, 255, 0.5);
}

.pretty-select-option-icon {
  color: #9fa2c7;
  font-size: 20px;
  font-weight: 900;
}

.nav-tooltip {
  position: fixed;
  z-index: 9999;
  width: 300px;
  transform: translateY(-50%);
  background: rgba(9, 10, 22, 0.98);
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.16s ease;
}

.nav-tooltip.show {
  opacity: 1;
}

.nav-tooltip::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(9, 10, 22, 0.98);
  border-left: 1px solid rgba(124, 92, 255, 0.28);
  border-bottom: 1px solid rgba(124, 92, 255, 0.28);
}

.nav-tooltip-title {
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.nav-tooltip-desc {
  color: #bebfe0;
  line-height: 1.5;
  font-size: 14px;
}

.loop-status-box {
  background: rgba(10, 12, 28, 0.72);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dedff3;
  line-height: 1.7;
}

.sticky-save-bar {
  margin: 0 24px 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(22, 23, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.server-switch-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.server-switch-pill img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
}

.server-switch-pill span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.server-switch-pill strong {
  color: #9fe8ff;
  font-size: 12px;
  margin-left: auto;
}

.server-select-page {
  min-height: 100vh;
  padding: 42px 22px;
  background:
    radial-gradient(circle at top left, rgba(119, 86, 255, 0.35), transparent 30%),
    radial-gradient(circle at top right, rgba(41, 186, 240, 0.22), transparent 28%),
    #070716;
}

.server-select-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.server-select-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(90deg, rgba(119, 86, 255, 0.28), rgba(41, 186, 240, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-select-logo {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  object-fit: cover;
}

.server-select-header h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
}

.server-select-header p {
  margin: 8px 0 0;
  color: #c9c9df;
  font-size: 17px;
}

.server-select-card {
  margin: 0 0 24px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.server-option-form {
  margin: 0;
}

.server-option-card {
  width: 100%;
  min-height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  border-radius: 26px;
  background: rgba(22, 23, 48, 0.94);
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-align: left;
  transition: 0.18s ease;
}

.server-option-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, rgba(119, 86, 255, 0.24), rgba(41, 186, 240, 0.12));
  border-color: rgba(119, 86, 255, 0.45);
}

.server-option-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.server-option-text {
  flex: 1;
  min-width: 0;
}

.server-option-text h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.server-option-text p {
  margin: 0;
  color: #b9bad5;
}

.server-option-arrow {
  font-size: 26px;
  color: #9fe8ff;
  font-weight: 900;
}

.server-select-footer {
  margin-top: 28px;
  text-align: center;
  color: #b9bad5;
  font-weight: 900;
}

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

  .server-switch-pill span {
    max-width: 120px;
  }
}

@media (max-width: 760px) {
  .server-grid {
    grid-template-columns: 1fr;
  }

  .server-select-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-select-header h1 {
    font-size: 34px;
  }

  .server-switch-pill span {
    display: none;
  }
}

.template-grid {
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.template-card {
  background: rgba(30, 31, 55, 0.96);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px;
}

.template-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.template-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.template-card p {
  margin: 0;
  color: #b9bad5;
}

.template-normal {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 12, 28, 0.72);
  color: #e9e9f7;
  white-space: pre-wrap;
  margin-bottom: 14px;
}

.template-embed {
  border-left: 5px solid #8b5cf6;
  background: #2b2d31;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.template-embed-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.template-embed-desc {
  color: #f2f2f4;
  white-space: pre-wrap;
  line-height: 1.5;
}

.template-embed-footer {
  margin-top: 14px;
  color: #bbbcc4;
  font-size: 13px;
}

@media (max-width: 1000px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

.color-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.color-picker {
  width: 72px;
  height: 58px;
  border: none;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.color-hex-input {
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.template-save-box {
  background: rgba(10, 12, 28, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 16px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-btn {
  border: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 15px 20px;
  font-weight: 900;
  color: #f5f5ff;
  background: rgba(255, 255, 255, 0.09);
  transition: 0.18s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.28);
}

.template-loader-box {
  margin: 0 28px 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(10, 12, 28, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.secondary-link-btn,
.mini-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 15px 20px;
  font-weight: 900;
  color: #f5f5ff;
  background: rgba(255, 255, 255, 0.09);
  transition: 0.18s ease;
}

.mini-link-btn {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.secondary-link-btn:hover,
.mini-link-btn:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.28);
}

.preview-button-row {
  padding: 18px 28px 28px;
}

.template-source-label {
  margin-top: 6px !important;
  color: #9fe8ff !important;
  font-size: 13px;
  font-weight: 800;
}

.template-media-note {
  margin-top: 10px;
  color: #aeb0c8;
  font-size: 12px;
  word-break: break-all;
}

.template-save-box p {
  margin: 8px 0;
  color: #d7d7ee;
}

.role-button-builder {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.role-button-builder h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.rr-preview-buttons {
  padding: 18px 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rr-saved-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.rr-saved-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  color: #f5f5ff;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.rr-page .builder-grid {
  grid-template-columns: minmax(0, 1fr);
}

.rr-page .preview-panel {
  max-width: 100%;
}

.rr-page .template-save-box {
  margin-top: 18px;
}

.rr-page .button-manager-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.rr-page .rr-all-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rr-page .rr-button-index {
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.14);
  color: #f5f5ff;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  cursor: pointer;
}

.rr-page .rr-button-index.active {
  background: rgba(34, 211, 238, 0.22);
  border-color: rgba(34, 211, 238, 0.55);
}

.rr-page .rr-preview-buttons {
  padding: 18px 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rr-page .builder-grid {
  grid-template-columns: minmax(0, 1fr);
}

.rr-page .preview-panel {
  max-width: 100%;
}

.rr-page .template-save-box {
  margin-top: 18px;
}

.rr-page .compact-header {
  margin-bottom: 14px;
}

.rr-page .button-manager-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.rr-page .rr-all-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rr-page .rr-button-index {
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.14);
  color: #f5f5ff;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.rr-page .rr-button-index:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.26);
}

.rr-page .rr-button-index.active {
  background: rgba(34, 211, 238, 0.22);
  border-color: rgba(34, 211, 238, 0.55);
}

.rr-page .rr-preview-buttons {
  padding: 18px 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rr-saved-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.rr-saved-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  color: #f5f5ff;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.template-source-label {
  margin-top: 6px !important;
  color: #9fe8ff !important;
  font-size: 13px;
  font-weight: 800;
}

.template-media-note {
  margin-top: 10px;
  color: #aeb0c8;
  font-size: 12px;
  word-break: break-all;
}

.levels-page .builder-grid {
  grid-template-columns: minmax(0, 1fr);
}

.levels-page .preview-panel {
  max-width: 100%;
}

.levels-page .template-save-box {
  margin-top: 18px;
}

.levels-page .compact-header {
  margin-bottom: 14px;
}

.levels-page .button-manager-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.levels-page .rr-all-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.levels-page .rr-button-index {
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.14);
  color: #f5f5ff;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.levels-page .rr-button-index:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.26);
}

.levels-page .rr-button-index.active {
  background: rgba(34, 211, 238, 0.22);
  border-color: rgba(34, 211, 238, 0.55);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 800px) {
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

.levels-table-wrap {
  padding: 0 28px 28px;
  overflow-x: auto;
}

.levels-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.levels-table th,
.levels-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5ff;
}

.levels-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aeb0c8;
}

.levels-user-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.levels-user-mention {
  font-weight: 900;
  color: #9fe8ff;
}

.levels-username {
  font-size: 13px;
  color: #aeb0c8;
}

.danger-btn {
  background: rgba(239, 68, 68, 0.18) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.xp-tools-grid {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.xp-tool-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(10, 12, 28, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.xp-tool-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  color: #f5f5ff;
}

@media (max-width: 1100px) {
  .xp-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .xp-tools-grid {
    grid-template-columns: 1fr;
  }
}
.padded-form { padding: 0 28px 28px; }

/* =========================================================
   LEGENDARY DASHBOARD FIX — Separate Sidebar/Main Scrolling
   ========================================================= */

html,
body {
  height: 100%;
  overflow: hidden !important;
}

.app-shell {
  display: grid !important;
  grid-template-columns: 400px minmax(0, 1fr) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

.sidebar {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: sticky !important;
  top: 0 !important;
}

.sidebar-inner {
  min-height: 100%;
}

.main-content {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-width: 0 !important;
}

/* Make sidebar scrollbar cleaner */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.45);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

/* Fix nav badge overlap globally */
.legendary-nav-item {
  grid-template-columns: 28px minmax(0, 1fr) 76px !important;
}

.legendary-nav-label {
  min-width: 0 !important;
  padding-right: 10px !important;
}

.legendary-nav-badge {
  min-width: 64px !important;
  justify-self: end !important;
}

/* Mobile/tablet fallback */
@media (max-width: 900px) {
  html,
  body {
    height: auto;
    overflow: auto !important;
  }

  .app-shell {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .sidebar {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .main-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* =========================================================
   v14.3.8 POLICE OFFICER + DASHBOARD ULTRA POLISH
   ========================================================= */
html, body { height: 100%; overflow: hidden !important; }
.app-shell { display: grid !important; grid-template-columns: 400px minmax(0, 1fr) !important; height: 100vh !important; max-height: 100vh !important; overflow: hidden !important; }
.sidebar { height: 100vh !important; max-height: 100vh !important; overflow-y: auto !important; overflow-x: hidden !important; position: sticky !important; top: 0 !important; }
.main-content { height: 100vh !important; max-height: 100vh !important; overflow-y: auto !important; overflow-x: hidden !important; min-width: 0 !important; }
.sidebar::-webkit-scrollbar, .main-content::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb, .main-content::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.45); border-radius: 999px; }
.legendary-nav-item { grid-template-columns: 28px minmax(0, 1fr) 76px !important; }
.legendary-nav-label { min-width: 0 !important; padding-right: 10px !important; }
.legendary-nav-badge { min-width: 64px !important; justify-self: end !important; }
.mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mod-toggle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.moderation-stats { margin-bottom: 22px; }
.mod-command-grid { padding: 0 28px 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mod-command-pill { padding: 14px 16px; border-radius: 16px; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.28); color: #f5f3ff; font-weight: 900; }
@media (max-width: 1100px) { .mod-grid, .mod-toggle-grid, .mod-command-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { html, body { height: auto; overflow: auto !important; } .app-shell { display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; } .sidebar, .main-content { position: relative !important; height: auto !important; max-height: none !important; overflow: visible !important; } }

/* =========================================================
   EMERGENCY SCROLL FIX — v14.3.8
   Fixes dashboard pages not scrolling
   ========================================================= */

html,
body {
  min-height: 100% !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.app-shell {
  min-height: 100vh !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.sidebar {
  height: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  position: relative !important;
}

.sidebar-inner {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

.main-content {
  min-height: 100vh !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
}

/* =========================================================
   REAL FINAL SIDEBAR FIX — badge overlap + banner title
   Paste at VERY BOTTOM of dashboard/public/style.css
   ========================================================= */

.legendary-nav-item {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 56px !important;
  column-gap: 10px !important;
  padding: 0 12px !important;
  min-height: 60px !important;
}

.legendary-nav-label {
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 13.5px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding-right: 0 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.legendary-nav-badge {
  min-width: 50px !important;
  max-width: 50px !important;
  width: 50px !important;
  padding: 7px 6px !important;
  font-size: 11px !important;
  justify-self: end !important;
  text-align: center !important;
}

.legendary-brand-banner {
  padding: 16px !important;
  gap: 12px !important;
  background-position: center !important;
}

.legendary-brand-avatar {
  width: 54px !important;
  height: 54px !important;
  border-radius: 15px !important;
}

.legendary-brand-text {
  min-width: 0 !important;
  overflow: hidden !important;
}

.legendary-brand-text h1 {
  font-size: 17px !important;
  line-height: 1.05 !important;
  max-width: 165px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.legendary-brand-text p {
  font-size: 12.5px !important;
}

/* =========================================================
   OWNER ADMIN PANEL POLISH — v15.1.1
   Clean owner pages + better select/input styling
   ========================================================= */
.owner-body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.28), transparent 32%),
    radial-gradient(circle at 95% 15%, rgba(34, 211, 238, 0.16), transparent 30%),
    linear-gradient(135deg, #070720 0%, #111039 50%, #070720 100%);
  color: #f7f3ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.owner-page {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 34px 0 54px;
}

.owner-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.owner-kicker {
  margin: 0 0 10px;
  color: #a78bfa;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 1000;
}

.owner-topbar h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: -0.055em;
}

.owner-topbar p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #d5d1ff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.owner-top-actions,
.owner-card-actions,
.owner-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.owner-btn {
  min-height: 44px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 16px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(6, 182, 212, 0.22));
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
  transition: 0.18s ease;
}

.owner-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.22);
}

.owner-btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.owner-btn.danger {
  background: rgba(239, 68, 68, 0.17);
  border-color: rgba(239, 68, 68, 0.34);
}

.owner-alert {
  margin: 0 0 18px;
  padding: 15px 18px;
  border-radius: 18px;
  font-weight: 950;
}

.owner-alert.success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.owner-alert.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.owner-hero-card,
.owner-panel,
.owner-server-card,
.owner-stat-card,
.owner-module-card,
.owner-check-card {
  background: rgba(18, 19, 48, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.owner-hero-card {
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 32px;
  padding: 30px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.46), rgba(6, 182, 212, 0.19));
}

.owner-hero-card img {
  width: 88px;
  height: 88px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.owner-hero-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.owner-hero-card p {
  margin: 12px 0 0;
  color: #e1dcff;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.owner-stat-grid,
.owner-module-grid,
.owner-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.owner-stat-card,
.owner-module-card,
.owner-check-card {
  border-radius: 26px;
  padding: 24px;
  color: #ffffff;
  text-decoration: none;
}

.owner-stat-card span,
.owner-module-card span {
  display: block;
  font-size: 34px;
  margin-bottom: 20px;
}

.owner-stat-card strong,
.owner-check-card strong {
  display: block;
  color: #ffffff;
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
  word-break: break-word;
}

.owner-stat-card p,
.owner-module-card p,
.owner-check-card span,
.owner-section-head p {
  margin: 10px 0 0;
  color: #cfcdf6;
  font-weight: 700;
  line-height: 1.5;
}

.owner-module-card {
  transition: 0.18s ease;
}

.owner-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(30, 31, 70, 0.92);
}

.owner-module-card h3,
.owner-panel h2,
.owner-section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.025em;
}

.owner-panel {
  border-radius: 30px;
  padding: 28px;
  margin-bottom: 24px;
}

.owner-section-head {
  margin-bottom: 18px;
}

.owner-activity-grid,
.owner-log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.owner-list-item,
.owner-empty {
  padding: 13px 15px;
  margin-top: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfdcff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.owner-empty {
  color: #aaa5da;
}

.owner-server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.owner-server-card {
  border-radius: 28px;
  padding: 22px;
}

.owner-server-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}

.owner-server-head img {
  width: 70px;
  height: 70px;
  border-radius: 21px;
  object-fit: cover;
  flex: 0 0 auto;
}

.owner-server-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 1000;
}

.owner-server-head p {
  margin: 6px 0 0;
  color: #cfcdf6;
  font-weight: 800;
}

.owner-meta-box {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.owner-meta-box p {
  margin: 0;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.owner-meta-box span {
  color: #aaa5da;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.owner-meta-box b {
  color: #ffffff;
  font-size: 13px;
  word-break: break-word;
}

.owner-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.owner-field {
  display: grid;
  gap: 8px;
}

.owner-field.full,
.owner-form-actions.full {
  grid-column: 1 / -1;
}

.owner-field span {
  color: #d8d3ff;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.owner-input {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: rgba(9, 10, 32, 0.82);
  color: #ffffff;
  padding: 0 16px;
  outline: none;
  font-size: 15px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.owner-input::placeholder {
  color: rgba(220, 216, 255, 0.48);
}

.owner-input:focus {
  border-color: rgba(139, 92, 246, 0.72);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

select.owner-input {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #cfcdf6 50%),
    linear-gradient(135deg, #cfcdf6 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 24px,
    calc(100% - 15px) 24px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

select.owner-input option {
  background: #11142f;
  color: #ffffff;
  font-weight: 800;
}

.owner-textarea {
  min-height: 132px;
  padding-top: 15px;
  resize: vertical;
}

.owner-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.owner-tag {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: #dedaff;
  font-size: 13px;
  font-weight: 950;
}

@media (max-width: 1100px) {
  .owner-stat-grid,
  .owner-module-grid,
  .owner-check-grid,
  .owner-server-grid,
  .owner-activity-grid,
  .owner-log-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .owner-page {
    width: min(100% - 26px, 1540px);
    padding-top: 20px;
  }

  .owner-topbar,
  .owner-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-stat-grid,
  .owner-module-grid,
  .owner-check-grid,
  .owner-server-grid,
  .owner-activity-grid,
  .owner-log-grid,
  .owner-form-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PHASE 16.2.0 — Premium + server selector + command center polish
   ========================================================= */
.legendary-server-select-v16 .server-select-shell {
  max-width: 1280px;
}

.premium-server-header {
  align-items: center;
}

.premium-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px;
}

.premium-server-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 50, 0.76);
}

.premium-server-card.is-premium {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 18px 50px rgba(34, 211, 238, 0.08);
}

.premium-server-open-form {
  margin: 0;
}

.premium-server-open-button {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.premium-server-open-button:hover {
  background: rgba(139, 92, 246, 0.12);
}

.premium-toggle-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px 18px;
}

.premium-toggle-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5f3ff;
  font-weight: 900;
  cursor: pointer;
}

.premium-toggle-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.premium-toggle-ui {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  flex: 0 0 auto;
  transition: 0.18s ease;
}

.premium-toggle-ui::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.premium-toggle-line input:checked + .premium-toggle-ui {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border-color: rgba(34, 211, 238, 0.6);
}

.premium-toggle-line input:checked + .premium-toggle-ui::after {
  transform: translateX(23px);
}

.premium-toggle-line.big {
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 18, 45, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-settings-box {
  padding: 0 28px 28px;
  display: grid;
  gap: 16px;
}

.premium-mini-note {
  color: #cfcdf6;
  line-height: 1.55;
  font-weight: 700;
}

.premium-required-hero .hero-icon-wrap {
  font-size: 44px;
}

.owner-action-form-v16 {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.owner-action-form-v16 .full {
  grid-column: 1 / -1;
}

.command-chip-grid-v16 {
  padding: 0 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.command-chip-v16 {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  color: #dcd7ff;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.34);
  font-weight: 900;
  font-size: 13px;
}

@media (max-width: 800px) {
  .owner-action-form-v16 {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PHASE 16C — Owner Command Center Polish
   ========================================================= */

.command-center-card {
  overflow: visible;
}

.owner-command-hero .hero-icon-wrap {
  font-size: 38px;
}

.command-runner-form {
  padding: 0 28px 28px;
}

.command-grid-top,
.command-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.command-extra-grid {
  margin-top: 18px;
}

.command-field.hidden {
  display: none !important;
}

.command-field.full {
  grid-column: 1 / -1;
}

.mini-textarea {
  min-height: 96px !important;
}

.premium-select {
  color: #0f1028 !important;
  background: #f4f4fb !important;
  border: 0 !important;
  font-weight: 900 !important;
}

.premium-select option {
  color: #0f1028 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
}

.member-picker-card {
  margin: 18px 28px 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(8, 10, 30, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.member-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.member-picker-head label {
  color: #f3f0ff;
  font-size: 16px;
  font-weight: 950;
}

.member-picker-head p {
  margin: 4px 0 0;
  color: #bab6e8;
  font-size: 13px;
  line-height: 1.4;
}

.member-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.member-result {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(139, 92, 246, 0.26);
  background: rgba(139, 92, 246, 0.12);
  color: #f5f3ff;
  border-radius: 18px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
}

.member-result:hover,
.member-result.active {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.14);
  transform: translateY(-1px);
}

.member-result img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.member-result strong {
  display: block;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.member-result small {
  display: block;
  margin-top: 2px;
  color: #c9c3f6;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.command-action-summary {
  margin: 18px 28px 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #d9d5ff;
}

.command-action-summary strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 1000;
  margin-bottom: 4px;
}

.command-action-summary span {
  color: #c7c2f4;
  font-size: 13px;
  line-height: 1.45;
}

.danger-confirm-box {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.08);
}

.command-category-grid {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.command-category-card {
  min-height: 118px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
}

.command-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.12);
}

.command-category-card .category-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
}

.command-category-card strong {
  display: block;
  font-size: 16px;
  font-weight: 1000;
}

.command-category-card small {
  display: block;
  margin-top: 4px;
  color: #c9c3f6;
  font-weight: 800;
}

.action-log-list {
  padding: 0 28px 28px;
  display: grid;
  gap: 12px;
}

.action-log-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 10, 30, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.action-log-item strong {
  color: #fff;
  font-weight: 1000;
}

.action-log-item p {
  margin: 3px 0;
  color: #c9c3f6;
  font-size: 13px;
}

.action-log-item small {
  color: #9b95cf;
}

.loaded-command-details {
  margin: 0 28px 28px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(8, 10, 30, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loaded-command-details summary {
  cursor: pointer;
  color: #fff;
  font-weight: 1000;
}

.command-chip-grid-v16.clean {
  margin-top: 16px;
  padding: 0;
}

.legendary-nav-badge.premium {
  color: #ffd66b !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

.legendary-nav-badge.owner {
  color: #ffd66b !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

@media (max-width: 1100px) {
  .command-grid-top,
  .command-extra-grid,
  .member-results,
  .command-category-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PHASE 16D PLUGIN CARD LOCK BADGE FIX
   Paste at bottom of dashboard/public/style.css
   ========================================================= */

.plugin-card .status-badge,
.plugin-card .nav-badge,
.plugin-card .badge,
.plugin-card [class*="badge"] {
  white-space: nowrap;
}

.plugin-card.locked,
.module-card.locked {
  opacity: 0.88;
  border-color: rgba(245, 158, 11, 0.35) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(139, 92, 246, 0.12)),
    rgba(20, 22, 48, 0.92) !important;
}

.plugin-card.locked .status-badge,
.module-card.locked .status-badge {
  color: #ffd66b !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

/* =========================================================
   PHASE 16D PLUGIN CARD LOCK BADGE FIX
   Paste at bottom of dashboard/public/style.css
   ========================================================= */

.plugin-card .status-badge,
.plugin-card .nav-badge,
.plugin-card .badge,
.plugin-card [class*="badge"] {
  white-space: nowrap;
}

.plugin-card.locked,
.module-card.locked {
  opacity: 0.88;
  border-color: rgba(245, 158, 11, 0.35) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(139, 92, 246, 0.12)),
    rgba(20, 22, 48, 0.92) !important;
}

.plugin-card.locked .status-badge,
.module-card.locked .status-badge {
  color: #ffd66b !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}


/* =========================================================
   FINAL VISIBILITY POLISH — locked plugin cards + sidebar desc
   ========================================================= */

.plugin-status.badge-premium {
  color: #ffd66b !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

.plugin-card.locked {
  opacity: 0.92;
  border-color: rgba(245, 158, 11, 0.35) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(139, 92, 246, 0.12)),
    rgba(20, 22, 48, 0.92) !important;
}

.plugin-card.locked:hover {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.65) !important;
}

.plugin-card.locked h3::after {
  content: " Premium";
  display: inline-block;
  margin-left: 8px;
  color: #ffd66b;
  font-size: 12px;
  font-weight: 950;
  vertical-align: middle;
}

/* =========================================================
   PHASE 16E GLOBAL RESPONSIVE + SELECT POLISH
   Paste at bottom of dashboard/public/style.css if needed.
   ========================================================= */

html,
body {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.app-shell {
  min-width: 0 !important;
}

.main-content {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.input,
select,
textarea,
button {
  max-width: 100%;
}

select.input,
.premium-select {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(235,237,250,0.97)) !important;
  color: #11122d !important;
  border: 1px solid rgba(139,92,246,0.28) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.14) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #6d5dfc 50%),
    linear-gradient(135deg, #6d5dfc 50%, transparent 50%) !important;
  background-position:
    calc(100% - 22px) calc(50% - 4px),
    calc(100% - 14px) calc(50% - 4px) !important;
  background-size: 8px 8px, 8px 8px !important;
  background-repeat: no-repeat !important;
  padding-right: 44px !important;
}

@media (max-width: 1000px) {
  .app-shell {
    display: block !important;
    min-height: 100vh !important;
  }

  .sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    position: relative !important;
  }

  .main-content {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   PHASE 16F — Beautiful Select + Visibility Fix
   Paste this at the VERY BOTTOM of dashboard/public/style.css
   ========================================================= */

.command-runner-form .form-group span,
.command-runner-form label span {
  color: #f4f1ff !important;
  text-shadow: none !important;
}

.command-runner-form select.input,
.command-runner-form .premium-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  min-height: 70px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(139, 92, 246, 0.55) !important;
  color: #ffffff !important;
  background:
    linear-gradient(135deg, rgba(42, 29, 93, 0.92), rgba(17, 24, 63, 0.92)) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  padding: 0 56px 0 24px !important;
  cursor: pointer !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #9b8cff 50%),
    linear-gradient(135deg, #9b8cff 50%, transparent 50%),
    linear-gradient(135deg, rgba(42, 29, 93, 0.92), rgba(17, 24, 63, 0.92)) !important;
  background-position:
    calc(100% - 30px) calc(50% - 4px),
    calc(100% - 20px) calc(50% - 4px),
    center !important;
  background-size:
    10px 10px,
    10px 10px,
    100% 100% !important;
  background-repeat: no-repeat !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important;
}

.command-runner-form select.input:hover,
.command-runner-form .premium-select:hover {
  border-color: rgba(34, 211, 238, 0.55) !important;
  transform: translateY(-1px);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.command-runner-form select.input:focus,
.command-runner-form .premium-select:focus {
  outline: none !important;
  border-color: rgba(34, 211, 238, 0.72) !important;
  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.16),
    0 22px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.command-runner-form select.input option,
.command-runner-form .premium-select option {
  color: #11122d !important;
  background: #ffffff !important;
  font-weight: 850 !important;
  padding: 12px !important;
}

.command-runner-form .input:not(select),
.command-runner-form textarea.input {
  color: #ffffff !important;
  background: rgba(13, 14, 36, 0.76) !important;
  border: 1px solid rgba(139, 92, 246, 0.42) !important;
}

.command-runner-form .input:not(select)::placeholder,
.command-runner-form textarea.input::placeholder {
  color: rgba(244, 241, 255, 0.54) !important;
}

.member-picker-card,
.command-action-summary,
.loaded-command-details {
  border-color: rgba(139, 92, 246, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(18, 18, 48, 0.92), rgba(11, 14, 35, 0.92)) !important;
}

.member-result {
  background: rgba(139, 92, 246, 0.14) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.member-result:hover,
.member-result.active {
  background: rgba(34, 211, 238, 0.15) !important;
  border-color: rgba(34, 211, 238, 0.6) !important;
}

@media (max-width: 1000px) {
  .command-grid-top,
  .command-extra-grid,
  .member-results,
  .command-category-grid {
    grid-template-columns: 1fr !important;
  }

  .command-runner-form {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* =========================================================
   PHASE 17B — Owner/Customer Route Separation Polish
   ========================================================= */

.premium-toggle-line.read-only {
  cursor: default !important;
  opacity: 0.86;
}

.premium-toggle-line.read-only .premium-toggle-ui {
  filter: grayscale(0.15);
}

.customer-access-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #d9d5ff;
  font-weight: 750;
}

.server-select-header h1 {
  letter-spacing: -0.04em;
}

@media (max-width: 900px) {
  .server-select-shell {
    width: min(100% - 24px, 100%) !important;
  }
}


/* LEGENDARY DASHBOARD UX v18.5.5 */
.legendary-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 3, 14, 0.56);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.legendary-loading-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.legendary-loading-card {
  min-width: min(430px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), transparent 42%),
    rgba(12, 10, 35, 0.96);
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.legendary-loader-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #8b5cf6;
  border-right-color: #22d3ee;
  animation: legendarySpin 0.9s linear infinite;
  flex: 0 0 auto;
}

.legendary-loading-title {
  font-size: 1.18rem;
  font-weight: 1000;
  color: #fff;
}

.legendary-loading-subtitle {
  margin-top: 5px;
  color: rgba(237, 233, 254, 0.75);
  font-weight: 700;
  line-height: 1.45;
}

@keyframes legendarySpin {
  to {
    transform: rotate(360deg);
  }
}

.legendary-toast-root {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 9999;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
}

.legendary-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(12, 10, 35, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  transform: translateX(18px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  overflow: hidden;
}

.legendary-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.legendary-toast.success {
  border-color: rgba(34, 197, 94, 0.45);
}

.legendary-toast.error {
  border-color: rgba(239, 68, 68, 0.48);
}

.legendary-toast-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.18);
  font-size: 19px;
}

.legendary-toast-content {
  display: grid;
  gap: 5px;
}

.legendary-toast-content strong {
  color: #fff;
  font-size: 0.96rem;
}

.legendary-toast-content span {
  color: rgba(237, 233, 254, 0.82);
  font-weight: 700;
  line-height: 1.45;
}

.legendary-toast-content small {
  color: rgba(237, 233, 254, 0.55);
  font-weight: 800;
}

.legendary-toast-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.legendary-toast-progress {
  height: 4px;
  width: 100%;
  margin-top: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.legendary-toast-progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
}

.legendary-toast.error .legendary-toast-progress span {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.legendary-mini-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -3px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: #fff;
  animation: legendarySpin 0.8s linear infinite;
}

button.is-loading,
.primary-btn.is-loading {
  cursor: wait !important;
  opacity: 0.82;
}

@media (max-width: 700px) {
  .legendary-toast-root {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .legendary-loading-card {
    align-items: flex-start;
  }
}



/* LEGENDARY PREMIUM DASHBOARD UX v18.5.7 */
.legendary-toast-stack{position:fixed;right:22px;bottom:22px;display:flex;flex-direction:column;gap:14px;z-index:999999;width:min(455px,calc(100vw - 32px));pointer-events:none}
.legendary-toast-card{position:relative;display:grid;grid-template-columns:50px 1fr auto 34px;gap:12px;align-items:flex-start;padding:18px 16px 20px;border-radius:24px;color:#fff;box-shadow:0 26px 85px rgba(0,0,0,.42);transform:translateX(34px) translateY(12px) scale(.96);opacity:0;overflow:hidden;pointer-events:auto;backdrop-filter:blur(16px);transition:opacity .25s ease,transform .25s ease}
.legendary-toast-card.show{opacity:1;transform:translateX(0) translateY(0) scale(1)}
.legendary-toast-card.success{background:linear-gradient(135deg,rgba(5,46,22,.97),rgba(6,95,70,.95));border:1px solid rgba(34,197,94,.72)}
.legendary-toast-card.error{background:linear-gradient(135deg,rgba(69,10,10,.98),rgba(127,29,29,.95));border:1px solid rgba(248,113,113,.78)}
.legendary-toast-card.warning{background:linear-gradient(135deg,rgba(69,26,3,.98),rgba(120,53,15,.95));border:1px solid rgba(251,191,36,.72)}
.legendary-toast-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-size:28px;font-weight:1000;background:rgba(255,255,255,.12)}
.legendary-toast-body strong{display:block;margin-bottom:5px;font-size:1.03rem}
.legendary-toast-body p{margin:0;line-height:1.45;font-size:.92rem;color:rgba(255,255,255,.84);word-break:break-word}
.legendary-toast-body small{display:block;margin-top:9px;color:rgba(255,255,255,.62);font-size:.76rem}
.legendary-toast-help,.legendary-toast-close{width:32px;height:32px;border:0;border-radius:12px;cursor:pointer;color:#fff;background:rgba(255,255,255,.12);font-weight:1000}
.legendary-toast-help:hover,.legendary-toast-close:hover{background:rgba(255,255,255,.22)}
.legendary-toast-progress{position:absolute;left:0;right:0;bottom:0;height:4px;transform-origin:left center;transform:scaleX(1);transition-property:transform;transition-timing-function:linear}
.legendary-toast-card.success .legendary-toast-progress{background:linear-gradient(90deg,#22c55e,#86efac)}
.legendary-toast-card.error .legendary-toast-progress{background:linear-gradient(90deg,#ef4444,#fecaca)}
.legendary-toast-card.warning .legendary-toast-progress{background:linear-gradient(90deg,#f59e0b,#fde68a)}
.legendary-loading-overlay{position:fixed;inset:0;z-index:999998;display:grid;place-items:center;background:rgba(4,4,16,.45);backdrop-filter:blur(9px);opacity:0;pointer-events:none;transition:opacity .18s ease}
.legendary-loading-overlay.show{opacity:1;pointer-events:auto}
.legendary-loader-orb{position:relative;width:118px;height:118px;display:grid;place-items:center}
.legendary-loader-ring{position:absolute;inset:0;border-radius:50%;border:7px solid transparent;filter:drop-shadow(0 0 22px rgba(139,92,246,.55))}
.legendary-loader-ring.ring-one{border-top-color:#22d3ee;border-right-color:rgba(139,92,246,.85);animation:legendarySpin .82s linear infinite}
.legendary-loader-ring.ring-two{inset:18px;border-bottom-color:#a855f7;border-left-color:rgba(34,211,238,.85);animation:legendarySpinReverse 1.1s linear infinite}
.legendary-loader-core{width:34px;height:34px;border-radius:50%;background:radial-gradient(circle,#fff,#a855f7 50%,#22d3ee 100%);box-shadow:0 0 35px rgba(168,85,247,.85);animation:legendaryPulse 1.05s ease-in-out infinite}
.legendary-loader-spark{position:absolute;width:9px;height:9px;border-radius:50%;background:#22d3ee;box-shadow:0 0 18px #22d3ee}
.spark-one{top:7px;left:54px;animation:legendarySpark 1.1s ease-in-out infinite}
.spark-two{bottom:18px;left:18px;animation:legendarySpark 1.25s ease-in-out infinite .14s}
.spark-three{right:14px;bottom:34px;animation:legendarySpark 1.2s ease-in-out infinite .28s}
.legendary-help-modal{position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;padding:22px;background:rgba(3,7,18,.62);backdrop-filter:blur(10px);opacity:0;pointer-events:none;transition:opacity .2s ease}
.legendary-help-modal.show{opacity:1;pointer-events:auto}
.legendary-help-card{position:relative;width:min(780px,100%);padding:28px;border-radius:28px;background:linear-gradient(135deg,rgba(31,20,50,.98),rgba(14,12,38,.98));border:1px solid rgba(248,113,113,.55);color:#fff;box-shadow:0 30px 100px rgba(0,0,0,.52)}
.legendary-help-close{position:absolute;right:18px;top:18px;width:38px;height:38px;border:0;border-radius:14px;color:#fff;background:rgba(255,255,255,.1);font-size:24px;cursor:pointer}
.legendary-help-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:rgba(248,113,113,.16);border:1px solid rgba(248,113,113,.42);font-size:30px;font-weight:1000;margin-bottom:14px}
.legendary-help-card h2{margin:0 0 8px;font-size:2rem}
.legendary-help-message{color:rgba(255,255,255,.75);font-weight:700}
.legendary-help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:18px}
.legendary-help-grid div{padding:16px;border-radius:18px;background:rgba(255,255,255,.06)}
.legendary-help-grid h3{margin-top:0}
.legendary-help-grid li{margin:8px 0;color:rgba(255,255,255,.76)}
.legendary-unsaved-bar{position:fixed;left:50%;bottom:20px;z-index:999997;transform:translate(-50%,130%);width:min(860px,calc(100vw - 32px));display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:22px;background:rgba(30,41,59,.97);border:1px solid rgba(148,163,184,.28);color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.42);transition:transform .25s ease}
.legendary-unsaved-bar.show{transform:translate(-50%,0)}
.unsaved-text{font-weight:1000}
.unsaved-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.unsaved-actions button{border:0;border-radius:14px;padding:11px 14px;color:#fff;cursor:pointer;font-weight:900}
.unsaved-reset{background:rgba(255,255,255,.1)}
.unsaved-factory{background:rgba(245,158,11,.9)}
.unsaved-save{background:linear-gradient(135deg,#16a34a,#22c55e)}
.mini-spinner{width:17px;height:17px;display:inline-block;margin-right:8px;vertical-align:-3px;border-radius:999px;border:3px solid rgba(255,255,255,.22);border-top-color:#22d3ee;animation:legendarySpin .8s linear infinite}
button.is-loading,.primary-btn.is-loading{cursor:wait!important;opacity:.86}
@keyframes legendarySpin{to{transform:rotate(360deg)}}
@keyframes legendarySpinReverse{to{transform:rotate(-360deg)}}
@keyframes legendaryPulse{0%,100%{transform:scale(.86);opacity:.78}50%{transform:scale(1.08);opacity:1}}
@keyframes legendarySpark{0%,100%{transform:scale(.8);opacity:.45}50%{transform:scale(1.45);opacity:1}}
@media (max-width:720px){.legendary-toast-stack{right:14px;bottom:14px;width:calc(100vw - 28px)}.legendary-toast-card{grid-template-columns:44px 1fr 30px}.legendary-toast-help{grid-column:3}.legendary-unsaved-bar{align-items:stretch;flex-direction:column}.unsaved-actions{justify-content:stretch}.unsaved-actions button{flex:1 1 auto}}
/* END LEGENDARY PREMIUM DASHBOARD UX v18.5.7 */

