* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0d1117;
  color: #e6edf3;
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.38), transparent 32%),
    radial-gradient(circle at bottom right, rgba(120, 60, 255, 0.22), transparent 28%),
    #0d1117;
}

.auth-card {
  width: min(420px, calc(100vw - 32px));
  padding: 38px;
  border-radius: 26px;
  background: rgba(22, 27, 34, 0.94);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 26px 80px rgba(0,0,0,0.48);
  text-align: center;
}

.logo-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5865f2, #9b5cff);
  color: white;
  font-weight: 900;
  font-size: 25px;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.auth-card p {
  color: #8b949e;
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 18px;
  border-radius: 13px;
  background: #5865f2;
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  background: #010409;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
}

.brand {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 30px;
}

.sidebar nav {
  display: grid;
  gap: 10px;
}

.sidebar a {
  color: #8b949e;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 13px;
  font-weight: 700;
}

.sidebar a.active,
.sidebar a:hover {
  color: white;
  background: rgba(88, 101, 242, 0.18);
}

.main {
  margin-left: 270px;
  padding: 34px;
}

.topbar {
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 0;
  font-size: 36px;
}

.topbar p {
  color: #8b949e;
}

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

.card {
  padding: 24px;
  border-radius: 22px;
  background: #161b22;
  border: 1px solid rgba(255,255,255,0.08);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #8b949e;
}

.big {
  font-size: 25px;
  font-weight: 900;
}

.wide {
  margin-top: 18px;
}

@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
  }

  .main {
    margin-left: 0;
    padding: 20px;
  }

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

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

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(35, 197, 94, 0.14);
  color: #7ee787;
  border: 1px solid rgba(35, 197, 94, 0.35);
  font-weight: 800;
}

.module-list {
  display: grid;
  gap: 12px;
}

.module-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.module-list span {
  color: #8b949e;
}

@media (max-width: 850px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-list div {
    flex-direction: column;
  }
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-form input {
  flex: 1;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0d1117;
  color: #e6edf3;
  outline: none;
}

.search-form button,
.warn-form button {
  padding: 13px 16px;
  border-radius: 12px;
  border: 0;
  background: #5865f2;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.small-link {
  color: #8b949e;
  text-decoration: none;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #8b949e;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table small {
  display: block;
  margin-top: 4px;
  color: #8b949e;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.role-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.16);
  color: #c9d1ff;
  border: 1px solid rgba(88, 101, 242, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.mini-btn {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.18);
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.small-big {
  font-size: 18px;
}

.warn-form {
  display: grid;
  gap: 12px;
}

.warn-form textarea {
  min-height: 110px;
  resize: vertical;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0d1117;
  color: #e6edf3;
  outline: none;
  font-family: inherit;
}

.warning-list {
  display: grid;
  gap: 12px;
}

.warning-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 81, 73, 0.10);
  border: 1px solid rgba(248, 81, 73, 0.22);
}

.warning-item span,
.warning-item small,
.muted {
  color: #8b949e;
}

@media (max-width: 850px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.login-avatar {
  widht: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 18px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 18px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.guild-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6edf3;
  text-decoration: none;
  transition: 0.2s ease;
}

.guild-card:hover {
  transform: translateY(-1px);
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.35);
}

.guild-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5865f2, #9b5cff);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.guild-icon span {
  font-weight: 900;
  color: white;
}

.guild-card strong {
  display: block;
  font-size: 17px;
}

.guild-card span {
  display: block;
  margin-top: 4px;
  color: #8b949e;
  font-size: 13px;
}

.empty-state {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 81, 73, 0.10);
  border: 1px solid rgba(248, 81, 73, 0.22);
}

.empty-state span {
  color: #8b949e;
}
/* Multi-Guild Cobalt Ergänzungen */

.login-avatar {
  width: 82px;
  height: 82px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 22px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 16px 38px rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.12);
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.guild-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6edf3;
  text-decoration: none;
  transition: 0.2s ease;
}

.guild-card:hover {
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.35);
}

.guild-card-static {
  cursor: default;
}

.guild-card-static:hover {
  transform: none;
}

.guild-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5865f2, #9b5cff);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.guild-icon span {
  font-weight: 900;
  color: white;
}

.guild-info {
  flex: 1;
  min-width: 0;
}

.guild-card strong {
  display: block;
  font-size: 17px;
}

.guild-card span {
  display: block;
  margin-top: 4px;
  color: #8b949e;
  font-size: 13px;
}

.guild-actions {
  margin-left: auto;
}

.guild-status {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
}

.guild-status.installed {
  color: #7ee787;
}

.guild-status.missing {
  color: #ffb86b;
}

.install-btn {
  background: rgba(35, 197, 94, 0.18);
  border: 1px solid rgba(35, 197, 94, 0.35);
}

.empty-state {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 81, 73, 0.10);
  border: 1px solid rgba(248, 81, 73, 0.22);
}

.empty-state span {
  color: #8b949e;
}

@media (max-width: 700px) {
  .guild-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .guild-actions {
    margin-left: 0;
    width: 100%;
  }

  .guild-actions .mini-btn {
    width: 100%;
    text-align: center;
  }
}

/* Fixed Header Navigation */

.fixed-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: -34px -34px 28px;
  padding: 22px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fixed-header h1 {
  margin: 0;
  font-size: 32px;
}

.fixed-header p {
  margin: 6px 0 0;
  color: #8b949e;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.28);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.header-btn:hover {
  background: rgba(88, 101, 242, 0.28);
}

.header-btn.danger {
  background: rgba(248, 81, 73, 0.14);
  border-color: rgba(248, 81, 73, 0.28);
  color: #ffb4ae;
}

.header-btn.danger:hover {
  background: rgba(248, 81, 73, 0.22);
}

@media (max-width: 850px) {
  .fixed-header {
    position: static;
    margin: -20px -20px 22px;
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .header-btn {
    flex: 1;
  }
}

/* Moderationsmodul */

.notice-card {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.notice-card span {
  color: #8b949e;
}

.notice-success {
  background: rgba(35, 197, 94, 0.12);
  border-color: rgba(35, 197, 94, 0.28);
}

.notice-success strong {
  color: #7ee787;
}

.notice-error {
  background: rgba(248, 81, 73, 0.12);
  border-color: rgba(248, 81, 73, 0.28);
}

.notice-error strong {
  color: #ffb4ae;
}

.mod-action-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

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

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: #8b949e;
  font-weight: 800;
  font-size: 13px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0d1117;
  color: #e6edf3;
  outline: none;
  font-family: inherit;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.danger-action-btn {
  justify-self: start;
  padding: 13px 18px;
  border-radius: 13px;
  border: 1px solid rgba(248, 81, 73, 0.35);
  background: rgba(248, 81, 73, 0.18);
  color: #ffb4ae;
  font-weight: 900;
  cursor: pointer;
}

.danger-action-btn:hover {
  background: rgba(248, 81, 73, 0.26);
}

.table-link {
  color: #c9d1ff;
  text-decoration: none;
  font-weight: 800;
}

.table-link:hover {
  text-decoration: underline;
}

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

  .danger-action-btn {
    width: 100%;
  }
}

/* Username Anzeige statt nur IDs */

.data-table td small,
.warning-item small {
  display: block;
  margin-top: 4px;
  color: #8b949e;
  font-size: 12px;
  word-break: break-all;
}

.warning-item span small {
  display: inline-block;
  margin-left: 6px;
  color: #8b949e;
  font-size: 11px;
}

/* Cobalt UI Polish */

:root {
  --pb-bg: #070b12;
  --pb-panel: rgba(22, 27, 34, 0.82);
  --pb-panel-strong: rgba(30, 36, 48, 0.92);
  --pb-border: rgba(255,255,255,0.09);
  --pb-border-soft: rgba(255,255,255,0.06);
  --pb-text: #e6edf3;
  --pb-muted: #8b949e;
  --pb-primary: #5865f2;
  --pb-primary-soft: rgba(88, 101, 242, 0.18);
  --pb-danger: #f85149;
  --pb-danger-soft: rgba(248, 81, 73, 0.14);
  --pb-success: #23c55e;
  --pb-success-soft: rgba(35, 197, 94, 0.14);
  --pb-warning: #ffb86b;
}

body {
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(155, 92, 255, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(0, 212, 255, 0.08), transparent 28%),
    var(--pb-bg);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(1, 4, 9, 0.96), rgba(7, 11, 18, 0.98)),
    #010409;
  box-shadow: 18px 0 50px rgba(0,0,0,0.22);
}

.brand {
  padding: 14px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(88,101,242,0.18), rgba(155,92,255,0.10));
  border: 1px solid rgba(255,255,255,0.08);
}

.sidebar a {
  position: relative;
  overflow: hidden;
}

.sidebar a.active {
  box-shadow: inset 3px 0 0 var(--pb-primary);
}

.sidebar a.active,
.sidebar a:hover {
  background:
    linear-gradient(135deg, rgba(88,101,242,0.20), rgba(155,92,255,0.10));
}

.main {
  min-height: 100vh;
}

.fixed-header {
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.94), rgba(13, 17, 23, 0.82));
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

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

.header-btn,
.mini-btn,
.btn {
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.header-btn:hover,
.mini-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.card {
  background:
    linear-gradient(180deg, rgba(22,27,34,0.92), rgba(16,22,32,0.82));
  border: 1px solid var(--pb-border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(88, 101, 242, 0.22);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.big {
  letter-spacing: -0.04em;
}

.grid .card {
  position: relative;
  overflow: hidden;
}

.grid .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pb-primary), #9b5cff, #00d4ff);
  opacity: 0.85;
}

.search-form,
.mod-action-form {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 18px;
  padding: 16px;
}

.search-form input,
.form-field input,
.form-field select,
.form-field textarea,
.warn-form textarea {
  background: rgba(7, 11, 18, 0.88);
  border-color: rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: 0.18s ease;
}

.search-form input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.warn-form textarea:focus {
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow:
    0 0 0 3px rgba(88,101,242,0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.search-form button,
.warn-form button {
  box-shadow: 0 14px 30px rgba(88,101,242,0.18);
}

.danger-action-btn {
  min-height: 46px;
  box-shadow: 0 16px 34px rgba(248,81,73,0.14);
}

.data-table {
  border-spacing: 0;
  border-collapse: separate;
}

.data-table thead th {
  background: rgba(255,255,255,0.035);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.data-table thead th:first-child {
  border-top-left-radius: 14px;
}

.data-table thead th:last-child {
  border-top-right-radius: 14px;
}

.data-table tbody tr {
  transition: 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(88, 101, 242, 0.055);
}

.data-table td {
  border-bottom-color: rgba(255,255,255,0.055);
}

.table-link {
  display: inline-block;
  max-width: 260px;
  color: #d6dcff;
}

.role-tags span {
  background:
    linear-gradient(135deg, rgba(88,101,242,0.20), rgba(155,92,255,0.12));
  border-color: rgba(88,101,242,0.28);
}

.warning-list {
  margin-top: 12px;
}

.warning-item {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(248,81,73,0.11), rgba(255,184,107,0.055));
  border-color: rgba(248,81,73,0.20);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.warning-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #f85149, #ffb86b);
}

.warning-item strong,
.warning-item span,
.warning-item small {
  padding-left: 8px;
}

.notice-card {
  box-shadow: 0 18px 46px rgba(0,0,0,0.18);
}

.guild-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.022));
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.guild-card:hover {
  box-shadow: 0 20px 50px rgba(88,101,242,0.12);
}

.guild-icon {
  box-shadow: 0 12px 28px rgba(88,101,242,0.16);
}

.guild-status.installed::before {
  content: "● ";
}

.guild-status.missing::before {
  content: "● ";
}

.mod-action-form .form-grid {
  align-items: end;
}

.form-field label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.form-field select {
  cursor: pointer;
}

.form-field select option {
  background: #0d1117;
  color: #e6edf3;
}

.mod-duration-field,
.mod-delete-field {
  animation: pbFadeIn 0.18s ease;
}

@keyframes pbFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Sidebar Logo Polish */

.brand-polished {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-polished img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: contain;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.brand-polished span {
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.03em;
}


/* Moderation Header Details */

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin-bottom: 8px;
}

.mod-badge {
  padding: 9px 12px;
  border-radius: 999px;
  color: #7ee787;
  background: rgba(35,197,94,0.12);
  border: 1px solid rgba(35,197,94,0.28);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 950;
  flex-shrink: 0;
}

.stat-icon.warn {
  background: rgba(248,81,73,0.14);
  color: #ffb4ae;
  border: 1px solid rgba(248,81,73,0.25);
}

.stat-icon.case {
  background: rgba(88,101,242,0.16);
  color: #c9d1ff;
  border: 1px solid rgba(88,101,242,0.28);
}

.stat-icon.audit {
  background: rgba(255,184,107,0.14);
  color: #ffb86b;
  border: 1px solid rgba(255,184,107,0.28);
}

@media (max-width: 850px) {
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* User Detail Admin Actions */

.member-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}

.member-avatar-large {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(88,101,242,0.28), rgba(155,92,255,0.18));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.member-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-large span {
  font-size: 28px;
  font-weight: 950;
}

.member-hero-info h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.member-hero-info p {
  margin: 0 0 12px;
  color: #8b949e;
}

.member-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-meta-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  color: #8b949e;
  font-size: 12px;
  font-weight: 800;
}

.member-meta-row .danger-meta {
  color: #ffb4ae;
  background: rgba(248,81,73,0.12);
  border-color: rgba(248,81,73,0.22);
}

.user-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.action-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

.action-box h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.action-box input,
.action-box select,
.action-box textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7, 11, 18, 0.88);
  color: #e6edf3;
  outline: none;
  font-family: inherit;
}

.action-box textarea {
  min-height: 86px;
  resize: vertical;
}

.action-box button {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(88,101,242,0.28);
  background: rgba(88,101,242,0.18);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.action-box button:hover {
  background: rgba(88,101,242,0.28);
}

.danger-box {
  background: rgba(248,81,73,0.065);
  border-color: rgba(248,81,73,0.18);
}

.danger-box button {
  background: rgba(248,81,73,0.16);
  border-color: rgba(248,81,73,0.32);
  color: #ffb4ae;
}

.danger-box button:hover {
  background: rgba(248,81,73,0.24);
}

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

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


/* User Detail Admin Actions */

.member-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}

.member-avatar-large {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(88,101,242,0.28), rgba(155,92,255,0.18));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.member-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-large span {
  font-size: 28px;
  font-weight: 950;
}

