:root {
  color-scheme: dark;
  --dash-bg: #090c13;
  --dash-panel: rgba(19, 24, 36, .9);
  --dash-panel-soft: #151b29;
  --dash-border: rgba(148, 163, 184, .14);
  --dash-muted: #96a2b8;
  --dash-text: #f2f5fb;
  --dash-accent: #9273ff;
  --dash-accent-strong: #7353f5;
}

body.dashboard-page {
  margin: 0;
  min-height: 100vh;
  color: var(--dash-text);
  background:
    radial-gradient(ellipse at 76% -10%, rgba(111, 75, 255, .21), transparent 36rem),
    radial-gradient(ellipse at 5% 36%, rgba(34, 150, 209, .09), transparent 34rem),
    var(--dash-bg);
  font-family: 'DM Sans', sans-serif;
}

.dashboard-page nav:not(.dashboard-settings-nav) {
  display: none;
}

.dashboard-shell {
  min-height: 100vh;
  gap: 0;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 270px;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 16px;
  background: rgba(12, 16, 25, .86);
  border-right: 1px solid var(--dash-border);
  box-shadow: 12px 0 50px rgba(0, 0, 0, .16);
  backdrop-filter: blur(20px);
}

.dashboard-sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.mobile-sidebar-close,
.mobile-dashboard-toolbar {
  display: none;
}

.mobile-server-backdrop {
  display: none;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 32px;
}

.dashboard-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 6px 22px rgba(119, 84, 255, .24);
}

.dashboard-brand div {
  display: grid;
  line-height: 1.15;
}

.dashboard-brand strong,
.dashboard-page h1,
.dashboard-page h2,
.dashboard-page h3,
.dashboard-page h4 {
  font-family: 'Space Grotesk', sans-serif;
}

.dashboard-brand strong {
  font-size: 19px;
}

.dashboard-brand span {
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.dashboard-sidebar > h1 {
  margin: 0 8px 24px;
  font-size: 23px;
}

.dashboard-sidebar > h2 {
  margin: 0 8px 12px;
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.guild-list {
  display: grid;
  gap: 7px;
}

.dashboard-page .guild-button {
  padding: 12px 13px;
  color: #dbe2ef;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: .18s ease;
}

.dashboard-page .guild-button:hover,
.dashboard-page .guild-button.bg-blue-600 {
  color: white;
  background: linear-gradient(110deg, rgba(117, 85, 248, .2), rgba(117, 85, 248, .07)) !important;
  border-color: rgba(151, 123, 255, .24);
  transform: translateX(2px);
}

.dashboard-page .guild-button span:last-child {
  margin-top: 4px;
  color: var(--dash-muted);
}

.dashboard-main {
  min-width: 0;
  padding: 30px clamp(20px, 4vw, 58px);
}

.dashboard-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 28px;
  max-width: 1450px;
}

.dashboard-profile-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dashboard-profile-user img {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(157, 132, 255, .7);
  border-radius: 50%;
}

.dashboard-profile-user h2 {
  margin: 0;
  font-size: 17px;
}

.dashboard-profile-user p {
  margin: 3px 0 0;
  color: var(--dash-muted);
  font-size: 12px;
}

.dashboard-page a {
  color: #baadff;
}

.dashboard-card {
  max-width: 1450px;
  margin: 0 auto 24px;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(145deg, rgba(20, 26, 39, .94), rgba(14, 18, 28, .94)) !important;
  border: 1px solid var(--dash-border);
  border-radius: 21px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .27);
}

.dashboard-card > div:first-child {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-card > div:first-child h3 {
  margin: 0;
  font-size: 20px;
}

.dashboard-page button,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  font: inherit;
}

