/* =========================
   GLOBAL
   ========================= */

:root {
  --bg: #050713;
  --bg2: #080d1f;

  --text: #f7f9ff;
  --muted: #a9b2ca;

  --line: rgba(255,255,255,.13);

  --glass: rgba(255,255,255,.075);
  --glass2: rgba(255,255,255,.115);

  --brand: #7c5cff;
  --cyan: #22d3ee;

  --green: #36d399;
  --yellow: #fbbf24;
  --red: #fb7185;

  --radius: 34px;

  --shadow:
    0 32px 110px rgba(0,0,0,.48);

  --max: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(circle at 18% -12%, rgba(124,92,255,.52), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(34,211,238,.36), transparent 36%),
    radial-gradient(circle at 50% 55%, rgba(124,92,255,.14), transparent 40%),
    linear-gradient(180deg, #050713 0%, #070b18 45%, #04060d 100%);

  overflow-x: hidden;
}

body::after {
  content: "";

  position: fixed;

  width: 520px;
  height: 520px;

  left: var(--mx, 50%);
  top: var(--my, 50%);

  transform: translate(-50%, -50%);

  background:
    radial-gradient(circle, rgba(124,92,255,.16), transparent 62%);

  pointer-events: none;

  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;
}

/* =========================
   GRID BACKGROUND
   ========================= */

.gridBg {
  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: .18;

  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);

  background-size: 46px 46px;

  mask-image:
    radial-gradient(circle at center, black, transparent 72%);
}

/* =========================
   NAV
   ========================= */

.nav {
  position: sticky;
  top: 0;

  z-index: 50;

  background: rgba(5,7,19,.72);

  backdrop-filter: blur(24px);

  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);

  margin: 0 auto;

  padding:
    18px
    42px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;

  gap: 12px;

  font-weight: 900;

  letter-spacing: -.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;

  border-radius: 14px;

  display: grid;
  place-items: center;

  background:
    linear-gradient(135deg, var(--brand), var(--cyan));

  box-shadow:
    0 14px 34px rgba(124,92,255,.38);
}

.nav-links {
  display: flex;
  align-items: center;

  gap: 30px;

  color: var(--muted);

  font-size: 14px;
}

.nav-links a:hover {
  color: white;
}

/* =========================
   MAIN WRAP
   ========================= */

.wrap {
  max-width: var(--max);

  margin: 0 auto;

  padding:
    58px
    42px
    100px;
}

/* =========================
   TOP
   ========================= */

.top,
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 36px;

  margin-bottom: 46px;
}

h1 {
  margin: 0;

  font-size:
    clamp(42px, 6vw, 84px);

  letter-spacing: -.065em;

  line-height: .92;
}

.sub {
  margin-top: 18px;

  color: var(--muted);

  line-height: 1.75;

  max-width: 860px;
}

.actions {
  display: flex;
  gap: 16px;

  flex-wrap: wrap;
}

/* =========================
   BUTTONS
   ========================= */

.btn,
button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border: 1px solid var(--line);

  border-radius: 999px;

  padding:
    16px
    28px;

  min-height: 56px;

  background: rgba(255,255,255,.06);

  color: white;

  font-size: 14px;
  font-weight: 900;

  letter-spacing: .04em;

  cursor: pointer;

  transition: .25s ease;
}

.btn:hover,
button:hover,
.primary:hover,
.secondary:hover {
  transform: translateY(-2px);

  background: rgba(255,255,255,.12);
}

.btn.primary,
button.primary,
.primary {
  border: 0;

  background:
    linear-gradient(135deg, var(--brand), var(--cyan));

  box-shadow:
    0 14px 40px rgba(124,92,255,.32);
}

.secondary {
  background: rgba(255,255,255,.06);
}

/* =========================
   GRID
   ========================= */

.cards,
.grid,
.channelGrid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 34px;
}

/* =========================
   CARD
   ========================= */

.card {
  border: 1px solid var(--line);

  background: var(--glass);

  border-radius: var(--radius);

  padding: 52px;

  box-shadow: var(--shadow);

  backdrop-filter: blur(18px);

  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);

  background: var(--glass2);

  border-color: rgba(255,255,255,.22);
}

.cardInner {
  display: flex;
  flex-direction: column;

  gap: 24px;
}

.serverCard .card,
.channelCard .card {
  min-height: 260px;
}

.cardhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 30px;
}

/* =========================
   TEXT
   ========================= */

.name {
  font-weight: 950;

  font-size: 28px;

  letter-spacing: -.03em;
}

.channelTag {
  font-weight: 950;

  font-size: 28px;

  letter-spacing: -.03em;

  margin-bottom: 12px;
}

.cidLine {
  color: rgba(255,255,255,.48);

  font-size: 15px;

  margin-top: 8px;
}

.channelSnippet {
  margin-top: 22px;

  color: rgba(255,255,255,.76);

  line-height: 1.75;

  min-height: 58px;
}

.meta,
.tags,
.channelStats {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  color: var(--muted);

  font-size: 12px;

  margin-top: 16px;
}

.tiny {
  color: rgba(255,255,255,.48);

  font-size: 13px;

  line-height: 1.7;

  margin-top: 16px;
}

/* =========================
   PILLS
   ========================= */

.tag,
.rightPill,
.pill {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  border: 1px solid var(--line);

  border-radius: 999px;

  padding:
    11px
    18px;

  background: rgba(255,255,255,.07);

  color: rgba(255,255,255,.82);

  font-size: 12px;
  font-weight: 850;

  text-transform: uppercase;

  letter-spacing: .05em;
}

.rightPill {
  color: #071018;

  background:
    linear-gradient(135deg, #d9fbff, #e9ddff);

  border: 0;
}

/* =========================
   TOOLBAR
   ========================= */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  margin:
    34px
    0
    44px;
}

/* =========================
   INPUTS
   ========================= */

.search,
input:not([type="range"]),
textarea,
select {
  width: 100%;

  border: 1px solid var(--line);

  border-radius: 24px;

  background: rgba(0,0,0,.20);

  color: var(--text);

  padding:
    20px
    22px;

  outline: none;

  font: inherit;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.search:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(124,92,255,.55);

  box-shadow:
    0 0 0 4px rgba(124,92,255,.12);
}

textarea {
  resize: vertical;

  min-height: 180px;
}

label {
  display: block;

  margin:
    28px
    0
    12px;

  color: rgba(255,255,255,.68);

  font-size: 12px;
  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: .08em;
}

/* =========================
   FINAL PREVIEW POLISH
   ========================= */

.split{
  display:grid;

  grid-template-columns:
    minmax(760px, 1fr)
    minmax(680px, .92fr);

  gap: 56px;

  align-items:start;
}

/* =========================
   PREVIEW
   ========================= */

.previewWrap{
  position: sticky;

  top: 96px;

  width: 100%;

  max-width: 760px;

  padding-left: 0;
}

.previewTitle{
  font-size: 12px;
  font-weight: 900;

  letter-spacing: .08em;
  text-transform: uppercase;

  color: rgba(255,255,255,.62);

  margin-bottom: 16px;
}

```css id="4tdwx2"
/* =========================
   DISCORD PREVIEW
   ========================= */

.embedMock{
  width:100%;

  border-radius:32px;

  overflow:hidden;

  display:grid;

  grid-template-columns:
    5px
    1fr;

  background:
    linear-gradient(
      180deg,
      #2b2d31 0%,
      #26282d 100%
    );

  border:
    1px solid rgba(255,255,255,.08);

  box-shadow:
    0 30px 90px rgba(0,0,0,.42);

  height:auto;

  aspect-ratio:auto;
}

.embedBar{
  background:#5865F2;
}

.embedBody{
  padding:34px;

  font-size:16px;

  line-height:1.85;

  color:#e5e7eb;

  width:100%;

  display:flex;

  flex-direction:column;

  overflow:visible;

  overflow-wrap:break-word;

  word-break:break-word;
}

.embedBody strong{
  color:white;
}

.embedFields{
  display:grid;

  gap:26px;

  margin-top:24px;
}

.fieldName{
  font-weight:900;

  color:white;

  margin-bottom:6px;
}

.fieldValue{
  color:#dbdee1;
}

.embedFooter{
  margin-top:24px;

  padding-top:18px;

  border-top:
    1px solid rgba(255,255,255,.08);

  color:#b5bac1;

  font-size:12px;

  line-height:1.6;
}
```


/* =========================
   AUTO SCALING PREVIEW
   ========================= */

.previewWrap{
  width:100%;

  min-width:0;

  max-width:100%;
}