.member-hero-info h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.member-hero-info p {
  margin: 0 0 12px;
  color: #8b949e;
}

.member-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-meta-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  color: #8b949e;
  font-size: 12px;
  font-weight: 800;
}

.member-meta-row .danger-meta {
  color: #ffb4ae;
  background: rgba(248,81,73,0.12);
  border-color: rgba(248,81,73,0.22);
}

.user-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.action-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

.action-box h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.action-box input,
.action-box select,
.action-box textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7, 11, 18, 0.88);
  color: #e6edf3;
  outline: none;
  font-family: inherit;
}

.action-box textarea {
  min-height: 86px;
  resize: vertical;
}

.action-box button {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(88,101,242,0.28);
  background: rgba(88,101,242,0.18);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.action-box button:hover {
  background: rgba(88,101,242,0.28);
}

.danger-box {
  background: rgba(248,81,73,0.065);
  border-color: rgba(248,81,73,0.18);
}

.danger-box button {
  background: rgba(248,81,73,0.16);
  border-color: rgba(248,81,73,0.32);
  color: #ffb4ae;
}

.danger-box button:hover {
  background: rgba(248,81,73,0.24);
}

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

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


/* Warn löschen */

.warning-item-with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.warning-item-with-action > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.warning-item-with-action form {
  flex-shrink: 0;
  padding-left: 8px;
}

.delete-warn-btn {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 11px;
  border: 1px solid rgba(248, 81, 73, 0.32);
  background: rgba(248, 81, 73, 0.14);
  color: #ffb4ae;
  font-weight: 900;
  cursor: pointer;
}

.delete-warn-btn:hover {
  background: rgba(248, 81, 73, 0.24);
}

@media (max-width: 750px) {
  .warning-item-with-action {
    flex-direction: column;
  }

  .warning-item-with-action form,
  .delete-warn-btn {
    width: 100%;
  }
}


/* Log Modul */

.log-settings-card {
  display: grid;
  gap: 18px;
}

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

.switch-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
  cursor: pointer;
  transition: 0.18s ease;
}

.switch-card:hover {
  border-color: rgba(88,101,242,0.28);
  background: rgba(88,101,242,0.07);
}

.switch-card strong {
  display: block;
  margin-bottom: 5px;
  color: #e6edf3;
}

.switch-card span {
  display: block;
  color: #8b949e;
  font-size: 13px;
  line-height: 1.35;
}

.switch-card input {
  display: none;
}

.switch-card i {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  transition: 0.18s ease;
}

.switch-card i::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #8b949e;
  transition: 0.18s ease;
}

.switch-card input:checked + i {
  background: rgba(35,197,94,0.20);
  border-color: rgba(35,197,94,0.35);
}

.switch-card input:checked + i::before {
  left: 28px;
  background: #7ee787;
}

.save-log-btn {
  justify-self: start;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid rgba(35,197,94,0.35);
  background: rgba(35,197,94,0.16);
  color: #7ee787;
  font-weight: 950;
  cursor: pointer;
}

.save-log-btn:hover {
  background: rgba(35,197,94,0.24);
}

.log-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.log-info-grid div {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

.log-info-grid strong {
  display: block;
  margin-bottom: 6px;
}

.log-info-grid span {
  color: #8b949e;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 950px) {
  .log-toggle-grid,
  .log-info-grid {
    grid-template-columns: 1fr;
  }
}


/* Channel Designer */

.designer-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.designer-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.designer-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.discord-preview {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.055);
}

.preview-category {
  display: grid;
  gap: 6px;
}

.preview-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b949e;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 8px 4px;
}

.preview-channel {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #8b949e;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
}

.preview-channel em {
  font-style: normal;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-channel:hover {
  background: rgba(255,255,255,0.055);
  color: #e6edf3;
}

.preview-channel.active {
  background: rgba(88,101,242,0.20);
  color: white;
}

.channel-form {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.selected-channel-box {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(88,101,242,0.10);
  border: 1px solid rgba(88,101,242,0.20);
}

.selected-channel-box strong {
  color: #e6edf3;
}

.selected-channel-box span {
  color: #8b949e;
  font-size: 13px;
}

.permission-details {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

.permission-details summary {
  cursor: pointer;
  font-weight: 900;
  color: #e6edf3;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.perm-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.065);
}

.perm-row strong {
  font-size: 13px;
  color: #e6edf3;
}

.perm-row select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7,11,18,0.88);
  color: #e6edf3;
}

.delete-channel-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.delete-channel-form input,
.delete-channel-form select {
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7,11,18,0.88);
  color: #e6edf3;
}

.delete-channel-form button {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(248,81,73,0.32);
  background: rgba(248,81,73,0.16);
  color: #ffb4ae;
  font-weight: 900;
  cursor: pointer;
}

.delete-channel-form button:hover {
  background: rgba(248,81,73,0.24);
}

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

  .designer-panel {
    position: static;
    max-height: none;
  }
}

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

  .delete-channel-form {
    grid-template-columns: 1fr;
  }
}


/* Channel Privacy */

.privacy-hint {
  display: block;
  margin-top: 6px;
  color: #8b949e;
  font-size: 12px;
  line-height: 1.4;
}

.form-field select[name="privacyMode"] {
  border-color: rgba(88,101,242,0.22);
  background:
    linear-gradient(135deg, rgba(88,101,242,0.10), rgba(7,11,18,0.88));
}


/* Whitelist Permission System */

.whitelist-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.access-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(88,101,242,0.16);
  border: 1px solid rgba(88,101,242,0.28);
  color: #c9d1ff;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.active-header-btn {
  background: rgba(35,197,94,0.16) !important;
  border-color: rgba(35,197,94,0.34) !important;
  color: #7ee787 !important;
}


/* Audit Undo */

.audit-undo-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.undo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

.undo-card.undo-done {
  opacity: 0.62;
}

.undo-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.undo-title-row strong {
  font-size: 16px;
  color: #e6edf3;
}

.undo-main p {
  margin: 0;
  color: #8b949e;
}

.undo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.undo-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  color: #8b949e;
  font-size: 12px;
  font-weight: 800;
}

.undo-status {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.undo-status.pending {
  background: rgba(255,184,107,0.14);
  border: 1px solid rgba(255,184,107,0.28);
  color: #ffb86b;
}

.undo-status.done {
  background: rgba(35,197,94,0.14);
  border: 1px solid rgba(35,197,94,0.28);
  color: #7ee787;
}

.undo-action button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid rgba(88,101,242,0.28);
  background: rgba(88,101,242,0.18);
  color: white;
  font-weight: 950;
  cursor: pointer;
}

.undo-action button:hover:not(:disabled) {
  background: rgba(88,101,242,0.28);
}

.undo-action button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

  .undo-action button {
    width: 100%;
  }
}


/* Username statt ID + ID als Hover */

.user-hover-id {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  color: #e6edf3;
  font-weight: 850;
  cursor: help;
}

.user-hover-id::after {
  content: "ID";
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(88,101,242,0.14);
  border: 1px solid rgba(88,101,242,0.24);
  color: #c9d1ff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.user-hover-id.muted-user {
  color: #8b949e;
  font-weight: 750;
}

.user-hover-id.muted-user::after {
  opacity: 0.65;
}


/* Rollen Modul */

.roles-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.roles-left,
.roles-right {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.roles-left {
  position: sticky;
  top: 100px;
}

.role-search-main {
  width: 100%;
  margin: 14px 0;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7,11,18,0.88);
  color: #e6edf3;
  outline: none;
}

.role-list-panel {
  display: grid;
  gap: 8px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.role-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.075);
  background: rgba(255,255,255,0.035);
  color: #e6edf3;
  text-align: left;
  cursor: pointer;
  transition: 0.16s ease;
}

.role-list-item:hover,
.role-list-item.active {
  background: rgba(88,101,242,0.15);
  border-color: rgba(88,101,242,0.32);
}

.role-list-item.managed-role {
  opacity: 0.62;
}

.role-list-item strong {
  display: block;
  font-size: 14px;
}

.role-list-item small {
  display: block;
  color: #8b949e;
  margin-top: 3px;
}

.role-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 18px rgba(255,255,255,0.08);
}

.role-form {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.permission-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 13px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
  cursor: pointer;
  transition: 0.16s ease;
}

.permission-check:hover {
  border-color: rgba(88,101,242,0.28);
  background: rgba(88,101,242,0.08);
}

.permission-check input {
  width: 16px;
  height: 16px;
  accent-color: #5865f2;
}

.permission-check span {
  color: #e6edf3;
  font-size: 13px;
  font-weight: 800;
}

.permission-check.danger-perm {
  border-color: rgba(248,81,73,0.16);
  background: rgba(248,81,73,0.055);
}

.permission-check.danger-perm span::after {
  content: " kritisch";
  margin-left: 6px;
  color: #ffb4ae;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.compact-switch {
  min-height: 78px;
}

#bulkMemberSelect {
  min-height: 220px;
}

#bulkMemberSelect option {
  padding: 7px;
}

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

  .roles-left {
    position: static;
  }

  .role-list-panel {
    max-height: 420px;
  }
}

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


/* Sidebar Kategorien */

.sidebar-nav-accordion {
  display: grid;
  gap: 10px;
}

.nav-group {
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  overflow: hidden;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  color: #8b949e;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "+";
  color: #5865f2;
  font-size: 16px;
  font-weight: 950;
}

.nav-group[open] summary::after {
  content: "−";
}

.nav-group > div {
  display: grid;
  gap: 4px;
  padding: 0 8px 8px;
}

.nav-group > div a {
  margin: 0;
}

/* Server Settings */

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
}

.settings-section h3 {
  margin: 0;
  color: #e6edf3;
  font-size: 16px;
}

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

.settings-switch {
  align-self: end;
}

.settings-preview-card {
  position: sticky;
  top: 100px;
}

.settings-preview-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.settings-preview-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.065);
}

.settings-preview-list strong {
  color: #e6edf3;
}

.settings-preview-list span {
  color: #8b949e;
  font-weight: 800;
  text-align: right;
}

.settings-stat-small {
  margin: 0;
  color: #e6edf3;
  font-weight: 950;
  font-size: 17px;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.form-field small {
  display: block;
  margin-top: 6px;
  color: #8b949e;
  font-size: 12px;
}

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

  .settings-preview-card {
    position: static;
  }
}

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


/* AutoMod Modul */

.automod-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.automod-form {
  display: grid;
  gap: 18px;
}

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

.automod-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.inline-admin-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.inline-admin-form input,
.inline-admin-form select {
  min-height: 42px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7,11,18,0.88);
  color: #e6edf3;
}

.inline-admin-form button {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(88,101,242,0.30);
  background: rgba(88,101,242,0.18);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.tag-delete-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.tag-delete-form span {
  color: #e6edf3;
  font-size: 13px;
  font-weight: 850;
}

.tag-delete-form button {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(248,81,73,0.35);
  background: rgba(248,81,73,0.16);
  color: #ffb4ae;
  cursor: pointer;
  font-weight: 950;
}

.violation-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 360px;
  overflow: auto;
}

.violation-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(248,81,73,0.07);
  border: 1px solid rgba(248,81,73,0.16);
}

.violation-item strong {
  color: #ffb4ae;
  font-size: 13px;
}

.violation-item small {
  color: #8b949e;
}

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

  .automod-side {
    position: static;
  }
}

@media (max-width: 850px) {
  .automod-toggle-grid,
  .inline-admin-form {
    grid-template-columns: 1fr;
  }
}


/* Welcome / Leave Modul */

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.welcome-form {
  display: grid;
  gap: 18px;
}

.welcome-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.welcome-card-preview {
  --welcome-accent: #5865f2;
  position: relative;
  min-height: 220px;
  border-radius: 26px;
  overflow: hidden;
  padding: 26px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--welcome-accent) 28%, transparent), transparent 34%),
    linear-gradient(135deg, #070b18, #141b3a);
  border: 1px solid color-mix(in srgb, var(--welcome-accent) 55%, rgba(255,255,255,0.14));
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
}

.welcome-card-preview[data-template="royal"] {
  background:
    radial-gradient(circle at 80% 20%, rgba(212,175,55,0.24), transparent 34%),
    linear-gradient(135deg, #160b2e, #3b215f);
}

.welcome-card-preview[data-template="cyber"] {
  background:
    linear-gradient(90deg, rgba(0,245,255,0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,245,255,0.08) 1px, transparent 1px),
    linear-gradient(135deg, #03131f, #062c3f);
  background-size: 28px 28px, 28px 28px, auto;
}

.welcome-card-preview[data-template="clean"] {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.welcome-card-preview[data-template="clean"] strong,
.welcome-card-preview[data-template="clean"] small {
  color: #0f172a;
}

.welcome-card-preview[data-template="clean"] span {
  color: #334155;
}

.welcome-card-preview[data-template="fire"] {
  background:
    radial-gradient(circle at 75% 25%, rgba(255,59,48,0.28), transparent 35%),
    linear-gradient(135deg, #1c0505, #4a0f0f);
}

.preview-glow {
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: var(--welcome-accent);
  opacity: 0.18;
  filter: blur(12px);
}

.preview-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--welcome-accent) 28%, rgba(255,255,255,0.10));
  border: 3px solid var(--welcome-accent);
  color: #fff;
  font-size: 38px;
  font-weight: 950;
  box-shadow: 0 0 36px color-mix(in srgb, var(--welcome-accent) 45%, transparent);
}

.welcome-card-preview strong {
  display: block;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.welcome-card-preview span {
  display: block;
  margin-top: 8px;
  color: #c9d1ff;
  font-size: 16px;
  font-weight: 800;
}

.welcome-card-preview small {
  display: block;
  margin-top: 14px;
  color: #e6edf3;
  opacity: 0.78;
}

.welcome-template-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.welcome-template-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
}

.welcome-template-card.active-template {
  border-color: rgba(88,101,242,0.34);
  background: rgba(88,101,242,0.12);
}

.welcome-template-card strong {
  display: block;
  color: #e6edf3;
}

.welcome-template-card span {
  display: block;
  color: #8b949e;
  font-size: 13px;
  margin-top: 4px;
}

.welcome-template-card button {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(88,101,242,0.30);
  background: rgba(88,101,242,0.18);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.placeholder-list code {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #c9d1ff;
  font-weight: 900;
}

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

  .welcome-side {
    position: static;
  }
}

@media (max-width: 700px) {
  .welcome-card-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .preview-avatar {
    margin: 0 auto;
  }
}


/* Ticket System */

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.ticket-main,
.ticket-side {
  display: grid;
  gap: 18px;
}

.ticket-side {
  position: sticky;
  top: 100px;
}

.ticket-form {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.ticket-panel-card {
  border-color: rgba(88,101,242,0.16);
}

.ticket-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.small-action-btn {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(88,101,242,0.32);
  background: rgba(88,101,242,0.18);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.danger-small {
  border-color: rgba(248,81,73,0.30);
  background: rgba(248,81,73,0.15);
  color: #ffb4ae;
}

.ticket-details {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.ticket-details summary {
  cursor: pointer;
  color: #e6edf3;
  font-weight: 950;
}

.ticket-option-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.ticket-option-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.075);
}

.ticket-option-item strong {
  display: block;
  color: #e6edf3;
  font-size: 14px;
}

.ticket-option-item span {
  display: block;
  color: #c9d1ff;
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}

.ticket-option-item small {
  display: block;
  color: #8b949e;
  margin-top: 5px;
}

.ticket-option-item button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(248,81,73,0.35);
  background: rgba(248,81,73,0.15);
  color: #ffb4ae;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.add-option-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ticket-history {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 500px;
  overflow: auto;
}

.ticket-history-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
}