.dashboard-page button {
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.dashboard-page button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.dashboard-page button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.dashboard-page .bg-blue-600,
.dashboard-page button.bg-blue-600 {
  background: linear-gradient(120deg, var(--dash-accent-strong), #8c68ff) !important;
  border: 1px solid rgba(194, 179, 255, .2);
  box-shadow: 0 6px 18px rgba(115, 83, 245, .16);
}

.dashboard-page .bg-gray-600,
.dashboard-page button.bg-gray-600,
.dashboard-page button.bg-gray-700,
.dashboard-page .bg-gray-700 {
  background-color: var(--dash-panel-soft) !important;
}

.dashboard-page button.bg-red-700 {
  background: rgba(190, 54, 75, .72) !important;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  gap: 28px;
  align-items: start;
}

.dashboard-settings-content {
  min-width: 0;
}

.dashboard-settings-nav {
  display: grid;
  position: sticky;
  top: 16px;
  align-self: start;
  height: max-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 3px;
  padding: 3px 12px 3px 0;
  border-right: 1px solid var(--dash-border);
  scrollbar-gutter: stable;
}

.dashboard-settings-nav p {
  margin: 18px 9px 5px;
  color: #77839a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.dashboard-settings-nav p:first-child {
  margin-top: 3px;
}

.dashboard-page .settings-section-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  color: #aab4c7;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
}

.dashboard-page .settings-section-button span {
  width: 18px;
  color: #929bb0;
  font-size: 15px;
  text-align: center;
}

.dashboard-page .settings-section-button:hover,
.dashboard-page .settings-section-button.active {
  color: white;
  background: rgba(131, 101, 255, .13);
  border-color: rgba(151, 123, 255, .2);
}

.dashboard-page .settings-section-button.active span {
  color: #b8a7ff;
}

.mobile-settings-picker-label,
.mobile-settings-picker {
  display: none;
}

.permission-lock {
  max-width: 760px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(70, 34, 52, .42), rgba(24, 20, 34, .78));
  border: 1px solid rgba(248, 113, 113, .28);
  border-radius: 16px;
}

.permission-lock-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  place-items: center;
  color: #fecaca;
  background: rgba(239, 68, 68, .16);
  border: 1px solid rgba(248, 113, 113, .3);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
}

.permission-lock h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
}

.permission-lock p {
  margin: 0 0 14px;
  color: var(--dash-muted);
  line-height: 1.6;
}

.permission-lock ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.permission-lock li {
  padding: 10px 12px;
  color: #fecaca;
  background: rgba(8, 12, 20, .45);
  border: 1px solid rgba(248, 113, 113, .16);
  border-radius: 9px;
  font-size: 13px;
}

.dashboard-page .settings-section {
  min-width: 0;
  padding: 4px 0 20px;
  animation: dashIn .2s ease both;
}

.dashboard-page .settings-section h4 {
  margin: 0 0 10px;
  font-size: 23px;
}

.dashboard-page .settings-section > p {
  max-width: 780px;
  color: var(--dash-muted);
  line-height: 1.65;
}

.dashboard-page .settings-section > .feature-description {
  max-width: 840px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  color: #aeb9ce;
  border-bottom: 1px solid var(--dash-border);
  line-height: 1.7;
}

.dashboard-premium-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 620px;
  margin: 16px 0 22px;
  padding: 15px 17px;
  border: 1px solid rgba(250, 204, 21, .4);
  border-radius: 12px;
  color: #fef3c7;
  background: linear-gradient(120deg, rgba(161, 98, 7, .28), rgba(113, 63, 18, .16));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.dashboard-premium-notice.hidden {
  display: none;
}

.dashboard-premium-notice-icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #422006;
  background: #facc15;
  font-size: 14px;
  font-weight: 900;
}

.dashboard-premium-notice strong {
  color: #fde68a;
  font-size: 14px;
}

.dashboard-premium-notice p {
  margin: 4px 0 8px;
  color: #fef3c7;
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-premium-notice a {
  color: #fde047 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-premium-notice a:hover {
  color: #fef9c3 !important;
}

.editme-preview-wrap {
  max-width: 560px;
  margin: 22px 0 26px;
}

.editme-preview-label {
  display: block;
  margin-bottom: 9px;
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.editme-profile-preview {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .17);
  border-radius: 14px;
  background: #23262d;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .2);
}

.editme-preview-banner {
  height: 86px;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(196, 181, 253, .54), transparent 32%),
    linear-gradient(120deg, #3c3174, #7155c5 58%, #37a6a0);
}

.editme-preview-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 108px;
  padding: 0 20px 18px;
}