.embedMock{
  width:100%;

  height:auto;

  aspect-ratio:1 / 1;

  max-height:78vh;
}

/* ultra wide monitors */
@media (min-width:1800px){

  .split{
    grid-template-columns:
      minmax(820px, 1fr)
      minmax(720px, .95fr);
  }

  .embedMock{
    aspect-ratio:1 / 1.08;
  }
}

/* medium screens */
@media (max-width:1600px){

  .split{
    grid-template-columns:
      minmax(720px, 1fr)
      minmax(500px, .75fr);
  }

  .embedMock{
    min-height:360px;
  }
}

/* smaller desktop */
@media (max-width:1350px){

  .split{
    grid-template-columns:1fr;
  }

  .previewWrap{
    position:static;

    max-width:100%;

    margin-top:24px;

    padding-left:0;
  }

  .embedMock{
    aspect-ratio:16 / 9;

    min-height:320px;

    max-height:none;
  }
}

/* =========================
   TOGGLES
   ========================= */

.timerRow,
.msgRow {
  display: flex;
  align-items: center;

  gap: 18px;

  margin:
    18px
    0;
}

.timerPill,
.msgPill,
.minPill,
.msgPillNum {
  display: flex;
  align-items: center;

  gap: 12px;

  border: 1px solid var(--line);

  border-radius: 22px;

  padding:
    16px
    18px;

  background: rgba(0,0,0,.20);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: .05em;
}

.toggle input {
  display: none;
}

.toggleTrack {
  width: 52px;
  height: 30px;

  border-radius: 999px;

  background: rgba(255,255,255,.16);

  display: block;

  padding: 3px;

  transition: .2s ease;
}

.toggleKnob {
  width: 24px;
  height: 24px;

  border-radius: 50%;

  display: block;

  background: white;

  transition: .2s ease;
}

.toggle input:checked + .toggleTrack {
  background:
    linear-gradient(135deg, var(--brand), var(--cyan));
}

.toggle input:checked + .toggleTrack .toggleKnob {
  transform: translateX(22px);
}

/* =========================
   DROPDOWN
   ========================= */

.dd {
  position: relative;
}

.ddBtn {
  width: 100%;

  justify-content: space-between;

  border-radius: 22px;

  background: rgba(0,0,0,.20);
}

.ddMenu {
  display: none;

  position: absolute;

  z-index: 20;

  left: 0;
  right: 0;

  top: calc(100% + 8px);

  border: 1px solid var(--line);

  border-radius: 22px;

  background: #101527;

  overflow: hidden;

  box-shadow: var(--shadow);
}

.dd[data-open="1"] .ddMenu {
  display: block;
}

.ddOpt {
  padding:
    16px
    18px;

  cursor: pointer;
}

.ddOpt:hover,
.ddOpt[aria-selected="true"] {
  background: rgba(124,92,255,.22);
}

/* =========================
   LOGIN PAGE
   ========================= */

.login-shell{
  min-height:100vh;

  display:grid;
  place-items:center;

  padding:48px;

  position:relative;

  overflow:hidden;
}

.login-panel{
  width:100%;
  max-width:760px;

  display:flex;
  flex-direction:column;
  align-items:center;

  position:relative;
  z-index:2;
}

/* =========================
   LOGO
   ========================= */

.logo-img{
  width:min(420px, 72vw);

  margin-bottom:42px;

  filter:
    drop-shadow(0 0 40px rgba(124,92,255,.22))
    drop-shadow(0 0 80px rgba(34,211,238,.12))
    drop-shadow(0 20px 80px rgba(0,0,0,.85));
}

/* =========================
   LOGIN CARD
   ========================= */

.login-card{
  width:100%;

  display:flex;
  flex-direction:column;

  gap:8px;

  padding:
    42px
    52px
    42px;

  border-radius:42px;

  border:
    1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.045)
    );

  backdrop-filter:blur(24px);

  box-shadow:
    0 40px 120px rgba(0,0,0,.45);
}

/* =========================
   INPUT
   ========================= */

.login-card input{
  width:100%;

  height:72px;

  margin-top:6px;

  border-radius:24px;

  border:
    1px solid rgba(255,255,255,.12);

  background:
    rgba(0,0,0,.22);

  padding:
    0
    24px;

  font-size:18px;

  color:white;
}

.login-card input::placeholder{
  color:rgba(255,255,255,.34);
}