.ticket-history-item strong {
  color: #e6edf3;
}

.ticket-history-item span {
  color: #c9d1ff;
  font-weight: 850;
}

.ticket-history-item small {
  color: #8b949e;
}

.ticket-history-item.ticket-open {
  border-color: rgba(35,197,94,0.24);
  background: rgba(35,197,94,0.07);
}

.ticket-history-item.ticket-closed {
  border-color: rgba(139,148,158,0.18);
  opacity: 0.78;
}

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

  .ticket-side {
    position: static;
  }
}


/* Ticket System Redesign */

.ticket-home-layout {
  display: grid;
  gap: 18px;
}

.ticket-simple-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 16px;
}

.ticket-simple-create input {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7,11,18,0.88);
  color: #e6edf3;
  font-size: 16px;
  font-weight: 800;
}

.ticket-simple-create button,
.send-panel-box button {
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(88,101,242,0.35);
  background: rgba(88,101,242,0.22);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.ticket-panel-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ticket-panel-tile {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: 0.16s ease;
}

.ticket-panel-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(88,101,242,0.34);
  background: rgba(88,101,242,0.09);
}

.ticket-panel-color {
  border-radius: 999px;
  min-height: 86px;
  box-shadow: 0 0 25px rgba(88,101,242,0.22);
}

.ticket-panel-tile strong {
  display: block;
  color: #e6edf3;
  font-size: 17px;
  font-weight: 950;
}

.ticket-panel-tile span {
  display: block;
  color: #c9d1ff;
  margin-top: 5px;
  font-weight: 800;
}

.ticket-panel-tile small {
  display: block;
  color: #8b949e;
  margin-top: 9px;
}

.compact-history {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ticket-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.ticket-builder-main,
.ticket-builder-side {
  display: grid;
  gap: 18px;
}

.ticket-builder-side {
  position: sticky;
  top: 100px;
}

.send-panel-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(35,197,94,0.20);
  background: rgba(35,197,94,0.07);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.send-panel-box button {
  background: rgba(35,197,94,0.22);
  border-color: rgba(35,197,94,0.36);
}

.send-panel-box span {
  color: #8b949e;
  font-weight: 800;
}

.ticket-option-editor-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.ticket-option-editor {
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
  padding: 14px;
}

.ticket-option-editor summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e6edf3;
  font-weight: 950;
}

.ticket-option-editor summary small {
  color: #8b949e;
  font-weight: 800;
}

.ticket-option-actions {
  display: flex;
  gap: 10px;
}

.delete-option-form {
  margin-top: 12px;
}

.delete-option-form button,
.danger-delete-panel {
  width: 100%;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(248,81,73,0.32);
  background: rgba(248,81,73,0.15);
  color: #ffb4ae;
  font-weight: 950;
  cursor: pointer;
}

.ticket-panel-preview {
  --ticket-color: #5865f2;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid color-mix(in srgb, var(--ticket-color) 42%, rgba(255,255,255,0.10));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.ticket-panel-preview strong {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  border-left: 4px solid var(--ticket-color);
  padding-left: 10px;
}

.ticket-panel-preview p {
  color: #8b949e;
  line-height: 1.5;
  margin: 12px 0 16px;
}

.fake-button-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fake-ticket-button {
  padding: 9px 12px;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  background: #5865f2;
}

.fake-ticket-button.secondary {
  background: #4b5563;
}

.fake-ticket-button.success {
  background: #23c55e;
}

.fake-ticket-button.danger {
  background: #ef4444;
}

.fake-select {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(7,11,18,0.88);
  border: 1px solid rgba(255,255,255,0.10);
  color: #e6edf3;
  font-weight: 900;
}

.ticket-step-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ticket-step-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.ticket-step-list strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(88,101,242,0.18);
  border: 1px solid rgba(88,101,242,0.30);
  color: #fff;
}

.ticket-step-list span {
  color: #8b949e;
  font-weight: 850;
}

@media (max-width: 1150px) {
  .ticket-builder-layout {
    grid-template-columns: 1fr;
  }

  .ticket-builder-side {
    position: static;
  }
}

@media (max-width: 750px) {
  .ticket-simple-create,
  .send-panel-box {
    grid-template-columns: 1fr;
  }
}


/* Ticket Auto Channel Create */

.create-channel-inline {
  display: none;
  gap: 7px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(88,101,242,0.08);
  border: 1px solid rgba(88,101,242,0.20);
}

.create-channel-inline label {
  color: #c9d1ff;
  font-size: 12px;
  font-weight: 950;
}

.create-channel-inline input {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7,11,18,0.88);
  color: #e6edf3;
  outline: none;
}


/* Sidebar wieder einzeln scrollbar machen */

.sidebar {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
}

.sidebar .brand {
  flex-shrink: 0;
}

.sidebar-nav-accordion {
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-bottom: 24px;
  scrollbar-width: thin;
}

.sidebar-nav-accordion::-webkit-scrollbar {
  width: 7px;
}

.sidebar-nav-accordion::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
}

.sidebar-nav-accordion::-webkit-scrollbar-thumb {
  background: rgba(88,101,242,0.42);
  border-radius: 999px;
}

.sidebar-nav-accordion::-webkit-scrollbar-thumb:hover {
  background: rgba(88,101,242,0.65);
}

.main {
  margin-left: var(--sidebar-width, 280px);
}

@media (max-width: 900px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .sidebar-nav-accordion {
    max-height: none;
    overflow: visible;
  }

  .main {
    margin-left: 0;
  }
}


/* Sidebar Clean Scroll + Coming Soon Badge */

.sidebar-nav-accordion {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav-accordion::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.coming-soon-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.coming-soon-link span {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(35, 197, 94, 0.16);
  border: 1px solid rgba(35, 197, 94, 0.32);
  color: #4ade80;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coming-soon-link:hover span {
  background: rgba(35, 197, 94, 0.24);
  border-color: rgba(35, 197, 94, 0.48);
}


/* Landing / Login Redesign */

.landing-body {
  min-height: 100vh;
  background: #070b18;
  color: #e6edf3;
  overflow-x: hidden;
}

.landing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.34;
}

.orb-one {
  width: 420px;
  height: 420px;
  background: #5865f2;
  top: -130px;
  right: -90px;
}

.orb-two {
  width: 360px;
  height: 360px;
  background: #23c55e;
  bottom: 12%;
  left: -140px;
  opacity: 0.18;
}

.orb-three {
  width: 280px;
  height: 280px;
  background: #a855f7;
  top: 42%;
  right: 16%;
  opacity: 0.18;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 54px);
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 24, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  font-size: 18px;
}

.landing-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(88,101,242,0.32);
}

.landing-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.landing-nav a {
  padding: 9px 14px;
  color: #8b949e;
  text-decoration: none;
  font-weight: 850;
  border-radius: 999px;
}

.landing-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.landing-actions,
.hero-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  transition: 0.18s ease;
  border: 1px solid rgba(255,255,255,0.10);
}

.landing-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #7c3aed);
  box-shadow: 0 16px 42px rgba(88,101,242,0.26);
}

.landing-btn.ghost {
  color: #e6edf3;
  background: rgba(255,255,255,0.055);
}

.landing-btn.big {
  min-height: 52px;
  padding: 14px 21px;
  font-size: 15px;
}

.landing-btn:hover {
  transform: translateY(-2px);
}

.landing-main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 58px 0 70px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #c9d1ff;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.24);
  font-weight: 900;
  font-size: 13px;
}

.hero-badge span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #23c55e;
  box-shadow: 0 0 20px rgba(35,197,94,0.9);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  color: #fff;
}

.hero-copy p {
  max-width: 710px;
  color: #a7b0bd;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 26px;
}

.hero-mini-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-mini-info div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.075);
}

.hero-mini-info strong {
  display: block;
  color: #fff;
  font-weight: 950;
}

.hero-mini-info span {
  display: block;
  color: #8b949e;
  font-size: 13px;
  margin-top: 5px;
}

.hero-panel {
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(88,101,242,0.22), transparent 32%),
    rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
}

.hero-panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.hero-dashboard-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(7,11,18,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.2s ease;
}

.hero-dashboard-card.active-card {
  border-color: rgba(88,101,242,0.42);
  background: rgba(88,101,242,0.13);
  transform: translateX(-5px);
}

.hero-dashboard-card strong {
  display: block;
  color: #fff;
  font-weight: 950;
}

.hero-dashboard-card small {
  display: block;
  color: #8b949e;
  margin-top: 5px;
}

.hero-dashboard-card b {
  color: #4ade80;
}

.hero-panel-terminal {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #020617;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal-line {
  color: #8b949e;
  margin: 6px 0;
}

.terminal-line span {
  color: #5865f2;
}

.terminal-line.success {
  color: #4ade80;
}

.landing-section {
  padding: 64px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2,
.landing-final h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.section-head p,
.landing-final p {
  color: #8b949e;
  line-height: 1.6;
  margin: 0;
}

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

.feature-card {
  padding: 18px;
  border-radius: 22px;
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.075);
  transition: 0.16s ease;
}

.feature-card:hover,
.feature-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(88,101,242,0.36);
  background: rgba(88,101,242,0.12);
}

.feature-card span {
  font-size: 25px;
}

.feature-card strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.feature-card small {
  display: block;
  color: #8b949e;
  margin-top: 7px;
  line-height: 1.45;
}

.feature-detail {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  background: linear-gradient(135deg, rgba(88,101,242,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(88,101,242,0.22);
}

.feature-detail h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 24px;
}

.feature-detail p {
  color: #a7b0bd;
  margin: 0;
  line-height: 1.6;
}

.feature-detail ul {
  margin: 0;
  padding-left: 20px;
  color: #c9d1ff;
  font-weight: 850;
}

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

.workflow-step {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.075);
}

.workflow-step b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(88,101,242,0.22);
  border: 1px solid rgba(88,101,242,0.35);
}

.workflow-step strong {
  display: block;
  color: #fff;
  margin-top: 14px;
  font-weight: 950;
}

.workflow-step span {
  display: block;
  color: #8b949e;
  margin-top: 8px;
  line-height: 1.45;
}

.preview-shell {
  border-radius: 28px;
  padding: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.085);
}

.preview-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.preview-tab {
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: #8b949e;
  background: rgba(7,11,18,0.72);
  border: 1px solid rgba(255,255,255,0.075);
  font-weight: 950;
}

.preview-tab.active {
  color: #fff;
  background: rgba(88,101,242,0.20);
  border-color: rgba(88,101,242,0.36);
}

.preview-content {
  display: none;
  padding: 20px;
  border-radius: 22px;
  background: rgba(7,11,18,0.58);
  border: 1px solid rgba(255,255,255,0.075);
}

.preview-content.active {
  display: block;
}

.preview-content h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 24px;
}

.preview-content p {
  color: #a7b0bd;
  line-height: 1.6;
}

.fake-preview-buttons,
.fake-toggle-list,
.fake-settings-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fake-preview-buttons span,
.fake-toggle-list span,
.fake-settings-list span {
  padding: 10px 13px;
  border-radius: 12px;
  color: #fff;
  background: rgba(88,101,242,0.18);
  border: 1px solid rgba(88,101,242,0.28);
  font-weight: 900;
}

.fake-toggle-list b,
.fake-settings-list b {
  color: #4ade80;
  margin-left: 6px;
}

.mini-welcome-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(88,101,242,0.22), transparent 30%),
    linear-gradient(135deg, #070b18, #141b3a);
  border: 1px solid rgba(88,101,242,0.28);
}

.mini-welcome-card strong {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

.mini-welcome-card span {
  color: #c9d1ff;
  display: block;
  margin-top: 8px;
}

.landing-final {
  text-align: center;
  padding: 64px 20px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(88,101,242,0.22), transparent 34%),
    rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.085);
}

.hero-cta.center {
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 1050px) {
  .hero-section,
  .ticket-builder-layout {
    grid-template-columns: 1fr;
  }

  .landing-header {
    grid-template-columns: 1fr;
  }

  .landing-nav {
    justify-self: start;
  }

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

  .hero-panel {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .landing-main {
    width: min(100% - 22px, 1180px);
    padding-top: 28px;
  }

  .landing-header {
    padding: 14px;
  }

  .landing-nav {
    display: none;
  }

  .landing-actions,
  .hero-cta {
    width: 100%;
  }

  .landing-btn {
    flex: 1;
  }

  .hero-mini-info,
  .feature-grid,
  .workflow-grid,
  .feature-detail {
    grid-template-columns: 1fr;
  }
}


/* Cobalt Landing V2 */

.pb-landing-v2 {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #f8fafc;
  background:
    radial-gradient(circle at 20% 10%, rgba(124,58,237,0.28), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.16), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(88,101,242,0.22), transparent 35%),
    #050816;
}

.pb-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.pb-cursor-glow {
  position: fixed;
  z-index: 1;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(88,101,242,0.18), transparent 62%);
  filter: blur(8px);
}

.pb-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(16px, 4vw, 58px);
  background: rgba(5,8,22,0.64);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
}

.pb-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
}

.pb-logo img {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  box-shadow: 0 0 35px rgba(88,101,242,0.42);
}

.pb-topnav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.pb-topnav a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  padding: 9px 13px;
  border-radius: 999px;
}

.pb-topnav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.pb-top-actions,
.pb-hero-actions,
.pb-launch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pb-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;
  font-weight: 950;
  color: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pb-btn b {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255,255,255,0.62);
  font-weight: 850;
}