.editme-preview-body > img {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  margin-top: -28px;
  border: 6px solid #23262d;
  border-radius: 50%;
  background: #15171b;
  object-fit: cover;
}

.editme-preview-identity {
  min-width: 0;
  padding-top: 13px;
}

.editme-preview-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.editme-preview-name-row strong {
  overflow-wrap: anywhere;
  color: #f2f3f5;
  font-size: 17px;
}

.editme-bot-badge {
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  background: #5865f2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.editme-preview-bio {
  margin: 5px 0 0;
  color: #b5bac1;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.dashboard-home-heading {
  margin-bottom: 24px;
}

.dashboard-home-heading .dashboard-home-eyebrow,
.dashboard-public-copy .dashboard-home-eyebrow {
  display: inline-block;
  color: #a995ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.dashboard-page .dashboard-home-heading h4 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.dashboard-page .dashboard-home-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--dash-muted);
  line-height: 1.7;
}

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

.dashboard-page .settings-section .dashboard-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  grid-template-rows: auto 1fr;
  min-height: 146px;
  padding: 17px;
  color: var(--dash-text);
  text-align: left;
  background: linear-gradient(145deg, rgba(26, 33, 49, .95), rgba(14, 19, 30, .96));
  border: 1px solid var(--dash-border);
  border-radius: 15px;
  box-shadow: none;
  gap: 10px 12px;
}

.dashboard-page .settings-section .dashboard-feature-card:hover {
  background: linear-gradient(145deg, rgba(43, 39, 71, .98), rgba(18, 22, 35, .98));
  border-color: rgba(151, 123, 255, .45);
  transform: translateY(-2px);
}

.dashboard-feature-icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #c3b4ff;
  background: rgba(131, 101, 255, .14);
  border: 1px solid rgba(151, 123, 255, .2);
  border-radius: 12px;
  font-size: 19px;
}

.dashboard-feature-card > strong {
  align-self: center;
  font-size: 15px;
}

.dashboard-feature-description {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.dashboard-feature-arrow {
  align-self: center;
  justify-self: end;
  color: #b8a7ff;
  font-size: 18px;
}

.dashboard-page .settings-section code {
  padding: 2px 5px;
  color: #d2c8ff;
  background: rgba(133, 104, 255, .13);
  border-radius: 5px;
}

.dashboard-page input:not([type="checkbox"]):not([type="color"]),
.dashboard-page select,
.dashboard-page textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #edf1fa !important;
  background: #0d121d !important;
  border: 1px solid var(--dash-border) !important;
  border-radius: 10px !important;
  outline: none;
}

.dashboard-page input[type="color"] {
  height: 38px;
  vertical-align: middle;
  background: transparent;
  border: 0;
}

.dashboard-page input:focus,
.dashboard-page select:focus,
.dashboard-page textarea:focus {
  border-color: rgba(157, 132, 255, .72) !important;
  box-shadow: 0 0 0 3px rgba(126, 95, 248, .12);
}

.dashboard-page label {
  color: #c5cede;
  font-size: 12px;
}

.dashboard-page form {
  max-width: 720px;
}

.dashboard-page form button,
.dashboard-page .settings-section button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-page .settings-section > div[id$="-list"],
.dashboard-page #custom-commands,
.dashboard-page #join-roles {
  margin-top: 16px;
}

.dashboard-page .settings-section .border {
  background: rgba(8, 12, 20, .42);
  border-color: var(--dash-border) !important;
  border-radius: 12px !important;
}

.dashboard-page .text-gray-300,
.dashboard-page .text-gray-400 {
  color: var(--dash-muted) !important;
}

#status {
  max-width: 1450px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
}

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

