/* --------------------------------------------------------------------------
   V6 module designer pass: flatter SaaS layout, readable Discord selectors,
   no nested accordion/card maze.
   -------------------------------------------------------------------------- */
body.module-designer-v6 {
  scrollbar-color: rgba(112, 118, 255, .75) rgba(12, 16, 28, .55);
}
body.module-designer-v6::-webkit-scrollbar,
body.module-designer-v6 *::-webkit-scrollbar { width: 10px; height: 10px; }
body.module-designer-v6::-webkit-scrollbar-track,
body.module-designer-v6 *::-webkit-scrollbar-track { background: rgba(12, 16, 28, .55); border-radius: 999px; }
body.module-designer-v6::-webkit-scrollbar-thumb,
body.module-designer-v6 *::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(112, 118, 255, .92), rgba(130, 96, 255, .74)); border-radius: 999px; border: 2px solid rgba(12, 16, 28, .75); }

body.module-designer-v6 .module-page {
  width: min(1480px, calc(100vw - 48px));
  max-width: none;
  margin-inline: auto;
}

body.module-designer-v6 .module-page .guild-layout {
  display: block;
}

body.module-designer-v6 .module-page .guild-sidebar {
  display: none;
}

body.module-designer-v6 .module-page .guild-main {
  width: 100%;
  max-width: none;
}

body.module-designer-v6 .module-page-hero,
body.module-designer-v6 .module-status-strip,
body.module-designer-v6 .module-command-center {
  border: 1px solid rgba(119, 132, 255, .18);
  background: linear-gradient(180deg, rgba(20, 25, 42, .82), rgba(14, 18, 31, .78));
  box-shadow: none;
}

body.module-designer-v6 .module-page-hero {
  padding: 26px 30px;
  border-radius: 28px;
  margin-bottom: 16px;
}

body.module-designer-v6 .module-page-title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}

body.module-designer-v6 .module-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border-radius: 22px;
  margin-bottom: 14px;
}

body.module-designer-v6 .module-status-strip p {
  max-width: 920px;
}

body.module-designer-v6 .module-command-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 22px;
  margin-bottom: 18px;
}

body.module-designer-v6 .module-command-main h2 {
  font-size: clamp(22px, 2vw, 32px);
  margin: 4px 0 6px;
}

body.module-designer-v6 .module-page .panel-card {
  padding: 0;
  overflow: visible;
  border-radius: 30px;
  border: 1px solid rgba(119, 132, 255, .2);
  background:
    radial-gradient(circle at 16% 0%, rgba(112, 118, 255, .08), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 38, .9), rgba(12, 16, 28, .96));
  box-shadow: none;
}

body.module-designer-v6 .module-form-modern {
  padding: 26px;
}

body.module-designer-v6 .module-form-modern > .designer-section,
body.module-designer-v6 .module-form-modern .designer-section {
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid rgba(140, 151, 255, .12);
  border-radius: 0;
  background: transparent;
}

body.module-designer-v6 .module-form-modern > .designer-section:first-child,
body.module-designer-v6 .module-form-modern .designer-section.is-primary {
  padding-top: 0;
}

body.module-designer-v6 .module-form-modern .designer-section:last-of-type {
  border-bottom: 0;
}

body.module-designer-v6 .module-form-modern .section-header {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

body.module-designer-v6 .module-form-modern .section-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: -.015em;
}

body.module-designer-v6 .module-form-modern .section-header h3::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #7378ff;
  box-shadow: 0 0 0 5px rgba(115, 120, 255, .12);
}

body.module-designer-v6 .module-form-modern .section-header p {
  margin: 0;
  max-width: 760px;
  color: rgba(226, 232, 255, .74);
  line-height: 1.55;
}