.pb-btn:hover {
  transform: translateY(-2px);
}

.pb-btn-main {
  background:
    linear-gradient(135deg, rgba(88,101,242,0.98), rgba(168,85,247,0.92)),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.34), transparent 32%);
  box-shadow: 0 20px 58px rgba(88,101,242,0.34);
}

.pb-btn-soft,
.pb-btn-glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
}

.pb-btn-big {
  min-height: 58px;
  padding: 13px 22px;
}

.pb-page {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.pb-hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 40px;
  align-items: center;
}

.pb-status-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(34,211,238,0.09);
  border: 1px solid rgba(34,211,238,0.22);
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 950;
}

.pb-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 24px rgba(34,197,94,0.95);
}

.pb-hero-left h1 {
  margin: 22px 0 20px;
  max-width: 790px;
  font-size: clamp(43px, 7vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  color: #fff;
}

.pb-hero-left h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #22d3ee, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
}

.pb-hero-left p {
  max-width: 720px;
  color: #a6b0c3;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.pb-micro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.pb-micro-stats button {
  cursor: pointer;
  text-align: left;
  padding: 15px;
  border-radius: 20px;
  color: #fff;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.085);
  transition: 0.18s ease;
}

.pb-micro-stats button:hover {
  transform: translateY(-3px);
  background: rgba(88,101,242,0.14);
  border-color: rgba(88,101,242,0.35);
}

.pb-micro-stats strong,
.pb-micro-stats span {
  display: block;
}

.pb-micro-stats span {
  color: #94a3b8;
  margin-top: 6px;
  font-size: 13px;
}

.pb-hero-right {
  position: relative;
}

.pb-command-card {
  position: relative;
  padding: 18px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
    radial-gradient(circle at 80% 10%, rgba(34,211,238,0.16), transparent 32%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 34px 100px rgba(0,0,0,0.44);
  backdrop-filter: blur(24px);
}

.pb-window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.pb-window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.pb-command-header,
.pb-preview-head,
.pb-machine-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pb-command-header strong,
.pb-preview-head strong,
.pb-machine-title strong {
  display: block;
  color: #fff;
  font-weight: 950;
}

.pb-command-header small {
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}

.pb-command-header span,
.pb-preview-head span,
.pb-machine-title span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.32);
  color: #4ade80;
  font-size: 11px;
  font-weight: 950;
}

.pb-deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pb-deck-tile {
  cursor: pointer;
  text-align: left;
  padding: 16px;
  border-radius: 20px;
  color: #fff;
  background: rgba(5,8,22,0.58);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.18s ease;
}

.pb-deck-tile:hover,
.pb-deck-tile.active {
  transform: translateY(-3px);
  background: rgba(88,101,242,0.17);
  border-color: rgba(88,101,242,0.42);
}

.pb-deck-tile i {
  font-style: normal;
  font-size: 25px;
}

.pb-deck-tile strong,
.pb-deck-tile span {
  display: block;
}

.pb-deck-tile strong {
  margin-top: 10px;
  font-weight: 950;
}

.pb-deck-tile span {
  color: #94a3b8;
  margin-top: 4px;
  font-size: 13px;
}

.pb-live-preview {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background: #080d1f;
  border: 1px solid rgba(255,255,255,0.09);
}

.pb-live-preview p {
  color: #a6b0c3;
  line-height: 1.55;
}

.pb-fake-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.pb-fake-buttons span {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(88,101,242,0.18);
  border: 1px solid rgba(88,101,242,0.30);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.pb-floating-card {
  position: absolute;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 18px 50px rgba(0,0,0,0.26);
  backdrop-filter: blur(18px);
  animation: pbFloat 4.5s ease-in-out infinite;
}

.pb-floating-card strong,
.pb-floating-card span {
  display: block;
}

.pb-floating-card span {
  color: #94a3b8;
  margin-top: 4px;
  font-size: 12px;
}

.pb-float-one {
  right: -10px;
  top: -25px;
}

.pb-float-two {
  left: -20px;
  bottom: 30px;
  animation-delay: 1.3s;
}

@keyframes pbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.pb-section {
  padding: 74px 0;
}

.pb-section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.pb-section-head span,
.pb-split-copy > span,
.pb-launch span {
  display: block;
  color: #67e8f9;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin-bottom: 10px;
}

.pb-section-head h2,
.pb-split-copy h2,
.pb-launch h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(31px, 4.4vw, 56px);
  letter-spacing: -0.055em;
}

.pb-section-head p,
.pb-split-copy p,
.pb-launch p {
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

.pb-module-lab {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
}

.pb-module-list {
  display: grid;
  gap: 10px;
}

.pb-module-list button {
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  text-align: left;
  padding: 14px;
  border-radius: 20px;
  color: #fff;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.18s ease;
}

.pb-module-list button:hover,
.pb-module-list button.active {
  transform: translateX(4px);
  background: rgba(88,101,242,0.15);
  border-color: rgba(88,101,242,0.38);
}

.pb-module-list button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,0.07);
  font-size: 21px;
}

.pb-module-list strong,
.pb-module-list small {
  display: block;
}

.pb-module-list small {
  color: #94a3b8;
  margin-top: 4px;
}

.pb-module-stage {
  min-height: 420px;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 15%, rgba(88,101,242,0.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.10);
}

.pb-stage-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pb-stage-top > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: rgba(88,101,242,0.18);
  font-size: 28px;
}

.pb-stage-top strong,
.pb-stage-top small {
  display: block;
}

.pb-stage-top strong {
  color: #fff;
  font-weight: 950;
  font-size: 18px;
}

.pb-stage-top small {
  color: #94a3b8;
  margin-top: 4px;
}

.pb-module-stage h3 {
  margin: 26px 0 12px;
  color: #fff;
  font-size: clamp(29px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.pb-module-stage p {
  max-width: 780px;
  color: #a6b0c3;
  line-height: 1.7;
  font-size: 17px;
}

.pb-stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pb-stage-chips span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(34,211,238,0.09);
  border: 1px solid rgba(34,211,238,0.20);
  color: #a5f3fc;
  font-weight: 900;
  font-size: 13px;
}

.pb-split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 24px;
  align-items: center;
}

.pb-step-stack {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pb-step-stack div {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.pb-step-stack b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(88,101,242,0.18);
  color: #fff;
}

.pb-step-stack span {
  color: #dbeafe;
  font-weight: 900;
}

.pb-ticket-machine {
  padding: 18px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(34,211,238,0.10), rgba(168,85,247,0.10)),
    rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
}

.pb-machine-screen {
  padding: 20px;
  border-radius: 26px;
  background: #080d1f;
  border: 1px solid rgba(255,255,255,0.08);
}

.pb-select-sim {
  margin: 18px 0;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-weight: 950;
}

.pb-option-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border-radius: 14px;
  margin-top: 10px;
  background: rgba(88,101,242,0.10);
  color: #fff;
  font-weight: 900;
}

.pb-option-row span {
  color: #94a3b8;
  font-weight: 800;
}

.pb-rule-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pb-rule-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.pb-rule-card.active {
  background: rgba(34,197,94,0.09);
  border-color: rgba(34,197,94,0.24);
}

.pb-rule-card strong,
.pb-rule-card span {
  display: block;
}

.pb-rule-card strong {
  color: #fff;
  font-weight: 950;
}

.pb-rule-card span {
  color: #94a3b8;
  margin-top: 8px;
}

.pb-launch {
  margin-top: 58px;
  padding: 34px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(34,211,238,0.18), transparent 32%),
    linear-gradient(135deg, rgba(88,101,242,0.18), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.10);
}

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

  .pb-topnav {
    justify-self: start;
  }

  .pb-hero,
  .pb-module-lab,
  .pb-split-section,
  .pb-launch {
    grid-template-columns: 1fr;
  }

  .pb-hero-right {
    max-width: 680px;
  }

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

@media (max-width: 720px) {
  .pb-page {
    width: min(100% - 22px, 1220px);
    padding-top: 28px;
  }

  .pb-topbar {
    padding: 14px;
  }

  .pb-topnav {
    display: none;
  }

  .pb-top-actions,
  .pb-hero-actions,
  .pb-launch-actions {
    width: 100%;
  }

  .pb-btn {
    flex: 1;
  }

  .pb-micro-stats,
  .pb-deck-grid,
  .pb-rule-matrix {
    grid-template-columns: 1fr;
  }

  .pb-floating-card {
    display: none;
  }
}


/* Whitelist Feature Highlight */

.pb-module-list button[data-module="whitelist"] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.055);
}

.pb-module-list button[data-module="whitelist"]:hover,
.pb-module-list button[data-module="whitelist"].active {
  border-color: rgba(34, 197, 94, 0.40);
  background: rgba(34, 197, 94, 0.12);
}


/* Legal Footer + Legal Pages */

.pb-footer {
  margin-top: 46px;
  padding: 24px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.09);
  color: #94a3b8;
}

.pb-footer strong {
  display: block;
  color: #fff;
  font-weight: 950;
}

.pb-footer span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.pb-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pb-footer a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 850;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.pb-footer a:hover {
  color: #fff;
  background: rgba(88,101,242,0.14);
  border-color: rgba(88,101,242,0.30);
}

.pb-legal-body {
  min-height: 100vh;
  margin: 0;
  color: #e6edf3;
  background:
    radial-gradient(circle at 20% 10%, rgba(88,101,242,0.22), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(34,211,238,0.13), transparent 28%),
    #050816;
}

.pb-legal-page {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.pb-legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 900;
}

.pb-legal-card {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 30px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0,0,0,0.34);
}

.pb-legal-card h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.055em;
}

.pb-legal-card h2 {
  margin: 30px 0 10px;
  color: #fff;
  font-size: 20px;
}

.pb-legal-card p {
  color: #a6b0c3;
  line-height: 1.75;
}

.pb-legal-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(251,191,36,0.10);
  border: 1px solid rgba(251,191,36,0.25);
  color: #fde68a !important;
  font-weight: 850;
}

@media (max-width: 720px) {
  .pb-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pb-footer nav {
    width: 100%;
  }

  .pb-footer a {
    flex: 1;
    text-align: center;
  }
}


/* Reaction Roles */

.rr-home-layout {
  display: grid;
  gap: 18px;
}

.rr-create-card {
  border-color: rgba(168,85,247,0.22);
}

.rr-panel-tile:hover {
  border-color: rgba(168,85,247,0.42);
  background: rgba(168,85,247,0.10);
}

.rr-option-editor {
  border-color: rgba(168,85,247,0.14);
}

.rr-preview {
  border-color: rgba(168,85,247,0.28);
}

.rr-send-box {
  grid-template-columns: auto auto 1fr;
}

.rr-send-box form {
  margin: 0;
}

.rr-send-box form button {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(88,101,242,0.35);
  background: rgba(88,101,242,0.18);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.rr-send-box form:nth-child(2) button {
  background: rgba(168,85,247,0.16);
  border-color: rgba(168,85,247,0.34);
}

@media (max-width: 850px) {
  .rr-send-box {
    grid-template-columns: 1fr;
  }

  .rr-send-box form button {
    width: 100%;
  }
}


/* Reaction Roles UX v2 */

.rr-type-switch-card {
  border-color: rgba(168,85,247,0.20);
}

.rr-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.rr-type-btn {
  cursor: pointer;
  text-align: left;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6edf3;
  transition: 0.16s ease;
}

.rr-type-btn:hover,
.rr-type-btn.active {
  transform: translateY(-2px);
  background: rgba(168,85,247,0.13);
  border-color: rgba(168,85,247,0.38);
}

.rr-type-btn strong,
.rr-type-btn span {
  display: block;
}

.rr-type-btn strong {
  color: #fff;
  font-weight: 950;
}

.rr-type-btn span {
  color: #8b949e;
  line-height: 1.4;
  margin-top: 6px;
  font-size: 13px;
}

.rr-mode-info {
  display: none;
  margin: 14px 0;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.18);
  color: #d8b4fe;
  font-weight: 850;
}

body[data-rr-type="buttons"] .rr-button-only,
body[data-rr-type="select"] .rr-select-only,
body[data-rr-type="reaction"] .rr-reaction-only {
  display: block;
}

body[data-rr-type="buttons"] .form-field.rr-button-only,
body[data-rr-type="select"] .form-field.rr-select-only,
body[data-rr-type="reaction"] .form-field.rr-reaction-only {
  display: grid;
}

body[data-rr-type="buttons"] .rr-preview-buttons,
body[data-rr-type="select"] .rr-preview-select,
body[data-rr-type="reaction"] .rr-preview-reactions {
  display: flex;
}

body[data-rr-type="reaction"] .rr-not-reaction {
  display: none !important;
}

body[data-rr-type="reaction"] .rr-reaction-label-fallback {
  display: block;
}

body[data-rr-type="select"] .rr-not-select-description-fallback,
body[data-rr-type="buttons"] .rr-not-select-description-fallback,
body[data-rr-type="reaction"] .rr-not-select-description-fallback,
body[data-rr-type="select"] .rr-not-button-style-fallback,
body[data-rr-type="reaction"] .rr-not-button-style-fallback,
body[data-rr-type="buttons"] .rr-reaction-label-fallback {
  display: none;
}

body[data-rr-type="buttons"] .rr-select-only,
body[data-rr-type="buttons"] .rr-reaction-only,
body[data-rr-type="select"] .rr-button-only,
body[data-rr-type="select"] .rr-reaction-only,
body[data-rr-type="reaction"] .rr-button-only,
body[data-rr-type="reaction"] .rr-select-only {
  display: none !important;
}

.rr-emoji-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.rr-emoji-open {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(168,85,247,0.32);
  background: rgba(168,85,247,0.13);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.rr-emoji-popover {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(420px, calc(100vw - 30px));
  padding: 16px;
  border-radius: 24px;
  background: rgba(7,11,24,0.96);
  border: 1px solid rgba(168,85,247,0.28);
  box-shadow: 0 30px 90px rgba(0,0,0,0.52);
  backdrop-filter: blur(20px);
  display: none;
}

.rr-emoji-popover.open {
  display: block;
}

.rr-emoji-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.rr-emoji-head strong {
  color: #fff;
  font-size: 18px;
}

.rr-emoji-head button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

#rrEmojiSearch,
#rrCustomEmojiInput {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(2,6,23,0.86);
  color: #e6edf3;
  outline: none;
}

.rr-emoji-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.rr-emoji-tabs button {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #8b949e;
  font-weight: 900;
  cursor: pointer;
}