@media (max-width: 900px) {
  .dashboard-sidebar {
    width: 220px;
  }

  .dashboard-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    z-index: 41;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 330px);
    height: 100vh;
    height: 100dvh;
    padding: 20px 16px;
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 24px 0 70px rgba(0, 0, 0, .42);
  }

  .mobile-server-list-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .mobile-server-list-open {
    overflow: hidden;
  }

  .mobile-server-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: block;
    visibility: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(3, 5, 10, .68);
    border: 0;
    opacity: 0;
    transition: opacity .24s ease, visibility .24s ease;
  }

  .mobile-server-list-open .mobile-server-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .mobile-sidebar-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--dash-text);
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -5px 0 20px;
    color: var(--dash-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
  }

  .mobile-server-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    color: white;
    background: rgba(131, 101, 255, .16);
    border: 1px solid rgba(151, 123, 255, .25);
    border-radius: 11px;
    font-size: 13px;
  }

  .dashboard-brand {
    margin: 0;
  }

  .dashboard-sidebar-header {
    align-items: center;
    margin-bottom: 26px;
  }

  .dashboard-sidebar > h1,
  .dashboard-sidebar > h2 {
    display: none;
  }

  .guild-list {
    display: grid;
    max-height: calc(100dvh - 190px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dashboard-page .guild-button {
    width: 100%;
    min-width: 0;
  }

  .dashboard-main {
    padding: 17px 12px 28px;
  }

  .dashboard-card {
    padding: 17px 13px;
    border-radius: 15px;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 20px;
  }

  .dashboard-settings-nav {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-height: none;
    overflow: visible;
    gap: 7px;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--dash-border);
  }

  .dashboard-settings-nav p {
    display: none;
  }

  .dashboard-page .settings-section-button {
    display: none;
  }

  .mobile-settings-picker-label {
    display: block;
    color: var(--dash-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .dashboard-page select.mobile-settings-picker {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    font-size: 15px;
  }

  .dashboard-profile {
    gap: 12px;
    align-items: flex-start;
  }

  .dashboard-profile > a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .dashboard-profile-user {
    min-width: 0;
  }

  .dashboard-profile-user h2 {
    overflow-wrap: anywhere;
  }

  .dashboard-page .settings-section > div,
  .dashboard-page .settings-section form,
  .dashboard-page .settings-section [class*="flex"] {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-page .settings-section button {
    max-width: 100%;
    white-space: normal;
  }

  .dashboard-page .settings-section textarea {
    min-width: 0;
  }

  .dashboard-page .settings-section .flex.gap-2,
  .dashboard-page .settings-section .flex.gap-3,
  .dashboard-page .settings-section .flex.flex-wrap {
    flex-wrap: wrap;
  }

  .dashboard-page .settings-section .border {
    overflow-wrap: anywhere;
  }

  .dashboard-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-page .settings-section .dashboard-feature-card {
    min-height: 160px;
    padding: 13px;
    gap: 9px;
  }

  .dashboard-feature-description {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .dashboard-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .settings-section .dashboard-feature-card {
    min-height: 0;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
  }

  .dashboard-feature-description {
    grid-column: 2 / -1;
  }
}

body.dashboard-public-page {
  min-height: 100vh;
}

.dashboard-public {
  width: min(1160px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.dashboard-public-header,
.dashboard-public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-public-header {
  min-height: 94px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-public-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.dashboard-public-login {
  padding: 10px 15px;
  color: #e4dcff !important;
  background: rgba(131, 101, 255, .12);
  border: 1px solid rgba(151, 123, 255, .27);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-public-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(34px, 7vw, 84px);
  padding: clamp(58px, 10vh, 112px) 0;
}

.dashboard-public-copy h1 {
  margin: 18px 0;
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .98;
}

.dashboard-public-copy h1 span {
  color: #a995ff;
}

.dashboard-public-copy > p {
  max-width: 490px;
  margin-bottom: 27px;
  color: var(--dash-muted);
  font-size: 16px;
  line-height: 1.75;
}

.dashboard-public-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 19px;
  color: white !important;
  background: linear-gradient(120deg, var(--dash-accent-strong), #8c68ff);
  border: 1px solid rgba(194, 179, 255, .24);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(115, 83, 245, .28);
  font-weight: 700;
  text-decoration: none;
}

.dashboard-public-copy > small {
  display: block;
  margin-top: 14px;
  color: #7f8ba1;
  font-size: 11px;
}

.dashboard-public-preview {
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(145deg, rgba(23, 29, 44, .97), rgba(13, 18, 29, .98));
  border: 1px solid rgba(157, 132, 255, .24);
  border-radius: 21px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35), 0 0 60px rgba(111, 75, 255, .12);
  transform: rotate(1.2deg);
}

.dashboard-preview-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-preview-top > span {
  width: 7px;
  height: 7px;
  background: #525d72;
  border-radius: 50%;
}

.dashboard-preview-top > span:first-child {
  background: #ff6b72;
}

.dashboard-preview-top > span:nth-child(2) {
  background: #ffc56a;
}

.dashboard-preview-top > span:nth-child(3) {
  background: #61d6a6;
}

.dashboard-preview-top strong {
  margin-left: auto;
  color: #8491a7;
  font-size: 8px;
  letter-spacing: .13em;
}

.dashboard-preview-server {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 2px;
}

.dashboard-preview-server-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: linear-gradient(140deg, #8d70ff, #426fe8);
  border-radius: 13px;
  font-weight: 800;
}

.dashboard-preview-server > div {
  display: grid;
  gap: 4px;
}

.dashboard-preview-server strong {
  font-size: 13px;
}

.dashboard-preview-server small,
.dashboard-preview-grid small {
  color: var(--dash-muted);
  font-size: 10px;
}

.dashboard-preview-status {
  margin-left: auto;
  color: #62d6a3;
  font-size: 8px;
  letter-spacing: .08em;
}

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

.dashboard-preview-grid > div {
  display: grid;
  gap: 7px;
  padding: 15px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
}

.dashboard-preview-grid > div > span {
  color: #b8a7ff;
  font-size: 17px;
}

.dashboard-preview-grid strong {
  font-size: 12px;
}

.dashboard-public-footer {
  min-height: 64px;
  color: #7f8ba1;
  border-top: 1px solid var(--dash-border);
  font-size: 11px;
}

@media (max-width: 760px) {
  .dashboard-public-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    padding: 54px 0;
  }

  .dashboard-public-preview {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 420px) {
  .dashboard-public {
    padding: 0 17px;
  }

  .dashboard-public-header {
    min-height: 76px;
  }

  .dashboard-public-login {
    padding: 9px 10px;
    font-size: 11px;
  }

  .dashboard-public-copy h1 {
    font-size: 48px;
  }

  .dashboard-public-copy > p {
    font-size: 14px;
  }

  .dashboard-preview-grid > div {
    padding: 12px;
  }
}

/* ---------- Maintenance mode ---------- */
.dashboard-page .settings-section-button.in-maintenance::after {
  content: '🔧';
  margin-left: auto;
  font-size: 11px;
  opacity: .85;
}

.dashboard-page .dashboard-feature-card.in-maintenance {
  opacity: .6;
}

.dashboard-page .dashboard-feature-card.in-maintenance strong::after {
  content: ' 🔧 maintenance';
  color: #fbbf24;
  font-size: 11px;
  font-weight: 500;
}

.maintenance-lock {
  background: linear-gradient(145deg, rgba(74, 52, 20, .42), rgba(24, 20, 34, .78));
  border-color: rgba(251, 191, 36, .32);
}

.maintenance-lock .permission-lock-icon {
  color: #fde68a;
  background: rgba(245, 158, 11, .16);
  border-color: rgba(251, 191, 36, .34);
  font-size: 18px;
}

.maintenance-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(8, 12, 20, .45);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
}

.maintenance-admin-bar.hidden {
  display: none;
}

.maintenance-admin-bar.active {
  background: rgba(74, 52, 20, .32);
  border-color: rgba(251, 191, 36, .4);
}

.maintenance-admin-bar strong {
  color: #fff;
  font-size: 13px;
}

.maintenance-admin-bar p {
  margin: 4px 0 0;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.5;
}

.maintenance-admin-bar button {
  flex-shrink: 0;
  padding: 8px 14px;
  color: #1f1300;
  background: #fbbf24;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.maintenance-admin-bar.active button {
  color: #fff;
  background: #16a34a;
}

.maintenance-admin-bar button:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 640px) {
  .maintenance-admin-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