/* =========================
   BUTTON
   ========================= */

.login-card button{
  width:100%;

  height:68px;

  margin-top:20px;

  border:none;

  border-radius:22px;

  font-size:17px;

  font-weight:900;

  letter-spacing:.08em;

  background:
    linear-gradient(
      135deg,
      var(--brand),
      var(--cyan)
    );

  color:white;

  box-shadow:
    0 20px 50px rgba(124,92,255,.35);

  transition:.25s ease;
}

.login-card button:hover{
  transform:translateY(-2px);

  box-shadow:
    0 28px 70px rgba(124,92,255,.42);
}

/* =========================
   ERROR
   ========================= */

.login-error{
  margin-top:18px;

  text-align:center;

  color:#ffb4c1;

  font-size:15px;

  font-weight:700;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width:700px){

  .login-card{
    padding:
      34px
      24px
      28px;
  }

  .login-card input{
    height:62px;
  }

  .login-card button{
    height:60px;
  }
}

/* =========================
   FOOTER
   ========================= */

footer {
  max-width: var(--max);

  margin: 0 auto;

  padding:
    24px
    36px;

  color: rgba(255,255,255,.4);

  display: flex;
  justify-content: space-between;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:900px){

  .top,
  .topbar,
  .toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .cards,
  .grid,
  .channelGrid,
  .split,
  .row,
  .row2{
    grid-template-columns:1fr;
  }

  .wrap{
    padding:
      34px
      18px
      70px;
  }

  .card{
    padding:28px;
  }

  h1{
    font-size:46px;
  }
}

/* =========================
   RANGE SLIDER FIX
   ========================= */

input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:320px;
  max-width:100%;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  outline:none;
  padding:0;
  margin-top:18px;
}

input[type="range"]::-webkit-slider-runnable-track{
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
}

input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--cyan));
  cursor:pointer;
  margin-top:-7px;
  box-shadow:0 0 20px rgba(124,92,255,.45);
}

input[type="range"]::-moz-range-track{
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
}

input[type="range"]::-moz-range-thumb{
  width:22px;
  height:22px;
  border:none;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--cyan));
  cursor:pointer;
}

/* =========================
   INPUT OVERFLOW FIX
   ========================= */

.card,
.login-card,
.previewWrap,
.split,
.row,
.row2,
.grid,
.channelGrid,
.toolbar,
.cardhead,
.inlineForm{
  min-width:0 !important;
}

input,
textarea,
select{
  max-width:100% !important;
  min-width:0 !important;
}

textarea{
  overflow-x:hidden;
}

.split > *,
.row > *,
.row2 > *{
  min-width:0 !important;
}

.timerRow,
.msgRow{
  flex-wrap:wrap;
}

.embedMock{
  overflow:hidden;
  max-width:100%;
}

.embedBody{
  overflow-wrap:break-word;
  word-break:break-word;
}


/* =========================
   SAFE INPUT WIDTH FIX
   ========================= */

.card,
.cardInner,
.split,
.previewWrap,
.row,
.row2,
.grid,
.channelGrid{
  min-width:0;
}

.row > *,
.row2 > *,
.split > *{
  min-width:0;
}

input:not([type="range"]),
textarea,
select,
.search{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

textarea{
  overflow-x:hidden;
}

/* prevent editor rows from pushing layout */
.timerRow,
.msgRow,
.inlineForm{
  flex-wrap:wrap;
}

/* only clip horizontal overflow */
.card{
  overflow-x:hidden;
}


/* =========================
   PREVIEW + INPUT FINAL FIX
   ========================= */

/* restore preview */
.previewWrap{
  position:sticky !important;
  top:96px !important;

  width:100% !important;
  max-width:760px !important;

  overflow:visible !important;
}

.embedMock{
  width:100% !important;

  min-height:520px !important;

  aspect-ratio:auto !important;

  overflow:hidden !important;
}

/* stop cards clipping content */
.card{
  overflow:visible !important;
}

/* proper input sizing */
input:not([type="range"]),
textarea,
select,
.search{
  width:100% !important;

  max-width:100% !important;

  min-width:0 !important;

  box-sizing:border-box !important;
}

/* keep rows inside cards */
.row,
.row2,
.split{
  align-items:start;
}

.row > *,
.row2 > *,
.split > *{
  min-width:0 !important;
}