.rr-emoji-tabs button.active {
  color: #fff;
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.36);
}

.rr-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
}

.rr-emoji-grid button {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.055);
  cursor: pointer;
  font-size: 22px;
}

.rr-emoji-grid button:hover {
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.34);
}

.rr-custom-emoji-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.rr-custom-emoji-box label {
  color: #c9d1ff;
  font-weight: 950;
  font-size: 12px;
}

.rr-custom-emoji-box button {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.32);
  background: rgba(34,197,94,0.14);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.rr-preview-buttons,
.rr-preview-select,
.rr-preview-reactions {
  display: none;
  flex-wrap: wrap;
  gap: 9px;
}

.rr-big-reaction {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 25px;
}

.rr-code {
  display: block;
  margin: 10px 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(2,6,23,0.75);
  color: #d8b4fe;
  border: 1px solid rgba(168,85,247,0.22);
}

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

  .rr-emoji-popover {
    left: 15px;
    right: 15px;
    bottom: 15px;
    width: auto;
  }

  .rr-emoji-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}


/* Reaction Roles Role Picker */

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

.rr-role-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(7, 11, 24, 0.58);
  border: 1px solid rgba(168, 85, 247, 0.18);
}

.rr-role-picker-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.rr-role-search {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(2,6,23,0.82);
  color: #e6edf3;
  outline: none;
}

.rr-role-select-visible,
.rr-role-clear {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 13px;
  border: 1px solid rgba(168,85,247,0.28);
  background: rgba(168,85,247,0.12);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.rr-role-clear {
  border-color: rgba(248,81,73,0.28);
  background: rgba(248,81,73,0.11);
  color: #ffb4ae;
}

.rr-role-selected {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

.rr-role-empty {
  color: #8b949e;
  font-size: 13px;
  font-weight: 850;
}

.rr-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.24);
  background: rgba(34,197,94,0.10);
  color: #bbf7d0;
  font-weight: 900;
  cursor: pointer;
}

.rr-role-chip b {
  color: #4ade80;
}

.rr-role-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.rr-role-list::-webkit-scrollbar {
  width: 0;
  display: none;
}

.rr-role-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 13px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.035);
  color: #e6edf3;
  cursor: pointer;
  transition: 0.12s ease;
}

.rr-role-item:hover {
  background: rgba(168,85,247,0.11);
  border-color: rgba(168,85,247,0.25);
}

.rr-role-item.selected {
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.25);
}

.rr-role-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #4ade80;
  font-weight: 950;
}

.rr-role-name {
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rr-role-no-results {
  padding: 14px;
  border-radius: 13px;
  color: #8b949e;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 780px) {
  .rr-role-picker-top {
    grid-template-columns: 1fr;
  }

  .rr-role-select-visible,
  .rr-role-clear {
    width: 100%;
  }
}



/* =========================================================
   COBALT FULL MOBILE RESPONSIVE LAYER
   Desktop bleibt unangetastet, Mobile greift erst <= 900px
   ========================================================= */

.mobile-shell-topbar,
.mobile-sidebar-backdrop,
.sidebar-mobile-head {
  display: none;
}

/* Touch/Inputs allgemein */
@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }

  .desktop-brand-only {
    display: none !important;
  }

  /* Mobile Topbar */
  .mobile-shell-topbar {
    position: sticky;
    top: 0;
    z-index: 3000;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    background: rgba(7, 11, 24, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.055);
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #e6edf3;
  }

  .mobile-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-weight: 950;
  }

  .mobile-brand img {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .mobile-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-logout-btn {
    padding: 9px 11px;
    border-radius: 12px;
    color: #ffb4ae;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
    background: rgba(248,81,73,0.12);
    border: 1px solid rgba(248,81,73,0.22);
  }

  /* Mobile Sidebar Overlay */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 4000;
    width: min(86vw, 340px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow: hidden !important;
    border-right: 1px solid rgba(255,255,255,0.10);
    box-shadow: 30px 0 90px rgba(0,0,0,0.45);
  }

  body.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: block;
    background: rgba(0,0,0,0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    backdrop-filter: blur(3px);
  }

  body.mobile-sidebar-open .mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-mobile-head .brand {
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .sidebar-nav-accordion {
    max-height: calc(100dvh - 75px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 12px 28px !important;
    scrollbar-width: none !important;
  }

  .sidebar-nav-accordion::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }

  .nav-group {
    margin-bottom: 12px !important;
  }

  .nav-group summary {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .nav-group a {
    min-height: 44px;
    display: flex !important;
    align-items: center;
    border-radius: 14px !important;
  }

  /* Main Layout */
  .main {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 14px 12px 40px !important;
  }

  .fixed-header {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    border-radius: 22px !important;
  }

  .fixed-header h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.05 !important;
    word-break: break-word;
  }

  .fixed-header p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .header-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .header-btn,
  .save-log-btn,
  .small-action-btn,
  .danger-delete-panel {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Cards / Grids */
  .grid,
  .settings-grid,
  .automod-toggle-grid,
  .ticket-home-layout,
  .rr-home-layout,
  .ticket-panel-grid-clean,
  .compact-history,
  .feature-grid,
  .workflow-grid {
    grid-template-columns: 1fr !important;
  }

  .card,
  .wide,
  .notice-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px !important;
    padding: 16px !important;
    overflow: hidden;
  }

  .section-title-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .mod-badge {
    width: fit-content;
  }

  .stat-card {
    min-height: auto !important;
  }

  .stat-card .big {
    font-size: 30px !important;
  }

  /* Forms */
  .form-field,
  .form-field-wide {
    width: 100% !important;
    min-width: 0 !important;
  }

  .form-field input,
  .form-field select,
  .form-field textarea,
  .ticket-simple-create input,
  .rr-role-search,
  .create-channel-inline input {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
  }

  textarea {
    min-height: 110px;
  }

  select[multiple] {
    min-height: 190px;
  }

  .switch-card {
    min-height: 72px !important;
    padding: 14px !important;
  }

  .switch-card strong {
    font-size: 14px !important;
  }

  .switch-card span,
  small,
  .muted {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* Tables: alle Tabellen mobil scrollbar */
  table {
    min-width: 720px;
  }

  .table-wrap,
  .logs-table,
  .members-table,
  .audit-table,
  .warning-table,
  .roles-table {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap::-webkit-scrollbar,
  .logs-table::-webkit-scrollbar,
  .members-table::-webkit-scrollbar,
  .audit-table::-webkit-scrollbar,
  .warning-table::-webkit-scrollbar,
  .roles-table::-webkit-scrollbar {
    height: 0;
    display: none;
  }

  /* Ticket System Mobile */
  .ticket-layout,
  .ticket-builder-layout,
  .ticket-main,
  .ticket-side,
  .ticket-builder-main,
  .ticket-builder-side {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .ticket-side,
  .ticket-builder-side {
    position: static !important;
  }

  .ticket-simple-create {
    grid-template-columns: 1fr !important;
  }

  .ticket-panel-tile {
    grid-template-columns: 8px 1fr !important;
    padding: 14px !important;
  }

  .ticket-panel-color {
    min-height: 74px !important;
  }

  .send-panel-box,
  .rr-send-box {
    grid-template-columns: 1fr !important;
  }

  .send-panel-box form,
  .rr-send-box form {
    width: 100%;
  }

  .send-panel-box button,
  .rr-send-box button {
    width: 100% !important;
  }

  .ticket-option-editor summary {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }

  .ticket-option-item {
    grid-template-columns: 1fr !important;
  }

  .ticket-option-item form,
  .ticket-option-item button {
    width: 100% !important;
  }

  .ticket-history {
    max-height: none !important;
  }

  /* Reaction Roles Mobile */
  .rr-type-grid {
    grid-template-columns: 1fr !important;
  }

  .rr-type-btn {
    min-height: 86px !important;
  }

  .rr-emoji-input-wrap {
    grid-template-columns: 1fr !important;
  }

  .rr-emoji-open {
    width: 100% !important;
  }

  .rr-emoji-popover {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-height: 82dvh !important;
    overflow-y: auto !important;
    border-radius: 22px !important;
  }

  .rr-emoji-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    max-height: 260px !important;
  }

  .rr-role-picker-top {
    grid-template-columns: 1fr !important;
  }

  .rr-role-select-visible,
  .rr-role-clear {
    width: 100% !important;
  }

  .rr-role-list {
    max-height: 260px !important;
  }

  .rr-role-item {
    min-height: 46px !important;
  }

  .rr-role-selected {
    max-height: 150px;
    overflow-y: auto;
  }

  /* Channel Designer / Role Designer ähnliche Action-Bereiche */
  .channel-actions,
  .role-actions,
  .member-actions,
  .ticket-panel-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .channel-actions form,
  .role-actions form,
  .member-actions form,
  .ticket-panel-actions form {
    width: 100% !important;
  }

  /* Member Detail / Moderation */
  .member-profile,
  .member-detail-layout,
  .moderation-layout,
  .logs-layout,
  .roles-layout,
  .channel-layout,
  .automod-layout,
  .welcome-layout {
    grid-template-columns: 1fr !important;
  }

  .member-avatar,
  .avatar-xl {
    width: 72px !important;
    height: 72px !important;
  }

  /* Landing Page Mobile */
  .pb-topbar {
    position: relative !important;
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }

  .pb-topnav {
    display: none !important;
  }

  .pb-top-actions,
  .pb-hero-actions,
  .pb-launch-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .pb-btn {
    width: 100% !important;
  }

  .pb-page {
    width: min(100% - 22px, 1220px) !important;
    padding-top: 28px !important;
  }

  .pb-hero,
  .pb-module-lab,
  .pb-split-section,
  .pb-launch {
    grid-template-columns: 1fr !important;
  }

  .pb-hero-left h1 {
    font-size: clamp(38px, 13vw, 62px) !important;
  }

  .pb-micro-stats,
  .pb-deck-grid,
  .pb-rule-matrix {
    grid-template-columns: 1fr !important;
  }

  .pb-floating-card {
    display: none !important;
  }

  .pb-command-card {
    border-radius: 24px !important;
    padding: 14px !important;
  }

  .pb-section {
    padding: 44px 0 !important;
  }

  .pb-module-list button {
    grid-template-columns: 42px 1fr !important;
  }

  .pb-module-stage {
    min-height: auto !important;
    padding: 20px !important;
    border-radius: 24px !important;
  }

  .pb-stage-chips,
  .pb-fake-buttons {
    gap: 8px !important;
  }

  .pb-launch {
    padding: 22px !important;
  }

  .pb-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .pb-footer nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Legal Mobile */
  .pb-legal-page {
    width: min(100% - 22px, 940px) !important;
    padding: 26px 0 46px !important;
  }

  .pb-legal-card {
    border-radius: 24px !important;
    padding: 20px !important;
  }

  .pb-legal-card h1 {
    font-size: clamp(32px, 12vw, 48px) !important;
  }
}


/* Very small phones */
@media (max-width: 430px) {
  .main {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .mobile-shell-topbar {
    grid-template-columns: 44px 1fr;
  }

  .mobile-logout-btn {
    display: none;
  }

  .fixed-header,
  .card,
  .wide {
    padding: 14px !important;
  }

  .fixed-header h1 {
    font-size: 29px !important;
  }

  .rr-emoji-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  .pb-hero-left h1 {
    font-size: 39px !important;
  }
}


@media (max-width: 900px) {
  .mobile-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .mobile-table-scroll::-webkit-scrollbar {
    height: 0;
    display: none;
  }

  .mobile-table-scroll table {
    min-width: 720px;
  }
}



/* =========================================================
   LEVEL / XP SYSTEM
   ========================================================= */

.level-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.level-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 10px !important;
  scrollbar-width: none;
}

.level-nav::-webkit-scrollbar {
  display: none;
}

.level-tab {
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #8b949e;
  font-weight: 950;
  cursor: pointer;
}

.level-tab:hover,
.level-tab.active {
  color: #fff;
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.38);
}

.level-tab-panel {
  display: none;
}

.level-tab-panel.active {
  display: block;
}

.level-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.level-leaderboard,
.level-item-list,
.level-log-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.level-leader-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 17px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
}

.level-position {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124,58,237,0.14);
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.level-user-info,
.level-user-score {
  min-width: 0;
}

.level-user-info strong,
.level-user-info span,
.level-user-score strong,
.level-user-score span {
  display: block;
}

.level-user-info strong {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-user-info span,
.level-user-score span {
  color: #8b949e;
  margin-top: 4px;
  font-size: 13px;
}

.level-user-score {
  text-align: right;
}

.level-user-score strong {
  color: #c4b5fd;
}

.level-system-status {
  position: sticky;
  top: 100px;
}

.level-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.level-status-row span {
  color: #8b949e;
}

.level-status-row strong {
  color: #e6edf3;
}

.status-on {
  color: #4ade80 !important;
}

.status-off {
  color: #fb7185 !important;
}

.level-command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.level-command-list code {
  padding: 8px 10px;
  border-radius: 11px;
  color: #c4b5fd;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.24);
}

.level-config-heading {
  margin: 28px 0 14px;
  padding-bottom: 9px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.level-inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.level-small-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 14px;
}

.level-small-form select,
.level-small-form button {
  min-height: 44px;
  border-radius: 13px;
}

.level-small-form button {
  padding: 10px 14px;
  border: 1px solid rgba(124,58,237,0.30);
  background: rgba(124,58,237,0.14);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.level-item-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
}

.level-item-row > div:nth-child(2) strong,
.level-item-row > div:nth-child(2) span,
.level-item-row > div:first-child:not(.level-item-icon) strong,
.level-item-row > div:first-child:not(.level-item-icon) span {
  display: block;
}

.level-item-row strong {
  color: #e6edf3;
}

.level-item-row span {
  color: #8b949e;
  margin-top: 4px;
  font-size: 13px;
}

.level-item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124,58,237,0.14);
  font-size: 20px;
}

.level-delete-btn {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(248,81,73,0.26);
  background: rgba(248,81,73,0.11);
  color: #ffb4ae;
  font-weight: 950;
  cursor: pointer;
}

.level-log-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 11px;
  border-radius: 15px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

.level-log-row strong,
.level-log-row span {
  display: block;
}

.level-log-row strong {
  color: #e6edf3;
}

.level-log-row span {
  color: #8b949e;
  margin-top: 4px;
  font-size: 12px;
}

.level-log-plus,
.level-log-minus {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 950;
}

.level-log-plus {
  color: #4ade80;
  background: rgba(34,197,94,0.10);
}