body.module-designer-v6 .module-form-modern .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.module-designer-v6 .module-form-modern label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.module-designer-v6 .module-form-modern label > span,
body.module-designer-v6 .module-form-modern .switch-row > span,
body.module-designer-v6 .module-form-modern .coordinate-row > strong {
  color: rgba(246, 248, 255, .94);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

body.module-designer-v6 .module-form-modern input:not([type='checkbox']):not([type='color']),
body.module-designer-v6 .module-form-modern textarea,
body.module-designer-v6 .module-form-modern select,
body.module-designer-v6 .module-form-modern .v-select__button {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(133, 146, 255, .18);
  border-radius: 16px;
  background: rgba(8, 12, 24, .62);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

body.module-designer-v6 .module-form-modern input:not([type='checkbox']):not([type='color']),
body.module-designer-v6 .module-form-modern textarea {
  padding: 0 16px;
}

body.module-designer-v6 .module-form-modern textarea {
  padding-block: 14px;
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

body.module-designer-v6 .module-form-modern input:focus,
body.module-designer-v6 .module-form-modern textarea:focus,
body.module-designer-v6 .module-form-modern .v-select.is-open .v-select__button {
  border-color: rgba(126, 134, 255, .78);
  background: rgba(12, 17, 31, .9);
}

body.module-designer-v6 .module-form-modern code {
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(115, 120, 255, .12);
  color: #cfd4ff;
}

body.module-designer-v6 .module-form-modern .switch-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border: 1px solid rgba(133, 146, 255, .16);
  border-radius: 16px;
  background: rgba(8, 12, 24, .42);
}

body.module-designer-v6 .module-form-modern input[type='checkbox'] {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(82, 91, 126, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  position: relative;
  cursor: pointer;
}

body.module-designer-v6 .module-form-modern input[type='checkbox']::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 4px;
  border-radius: 999px;
  background: #fff;
  transition: transform .18s ease;
}

body.module-designer-v6 .module-form-modern input[type='checkbox']:checked {
  background: #7378ff;
}

body.module-designer-v6 .module-form-modern input[type='checkbox']:checked::after {
  transform: translateX(19px);
}

body.module-designer-v6 .v-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

body.module-designer-v6 .v-select__native {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 100% !important;
  height: 100% !important;
}

body.module-designer-v6 .v-select__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-align: left;
  cursor: pointer;
}

body.module-designer-v6 .v-select__button .v-select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.module-designer-v6 .v-select__button small {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(115, 120, 255, .12);
  color: rgba(220, 224, 255, .72);
  font-size: 11px;
  font-weight: 800;
}

body.module-designer-v6 .v-select__button.is-empty .v-select__value {
  color: rgba(226, 232, 255, .6);
}

body.module-designer-v6 .v-select__chevron {
  color: rgba(226, 232, 255, .72);
  transition: transform .18s ease;
}

body.module-designer-v6 .v-select.is-open .v-select__chevron {
  transform: rotate(180deg);
}

body.module-designer-v6 .v-select__menu {
  position: absolute;
  z-index: 90;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  overflow: hidden;
  border: 1px solid rgba(133, 146, 255, .24);
  border-radius: 20px;
  background: rgba(10, 14, 26, .98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

body.module-designer-v6 .v-select.is-open .v-select__menu {
  display: block;
}

body.module-designer-v6 .v-select__search {
  display: none;
  width: calc(100% - 20px);
  margin: 10px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(133, 146, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  outline: none;
}

body.module-designer-v6 .v-select__menu.has-search .v-select__search {
  display: block;
}

body.module-designer-v6 .v-select__list {
  max-height: 330px;
  overflow: auto;
  padding: 8px;
}

body.module-designer-v6 .v-select__option {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(245, 247, 255, .9);
  text-align: left;
  cursor: pointer;
}

body.module-designer-v6 .v-select__option:hover,
body.module-designer-v6 .v-select__option.is-selected {
  background: rgba(115, 120, 255, .14);
  color: #fff;
}

body.module-designer-v6 .v-select__option-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(115, 120, 255, .12);
  color: #cfd4ff;
  font-size: 12px;
  font-weight: 900;
}

body.module-designer-v6 .v-select__option-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

body.module-designer-v6 .v-select__empty {
  padding: 16px;
  color: rgba(226, 232, 255, .62);
  text-align: center;
}

body.module-designer-v6 .welcome-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
  gap: 26px;
  align-items: start;
}

body.module-designer-v6 .welcome-builder-main {
  min-width: 0;
}

body.module-designer-v6 .welcome-preview-panel {
  position: sticky;
  top: 112px;
  min-height: auto;
  border-radius: 26px;
  border: 1px solid rgba(133, 146, 255, .2);
  background: linear-gradient(180deg, rgba(9, 13, 25, .96), rgba(8, 12, 22, .9));
  padding: 18px;
}

body.module-designer-v6 .welcome-preview-stage {
  min-height: 430px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
}

body.module-designer-v6 .welcome-preview {
  padding: 16px;
}

body.module-designer-v6 .canvas-card-preview {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  transform: none !important;
}

body.module-designer-v6 .welcome-coordinates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.module-designer-v6 .coordinate-row {
  display: grid;
  grid-template-columns: 1fr 86px 86px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 12, 24, .42);
  border: 1px solid rgba(133, 146, 255, .12);
}

body.module-designer-v6 .form-actions,
body.module-designer-v6 .module-test-form {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 26px 26px;
}

body.module-designer-v6 .module-form-modern .form-actions {
  padding: 26px 0 0;
}

body.module-designer-v6 .btn,
body.module-designer-v6 .vg-btn,
body.module-designer-v6 .module-status-link {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  body.module-designer-v6 .module-page { width: min(100% - 28px, 980px); }
  body.module-designer-v6 .welcome-builder { grid-template-columns: 1fr; }
  body.module-designer-v6 .welcome-preview-panel { position: relative; top: auto; }
}

@media (max-width: 760px) {
  body.module-designer-v6 .module-page { width: min(100% - 18px, 100%); }
  body.module-designer-v6 .module-command-center,
  body.module-designer-v6 .module-status-strip { align-items: stretch; flex-direction: column; }
  body.module-designer-v6 .module-form-modern { padding: 18px; }
  body.module-designer-v6 .module-form-modern .section-header,
  body.module-designer-v6 .module-form-modern .form-grid,
  body.module-designer-v6 .welcome-coordinates { grid-template-columns: 1fr; }
  body.module-designer-v6 .coordinate-row { grid-template-columns: 1fr; }
}