.level-log-minus {
  color: #fb7185;
  background: rgba(248,81,73,0.10);
}

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

  .level-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .level-system-status {
    position: static;
  }

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

@media (max-width: 900px) {
  .level-stat-grid,
  .level-dashboard-layout,
  .level-inline-form {
    grid-template-columns: 1fr !important;
  }

  .level-nav {
    position: sticky;
    top: 64px;
    z-index: 20;
    border-radius: 18px !important;
    background: rgba(7,11,24,0.96);
    backdrop-filter: blur(18px);
  }

  .level-tab {
    min-height: 46px;
  }

  .level-leader-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .level-user-score {
    grid-column: 2;
    text-align: left;
  }

  .level-item-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .level-item-row form {
    grid-column: 1 / -1;
    width: 100%;
  }

  .level-delete-btn {
    width: 100%;
  }

  .level-small-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   COBALT EMBED STUDIO
   ========================================================= */

.embed-main {
  --embed-accent: #7c3aed;
  --embed-accent-2: #a855f7;
  --embed-card: rgba(13, 18, 34, 0.88);
  --embed-line: rgba(255, 255, 255, 0.085);
  --embed-muted: #8f9bb3;
}

.embed-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #9f7aea;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.embed-page-header h1,
.embed-editor-toolbar h1 {
  margin: 0;
}

.embed-page-header p {
  max-width: 760px;
}

.embed-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 30px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 25px;
  background:
    radial-gradient(circle at 15% 5%, rgba(124, 58, 237, 0.28), transparent 35%),
    radial-gradient(circle at 92% 85%, rgba(59, 130, 246, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(16, 20, 39, 0.98), rgba(8, 12, 25, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.embed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to right, #000, transparent);
}

.embed-hero-copy,
.embed-create-panel {
  position: relative;
  z-index: 1;
}

.embed-hero-badge,
.embed-panel-badge,
.embed-schedule-pill,
.embed-limit-chip,
.embed-project-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.10);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.embed-panel-badge.live {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.30);
  background: rgba(34, 197, 94, 0.10);
}

.embed-hero-copy h2 {
  max-width: 720px;
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.embed-hero-copy p {
  max-width: 740px;
  color: #aab4c8;
  font-size: 16px;
  line-height: 1.75;
}

.embed-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.embed-hero-tags span {
  padding: 8px 11px;
  border-radius: 11px;
  color: #d8dff0;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  font-weight: 800;
}

.embed-create-panel {
  display: grid;
  align-self: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  background: rgba(5, 8, 18, 0.64);
  backdrop-filter: blur(20px);
}

.embed-create-panel label,
.embed-field {
  display: grid;
  gap: 7px;
}

.embed-create-panel label > span,
.embed-field > span {
  color: #c9d2e3;
  font-size: 12px;
  font-weight: 900;
}

.embed-create-panel input,
.embed-create-panel select,
.embed-field input,
.embed-field select,
.embed-field textarea,
.embed-json-editor,
.embed-dialog input,
.embed-option-card input,
.embed-option-card textarea,
.embed-component-card input,
.embed-component-card select,
.embed-component-card textarea,
.embed-field-card input,
.embed-field-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  outline: none;
  color: #edf2ff;
  background: rgba(255,255,255,0.045);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.embed-field textarea,
.embed-json-editor,
.embed-option-card textarea,
.embed-component-card textarea,
.embed-field-card textarea {
  resize: vertical;
  line-height: 1.55;
}

.embed-create-panel input:focus,
.embed-create-panel select:focus,
.embed-field input:focus,
.embed-field select:focus,
.embed-field textarea:focus,
.embed-json-editor:focus,
.embed-dialog input:focus,
.embed-option-card input:focus,
.embed-option-card textarea:focus,
.embed-component-card input:focus,
.embed-component-card select:focus,
.embed-component-card textarea:focus,
.embed-field-card input:focus,
.embed-field-card textarea:focus {
  border-color: rgba(139, 92, 246, 0.58);
  background: rgba(124, 58, 237, 0.07);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

.embed-field small {
  color: var(--embed-muted);
  font-size: 11px;
}

.embed-primary-btn,
.embed-secondary-btn,
.embed-save-btn,
.embed-back-btn,
.embed-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, border-color .16s ease, background .16s ease;
}

.embed-primary-btn,
.embed-save-btn {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.20);
}

.embed-save-btn {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.embed-secondary-btn,
.embed-back-btn,
.embed-icon-btn {
  color: #dce4f5;
  border-color: rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.045);
}

.embed-primary-btn:hover,
.embed-secondary-btn:hover,
.embed-save-btn:hover,
.embed-back-btn:hover,
.embed-icon-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.embed-primary-btn.compact,
.embed-secondary-btn.compact,
.embed-icon-btn {
  min-height: 37px;
  padding: 8px 11px;
  font-size: 12px;
}

.embed-icon-btn {
  width: 38px;
  padding: 0;
}

.embed-icon-btn.danger {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.20);
  background: rgba(244, 63, 94, 0.08);
}

.embed-primary-btn:disabled,
.embed-secondary-btn:disabled,
.embed-icon-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

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

.embed-stat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--embed-line);
  border-radius: 18px;
  background: var(--embed-card);
}

.embed-stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #c4b5fd;
  background: rgba(124,58,237,0.13);
  font-size: 21px;
  font-weight: 1000;
}

.embed-stat-card strong,
.embed-stat-card small {
  display: block;
}

.embed-stat-card strong {
  color: #fff;
  font-size: 25px;
}

.embed-stat-card small {
  margin-top: 2px;
  color: var(--embed-muted);
}

.embed-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.embed-section-head,
.embed-panel-head,
.embed-editor-card-head,
.embed-component-card-head,
.embed-option-head,
.embed-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.embed-section-head {
  margin-bottom: 13px;
}

.embed-section-head h2,
.embed-panel-head h2,
.embed-dialog-head h2 {
  margin: 0;
  color: #fff;
}

.embed-section-head.small h2 {
  font-size: 19px;
}

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

.embed-project-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 18px;
  border: 1px solid var(--embed-line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 24, 43, .96), rgba(8, 12, 25, .96));
}

.embed-project-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -110px;
  right: -70px;
  border-radius: 999px;
  background: var(--project-color);
  filter: blur(70px);
  opacity: .22;
  pointer-events: none;
}

.embed-project-top,
.embed-project-meta,
.embed-project-actions,
.embed-inline-actions,
.embed-toolbar-actions,
.embed-toolbar-status,
.embed-preview-modes,
.embed-emoji-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.embed-project-top {
  position: relative;
  justify-content: space-between;
}

.embed-status {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.embed-status-draft { color: #fcd34d; background: rgba(245,158,11,.10); }
.embed-status-ready { color: #86efac; background: rgba(34,197,94,.10); }
.embed-status-published { color: #93c5fd; background: rgba(59,130,246,.10); }
.embed-status-archived { color: #94a3b8; background: rgba(148,163,184,.10); }

.embed-project-card h3 {
  position: relative;
  margin: 18px 0 7px;
  color: #fff;
  font-size: 21px;
}

.embed-project-card > p {
  position: relative;
  min-height: 45px;
  margin: 0;
  color: #98a5ba;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.embed-project-meta {
  position: relative;
  flex-wrap: wrap;
  margin: 18px 0;
}

.embed-project-meta span {
  color: #8995a9;
  font-size: 12px;
}

.embed-project-meta b {
  color: #e9edff;
}

.embed-project-actions {
  position: relative;
  flex-wrap: wrap;
}

.embed-project-actions form {
  margin: 0;
}

.embed-project-error {
  margin: -5px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fda4af;
  background: rgba(244,63,94,.08);
  font-size: 11px;
  font-weight: 800;
}

.embed-activity-card {
  position: sticky;
  top: 95px;
  padding: 17px;
  border: 1px solid var(--embed-line);
  border-radius: 20px;
  background: var(--embed-card);
}

.embed-activity-list {
  display: grid;
  gap: 4px;
}

.embed-activity-row {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.embed-activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 99px;
  background: #8b5cf6;
  box-shadow: 0 0 14px rgba(139,92,246,.6);
}

.embed-activity-row strong,
.embed-activity-row span {
  display: block;
}

.embed-activity-row strong {
  color: #e4eafe;
  font-size: 13px;
}

.embed-activity-row span {
  margin-top: 3px;
  color: #768299;
  font-size: 11px;
}

.embed-empty-state {
  grid-column: 1 / -1;
  padding: 55px 24px;
  border: 1px dashed rgba(139,92,246,.26);
  border-radius: 20px;
  text-align: center;
  background: rgba(124,58,237,.035);
}

.embed-empty-state.compact {
  padding: 34px 18px;
}

.embed-empty-state > div {
  font-size: 34px;
}

.embed-empty-state h3 {
  margin: 10px 0 5px;
  color: #fff;
}

.embed-empty-state p,
.embed-empty-mini {
  color: var(--embed-muted);
}

/* Editor shell */

.embed-editor-main {
  padding-top: 18px;
}

.embed-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: -18px -22px 18px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(6, 9, 19, .92);
  backdrop-filter: blur(22px);
}

.embed-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.embed-back-btn {
  flex: 0 0 auto;
  width: 43px;
  padding: 0;
  font-size: 19px;
}

.embed-toolbar-left > div:last-child {
  min-width: 0;
}

.embed-toolbar-left h1 {
  overflow: hidden;
  color: #fff;
  font-size: 19px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.embed-save-state {
  font-size: 12px;
  font-weight: 900;
}

.embed-save-state.saved { color: #4ade80; }
.embed-save-state.dirty { color: #facc15; }
.embed-save-state.saving { color: #93c5fd; }
.embed-save-state.error { color: #fb7185; }

.embed-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr);
  gap: 18px;
  align-items: start;
}

.embed-control-column,
.embed-preview-column {
  min-width: 0;
}

.embed-editor-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 13px;
  padding: 8px;
  border: 1px solid var(--embed-line);
  border-radius: 16px;
  background: rgba(10,14,27,.88);
  scrollbar-width: none;
}

.embed-editor-tabs::-webkit-scrollbar { display: none; }

.embed-editor-tabs button,
.embed-preview-modes button,
.embed-emoji-tabs button,
.embed-template-strip button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #8793aa;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.embed-editor-tabs button.active,
.embed-preview-modes button.active,
.embed-emoji-tabs button.active,
.embed-editor-tabs button:hover,
.embed-preview-modes button:hover,
.embed-emoji-tabs button:hover {
  color: #fff;
  border-color: rgba(139,92,246,.24);
  background: rgba(124,58,237,.13);
}

.embed-tab-panel {
  display: none;
  min-height: 620px;
  padding: 19px;
  border: 1px solid var(--embed-line);
  border-radius: 20px;
  background: var(--embed-card);
}

.embed-tab-panel.active {
  display: block;
}

.embed-panel-head {
  margin-bottom: 18px;
}

.embed-panel-head h2 {
  font-size: 22px;
}

.embed-form-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.embed-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.embed-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.embed-switch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

.embed-switch-card.wide {
  margin-bottom: 14px;
}

.embed-switch-card strong,
.embed-switch-card span {
  display: block;
}

.embed-switch-card strong { color: #e7ecfa; }
.embed-switch-card span { margin-top: 3px; color: #7f8ba2; font-size: 11px; }

.embed-switch-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.embed-switch-card i {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: #32394a;
  transition: .18s ease;
}

.embed-switch-card i::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  border-radius: 99px;
  background: #fff;
  transition: .18s ease;
}

.embed-switch-card input:checked + i {
  background: #7c3aed;
}

.embed-switch-card input:checked + i::after {
  transform: translateX(18px);
}

.embed-placeholder-box,
.embed-info-banner,
.embed-clone-box,
.embed-schedule-box,
.embed-delivery-status {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 15px;
  background: rgba(124,58,237,.055);
}

.embed-placeholder-box strong {
  color: #e5e9fa;
}

.embed-placeholder-box > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.embed-placeholder-box button,
.embed-template-strip button {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  color: #b9c3d7;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.embed-template-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 3px;
}

.embed-template-strip button:hover {
  color: #fff;
  border-color: rgba(139,92,246,.35);
  background: rgba(124,58,237,.11);
}

.embed-navigator {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 13px;
  padding-bottom: 3px;
}

.embed-nav-item {
  display: grid;
  grid-template-columns: 5px minmax(110px,1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 180px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  color: #d6deed;
  background: rgba(255,255,255,.025);
  text-align: left;
  cursor: pointer;
}

.embed-nav-item.active {
  border-color: rgba(139,92,246,.48);
  background: rgba(124,58,237,.11);
}

.embed-nav-color {
  align-self: stretch;
  min-height: 34px;
  border-radius: 99px;
}

.embed-nav-item b,
.embed-nav-item small {
  display: block;
}

.embed-nav-item small {
  max-width: 125px;
  overflow: hidden;
  margin-top: 2px;
  color: #7d899e;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.embed-nav-item i {
  color: #667289;
}

.embed-editor-card,
.embed-component-card,
.embed-option-card {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.embed-editor-card-head,
.embed-component-card-head {
  margin-bottom: 15px;
}

.embed-editor-card-head h3,
.embed-component-card-head h3 {
  margin: 0;
  color: #fff;
}

.embed-color-field,
.embed-url-upload,
.embed-emoji-input,
.embed-minmax {
  display: flex;
  gap: 7px;
  align-items: center;
}

.embed-color-field input[type="color"] {
  flex: 0 0 58px;
  padding: 4px;
}

.embed-url-upload input,
.embed-emoji-input input {
  min-width: 0;
  flex: 1;
}

.embed-emoji-input button {
  flex: 0 0 43px;
  min-height: 43px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
}

.embed-editor-section {
  margin-top: 13px;
  padding: 0 13px 13px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(3,7,18,.22);
}

.embed-editor-section summary {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  color: #dce4f3;
  font-weight: 950;
  cursor: pointer;
}

.embed-field-editors,
.embed-component-editors,
.embed-option-list,
.embed-version-list,
.embed-top-components {
  display: grid;
  gap: 10px;
}

.embed-field-card,
.embed-option-card {
  display: grid;
  gap: 9px;
}

.embed-field-card-head,
.embed-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.embed-field-card-head strong,
.embed-option-head strong {
  color: #dce4f3;
}

.embed-field-card-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.embed-mini-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9aa6ba;
  font-size: 12px;
  cursor: pointer;
}

.embed-mini-check input {
  width: 16px;
  height: 16px;
}

.embed-component-editors {
  margin-top: 13px;
}

.embed-component-type-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #d8ccff;
  background: rgba(124,58,237,.13);
  font-size: 18px;
}

.embed-component-card-head {
  display: grid;
  grid-template-columns: 39px minmax(0,1fr) auto;
}

.embed-action-editor {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 13px;
  background: rgba(59,130,246,.045);
}

.embed-option-list {
  margin: 12px 0;
}

.embed-minmax input {
  min-width: 0;
}

.embed-minmax span {
  color: #7e8aa0;
  font-size: 12px;
}

.embed-publish-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}

.embed-action-tile {
  display: grid;
  gap: 4px;
  min-height: 120px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  color: #dce4f4;
  background: rgba(255,255,255,.03);
  text-align: left;
  cursor: pointer;
}

.embed-action-tile:hover {
  border-color: rgba(139,92,246,.35);
  background: rgba(124,58,237,.08);
}

.embed-action-tile > span {
  color: #bfa9ff;
  font-size: 25px;
}

.embed-action-tile small {
  color: #7f8aa0;
  line-height: 1.45;
}

.embed-clone-box > div:first-child strong,
.embed-clone-box > div:first-child span {
  display: block;
}

.embed-clone-box > div:first-child strong { color: #e6ebfa; }
.embed-clone-box > div:first-child span { margin-top: 3px; color: #8995aa; font-size: 12px; }

.embed-delivery-status {
  display: grid;
  gap: 6px;
  color: #aab4c7;
  font-size: 12px;
}

.embed-delivery-status .error {
  color: #fda4af;
}

.embed-version-row {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.embed-version-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #c4b5fd;
  background: rgba(124,58,237,.12);
  font-weight: 1000;
}

.embed-version-row strong,
.embed-version-row span {
  display: block;
}

.embed-version-row strong { color: #e6ebf8; }
.embed-version-row span { margin-top: 3px; color: #7e899f; font-size: 11px; }

.embed-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.embed-analytics-grid article {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.embed-analytics-grid strong,
.embed-analytics-grid span {
  display: block;
}

.embed-analytics-grid strong {
  color: #fff;
  font-size: 25px;
}

.embed-analytics-grid span {
  margin-top: 4px;
  color: #8692a8;
  font-size: 11px;
}

.embed-top-components > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #a9b4c7;
}

.embed-top-components strong {
  color: #c4b5fd;
}

.embed-json-editor {
  min-height: 510px;
  font-family: "Cascadia Code", "Fira Code", monospace;
  font-size: 12px;
  tab-size: 2;
}

/* Preview */

.embed-preview-column {
  position: sticky;
  top: 84px;
  padding: 15px;
  border: 1px solid var(--embed-line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(13,17,31,.96), rgba(7,10,20,.96));
}

.embed-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.embed-preview-toolbar strong {
  color: #e9eefb;
}

.embed-preview-modes {
  padding: 4px;
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}

.embed-preview-modes button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}

.embed-validation-box {
  display: grid;
  gap: 2px;
  margin-bottom: 11px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 12px;
}

.embed-validation-box strong,
.embed-validation-box span {
  display: block;
}

.embed-validation-box span {
  font-size: 11px;
}

.embed-validation-box.valid { color: #86efac; border-color: rgba(34,197,94,.22); background: rgba(34,197,94,.07); }
.embed-validation-box.warning { color: #fde68a; border-color: rgba(245,158,11,.22); background: rgba(245,158,11,.07); }
.embed-validation-box.invalid { color: #fda4af; border-color: rgba(244,63,94,.22); background: rgba(244,63,94,.07); }

.discord-preview-shell {
  overflow: hidden;
  min-height: 560px;
  padding: 20px 16px;
  border-radius: 15px;
  background: #313338;
  transition: max-width .2s ease;
}

.discord-preview-shell.mobile {
  max-width: 380px;
  margin-inline: auto;
}

.discord-preview-message {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 11px;
  color: #dbdee1;
  font-family: Arial, Helvetica, sans-serif;
}

.discord-preview-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  font-weight: 900;
}

.discord-preview-body {
  min-width: 0;
}

.discord-preview-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 3px;
}

.discord-preview-author strong {
  color: #f2f3f5;
  font-size: 15px;
}

.discord-preview-author span {
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
  background: #5865f2;
  font-size: 8px;
  font-weight: 800;
}

.discord-preview-author small {
  color: #949ba4;
  font-size: 10px;
}

.discord-preview-content {
  margin-bottom: 6px;
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.discord-preview-content code,
.discord-embed-description code,
.discord-embed-field code {
  padding: 1px 4px;
  border-radius: 4px;
  color: #e3e5e8;
  background: #1e1f22;
}

.discord-embed-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  overflow: hidden;
  max-width: 520px;
  margin-top: 5px;
  padding: 12px 12px 12px 16px;
  border-radius: 4px;
  background: #2b2d31;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

.discord-embed-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--embed-color);
}

.discord-embed-main {
  min-width: 0;
}

.discord-embed-author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #f2f3f5;
  font-size: 11px;
  font-weight: 700;
}

.discord-embed-author img,
.discord-embed-footer img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-embed-title {
  margin-bottom: 6px;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
}

.discord-embed-title a {
  color: #00a8fc;
  text-decoration: none;
}

.discord-embed-description {
  color: #dbdee1;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.discord-embed-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}

.discord-embed-field {
  grid-column: 1 / -1;
  min-width: 0;
}

.discord-embed-field.inline {
  grid-column: span 4;
}

.discord-embed-field strong,
.discord-embed-field span {
  display: block;
  overflow-wrap: anywhere;
}

.discord-embed-field strong {
  margin-bottom: 2px;
  color: #f2f3f5;
  font-size: 11px;
}

.discord-embed-field span {
  color: #dbdee1;
  font-size: 11px;
  line-height: 1.4;
}

.discord-embed-thumbnail {
  width: 72px;
  max-height: 72px;
  border-radius: 4px;
  object-fit: cover;
}

.discord-embed-image {
  display: block;
  max-width: 100%;
  max-height: 300px;
  margin-top: 12px;
  border-radius: 4px;
  object-fit: contain;
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #b5bac1;
  font-size: 9px;
}

.discord-embed-footer img {
  width: 18px;
  height: 18px;
}

.discord-preview-components {
  display: grid;
  gap: 5px;
  max-width: 520px;
  margin-top: 6px;
}

.discord-component-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.discord-button-preview,
.discord-select-preview {
  min-height: 31px;
  padding: 6px 12px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.discord-button-preview.style-primary { background: #5865f2; }
.discord-button-preview.style-secondary { background: #4e5058; }
.discord-button-preview.style-success { background: #248046; }
.discord-button-preview.style-danger { background: #da373c; }
.discord-button-preview.style-link { background: #4e5058; }
.discord-button-preview:disabled { opacity: .55; }

.discord-select-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 520px);
  color: #b5bac1;
  background: #1e1f22;
  font-weight: 400;
}

.embed-preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: #78849a;
  font-size: 10px;
}

.embed-preview-footer b {
  color: #c4b5fd;
}

/* Toast + Dialog */

.embed-toast-stack {
  position: fixed;
  z-index: 300;
  top: 82px;
  right: 18px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.embed-toast {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid rgba(34,197,94,.24);
  border-radius: 13px;
  color: #dfffea;
  background: rgba(9, 28, 20, .96);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transform: translateX(120%);
  opacity: 0;
  transition: .22s ease;
}

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

.embed-toast.error {
  border-color: rgba(244,63,94,.28);
  color: #ffe4e6;
  background: rgba(42, 11, 19, .96);
}

.embed-toast.warning {
  border-color: rgba(245,158,11,.28);
  color: #fef3c7;
  background: rgba(42, 29, 8, .96);
}

.embed-toast span {
  font-size: 12px;
}

.embed-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: 78vh;
  padding: 17px;
  border: 1px solid rgba(139,92,246,.28);
  border-radius: 18px;
  color: #fff;
  background: #0d1222;
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.embed-dialog::backdrop {
  background: rgba(2,5,12,.74);
  backdrop-filter: blur(6px);
}

.embed-dialog-head {
  margin-bottom: 12px;
}

.embed-dialog-head button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.04);
  font-size: 20px;
  cursor: pointer;
}

.embed-emoji-tabs {
  margin: 10px 0;
}

.embed-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0,1fr));
  gap: 7px;
  max-height: 430px;
  overflow-y: auto;
}

.embed-emoji-grid button {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  font-size: 22px;
  cursor: pointer;
}

.embed-emoji-grid button:hover {
  border-color: rgba(139,92,246,.35);
  background: rgba(124,58,237,.11);
}

.embed-emoji-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 1350px) {
  .embed-editor-toolbar {
    grid-template-columns: minmax(220px,1fr) auto;
  }

  .embed-toolbar-status {
    display: none;
  }

  .embed-editor-layout {
    grid-template-columns: minmax(0,1fr) minmax(360px,.8fr);
  }

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

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

  .embed-list-layout,
  .embed-editor-layout {
    grid-template-columns: 1fr;
  }

  .embed-activity-card,
  .embed-preview-column {
    position: static;
  }

  .embed-preview-column {
    order: -1;
  }

  .discord-preview-shell {
    min-height: 400px;
  }
}

@media (max-width: 900px) {
  .embed-main {
    padding-top: 70px !important;
  }

  .embed-editor-main {
    padding-top: 70px !important;
  }

  .embed-editor-toolbar {
    top: 60px;
    grid-template-columns: 1fr;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--embed-line);
    border-radius: 16px;
  }

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

  .embed-toolbar-actions button {
    width: 100%;
  }

  .embed-hero {
    grid-template-columns: 1fr;
    padding: 21px;
  }

  .embed-project-grid,
  .embed-form-grid.two,
  .embed-form-grid.three,
  .embed-publish-actions-grid {
    grid-template-columns: 1fr;
  }

  .embed-editor-tabs {
    position: sticky;
    top: 66px;
    z-index: 35;
    border-radius: 14px;
    background: rgba(7,10,20,.96);
    backdrop-filter: blur(18px);
  }

  .embed-tab-panel {
    min-height: auto;
    padding: 14px;
  }

  .embed-preview-column {
    padding: 12px;
  }

  .embed-component-card-head {
    grid-template-columns: 39px minmax(0,1fr) auto;
  }

  .embed-version-row {
    grid-template-columns: 44px minmax(0,1fr);
  }

  .embed-version-row form {
    grid-column: 1 / -1;
  }

  .embed-version-row form button {
    width: 100%;
  }

  .embed-emoji-grid {
    grid-template-columns: repeat(6, minmax(0,1fr));
  }
}

@media (max-width: 620px) {
  .embed-stat-grid,
  .embed-project-grid,
  .embed-analytics-grid {
    grid-template-columns: 1fr;
  }

  .embed-hero-copy h2 {
    font-size: 32px;
  }

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

  .embed-section-head,
  .embed-panel-head,
  .embed-editor-card-head,
  .embed-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .embed-inline-actions {
    flex-wrap: wrap;
  }

  .embed-nav-item {
    min-width: 155px;
  }

  .discord-preview-shell {
    padding: 16px 10px;
  }

  .discord-preview-message {
    grid-template-columns: 35px minmax(0,1fr);
    gap: 8px;
  }

  .discord-preview-avatar {
    width: 35px;
    height: 35px;
  }

  .discord-embed-field.inline {
    grid-column: 1 / -1;
  }

  .embed-emoji-grid {
    grid-template-columns: repeat(5, minmax(0,1fr));
  }
}

/* COBALT EMBED TEMPLATE PICKER START */

.embed-template-compact-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.embed-template-compact-label {
  color: #dce2ee;
  font-size: 12px;
  font-weight: 900;
}

.embed-template-compact {
  position: relative;
  width: 100%;
  min-width: 0;
}

.embed-template-compact-trigger {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;

  width: 100%;
  min-height: 58px;
  padding: 8px 10px;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;

  color: #edf1fb;
  background: #111522;

  text-align: left;
  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.embed-template-compact-trigger:hover {
  border-color: rgba(139, 92, 246, 0.38);
  background: #15192a;
}

.embed-template-compact.open
.embed-template-compact-trigger {
  border-color: rgba(139, 92, 246, 0.68);

  background: #15192a;

  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.11);
}

.embed-template-compact-icon,
.template-option-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;

  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.13);

  font-size: 16px;
}

.embed-template-compact-copy,
.template-option-text {
  min-width: 0;
}

.embed-template-compact-copy strong,
.embed-template-compact-copy small,
.template-option-text strong,
.template-option-text small {
  display: block;
}

.embed-template-compact-copy strong,
.template-option-text strong {
  overflow: hidden;

  color: #f0f3fa;

  font-size: 12px;
  font-weight: 900;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-template-compact-copy small,
.template-option-text small {
  margin-top: 2px;
  overflow: hidden;

  color: #8993a7;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-template-compact-arrow {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;

  color: #9da8bb;
  background: rgba(255, 255, 255, 0.035);

  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.18s ease;
}

.embed-template-compact-arrow svg {
  display: block;
  width: 17px;
  height: 17px;
}

.embed-template-compact-trigger:hover
.embed-template-compact-arrow {
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(124, 58, 237, 0.09);
}

.embed-template-compact.open
.embed-template-compact-arrow {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.42);
  background: rgba(124, 58, 237, 0.18);
  transform: rotate(180deg);
}

/*
 * Das Menü wird per JavaScript direkt in body verschoben.
 * Dadurch wird es von keiner Card mehr abgeschnitten.
 */
.embed-template-compact-menu {
  display: grid;
  gap: 4px;

  padding: 6px;

  border: 1px solid rgba(139, 92, 246, 0.38);
  border-radius: 13px;

  background: #0d111d;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.025);

  max-height: none;
  overflow: visible;
}

.embed-template-compact-menu.portal-open {
  position: fixed;

  /*
   * Absichtlich extrem hoch:
   * über Sidebar, Header, Cards und Overlays.
   */
  z-index: 2147483000;

  margin: 0;

  animation: embedCompactMenuOpen 0.13s ease-out;
}

.embed-template-compact-menu.portal-open.opens-up {
  transform-origin: bottom center;
}

.embed-template-compact-menu[hidden] {
  display: none !important;
}

@keyframes embedCompactMenuOpen {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.embed-template-compact-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;

  width: 100%;
  min-height: 49px;
  padding: 6px 8px;

  border: 1px solid transparent;
  border-radius: 9px;

  color: #e8edf7;
  background: transparent;

  text-align: left;
  cursor: pointer;

  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}

.embed-template-compact-option:hover,
.embed-template-compact-option:focus-visible {
  border-color: rgba(139, 92, 246, 0.27);
  background: rgba(124, 58, 237, 0.09);
  outline: none;
}

.embed-template-compact-option.selected {
  border-color: rgba(139, 92, 246, 0.50);
  background: rgba(124, 58, 237, 0.14);
}

.template-option-check {
  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;

  border-radius: 6px;

  color: transparent;
  font-size: 10px;
  font-weight: 900;
}

.embed-template-compact-option.selected
.template-option-check {
  color: #ffffff;
  background: #7c3aed;
}

@media (max-width: 900px) {
  .embed-template-compact-trigger {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
  }

  .embed-template-compact-menu.portal-open {
    max-width: calc(100vw - 24px);
  }
}

/* COBALT EMBED TEMPLATE PICKER END */

/* COBALT GLOBAL CUSTOM SELECT START */

.potter-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.potter-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.potter-select-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 9px;

  width: 100%;
  min-height: 48px;
  padding: 10px 10px 10px 14px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 13px;

  color: #edf1fa;
  background: #111522;

  font: inherit;
  text-align: left;
  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.potter-select-trigger:hover {
  border-color: rgba(139, 92, 246, 0.42);
  background: #15192a;
}

.potter-select.open .potter-select-trigger {
  border-color: rgba(139, 92, 246, 0.72);
  background: #15192a;

  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.12);
}

.potter-select.is-disabled
.potter-select-trigger {
  opacity: 0.48;
  cursor: not-allowed;
}

.potter-select-trigger-text {
  min-width: 0;
  overflow: hidden;

  color: #f0f3fa;

  font-size: 14px;
  line-height: 1.3;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.potter-select-arrow {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;

  color: #9ea9bd;
  background: rgba(255, 255, 255, 0.035);

  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.18s ease;
}

.potter-select-arrow svg {
  display: block;
  width: 17px;
  height: 17px;
}

.potter-select-trigger:hover
.potter-select-arrow {
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(124, 58, 237, 0.10);
}

.potter-select.open
.potter-select-arrow {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(124, 58, 237, 0.19);
  transform: rotate(180deg);
}

/*
 * Das Menü liegt direkt unter body und damit garantiert
 * außerhalb von Cards, Formularen und overflow-Bereichen.
 */
.potter-select-menu {
  position: fixed;
  z-index: 2147483000;

  display: grid;
  gap: 3px;

  padding: 6px;
  margin: 0;

  overflow-x: hidden;
  overflow-y: auto;

  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #111522,
      #0b0f1a
    );

  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.025);

  overscroll-behavior: contain;
  animation: potterSelectOpen 0.13s ease-out;
}

.potter-select-menu[hidden] {
  display: none !important;
}

@keyframes potterSelectOpen {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.potter-select-group {
  padding: 9px 10px 5px;

  color: #8b5cf6;

  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.potter-select-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;

  width: 100%;
  min-height: 42px;
  padding: 8px 9px 8px 11px;

  border: 1px solid transparent;
  border-radius: 9px;

  color: #e8edf7;
  background: transparent;

  font: inherit;
  text-align: left;
  cursor: pointer;

  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}

.potter-select-option:hover,
.potter-select-option:focus-visible {
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(124, 58, 237, 0.10);
  outline: none;
}

.potter-select-option.selected {
  border-color: rgba(139, 92, 246, 0.52);
  background:
    linear-gradient(
      90deg,
      rgba(124, 58, 237, 0.19),
      rgba(124, 58, 237, 0.08)
    );
}

.potter-select-option:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.potter-select-option-text {
  min-width: 0;
  overflow: hidden;

  color: inherit;

  font-size: 13px;
  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.potter-select-option-check {
  display: grid;
  place-items: center;

  width: 21px;
  height: 21px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;

  color: transparent;
  background: rgba(255, 255, 255, 0.025);

  font-size: 10px;
  font-weight: 950;
}

.potter-select-option.selected
.potter-select-option-check {
  border-color: rgba(167, 139, 250, 0.50);
  color: #ffffff;
  background: #7c3aed;
}

/* Dezente, passende Scrollbar nur bei langen Listen */

.potter-select-menu {
  scrollbar-width: thin;
  scrollbar-color:
    rgba(139, 92, 246, 0.60)
    rgba(255, 255, 255, 0.035);
}

.potter-select-menu::-webkit-scrollbar {
  width: 7px;
}

.potter-select-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.potter-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.58);
}

.potter-select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.78);
}

@media (max-width: 900px) {
  .potter-select-menu {
    max-width: calc(100vw - 24px);
  }

  .potter-select-trigger {
    min-height: 50px;
  }
}

/* COBALT GLOBAL CUSTOM SELECT END */

/* COBALT MODULE STUDIOS START */

.module-page-kicker,
.module-embed-kicker {
  display: block;
  margin-bottom: 7px;
  color: #a78bfa;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
}

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

.module-stat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 90px;
}

.module-stat-card > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(139, 92, 246, .22);
  border-radius: 14px;
  background: rgba(124, 58, 237, .12);
  font-size: 21px;
}

.module-stat-card strong,
.module-stat-card small {
  display: block;
}

.module-stat-card strong {
  color: #f4f6ff;
  font-size: 20px;
}

.module-stat-card small {
  margin-top: 3px;
  color: #8d97aa;
  font-size: 12px;
}

.module-category-tabs {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  padding: 9px !important;
  overflow-x: auto;
  border-radius: 18px !important;
  background: rgba(10, 14, 25, .94) !important;
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.module-category-tabs::-webkit-scrollbar { display: none; }

.module-category-tabs button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
  color: #8f99ac;
  background: rgba(255, 255, 255, .025);
  font-weight: 900;
  cursor: pointer;
}

.module-category-tabs button span {
  color: #7257b6;
  font-size: 10px;
}

.module-category-tabs button:hover,
.module-category-tabs button.active {
  border-color: rgba(139, 92, 246, .44);
  color: #fff;
  background: rgba(124, 58, 237, .14);
}

.module-category-tabs button.active span { color: #c4b5fd; }

.module-category-panel { display: none; }
.module-category-panel.active { display: block; }

.module-section-card { margin-bottom: 16px; }
.module-section-number {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 24px;
  margin-bottom: 8px;
  border: 1px solid rgba(139, 92, 246, .25);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(124, 58, 237, .09);
  font-size: 10px;
  font-weight: 950;
}

.module-embed-editor {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.module-embed-editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.module-embed-editor-head h3 {
  margin: 0;
  color: #f4f6ff;
  font-size: 24px;
}

.module-embed-editor-head p {
  margin: 6px 0 0;
  color: #8993a6;
}

.module-embed-import {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  min-width: min(100%, 500px);
}

.module-embed-copy-template,
.module-add-field,
.module-upload-button {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(139, 92, 246, .32);
  border-radius: 12px;
  color: #ece8ff;
  background: rgba(124, 58, 237, .12);
  font-weight: 900;
  cursor: pointer;
}

.module-embed-copy-note {
  padding: 10px 12px;
  border: 1px solid rgba(59, 130, 246, .16);
  border-radius: 12px;
  color: #9aa6ba;
  background: rgba(59, 130, 246, .05);
  font-size: 12px;
}

.module-embed-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  gap: 16px;
  align-items: start;
}

.module-embed-controls,
.module-embed-preview-wrap {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 17px;
  background: rgba(5, 9, 18, .48);
}

.module-embed-preview-wrap {
  position: sticky;
  top: 86px;
}

.module-embed-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.module-embed-tabs::-webkit-scrollbar { display: none; }

.module-embed-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  color: #8792a6;
  background: rgba(255, 255, 255, .025);
  font-weight: 850;
  cursor: pointer;
}

.module-embed-tabs button.active {
  border-color: rgba(139, 92, 246, .4);
  color: #fff;
  background: rgba(124, 58, 237, .13);
}

.module-embed-section { display: none; }
.module-embed-section.active { display: block; }

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

.module-color-row,
.module-upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.module-color-row input[type="color"] {
  width: 52px;
  min-height: 46px;
  padding: 5px;
}

.module-upload-row { grid-template-columns: minmax(0, 1fr) auto; }
.module-upload-button {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.module-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.module-upload-button.loading { opacity: .65; pointer-events: none; }

.module-timestamp-switch { margin-top: 12px; }

.module-fields-head,
.module-field-card-head,
.module-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-fields-head span,
.module-preview-head span {
  display: block;
  margin-top: 3px;
  color: #7f8a9d;
  font-size: 11px;
}

.module-field-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.module-field-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.module-field-card-head button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  color: #c8d0df;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.module-field-card-head button.danger { color: #fda4af; }
.module-field-inline { display: flex; gap: 8px; align-items: center; color: #a7b0c0; }
.module-field-empty { padding: 20px; text-align: center; color: #737e91; }

.module-message-preview {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: #313338;
}

.module-preview-content {
  margin-bottom: 9px;
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.45;
}

.module-preview-embed {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 90px;
  padding: 13px 15px 13px 17px;
  overflow: hidden;
  border-radius: 4px;
  background: #2b2d31;
}

.module-preview-embed::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--module-embed-color, #5865f2);
}

.module-preview-author,
.module-preview-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dbdee1;
  font-size: 12px;
}

.module-preview-author img,
.module-preview-footer img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.module-preview-title {
  color: #00a8fc;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.module-preview-description,
.module-preview-field span {
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.45;
}

.module-preview-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.module-preview-field { grid-column: 1 / -1; }
.module-preview-field.inline { grid-column: span 6; }
.module-preview-field strong,
.module-preview-field span { display: block; }
.module-preview-field strong { margin-bottom: 3px; color: #f2f3f5; font-size: 12px; }

.module-preview-image {
  width: 100%;
  max-height: 300px;
  border-radius: 4px;
  object-fit: cover;
}

.module-preview-thumbnail {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 68px;
  height: 68px;
  border-radius: 4px;
  object-fit: cover;
}

.module-preview-footer { color: #b5bac1; font-size: 11px; }
.module-preview-status { color: #a78bfa !important; }

.module-embed-validation {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(34, 197, 94, .16);
  border-radius: 10px;
  color: #86efac;
  background: rgba(34, 197, 94, .05);
  font-size: 11px;
}
.module-embed-validation.error {
  border-color: rgba(244, 63, 94, .2);
  color: #fda4af;
  background: rgba(244, 63, 94, .06);
}

.module-option-list,
.module-welcome-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.module-option-card,
.module-welcome-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}

.module-option-card summary,
.module-welcome-card summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}
.module-option-card summary::-webkit-details-marker,
.module-welcome-card summary::-webkit-details-marker { display: none; }
.module-option-card summary strong,
.module-option-card summary small,
.module-welcome-card summary strong,
.module-welcome-card summary small { display: block; }
.module-option-card summary small,
.module-welcome-card summary small { margin-top: 3px; color: #828da0; }
.module-option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(139, 92, 246, .2);
  border-radius: 12px;
  background: rgba(124, 58, 237, .1);
}
.module-option-order { color: #8f9aae; font-size: 12px; }
.module-option-body,
.module-welcome-card > form {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, .065);
}

.module-welcome-card summary { grid-template-columns: 42px minmax(0, 1fr); }
.module-danger-button,
.module-danger-zone button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(244, 63, 94, .28);
  border-radius: 12px;
  color: #fda4af;
  background: rgba(244, 63, 94, .08);
  font-weight: 900;
  cursor: pointer;
}

.module-placeholder-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}
.module-placeholder-box strong { width: 100%; color: #eef1f7; }
.module-placeholder-box code {
  padding: 6px 8px;
  border-radius: 8px;
  color: #c4b5fd;
  background: rgba(124, 58, 237, .1);
}

.module-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}
.module-choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-choice-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 125px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}
.module-choice-card input { position: absolute; opacity: 0; }
.module-choice-card > span { font-size: 24px; }
.module-choice-card strong { color: #edf1f8; }
.module-choice-card small { color: #8792a6; line-height: 1.45; }
.module-choice-card:hover,
.module-choice-card.selected,
.module-choice-card:has(input:checked) {
  border-color: rgba(139, 92, 246, .48);
  background: rgba(124, 58, 237, .1);
}

.module-publish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.module-publish-card > span { color: #a78bfa; font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.module-publish-card h2 { margin: 9px 0; }
.module-publish-card p { color: #8f99ab; line-height: 1.5; }
.module-publish-card dl { display: grid; gap: 8px; margin: 16px 0; }
.module-publish-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.module-publish-card dt { color: #7f899c; }
.module-publish-card dd { margin: 0; color: #e9edf5; text-align: right; overflow-wrap: anywhere; }
.module-publish-button,
.module-secondary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  font-weight: 950;
  cursor: pointer;
}
.module-publish-button { border: 0; color: #fff; background: linear-gradient(135deg, #7c3aed, #9333ea); }
.module-secondary-button { border: 1px solid rgba(139,92,246,.3); color: #e9e4ff; background: rgba(124,58,237,.1); }
.module-secondary-button:disabled { opacity: .4; cursor: not-allowed; }

.module-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border-color: rgba(244, 63, 94, .18) !important;
}
.module-danger-zone p { margin: 4px 0 0; color: #8d97a8; }
.module-info-card { margin-top: 14px; border-color: rgba(59,130,246,.18) !important; }
.module-info-card p { margin-bottom: 0; color: #97a2b5; }

@media (max-width: 1200px) {
  .module-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-embed-workspace { grid-template-columns: 1fr; }
  .module-embed-preview-wrap { position: static; }
}

@media (max-width: 900px) {
  .module-category-tabs { top: 68px; }
  .module-stat-grid,
  .module-choice-grid,
  .module-choice-grid.three,
  .module-publish-grid,
  .module-embed-grid { grid-template-columns: 1fr; }
  .module-embed-editor-head { align-items: stretch; flex-direction: column; }
  .module-embed-import { grid-template-columns: 1fr; min-width: 0; }
  .module-danger-zone { align-items: stretch; flex-direction: column; }
  .module-danger-zone form,
  .module-danger-zone button { width: 100%; }
  .module-preview-field.inline { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .module-stat-grid { grid-template-columns: 1fr; }
  .module-category-tabs button { min-height: 42px; padding: 8px 10px; }
  .module-option-card summary { grid-template-columns: 38px minmax(0, 1fr); }
  .module-option-order { grid-column: 2; }
}

/* COBALT MODULE STUDIOS END */
